]> git.sur5r.net Git - openldap/blob - configure
allow to select the desired ODBC sequence (ITS#4735)
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.639 2006/10/11 10:36:54 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_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 BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_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-denyop       Deny Operation overlay no|yes|mod [no]
1053     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1054     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1055     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1056     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1057     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1058     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1059     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1060     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1061     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1062     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1063     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1064     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1065     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1066
1067 SLURPD (Replication Daemon) Options:
1068   --enable-slurpd         enable building slurpd [auto]
1069
1070 Library Generation & Linking Options
1071   --enable-static[=PKGS]
1072                           build static libraries [default=yes]
1073   --enable-shared[=PKGS]
1074                           build shared libraries [default=yes]
1075   --enable-fast-install[=PKGS]
1076                           optimize for fast installation [default=yes]
1077   --disable-dependency-tracking  speeds up one-time build
1078   --enable-dependency-tracking   do not reject slow dependency extractors
1079   --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081 Optional Packages:
1082   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084   --with-subdir=DIR       change default subdirectory used for installs
1085   --with-cyrus-sasl       with Cyrus SASL support [auto]
1086   --with-fetch            with fetch(3) URL support [auto]
1087   --with-threads          with threads [auto]
1088   --with-tls              with TLS/SSL support [auto]
1089   --with-yielding-select  with implicitly yielding select [auto]
1090   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1091   --with-odbc             with specific ODBC support iodbc|unixodbc|auto [auto]
1092   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1093   --with-pic              try to use only PIC/non-PIC objects [default=use
1094                           both]
1095   --with-tags[=TAGS]
1096                           include additional configurations [automatic]
1097
1098 See INSTALL file for further details.
1099
1100 Some influential environment variables:
1101   CC          C compiler command
1102   CFLAGS      C compiler flags
1103   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1104               nonstandard directory <lib dir>
1105   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106               headers in a nonstandard directory <include dir>
1107   CPP         C preprocessor
1108
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1111
1112 _ACEOF
1113 fi
1114
1115 if test "$ac_init_help" = "recursive"; then
1116   # If there are subdirs, report their specific --help.
1117   ac_popdir=`pwd`
1118   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119     test -d $ac_dir || continue
1120     ac_builddir=.
1121
1122 if test "$ac_dir" != .; then
1123   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124   # A "../" for each directory in $ac_dir_suffix.
1125   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126 else
1127   ac_dir_suffix= ac_top_builddir=
1128 fi
1129
1130 case $srcdir in
1131   .)  # No --srcdir option.  We are building in place.
1132     ac_srcdir=.
1133     if test -z "$ac_top_builddir"; then
1134        ac_top_srcdir=.
1135     else
1136        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137     fi ;;
1138   [\\/]* | ?:[\\/]* )  # Absolute path.
1139     ac_srcdir=$srcdir$ac_dir_suffix;
1140     ac_top_srcdir=$srcdir ;;
1141   *) # Relative path.
1142     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 esac
1145
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1148 case `pwd` in
1149 .) ac_abs_builddir="$ac_dir";;
1150 *)
1151   case "$ac_dir" in
1152   .) ac_abs_builddir=`pwd`;;
1153   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155   esac;;
1156 esac
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 *)
1160   case ${ac_top_builddir}. in
1161   .) ac_abs_top_builddir=$ac_abs_builddir;;
1162   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164   esac;;
1165 esac
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1168 *)
1169   case $ac_srcdir in
1170   .) ac_abs_srcdir=$ac_abs_builddir;;
1171   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173   esac;;
1174 esac
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 *)
1178   case $ac_top_srcdir in
1179   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182   esac;;
1183 esac
1184
1185     cd $ac_dir
1186     # Check for guested configure; otherwise get Cygnus style configure.
1187     if test -f $ac_srcdir/configure.gnu; then
1188       echo
1189       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1190     elif test -f $ac_srcdir/configure; then
1191       echo
1192       $SHELL $ac_srcdir/configure  --help=recursive
1193     elif test -f $ac_srcdir/configure.ac ||
1194            test -f $ac_srcdir/configure.in; then
1195       echo
1196       $ac_configure --help
1197     else
1198       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199     fi
1200     cd $ac_popdir
1201   done
1202 fi
1203
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1206   cat <<\_ACEOF
1207
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1211
1212 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1214 _ACEOF
1215   exit 0
1216 fi
1217 exec 5>config.log
1218 cat >&5 <<_ACEOF
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1221
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59.  Invocation command line was
1224
1225   $ $0 $@
1226
1227 _ACEOF
1228 {
1229 cat <<_ASUNAME
1230 ## --------- ##
1231 ## Platform. ##
1232 ## --------- ##
1233
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1242
1243 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1244 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1247 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1248 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1249 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1250
1251 _ASUNAME
1252
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254 for as_dir in $PATH
1255 do
1256   IFS=$as_save_IFS
1257   test -z "$as_dir" && as_dir=.
1258   echo "PATH: $as_dir"
1259 done
1260
1261 } >&5
1262
1263 cat >&5 <<_ACEOF
1264
1265
1266 ## ----------- ##
1267 ## Core tests. ##
1268 ## ----------- ##
1269
1270 _ACEOF
1271
1272
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1278 ac_configure_args=
1279 ac_configure_args0=
1280 ac_configure_args1=
1281 ac_sep=
1282 ac_must_keep_next=false
1283 for ac_pass in 1 2
1284 do
1285   for ac_arg
1286   do
1287     case $ac_arg in
1288     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290     | -silent | --silent | --silen | --sile | --sil)
1291       continue ;;
1292     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294     esac
1295     case $ac_pass in
1296     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297     2)
1298       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299       if test $ac_must_keep_next = true; then
1300         ac_must_keep_next=false # Got value, back to normal.
1301       else
1302         case $ac_arg in
1303           *=* | --config-cache | -C | -disable-* | --disable-* \
1304           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306           | -with-* | --with-* | -without-* | --without-* | --x)
1307             case "$ac_configure_args0 " in
1308               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309             esac
1310             ;;
1311           -* ) ac_must_keep_next=true ;;
1312         esac
1313       fi
1314       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315       # Get rid of the leading space.
1316       ac_sep=" "
1317       ;;
1318     esac
1319   done
1320 done
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log.  We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330   # Save into config.log some information that might help in debugging.
1331   {
1332     echo
1333
1334     cat <<\_ASBOX
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1338 _ASBOX
1339     echo
1340     # The following way of writing the cache mishandles newlines in values,
1341 {
1342   (set) 2>&1 |
1343     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344     *ac_space=\ *)
1345       sed -n \
1346         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1348       ;;
1349     *)
1350       sed -n \
1351         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1352       ;;
1353     esac;
1354 }
1355     echo
1356
1357     cat <<\_ASBOX
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1361 _ASBOX
1362     echo
1363     for ac_var in $ac_subst_vars
1364     do
1365       eval ac_val=$`echo $ac_var`
1366       echo "$ac_var='"'"'$ac_val'"'"'"
1367     done | sort
1368     echo
1369
1370     if test -n "$ac_subst_files"; then
1371       cat <<\_ASBOX
1372 ## ------------- ##
1373 ## Output files. ##
1374 ## ------------- ##
1375 _ASBOX
1376       echo
1377       for ac_var in $ac_subst_files
1378       do
1379         eval ac_val=$`echo $ac_var`
1380         echo "$ac_var='"'"'$ac_val'"'"'"
1381       done | sort
1382       echo
1383     fi
1384
1385     if test -s confdefs.h; then
1386       cat <<\_ASBOX
1387 ## ----------- ##
1388 ## confdefs.h. ##
1389 ## ----------- ##
1390 _ASBOX
1391       echo
1392       sed "/^$/d" confdefs.h | sort
1393       echo
1394     fi
1395     test "$ac_signal" != 0 &&
1396       echo "$as_me: caught signal $ac_signal"
1397     echo "$as_me: exit $exit_status"
1398   } >&5
1399   rm -f core *.core &&
1400   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401     exit $exit_status
1402      ' 0
1403 for ac_signal in 1 2 13 15; do
1404   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1405 done
1406 ac_signal=0
1407
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 echo >confdefs.h
1412
1413 # Predefined preprocessor variables.
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1432 _ACEOF
1433
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1437 _ACEOF
1438
1439
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443   if test "x$prefix" != xNONE; then
1444     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445   else
1446     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447   fi
1448 fi
1449 for ac_site_file in $CONFIG_SITE; do
1450   if test -r "$ac_site_file"; then
1451     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453     sed 's/^/| /' "$ac_site_file" >&5
1454     . "$ac_site_file"
1455   fi
1456 done
1457
1458
1459 # Check that the precious variables saved in the cache have kept the same
1460 # value.
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465   eval ac_new_set=\$ac_env_${ac_var}_set
1466   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467   eval ac_new_val="\$ac_env_${ac_var}_value"
1468   case $ac_old_set,$ac_new_set in
1469     set,)
1470       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472       ac_cache_corrupted=: ;;
1473     ,set)
1474       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476       ac_cache_corrupted=: ;;
1477     ,);;
1478     *)
1479       if test "x$ac_old_val" != "x$ac_new_val"; then
1480         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1483 echo "$as_me:   former value:  $ac_old_val" >&2;}
1484         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1485 echo "$as_me:   current value: $ac_new_val" >&2;}
1486         ac_cache_corrupted=:
1487       fi;;
1488   esac
1489   # Pass precious variables to config.status.
1490   if test "$ac_new_set" = set; then
1491     case $ac_new_val in
1492     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494     *) ac_arg=$ac_var=$ac_new_val ;;
1495     esac
1496     case " $ac_configure_args " in
1497       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1498       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499     esac
1500   fi
1501 done
1502 if $ac_cache_corrupted; then
1503   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558 ac_aux_dir=
1559 for ac_dir in build $srcdir/build; do
1560   if test -f $ac_dir/install-sh; then
1561     ac_aux_dir=$ac_dir
1562     ac_install_sh="$ac_aux_dir/install-sh -c"
1563     break
1564   elif test -f $ac_dir/install.sh; then
1565     ac_aux_dir=$ac_dir
1566     ac_install_sh="$ac_aux_dir/install.sh -c"
1567     break
1568   elif test -f $ac_dir/shtool; then
1569     ac_aux_dir=$ac_dir
1570     ac_install_sh="$ac_aux_dir/shtool install -c"
1571     break
1572   fi
1573 done
1574 if test -z "$ac_aux_dir"; then
1575   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1576 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1577    { (exit 1); exit 1; }; }
1578 fi
1579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1582
1583 eval `$ac_aux_dir/version.sh`
1584 if test -z "$OL_STRING"; then
1585         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1586 echo "$as_me: error: could not determine version" >&2;}
1587    { (exit 1); exit 1; }; }
1588 fi
1589
1590 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1591         ac_cv_shtool="$ac_aux_dir/shtool"
1592 else
1593         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1594 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1595    { (exit 1); exit 1; }; }
1596 fi
1597
1598 SHTOOL="$ac_cv_shtool"
1599
1600 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1601 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602
1603 OPENLDAP_CVS=""
1604 if test -d $ac_aux_dir/CVS; then
1605         OPENLDAP_CVS="(from CVS sources) "
1606 fi
1607
1608 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1609
1610 # Make sure we can run config.sub.
1611 $ac_config_sub sun4 >/dev/null 2>&1 ||
1612   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1614    { (exit 1); exit 1; }; }
1615
1616 echo "$as_me:$LINENO: checking build system type" >&5
1617 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1618 if test "${ac_cv_build+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   ac_cv_build_alias=$build_alias
1622 test -z "$ac_cv_build_alias" &&
1623   ac_cv_build_alias=`$ac_config_guess`
1624 test -z "$ac_cv_build_alias" &&
1625   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627    { (exit 1); exit 1; }; }
1628 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1631    { (exit 1); exit 1; }; }
1632
1633 fi
1634 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635 echo "${ECHO_T}$ac_cv_build" >&6
1636 build=$ac_cv_build
1637 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640
1641
1642 echo "$as_me:$LINENO: checking host system type" >&5
1643 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1644 if test "${ac_cv_host+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   ac_cv_host_alias=$host_alias
1648 test -z "$ac_cv_host_alias" &&
1649   ac_cv_host_alias=$ac_cv_build_alias
1650 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1653    { (exit 1); exit 1; }; }
1654
1655 fi
1656 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657 echo "${ECHO_T}$ac_cv_host" >&6
1658 host=$ac_cv_host
1659 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662
1663
1664 echo "$as_me:$LINENO: checking target system type" >&5
1665 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1666 if test "${ac_cv_target+set}" = set; then
1667   echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669   ac_cv_target_alias=$target_alias
1670 test "x$ac_cv_target_alias" = "x" &&
1671   ac_cv_target_alias=$ac_cv_host_alias
1672 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1673   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1674 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1675    { (exit 1); exit 1; }; }
1676
1677 fi
1678 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1679 echo "${ECHO_T}$ac_cv_target" >&6
1680 target=$ac_cv_target
1681 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684
1685
1686 # The aliases save the names the user supplied, while $host etc.
1687 # will get canonicalized.
1688 test -n "$target_alias" &&
1689   test "$program_prefix$program_suffix$program_transform_name" = \
1690     NONENONEs,x,x, &&
1691   program_prefix=${target_alias}-
1692
1693 am__api_version="1.9"
1694 # Find a good install program.  We prefer a C program (faster),
1695 # so one script is as good as another.  But avoid the broken or
1696 # incompatible versions:
1697 # SysV /etc/install, /usr/sbin/install
1698 # SunOS /usr/etc/install
1699 # IRIX /sbin/install
1700 # AIX /bin/install
1701 # AmigaOS /C/install, which installs bootblocks on floppy discs
1702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1705 # OS/2's system install, which has a completely different semantic
1706 # ./install, which can be erroneously created by make from ./install.sh.
1707 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1709 if test -z "$INSTALL"; then
1710 if test "${ac_cv_path_install+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1715 do
1716   IFS=$as_save_IFS
1717   test -z "$as_dir" && as_dir=.
1718   # Account for people who put trailing slashes in PATH elements.
1719 case $as_dir/ in
1720   ./ | .// | /cC/* | \
1721   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723   /usr/ucb/* ) ;;
1724   *)
1725     # OSF1 and SCO ODT 3.0 have their own names for install.
1726     # Don't use installbsd from OSF since it installs stuff as root
1727     # by default.
1728     for ac_prog in ginstall scoinst install; do
1729       for ac_exec_ext in '' $ac_executable_extensions; do
1730         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731           if test $ac_prog = install &&
1732             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733             # AIX install.  It has an incompatible calling convention.
1734             :
1735           elif test $ac_prog = install &&
1736             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737             # program-specific install script used by HP pwplus--don't use.
1738             :
1739           else
1740             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1741             break 3
1742           fi
1743         fi
1744       done
1745     done
1746     ;;
1747 esac
1748 done
1749
1750
1751 fi
1752   if test "${ac_cv_path_install+set}" = set; then
1753     INSTALL=$ac_cv_path_install
1754   else
1755     # As a last resort, use the slow shell script.  We don't cache a
1756     # path for INSTALL within a source directory, because that will
1757     # break other packages using the cache if that directory is
1758     # removed, or if the path is relative.
1759     INSTALL=$ac_install_sh
1760   fi
1761 fi
1762 echo "$as_me:$LINENO: result: $INSTALL" >&5
1763 echo "${ECHO_T}$INSTALL" >&6
1764
1765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766 # It thinks the first close brace ends the variable substitution.
1767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768
1769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770
1771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772
1773 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1774 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1775 # Just in case
1776 sleep 1
1777 echo timestamp > conftest.file
1778 # Do `set' in a subshell so we don't clobber the current shell's
1779 # arguments.  Must try -L first in case configure is actually a
1780 # symlink; some systems play weird games with the mod time of symlinks
1781 # (eg FreeBSD returns the mod time of the symlink's containing
1782 # directory).
1783 if (
1784    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1785    if test "$*" = "X"; then
1786       # -L didn't work.
1787       set X `ls -t $srcdir/configure conftest.file`
1788    fi
1789    rm -f conftest.file
1790    if test "$*" != "X $srcdir/configure conftest.file" \
1791       && test "$*" != "X conftest.file $srcdir/configure"; then
1792
1793       # If neither matched, then we have a broken ls.  This can happen
1794       # if, for instance, CONFIG_SHELL is bash and it inherits a
1795       # broken ls alias from the environment.  This has actually
1796       # happened.  Such a system could not be considered "sane".
1797       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1798 alias in your environment" >&5
1799 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1800 alias in your environment" >&2;}
1801    { (exit 1); exit 1; }; }
1802    fi
1803
1804    test "$2" = conftest.file
1805    )
1806 then
1807    # Ok.
1808    :
1809 else
1810    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1811 Check your system clock" >&5
1812 echo "$as_me: error: newly created file is older than distributed files!
1813 Check your system clock" >&2;}
1814    { (exit 1); exit 1; }; }
1815 fi
1816 echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1818 test "$program_prefix" != NONE &&
1819   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1820 # Use a double $ so make ignores it.
1821 test "$program_suffix" != NONE &&
1822   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1823 # Double any \ or $.  echo might interpret backslashes.
1824 # By default was `s,x,x', remove it if useless.
1825 cat <<\_ACEOF >conftest.sed
1826 s/[\\$]/&&/g;s/;s,x,x,$//
1827 _ACEOF
1828 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829 rm conftest.sed
1830
1831 # expand $ac_aux_dir to an absolute path
1832 am_aux_dir=`cd $ac_aux_dir && pwd`
1833
1834 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1835 # Use eval to expand $SHELL
1836 if eval "$MISSING --run true"; then
1837   am_missing_run="$MISSING --run "
1838 else
1839   am_missing_run=
1840   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1841 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1842 fi
1843
1844 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1845   # We used to keeping the `.' as first argument, in order to
1846   # allow $(mkdir_p) to be used without argument.  As in
1847   #   $(mkdir_p) $(somedir)
1848   # where $(somedir) is conditionally defined.  However this is wrong
1849   # for two reasons:
1850   #  1. if the package is installed by a user who cannot write `.'
1851   #     make install will fail,
1852   #  2. the above comment should most certainly read
1853   #     $(mkdir_p) $(DESTDIR)$(somedir)
1854   #     so it does not work when $(somedir) is undefined and
1855   #     $(DESTDIR) is not.
1856   #  To support the latter case, we have to write
1857   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1858   #  so the `.' trick is pointless.
1859   mkdir_p='mkdir -p --'
1860 else
1861   # On NextStep and OpenStep, the `mkdir' command does not
1862   # recognize any option.  It will interpret all options as
1863   # directories to create, and then abort because `.' already
1864   # exists.
1865   for d in ./-p ./--version;
1866   do
1867     test -d $d && rmdir $d
1868   done
1869   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1870   if test -f "$ac_aux_dir/mkinstalldirs"; then
1871     mkdir_p='$(mkinstalldirs)'
1872   else
1873     mkdir_p='$(install_sh) -d'
1874   fi
1875 fi
1876
1877 for ac_prog in gawk mawk nawk awk
1878 do
1879   # Extract the first word of "$ac_prog", so it can be a program name with args.
1880 set dummy $ac_prog; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_AWK+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$AWK"; then
1887   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_AWK="$ac_prog"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903 fi
1904 fi
1905 AWK=$ac_cv_prog_AWK
1906 if test -n "$AWK"; then
1907   echo "$as_me:$LINENO: result: $AWK" >&5
1908 echo "${ECHO_T}$AWK" >&6
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914   test -n "$AWK" && break
1915 done
1916
1917 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1918 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1919 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1920 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   cat >conftest.make <<\_ACEOF
1924 all:
1925         @echo 'ac_maketemp="$(MAKE)"'
1926 _ACEOF
1927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1928 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1929 if test -n "$ac_maketemp"; then
1930   eval ac_cv_prog_make_${ac_make}_set=yes
1931 else
1932   eval ac_cv_prog_make_${ac_make}_set=no
1933 fi
1934 rm -f conftest.make
1935 fi
1936 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1937   echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1939   SET_MAKE=
1940 else
1941   echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943   SET_MAKE="MAKE=${MAKE-make}"
1944 fi
1945
1946 rm -rf .tst 2>/dev/null
1947 mkdir .tst 2>/dev/null
1948 if test -d .tst; then
1949   am__leading_dot=.
1950 else
1951   am__leading_dot=_
1952 fi
1953 rmdir .tst 2>/dev/null
1954
1955 # test to see if srcdir already configured
1956 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1957    test -f $srcdir/config.status; then
1958   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1959 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1960    { (exit 1); exit 1; }; }
1961 fi
1962
1963 # test whether we have cygpath
1964 if test -z "$CYGPATH_W"; then
1965   if (cygpath --version) >/dev/null 2>/dev/null; then
1966     CYGPATH_W='cygpath -w'
1967   else
1968     CYGPATH_W=echo
1969   fi
1970 fi
1971
1972
1973 # Define the identity of the package.
1974  PACKAGE=$OL_PACKAGE
1975  VERSION=$OL_VERSION
1976
1977
1978 # Some tools Automake needs.
1979
1980 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1981
1982
1983 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1984
1985
1986 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1987
1988
1989 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1990
1991
1992 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1993
1994 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1995
1996 # Installed binaries are usually stripped using `strip' when the user
1997 # run `make install-strip'.  However `strip' might not be the right
1998 # tool to use in cross-compilation environments, therefore Automake
1999 # will honor the `STRIP' environment variable to overrule this program.
2000 if test "$cross_compiling" != no; then
2001   if test -n "$ac_tool_prefix"; then
2002   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_STRIP+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$STRIP"; then
2010   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026 fi
2027 fi
2028 STRIP=$ac_cv_prog_STRIP
2029 if test -n "$STRIP"; then
2030   echo "$as_me:$LINENO: result: $STRIP" >&5
2031 echo "${ECHO_T}$STRIP" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037 fi
2038 if test -z "$ac_cv_prog_STRIP"; then
2039   ac_ct_STRIP=$STRIP
2040   # Extract the first word of "strip", so it can be a program name with args.
2041 set dummy strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$ac_ct_STRIP"; then
2048   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_ac_ct_STRIP="strip"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2065 fi
2066 fi
2067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2068 if test -n "$ac_ct_STRIP"; then
2069   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2070 echo "${ECHO_T}$ac_ct_STRIP" >&6
2071 else
2072   echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076   STRIP=$ac_ct_STRIP
2077 else
2078   STRIP="$ac_cv_prog_STRIP"
2079 fi
2080
2081 fi
2082 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2083
2084 # We need awk for the "check" target.  The system "awk" is bad on
2085 # some platforms.
2086 # Always define AMTAR for backward compatibility.
2087
2088 AMTAR=${AMTAR-"${am_missing_run}tar"}
2089
2090 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2091
2092
2093
2094
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define OPENLDAP_PACKAGE "$PACKAGE"
2098 _ACEOF
2099
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define OPENLDAP_VERSION "$VERSION"
2103 _ACEOF
2104
2105
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define LDAP_VENDOR_VERSION $OL_API_INC
2109 _ACEOF
2110
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2114 _ACEOF
2115
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2119 _ACEOF
2120
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2124 _ACEOF
2125
2126
2127 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2128
2129 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2130
2131 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2132
2133
2134
2135
2136
2137
2138
2139           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2140
2141           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2142
2143           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2144
2145
2146 echo "$as_me:$LINENO: checking configure arguments" >&5
2147 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2148
2149
2150 top_builddir=`pwd`
2151
2152 ldap_subdir="/openldap"
2153
2154
2155 # Check whether --with-subdir or --without-subdir was given.
2156 if test "${with_subdir+set}" = set; then
2157   withval="$with_subdir"
2158   case "$withval" in
2159         no) ldap_subdir=""
2160                 ;;
2161         yes)
2162                 ;;
2163         /*|\\*)
2164                 ldap_subdir="$withval"
2165                 ;;
2166         *)
2167                 ldap_subdir="/$withval"
2168                 ;;
2169 esac
2170
2171 fi;
2172
2173 # OpenLDAP --enable-debug
2174
2175         # Check whether --enable-debug or --disable-debug was given.
2176 if test "${enable_debug+set}" = set; then
2177   enableval="$enable_debug"
2178
2179         ol_arg=invalid
2180         for ol_val in no yes traditional ; do
2181                 if test "$enableval" = "$ol_val" ; then
2182                         ol_arg="$ol_val"
2183                 fi
2184         done
2185         if test "$ol_arg" = "invalid" ; then
2186                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2187 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2188    { (exit 1); exit 1; }; }
2189         fi
2190         ol_enable_debug="$ol_arg"
2191
2192 else
2193         ol_enable_debug=yes
2194 fi;
2195 # end --enable-debug
2196 # OpenLDAP --enable-dynamic
2197
2198         # Check whether --enable-dynamic or --disable-dynamic was given.
2199 if test "${enable_dynamic+set}" = set; then
2200   enableval="$enable_dynamic"
2201
2202         ol_arg=invalid
2203         for ol_val in auto yes no ; do
2204                 if test "$enableval" = "$ol_val" ; then
2205                         ol_arg="$ol_val"
2206                 fi
2207         done
2208         if test "$ol_arg" = "invalid" ; then
2209                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2210 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2211    { (exit 1); exit 1; }; }
2212         fi
2213         ol_enable_dynamic="$ol_arg"
2214
2215 else
2216         ol_enable_dynamic=no
2217 fi;
2218 # end --enable-dynamic
2219 # OpenLDAP --enable-syslog
2220
2221         # Check whether --enable-syslog or --disable-syslog was given.
2222 if test "${enable_syslog+set}" = set; then
2223   enableval="$enable_syslog"
2224
2225         ol_arg=invalid
2226         for ol_val in auto yes no ; do
2227                 if test "$enableval" = "$ol_val" ; then
2228                         ol_arg="$ol_val"
2229                 fi
2230         done
2231         if test "$ol_arg" = "invalid" ; then
2232                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2234    { (exit 1); exit 1; }; }
2235         fi
2236         ol_enable_syslog="$ol_arg"
2237
2238 else
2239         ol_enable_syslog=auto
2240 fi;
2241 # end --enable-syslog
2242 # OpenLDAP --enable-proctitle
2243
2244         # Check whether --enable-proctitle or --disable-proctitle was given.
2245 if test "${enable_proctitle+set}" = set; then
2246   enableval="$enable_proctitle"
2247
2248         ol_arg=invalid
2249         for ol_val in auto yes no ; do
2250                 if test "$enableval" = "$ol_val" ; then
2251                         ol_arg="$ol_val"
2252                 fi
2253         done
2254         if test "$ol_arg" = "invalid" ; then
2255                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2256 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2257    { (exit 1); exit 1; }; }
2258         fi
2259         ol_enable_proctitle="$ol_arg"
2260
2261 else
2262         ol_enable_proctitle=yes
2263 fi;
2264 # end --enable-proctitle
2265 ol_enable_referrals=${ol_enable_referrals-no}
2266 ol_enable_kbind=${ol_enable_kbind-no}
2267 # OpenLDAP --enable-ipv6
2268
2269         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2270 if test "${enable_ipv6+set}" = set; then
2271   enableval="$enable_ipv6"
2272
2273         ol_arg=invalid
2274         for ol_val in auto yes no ; do
2275                 if test "$enableval" = "$ol_val" ; then
2276                         ol_arg="$ol_val"
2277                 fi
2278         done
2279         if test "$ol_arg" = "invalid" ; then
2280                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2282    { (exit 1); exit 1; }; }
2283         fi
2284         ol_enable_ipv6="$ol_arg"
2285
2286 else
2287         ol_enable_ipv6=auto
2288 fi;
2289 # end --enable-ipv6
2290 # OpenLDAP --enable-local
2291
2292         # Check whether --enable-local or --disable-local was given.
2293 if test "${enable_local+set}" = set; then
2294   enableval="$enable_local"
2295
2296         ol_arg=invalid
2297         for ol_val in auto yes no ; do
2298                 if test "$enableval" = "$ol_val" ; then
2299                         ol_arg="$ol_val"
2300                 fi
2301         done
2302         if test "$ol_arg" = "invalid" ; then
2303                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2304 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2305    { (exit 1); exit 1; }; }
2306         fi
2307         ol_enable_local="$ol_arg"
2308
2309 else
2310         ol_enable_local=auto
2311 fi;
2312 # end --enable-local
2313
2314 # OpenLDAP --with-cyrus_sasl
2315
2316 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2317 if test "${with_cyrus_sasl+set}" = set; then
2318   withval="$with_cyrus_sasl"
2319
2320         ol_arg=invalid
2321         for ol_val in auto yes no  ; do
2322                 if test "$withval" = "$ol_val" ; then
2323                         ol_arg="$ol_val"
2324                 fi
2325         done
2326         if test "$ol_arg" = "invalid" ; then
2327                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2328 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2329    { (exit 1); exit 1; }; }
2330         fi
2331         ol_with_cyrus_sasl="$ol_arg"
2332
2333 else
2334         ol_with_cyrus_sasl="auto"
2335 fi; # end --with-cyrus_sasl
2336
2337 # OpenLDAP --with-fetch
2338
2339 # Check whether --with-fetch or --without-fetch was given.
2340 if test "${with_fetch+set}" = set; then
2341   withval="$with_fetch"
2342
2343         ol_arg=invalid
2344         for ol_val in auto yes no  ; do
2345                 if test "$withval" = "$ol_val" ; then
2346                         ol_arg="$ol_val"
2347                 fi
2348         done
2349         if test "$ol_arg" = "invalid" ; then
2350                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2351 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2352    { (exit 1); exit 1; }; }
2353         fi
2354         ol_with_fetch="$ol_arg"
2355
2356 else
2357         ol_with_fetch="auto"
2358 fi; # end --with-fetch
2359
2360 ol_with_kerberos=${ol_with_kerberos-auto}
2361 # OpenLDAP --with-threads
2362
2363 # Check whether --with-threads or --without-threads was given.
2364 if test "${with_threads+set}" = set; then
2365   withval="$with_threads"
2366
2367         ol_arg=invalid
2368         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2369                 if test "$withval" = "$ol_val" ; then
2370                         ol_arg="$ol_val"
2371                 fi
2372         done
2373         if test "$ol_arg" = "invalid" ; then
2374                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2375 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2376    { (exit 1); exit 1; }; }
2377         fi
2378         ol_with_threads="$ol_arg"
2379
2380 else
2381         ol_with_threads="auto"
2382 fi; # end --with-threads
2383
2384 # OpenLDAP --with-tls
2385
2386 # Check whether --with-tls or --without-tls was given.
2387 if test "${with_tls+set}" = set; then
2388   withval="$with_tls"
2389
2390         ol_arg=invalid
2391         for ol_val in auto openssl yes no  ; do
2392                 if test "$withval" = "$ol_val" ; then
2393                         ol_arg="$ol_val"
2394                 fi
2395         done
2396         if test "$ol_arg" = "invalid" ; then
2397                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2398 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2399    { (exit 1); exit 1; }; }
2400         fi
2401         ol_with_tls="$ol_arg"
2402
2403 else
2404         ol_with_tls="auto"
2405 fi; # end --with-tls
2406
2407 # OpenLDAP --with-yielding_select
2408
2409 # Check whether --with-yielding_select or --without-yielding_select was given.
2410 if test "${with_yielding_select+set}" = set; then
2411   withval="$with_yielding_select"
2412
2413         ol_arg=invalid
2414         for ol_val in auto yes no manual  ; do
2415                 if test "$withval" = "$ol_val" ; then
2416                         ol_arg="$ol_val"
2417                 fi
2418         done
2419         if test "$ol_arg" = "invalid" ; then
2420                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2421 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2422    { (exit 1); exit 1; }; }
2423         fi
2424         ol_with_yielding_select="$ol_arg"
2425
2426 else
2427         ol_with_yielding_select="auto"
2428 fi; # end --with-yielding_select
2429
2430 # OpenLDAP --with-mp
2431
2432 # Check whether --with-mp or --without-mp was given.
2433 if test "${with_mp+set}" = set; then
2434   withval="$with_mp"
2435
2436         ol_arg=invalid
2437         for ol_val in auto longlong long bignum gmp yes no ; do
2438                 if test "$withval" = "$ol_val" ; then
2439                         ol_arg="$ol_val"
2440                 fi
2441         done
2442         if test "$ol_arg" = "invalid" ; then
2443                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2444 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2445    { (exit 1); exit 1; }; }
2446         fi
2447         ol_with_mp="$ol_arg"
2448
2449 else
2450         ol_with_mp="auto"
2451 fi; # end --with-mp
2452
2453 # OpenLDAP --with-odbc
2454
2455 # Check whether --with-odbc or --without-odbc was given.
2456 if test "${with_odbc+set}" = set; then
2457   withval="$with_odbc"
2458
2459         ol_arg=invalid
2460         for ol_val in auto iodbc unixodbc  ; do
2461                 if test "$withval" = "$ol_val" ; then
2462                         ol_arg="$ol_val"
2463                 fi
2464         done
2465         if test "$ol_arg" = "invalid" ; then
2466                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2467 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2468    { (exit 1); exit 1; }; }
2469         fi
2470         ol_with_odbc="$ol_arg"
2471
2472 else
2473         ol_with_odbc="auto"
2474 fi; # end --with-odbc
2475
2476
2477
2478 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2479 if test "${enable_xxslapdoptions+set}" = set; then
2480   enableval="$enable_xxslapdoptions"
2481
2482 fi;
2483 # OpenLDAP --enable-slapd
2484
2485         # Check whether --enable-slapd or --disable-slapd was given.
2486 if test "${enable_slapd+set}" = set; then
2487   enableval="$enable_slapd"
2488
2489         ol_arg=invalid
2490         for ol_val in auto yes no ; do
2491                 if test "$enableval" = "$ol_val" ; then
2492                         ol_arg="$ol_val"
2493                 fi
2494         done
2495         if test "$ol_arg" = "invalid" ; then
2496                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2498    { (exit 1); exit 1; }; }
2499         fi
2500         ol_enable_slapd="$ol_arg"
2501
2502 else
2503         ol_enable_slapd=yes
2504 fi;
2505 # end --enable-slapd
2506 # OpenLDAP --enable-dynacl
2507
2508         # Check whether --enable-dynacl or --disable-dynacl was given.
2509 if test "${enable_dynacl+set}" = set; then
2510   enableval="$enable_dynacl"
2511
2512         ol_arg=invalid
2513         for ol_val in auto yes no ; do
2514                 if test "$enableval" = "$ol_val" ; then
2515                         ol_arg="$ol_val"
2516                 fi
2517         done
2518         if test "$ol_arg" = "invalid" ; then
2519                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2520 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2521    { (exit 1); exit 1; }; }
2522         fi
2523         ol_enable_dynacl="$ol_arg"
2524
2525 else
2526         ol_enable_dynacl=no
2527 fi;
2528 # end --enable-dynacl
2529 # OpenLDAP --enable-aci
2530
2531         # Check whether --enable-aci or --disable-aci was given.
2532 if test "${enable_aci+set}" = set; then
2533   enableval="$enable_aci"
2534
2535         ol_arg=invalid
2536         for ol_val in no yes mod ; do
2537                 if test "$enableval" = "$ol_val" ; then
2538                         ol_arg="$ol_val"
2539                 fi
2540         done
2541         if test "$ol_arg" = "invalid" ; then
2542                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2544    { (exit 1); exit 1; }; }
2545         fi
2546         ol_enable_aci="$ol_arg"
2547
2548 else
2549         ol_enable_aci=no
2550 fi;
2551 # end --enable-aci
2552 # OpenLDAP --enable-cleartext
2553
2554         # Check whether --enable-cleartext or --disable-cleartext was given.
2555 if test "${enable_cleartext+set}" = set; then
2556   enableval="$enable_cleartext"
2557
2558         ol_arg=invalid
2559         for ol_val in auto yes no ; do
2560                 if test "$enableval" = "$ol_val" ; then
2561                         ol_arg="$ol_val"
2562                 fi
2563         done
2564         if test "$ol_arg" = "invalid" ; then
2565                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2566 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2567    { (exit 1); exit 1; }; }
2568         fi
2569         ol_enable_cleartext="$ol_arg"
2570
2571 else
2572         ol_enable_cleartext=yes
2573 fi;
2574 # end --enable-cleartext
2575 # OpenLDAP --enable-crypt
2576
2577         # Check whether --enable-crypt or --disable-crypt was given.
2578 if test "${enable_crypt+set}" = set; then
2579   enableval="$enable_crypt"
2580
2581         ol_arg=invalid
2582         for ol_val in auto yes no ; do
2583                 if test "$enableval" = "$ol_val" ; then
2584                         ol_arg="$ol_val"
2585                 fi
2586         done
2587         if test "$ol_arg" = "invalid" ; then
2588                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2589 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2590    { (exit 1); exit 1; }; }
2591         fi
2592         ol_enable_crypt="$ol_arg"
2593
2594 else
2595         ol_enable_crypt=no
2596 fi;
2597 # end --enable-crypt
2598 # OpenLDAP --enable-lmpasswd
2599
2600         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2601 if test "${enable_lmpasswd+set}" = set; then
2602   enableval="$enable_lmpasswd"
2603
2604         ol_arg=invalid
2605         for ol_val in auto yes no ; do
2606                 if test "$enableval" = "$ol_val" ; then
2607                         ol_arg="$ol_val"
2608                 fi
2609         done
2610         if test "$ol_arg" = "invalid" ; then
2611                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2612 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2613    { (exit 1); exit 1; }; }
2614         fi
2615         ol_enable_lmpasswd="$ol_arg"
2616
2617 else
2618         ol_enable_lmpasswd=no
2619 fi;
2620 # end --enable-lmpasswd
2621 # OpenLDAP --enable-spasswd
2622
2623         # Check whether --enable-spasswd or --disable-spasswd was given.
2624 if test "${enable_spasswd+set}" = set; then
2625   enableval="$enable_spasswd"
2626
2627         ol_arg=invalid
2628         for ol_val in auto yes no ; do
2629                 if test "$enableval" = "$ol_val" ; then
2630                         ol_arg="$ol_val"
2631                 fi
2632         done
2633         if test "$ol_arg" = "invalid" ; then
2634                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2636    { (exit 1); exit 1; }; }
2637         fi
2638         ol_enable_spasswd="$ol_arg"
2639
2640 else
2641         ol_enable_spasswd=no
2642 fi;
2643 # end --enable-spasswd
2644 # OpenLDAP --enable-modules
2645
2646         # Check whether --enable-modules or --disable-modules was given.
2647 if test "${enable_modules+set}" = set; then
2648   enableval="$enable_modules"
2649
2650         ol_arg=invalid
2651         for ol_val in auto yes no ; do
2652                 if test "$enableval" = "$ol_val" ; then
2653                         ol_arg="$ol_val"
2654                 fi
2655         done
2656         if test "$ol_arg" = "invalid" ; then
2657                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2658 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2659    { (exit 1); exit 1; }; }
2660         fi
2661         ol_enable_modules="$ol_arg"
2662
2663 else
2664         ol_enable_modules=no
2665 fi;
2666 # end --enable-modules
2667 # OpenLDAP --enable-rewrite
2668
2669         # Check whether --enable-rewrite or --disable-rewrite was given.
2670 if test "${enable_rewrite+set}" = set; then
2671   enableval="$enable_rewrite"
2672
2673         ol_arg=invalid
2674         for ol_val in auto yes no ; do
2675                 if test "$enableval" = "$ol_val" ; then
2676                         ol_arg="$ol_val"
2677                 fi
2678         done
2679         if test "$ol_arg" = "invalid" ; then
2680                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2681 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2682    { (exit 1); exit 1; }; }
2683         fi
2684         ol_enable_rewrite="$ol_arg"
2685
2686 else
2687         ol_enable_rewrite=auto
2688 fi;
2689 # end --enable-rewrite
2690 # OpenLDAP --enable-rlookups
2691
2692         # Check whether --enable-rlookups or --disable-rlookups was given.
2693 if test "${enable_rlookups+set}" = set; then
2694   enableval="$enable_rlookups"
2695
2696         ol_arg=invalid
2697         for ol_val in auto yes no ; do
2698                 if test "$enableval" = "$ol_val" ; then
2699                         ol_arg="$ol_val"
2700                 fi
2701         done
2702         if test "$ol_arg" = "invalid" ; then
2703                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2704 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2705    { (exit 1); exit 1; }; }
2706         fi
2707         ol_enable_rlookups="$ol_arg"
2708
2709 else
2710         ol_enable_rlookups=no
2711 fi;
2712 # end --enable-rlookups
2713 # OpenLDAP --enable-slapi
2714
2715         # Check whether --enable-slapi or --disable-slapi was given.
2716 if test "${enable_slapi+set}" = set; then
2717   enableval="$enable_slapi"
2718
2719         ol_arg=invalid
2720         for ol_val in auto yes no ; do
2721                 if test "$enableval" = "$ol_val" ; then
2722                         ol_arg="$ol_val"
2723                 fi
2724         done
2725         if test "$ol_arg" = "invalid" ; then
2726                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2727 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2728    { (exit 1); exit 1; }; }
2729         fi
2730         ol_enable_slapi="$ol_arg"
2731
2732 else
2733         ol_enable_slapi=no
2734 fi;
2735 # end --enable-slapi
2736 # OpenLDAP --enable-slp
2737
2738         # Check whether --enable-slp or --disable-slp was given.
2739 if test "${enable_slp+set}" = set; then
2740   enableval="$enable_slp"
2741
2742         ol_arg=invalid
2743         for ol_val in auto yes no ; do
2744                 if test "$enableval" = "$ol_val" ; then
2745                         ol_arg="$ol_val"
2746                 fi
2747         done
2748         if test "$ol_arg" = "invalid" ; then
2749                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2750 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2751    { (exit 1); exit 1; }; }
2752         fi
2753         ol_enable_slp="$ol_arg"
2754
2755 else
2756         ol_enable_slp=no
2757 fi;
2758 # end --enable-slp
2759 # OpenLDAP --enable-wrappers
2760
2761         # Check whether --enable-wrappers or --disable-wrappers was given.
2762 if test "${enable_wrappers+set}" = set; then
2763   enableval="$enable_wrappers"
2764
2765         ol_arg=invalid
2766         for ol_val in auto yes no ; do
2767                 if test "$enableval" = "$ol_val" ; then
2768                         ol_arg="$ol_val"
2769                 fi
2770         done
2771         if test "$ol_arg" = "invalid" ; then
2772                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2773 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2774    { (exit 1); exit 1; }; }
2775         fi
2776         ol_enable_wrappers="$ol_arg"
2777
2778 else
2779         ol_enable_wrappers=no
2780 fi;
2781 # end --enable-wrappers
2782
2783 Backends="bdb \
2784         dnssrv \
2785         hdb \
2786         ldap \
2787         meta \
2788         monitor \
2789         null \
2790         passwd \
2791         perl \
2792         relay \
2793         shell \
2794         sql"
2795
2796 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2797 if test "${enable_xxslapbackends+set}" = set; then
2798   enableval="$enable_xxslapbackends"
2799
2800 fi;
2801
2802 # OpenLDAP --enable-backends
2803
2804         # Check whether --enable-backends or --disable-backends was given.
2805 if test "${enable_backends+set}" = set; then
2806   enableval="$enable_backends"
2807
2808         ol_arg=invalid
2809         for ol_val in no yes mod ; do
2810                 if test "$enableval" = "$ol_val" ; then
2811                         ol_arg="$ol_val"
2812                 fi
2813         done
2814         if test "$ol_arg" = "invalid" ; then
2815                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2817    { (exit 1); exit 1; }; }
2818         fi
2819         ol_enable_backends="$ol_arg"
2820
2821 fi;
2822 # end --enable-backends
2823 # OpenLDAP --enable-bdb
2824
2825         # Check whether --enable-bdb or --disable-bdb was given.
2826 if test "${enable_bdb+set}" = set; then
2827   enableval="$enable_bdb"
2828
2829         ol_arg=invalid
2830         for ol_val in no yes mod ; do
2831                 if test "$enableval" = "$ol_val" ; then
2832                         ol_arg="$ol_val"
2833                 fi
2834         done
2835         if test "$ol_arg" = "invalid" ; then
2836                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2838    { (exit 1); exit 1; }; }
2839         fi
2840         ol_enable_bdb="$ol_arg"
2841
2842 else
2843         ol_enable_bdb=${ol_enable_backends:-yes}
2844 fi;
2845 # end --enable-bdb
2846 # OpenLDAP --enable-dnssrv
2847
2848         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2849 if test "${enable_dnssrv+set}" = set; then
2850   enableval="$enable_dnssrv"
2851
2852         ol_arg=invalid
2853         for ol_val in no yes mod ; do
2854                 if test "$enableval" = "$ol_val" ; then
2855                         ol_arg="$ol_val"
2856                 fi
2857         done
2858         if test "$ol_arg" = "invalid" ; then
2859                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2860 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2861    { (exit 1); exit 1; }; }
2862         fi
2863         ol_enable_dnssrv="$ol_arg"
2864
2865 else
2866         ol_enable_dnssrv=${ol_enable_backends:-no}
2867 fi;
2868 # end --enable-dnssrv
2869 # OpenLDAP --enable-hdb
2870
2871         # Check whether --enable-hdb or --disable-hdb was given.
2872 if test "${enable_hdb+set}" = set; then
2873   enableval="$enable_hdb"
2874
2875         ol_arg=invalid
2876         for ol_val in no yes mod ; do
2877                 if test "$enableval" = "$ol_val" ; then
2878                         ol_arg="$ol_val"
2879                 fi
2880         done
2881         if test "$ol_arg" = "invalid" ; then
2882                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2883 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2884    { (exit 1); exit 1; }; }
2885         fi
2886         ol_enable_hdb="$ol_arg"
2887
2888 else
2889         ol_enable_hdb=${ol_enable_backends:-yes}
2890 fi;
2891 # end --enable-hdb
2892 # OpenLDAP --enable-ldap
2893
2894         # Check whether --enable-ldap or --disable-ldap was given.
2895 if test "${enable_ldap+set}" = set; then
2896   enableval="$enable_ldap"
2897
2898         ol_arg=invalid
2899         for ol_val in no yes mod ; do
2900                 if test "$enableval" = "$ol_val" ; then
2901                         ol_arg="$ol_val"
2902                 fi
2903         done
2904         if test "$ol_arg" = "invalid" ; then
2905                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2906 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2907    { (exit 1); exit 1; }; }
2908         fi
2909         ol_enable_ldap="$ol_arg"
2910
2911 else
2912         ol_enable_ldap=${ol_enable_backends:-no}
2913 fi;
2914 # end --enable-ldap
2915 # OpenLDAP --enable-meta
2916
2917         # Check whether --enable-meta or --disable-meta was given.
2918 if test "${enable_meta+set}" = set; then
2919   enableval="$enable_meta"
2920
2921         ol_arg=invalid
2922         for ol_val in no yes mod ; do
2923                 if test "$enableval" = "$ol_val" ; then
2924                         ol_arg="$ol_val"
2925                 fi
2926         done
2927         if test "$ol_arg" = "invalid" ; then
2928                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2929 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2930    { (exit 1); exit 1; }; }
2931         fi
2932         ol_enable_meta="$ol_arg"
2933
2934 else
2935         ol_enable_meta=${ol_enable_backends:-no}
2936 fi;
2937 # end --enable-meta
2938 # OpenLDAP --enable-monitor
2939
2940         # Check whether --enable-monitor or --disable-monitor was given.
2941 if test "${enable_monitor+set}" = set; then
2942   enableval="$enable_monitor"
2943
2944         ol_arg=invalid
2945         for ol_val in no yes mod ; do
2946                 if test "$enableval" = "$ol_val" ; then
2947                         ol_arg="$ol_val"
2948                 fi
2949         done
2950         if test "$ol_arg" = "invalid" ; then
2951                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2952 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2953    { (exit 1); exit 1; }; }
2954         fi
2955         ol_enable_monitor="$ol_arg"
2956
2957 else
2958         ol_enable_monitor=${ol_enable_backends:-yes}
2959 fi;
2960 # end --enable-monitor
2961 # OpenLDAP --enable-null
2962
2963         # Check whether --enable-null or --disable-null was given.
2964 if test "${enable_null+set}" = set; then
2965   enableval="$enable_null"
2966
2967         ol_arg=invalid
2968         for ol_val in no yes mod ; do
2969                 if test "$enableval" = "$ol_val" ; then
2970                         ol_arg="$ol_val"
2971                 fi
2972         done
2973         if test "$ol_arg" = "invalid" ; then
2974                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2975 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2976    { (exit 1); exit 1; }; }
2977         fi
2978         ol_enable_null="$ol_arg"
2979
2980 else
2981         ol_enable_null=${ol_enable_backends:-no}
2982 fi;
2983 # end --enable-null
2984 # OpenLDAP --enable-passwd
2985
2986         # Check whether --enable-passwd or --disable-passwd was given.
2987 if test "${enable_passwd+set}" = set; then
2988   enableval="$enable_passwd"
2989
2990         ol_arg=invalid
2991         for ol_val in no yes mod ; do
2992                 if test "$enableval" = "$ol_val" ; then
2993                         ol_arg="$ol_val"
2994                 fi
2995         done
2996         if test "$ol_arg" = "invalid" ; then
2997                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2999    { (exit 1); exit 1; }; }
3000         fi
3001         ol_enable_passwd="$ol_arg"
3002
3003 else
3004         ol_enable_passwd=${ol_enable_backends:-no}
3005 fi;
3006 # end --enable-passwd
3007 # OpenLDAP --enable-perl
3008
3009         # Check whether --enable-perl or --disable-perl was given.
3010 if test "${enable_perl+set}" = set; then
3011   enableval="$enable_perl"
3012
3013         ol_arg=invalid
3014         for ol_val in no yes mod ; do
3015                 if test "$enableval" = "$ol_val" ; then
3016                         ol_arg="$ol_val"
3017                 fi
3018         done
3019         if test "$ol_arg" = "invalid" ; then
3020                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3021 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3022    { (exit 1); exit 1; }; }
3023         fi
3024         ol_enable_perl="$ol_arg"
3025
3026 else
3027         ol_enable_perl=${ol_enable_backends:-no}
3028 fi;
3029 # end --enable-perl
3030 # OpenLDAP --enable-relay
3031
3032         # Check whether --enable-relay or --disable-relay was given.
3033 if test "${enable_relay+set}" = set; then
3034   enableval="$enable_relay"
3035
3036         ol_arg=invalid
3037         for ol_val in no yes mod ; do
3038                 if test "$enableval" = "$ol_val" ; then
3039                         ol_arg="$ol_val"
3040                 fi
3041         done
3042         if test "$ol_arg" = "invalid" ; then
3043                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3044 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3045    { (exit 1); exit 1; }; }
3046         fi
3047         ol_enable_relay="$ol_arg"
3048
3049 else
3050         ol_enable_relay=${ol_enable_backends:-yes}
3051 fi;
3052 # end --enable-relay
3053 # OpenLDAP --enable-shell
3054
3055         # Check whether --enable-shell or --disable-shell was given.
3056 if test "${enable_shell+set}" = set; then
3057   enableval="$enable_shell"
3058
3059         ol_arg=invalid
3060         for ol_val in no yes mod ; do
3061                 if test "$enableval" = "$ol_val" ; then
3062                         ol_arg="$ol_val"
3063                 fi
3064         done
3065         if test "$ol_arg" = "invalid" ; then
3066                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3067 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3068    { (exit 1); exit 1; }; }
3069         fi
3070         ol_enable_shell="$ol_arg"
3071
3072 else
3073         ol_enable_shell=${ol_enable_backends:-no}
3074 fi;
3075 # end --enable-shell
3076 # OpenLDAP --enable-sql
3077
3078         # Check whether --enable-sql or --disable-sql was given.
3079 if test "${enable_sql+set}" = set; then
3080   enableval="$enable_sql"
3081
3082         ol_arg=invalid
3083         for ol_val in no yes mod ; do
3084                 if test "$enableval" = "$ol_val" ; then
3085                         ol_arg="$ol_val"
3086                 fi
3087         done
3088         if test "$ol_arg" = "invalid" ; then
3089                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3090 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3091    { (exit 1); exit 1; }; }
3092         fi
3093         ol_enable_sql="$ol_arg"
3094
3095 else
3096         ol_enable_sql=${ol_enable_backends:-no}
3097 fi;
3098 # end --enable-sql
3099
3100 Overlays="accesslog \
3101         auditlog \
3102         constraint \
3103         dds \
3104         denyop \
3105         dyngroup \
3106         dynlist \
3107         lastmod \
3108         ppolicy \
3109         proxycache \
3110         refint \
3111         retcode \
3112         rwm \
3113         seqmod \
3114         syncprov \
3115         translucent \
3116         unique \
3117         valsort"
3118
3119 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3120 if test "${enable_xxslapoverlays+set}" = set; then
3121   enableval="$enable_xxslapoverlays"
3122
3123 fi;
3124
3125 # OpenLDAP --enable-overlays
3126
3127         # Check whether --enable-overlays or --disable-overlays was given.
3128 if test "${enable_overlays+set}" = set; then
3129   enableval="$enable_overlays"
3130
3131         ol_arg=invalid
3132         for ol_val in no yes mod ; do
3133                 if test "$enableval" = "$ol_val" ; then
3134                         ol_arg="$ol_val"
3135                 fi
3136         done
3137         if test "$ol_arg" = "invalid" ; then
3138                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3139 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3140    { (exit 1); exit 1; }; }
3141         fi
3142         ol_enable_overlays="$ol_arg"
3143
3144 fi;
3145 # end --enable-overlays
3146 # OpenLDAP --enable-accesslog
3147
3148         # Check whether --enable-accesslog or --disable-accesslog was given.
3149 if test "${enable_accesslog+set}" = set; then
3150   enableval="$enable_accesslog"
3151
3152         ol_arg=invalid
3153         for ol_val in no yes mod ; do
3154                 if test "$enableval" = "$ol_val" ; then
3155                         ol_arg="$ol_val"
3156                 fi
3157         done
3158         if test "$ol_arg" = "invalid" ; then
3159                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_accesslog="$ol_arg"
3164
3165 else
3166         ol_enable_accesslog=${ol_enable_overlays:-no}
3167 fi;
3168 # end --enable-accesslog
3169
3170 # OpenLDAP --enable-auditlog
3171
3172         # Check whether --enable-auditlog or --disable-auditlog was given.
3173 if test "${enable_auditlog+set}" = set; then
3174   enableval="$enable_auditlog"
3175
3176         ol_arg=invalid
3177         for ol_val in no yes mod ; do
3178                 if test "$enableval" = "$ol_val" ; then
3179                         ol_arg="$ol_val"
3180                 fi
3181         done
3182         if test "$ol_arg" = "invalid" ; then
3183                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3185    { (exit 1); exit 1; }; }
3186         fi
3187         ol_enable_auditlog="$ol_arg"
3188
3189 else
3190         ol_enable_auditlog=${ol_enable_overlays:-no}
3191 fi;
3192 # end --enable-auditlog
3193
3194 # OpenLDAP --enable-constraint
3195
3196         # Check whether --enable-constraint or --disable-constraint was given.
3197 if test "${enable_constraint+set}" = set; then
3198   enableval="$enable_constraint"
3199
3200         ol_arg=invalid
3201         for ol_val in no yes mod ; do
3202                 if test "$enableval" = "$ol_val" ; then
3203                         ol_arg="$ol_val"
3204                 fi
3205         done
3206         if test "$ol_arg" = "invalid" ; then
3207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3208 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3209    { (exit 1); exit 1; }; }
3210         fi
3211         ol_enable_constraint="$ol_arg"
3212
3213 else
3214         ol_enable_constraint=${ol_enable_overlays:-no}
3215 fi;
3216 # end --enable-constraint
3217
3218 # OpenLDAP --enable-dds
3219
3220         # Check whether --enable-dds or --disable-dds was given.
3221 if test "${enable_dds+set}" = set; then
3222   enableval="$enable_dds"
3223
3224         ol_arg=invalid
3225         for ol_val in no yes mod ; do
3226                 if test "$enableval" = "$ol_val" ; then
3227                         ol_arg="$ol_val"
3228                 fi
3229         done
3230         if test "$ol_arg" = "invalid" ; then
3231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3233    { (exit 1); exit 1; }; }
3234         fi
3235         ol_enable_dds="$ol_arg"
3236
3237 else
3238         ol_enable_dds=${ol_enable_overlays:-no}
3239 fi;
3240 # end --enable-dds
3241
3242 # OpenLDAP --enable-denyop
3243
3244         # Check whether --enable-denyop or --disable-denyop was given.
3245 if test "${enable_denyop+set}" = set; then
3246   enableval="$enable_denyop"
3247
3248         ol_arg=invalid
3249         for ol_val in no yes mod ; do
3250                 if test "$enableval" = "$ol_val" ; then
3251                         ol_arg="$ol_val"
3252                 fi
3253         done
3254         if test "$ol_arg" = "invalid" ; then
3255                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3256 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3257    { (exit 1); exit 1; }; }
3258         fi
3259         ol_enable_denyop="$ol_arg"
3260
3261 else
3262         ol_enable_denyop=${ol_enable_overlays:-no}
3263 fi;
3264 # end --enable-denyop
3265
3266 # OpenLDAP --enable-dyngroup
3267
3268         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3269 if test "${enable_dyngroup+set}" = set; then
3270   enableval="$enable_dyngroup"
3271
3272         ol_arg=invalid
3273         for ol_val in no yes mod ; do
3274                 if test "$enableval" = "$ol_val" ; then
3275                         ol_arg="$ol_val"
3276                 fi
3277         done
3278         if test "$ol_arg" = "invalid" ; then
3279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3280 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3281    { (exit 1); exit 1; }; }
3282         fi
3283         ol_enable_dyngroup="$ol_arg"
3284
3285 else
3286         ol_enable_dyngroup=${ol_enable_overlays:-no}
3287 fi;
3288 # end --enable-dyngroup
3289
3290 # OpenLDAP --enable-dynlist
3291
3292         # Check whether --enable-dynlist or --disable-dynlist was given.
3293 if test "${enable_dynlist+set}" = set; then
3294   enableval="$enable_dynlist"
3295
3296         ol_arg=invalid
3297         for ol_val in no yes mod ; do
3298                 if test "$enableval" = "$ol_val" ; then
3299                         ol_arg="$ol_val"
3300                 fi
3301         done
3302         if test "$ol_arg" = "invalid" ; then
3303                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3304 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3305    { (exit 1); exit 1; }; }
3306         fi
3307         ol_enable_dynlist="$ol_arg"
3308
3309 else
3310         ol_enable_dynlist=${ol_enable_overlays:-no}
3311 fi;
3312 # end --enable-dynlist
3313
3314 # OpenLDAP --enable-lastmod
3315
3316         # Check whether --enable-lastmod or --disable-lastmod was given.
3317 if test "${enable_lastmod+set}" = set; then
3318   enableval="$enable_lastmod"
3319
3320         ol_arg=invalid
3321         for ol_val in no yes mod ; do
3322                 if test "$enableval" = "$ol_val" ; then
3323                         ol_arg="$ol_val"
3324                 fi
3325         done
3326         if test "$ol_arg" = "invalid" ; then
3327                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3328 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3329    { (exit 1); exit 1; }; }
3330         fi
3331         ol_enable_lastmod="$ol_arg"
3332
3333 else
3334         ol_enable_lastmod=${ol_enable_overlays:-no}
3335 fi;
3336 # end --enable-lastmod
3337
3338 # OpenLDAP --enable-ppolicy
3339
3340         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3341 if test "${enable_ppolicy+set}" = set; then
3342   enableval="$enable_ppolicy"
3343
3344         ol_arg=invalid
3345         for ol_val in no yes mod ; do
3346                 if test "$enableval" = "$ol_val" ; then
3347                         ol_arg="$ol_val"
3348                 fi
3349         done
3350         if test "$ol_arg" = "invalid" ; then
3351                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3353    { (exit 1); exit 1; }; }
3354         fi
3355         ol_enable_ppolicy="$ol_arg"
3356
3357 else
3358         ol_enable_ppolicy=${ol_enable_overlays:-no}
3359 fi;
3360 # end --enable-ppolicy
3361
3362 # OpenLDAP --enable-proxycache
3363
3364         # Check whether --enable-proxycache or --disable-proxycache was given.
3365 if test "${enable_proxycache+set}" = set; then
3366   enableval="$enable_proxycache"
3367
3368         ol_arg=invalid
3369         for ol_val in no yes mod ; do
3370                 if test "$enableval" = "$ol_val" ; then
3371                         ol_arg="$ol_val"
3372                 fi
3373         done
3374         if test "$ol_arg" = "invalid" ; then
3375                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3376 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3377    { (exit 1); exit 1; }; }
3378         fi
3379         ol_enable_proxycache="$ol_arg"
3380
3381 else
3382         ol_enable_proxycache=${ol_enable_overlays:-no}
3383 fi;
3384 # end --enable-proxycache
3385
3386 # OpenLDAP --enable-refint
3387
3388         # Check whether --enable-refint or --disable-refint was given.
3389 if test "${enable_refint+set}" = set; then
3390   enableval="$enable_refint"
3391
3392         ol_arg=invalid
3393         for ol_val in no yes mod ; do
3394                 if test "$enableval" = "$ol_val" ; then
3395                         ol_arg="$ol_val"
3396                 fi
3397         done
3398         if test "$ol_arg" = "invalid" ; then
3399                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3400 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3401    { (exit 1); exit 1; }; }
3402         fi
3403         ol_enable_refint="$ol_arg"
3404
3405 else
3406         ol_enable_refint=${ol_enable_overlays:-no}
3407 fi;
3408 # end --enable-refint
3409
3410 # OpenLDAP --enable-retcode
3411
3412         # Check whether --enable-retcode or --disable-retcode was given.
3413 if test "${enable_retcode+set}" = set; then
3414   enableval="$enable_retcode"
3415
3416         ol_arg=invalid
3417         for ol_val in no yes mod ; do
3418                 if test "$enableval" = "$ol_val" ; then
3419                         ol_arg="$ol_val"
3420                 fi
3421         done
3422         if test "$ol_arg" = "invalid" ; then
3423                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3424 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3425    { (exit 1); exit 1; }; }
3426         fi
3427         ol_enable_retcode="$ol_arg"
3428
3429 else
3430         ol_enable_retcode=${ol_enable_overlays:-no}
3431 fi;
3432 # end --enable-retcode
3433
3434 # OpenLDAP --enable-rwm
3435
3436         # Check whether --enable-rwm or --disable-rwm was given.
3437 if test "${enable_rwm+set}" = set; then
3438   enableval="$enable_rwm"
3439
3440         ol_arg=invalid
3441         for ol_val in no yes mod ; do
3442                 if test "$enableval" = "$ol_val" ; then
3443                         ol_arg="$ol_val"
3444                 fi
3445         done
3446         if test "$ol_arg" = "invalid" ; then
3447                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3449    { (exit 1); exit 1; }; }
3450         fi
3451         ol_enable_rwm="$ol_arg"
3452
3453 else
3454         ol_enable_rwm=${ol_enable_overlays:-no}
3455 fi;
3456 # end --enable-rwm
3457
3458 # OpenLDAP --enable-seqmod
3459
3460         # Check whether --enable-seqmod or --disable-seqmod was given.
3461 if test "${enable_seqmod+set}" = set; then
3462   enableval="$enable_seqmod"
3463
3464         ol_arg=invalid
3465         for ol_val in no yes mod ; do
3466                 if test "$enableval" = "$ol_val" ; then
3467                         ol_arg="$ol_val"
3468                 fi
3469         done
3470         if test "$ol_arg" = "invalid" ; then
3471                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3472 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3473    { (exit 1); exit 1; }; }
3474         fi
3475         ol_enable_seqmod="$ol_arg"
3476
3477 else
3478         ol_enable_seqmod=${ol_enable_overlays:-yes}
3479 fi;
3480 # end --enable-seqmod
3481
3482 # OpenLDAP --enable-syncprov
3483
3484         # Check whether --enable-syncprov or --disable-syncprov was given.
3485 if test "${enable_syncprov+set}" = set; then
3486   enableval="$enable_syncprov"
3487
3488         ol_arg=invalid
3489         for ol_val in no yes mod ; do
3490                 if test "$enableval" = "$ol_val" ; then
3491                         ol_arg="$ol_val"
3492                 fi
3493         done
3494         if test "$ol_arg" = "invalid" ; then
3495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3496 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3497    { (exit 1); exit 1; }; }
3498         fi
3499         ol_enable_syncprov="$ol_arg"
3500
3501 else
3502         ol_enable_syncprov=${ol_enable_overlays:-yes}
3503 fi;
3504 # end --enable-syncprov
3505
3506 # OpenLDAP --enable-translucent
3507
3508         # Check whether --enable-translucent or --disable-translucent was given.
3509 if test "${enable_translucent+set}" = set; then
3510   enableval="$enable_translucent"
3511
3512         ol_arg=invalid
3513         for ol_val in no yes mod ; do
3514                 if test "$enableval" = "$ol_val" ; then
3515                         ol_arg="$ol_val"
3516                 fi
3517         done
3518         if test "$ol_arg" = "invalid" ; then
3519                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3520 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3521    { (exit 1); exit 1; }; }
3522         fi
3523         ol_enable_translucent="$ol_arg"
3524
3525 else
3526         ol_enable_translucent=${ol_enable_overlays:-no}
3527 fi;
3528 # end --enable-translucent
3529
3530 # OpenLDAP --enable-unique
3531
3532         # Check whether --enable-unique or --disable-unique was given.
3533 if test "${enable_unique+set}" = set; then
3534   enableval="$enable_unique"
3535
3536         ol_arg=invalid
3537         for ol_val in no yes mod ; do
3538                 if test "$enableval" = "$ol_val" ; then
3539                         ol_arg="$ol_val"
3540                 fi
3541         done
3542         if test "$ol_arg" = "invalid" ; then
3543                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3545    { (exit 1); exit 1; }; }
3546         fi
3547         ol_enable_unique="$ol_arg"
3548
3549 else
3550         ol_enable_unique=${ol_enable_overlays:-no}
3551 fi;
3552 # end --enable-unique
3553
3554 # OpenLDAP --enable-valsort
3555
3556         # Check whether --enable-valsort or --disable-valsort was given.
3557 if test "${enable_valsort+set}" = set; then
3558   enableval="$enable_valsort"
3559
3560         ol_arg=invalid
3561         for ol_val in no yes mod ; do
3562                 if test "$enableval" = "$ol_val" ; then
3563                         ol_arg="$ol_val"
3564                 fi
3565         done
3566         if test "$ol_arg" = "invalid" ; then
3567                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3568 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3569    { (exit 1); exit 1; }; }
3570         fi
3571         ol_enable_valsort="$ol_arg"
3572
3573 else
3574         ol_enable_valsort=${ol_enable_overlays:-no}
3575 fi;
3576 # end --enable-valsort
3577
3578
3579 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3580 if test "${enable_xxslurpdoptions+set}" = set; then
3581   enableval="$enable_xxslurpdoptions"
3582
3583 fi;
3584 # OpenLDAP --enable-slurpd
3585
3586         # Check whether --enable-slurpd or --disable-slurpd was given.
3587 if test "${enable_slurpd+set}" = set; then
3588   enableval="$enable_slurpd"
3589
3590         ol_arg=invalid
3591         for ol_val in auto yes no ; do
3592                 if test "$enableval" = "$ol_val" ; then
3593                         ol_arg="$ol_val"
3594                 fi
3595         done
3596         if test "$ol_arg" = "invalid" ; then
3597                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3598 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3599    { (exit 1); exit 1; }; }
3600         fi
3601         ol_enable_slurpd="$ol_arg"
3602
3603 else
3604         ol_enable_slurpd=auto
3605 fi;
3606 # end --enable-slurpd
3607
3608 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3609 if test "${enable_xxliboptions+set}" = set; then
3610   enableval="$enable_xxliboptions"
3611
3612 fi;
3613 # Check whether --enable-static or --disable-static was given.
3614 if test "${enable_static+set}" = set; then
3615   enableval="$enable_static"
3616   p=${PACKAGE-default}
3617     case $enableval in
3618     yes) enable_static=yes ;;
3619     no) enable_static=no ;;
3620     *)
3621      enable_static=no
3622       # Look at the argument we got.  We use all the common list separators.
3623       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3624       for pkg in $enableval; do
3625         IFS="$lt_save_ifs"
3626         if test "X$pkg" = "X$p"; then
3627           enable_static=yes
3628         fi
3629       done
3630       IFS="$lt_save_ifs"
3631       ;;
3632     esac
3633 else
3634   enable_static=yes
3635 fi;
3636
3637 # Check whether --enable-shared or --disable-shared was given.
3638 if test "${enable_shared+set}" = set; then
3639   enableval="$enable_shared"
3640   p=${PACKAGE-default}
3641     case $enableval in
3642     yes) enable_shared=yes ;;
3643     no) enable_shared=no ;;
3644     *)
3645       enable_shared=no
3646       # Look at the argument we got.  We use all the common list separators.
3647       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3648       for pkg in $enableval; do
3649         IFS="$lt_save_ifs"
3650         if test "X$pkg" = "X$p"; then
3651           enable_shared=yes
3652         fi
3653       done
3654       IFS="$lt_save_ifs"
3655       ;;
3656     esac
3657 else
3658   enable_shared=yes
3659 fi;
3660
3661
3662
3663 # validate options
3664 if test $ol_enable_slapd = no ; then
3665                 if test $ol_enable_slapi = yes ; then
3666                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3667 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3668         fi
3669         case "$ol_enable_backends" in yes | mod)
3670                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3672         esac
3673         for i in $Backends; do
3674                 eval "ol_tmp=\$ol_enable_$i"
3675                 if test $ol_tmp != no ; then
3676                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3677 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3678                         eval "ol_enable_$i=no"
3679                 fi
3680         done
3681         if test $ol_enable_modules = yes ; then
3682                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3683 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3684         fi
3685         if test $ol_enable_wrappers = yes ; then
3686                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3687 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3688         fi
3689         if test $ol_enable_rlookups = yes ; then
3690                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3691 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3692         fi
3693         if test $ol_enable_dynacl = yes ; then
3694                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3695 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3696         fi
3697         if test $ol_enable_aci != no ; then
3698                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3699 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3700         fi
3701         if test $ol_enable_slurpd = yes ; then
3702                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3703 echo "$as_me: error: slurpd requires slapd" >&2;}
3704    { (exit 1); exit 1; }; }
3705         fi
3706         if test $ol_enable_rewrite = yes ; then
3707                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3708 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3709         fi
3710                 case "$ol_enable_overlays" in yes | mod)
3711                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3712 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3713         esac
3714         for i in $Overlays; do
3715                 eval "ol_tmp=\$ol_enable_$i"
3716                 if test $ol_tmp != no ; then
3717                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3718 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3719                         eval "ol_enable_$i=no"
3720                 fi
3721         done
3722
3723         # force settings to no
3724         ol_enable_slapi=no
3725
3726         ol_enable_backends=
3727         ol_enable_overlays=
3728         ol_enable_modules=no
3729         ol_enable_rlookups=no
3730         ol_enable_dynacl=no
3731         ol_enable_aci=no
3732         ol_enable_wrappers=no
3733
3734         ol_enable_slurpd=no
3735
3736         ol_enable_rewrite=no
3737
3738 elif test $ol_enable_modules != yes &&
3739         test $ol_enable_bdb = no &&
3740         test $ol_enable_dnssrv = no &&
3741         test $ol_enable_hdb = no &&
3742         test $ol_enable_ldap = no &&
3743         test $ol_enable_meta = no &&
3744         test $ol_enable_monitor = no &&
3745         test $ol_enable_null = no &&
3746         test $ol_enable_passwd = no &&
3747         test $ol_enable_perl = no &&
3748         test $ol_enable_relay = no &&
3749         test $ol_enable_shell = no &&
3750         test $ol_enable_sql = no ; then
3751
3752         if test $ol_enable_slapd = yes ; then
3753                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3754 echo "$as_me: error: slapd requires a backend" >&2;}
3755    { (exit 1); exit 1; }; }
3756         else
3757                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3758 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3759                 ol_enable_slapd=no
3760         fi
3761 fi
3762
3763 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3764         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3765 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3766    { (exit 1); exit 1; }; }
3767 fi
3768
3769 if test $ol_enable_slurpd = yes ; then
3770                 if test $ol_with_threads = no ; then
3771                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3772 echo "$as_me: error: slurpd requires threads" >&2;}
3773    { (exit 1); exit 1; }; }
3774         fi
3775 fi
3776
3777 if test $ol_enable_lmpasswd = yes ; then
3778         if test $ol_with_tls = no ; then
3779                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3780 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3781    { (exit 1); exit 1; }; }
3782         fi
3783 fi
3784
3785 if test $ol_enable_kbind = yes ; then
3786         if test $ol_with_kerberos = no ; then
3787                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3788 echo "$as_me: error: options require --with-kerberos" >&2;}
3789    { (exit 1); exit 1; }; }
3790         elif test $ol_with_kerberos = auto ; then
3791                 ol_with_kerberos=yes
3792         fi
3793
3794 elif test $ol_enable_kbind = no ; then
3795         if test $ol_with_kerberos = auto ; then
3796                 ol_with_kerberos=no
3797         elif test $ol_with_kerberos != no ; then
3798                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3799 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3800                 ol_with_kerberos=no
3801         fi
3802 fi
3803
3804 if test $ol_enable_spasswd = yes ; then
3805         if test $ol_with_cyrus_sasl = no ; then
3806                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3807 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3808    { (exit 1); exit 1; }; }
3809         fi
3810         ol_with_cyrus_sasl=yes
3811 fi
3812
3813 echo "$as_me:$LINENO: result: done" >&5
3814 echo "${ECHO_T}done" >&6
3815
3816 LDAP_LIBS=
3817 BDB_LIBS=
3818 LTHREAD_LIBS=
3819 LUTIL_LIBS=
3820
3821 SLAPD_LIBS=
3822 SLURPD_LIBS=
3823
3824 BUILD_SLAPD=no
3825 BUILD_SLURPD=no
3826
3827 BUILD_THREAD=no
3828
3829 BUILD_SLAPI=no
3830 SLAPD_SLAPI_DEPEND=
3831
3832 BUILD_BDB=no
3833 BUILD_DNSSRV=no
3834 BUILD_HDB=no
3835 BUILD_LDAP=no
3836 BUILD_META=no
3837 BUILD_MONITOR=no
3838 BUILD_NULL=no
3839 BUILD_PASSWD=no
3840 BUILD_PERL=no
3841 BUILD_RELAY=no
3842 BUILD_SHELL=no
3843 BUILD_SQL=no
3844
3845 BUILD_ACCESSLOG=no
3846 BUILD_AUDITLOG=no
3847 BUILD_CONSTRAINT=no
3848 BUILD_DDS=no
3849 BUILD_DENYOP=no
3850 BUILD_DYNGROUP=no
3851 BUILD_DYNLIST=no
3852 BUILD_LASTMOD=no
3853 BUILD_PPOLICY=no
3854 BUILD_PROXYCACHE=no
3855 BUILD_REFINT=no
3856 BUILD_RETCODE=no
3857 BUILD_RWM=no
3858 BUILD_SEQMOD=no
3859 BUILD_SYNCPROV=no
3860 BUILD_TRANSLUCENT=no
3861 BUILD_UNIQUE=no
3862 BUILD_VALSORT=no
3863
3864 SLAPD_STATIC_OVERLAYS=
3865 SLAPD_DYNAMIC_OVERLAYS=
3866
3867 SLAPD_MODULES_LDFLAGS=
3868 SLAPD_MODULES_CPPFLAGS=
3869
3870 SLAPD_STATIC_BACKENDS=back-ldif
3871 SLAPD_DYNAMIC_BACKENDS=
3872
3873 SLAPD_PERL_LDFLAGS=
3874 MOD_PERL_LDFLAGS=
3875 PERL_CPPFLAGS=
3876
3877 SLAPD_SQL_LDFLAGS=
3878 SLAPD_SQL_LIBS=
3879 SLAPD_SQL_INCLUDES=
3880
3881 KRB4_LIBS=
3882 KRB5_LIBS=
3883 SASL_LIBS=
3884 TLS_LIBS=
3885 MODULES_LIBS=
3886 SLAPI_LIBS=
3887 LIBSLAPI=
3888 LIBSLAPITOOLS=
3889 AUTH_LIBS=
3890 ICU_LIBS=
3891
3892 SLAPD_SLP_LIBS=
3893 SLAPD_GMP_LIBS=
3894
3895
3896
3897 cat >>confdefs.h <<\_ACEOF
3898 #define HAVE_MKVERSION 1
3899 _ACEOF
3900
3901
3902
3903
3904 ol_aix_threads=no
3905 case "$target" in
3906 *-*-aix*)       if test -z "$CC" ; then
3907                 case "$ol_with_threads" in
3908                 auto | yes |  posix) ol_aix_threads=yes ;;
3909                 esac
3910         fi
3911 ;;
3912 esac
3913
3914 if test $ol_aix_threads = yes ; then
3915         if test -z "${CC}" ; then
3916                 for ac_prog in cc_r xlc_r cc
3917 do
3918   # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923   echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925   if test -n "$CC"; then
3926   ac_cv_prog_CC="$CC" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933   for ac_exec_ext in '' $ac_executable_extensions; do
3934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935     ac_cv_prog_CC="$ac_prog"
3936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937     break 2
3938   fi
3939 done
3940 done
3941
3942 fi
3943 fi
3944 CC=$ac_cv_prog_CC
3945 if test -n "$CC"; then
3946   echo "$as_me:$LINENO: result: $CC" >&5
3947 echo "${ECHO_T}$CC" >&6
3948 else
3949   echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3951 fi
3952
3953   test -n "$CC" && break
3954 done
3955
3956
3957                 if test "$CC" = cc ; then
3958                                                 if test $ol_with_threads != auto ; then
3959                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3960 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3961    { (exit 1); exit 1; }; }
3962                         else
3963                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3964 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3965                         fi
3966                         ol_with_threads=no
3967                 fi
3968         fi
3969
3970         case ${CC} in cc_r | xlc_r)
3971                 ol_with_threads=posix
3972                 ol_cv_pthread_create=yes
3973                 ;;
3974         esac
3975 fi
3976
3977 if test -z "${CC}"; then
3978         for ac_prog in cc gcc
3979 do
3980   # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$CC"; then
3988   ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_CC="$ac_prog"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004 fi
4005 fi
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008   echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4010 else
4011   echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4013 fi
4014
4015   test -n "$CC" && break
4016 done
4017 test -n "$CC" || CC="missing"
4018
4019
4020         if test "${CC}" = "missing" ; then
4021                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4022 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4023    { (exit 1); exit 1; }; }
4024         fi
4025 fi
4026
4027 if test -z "${AR}"; then
4028         for ac_prog in ar gar
4029 do
4030   # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_AR+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   if test -n "$AR"; then
4038   ac_cv_prog_AR="$AR" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045   for ac_exec_ext in '' $ac_executable_extensions; do
4046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047     ac_cv_prog_AR="$ac_prog"
4048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052 done
4053
4054 fi
4055 fi
4056 AR=$ac_cv_prog_AR
4057 if test -n "$AR"; then
4058   echo "$as_me:$LINENO: result: $AR" >&5
4059 echo "${ECHO_T}$AR" >&6
4060 else
4061   echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4063 fi
4064
4065   test -n "$AR" && break
4066 done
4067 test -n "$AR" || AR="missing"
4068
4069
4070         if test "${AR}" = "missing" ; then
4071                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4072 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4073    { (exit 1); exit 1; }; }
4074         fi
4075 fi
4076
4077
4078
4079
4080
4081 # Check whether --enable-fast-install or --disable-fast-install was given.
4082 if test "${enable_fast_install+set}" = set; then
4083   enableval="$enable_fast_install"
4084   p=${PACKAGE-default}
4085     case $enableval in
4086     yes) enable_fast_install=yes ;;
4087     no) enable_fast_install=no ;;
4088     *)
4089       enable_fast_install=no
4090       # Look at the argument we got.  We use all the common list separators.
4091       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4092       for pkg in $enableval; do
4093         IFS="$lt_save_ifs"
4094         if test "X$pkg" = "X$p"; then
4095           enable_fast_install=yes
4096         fi
4097       done
4098       IFS="$lt_save_ifs"
4099       ;;
4100     esac
4101 else
4102   enable_fast_install=yes
4103 fi;
4104
4105 DEPDIR="${am__leading_dot}deps"
4106
4107           ac_config_commands="$ac_config_commands depfiles"
4108
4109
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4112 am__doit:
4113         @echo done
4114 .PHONY: am__doit
4115 END
4116 # If we don't find an include directive, just comment out the code.
4117 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4118 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4119 am__include="#"
4120 am__quote=
4121 _am_result=none
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # We grep out `Entering directory' and `Leaving directory'
4125 # messages which can occur if `w' ends up in MAKEFLAGS.
4126 # In particular we don't look at `^make:' because GNU make might
4127 # be invoked under some other name (usually "gmake"), in which
4128 # case it prints its new name instead of `make'.
4129 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4130    am__include=include
4131    am__quote=
4132    _am_result=GNU
4133 fi
4134 # Now try BSD make style include.
4135 if test "$am__include" = "#"; then
4136    echo '.include "confinc"' > confmf
4137    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4138       am__include=.include
4139       am__quote="\""
4140       _am_result=BSD
4141    fi
4142 fi
4143
4144
4145 echo "$as_me:$LINENO: result: $_am_result" >&5
4146 echo "${ECHO_T}$_am_result" >&6
4147 rm -f confinc confmf
4148
4149 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then
4151   enableval="$enable_dependency_tracking"
4152
4153 fi;
4154 if test "x$enable_dependency_tracking" != xno; then
4155   am_depcomp="$ac_aux_dir/depcomp"
4156   AMDEPBACKSLASH='\'
4157 fi
4158
4159
4160 if test "x$enable_dependency_tracking" != xno; then
4161   AMDEP_TRUE=
4162   AMDEP_FALSE='#'
4163 else
4164   AMDEP_TRUE='#'
4165   AMDEP_FALSE=
4166 fi
4167
4168
4169
4170 ac_ext=c
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test -n "$ac_tool_prefix"; then
4176   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_CC+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$CC"; then
4184   ac_cv_prog_CC="$CC" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 CC=$ac_cv_prog_CC
4203 if test -n "$CC"; then
4204   echo "$as_me:$LINENO: result: $CC" >&5
4205 echo "${ECHO_T}$CC" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211 fi
4212 if test -z "$ac_cv_prog_CC"; then
4213   ac_ct_CC=$CC
4214   # Extract the first word of "gcc", so it can be a program name with args.
4215 set dummy gcc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$ac_ct_CC"; then
4222   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_ac_ct_CC="gcc"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237
4238 fi
4239 fi
4240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241 if test -n "$ac_ct_CC"; then
4242   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4243 echo "${ECHO_T}$ac_ct_CC" >&6
4244 else
4245   echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4247 fi
4248
4249   CC=$ac_ct_CC
4250 else
4251   CC="$ac_cv_prog_CC"
4252 fi
4253
4254 if test -z "$CC"; then
4255   if test -n "$ac_tool_prefix"; then
4256   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}cc; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_CC+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   if test -n "$CC"; then
4264   ac_cv_prog_CC="$CC" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271   for ac_exec_ext in '' $ac_executable_extensions; do
4272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_CC="${ac_tool_prefix}cc"
4274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278 done
4279
4280 fi
4281 fi
4282 CC=$ac_cv_prog_CC
4283 if test -n "$CC"; then
4284   echo "$as_me:$LINENO: result: $CC" >&5
4285 echo "${ECHO_T}$CC" >&6
4286 else
4287   echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4289 fi
4290
4291 fi
4292 if test -z "$ac_cv_prog_CC"; then
4293   ac_ct_CC=$CC
4294   # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   if test -n "$ac_ct_CC"; then
4302   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_prog_ac_ct_CC="cc"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317
4318 fi
4319 fi
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4321 if test -n "$ac_ct_CC"; then
4322   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4323 echo "${ECHO_T}$ac_ct_CC" >&6
4324 else
4325   echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4327 fi
4328
4329   CC=$ac_ct_CC
4330 else
4331   CC="$ac_cv_prog_CC"
4332 fi
4333
4334 fi
4335 if test -z "$CC"; then
4336   # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   if test -n "$CC"; then
4344   ac_cv_prog_CC="$CC" # Let the user override the test.
4345 else
4346   ac_prog_rejected=no
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352   for ac_exec_ext in '' $ac_executable_extensions; do
4353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355        ac_prog_rejected=yes
4356        continue
4357      fi
4358     ac_cv_prog_CC="cc"
4359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363 done
4364
4365 if test $ac_prog_rejected = yes; then
4366   # We found a bogon in the path, so make sure we never use it.
4367   set dummy $ac_cv_prog_CC
4368   shift
4369   if test $# != 0; then
4370     # We chose a different compiler from the bogus one.
4371     # However, it has the same basename, so the bogon will be chosen
4372     # first if we set CC to just the basename; use the full file name.
4373     shift
4374     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4375   fi
4376 fi
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381   echo "$as_me:$LINENO: result: $CC" >&5
4382 echo "${ECHO_T}$CC" >&6
4383 else
4384   echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4386 fi
4387
4388 fi
4389 if test -z "$CC"; then
4390   if test -n "$ac_tool_prefix"; then
4391   for ac_prog in cl
4392   do
4393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_CC+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if test -n "$CC"; then
4401   ac_cv_prog_CC="$CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408   for ac_exec_ext in '' $ac_executable_extensions; do
4409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415 done
4416
4417 fi
4418 fi
4419 CC=$ac_cv_prog_CC
4420 if test -n "$CC"; then
4421   echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6
4423 else
4424   echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 fi
4427
4428     test -n "$CC" && break
4429   done
4430 fi
4431 if test -z "$CC"; then
4432   ac_ct_CC=$CC
4433   for ac_prog in cl
4434 do
4435   # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   if test -n "$ac_ct_CC"; then
4443   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452     ac_cv_prog_ac_ct_CC="$ac_prog"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458
4459 fi
4460 fi
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4464 echo "${ECHO_T}$ac_ct_CC" >&6
4465 else
4466   echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4468 fi
4469
4470   test -n "$ac_ct_CC" && break
4471 done
4472
4473   CC=$ac_ct_CC
4474 fi
4475
4476 fi
4477
4478
4479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&2;}
4483    { (exit 1); exit 1; }; }
4484
4485 # Provide some information about the compiler.
4486 echo "$as_me:$LINENO:" \
4487      "checking for C compiler version" >&5
4488 ac_compiler=`set X $ac_compile; echo $2`
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4490   (eval $ac_compiler --version </dev/null >&5) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }
4494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4495   (eval $ac_compiler -v </dev/null >&5) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }
4499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4500   (eval $ac_compiler -V </dev/null >&5) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }
4504
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511
4512 int
4513 main ()
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 ac_clean_files_save=$ac_clean_files
4521 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4522 # Try to create an executable without -o first, disregard a.out.
4523 # It will help us diagnose broken compilers, and finding out an intuition
4524 # of exeext.
4525 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4526 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4527 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4529   (eval $ac_link_default) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; then
4533   # Find the output, starting from the most likely.  This scheme is
4534 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4535 # resort.
4536
4537 # Be careful to initialize this variable, since it used to be cached.
4538 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4539 ac_cv_exeext=
4540 # b.out is created by i960 compilers.
4541 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4542 do
4543   test -f "$ac_file" || continue
4544   case $ac_file in
4545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4546         ;;
4547     conftest.$ac_ext )
4548         # This is the source file.
4549         ;;
4550     [ab].out )
4551         # We found the default executable, but exeext='' is most
4552         # certainly right.
4553         break;;
4554     *.* )
4555         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556         # FIXME: I believe we export ac_cv_exeext for Libtool,
4557         # but it would be cool to find out if it's true.  Does anybody
4558         # maintain Libtool? --akim.
4559         export ac_cv_exeext
4560         break;;
4561     * )
4562         break;;
4563   esac
4564 done
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&2;}
4573    { (exit 77); exit 77; }; }
4574 fi
4575
4576 ac_exeext=$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_file" >&5
4578 echo "${ECHO_T}$ac_file" >&6
4579
4580 # Check the compiler produces executables we can run.  If not, either
4581 # the compiler is broken, or we cross compile.
4582 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4583 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4584 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4585 # If not cross compiling, check that we can run a simple program.
4586 if test "$cross_compiling" != yes; then
4587   if { ac_try='./$ac_file'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593     cross_compiling=no
4594   else
4595     if test "$cross_compiling" = maybe; then
4596         cross_compiling=yes
4597     else
4598         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4599 If you meant to cross compile, use \`--host'.
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot run C compiled programs.
4602 If you meant to cross compile, use \`--host'.
4603 See \`config.log' for more details." >&2;}
4604    { (exit 1); exit 1; }; }
4605     fi
4606   fi
4607 fi
4608 echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6
4610
4611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 # Check the compiler produces executables we can run.  If not, either
4614 # the compiler is broken, or we cross compile.
4615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4618 echo "${ECHO_T}$cross_compiling" >&6
4619
4620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623   (eval $ac_link) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; then
4627   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4628 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4629 # work properly (i.e., refer to `conftest.exe'), while it won't with
4630 # `rm'.
4631 for ac_file in conftest.exe conftest conftest.*; do
4632   test -f "$ac_file" || continue
4633   case $ac_file in
4634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4635     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4636           export ac_cv_exeext
4637           break;;
4638     * ) break;;
4639   esac
4640 done
4641 else
4642   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&2;}
4646    { (exit 1); exit 1; }; }
4647 fi
4648
4649 rm -f conftest$ac_cv_exeext
4650 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4651 echo "${ECHO_T}$ac_cv_exeext" >&6
4652
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4655 ac_exeext=$EXEEXT
4656 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4658 if test "${ac_cv_objext+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h.  */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h.  */
4667
4668 int
4669 main ()
4670 {
4671
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.o conftest.obj
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678   (eval $ac_compile) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; then
4682   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4683   case $ac_file in
4684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4685     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686        break;;
4687   esac
4688 done
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&2;}
4697    { (exit 1); exit 1; }; }
4698 fi
4699
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4703 echo "${ECHO_T}$ac_cv_objext" >&6
4704 OBJEXT=$ac_cv_objext
4705 ac_objext=$OBJEXT
4706 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h.  */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h.  */
4717
4718 int
4719 main ()
4720 {
4721 #ifndef __GNUC__
4722        choke me
4723 #endif
4724
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731   (eval $ac_compile) 2>conftest.er1
4732   ac_status=$?
4733   grep -v '^ *+' conftest.er1 >conftest.err
4734   rm -f conftest.er1
4735   cat conftest.err >&5
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } &&
4738          { ac_try='test -z "$ac_c_werror_flag"
4739                          || test ! -s conftest.err'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; } &&
4745          { ac_try='test -s conftest.$ac_objext'
4746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747   (eval $ac_try) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; }; then
4751   ac_compiler_gnu=yes
4752 else
4753   echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 ac_compiler_gnu=no
4757 fi
4758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4760
4761 fi
4762 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4763 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4764 GCC=`test $ac_compiler_gnu = yes && echo yes`
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4767 CFLAGS="-g"
4768 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4769 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4770 if test "${ac_cv_prog_cc_g+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779
4780 int
4781 main ()
4782 {
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790   (eval $ac_compile) 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } &&
4797          { ac_try='test -z "$ac_c_werror_flag"
4798                          || test ! -s conftest.err'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   ac_cv_prog_cc_g=yes
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_cv_prog_cc_g=no
4816 fi
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 fi
4819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4821 if test "$ac_test_CFLAGS" = set; then
4822   CFLAGS=$ac_save_CFLAGS
4823 elif test $ac_cv_prog_cc_g = yes; then
4824   if test "$GCC" = yes; then
4825     CFLAGS="-g -O2"
4826   else
4827     CFLAGS="-g"
4828   fi
4829 else
4830   if test "$GCC" = yes; then
4831     CFLAGS="-O2"
4832   else
4833     CFLAGS=
4834   fi
4835 fi
4836 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4837 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4838 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   ac_cv_prog_cc_stdc=no
4842 ac_save_CC=$CC
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849 #include <stdarg.h>
4850 #include <stdio.h>
4851 #include <sys/types.h>
4852 #include <sys/stat.h>
4853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4854 struct buf { int x; };
4855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856 static char *e (p, i)
4857      char **p;
4858      int i;
4859 {
4860   return p[i];
4861 }
4862 static char *f (char * (*g) (char **, int), char **p, ...)
4863 {
4864   char *s;
4865   va_list v;
4866   va_start (v,p);
4867   s = g (p, va_arg (v,int));
4868   va_end (v);
4869   return s;
4870 }
4871
4872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4873    function prototypes and stuff, but not '\xHH' hex character constants.
4874    These don't provoke an error unfortunately, instead are silently treated
4875    as 'x'.  The following induces an error, until -std1 is added to get
4876    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4877    array size at least.  It's necessary to write '\x00'==0 to get something
4878    that's true only with -std1.  */
4879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880
4881 int test (int i, double x);
4882 struct s1 {int (*f) (int a);};
4883 struct s2 {int (*f) (double a);};
4884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4885 int argc;
4886 char **argv;
4887 int
4888 main ()
4889 {
4890 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 # Don't try gcc -ansi; that turns off useful extensions and
4896 # breaks some systems' header files.
4897 # AIX                   -qlanglvl=ansi
4898 # Ultrix and OSF/1      -std1
4899 # HP-UX 10.20 and later -Ae
4900 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4901 # SVR4                  -Xc -D__EXTENSIONS__
4902 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4903 do
4904   CC="$ac_save_CC $ac_arg"
4905   rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907   (eval $ac_compile) 2>conftest.er1
4908   ac_status=$?
4909   grep -v '^ *+' conftest.er1 >conftest.err
4910   rm -f conftest.er1
4911   cat conftest.err >&5
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } &&
4914          { ac_try='test -z "$ac_c_werror_flag"
4915                          || test ! -s conftest.err'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; } &&
4921          { ac_try='test -s conftest.$ac_objext'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; }; then
4927   ac_cv_prog_cc_stdc=$ac_arg
4928 break
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 fi
4934 rm -f conftest.err conftest.$ac_objext
4935 done
4936 rm -f conftest.$ac_ext conftest.$ac_objext
4937 CC=$ac_save_CC
4938
4939 fi
4940
4941 case "x$ac_cv_prog_cc_stdc" in
4942   x|xno)
4943     echo "$as_me:$LINENO: result: none needed" >&5
4944 echo "${ECHO_T}none needed" >&6 ;;
4945   *)
4946     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4948     CC="$CC $ac_cv_prog_cc_stdc" ;;
4949 esac
4950
4951 # Some people use a C++ compiler to compile C.  Since we use `exit',
4952 # in C++ we need to declare it.  In case someone uses the same compiler
4953 # for both compiling C and C++ we need to have the C++ compiler decide
4954 # the declaration of exit, since it's the most demanding environment.
4955 cat >conftest.$ac_ext <<_ACEOF
4956 #ifndef __cplusplus
4957   choke me
4958 #endif
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962   (eval $ac_compile) 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -z "$ac_c_werror_flag"
4970                          || test ! -s conftest.err'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   for ac_declaration in \
4983    '' \
4984    'extern "C" void std::exit (int) throw (); using std::exit;' \
4985    'extern "C" void std::exit (int); using std::exit;' \
4986    'extern "C" void exit (int) throw ();' \
4987    'extern "C" void exit (int);' \
4988    'void exit (int);'
4989 do
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 $ac_declaration
4997 #include <stdlib.h>
4998 int
4999 main ()
5000 {
5001 exit (42);
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008   (eval $ac_compile) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -z "$ac_c_werror_flag"
5016                          || test ! -s conftest.err'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   :
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 continue
5034 fi
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036   cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h.  */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h.  */
5042 $ac_declaration
5043 int
5044 main ()
5045 {
5046 exit (42);
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053   (eval $ac_compile) 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } &&
5060          { ac_try='test -z "$ac_c_werror_flag"
5061                          || test ! -s conftest.err'
5062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063   (eval $ac_try) 2>&5
5064   ac_status=$?
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); }; } &&
5067          { ac_try='test -s conftest.$ac_objext'
5068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069   (eval $ac_try) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }; }; then
5073   break
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 fi
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 done
5081 rm -f conftest*
5082 if test -n "$ac_declaration"; then
5083   echo '#ifdef __cplusplus' >>confdefs.h
5084   echo $ac_declaration      >>confdefs.h
5085   echo '#endif'             >>confdefs.h
5086 fi
5087
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 fi
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_ext=c
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099
5100 depcc="$CC"   am_compiler_list=
5101
5102 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5103 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5104 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5108   # We make a subdir and do the tests there.  Otherwise we can end up
5109   # making bogus files that we don't know about and never remove.  For
5110   # instance it was reported that on HP-UX the gcc test will end up
5111   # making a dummy file named `D' -- because `-MD' means `put the output
5112   # in D'.
5113   mkdir conftest.dir
5114   # Copy depcomp to subdir because otherwise we won't find it if we're
5115   # using a relative directory.
5116   cp "$am_depcomp" conftest.dir
5117   cd conftest.dir
5118   # We will build objects and dependencies in a subdirectory because
5119   # it helps to detect inapplicable dependency modes.  For instance
5120   # both Tru64's cc and ICC support -MD to output dependencies as a
5121   # side effect of compilation, but ICC will put the dependencies in
5122   # the current directory while Tru64 will put them in the object
5123   # directory.
5124   mkdir sub
5125
5126   am_cv_CC_dependencies_compiler_type=none
5127   if test "$am_compiler_list" = ""; then
5128      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5129   fi
5130   for depmode in $am_compiler_list; do
5131     # Setup a source with many dependencies, because some compilers
5132     # like to wrap large dependency lists on column 80 (with \), and
5133     # we should not choose a depcomp mode which is confused by this.
5134     #
5135     # We need to recreate these files for each test, as the compiler may
5136     # overwrite some of them when testing with obscure command lines.
5137     # This happens at least with the AIX C compiler.
5138     : > sub/conftest.c
5139     for i in 1 2 3 4 5 6; do
5140       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142       # Solaris 8's {/usr,}/bin/sh.
5143       touch sub/conftst$i.h
5144     done
5145     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5146
5147     case $depmode in
5148     nosideeffect)
5149       # after this tag, mechanisms are not by side-effect, so they'll
5150       # only be used when explicitly requested
5151       if test "x$enable_dependency_tracking" = xyes; then
5152         continue
5153       else
5154         break
5155       fi
5156       ;;
5157     none) break ;;
5158     esac
5159     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5160     # mode.  It turns out that the SunPro C++ compiler does not properly
5161     # handle `-M -o', and we need to detect this.
5162     if depmode=$depmode \
5163        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5164        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5165        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5166          >/dev/null 2>conftest.err &&
5167        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5168        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5169        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5170       # icc doesn't choke on unknown options, it will just issue warnings
5171       # or remarks (even with -Werror).  So we grep stderr for any message
5172       # that says an option was ignored or not supported.
5173       # When given -MP, icc 7.0 and 7.1 complain thusly:
5174       #   icc: Command line warning: ignoring option '-M'; no argument required
5175       # The diagnosis changed in icc 8.0:
5176       #   icc: Command line remark: option '-MP' not supported
5177       if (grep 'ignoring option' conftest.err ||
5178           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5179         am_cv_CC_dependencies_compiler_type=$depmode
5180         break
5181       fi
5182     fi
5183   done
5184
5185   cd ..
5186   rm -rf conftest.dir
5187 else
5188   am_cv_CC_dependencies_compiler_type=none
5189 fi
5190
5191 fi
5192 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5193 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5195
5196
5197
5198 if
5199   test "x$enable_dependency_tracking" != xno \
5200   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5201   am__fastdepCC_TRUE=
5202   am__fastdepCC_FALSE='#'
5203 else
5204   am__fastdepCC_TRUE='#'
5205   am__fastdepCC_FALSE=
5206 fi
5207
5208
5209 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5210 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5211 if test "${lt_cv_path_SED+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   # Loop through the user's path and test for sed and gsed.
5215 # Then use that list of sed's as ones to test for truncation.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221   for lt_ac_prog in sed gsed; do
5222     for ac_exec_ext in '' $ac_executable_extensions; do
5223       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5224         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5225       fi
5226     done
5227   done
5228 done
5229 lt_ac_max=0
5230 lt_ac_count=0
5231 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5232 # along with /bin/sed that truncates output.
5233 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5234   test ! -f $lt_ac_sed && continue
5235   cat /dev/null > conftest.in
5236   lt_ac_count=0
5237   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5238   # Check for GNU sed and select it if it is found.
5239   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5240     lt_cv_path_SED=$lt_ac_sed
5241     break
5242   fi
5243   while true; do
5244     cat conftest.in conftest.in >conftest.tmp
5245     mv conftest.tmp conftest.in
5246     cp conftest.in conftest.nl
5247     echo >>conftest.nl
5248     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5249     cmp -s conftest.out conftest.nl || break
5250     # 10000 chars as input seems more than enough
5251     test $lt_ac_count -gt 10 && break
5252     lt_ac_count=`expr $lt_ac_count + 1`
5253     if test $lt_ac_count -gt $lt_ac_max; then
5254       lt_ac_max=$lt_ac_count
5255       lt_cv_path_SED=$lt_ac_sed
5256     fi
5257   done
5258 done
5259
5260 fi
5261
5262 SED=$lt_cv_path_SED
5263 echo "$as_me:$LINENO: result: $SED" >&5
5264 echo "${ECHO_T}$SED" >&6
5265
5266 echo "$as_me:$LINENO: checking for egrep" >&5
5267 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5268 if test "${ac_cv_prog_egrep+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5272     then ac_cv_prog_egrep='grep -E'
5273     else ac_cv_prog_egrep='egrep'
5274     fi
5275 fi
5276 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5277 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5278  EGREP=$ac_cv_prog_egrep
5279
5280
5281
5282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5283 if test "${with_gnu_ld+set}" = set; then
5284   withval="$with_gnu_ld"
5285   test "$withval" = no || with_gnu_ld=yes
5286 else
5287   with_gnu_ld=no
5288 fi;
5289 ac_prog=ld
5290 if test "$GCC" = yes; then
5291   # Check if gcc -print-prog-name=ld gives a path.
5292   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5294   case $host in
5295   *-*-mingw*)
5296     # gcc leaves a trailing carriage return which upsets mingw
5297     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5298   *)
5299     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5300   esac
5301   case $ac_prog in
5302     # Accept absolute paths.
5303     [\\/]* | ?:[\\/]*)
5304       re_direlt='/[^/][^/]*/\.\./'
5305       # Canonicalize the pathname of ld
5306       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5307       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5308         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5309       done
5310       test -z "$LD" && LD="$ac_prog"
5311       ;;
5312   "")
5313     # If it fails, then pretend we aren't using GCC.
5314     ac_prog=ld
5315     ;;
5316   *)
5317     # If it is relative, then search for the first ld in PATH.
5318     with_gnu_ld=unknown
5319     ;;
5320   esac
5321 elif test "$with_gnu_ld" = yes; then
5322   echo "$as_me:$LINENO: checking for GNU ld" >&5
5323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5324 else
5325   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5327 fi
5328 if test "${lt_cv_path_LD+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   if test -z "$LD"; then
5332   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5333   for ac_dir in $PATH; do
5334     IFS="$lt_save_ifs"
5335     test -z "$ac_dir" && ac_dir=.
5336     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337       lt_cv_path_LD="$ac_dir/$ac_prog"
5338       # Check to see if the program is GNU ld.  I'd rather use --version,
5339       # but apparently some variants of GNU ld only accept -v.
5340       # Break only if it was the GNU/non-GNU ld that we prefer.
5341       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5342       *GNU* | *'with BFD'*)
5343         test "$with_gnu_ld" != no && break
5344         ;;
5345       *)
5346         test "$with_gnu_ld" != yes && break
5347         ;;
5348       esac
5349     fi
5350   done
5351   IFS="$lt_save_ifs"
5352 else
5353   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5354 fi
5355 fi
5356
5357 LD="$lt_cv_path_LD"
5358 if test -n "$LD"; then
5359   echo "$as_me:$LINENO: result: $LD" >&5
5360 echo "${ECHO_T}$LD" >&6
5361 else
5362   echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5364 fi
5365 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5366 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5367    { (exit 1); exit 1; }; }
5368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5370 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5374 case `$LD -v 2>&1 </dev/null` in
5375 *GNU* | *'with BFD'*)
5376   lt_cv_prog_gnu_ld=yes
5377   ;;
5378 *)
5379   lt_cv_prog_gnu_ld=no
5380   ;;
5381 esac
5382 fi
5383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5385 with_gnu_ld=$lt_cv_prog_gnu_ld
5386
5387
5388 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5389 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5390 if test "${lt_cv_ld_reload_flag+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   lt_cv_ld_reload_flag='-r'
5394 fi
5395 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5396 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5397 reload_flag=$lt_cv_ld_reload_flag
5398 case $reload_flag in
5399 "" | " "*) ;;
5400 *) reload_flag=" $reload_flag" ;;
5401 esac
5402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5403 case $host_os in
5404   darwin*)
5405     if test "$GCC" = yes; then
5406       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5407     else
5408       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5409     fi
5410     ;;
5411 esac
5412
5413 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5414 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5415 if test "${lt_cv_path_NM+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   if test -n "$NM"; then
5419   # Let the user override the test.
5420   lt_cv_path_NM="$NM"
5421 else
5422   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5424     IFS="$lt_save_ifs"
5425     test -z "$ac_dir" && ac_dir=.
5426     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5427     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428       # Check to see if the nm accepts a BSD-compat flag.
5429       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430       #   nm: unknown option "B" ignored
5431       # Tru64's nm complains that /dev/null is an invalid object file
5432       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433       */dev/null* | *'Invalid file or object type'*)
5434         lt_cv_path_NM="$tmp_nm -B"
5435         break
5436         ;;
5437       *)
5438         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5439         */dev/null*)
5440           lt_cv_path_NM="$tmp_nm -p"
5441           break
5442           ;;
5443         *)
5444           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445           continue # so that we can try to find one that supports BSD flags
5446           ;;
5447         esac
5448       esac
5449     fi
5450   done
5451   IFS="$lt_save_ifs"
5452   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5453 fi
5454 fi
5455 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5456 echo "${ECHO_T}$lt_cv_path_NM" >&6
5457 NM="$lt_cv_path_NM"
5458
5459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5461 LN_S=$as_ln_s
5462 if test "$LN_S" = "ln -s"; then
5463   echo "$as_me:$LINENO: result: yes" >&5
5464 echo "${ECHO_T}yes" >&6
5465 else
5466   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5467 echo "${ECHO_T}no, using $LN_S" >&6
5468 fi
5469
5470 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5471 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5472 if test "${lt_cv_deplibs_check_method+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   lt_cv_file_magic_cmd='$MAGIC_CMD'
5476 lt_cv_file_magic_test_file=
5477 lt_cv_deplibs_check_method='unknown'
5478 # Need to set the preceding variable on all platforms that support
5479 # interlibrary dependencies.
5480 # 'none' -- dependencies not supported.
5481 # `unknown' -- same as none, but documents that we really don't know.
5482 # 'pass_all' -- all dependencies passed with no checks.
5483 # 'test_compile' -- check by making test program.
5484 # 'file_magic [[regex]]' -- check by looking for files in library path
5485 # which responds to the $file_magic_cmd with a given extended regex.
5486 # If you have `file' or equivalent on your system and you're not sure
5487 # whether `pass_all' will *always* work, you probably want this one.
5488
5489 case $host_os in
5490 aix4* | aix5*)
5491   lt_cv_deplibs_check_method=pass_all
5492   ;;
5493
5494 beos*)
5495   lt_cv_deplibs_check_method=pass_all
5496   ;;
5497
5498 bsdi[45]*)
5499   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5500   lt_cv_file_magic_cmd='/usr/bin/file -L'
5501   lt_cv_file_magic_test_file=/shlib/libc.so
5502   ;;
5503
5504 cygwin*)
5505   # func_win32_libid is a shell function defined in ltmain.sh
5506   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5507   lt_cv_file_magic_cmd='func_win32_libid'
5508   ;;
5509
5510 mingw* | pw32*)
5511   # Base MSYS/MinGW do not provide the 'file' command needed by
5512   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5513   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5514   lt_cv_file_magic_cmd='$OBJDUMP -f'
5515   ;;
5516
5517 darwin* | rhapsody*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 freebsd* | kfreebsd*-gnu | dragonfly*)
5522   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5523     case $host_cpu in
5524     i*86 )
5525       # Not sure whether the presence of OpenBSD here was a mistake.
5526       # Let's accept both of them until this is cleared up.
5527       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5528       lt_cv_file_magic_cmd=/usr/bin/file
5529       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5530       ;;
5531     esac
5532   else
5533     lt_cv_deplibs_check_method=pass_all
5534   fi
5535   ;;
5536
5537 gnu*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 hpux10.20* | hpux11*)
5542   lt_cv_file_magic_cmd=/usr/bin/file
5543   case $host_cpu in
5544   ia64*)
5545     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5546     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5547     ;;
5548   hppa*64*)
5549     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]'
5550     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5551     ;;
5552   *)
5553     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5554     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5555     ;;
5556   esac
5557   ;;
5558
5559 irix5* | irix6* | nonstopux*)
5560   case $LD in
5561   *-32|*"-32 ") libmagic=32-bit;;
5562   *-n32|*"-n32 ") libmagic=N32;;
5563   *-64|*"-64 ") libmagic=64-bit;;
5564   *) libmagic=never-match;;
5565   esac
5566   lt_cv_deplibs_check_method=pass_all
5567   ;;
5568
5569 # This must be Linux ELF.
5570 linux*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 netbsd*)
5575   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5577   else
5578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5579   fi
5580   ;;
5581
5582 newos6*)
5583   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5584   lt_cv_file_magic_cmd=/usr/bin/file
5585   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5586   ;;
5587
5588 nto-qnx*)
5589   lt_cv_deplibs_check_method=unknown
5590   ;;
5591
5592 openbsd*)
5593   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5595   else
5596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5597   fi
5598   ;;
5599
5600 osf3* | osf4* | osf5*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 sco3.2v5*)
5605   lt_cv_deplibs_check_method=pass_all
5606   ;;
5607
5608 solaris*)
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5613   case $host_vendor in
5614   motorola)
5615     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]'
5616     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5617     ;;
5618   ncr)
5619     lt_cv_deplibs_check_method=pass_all
5620     ;;
5621   sequent)
5622     lt_cv_file_magic_cmd='/bin/file'
5623     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5624     ;;
5625   sni)
5626     lt_cv_file_magic_cmd='/bin/file'
5627     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5628     lt_cv_file_magic_test_file=/lib/libc.so
5629     ;;
5630   siemens)
5631     lt_cv_deplibs_check_method=pass_all
5632     ;;
5633   esac
5634   ;;
5635
5636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5637   lt_cv_deplibs_check_method=pass_all
5638   ;;
5639 esac
5640
5641 fi
5642 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5643 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5644 file_magic_cmd=$lt_cv_file_magic_cmd
5645 deplibs_check_method=$lt_cv_deplibs_check_method
5646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5647
5648
5649
5650
5651 # If no C compiler was specified, use CC.
5652 LTCC=${LTCC-"$CC"}
5653
5654 # Allow CC to be a program name with arguments.
5655 compiler=$CC
5656
5657
5658 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5659 if test "${enable_libtool_lock+set}" = set; then
5660   enableval="$enable_libtool_lock"
5661
5662 fi;
5663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5664
5665 # Some flags need to be propagated to the compiler or linker for good
5666 # libtool support.
5667 case $host in
5668 ia64-*-hpux*)
5669   # Find out which ABI we are using.
5670   echo 'int i;' > conftest.$ac_ext
5671   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672   (eval $ac_compile) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; then
5676     case `/usr/bin/file conftest.$ac_objext` in
5677     *ELF-32*)
5678       HPUX_IA64_MODE="32"
5679       ;;
5680     *ELF-64*)
5681       HPUX_IA64_MODE="64"
5682       ;;
5683     esac
5684   fi
5685   rm -rf conftest*
5686   ;;
5687 *-*-irix6*)
5688   # Find out which ABI we are using.
5689   echo '#line 5689 "configure"' > conftest.$ac_ext
5690   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691   (eval $ac_compile) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; then
5695    if test "$lt_cv_prog_gnu_ld" = yes; then
5696     case `/usr/bin/file conftest.$ac_objext` in
5697     *32-bit*)
5698       LD="${LD-ld} -melf32bsmip"
5699       ;;
5700     *N32*)
5701       LD="${LD-ld} -melf32bmipn32"
5702       ;;
5703     *64-bit*)
5704       LD="${LD-ld} -melf64bmip"
5705       ;;
5706     esac
5707    else
5708     case `/usr/bin/file conftest.$ac_objext` in
5709     *32-bit*)
5710       LD="${LD-ld} -32"
5711       ;;
5712     *N32*)
5713       LD="${LD-ld} -n32"
5714       ;;
5715     *64-bit*)
5716       LD="${LD-ld} -64"
5717       ;;
5718     esac
5719    fi
5720   fi
5721   rm -rf conftest*
5722   ;;
5723
5724 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5725   # Find out which ABI we are using.
5726   echo 'int i;' > conftest.$ac_ext
5727   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728   (eval $ac_compile) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; then
5732     case `/usr/bin/file conftest.o` in
5733     *32-bit*)
5734       case $host in
5735         x86_64-*linux*)
5736           LD="${LD-ld} -m elf_i386"
5737           ;;
5738         ppc64-*linux*|powerpc64-*linux*)
5739           LD="${LD-ld} -m elf32ppclinux"
5740           ;;
5741         s390x-*linux*)
5742           LD="${LD-ld} -m elf_s390"
5743           ;;
5744         sparc64-*linux*)
5745           LD="${LD-ld} -m elf32_sparc"
5746           ;;
5747       esac
5748       ;;
5749     *64-bit*)
5750       case $host in
5751         x86_64-*linux*)
5752           LD="${LD-ld} -m elf_x86_64"
5753           ;;
5754         ppc*-*linux*|powerpc*-*linux*)
5755           LD="${LD-ld} -m elf64ppc"
5756           ;;
5757         s390*-*linux*)
5758           LD="${LD-ld} -m elf64_s390"
5759           ;;
5760         sparc*-*linux*)
5761           LD="${LD-ld} -m elf64_sparc"
5762           ;;
5763       esac
5764       ;;
5765     esac
5766   fi
5767   rm -rf conftest*
5768   ;;
5769
5770 *-*-sco3.2v5*)
5771   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772   SAVE_CFLAGS="$CFLAGS"
5773   CFLAGS="$CFLAGS -belf"
5774   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5775 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5776 if test "${lt_cv_cc_needs_belf+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785      cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791
5792 int
5793 main ()
5794 {
5795
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802   (eval $ac_link) 2>conftest.er1
5803   ac_status=$?
5804   grep -v '^ *+' conftest.er1 >conftest.err
5805   rm -f conftest.er1
5806   cat conftest.err >&5
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); } &&
5809          { ac_try='test -z "$ac_c_werror_flag"
5810                          || test ! -s conftest.err'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; } &&
5816          { ac_try='test -s conftest$ac_exeext'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; }; then
5822   lt_cv_cc_needs_belf=yes
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 lt_cv_cc_needs_belf=no
5828 fi
5829 rm -f conftest.err conftest.$ac_objext \
5830       conftest$ac_exeext conftest.$ac_ext
5831      ac_ext=c
5832 ac_cpp='$CPP $CPPFLAGS'
5833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836
5837 fi
5838 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5839 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5840   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5841     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5842     CFLAGS="$SAVE_CFLAGS"
5843   fi
5844   ;;
5845 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5846   if test -n "$ac_tool_prefix"; then
5847   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$DLLTOOL"; then
5855   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870
5871 fi
5872 fi
5873 DLLTOOL=$ac_cv_prog_DLLTOOL
5874 if test -n "$DLLTOOL"; then
5875   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5876 echo "${ECHO_T}$DLLTOOL" >&6
5877 else
5878   echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882 fi
5883 if test -z "$ac_cv_prog_DLLTOOL"; then
5884   ac_ct_DLLTOOL=$DLLTOOL
5885   # Extract the first word of "dlltool", so it can be a program name with args.
5886 set dummy dlltool; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   if test -n "$ac_ct_DLLTOOL"; then
5893   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908
5909   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5910 fi
5911 fi
5912 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5913 if test -n "$ac_ct_DLLTOOL"; then
5914   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5915 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5916 else
5917   echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5919 fi
5920
5921   DLLTOOL=$ac_ct_DLLTOOL
5922 else
5923   DLLTOOL="$ac_cv_prog_DLLTOOL"
5924 fi
5925
5926   if test -n "$ac_tool_prefix"; then
5927   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}as; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_AS+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   if test -n "$AS"; then
5935   ac_cv_prog_AS="$AS" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_AS="${ac_tool_prefix}as"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950
5951 fi
5952 fi
5953 AS=$ac_cv_prog_AS
5954 if test -n "$AS"; then
5955   echo "$as_me:$LINENO: result: $AS" >&5
5956 echo "${ECHO_T}$AS" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962 fi
5963 if test -z "$ac_cv_prog_AS"; then
5964   ac_ct_AS=$AS
5965   # Extract the first word of "as", so it can be a program name with args.
5966 set dummy as; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   if test -n "$ac_ct_AS"; then
5973   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980   for ac_exec_ext in '' $ac_executable_extensions; do
5981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_prog_ac_ct_AS="as"
5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987 done
5988
5989   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5990 fi
5991 fi
5992 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5993 if test -n "$ac_ct_AS"; then
5994   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5995 echo "${ECHO_T}$ac_ct_AS" >&6
5996 else
5997   echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
5999 fi
6000
6001   AS=$ac_ct_AS
6002 else
6003   AS="$ac_cv_prog_AS"
6004 fi
6005
6006   if test -n "$ac_tool_prefix"; then
6007   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   if test -n "$OBJDUMP"; then
6015   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030
6031 fi
6032 fi
6033 OBJDUMP=$ac_cv_prog_OBJDUMP
6034 if test -n "$OBJDUMP"; then
6035   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6036 echo "${ECHO_T}$OBJDUMP" >&6
6037 else
6038   echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6040 fi
6041
6042 fi
6043 if test -z "$ac_cv_prog_OBJDUMP"; then
6044   ac_ct_OBJDUMP=$OBJDUMP
6045   # Extract the first word of "objdump", so it can be a program name with args.
6046 set dummy objdump; ac_word=$2
6047 echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   if test -n "$ac_ct_OBJDUMP"; then
6053   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068
6069   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6070 fi
6071 fi
6072 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073 if test -n "$ac_ct_OBJDUMP"; then
6074   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6075 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6076 else
6077   echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6079 fi
6080
6081   OBJDUMP=$ac_ct_OBJDUMP
6082 else
6083   OBJDUMP="$ac_cv_prog_OBJDUMP"
6084 fi
6085
6086   ;;
6087
6088 esac
6089
6090 need_locks="$enable_libtool_lock"
6091
6092
6093 ac_ext=c
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6100 # On Suns, sometimes $CPP names a directory.
6101 if test -n "$CPP" && test -d "$CPP"; then
6102   CPP=
6103 fi
6104 if test -z "$CPP"; then
6105   if test "${ac_cv_prog_CPP+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108       # Double quotes because CPP needs to be expanded
6109     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6110     do
6111       ac_preproc_ok=false
6112 for ac_c_preproc_warn_flag in '' yes
6113 do
6114   # Use a header file that comes with gcc, so configuring glibc
6115   # with a fresh cross-compiler works.
6116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117   # <limits.h> exists even on freestanding compilers.
6118   # On the NeXT, cc -E runs the code through the compiler's parser,
6119   # not just through cpp. "Syntax error" is here to catch this case.
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 #ifdef __STDC__
6127 # include <limits.h>
6128 #else
6129 # include <assert.h>
6130 #endif
6131                      Syntax error
6132 _ACEOF
6133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } >/dev/null; then
6141   if test -s conftest.err; then
6142     ac_cpp_err=$ac_c_preproc_warn_flag
6143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6144   else
6145     ac_cpp_err=
6146   fi
6147 else
6148   ac_cpp_err=yes
6149 fi
6150 if test -z "$ac_cpp_err"; then
6151   :
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156   # Broken: fails on valid input.
6157 continue
6158 fi
6159 rm -f conftest.err conftest.$ac_ext
6160
6161   # OK, works on sane cases.  Now check whether non-existent headers
6162   # can be detected and how.
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #include <ac_nonexistent.h>
6170 _ACEOF
6171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6173   ac_status=$?
6174   grep -v '^ *+' conftest.er1 >conftest.err
6175   rm -f conftest.er1
6176   cat conftest.err >&5
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); } >/dev/null; then
6179   if test -s conftest.err; then
6180     ac_cpp_err=$ac_c_preproc_warn_flag
6181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6182   else
6183     ac_cpp_err=
6184   fi
6185 else
6186   ac_cpp_err=yes
6187 fi
6188 if test -z "$ac_cpp_err"; then
6189   # Broken: success on invalid input.
6190 continue
6191 else
6192   echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195   # Passes both tests.
6196 ac_preproc_ok=:
6197 break
6198 fi
6199 rm -f conftest.err conftest.$ac_ext
6200
6201 done
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then
6205   break
6206 fi
6207
6208     done
6209     ac_cv_prog_CPP=$CPP
6210
6211 fi
6212   CPP=$ac_cv_prog_CPP
6213 else
6214   ac_cv_prog_CPP=$CPP
6215 fi
6216 echo "$as_me:$LINENO: result: $CPP" >&5
6217 echo "${ECHO_T}$CPP" >&6
6218 ac_preproc_ok=false
6219 for ac_c_preproc_warn_flag in '' yes
6220 do
6221   # Use a header file that comes with gcc, so configuring glibc
6222   # with a fresh cross-compiler works.
6223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224   # <limits.h> exists even on freestanding compilers.
6225   # On the NeXT, cc -E runs the code through the compiler's parser,
6226   # not just through cpp. "Syntax error" is here to catch this case.
6227   cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 #ifdef __STDC__
6234 # include <limits.h>
6235 #else
6236 # include <assert.h>
6237 #endif
6238                      Syntax error
6239 _ACEOF
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } >/dev/null; then
6248   if test -s conftest.err; then
6249     ac_cpp_err=$ac_c_preproc_warn_flag
6250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251   else
6252     ac_cpp_err=
6253   fi
6254 else
6255   ac_cpp_err=yes
6256 fi
6257 if test -z "$ac_cpp_err"; then
6258   :
6259 else
6260   echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263   # Broken: fails on valid input.
6264 continue
6265 fi
6266 rm -f conftest.err conftest.$ac_ext
6267
6268   # OK, works on sane cases.  Now check whether non-existent headers
6269   # can be detected and how.
6270   cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276 #include <ac_nonexistent.h>
6277 _ACEOF
6278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6280   ac_status=$?
6281   grep -v '^ *+' conftest.er1 >conftest.err
6282   rm -f conftest.er1
6283   cat conftest.err >&5
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } >/dev/null; then
6286   if test -s conftest.err; then
6287     ac_cpp_err=$ac_c_preproc_warn_flag
6288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6289   else
6290     ac_cpp_err=
6291   fi
6292 else
6293   ac_cpp_err=yes
6294 fi
6295 if test -z "$ac_cpp_err"; then
6296   # Broken: success on invalid input.
6297 continue
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302   # Passes both tests.
6303 ac_preproc_ok=:
6304 break
6305 fi
6306 rm -f conftest.err conftest.$ac_ext
6307
6308 done
6309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310 rm -f conftest.err conftest.$ac_ext
6311 if $ac_preproc_ok; then
6312   :
6313 else
6314   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&2;}
6318    { (exit 1); exit 1; }; }
6319 fi
6320
6321 ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326
6327
6328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6329 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6330 if test "${ac_cv_header_stdc+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 #include <stdlib.h>
6340 #include <stdarg.h>
6341 #include <string.h>
6342 #include <float.h>
6343
6344 int
6345 main ()
6346 {
6347
6348   ;
6349   return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354   (eval $ac_compile) 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -z "$ac_c_werror_flag"
6362                          || test ! -s conftest.err'
6363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364   (eval $ac_try) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; } &&
6368          { ac_try='test -s conftest.$ac_objext'
6369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370   (eval $ac_try) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }; }; then
6374   ac_cv_header_stdc=yes
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379 ac_cv_header_stdc=no
6380 fi
6381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6382
6383 if test $ac_cv_header_stdc = yes; then
6384   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6385   cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391 #include <string.h>
6392
6393 _ACEOF
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395   $EGREP "memchr" >/dev/null 2>&1; then
6396   :
6397 else
6398   ac_cv_header_stdc=no
6399 fi
6400 rm -f conftest*
6401
6402 fi
6403
6404 if test $ac_cv_header_stdc = yes; then
6405   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6406   cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 #include <stdlib.h>
6413
6414 _ACEOF
6415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416   $EGREP "free" >/dev/null 2>&1; then
6417   :
6418 else
6419   ac_cv_header_stdc=no
6420 fi
6421 rm -f conftest*
6422
6423 fi
6424
6425 if test $ac_cv_header_stdc = yes; then
6426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6427   if test "$cross_compiling" = yes; then
6428   :
6429 else
6430   cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 #include <ctype.h>
6437 #if ((' ' & 0x0FF) == 0x020)
6438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6440 #else
6441 # define ISLOWER(c) \
6442                    (('a' <= (c) && (c) <= 'i') \
6443                      || ('j' <= (c) && (c) <= 'r') \
6444                      || ('s' <= (c) && (c) <= 'z'))
6445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6446 #endif
6447
6448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6449 int
6450 main ()
6451 {
6452   int i;
6453   for (i = 0; i < 256; i++)
6454     if (XOR (islower (i), ISLOWER (i))
6455         || toupper (i) != TOUPPER (i))
6456       exit(2);
6457   exit (0);
6458 }
6459 _ACEOF
6460 rm -f conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462   (eval $ac_link) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   :
6472 else
6473   echo "$as_me: program exited with status $ac_status" >&5
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 ( exit $ac_status )
6478 ac_cv_header_stdc=no
6479 fi
6480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6481 fi
6482 fi
6483 fi
6484 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6485 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6486 if test $ac_cv_header_stdc = yes; then
6487
6488 cat >>confdefs.h <<\_ACEOF
6489 #define STDC_HEADERS 1
6490 _ACEOF
6491
6492 fi
6493
6494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6505                   inttypes.h stdint.h unistd.h
6506 do
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h.  */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h.  */
6519 $ac_includes_default
6520
6521 #include <$ac_header>
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525   (eval $ac_compile) 2>conftest.er1
6526   ac_status=$?
6527   grep -v '^ *+' conftest.er1 >conftest.err
6528   rm -f conftest.er1
6529   cat conftest.err >&5
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); } &&
6532          { ac_try='test -z "$ac_c_werror_flag"
6533                          || test ! -s conftest.err'
6534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535   (eval $ac_try) 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); }; } &&
6539          { ac_try='test -s conftest.$ac_objext'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; }; then
6545   eval "$as_ac_Header=yes"
6546 else
6547   echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6549
6550 eval "$as_ac_Header=no"
6551 fi
6552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6557   cat >>confdefs.h <<_ACEOF
6558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6559 _ACEOF
6560
6561 fi
6562
6563 done
6564
6565
6566
6567 for ac_header in dlfcn.h
6568 do
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6571   echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 fi
6576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6578 else
6579   # Is the header compilable?
6580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588 $ac_includes_default
6589 #include <$ac_header>
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593   (eval $ac_compile) 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } &&
6600          { ac_try='test -z "$ac_c_werror_flag"
6601                          || test ! -s conftest.err'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest.$ac_objext'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_header_compiler=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_header_compiler=no
6619 fi
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6622 echo "${ECHO_T}$ac_header_compiler" >&6
6623
6624 # Is the header present?
6625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h.  */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h.  */
6633 #include <$ac_header>
6634 _ACEOF
6635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } >/dev/null; then
6643   if test -s conftest.err; then
6644     ac_cpp_err=$ac_c_preproc_warn_flag
6645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6646   else
6647     ac_cpp_err=
6648   fi
6649 else
6650   ac_cpp_err=yes
6651 fi
6652 if test -z "$ac_cpp_err"; then
6653   ac_header_preproc=yes
6654 else
6655   echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658   ac_header_preproc=no
6659 fi
6660 rm -f conftest.err conftest.$ac_ext
6661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6662 echo "${ECHO_T}$ac_header_preproc" >&6
6663
6664 # So?  What about this header?
6665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6666   yes:no: )
6667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6671     ac_header_preproc=yes
6672     ;;
6673   no:yes:* )
6674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6686     (
6687       cat <<\_ASBOX
6688 ## --------------------------------------------- ##
6689 ## Report this to <http://www.openldap.org/its/> ##
6690 ## --------------------------------------------- ##
6691 _ASBOX
6692     ) |
6693       sed "s/^/$as_me: WARNING:     /" >&2
6694     ;;
6695 esac
6696 echo "$as_me:$LINENO: checking for $ac_header" >&5
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   eval "$as_ac_Header=\$ac_header_preproc"
6702 fi
6703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6705
6706 fi
6707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6708   cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6710 _ACEOF
6711
6712 fi
6713
6714 done
6715
6716
6717 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6718
6719 # find the maximum length of command line arguments
6720 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6721 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6722 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725     i=0
6726   teststring="ABCD"
6727
6728   case $build_os in
6729   msdosdjgpp*)
6730     # On DJGPP, this test can blow up pretty badly due to problems in libc
6731     # (any single argument exceeding 2000 bytes causes a buffer overrun
6732     # during glob expansion).  Even if it were fixed, the result of this
6733     # check would be larger than it should be.
6734     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6735     ;;
6736
6737   gnu*)
6738     # Under GNU Hurd, this test is not required because there is
6739     # no limit to the length of command line arguments.
6740     # Libtool will interpret -1 as no limit whatsoever
6741     lt_cv_sys_max_cmd_len=-1;
6742     ;;
6743
6744   cygwin* | mingw*)
6745     # On Win9x/ME, this test blows up -- it succeeds, but takes
6746     # about 5 minutes as the teststring grows exponentially.
6747     # Worse, since 9x/ME are not pre-emptively multitasking,
6748     # you end up with a "frozen" computer, even though with patience
6749     # the test eventually succeeds (with a max line length of 256k).
6750     # Instead, let's just punt: use the minimum linelength reported by
6751     # all of the supported platforms: 8192 (on NT/2K/XP).
6752     lt_cv_sys_max_cmd_len=8192;
6753     ;;
6754
6755   amigaos*)
6756     # On AmigaOS with pdksh, this test takes hours, literally.
6757     # So we just punt and use a minimum line length of 8192.
6758     lt_cv_sys_max_cmd_len=8192;
6759     ;;
6760
6761   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6762     # This has been around since 386BSD, at least.  Likely further.
6763     if test -x /sbin/sysctl; then
6764       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6765     elif test -x /usr/sbin/sysctl; then
6766       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6767     else
6768       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6769     fi
6770     # And add a safety zone
6771     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6772     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6773     ;;
6774   osf*)
6775     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6776     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6777     # nice to cause kernel panics so lets avoid the loop below.
6778     # First set a reasonable default.
6779     lt_cv_sys_max_cmd_len=16384
6780     #
6781     if test -x /sbin/sysconfig; then
6782       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6783         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6784       esac
6785     fi
6786     ;;
6787   *)
6788     # If test is not a shell built-in, we'll probably end up computing a
6789     # maximum length that is only half of the actual maximum length, but
6790     # we can't tell.
6791     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6792     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6793                = "XX$teststring") >/dev/null 2>&1 &&
6794             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6795             lt_cv_sys_max_cmd_len=$new_result &&
6796             test $i != 17 # 1/2 MB should be enough
6797     do
6798       i=`expr $i + 1`
6799       teststring=$teststring$teststring
6800     done
6801     teststring=
6802     # Add a significant safety factor because C++ compilers can tack on massive
6803     # amounts of additional arguments before passing them to the linker.
6804     # It appears as though 1/2 is a usable value.
6805     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6806     ;;
6807   esac
6808
6809 fi
6810
6811 if test -n $lt_cv_sys_max_cmd_len ; then
6812   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6813 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6814 else
6815   echo "$as_me:$LINENO: result: none" >&5
6816 echo "${ECHO_T}none" >&6
6817 fi
6818
6819
6820
6821
6822 # Check for command to grab the raw symbol name followed by C symbol from nm.
6823 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6824 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6825 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828
6829 # These are sane defaults that work on at least a few old systems.
6830 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6831
6832 # Character class describing NM global symbol codes.
6833 symcode='[BCDEGRST]'
6834
6835 # Regexp to match symbols that can be accessed directly from C.
6836 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6837
6838 # Transform an extracted symbol line into a proper C declaration
6839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6840
6841 # Transform an extracted symbol line into symbol name and symbol address
6842 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'"
6843
6844 # Define system-specific variables.
6845 case $host_os in
6846 aix*)
6847   symcode='[BCDT]'
6848   ;;
6849 cygwin* | mingw* | pw32*)
6850   symcode='[ABCDGISTW]'
6851   ;;
6852 hpux*) # Its linker distinguishes data from code symbols
6853   if test "$host_cpu" = ia64; then
6854     symcode='[ABCDEGRST]'
6855   fi
6856   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6857   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'"
6858   ;;
6859 linux*)
6860   if test "$host_cpu" = ia64; then
6861     symcode='[ABCDGIRSTW]'
6862     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6863     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'"
6864   fi
6865   ;;
6866 irix* | nonstopux*)
6867   symcode='[BCDEGRST]'
6868   ;;
6869 osf*)
6870   symcode='[BCDEGQRST]'
6871   ;;
6872 solaris* | sysv5*)
6873   symcode='[BDRT]'
6874   ;;
6875 sysv4)
6876   symcode='[DFNSTU]'
6877   ;;
6878 esac
6879
6880 # Handle CRLF in mingw tool chain
6881 opt_cr=
6882 case $build_os in
6883 mingw*)
6884   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6885   ;;
6886 esac
6887
6888 # If we're using GNU nm, then use its standard symbol codes.
6889 case `$NM -V 2>&1` in
6890 *GNU* | *'with BFD'*)
6891   symcode='[ABCDGIRSTW]' ;;
6892 esac
6893
6894 # Try without a prefix undercore, then with it.
6895 for ac_symprfx in "" "_"; do
6896
6897   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6898   symxfrm="\\1 $ac_symprfx\\2 \\2"
6899
6900   # Write the raw and C identifiers.
6901   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6902
6903   # Check to see that the pipe works correctly.
6904   pipe_works=no
6905
6906   rm -f conftest*
6907   cat > conftest.$ac_ext <<EOF
6908 #ifdef __cplusplus
6909 extern "C" {
6910 #endif
6911 char nm_test_var;
6912 void nm_test_func(){}
6913 #ifdef __cplusplus
6914 }
6915 #endif
6916 int main(){nm_test_var='a';nm_test_func();return(0);}
6917 EOF
6918
6919   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920   (eval $ac_compile) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; then
6924     # Now try to grab the symbols.
6925     nlist=conftest.nm
6926     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6927   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); } && test -s "$nlist"; then
6931       # Try sorting and uniquifying the output.
6932       if sort "$nlist" | uniq > "$nlist"T; then
6933         mv -f "$nlist"T "$nlist"
6934       else
6935         rm -f "$nlist"T
6936       fi
6937
6938       # Make sure that we snagged all the symbols we need.
6939       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6940         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6941           cat <<EOF > conftest.$ac_ext
6942 #ifdef __cplusplus
6943 extern "C" {
6944 #endif
6945
6946 EOF
6947           # Now generate the symbol file.
6948           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6949
6950           cat <<EOF >> conftest.$ac_ext
6951 #if defined (__STDC__) && __STDC__
6952 # define lt_ptr_t void *
6953 #else
6954 # define lt_ptr_t char *
6955 # define const
6956 #endif
6957
6958 /* The mapping between symbol names and symbols. */
6959 const struct {
6960   const char *name;
6961   lt_ptr_t address;
6962 }
6963 lt_preloaded_symbols[] =
6964 {
6965 EOF
6966           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6967           cat <<\EOF >> conftest.$ac_ext
6968   {0, (lt_ptr_t) 0}
6969 };
6970
6971 #ifdef __cplusplus
6972 }
6973 #endif
6974 EOF
6975           # Now try linking the two files.
6976           mv conftest.$ac_objext conftstm.$ac_objext
6977           lt_save_LIBS="$LIBS"
6978           lt_save_CFLAGS="$CFLAGS"
6979           LIBS="conftstm.$ac_objext"
6980           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982   (eval $ac_link) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6986             pipe_works=yes
6987           fi
6988           LIBS="$lt_save_LIBS"
6989           CFLAGS="$lt_save_CFLAGS"
6990         else
6991           echo "cannot find nm_test_func in $nlist" >&5
6992         fi
6993       else
6994         echo "cannot find nm_test_var in $nlist" >&5
6995       fi
6996     else
6997       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6998     fi
6999   else
7000     echo "$progname: failed program was:" >&5
7001     cat conftest.$ac_ext >&5
7002   fi
7003   rm -f conftest* conftst*
7004
7005   # Do not use the global_symbol_pipe unless it works.
7006   if test "$pipe_works" = yes; then
7007     break
7008   else
7009     lt_cv_sys_global_symbol_pipe=
7010   fi
7011 done
7012
7013 fi
7014
7015 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016   lt_cv_sys_global_symbol_to_cdecl=
7017 fi
7018 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019   echo "$as_me:$LINENO: result: failed" >&5
7020 echo "${ECHO_T}failed" >&6
7021 else
7022   echo "$as_me:$LINENO: result: ok" >&5
7023 echo "${ECHO_T}ok" >&6
7024 fi
7025
7026 echo "$as_me:$LINENO: checking for objdir" >&5
7027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7028 if test "${lt_cv_objdir+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   rm -f .libs 2>/dev/null
7032 mkdir .libs 2>/dev/null
7033 if test -d .libs; then
7034   lt_cv_objdir=.libs
7035 else
7036   # MS-DOS does not allow filenames that begin with a dot.
7037   lt_cv_objdir=_libs
7038 fi
7039 rmdir .libs 2>/dev/null
7040 fi
7041 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7042 echo "${ECHO_T}$lt_cv_objdir" >&6
7043 objdir=$lt_cv_objdir
7044
7045
7046
7047
7048
7049 case $host_os in
7050 aix3*)
7051   # AIX sometimes has problems with the GCC collect2 program.  For some
7052   # reason, if we set the COLLECT_NAMES environment variable, the problems
7053   # vanish in a puff of smoke.
7054   if test "X${COLLECT_NAMES+set}" != Xset; then
7055     COLLECT_NAMES=
7056     export COLLECT_NAMES
7057   fi
7058   ;;
7059 esac
7060
7061 # Sed substitution that helps us do robust quoting.  It backslashifies
7062 # metacharacters that are still active within double-quoted strings.
7063 Xsed='sed -e 1s/^X//'
7064 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7065
7066 # Same as above, but do not quote variable references.
7067 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7068
7069 # Sed substitution to delay expansion of an escaped shell variable in a
7070 # double_quote_subst'ed string.
7071 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7072
7073 # Sed substitution to avoid accidental globbing in evaled expressions
7074 no_glob_subst='s/\*/\\\*/g'
7075
7076 # Constants:
7077 rm="rm -f"
7078
7079 # Global variables:
7080 default_ofile=libtool
7081 can_build_shared=yes
7082
7083 # All known linkers require a `.a' archive for static linking (except MSVC,
7084 # which needs '.lib').
7085 libext=a
7086 ltmain="$ac_aux_dir/ltmain.sh"
7087 ofile="$default_ofile"
7088 with_gnu_ld="$lt_cv_prog_gnu_ld"
7089
7090 if test -n "$ac_tool_prefix"; then
7091   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}ar; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_AR+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   if test -n "$AR"; then
7099   ac_cv_prog_AR="$AR" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106   for ac_exec_ext in '' $ac_executable_extensions; do
7107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108     ac_cv_prog_AR="${ac_tool_prefix}ar"
7109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110     break 2
7111   fi
7112 done
7113 done
7114
7115 fi
7116 fi
7117 AR=$ac_cv_prog_AR
7118 if test -n "$AR"; then
7119   echo "$as_me:$LINENO: result: $AR" >&5
7120 echo "${ECHO_T}$AR" >&6
7121 else
7122   echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7124 fi
7125
7126 fi
7127 if test -z "$ac_cv_prog_AR"; then
7128   ac_ct_AR=$AR
7129   # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   if test -n "$ac_ct_AR"; then
7137   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144   for ac_exec_ext in '' $ac_executable_extensions; do
7145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146     ac_cv_prog_ac_ct_AR="ar"
7147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151 done
7152
7153   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7154 fi
7155 fi
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7159 echo "${ECHO_T}$ac_ct_AR" >&6
7160 else
7161   echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7163 fi
7164
7165   AR=$ac_ct_AR
7166 else
7167   AR="$ac_cv_prog_AR"
7168 fi
7169
7170 if test -n "$ac_tool_prefix"; then
7171   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_prog_RANLIB+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   if test -n "$RANLIB"; then
7179   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186   for ac_exec_ext in '' $ac_executable_extensions; do
7187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193 done
7194
7195 fi
7196 fi
7197 RANLIB=$ac_cv_prog_RANLIB
7198 if test -n "$RANLIB"; then
7199   echo "$as_me:$LINENO: result: $RANLIB" >&5
7200 echo "${ECHO_T}$RANLIB" >&6
7201 else
7202   echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 fi
7205
7206 fi
7207 if test -z "$ac_cv_prog_RANLIB"; then
7208   ac_ct_RANLIB=$RANLIB
7209   # Extract the first word of "ranlib", so it can be a program name with args.
7210 set dummy ranlib; ac_word=$2
7211 echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   if test -n "$ac_ct_RANLIB"; then
7217   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224   for ac_exec_ext in '' $ac_executable_extensions; do
7225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226     ac_cv_prog_ac_ct_RANLIB="ranlib"
7227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231 done
7232
7233   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7234 fi
7235 fi
7236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7237 if test -n "$ac_ct_RANLIB"; then
7238   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7240 else
7241   echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7243 fi
7244
7245   RANLIB=$ac_ct_RANLIB
7246 else
7247   RANLIB="$ac_cv_prog_RANLIB"
7248 fi
7249
7250 if test -n "$ac_tool_prefix"; then
7251   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}strip; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_STRIP+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   if test -n "$STRIP"; then
7259   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266   for ac_exec_ext in '' $ac_executable_extensions; do
7267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273 done
7274
7275 fi
7276 fi
7277 STRIP=$ac_cv_prog_STRIP
7278 if test -n "$STRIP"; then
7279   echo "$as_me:$LINENO: result: $STRIP" >&5
7280 echo "${ECHO_T}$STRIP" >&6
7281 else
7282   echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7284 fi
7285
7286 fi
7287 if test -z "$ac_cv_prog_STRIP"; then
7288   ac_ct_STRIP=$STRIP
7289   # Extract the first word of "strip", so it can be a program name with args.
7290 set dummy strip; ac_word=$2
7291 echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   if test -n "$ac_ct_STRIP"; then
7297   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_ac_ct_STRIP="strip"
7307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312
7313   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7314 fi
7315 fi
7316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317 if test -n "$ac_ct_STRIP"; then
7318   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319 echo "${ECHO_T}$ac_ct_STRIP" >&6
7320 else
7321   echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7323 fi
7324
7325   STRIP=$ac_ct_STRIP
7326 else
7327   STRIP="$ac_cv_prog_STRIP"
7328 fi
7329
7330
7331 old_CC="$CC"
7332 old_CFLAGS="$CFLAGS"
7333
7334 # Set sane defaults for various variables
7335 test -z "$AR" && AR=ar
7336 test -z "$AR_FLAGS" && AR_FLAGS=cru
7337 test -z "$AS" && AS=as
7338 test -z "$CC" && CC=cc
7339 test -z "$LTCC" && LTCC=$CC
7340 test -z "$DLLTOOL" && DLLTOOL=dlltool
7341 test -z "$LD" && LD=ld
7342 test -z "$LN_S" && LN_S="ln -s"
7343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7344 test -z "$NM" && NM=nm
7345 test -z "$SED" && SED=sed
7346 test -z "$OBJDUMP" && OBJDUMP=objdump
7347 test -z "$RANLIB" && RANLIB=:
7348 test -z "$STRIP" && STRIP=:
7349 test -z "$ac_objext" && ac_objext=o
7350
7351 # Determine commands to create old-style static archives.
7352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7353 old_postinstall_cmds='chmod 644 $oldlib'
7354 old_postuninstall_cmds=
7355
7356 if test -n "$RANLIB"; then
7357   case $host_os in
7358   openbsd*)
7359     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7360     ;;
7361   *)
7362     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7363     ;;
7364   esac
7365   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7366 fi
7367
7368 for cc_temp in $compiler""; do
7369   case $cc_temp in
7370     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7371     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7372     \-*) ;;
7373     *) break;;
7374   esac
7375 done
7376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7377
7378
7379 # Only perform the check for file, if the check method requires it
7380 case $deplibs_check_method in
7381 file_magic*)
7382   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7383     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7384 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   case $MAGIC_CMD in
7389 [\\/*] |  ?:[\\/]*)
7390   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7391   ;;
7392 *)
7393   lt_save_MAGIC_CMD="$MAGIC_CMD"
7394   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396   for ac_dir in $ac_dummy; do
7397     IFS="$lt_save_ifs"
7398     test -z "$ac_dir" && ac_dir=.
7399     if test -f $ac_dir/${ac_tool_prefix}file; then
7400       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7401       if test -n "$file_magic_test_file"; then
7402         case $deplibs_check_method in
7403         "file_magic "*)
7404           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7405           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407             $EGREP "$file_magic_regex" > /dev/null; then
7408             :
7409           else
7410             cat <<EOF 1>&2
7411
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such.  This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem.  Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7420
7421 EOF
7422           fi ;;
7423         esac
7424       fi
7425       break
7426     fi
7427   done
7428   IFS="$lt_save_ifs"
7429   MAGIC_CMD="$lt_save_MAGIC_CMD"
7430   ;;
7431 esac
7432 fi
7433
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7437 echo "${ECHO_T}$MAGIC_CMD" >&6
7438 else
7439   echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441 fi
7442
7443 if test -z "$lt_cv_path_MAGIC_CMD"; then
7444   if test -n "$ac_tool_prefix"; then
7445     echo "$as_me:$LINENO: checking for file" >&5
7446 echo $ECHO_N "checking for file... $ECHO_C" >&6
7447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   case $MAGIC_CMD in
7451 [\\/*] |  ?:[\\/]*)
7452   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7453   ;;
7454 *)
7455   lt_save_MAGIC_CMD="$MAGIC_CMD"
7456   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7457   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7458   for ac_dir in $ac_dummy; do
7459     IFS="$lt_save_ifs"
7460     test -z "$ac_dir" && ac_dir=.
7461     if test -f $ac_dir/file; then
7462       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7463       if test -n "$file_magic_test_file"; then
7464         case $deplibs_check_method in
7465         "file_magic "*)
7466           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7467           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7469             $EGREP "$file_magic_regex" > /dev/null; then
7470             :
7471           else
7472             cat <<EOF 1>&2
7473
7474 *** Warning: the command libtool uses to detect shared libraries,
7475 *** $file_magic_cmd, produces output that libtool cannot recognize.
7476 *** The result is that libtool may fail to recognize shared libraries
7477 *** as such.  This will affect the creation of libtool libraries that
7478 *** depend on shared libraries, but programs linked with such libtool
7479 *** libraries will work regardless of this problem.  Nevertheless, you
7480 *** may want to report the problem to your system manager and/or to
7481 *** bug-libtool@gnu.org
7482
7483 EOF
7484           fi ;;
7485         esac
7486       fi
7487       break
7488     fi
7489   done
7490   IFS="$lt_save_ifs"
7491   MAGIC_CMD="$lt_save_MAGIC_CMD"
7492   ;;
7493 esac
7494 fi
7495
7496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7497 if test -n "$MAGIC_CMD"; then
7498   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7499 echo "${ECHO_T}$MAGIC_CMD" >&6
7500 else
7501   echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503 fi
7504
7505   else
7506     MAGIC_CMD=:
7507   fi
7508 fi
7509
7510   fi
7511   ;;
7512 esac
7513
7514 enable_dlopen=yes
7515 enable_win32_dll=yes
7516
7517 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7518 if test "${enable_libtool_lock+set}" = set; then
7519   enableval="$enable_libtool_lock"
7520
7521 fi;
7522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7523
7524
7525 # Check whether --with-pic or --without-pic was given.
7526 if test "${with_pic+set}" = set; then
7527   withval="$with_pic"
7528   pic_mode="$withval"
7529 else
7530   pic_mode=default
7531 fi;
7532 test -z "$pic_mode" && pic_mode=default
7533
7534 # Use C for the default configuration in the libtool script
7535 tagname=
7536 lt_save_CC="$CC"
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542
7543
7544 # Source file extension for C test sources.
7545 ac_ext=c
7546
7547 # Object file extension for compiled C test sources.
7548 objext=o
7549 objext=$objext
7550
7551 # Code to be used in simple compile tests
7552 lt_simple_compile_test_code="int some_variable = 0;\n"
7553
7554 # Code to be used in simple link tests
7555 lt_simple_link_test_code='int main(){return(0);}\n'
7556
7557
7558 # If no C compiler was specified, use CC.
7559 LTCC=${LTCC-"$CC"}
7560
7561 # Allow CC to be a program name with arguments.
7562 compiler=$CC
7563
7564
7565 # save warnings/boilerplate of simple test code
7566 ac_outfile=conftest.$ac_objext
7567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7569 _lt_compiler_boilerplate=`cat conftest.err`
7570 $rm conftest*
7571
7572 ac_outfile=conftest.$ac_objext
7573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7575 _lt_linker_boilerplate=`cat conftest.err`
7576 $rm conftest*
7577
7578
7579 #
7580 # Check for any special shared library compilation flags.
7581 #
7582 lt_prog_cc_shlib=
7583 if test "$GCC" = no; then
7584   case $host_os in
7585   sco3.2v5*)
7586     lt_prog_cc_shlib='-belf'
7587     ;;
7588   esac
7589 fi
7590 if test -n "$lt_prog_cc_shlib"; then
7591   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7592 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7593   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7594   else
7595     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7596 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7597     lt_cv_prog_cc_can_build_shared=no
7598   fi
7599 fi
7600
7601
7602 #
7603 # Check to make sure the static flag actually works.
7604 #
7605 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7606 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7607 if test "${lt_prog_compiler_static_works+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   lt_prog_compiler_static_works=no
7611    save_LDFLAGS="$LDFLAGS"
7612    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7613    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7614    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7615      # The linker can only warn and ignore the option if not recognized
7616      # So say no if there are warnings
7617      if test -s conftest.err; then
7618        # Append any errors to the config.log.
7619        cat conftest.err 1>&5
7620        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7621        $SED '/^$/d' conftest.err >conftest.er2
7622        if diff conftest.exp conftest.er2 >/dev/null; then
7623          lt_prog_compiler_static_works=yes
7624        fi
7625      else
7626        lt_prog_compiler_static_works=yes
7627      fi
7628    fi
7629    $rm conftest*
7630    LDFLAGS="$save_LDFLAGS"
7631
7632 fi
7633 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7635
7636 if test x"$lt_prog_compiler_static_works" = xyes; then
7637     :
7638 else
7639     lt_prog_compiler_static=
7640 fi
7641
7642
7643
7644
7645 lt_prog_compiler_no_builtin_flag=
7646
7647 if test "$GCC" = yes; then
7648   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7649
7650
7651 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   lt_cv_prog_compiler_rtti_exceptions=no
7657   ac_outfile=conftest.$ac_objext
7658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7659    lt_compiler_flag="-fno-rtti -fno-exceptions"
7660    # Insert the option either (1) after the last *FLAGS variable, or
7661    # (2) before a word containing "conftest.", or (3) at the end.
7662    # Note that $ac_compile itself does not contain backslashes and begins
7663    # with a dollar sign (not a hyphen), so the echo should work correctly.
7664    # The option is referenced via a variable to avoid confusing sed.
7665    lt_compile=`echo "$ac_compile" | $SED \
7666    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668    -e 's:$: $lt_compiler_flag:'`
7669    (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
7670    (eval "$lt_compile" 2>conftest.err)
7671    ac_status=$?
7672    cat conftest.err >&5
7673    echo "$as_me:7673: \$? = $ac_status" >&5
7674    if (exit $ac_status) && test -s "$ac_outfile"; then
7675      # The compiler can only warn and ignore the option if not recognized
7676      # So say no if there are warnings other than the usual output.
7677      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7678      $SED '/^$/d' conftest.err >conftest.er2
7679      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7680        lt_cv_prog_compiler_rtti_exceptions=yes
7681      fi
7682    fi
7683    $rm conftest*
7684
7685 fi
7686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7688
7689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7690     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7691 else
7692     :
7693 fi
7694
7695 fi
7696
7697 lt_prog_compiler_wl=
7698 lt_prog_compiler_pic=
7699 lt_prog_compiler_static=
7700
7701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7703
7704   if test "$GCC" = yes; then
7705     lt_prog_compiler_wl='-Wl,'
7706     lt_prog_compiler_static='-static'
7707
7708     case $host_os in
7709       aix*)
7710       # All AIX code is PIC.
7711       if test "$host_cpu" = ia64; then
7712         # AIX 5 now supports IA64 processor
7713         lt_prog_compiler_static='-Bstatic'
7714       fi
7715       ;;
7716
7717     amigaos*)
7718       # FIXME: we need at least 68020 code to build shared libraries, but
7719       # adding the `-m68020' flag to GCC prevents building anything better,
7720       # like `-m68040'.
7721       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7722       ;;
7723
7724     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725       # PIC is the default for these OSes.
7726       ;;
7727
7728     mingw* | pw32* | os2*)
7729       # This hack is so that the source file can tell whether it is being
7730       # built for inclusion in a dll (and should export symbols for example).
7731       lt_prog_compiler_pic='-DDLL_EXPORT'
7732       ;;
7733
7734     darwin* | rhapsody*)
7735       # PIC is the default on this platform
7736       # Common symbols not allowed in MH_DYLIB files
7737       lt_prog_compiler_pic='-fno-common'
7738       ;;
7739
7740     msdosdjgpp*)
7741       # Just because we use GCC doesn't mean we suddenly get shared libraries
7742       # on systems that don't support them.
7743       lt_prog_compiler_can_build_shared=no
7744       enable_shared=no
7745       ;;
7746
7747     sysv4*MP*)
7748       if test -d /usr/nec; then
7749         lt_prog_compiler_pic=-Kconform_pic
7750       fi
7751       ;;
7752
7753     hpux*)
7754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7755       # not for PA HP-UX.
7756       case $host_cpu in
7757       hppa*64*|ia64*)
7758         # +Z the default
7759         ;;
7760       *)
7761         lt_prog_compiler_pic='-fPIC'
7762         ;;
7763       esac
7764       ;;
7765
7766     *)
7767       lt_prog_compiler_pic='-fPIC'
7768       ;;
7769     esac
7770   else
7771     # PORTME Check for flag to pass linker flags through the system compiler.
7772     case $host_os in
7773     aix*)
7774       lt_prog_compiler_wl='-Wl,'
7775       if test "$host_cpu" = ia64; then
7776         # AIX 5 now supports IA64 processor
7777         lt_prog_compiler_static='-Bstatic'
7778       else
7779         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7780       fi
7781       ;;
7782       darwin*)
7783         # PIC is the default on this platform
7784         # Common symbols not allowed in MH_DYLIB files
7785        case $cc_basename in
7786          xlc*)
7787          lt_prog_compiler_pic='-qnocommon'
7788          lt_prog_compiler_wl='-Wl,'
7789          ;;
7790        esac
7791        ;;
7792
7793     mingw* | pw32* | os2*)
7794       # This hack is so that the source file can tell whether it is being
7795       # built for inclusion in a dll (and should export symbols for example).
7796       lt_prog_compiler_pic='-DDLL_EXPORT'
7797       ;;
7798
7799     hpux9* | hpux10* | hpux11*)
7800       lt_prog_compiler_wl='-Wl,'
7801       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7802       # not for PA HP-UX.
7803       case $host_cpu in
7804       hppa*64*|ia64*)
7805         # +Z the default
7806         ;;
7807       *)
7808         lt_prog_compiler_pic='+Z'
7809         ;;
7810       esac
7811       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7812       lt_prog_compiler_static='${wl}-a ${wl}archive'
7813       ;;
7814
7815     irix5* | irix6* | nonstopux*)
7816       lt_prog_compiler_wl='-Wl,'
7817       # PIC (with -KPIC) is the default.
7818       lt_prog_compiler_static='-non_shared'
7819       ;;
7820
7821     newsos6)
7822       lt_prog_compiler_pic='-KPIC'
7823       lt_prog_compiler_static='-Bstatic'
7824       ;;
7825
7826     linux*)
7827       case $cc_basename in
7828       icc* | ecc*)
7829         lt_prog_compiler_wl='-Wl,'
7830         lt_prog_compiler_pic='-KPIC'
7831         lt_prog_compiler_static='-static'
7832         ;;
7833       pgcc* | pgf77* | pgf90* | pgf95*)
7834         # Portland Group compilers (*not* the Pentium gcc compiler,
7835         # which looks to be a dead project)
7836         lt_prog_compiler_wl='-Wl,'
7837         lt_prog_compiler_pic='-fpic'
7838         lt_prog_compiler_static='-Bstatic'
7839         ;;
7840       ccc*)
7841         lt_prog_compiler_wl='-Wl,'
7842         # All Alpha code is PIC.
7843         lt_prog_compiler_static='-non_shared'
7844         ;;
7845       esac
7846       ;;
7847
7848     osf3* | osf4* | osf5*)
7849       lt_prog_compiler_wl='-Wl,'
7850       # All OSF/1 code is PIC.
7851       lt_prog_compiler_static='-non_shared'
7852       ;;
7853
7854     sco3.2v5*)
7855       lt_prog_compiler_pic='-Kpic'
7856       lt_prog_compiler_static='-dn'
7857       ;;
7858
7859     solaris*)
7860       lt_prog_compiler_pic='-KPIC'
7861       lt_prog_compiler_static='-Bstatic'
7862       case $cc_basename in
7863       f77* | f90* | f95*)
7864         lt_prog_compiler_wl='-Qoption ld ';;
7865       *)
7866         lt_prog_compiler_wl='-Wl,';;
7867       esac
7868       ;;
7869
7870     sunos4*)
7871       lt_prog_compiler_wl='-Qoption ld '
7872       lt_prog_compiler_pic='-PIC'
7873       lt_prog_compiler_static='-Bstatic'
7874       ;;
7875
7876     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7877       lt_prog_compiler_wl='-Wl,'
7878       lt_prog_compiler_pic='-KPIC'
7879       lt_prog_compiler_static='-Bstatic'
7880       ;;
7881
7882     sysv4*MP*)
7883       if test -d /usr/nec ;then
7884         lt_prog_compiler_pic='-Kconform_pic'
7885         lt_prog_compiler_static='-Bstatic'
7886       fi
7887       ;;
7888
7889     unicos*)
7890       lt_prog_compiler_wl='-Wl,'
7891       lt_prog_compiler_can_build_shared=no
7892       ;;
7893
7894     uts4*)
7895       lt_prog_compiler_pic='-pic'
7896       lt_prog_compiler_static='-Bstatic'
7897       ;;
7898
7899     *)
7900       lt_prog_compiler_can_build_shared=no
7901       ;;
7902     esac
7903   fi
7904
7905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7906 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7907
7908 #
7909 # Check to make sure the PIC flag actually works.
7910 #
7911 if test -n "$lt_prog_compiler_pic"; then
7912
7913 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7915 if test "${lt_prog_compiler_pic_works+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   lt_prog_compiler_pic_works=no
7919   ac_outfile=conftest.$ac_objext
7920    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7921    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7922    # Insert the option either (1) after the last *FLAGS variable, or
7923    # (2) before a word containing "conftest.", or (3) at the end.
7924    # Note that $ac_compile itself does not contain backslashes and begins
7925    # with a dollar sign (not a hyphen), so the echo should work correctly.
7926    # The option is referenced via a variable to avoid confusing sed.
7927    lt_compile=`echo "$ac_compile" | $SED \
7928    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930    -e 's:$: $lt_compiler_flag:'`
7931    (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
7932    (eval "$lt_compile" 2>conftest.err)
7933    ac_status=$?
7934    cat conftest.err >&5
7935    echo "$as_me:7935: \$? = $ac_status" >&5
7936    if (exit $ac_status) && test -s "$ac_outfile"; then
7937      # The compiler can only warn and ignore the option if not recognized
7938      # So say no if there are warnings other than the usual output.
7939      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7940      $SED '/^$/d' conftest.err >conftest.er2
7941      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7942        lt_prog_compiler_pic_works=yes
7943      fi
7944    fi
7945    $rm conftest*
7946
7947 fi
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7950
7951 if test x"$lt_prog_compiler_pic_works" = xyes; then
7952     case $lt_prog_compiler_pic in
7953      "" | " "*) ;;
7954      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7955      esac
7956 else
7957     lt_prog_compiler_pic=
7958      lt_prog_compiler_can_build_shared=no
7959 fi
7960
7961 fi
7962 case $host_os in
7963   # For platforms which do not support PIC, -DPIC is meaningless:
7964   *djgpp*)
7965     lt_prog_compiler_pic=
7966     ;;
7967   *)
7968     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7969     ;;
7970 esac
7971
7972 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   lt_cv_prog_compiler_c_o=no
7978    $rm -r conftest 2>/dev/null
7979    mkdir conftest
7980    cd conftest
7981    mkdir out
7982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7983
7984    lt_compiler_flag="-o out/conftest2.$ac_objext"
7985    # Insert the option either (1) after the last *FLAGS variable, or
7986    # (2) before a word containing "conftest.", or (3) at the end.
7987    # Note that $ac_compile itself does not contain backslashes and begins
7988    # with a dollar sign (not a hyphen), so the echo should work correctly.
7989    lt_compile=`echo "$ac_compile" | $SED \
7990    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7992    -e 's:$: $lt_compiler_flag:'`
7993    (eval echo "\"\$as_me:7993: $lt_compile\"" >&5)
7994    (eval "$lt_compile" 2>out/conftest.err)
7995    ac_status=$?
7996    cat out/conftest.err >&5
7997    echo "$as_me:7997: \$? = $ac_status" >&5
7998    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7999    then
8000      # The compiler can only warn and ignore the option if not recognized
8001      # So say no if there are warnings
8002      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8003      $SED '/^$/d' out/conftest.err >out/conftest.er2
8004      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8005        lt_cv_prog_compiler_c_o=yes
8006      fi
8007    fi
8008    chmod u+w . 2>&5
8009    $rm conftest*
8010    # SGI C++ compiler will create directory out/ii_files/ for
8011    # template instantiation
8012    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8013    $rm out/* && rmdir out
8014    cd ..
8015    rmdir conftest
8016    $rm conftest*
8017
8018 fi
8019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8021
8022
8023 hard_links="nottested"
8024 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8025   # do not overwrite the value of need_locks provided by the user
8026   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8028   hard_links=yes
8029   $rm conftest*
8030   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8031   touch conftest.a
8032   ln conftest.a conftest.b 2>&5 || hard_links=no
8033   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8034   echo "$as_me:$LINENO: result: $hard_links" >&5
8035 echo "${ECHO_T}$hard_links" >&6
8036   if test "$hard_links" = no; then
8037     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8039     need_locks=warn
8040   fi
8041 else
8042   need_locks=no
8043 fi
8044
8045 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8047
8048   runpath_var=
8049   allow_undefined_flag=
8050   enable_shared_with_static_runtimes=no
8051   archive_cmds=
8052   archive_expsym_cmds=
8053   old_archive_From_new_cmds=
8054   old_archive_from_expsyms_cmds=
8055   export_dynamic_flag_spec=
8056   whole_archive_flag_spec=
8057   thread_safe_flag_spec=
8058   hardcode_libdir_flag_spec=
8059   hardcode_libdir_flag_spec_ld=
8060   hardcode_libdir_separator=
8061   hardcode_direct=no
8062   hardcode_minus_L=no
8063   hardcode_shlibpath_var=unsupported
8064   link_all_deplibs=unknown
8065   hardcode_automatic=no
8066   module_cmds=
8067   module_expsym_cmds=
8068   always_export_symbols=no
8069   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8070   # include_expsyms should be a list of space-separated symbols to be *always*
8071   # included in the symbol list
8072   include_expsyms=
8073   # exclude_expsyms can be an extended regexp of symbols to exclude
8074   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8075   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8076   # as well as any symbol that contains `d'.
8077   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8078   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8079   # platforms (ab)use it in PIC code, but their linkers get confused if
8080   # the symbol is explicitly referenced.  Since portable code cannot
8081   # rely on this symbol name, it's probably fine to never include it in
8082   # preloaded symbol tables.
8083   extract_expsyms_cmds=
8084   # Just being paranoid about ensuring that cc_basename is set.
8085   for cc_temp in $compiler""; do
8086   case $cc_temp in
8087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8089     \-*) ;;
8090     *) break;;
8091   esac
8092 done
8093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8094
8095   case $host_os in
8096   cygwin* | mingw* | pw32*)
8097     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8098     # When not using gcc, we currently assume that we are using
8099     # Microsoft Visual C++.
8100     if test "$GCC" != yes; then
8101       with_gnu_ld=no
8102     fi
8103     ;;
8104   openbsd*)
8105     with_gnu_ld=no
8106     ;;
8107   esac
8108
8109   ld_shlibs=yes
8110   if test "$with_gnu_ld" = yes; then
8111     # If archive_cmds runs LD, not CC, wlarc should be empty
8112     wlarc='${wl}'
8113
8114     # Set some defaults for GNU ld with shared library support. These
8115     # are reset later if shared libraries are not supported. Putting them
8116     # here allows them to be overridden if necessary.
8117     runpath_var=LD_RUN_PATH
8118     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8119     export_dynamic_flag_spec='${wl}--export-dynamic'
8120     # ancient GNU ld didn't support --whole-archive et. al.
8121     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8122         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8123       else
8124         whole_archive_flag_spec=
8125     fi
8126     supports_anon_versioning=no
8127     case `$LD -v 2>/dev/null` in
8128       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131       *\ 2.11.*) ;; # other 2.11 versions
8132       *) supports_anon_versioning=yes ;;
8133     esac
8134
8135     # See if GNU ld supports shared libraries.
8136     case $host_os in
8137     aix3* | aix4* | aix5*)
8138       # On AIX/PPC, the GNU linker is very broken
8139       if test "$host_cpu" != ia64; then
8140         ld_shlibs=no
8141         cat <<EOF 1>&2
8142
8143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144 *** to be unable to reliably create shared libraries on AIX.
8145 *** Therefore, libtool is disabling shared libraries support.  If you
8146 *** really care for shared libraries, you may want to modify your PATH
8147 *** so that a non-GNU linker is found, and then restart.
8148
8149 EOF
8150       fi
8151       ;;
8152
8153     amigaos*)
8154       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)'
8155       hardcode_libdir_flag_spec='-L$libdir'
8156       hardcode_minus_L=yes
8157
8158       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8159       # that the semantics of dynamic libraries on AmigaOS, at least up
8160       # to version 4, is to share data among multiple programs linked
8161       # with the same dynamic library.  Since this doesn't match the
8162       # behavior of shared libraries on other platforms, we can't use
8163       # them.
8164       ld_shlibs=no
8165       ;;
8166
8167     beos*)
8168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169         allow_undefined_flag=unsupported
8170         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8171         # support --undefined.  This deserves some investigation.  FIXME
8172         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173       else
8174         ld_shlibs=no
8175       fi
8176       ;;
8177
8178     cygwin* | mingw* | pw32*)
8179       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8180       # as there is no search path for DLLs.
8181       hardcode_libdir_flag_spec='-L$libdir'
8182       allow_undefined_flag=unsupported
8183       always_export_symbols=no
8184       enable_shared_with_static_runtimes=yes
8185       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8186
8187       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8189         # If the export-symbols file already is a .def file (1st line
8190         # is EXPORTS), use it as is; otherwise, prepend...
8191         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8192           cp $export_symbols $output_objdir/$soname.def;
8193         else
8194           echo EXPORTS > $output_objdir/$soname.def;
8195           cat $export_symbols >> $output_objdir/$soname.def;
8196         fi~
8197         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8198       else
8199         ld_shlibs=no
8200       fi
8201       ;;
8202
8203     linux*)
8204       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205         tmp_addflag=
8206         case $cc_basename,$host_cpu in
8207         pgcc*)                          # Portland Group C compiler
8208           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'
8209           tmp_addflag=' $pic_flag'
8210           ;;
8211         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8212           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'
8213           tmp_addflag=' $pic_flag -Mnomain' ;;
8214         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8215           tmp_addflag=' -i_dynamic' ;;
8216         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8217           tmp_addflag=' -i_dynamic -nofor_main' ;;
8218         ifc* | ifort*)                  # Intel Fortran compiler
8219           tmp_addflag=' -nofor_main' ;;
8220         esac
8221         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222
8223         if test $supports_anon_versioning = yes; then
8224           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8225   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226   $echo "local: *; };" >> $output_objdir/$libname.ver~
8227           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8228         fi
8229       else
8230         ld_shlibs=no
8231       fi
8232       ;;
8233
8234     netbsd*)
8235       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8236         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8237         wlarc=
8238       else
8239         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8241       fi
8242       ;;
8243
8244     solaris* | sysv5*)
8245       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8246         ld_shlibs=no
8247         cat <<EOF 1>&2
8248
8249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8250 *** create shared libraries on Solaris systems.  Therefore, libtool
8251 *** is disabling shared libraries support.  We urge you to upgrade GNU
8252 *** binutils to release 2.9.1 or newer.  Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8255
8256 EOF
8257       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8260       else
8261         ld_shlibs=no
8262       fi
8263       ;;
8264
8265     sunos4*)
8266       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8267       wlarc=
8268       hardcode_direct=yes
8269       hardcode_shlibpath_var=no
8270       ;;
8271
8272     *)
8273       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8276       else
8277         ld_shlibs=no
8278       fi
8279       ;;
8280     esac
8281
8282     if test "$ld_shlibs" = no; then
8283       runpath_var=
8284       hardcode_libdir_flag_spec=
8285       export_dynamic_flag_spec=
8286       whole_archive_flag_spec=
8287     fi
8288   else
8289     # PORTME fill in a description of your system's linker (not GNU ld)
8290     case $host_os in
8291     aix3*)
8292       allow_undefined_flag=unsupported
8293       always_export_symbols=yes
8294       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'
8295       # Note: this linker hardcodes the directories in LIBPATH if there
8296       # are no directories specified by -L.
8297       hardcode_minus_L=yes
8298       if test "$GCC" = yes && test -z "$link_static_flag"; then
8299         # Neither direct hardcoding nor static linking is supported with a
8300         # broken collect2.
8301         hardcode_direct=unsupported
8302       fi
8303       ;;
8304
8305     aix4* | aix5*)
8306       if test "$host_cpu" = ia64; then
8307         # On IA64, the linker does run time linking by default, so we don't
8308         # have to do anything special.
8309         aix_use_runtimelinking=no
8310         exp_sym_flag='-Bexport'
8311         no_entry_flag=""
8312       else
8313         # If we're using GNU nm, then we don't want the "-C" option.
8314         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8315         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8316           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'
8317         else
8318           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'
8319         fi
8320         aix_use_runtimelinking=no
8321
8322         # Test if we are trying to use run time linking or normal
8323         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8324         # need to do runtime linking.
8325         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8326           for ld_flag in $LDFLAGS; do
8327           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8328             aix_use_runtimelinking=yes
8329             break
8330           fi
8331           done
8332         esac
8333
8334         exp_sym_flag='-bexport'
8335         no_entry_flag='-bnoentry'
8336       fi
8337
8338       # When large executables or shared objects are built, AIX ld can
8339       # have problems creating the table of contents.  If linking a library
8340       # or program results in "error TOC overflow" add -mminimal-toc to
8341       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8342       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8343
8344       archive_cmds=''
8345       hardcode_direct=yes
8346       hardcode_libdir_separator=':'
8347       link_all_deplibs=yes
8348
8349       if test "$GCC" = yes; then
8350         case $host_os in aix4.[012]|aix4.[012].*)
8351         # We only want to do this on AIX 4.2 and lower, the check
8352         # below for broken collect2 doesn't work under 4.3+
8353           collect2name=`${CC} -print-prog-name=collect2`
8354           if test -f "$collect2name" && \
8355            strings "$collect2name" | grep resolve_lib_name >/dev/null
8356           then
8357           # We have reworked collect2
8358           hardcode_direct=yes
8359           else
8360           # We have old collect2
8361           hardcode_direct=unsupported
8362           # It fails to find uninstalled libraries when the uninstalled
8363           # path is not listed in the libpath.  Setting hardcode_minus_L
8364           # to unsupported forces relinking
8365           hardcode_minus_L=yes
8366           hardcode_libdir_flag_spec='-L$libdir'
8367           hardcode_libdir_separator=
8368           fi
8369         esac
8370         shared_flag='-shared'
8371         if test "$aix_use_runtimelinking" = yes; then
8372           shared_flag="$shared_flag "'${wl}-G'
8373         fi
8374       else
8375         # not using gcc
8376         if test "$host_cpu" = ia64; then
8377         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8378         # chokes on -Wl,-G. The following line is correct:
8379           shared_flag='-G'
8380         else
8381         if test "$aix_use_runtimelinking" = yes; then
8382             shared_flag='${wl}-G'
8383           else
8384             shared_flag='${wl}-bM:SRE'
8385         fi
8386         fi
8387       fi
8388
8389       # It seems that -bexpall does not export symbols beginning with
8390       # underscore (_), so it is better to generate a list of symbols to export.
8391       always_export_symbols=yes
8392       if test "$aix_use_runtimelinking" = yes; then
8393         # Warning - without using the other runtime loading flags (-brtl),
8394         # -berok will link without error, but may produce a broken library.
8395         allow_undefined_flag='-berok'
8396        # Determine the default libpath from the value encoded in an empty executable.
8397        cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403
8404 int
8405 main ()
8406 {
8407
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414   (eval $ac_link) 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag"
8422                          || test ! -s conftest.err'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; } &&
8428          { ac_try='test -s conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8436 }'`
8437 # Check for a 64-bit object if we didn't find anything.
8438 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; }
8439 }'`; fi
8440 else
8441   echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 fi
8445 rm -f conftest.err conftest.$ac_objext \
8446       conftest$ac_exeext conftest.$ac_ext
8447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8448
8449        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8450         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"
8451        else
8452         if test "$host_cpu" = ia64; then
8453           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8454           allow_undefined_flag="-z nodefs"
8455           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"
8456         else
8457          # Determine the default libpath from the value encoded in an empty executable.
8458          cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464
8465 int
8466 main ()
8467 {
8468
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475   (eval $ac_link) 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -z "$ac_c_werror_flag"
8483                          || test ! -s conftest.err'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; } &&
8489          { ac_try='test -s conftest$ac_exeext'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495
8496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8497 }'`
8498 # Check for a 64-bit object if we didn't find anything.
8499 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; }
8500 }'`; fi
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 fi
8506 rm -f conftest.err conftest.$ac_objext \
8507       conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8509
8510          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511           # Warning - without using the other run time loading flags,
8512           # -berok will link without error, but may produce a broken library.
8513           no_undefined_flag=' ${wl}-bernotok'
8514           allow_undefined_flag=' ${wl}-berok'
8515           # -bexpall does not export symbols beginning with underscore (_)
8516           always_export_symbols=yes
8517           # Exported symbols can be pulled into shared objects from archives
8518           whole_archive_flag_spec=' '
8519           archive_cmds_need_lc=yes
8520           # This is similar to how AIX traditionally builds its shared libraries.
8521           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'
8522         fi
8523       fi
8524       ;;
8525
8526     amigaos*)
8527       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)'
8528       hardcode_libdir_flag_spec='-L$libdir'
8529       hardcode_minus_L=yes
8530       # see comment about different semantics on the GNU ld section
8531       ld_shlibs=no
8532       ;;
8533
8534     bsdi[45]*)
8535       export_dynamic_flag_spec=-rdynamic
8536       ;;
8537
8538     cygwin* | mingw* | pw32*)
8539       # When not using gcc, we currently assume that we are using
8540       # Microsoft Visual C++.
8541       # hardcode_libdir_flag_spec is actually meaningless, as there is
8542       # no search path for DLLs.
8543       hardcode_libdir_flag_spec=' '
8544       allow_undefined_flag=unsupported
8545       # Tell ltmain to make .lib files, not .a files.
8546       libext=lib
8547       # Tell ltmain to make .dll files, not .so files.
8548       shrext_cmds=".dll"
8549       # FIXME: Setting linknames here is a bad hack.
8550       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8551       # The linker will automatically build a .lib file if we build a DLL.
8552       old_archive_From_new_cmds='true'
8553       # FIXME: Should let the user specify the lib program.
8554       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8555       fix_srcfile_path='`cygpath -w "$srcfile"`'
8556       enable_shared_with_static_runtimes=yes
8557       ;;
8558
8559     darwin* | rhapsody*)
8560       case $host_os in
8561         rhapsody* | darwin1.[012])
8562          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8563          ;;
8564        *) # Darwin 1.3 on
8565          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8566            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8567          else
8568            case ${MACOSX_DEPLOYMENT_TARGET} in
8569              10.[012])
8570                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8571                ;;
8572              10.*)
8573                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8574                ;;
8575            esac
8576          fi
8577          ;;
8578       esac
8579       archive_cmds_need_lc=no
8580       hardcode_direct=no
8581       hardcode_automatic=yes
8582       hardcode_shlibpath_var=unsupported
8583       whole_archive_flag_spec=''
8584       link_all_deplibs=yes
8585     if test "$GCC" = yes ; then
8586         output_verbose_link_cmd='echo'
8587         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8588       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8590       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}'
8591       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}'
8592     else
8593       case $cc_basename in
8594         xlc*)
8595          output_verbose_link_cmd='echo'
8596          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8597          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8599          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}'
8600           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}'
8601           ;;
8602        *)
8603          ld_shlibs=no
8604           ;;
8605       esac
8606     fi
8607       ;;
8608
8609     dgux*)
8610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611       hardcode_libdir_flag_spec='-L$libdir'
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     freebsd1*)
8616       ld_shlibs=no
8617       ;;
8618
8619     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620     # support.  Future versions do this automatically, but an explicit c++rt0.o
8621     # does not break anything, and helps significantly (at the cost of a little
8622     # extra space).
8623     freebsd2.2*)
8624       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625       hardcode_libdir_flag_spec='-R$libdir'
8626       hardcode_direct=yes
8627       hardcode_shlibpath_var=no
8628       ;;
8629
8630     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631     freebsd2*)
8632       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633       hardcode_direct=yes
8634       hardcode_minus_L=yes
8635       hardcode_shlibpath_var=no
8636       ;;
8637
8638     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639     freebsd* | kfreebsd*-gnu | dragonfly*)
8640       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641       hardcode_libdir_flag_spec='-R$libdir'
8642       hardcode_direct=yes
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     hpux9*)
8647       if test "$GCC" = yes; then
8648         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'
8649       else
8650         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'
8651       fi
8652       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653       hardcode_libdir_separator=:
8654       hardcode_direct=yes
8655
8656       # hardcode_minus_L: Not really in the search PATH,
8657       # but as the default location of the library.
8658       hardcode_minus_L=yes
8659       export_dynamic_flag_spec='${wl}-E'
8660       ;;
8661
8662     hpux10* | hpux11*)
8663       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8664         case $host_cpu in
8665         hppa*64*|ia64*)
8666           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8667           ;;
8668         *)
8669           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8670           ;;
8671         esac
8672       else
8673         case $host_cpu in
8674         hppa*64*|ia64*)
8675           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8676           ;;
8677         *)
8678           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8679           ;;
8680         esac
8681       fi
8682       if test "$with_gnu_ld" = no; then
8683         case $host_cpu in
8684         hppa*64*)
8685           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8686           hardcode_libdir_flag_spec_ld='+b $libdir'
8687           hardcode_libdir_separator=:
8688           hardcode_direct=no
8689           hardcode_shlibpath_var=no
8690           ;;
8691         ia64*)
8692           hardcode_libdir_flag_spec='-L$libdir'
8693           hardcode_direct=no
8694           hardcode_shlibpath_var=no
8695
8696           # hardcode_minus_L: Not really in the search PATH,
8697           # but as the default location of the library.
8698           hardcode_minus_L=yes
8699           ;;
8700         *)
8701           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702           hardcode_libdir_separator=:
8703           hardcode_direct=yes
8704           export_dynamic_flag_spec='${wl}-E'
8705
8706           # hardcode_minus_L: Not really in the search PATH,
8707           # but as the default location of the library.
8708           hardcode_minus_L=yes
8709           ;;
8710         esac
8711       fi
8712       ;;
8713
8714     irix5* | irix6* | nonstopux*)
8715       if test "$GCC" = yes; then
8716         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'
8717       else
8718         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'
8719         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8720       fi
8721       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722       hardcode_libdir_separator=:
8723       link_all_deplibs=yes
8724       ;;
8725
8726     netbsd*)
8727       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8728         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8729       else
8730         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8731       fi
8732       hardcode_libdir_flag_spec='-R$libdir'
8733       hardcode_direct=yes
8734       hardcode_shlibpath_var=no
8735       ;;
8736
8737     newsos6)
8738       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739       hardcode_direct=yes
8740       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741       hardcode_libdir_separator=:
8742       hardcode_shlibpath_var=no
8743       ;;
8744
8745     openbsd*)
8746       hardcode_direct=yes
8747       hardcode_shlibpath_var=no
8748       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8749         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8750         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8751         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8752         export_dynamic_flag_spec='${wl}-E'
8753       else
8754        case $host_os in
8755          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8756            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757            hardcode_libdir_flag_spec='-R$libdir'
8758            ;;
8759          *)
8760            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8761            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8762            ;;
8763        esac
8764       fi
8765       ;;
8766
8767     os2*)
8768       hardcode_libdir_flag_spec='-L$libdir'
8769       hardcode_minus_L=yes
8770       allow_undefined_flag=unsupported
8771       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'
8772       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8773       ;;
8774
8775     osf3*)
8776       if test "$GCC" = yes; then
8777         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8778         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'
8779       else
8780         allow_undefined_flag=' -expect_unresolved \*'
8781         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'
8782       fi
8783       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784       hardcode_libdir_separator=:
8785       ;;
8786
8787     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8788       if test "$GCC" = yes; then
8789         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8790         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'
8791         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792       else
8793         allow_undefined_flag=' -expect_unresolved \*'
8794         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'
8795         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8796         $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'
8797
8798         # Both c and cxx compiler support -rpath directly
8799         hardcode_libdir_flag_spec='-rpath $libdir'
8800       fi
8801       hardcode_libdir_separator=:
8802       ;;
8803
8804     sco3.2v5*)
8805       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806       hardcode_shlibpath_var=no
8807       export_dynamic_flag_spec='${wl}-Bexport'
8808       runpath_var=LD_RUN_PATH
8809       hardcode_runpath_var=yes
8810       ;;
8811
8812     solaris*)
8813       no_undefined_flag=' -z text'
8814       if test "$GCC" = yes; then
8815         wlarc='${wl}'
8816         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8819       else
8820         wlarc=''
8821         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8824       fi
8825       hardcode_libdir_flag_spec='-R$libdir'
8826       hardcode_shlibpath_var=no
8827       case $host_os in
8828       solaris2.[0-5] | solaris2.[0-5].*) ;;
8829       *)
8830         # The compiler driver will combine linker options so we
8831         # cannot just pass the convience library names through
8832         # without $wl, iff we do not link with $LD.
8833         # Luckily, gcc supports the same syntax we need for Sun Studio.
8834         # Supported since Solaris 2.6 (maybe 2.5.1?)
8835         case $wlarc in
8836         '')
8837           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8838         *)
8839           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' ;;
8840         esac ;;
8841       esac
8842       link_all_deplibs=yes
8843       ;;
8844
8845     sunos4*)
8846       if test "x$host_vendor" = xsequent; then
8847         # Use $CC to link under sequent, because it throws in some extra .o
8848         # files that make .init and .fini sections work.
8849         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8850       else
8851         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8852       fi
8853       hardcode_libdir_flag_spec='-L$libdir'
8854       hardcode_direct=yes
8855       hardcode_minus_L=yes
8856       hardcode_shlibpath_var=no
8857       ;;
8858
8859     sysv4)
8860       case $host_vendor in
8861         sni)
8862           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863           hardcode_direct=yes # is this really true???
8864         ;;
8865         siemens)
8866           ## LD is ld it makes a PLAMLIB
8867           ## CC just makes a GrossModule.
8868           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8869           reload_cmds='$CC -r -o $output$reload_objs'
8870           hardcode_direct=no
8871         ;;
8872         motorola)
8873           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8875         ;;
8876       esac
8877       runpath_var='LD_RUN_PATH'
8878       hardcode_shlibpath_var=no
8879       ;;
8880
8881     sysv4.3*)
8882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883       hardcode_shlibpath_var=no
8884       export_dynamic_flag_spec='-Bexport'
8885       ;;
8886
8887     sysv4*MP*)
8888       if test -d /usr/nec; then
8889         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890         hardcode_shlibpath_var=no
8891         runpath_var=LD_RUN_PATH
8892         hardcode_runpath_var=yes
8893         ld_shlibs=yes
8894       fi
8895       ;;
8896
8897     sysv4.2uw2*)
8898       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8899       hardcode_direct=yes
8900       hardcode_minus_L=no
8901       hardcode_shlibpath_var=no
8902       hardcode_runpath_var=yes
8903       runpath_var=LD_RUN_PATH
8904       ;;
8905
8906    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8907       no_undefined_flag='${wl}-z ${wl}text'
8908       if test "$GCC" = yes; then
8909         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8910       else
8911         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912       fi
8913       runpath_var='LD_RUN_PATH'
8914       hardcode_shlibpath_var=no
8915       ;;
8916
8917     sysv5*)
8918       no_undefined_flag=' -z text'
8919       # $CC -shared without GNU ld will not create a library from C++
8920       # object files and a static libstdc++, better avoid it by now
8921       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8924       hardcode_libdir_flag_spec=
8925       hardcode_shlibpath_var=no
8926       runpath_var='LD_RUN_PATH'
8927       ;;
8928
8929     uts4*)
8930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931       hardcode_libdir_flag_spec='-L$libdir'
8932       hardcode_shlibpath_var=no
8933       ;;
8934
8935     *)
8936       ld_shlibs=no
8937       ;;
8938     esac
8939   fi
8940
8941 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8942 echo "${ECHO_T}$ld_shlibs" >&6
8943 test "$ld_shlibs" = no && can_build_shared=no
8944
8945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8946 if test "$GCC" = yes; then
8947   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8948 fi
8949
8950 #
8951 # Do we need to explicitly link libc?
8952 #
8953 case "x$archive_cmds_need_lc" in
8954 x|xyes)
8955   # Assume -lc should be added
8956   archive_cmds_need_lc=yes
8957
8958   if test "$enable_shared" = yes && test "$GCC" = yes; then
8959     case $archive_cmds in
8960     *'~'*)
8961       # FIXME: we may have to deal with multi-command sequences.
8962       ;;
8963     '$CC '*)
8964       # Test whether the compiler implicitly links with -lc since on some
8965       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966       # to ld, don't add -lc before -lgcc.
8967       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8969       $rm conftest*
8970       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8971
8972       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973   (eval $ac_compile) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } 2>conftest.err; then
8977         soname=conftest
8978         lib=conftest
8979         libobjs=conftest.$ac_objext
8980         deplibs=
8981         wl=$lt_prog_compiler_wl
8982         compiler_flags=-v
8983         linker_flags=-v
8984         verstring=
8985         output_objdir=.
8986         libname=conftest
8987         lt_save_allow_undefined_flag=$allow_undefined_flag
8988         allow_undefined_flag=
8989         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8990   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }
8994         then
8995           archive_cmds_need_lc=no
8996         else
8997           archive_cmds_need_lc=yes
8998         fi
8999         allow_undefined_flag=$lt_save_allow_undefined_flag
9000       else
9001         cat conftest.err 1>&5
9002       fi
9003       $rm conftest*
9004       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9005 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9006       ;;
9007     esac
9008   fi
9009   ;;
9010 esac
9011
9012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9014 library_names_spec=
9015 libname_spec='lib$name'
9016 soname_spec=
9017 shrext_cmds=".so"
9018 postinstall_cmds=
9019 postuninstall_cmds=
9020 finish_cmds=
9021 finish_eval=
9022 shlibpath_var=
9023 shlibpath_overrides_runpath=unknown
9024 version_type=none
9025 dynamic_linker="$host_os ld.so"
9026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9027 if test "$GCC" = yes; then
9028   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9029   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9030     # if the path contains ";" then we assume it to be the separator
9031     # otherwise default to the standard path separator (i.e. ":") - it is
9032     # assumed that no part of a normal pathname contains ";" but that should
9033     # okay in the real world where ";" in dirpaths is itself problematic.
9034     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9035   else
9036     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9037   fi
9038 else
9039   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9040 fi
9041 need_lib_prefix=unknown
9042 hardcode_into_libs=no
9043
9044 # when you set need_version to no, make sure it does not cause -set_version
9045 # flags to be left without arguments
9046 need_version=unknown
9047
9048 case $host_os in
9049 aix3*)
9050   version_type=linux
9051   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9052   shlibpath_var=LIBPATH
9053
9054   # AIX 3 has no versioning support, so we append a major version to the name.
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   ;;
9057
9058 aix4* | aix5*)
9059   version_type=linux
9060   need_lib_prefix=no
9061   need_version=no
9062   hardcode_into_libs=yes
9063   if test "$host_cpu" = ia64; then
9064     # AIX 5 supports IA64
9065     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9066     shlibpath_var=LD_LIBRARY_PATH
9067   else
9068     # With GCC up to 2.95.x, collect2 would create an import file
9069     # for dependence libraries.  The import file would start with
9070     # the line `#! .'.  This would cause the generated library to
9071     # depend on `.', always an invalid library.  This was fixed in
9072     # development snapshots of GCC prior to 3.0.
9073     case $host_os in
9074       aix4 | aix4.[01] | aix4.[01].*)
9075       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9076            echo ' yes '
9077            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9078         :
9079       else
9080         can_build_shared=no
9081       fi
9082       ;;
9083     esac
9084     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9085     # soname into executable. Probably we can add versioning support to
9086     # collect2, so additional links can be useful in future.
9087     if test "$aix_use_runtimelinking" = yes; then
9088       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9089       # instead of lib<name>.a to let people know that these are not
9090       # typical AIX shared libraries.
9091       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092     else
9093       # We preserve .a as extension for shared libraries through AIX4.2
9094       # and later when we are not doing run time linking.
9095       library_names_spec='${libname}${release}.a $libname.a'
9096       soname_spec='${libname}${release}${shared_ext}$major'
9097     fi
9098     shlibpath_var=LIBPATH
9099   fi
9100   ;;
9101
9102 amigaos*)
9103   library_names_spec='$libname.ixlibrary $libname.a'
9104   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105   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'
9106   ;;
9107
9108 beos*)
9109   library_names_spec='${libname}${shared_ext}'
9110   dynamic_linker="$host_os ld.so"
9111   shlibpath_var=LIBRARY_PATH
9112   ;;
9113
9114 bsdi[45]*)
9115   version_type=linux
9116   need_version=no
9117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9122   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9123   # the default ld.so.conf also contains /usr/contrib/lib and
9124   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9125   # libtool to hard-code these into programs
9126   ;;
9127
9128 cygwin* | mingw* | pw32*)
9129   version_type=windows
9130   shrext_cmds=".dll"
9131   need_version=no
9132   need_lib_prefix=no
9133
9134   case $GCC,$host_os in
9135   yes,cygwin* | yes,mingw* | yes,pw32*)
9136     library_names_spec='$libname.dll.a'
9137     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9138     postinstall_cmds='base_file=`basename \${file}`~
9139       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9140       dldir=$destdir/`dirname \$dlpath`~
9141       test -d \$dldir || mkdir -p \$dldir~
9142       $install_prog $dir/$dlname \$dldir/$dlname~
9143       chmod a+x \$dldir/$dlname'
9144     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9145       dlpath=$dir/\$dldll~
9146        $rm \$dlpath'
9147     shlibpath_overrides_runpath=yes
9148
9149     case $host_os in
9150     cygwin*)
9151       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9152       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9153       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9154       ;;
9155     mingw*)
9156       # MinGW DLLs use traditional 'lib' prefix
9157       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9158       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9159       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9160         # It is most probably a Windows format PATH printed by
9161         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9162         # path with ; separators, and with drive letters. We can handle the
9163         # drive letters (cygwin fileutils understands them), so leave them,
9164         # especially as we might pass files found there to a mingw objdump,
9165         # which wouldn't understand a cygwinified path. Ahh.
9166         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9167       else
9168         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9169       fi
9170       ;;
9171     pw32*)
9172       # pw32 DLLs use 'pw' prefix rather than 'lib'
9173       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9174       ;;
9175     esac
9176     ;;
9177
9178   *)
9179     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9180     ;;
9181   esac
9182   dynamic_linker='Win32 ld.exe'
9183   # FIXME: first we should search . and the directory the executable is in
9184   shlibpath_var=PATH
9185   ;;
9186
9187 darwin* | rhapsody*)
9188   dynamic_linker="$host_os dyld"
9189   version_type=darwin
9190   need_lib_prefix=no
9191   need_version=no
9192   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9193   soname_spec='${libname}${release}${major}$shared_ext'
9194   shlibpath_overrides_runpath=yes
9195   shlibpath_var=DYLD_LIBRARY_PATH
9196   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9197   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9198   if test "$GCC" = yes; then
9199     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"`
9200   else
9201     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9202   fi
9203   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9204   ;;
9205
9206 dgux*)
9207   version_type=linux
9208   need_lib_prefix=no
9209   need_version=no
9210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9211   soname_spec='${libname}${release}${shared_ext}$major'
9212   shlibpath_var=LD_LIBRARY_PATH
9213   ;;
9214
9215 freebsd1*)
9216   dynamic_linker=no
9217   ;;
9218
9219 kfreebsd*-gnu)
9220   version_type=linux
9221   need_lib_prefix=no
9222   need_version=no
9223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9224   soname_spec='${libname}${release}${shared_ext}$major'
9225   shlibpath_var=LD_LIBRARY_PATH
9226   shlibpath_overrides_runpath=no
9227   hardcode_into_libs=yes
9228   dynamic_linker='GNU ld.so'
9229   ;;
9230
9231 freebsd* | dragonfly*)
9232   # DragonFly does not have aout.  When/if they implement a new
9233   # versioning mechanism, adjust this.
9234   if test -x /usr/bin/objformat; then
9235     objformat=`/usr/bin/objformat`
9236   else
9237     case $host_os in
9238     freebsd[123]*) objformat=aout ;;
9239     *) objformat=elf ;;
9240     esac
9241   fi
9242   version_type=freebsd-$objformat
9243   case $version_type in
9244     freebsd-elf*)
9245       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9246       need_version=no
9247       need_lib_prefix=no
9248       ;;
9249     freebsd-*)
9250       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9251       need_version=yes
9252       ;;
9253   esac
9254   shlibpath_var=LD_LIBRARY_PATH
9255   case $host_os in
9256   freebsd2*)
9257     shlibpath_overrides_runpath=yes
9258     ;;
9259   freebsd3.[01]* | freebsdelf3.[01]*)
9260     shlibpath_overrides_runpath=yes
9261     hardcode_into_libs=yes
9262     ;;
9263   *) # from 3.2 on
9264     shlibpath_overrides_runpath=no
9265     hardcode_into_libs=yes
9266     ;;
9267   esac
9268   ;;
9269
9270 gnu*)
9271   version_type=linux
9272   need_lib_prefix=no
9273   need_version=no
9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9275   soname_spec='${libname}${release}${shared_ext}$major'
9276   shlibpath_var=LD_LIBRARY_PATH
9277   hardcode_into_libs=yes
9278   ;;
9279
9280 hpux9* | hpux10* | hpux11*)
9281   # Give a soname corresponding to the major version so that dld.sl refuses to
9282   # link against other versions.
9283   version_type=sunos
9284   need_lib_prefix=no
9285   need_version=no
9286   case $host_cpu in
9287   ia64*)
9288     shrext_cmds='.so'
9289     hardcode_into_libs=yes
9290     dynamic_linker="$host_os dld.so"
9291     shlibpath_var=LD_LIBRARY_PATH
9292     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294     soname_spec='${libname}${release}${shared_ext}$major'
9295     if test "X$HPUX_IA64_MODE" = X32; then
9296       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9297     else
9298       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9299     fi
9300     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9301     ;;
9302    hppa*64*)
9303      shrext_cmds='.sl'
9304      hardcode_into_libs=yes
9305      dynamic_linker="$host_os dld.sl"
9306      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9307      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309      soname_spec='${libname}${release}${shared_ext}$major'
9310      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9311      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9312      ;;
9313    *)
9314     shrext_cmds='.sl'
9315     dynamic_linker="$host_os dld.sl"
9316     shlibpath_var=SHLIB_PATH
9317     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319     soname_spec='${libname}${release}${shared_ext}$major'
9320     ;;
9321   esac
9322   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9323   postinstall_cmds='chmod 555 $lib'
9324   ;;
9325
9326 irix5* | irix6* | nonstopux*)
9327   case $host_os in
9328     nonstopux*) version_type=nonstopux ;;
9329     *)
9330         if test "$lt_cv_prog_gnu_ld" = yes; then
9331                 version_type=linux
9332         else
9333                 version_type=irix
9334         fi ;;
9335   esac
9336   need_lib_prefix=no
9337   need_version=no
9338   soname_spec='${libname}${release}${shared_ext}$major'
9339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9340   case $host_os in
9341   irix5* | nonstopux*)
9342     libsuff= shlibsuff=
9343     ;;
9344   *)
9345     case $LD in # libtool.m4 will add one of these switches to LD
9346     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9347       libsuff= shlibsuff= libmagic=32-bit;;
9348     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9349       libsuff=32 shlibsuff=N32 libmagic=N32;;
9350     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9351       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9352     *) libsuff= shlibsuff= libmagic=never-match;;
9353     esac
9354     ;;
9355   esac
9356   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9357   shlibpath_overrides_runpath=no
9358   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9359   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9360   hardcode_into_libs=yes
9361   ;;
9362
9363 # No shared lib support for Linux oldld, aout, or coff.
9364 linux*oldld* | linux*aout* | linux*coff*)
9365   dynamic_linker=no
9366   ;;
9367
9368 # This must be Linux ELF.
9369 linux*)
9370   version_type=linux
9371   need_lib_prefix=no
9372   need_version=no
9373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374   soname_spec='${libname}${release}${shared_ext}$major'
9375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9376   shlibpath_var=LD_LIBRARY_PATH
9377   shlibpath_overrides_runpath=no
9378   # This implies no fast_install, which is unacceptable.
9379   # Some rework will be needed to allow for fast_install
9380   # before this can be enabled.
9381   hardcode_into_libs=yes
9382
9383   # Append ld.so.conf contents to the search path
9384   if test -f /etc/ld.so.conf; then
9385     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' ' '`
9386     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9387   fi
9388
9389   # We used to test for /lib/ld.so.1 and disable shared libraries on
9390   # powerpc, because MkLinux only supported shared libraries with the
9391   # GNU dynamic linker.  Since this was broken with cross compilers,
9392   # most powerpc-linux boxes support dynamic linking these days and
9393   # people can always --disable-shared, the test was removed, and we
9394   # assume the GNU/Linux dynamic linker is in use.
9395   dynamic_linker='GNU/Linux ld.so'
9396   ;;
9397
9398 knetbsd*-gnu)
9399   version_type=linux
9400   need_lib_prefix=no
9401   need_version=no
9402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9403   soname_spec='${libname}${release}${shared_ext}$major'
9404   shlibpath_var=LD_LIBRARY_PATH
9405   shlibpath_overrides_runpath=no
9406   hardcode_into_libs=yes
9407   dynamic_linker='GNU ld.so'
9408   ;;
9409
9410 netbsd*)
9411   version_type=sunos
9412   need_lib_prefix=no
9413   need_version=no
9414   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9416     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9417     dynamic_linker='NetBSD (a.out) ld.so'
9418   else
9419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9420     soname_spec='${libname}${release}${shared_ext}$major'
9421     dynamic_linker='NetBSD ld.elf_so'
9422   fi
9423   shlibpath_var=LD_LIBRARY_PATH
9424   shlibpath_overrides_runpath=yes
9425   hardcode_into_libs=yes
9426   ;;
9427
9428 newsos6)
9429   version_type=linux
9430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   shlibpath_overrides_runpath=yes
9433   ;;
9434
9435 nto-qnx*)
9436   version_type=linux
9437   need_lib_prefix=no
9438   need_version=no
9439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440   soname_spec='${libname}${release}${shared_ext}$major'
9441   shlibpath_var=LD_LIBRARY_PATH
9442   shlibpath_overrides_runpath=yes
9443   ;;
9444
9445 openbsd*)
9446   version_type=sunos
9447   need_lib_prefix=no
9448   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9449   case $host_os in
9450     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9451     *)                         need_version=no  ;;
9452   esac
9453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9454   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9455   shlibpath_var=LD_LIBRARY_PATH
9456   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9457     case $host_os in
9458       openbsd2.[89] | openbsd2.[89].*)
9459         shlibpath_overrides_runpath=no
9460         ;;
9461       *)
9462         shlibpath_overrides_runpath=yes
9463         ;;
9464       esac
9465   else
9466     shlibpath_overrides_runpath=yes
9467   fi
9468   ;;
9469
9470 os2*)
9471   libname_spec='$name'
9472   shrext_cmds=".dll"
9473   need_lib_prefix=no
9474   library_names_spec='$libname${shared_ext} $libname.a'
9475   dynamic_linker='OS/2 ld.exe'
9476   shlibpath_var=LIBPATH
9477   ;;
9478
9479 osf3* | osf4* | osf5*)
9480   version_type=osf
9481   need_lib_prefix=no
9482   need_version=no
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9487   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9488   ;;
9489
9490 sco3.2v5*)
9491   version_type=osf
9492   soname_spec='${libname}${release}${shared_ext}$major'
9493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494   shlibpath_var=LD_LIBRARY_PATH
9495   ;;
9496
9497 solaris*)
9498   version_type=linux
9499   need_lib_prefix=no
9500   need_version=no
9501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502   soname_spec='${libname}${release}${shared_ext}$major'
9503   shlibpath_var=LD_LIBRARY_PATH
9504   shlibpath_overrides_runpath=yes
9505   hardcode_into_libs=yes
9506   # ldd complains unless libraries are executable
9507   postinstall_cmds='chmod +x $lib'
9508   ;;
9509
9510 sunos4*)
9511   version_type=sunos
9512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9514   shlibpath_var=LD_LIBRARY_PATH
9515   shlibpath_overrides_runpath=yes
9516   if test "$with_gnu_ld" = yes; then
9517     need_lib_prefix=no
9518   fi
9519   need_version=yes
9520   ;;
9521
9522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9523   version_type=linux
9524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525   soname_spec='${libname}${release}${shared_ext}$major'
9526   shlibpath_var=LD_LIBRARY_PATH
9527   case $host_vendor in
9528     sni)
9529       shlibpath_overrides_runpath=no
9530       need_lib_prefix=no
9531       export_dynamic_flag_spec='${wl}-Blargedynsym'
9532       runpath_var=LD_RUN_PATH
9533       ;;
9534     siemens)
9535       need_lib_prefix=no
9536       ;;
9537     motorola)
9538       need_lib_prefix=no
9539       need_version=no
9540       shlibpath_overrides_runpath=no
9541       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9542       ;;
9543   esac
9544   ;;
9545
9546 sysv4*MP*)
9547   if test -d /usr/nec ;then
9548     version_type=linux
9549     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9550     soname_spec='$libname${shared_ext}.$major'
9551     shlibpath_var=LD_LIBRARY_PATH
9552   fi
9553   ;;
9554
9555 uts4*)
9556   version_type=linux
9557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558   soname_spec='${libname}${release}${shared_ext}$major'
9559   shlibpath_var=LD_LIBRARY_PATH
9560   ;;
9561
9562 *)
9563   dynamic_linker=no
9564   ;;
9565 esac
9566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9567 echo "${ECHO_T}$dynamic_linker" >&6
9568 test "$dynamic_linker" = no && can_build_shared=no
9569
9570 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9572 hardcode_action=
9573 if test -n "$hardcode_libdir_flag_spec" || \
9574    test -n "$runpath_var" || \
9575    test "X$hardcode_automatic" = "Xyes" ; then
9576
9577   # We can hardcode non-existant directories.
9578   if test "$hardcode_direct" != no &&
9579      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9580      # have to relink, otherwise we might link with an installed library
9581      # when we should be linking with a yet-to-be-installed one
9582      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9583      test "$hardcode_minus_L" != no; then
9584     # Linking always hardcodes the temporary library directory.
9585     hardcode_action=relink
9586   else
9587     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9588     hardcode_action=immediate
9589   fi
9590 else
9591   # We cannot hardcode anything, or else we can only hardcode existing
9592   # directories.
9593   hardcode_action=unsupported
9594 fi
9595 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9596 echo "${ECHO_T}$hardcode_action" >&6
9597
9598 if test "$hardcode_action" = relink; then
9599   # Fast installation is not supported
9600   enable_fast_install=no
9601 elif test "$shlibpath_overrides_runpath" = yes ||
9602      test "$enable_shared" = no; then
9603   # Fast installation is not necessary
9604   enable_fast_install=needless
9605 fi
9606
9607 striplib=
9608 old_striplib=
9609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9612   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9613   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9614   echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6
9616 else
9617 # FIXME - insert some real tests, host_os isn't really good enough
9618   case $host_os in
9619    darwin*)
9620        if test -n "$STRIP" ; then
9621          striplib="$STRIP -x"
9622          echo "$as_me:$LINENO: result: yes" >&5
9623 echo "${ECHO_T}yes" >&6
9624        else
9625   echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6
9627 fi
9628        ;;
9629    *)
9630   echo "$as_me:$LINENO: result: no" >&5
9631 echo "${ECHO_T}no" >&6
9632     ;;
9633   esac
9634 fi
9635
9636 if test "x$enable_dlopen" != xyes; then
9637   enable_dlopen=unknown
9638   enable_dlopen_self=unknown
9639   enable_dlopen_self_static=unknown
9640 else
9641   lt_cv_dlopen=no
9642   lt_cv_dlopen_libs=
9643
9644   case $host_os in
9645   beos*)
9646     lt_cv_dlopen="load_add_on"
9647     lt_cv_dlopen_libs=
9648     lt_cv_dlopen_self=yes
9649     ;;
9650
9651   mingw* | pw32*)
9652     lt_cv_dlopen="LoadLibrary"
9653     lt_cv_dlopen_libs=
9654    ;;
9655
9656   cygwin*)
9657     lt_cv_dlopen="dlopen"
9658     lt_cv_dlopen_libs=
9659    ;;
9660
9661   darwin*)
9662   # if libdl is installed we need to link against it
9663     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   ac_check_lib_save_LIBS=$LIBS
9669 LIBS="-ldl  $LIBS"
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676
9677 /* Override any gcc2 internal prototype to avoid an error.  */
9678 #ifdef __cplusplus
9679 extern "C"
9680 #endif
9681 /* We use char because int might match the return type of a gcc2
9682    builtin and then its argument prototype would still apply.  */
9683 char dlopen ();
9684 int
9685 main ()
9686 {
9687 dlopen ();
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694   (eval $ac_link) 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -z "$ac_c_werror_flag"
9702                          || test ! -s conftest.err'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest$ac_exeext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_cv_lib_dl_dlopen=yes
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 ac_cv_lib_dl_dlopen=no
9720 fi
9721 rm -f conftest.err conftest.$ac_objext \
9722       conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9724 fi
9725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9727 if test $ac_cv_lib_dl_dlopen = yes; then
9728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9729 else
9730
9731     lt_cv_dlopen="dyld"
9732     lt_cv_dlopen_libs=
9733     lt_cv_dlopen_self=yes
9734
9735 fi
9736
9737    ;;
9738
9739   *)
9740     echo "$as_me:$LINENO: checking for shl_load" >&5
9741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9742 if test "${ac_cv_func_shl_load+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9753 #define shl_load innocuous_shl_load
9754
9755 /* System header to define __stub macros and hopefully few prototypes,
9756     which can conflict with char shl_load (); below.
9757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758     <limits.h> exists even on freestanding compilers.  */
9759
9760 #ifdef __STDC__
9761 # include <limits.h>
9762 #else
9763 # include <assert.h>
9764 #endif
9765
9766 #undef shl_load
9767
9768 /* Override any gcc2 internal prototype to avoid an error.  */
9769 #ifdef __cplusplus
9770 extern "C"
9771 {
9772 #endif
9773 /* We use char because int might match the return type of a gcc2
9774    builtin and then its argument prototype would still apply.  */
9775 char shl_load ();
9776 /* The GNU C library defines this for functions which it implements
9777     to always fail with ENOSYS.  Some functions are actually named
9778     something starting with __ and the normal name is an alias.  */
9779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9780 choke me
9781 #else
9782 char (*f) () = shl_load;
9783 #endif
9784 #ifdef __cplusplus
9785 }
9786 #endif
9787
9788 int
9789 main ()
9790 {
9791 return f != shl_load;
9792   ;
9793   return 0;
9794 }
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798   (eval $ac_link) 2>conftest.er1
9799   ac_status=$?
9800   grep -v '^ *+' conftest.er1 >conftest.err
9801   rm -f conftest.er1
9802   cat conftest.err >&5
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } &&
9805          { ac_try='test -z "$ac_c_werror_flag"
9806                          || test ! -s conftest.err'
9807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808   (eval $ac_try) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; } &&
9812          { ac_try='test -s conftest$ac_exeext'
9813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814   (eval $ac_try) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; }; then
9818   ac_cv_func_shl_load=yes
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 ac_cv_func_shl_load=no
9824 fi
9825 rm -f conftest.err conftest.$ac_objext \
9826       conftest$ac_exeext conftest.$ac_ext
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9830 if test $ac_cv_func_shl_load = yes; then
9831   lt_cv_dlopen="shl_load"
9832 else
9833   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   ac_check_lib_save_LIBS=$LIBS
9839 LIBS="-ldld  $LIBS"
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h.  */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h.  */
9846
9847 /* Override any gcc2 internal prototype to avoid an error.  */
9848 #ifdef __cplusplus
9849 extern "C"
9850 #endif
9851 /* We use char because int might match the return type of a gcc2
9852    builtin and then its argument prototype would still apply.  */
9853 char shl_load ();
9854 int
9855 main ()
9856 {
9857 shl_load ();
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864   (eval $ac_link) 2>conftest.er1
9865   ac_status=$?
9866   grep -v '^ *+' conftest.er1 >conftest.err
9867   rm -f conftest.er1
9868   cat conftest.err >&5
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); } &&
9871          { ac_try='test -z "$ac_c_werror_flag"
9872                          || test ! -s conftest.err'
9873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874   (eval $ac_try) 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; } &&
9878          { ac_try='test -s conftest$ac_exeext'
9879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880   (eval $ac_try) 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; }; then
9884   ac_cv_lib_dld_shl_load=yes
9885 else
9886   echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_cv_lib_dld_shl_load=no
9890 fi
9891 rm -f conftest.err conftest.$ac_objext \
9892       conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9894 fi
9895 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9896 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9897 if test $ac_cv_lib_dld_shl_load = yes; then
9898   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9899 else
9900   echo "$as_me:$LINENO: checking for dlopen" >&5
9901 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9902 if test "${ac_cv_func_dlopen+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9913 #define dlopen innocuous_dlopen
9914
9915 /* System header to define __stub macros and hopefully few prototypes,
9916     which can conflict with char dlopen (); below.
9917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918     <limits.h> exists even on freestanding compilers.  */
9919
9920 #ifdef __STDC__
9921 # include <limits.h>
9922 #else
9923 # include <assert.h>
9924 #endif
9925
9926 #undef dlopen
9927
9928 /* Override any gcc2 internal prototype to avoid an error.  */
9929 #ifdef __cplusplus
9930 extern "C"
9931 {
9932 #endif
9933 /* We use char because int might match the return type of a gcc2
9934    builtin and then its argument prototype would still apply.  */
9935 char dlopen ();
9936 /* The GNU C library defines this for functions which it implements
9937     to always fail with ENOSYS.  Some functions are actually named
9938     something starting with __ and the normal name is an alias.  */
9939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9940 choke me
9941 #else
9942 char (*f) () = dlopen;
9943 #endif
9944 #ifdef __cplusplus
9945 }
9946 #endif
9947
9948 int
9949 main ()
9950 {
9951 return f != dlopen;
9952   ;
9953   return 0;
9954 }
9955 _ACEOF
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958   (eval $ac_link) 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag"
9966                          || test ! -s conftest.err'
9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   ac_cv_func_dlopen=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 ac_cv_func_dlopen=no
9984 fi
9985 rm -f conftest.err conftest.$ac_objext \
9986       conftest$ac_exeext conftest.$ac_ext
9987 fi
9988 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9990 if test $ac_cv_func_dlopen = yes; then
9991   lt_cv_dlopen="dlopen"
9992 else
9993   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   ac_check_lib_save_LIBS=$LIBS
9999 LIBS="-ldl  $LIBS"
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006
10007 /* Override any gcc2 internal prototype to avoid an error.  */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 /* We use char because int might match the return type of a gcc2
10012    builtin and then its argument prototype would still apply.  */
10013 char dlopen ();
10014 int
10015 main ()
10016 {
10017 dlopen ();
10018   ;
10019   return 0;
10020 }
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024   (eval $ac_link) 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -z "$ac_c_werror_flag"
10032                          || test ! -s conftest.err'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; } &&
10038          { ac_try='test -s conftest$ac_exeext'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; }; then
10044   ac_cv_lib_dl_dlopen=yes
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 ac_cv_lib_dl_dlopen=no
10050 fi
10051 rm -f conftest.err conftest.$ac_objext \
10052       conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10054 fi
10055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10057 if test $ac_cv_lib_dl_dlopen = yes; then
10058   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10059 else
10060   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10061 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10062 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10063   echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065   ac_check_lib_save_LIBS=$LIBS
10066 LIBS="-lsvld  $LIBS"
10067 cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h.  */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h.  */
10073
10074 /* Override any gcc2 internal prototype to avoid an error.  */
10075 #ifdef __cplusplus
10076 extern "C"
10077 #endif
10078 /* We use char because int might match the return type of a gcc2
10079    builtin and then its argument prototype would still apply.  */
10080 char dlopen ();
10081 int
10082 main ()
10083 {
10084 dlopen ();
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091   (eval $ac_link) 2>conftest.er1
10092   ac_status=$?
10093   grep -v '^ *+' conftest.er1 >conftest.err
10094   rm -f conftest.er1
10095   cat conftest.err >&5
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } &&
10098          { ac_try='test -z "$ac_c_werror_flag"
10099                          || test ! -s conftest.err'
10100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101   (eval $ac_try) 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); }; } &&
10105          { ac_try='test -s conftest$ac_exeext'
10106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107   (eval $ac_try) 2>&5
10108   ac_status=$?
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); }; }; then
10111   ac_cv_lib_svld_dlopen=yes
10112 else
10113   echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 ac_cv_lib_svld_dlopen=no
10117 fi
10118 rm -f conftest.err conftest.$ac_objext \
10119       conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10121 fi
10122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10124 if test $ac_cv_lib_svld_dlopen = yes; then
10125   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10126 else
10127   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10130   echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132   ac_check_lib_save_LIBS=$LIBS
10133 LIBS="-ldld  $LIBS"
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h.  */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h.  */
10140
10141 /* Override any gcc2 internal prototype to avoid an error.  */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 /* We use char because int might match the return type of a gcc2
10146    builtin and then its argument prototype would still apply.  */
10147 char dld_link ();
10148 int
10149 main ()
10150 {
10151 dld_link ();
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158   (eval $ac_link) 2>conftest.er1
10159   ac_status=$?
10160   grep -v '^ *+' conftest.er1 >conftest.err
10161   rm -f conftest.er1
10162   cat conftest.err >&5
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } &&
10165          { ac_try='test -z "$ac_c_werror_flag"
10166                          || test ! -s conftest.err'
10167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168   (eval $ac_try) 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); }; } &&
10172          { ac_try='test -s conftest$ac_exeext'
10173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174   (eval $ac_try) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; }; then
10178   ac_cv_lib_dld_dld_link=yes
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_cv_lib_dld_dld_link=no
10184 fi
10185 rm -f conftest.err conftest.$ac_objext \
10186       conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10188 fi
10189 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10190 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10191 if test $ac_cv_lib_dld_dld_link = yes; then
10192   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10193 fi
10194
10195
10196 fi
10197
10198
10199 fi
10200
10201
10202 fi
10203
10204
10205 fi
10206
10207
10208 fi
10209
10210     ;;
10211   esac
10212
10213   if test "x$lt_cv_dlopen" != xno; then
10214     enable_dlopen=yes
10215   else
10216     enable_dlopen=no
10217   fi
10218
10219   case $lt_cv_dlopen in
10220   dlopen)
10221     save_CPPFLAGS="$CPPFLAGS"
10222     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10223
10224     save_LDFLAGS="$LDFLAGS"
10225     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10226
10227     save_LIBS="$LIBS"
10228     LIBS="$lt_cv_dlopen_libs $LIBS"
10229
10230     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10231 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10232 if test "${lt_cv_dlopen_self+set}" = set; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235           if test "$cross_compiling" = yes; then :
10236   lt_cv_dlopen_self=cross
10237 else
10238   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10239   lt_status=$lt_dlunknown
10240   cat > conftest.$ac_ext <<EOF
10241 #line 10241 "configure"
10242 #include "confdefs.h"
10243
10244 #if HAVE_DLFCN_H
10245 #include <dlfcn.h>
10246 #endif
10247
10248 #include <stdio.h>
10249
10250 #ifdef RTLD_GLOBAL
10251 #  define LT_DLGLOBAL           RTLD_GLOBAL
10252 #else
10253 #  ifdef DL_GLOBAL
10254 #    define LT_DLGLOBAL         DL_GLOBAL
10255 #  else
10256 #    define LT_DLGLOBAL         0
10257 #  endif
10258 #endif
10259
10260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10261    find out it does not work in some platform. */
10262 #ifndef LT_DLLAZY_OR_NOW
10263 #  ifdef RTLD_LAZY
10264 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10265 #  else
10266 #    ifdef DL_LAZY
10267 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10268 #    else
10269 #      ifdef RTLD_NOW
10270 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10271 #      else
10272 #        ifdef DL_NOW
10273 #          define LT_DLLAZY_OR_NOW      DL_NOW
10274 #        else
10275 #          define LT_DLLAZY_OR_NOW      0
10276 #        endif
10277 #      endif
10278 #    endif
10279 #  endif
10280 #endif
10281
10282 #ifdef __cplusplus
10283 extern "C" void exit (int);
10284 #endif
10285
10286 void fnord() { int i=42;}
10287 int main ()
10288 {
10289   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10290   int status = $lt_dlunknown;
10291
10292   if (self)
10293     {
10294       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10295       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10296       /* dlclose (self); */
10297     }
10298
10299     exit (status);
10300 }
10301 EOF
10302   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303   (eval $ac_link) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10307     (./conftest; exit; ) >&5 2>/dev/null
10308     lt_status=$?
10309     case x$lt_status in
10310       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10311       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10312       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10313     esac
10314   else :
10315     # compilation failed
10316     lt_cv_dlopen_self=no
10317   fi
10318 fi
10319 rm -fr conftest*
10320
10321
10322 fi
10323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10324 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10325
10326     if test "x$lt_cv_dlopen_self" = xyes; then
10327       LDFLAGS="$LDFLAGS $link_static_flag"
10328       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10329 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10330 if test "${lt_cv_dlopen_self_static+set}" = set; then
10331   echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333           if test "$cross_compiling" = yes; then :
10334   lt_cv_dlopen_self_static=cross
10335 else
10336   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10337   lt_status=$lt_dlunknown
10338   cat > conftest.$ac_ext <<EOF
10339 #line 10339 "configure"
10340 #include "confdefs.h"
10341
10342 #if HAVE_DLFCN_H
10343 #include <dlfcn.h>
10344 #endif
10345
10346 #include <stdio.h>
10347
10348 #ifdef RTLD_GLOBAL
10349 #  define LT_DLGLOBAL           RTLD_GLOBAL
10350 #else
10351 #  ifdef DL_GLOBAL
10352 #    define LT_DLGLOBAL         DL_GLOBAL
10353 #  else
10354 #    define LT_DLGLOBAL         0
10355 #  endif
10356 #endif
10357
10358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10359    find out it does not work in some platform. */
10360 #ifndef LT_DLLAZY_OR_NOW
10361 #  ifdef RTLD_LAZY
10362 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10363 #  else
10364 #    ifdef DL_LAZY
10365 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10366 #    else
10367 #      ifdef RTLD_NOW
10368 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10369 #      else
10370 #        ifdef DL_NOW
10371 #          define LT_DLLAZY_OR_NOW      DL_NOW
10372 #        else
10373 #          define LT_DLLAZY_OR_NOW      0
10374 #        endif
10375 #      endif
10376 #    endif
10377 #  endif
10378 #endif
10379
10380 #ifdef __cplusplus
10381 extern "C" void exit (int);
10382 #endif
10383
10384 void fnord() { int i=42;}
10385 int main ()
10386 {
10387   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10388   int status = $lt_dlunknown;
10389
10390   if (self)
10391     {
10392       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10393       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10394       /* dlclose (self); */
10395     }
10396
10397     exit (status);
10398 }
10399 EOF
10400   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401   (eval $ac_link) 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10405     (./conftest; exit; ) >&5 2>/dev/null
10406     lt_status=$?
10407     case x$lt_status in
10408       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10409       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10410       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10411     esac
10412   else :
10413     # compilation failed
10414     lt_cv_dlopen_self_static=no
10415   fi
10416 fi
10417 rm -fr conftest*
10418
10419
10420 fi
10421 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10422 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10423     fi
10424
10425     CPPFLAGS="$save_CPPFLAGS"
10426     LDFLAGS="$save_LDFLAGS"
10427     LIBS="$save_LIBS"
10428     ;;
10429   esac
10430
10431   case $lt_cv_dlopen_self in
10432   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10433   *) enable_dlopen_self=unknown ;;
10434   esac
10435
10436   case $lt_cv_dlopen_self_static in
10437   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10438   *) enable_dlopen_self_static=unknown ;;
10439   esac
10440 fi
10441
10442
10443 # Report which librarie types wil actually be built
10444 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10446 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10447 echo "${ECHO_T}$can_build_shared" >&6
10448
10449 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10451 test "$can_build_shared" = "no" && enable_shared=no
10452
10453 # On AIX, shared libraries and static libraries use the same namespace, and
10454 # are all built from PIC.
10455 case $host_os in
10456 aix3*)
10457   test "$enable_shared" = yes && enable_static=no
10458   if test -n "$RANLIB"; then
10459     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10460     postinstall_cmds='$RANLIB $lib'
10461   fi
10462   ;;
10463
10464 aix4* | aix5*)
10465   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10466     test "$enable_shared" = yes && enable_static=no
10467   fi
10468     ;;
10469 esac
10470 echo "$as_me:$LINENO: result: $enable_shared" >&5
10471 echo "${ECHO_T}$enable_shared" >&6
10472
10473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10475 # Make sure either enable_shared or enable_static is yes.
10476 test "$enable_shared" = yes || enable_static=yes
10477 echo "$as_me:$LINENO: result: $enable_static" >&5
10478 echo "${ECHO_T}$enable_static" >&6
10479
10480 # The else clause should only fire when bootstrapping the
10481 # libtool distribution, otherwise you forgot to ship ltmain.sh
10482 # with your package, and you will get complaints that there are
10483 # no rules to generate ltmain.sh.
10484 if test -f "$ltmain"; then
10485   # See if we are running on zsh, and set the options which allow our commands through
10486   # without removal of \ escapes.
10487   if test -n "${ZSH_VERSION+set}" ; then
10488     setopt NO_GLOB_SUBST
10489   fi
10490   # Now quote all the things that may contain metacharacters while being
10491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10492   # variables and quote the copies for generation of the libtool script.
10493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10494     SED SHELL STRIP \
10495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10497     deplibs_check_method reload_flag reload_cmds need_locks \
10498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10499     lt_cv_sys_global_symbol_to_c_name_address \
10500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10501     old_postinstall_cmds old_postuninstall_cmds \
10502     compiler \
10503     CC \
10504     LD \
10505     lt_prog_compiler_wl \
10506     lt_prog_compiler_pic \
10507     lt_prog_compiler_static \
10508     lt_prog_compiler_no_builtin_flag \
10509     export_dynamic_flag_spec \
10510     thread_safe_flag_spec \
10511     whole_archive_flag_spec \
10512     enable_shared_with_static_runtimes \
10513     old_archive_cmds \
10514     old_archive_from_new_cmds \
10515     predep_objects \
10516     postdep_objects \
10517     predeps \
10518     postdeps \
10519     compiler_lib_search_path \
10520     archive_cmds \
10521     archive_expsym_cmds \
10522     postinstall_cmds \
10523     postuninstall_cmds \
10524     old_archive_from_expsyms_cmds \
10525     allow_undefined_flag \
10526     no_undefined_flag \
10527     export_symbols_cmds \
10528     hardcode_libdir_flag_spec \
10529     hardcode_libdir_flag_spec_ld \
10530     hardcode_libdir_separator \
10531     hardcode_automatic \
10532     module_cmds \
10533     module_expsym_cmds \
10534     lt_cv_prog_compiler_c_o \
10535     exclude_expsyms \
10536     include_expsyms; do
10537
10538     case $var in
10539     old_archive_cmds | \
10540     old_archive_from_new_cmds | \
10541     archive_cmds | \
10542     archive_expsym_cmds | \
10543     module_cmds | \
10544     module_expsym_cmds | \
10545     old_archive_from_expsyms_cmds | \
10546     export_symbols_cmds | \
10547     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10548     postinstall_cmds | postuninstall_cmds | \
10549     old_postinstall_cmds | old_postuninstall_cmds | \
10550     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10551       # Double-quote double-evaled strings.
10552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10553       ;;
10554     *)
10555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10556       ;;
10557     esac
10558   done
10559
10560   case $lt_echo in
10561   *'\$0 --fallback-echo"')
10562     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10563     ;;
10564   esac
10565
10566 cfgfile="${ofile}T"
10567   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10568   $rm -f "$cfgfile"
10569   { echo "$as_me:$LINENO: creating $ofile" >&5
10570 echo "$as_me: creating $ofile" >&6;}
10571
10572   cat <<__EOF__ >> "$cfgfile"
10573 #! $SHELL
10574
10575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10578 #
10579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10580 # Free Software Foundation, Inc.
10581 #
10582 # This file is part of GNU Libtool:
10583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10584 #
10585 # This program is free software; you can redistribute it and/or modify
10586 # it under the terms of the GNU General Public License as published by
10587 # the Free Software Foundation; either version 2 of the License, or
10588 # (at your option) any later version.
10589 #
10590 # This program is distributed in the hope that it will be useful, but
10591 # WITHOUT ANY WARRANTY; without even the implied warranty of
10592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10593 # General Public License for more details.
10594 #
10595 # You should have received a copy of the GNU General Public License
10596 # along with this program; if not, write to the Free Software
10597 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10598 #
10599 # As a special exception to the GNU General Public License, if you
10600 # distribute this file as part of a program that contains a
10601 # configuration script generated by Autoconf, you may include it under
10602 # the same distribution terms that you use for the rest of that program.
10603
10604 # A sed program that does not truncate output.
10605 SED=$lt_SED
10606
10607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10608 Xsed="$SED -e 1s/^X//"
10609
10610 # The HP-UX ksh and POSIX shell print the target directory to stdout
10611 # if CDPATH is set.
10612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10613
10614 # The names of the tagged configurations supported by this script.
10615 available_tags=
10616
10617 # ### BEGIN LIBTOOL CONFIG
10618
10619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10620
10621 # Shell to use when invoking shell scripts.
10622 SHELL=$lt_SHELL
10623
10624 # Whether or not to build shared libraries.
10625 build_libtool_libs=$enable_shared
10626
10627 # Whether or not to build static libraries.
10628 build_old_libs=$enable_static
10629
10630 # Whether or not to add -lc for building shared libraries.
10631 build_libtool_need_lc=$archive_cmds_need_lc
10632
10633 # Whether or not to disallow shared libs when runtime libs are static
10634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10635
10636 # Whether or not to optimize for fast installation.
10637 fast_install=$enable_fast_install
10638
10639 # The host system.
10640 host_alias=$host_alias
10641 host=$host
10642 host_os=$host_os
10643
10644 # The build system.
10645 build_alias=$build_alias
10646 build=$build
10647 build_os=$build_os
10648
10649 # An echo program that does not interpret backslashes.
10650 echo=$lt_echo
10651
10652 # The archiver.
10653 AR=$lt_AR
10654 AR_FLAGS=$lt_AR_FLAGS
10655
10656 # A C compiler.
10657 LTCC=$lt_LTCC
10658
10659 # A language-specific compiler.
10660 CC=$lt_compiler
10661
10662 # Is the compiler the GNU C compiler?
10663 with_gcc=$GCC
10664
10665 # An ERE matcher.
10666 EGREP=$lt_EGREP
10667
10668 # The linker used to build libraries.
10669 LD=$lt_LD
10670
10671 # Whether we need hard or soft links.
10672 LN_S=$lt_LN_S
10673
10674 # A BSD-compatible nm program.
10675 NM=$lt_NM
10676
10677 # A symbol stripping program
10678 STRIP=$lt_STRIP
10679
10680 # Used to examine libraries when file_magic_cmd begins "file"
10681 MAGIC_CMD=$MAGIC_CMD
10682
10683 # Used on cygwin: DLL creation program.
10684 DLLTOOL="$DLLTOOL"
10685
10686 # Used on cygwin: object dumper.
10687 OBJDUMP="$OBJDUMP"
10688
10689 # Used on cygwin: assembler.
10690 AS="$AS"
10691
10692 # The name of the directory that contains temporary libtool files.
10693 objdir=$objdir
10694
10695 # How to create reloadable object files.
10696 reload_flag=$lt_reload_flag
10697 reload_cmds=$lt_reload_cmds
10698
10699 # How to pass a linker flag through the compiler.
10700 wl=$lt_lt_prog_compiler_wl
10701
10702 # Object file suffix (normally "o").
10703 objext="$ac_objext"
10704
10705 # Old archive suffix (normally "a").
10706 libext="$libext"
10707
10708 # Shared library suffix (normally ".so").
10709 shrext_cmds='$shrext_cmds'
10710
10711 # Executable file suffix (normally "").
10712 exeext="$exeext"
10713
10714 # Additional compiler flags for building library objects.
10715 pic_flag=$lt_lt_prog_compiler_pic
10716 pic_mode=$pic_mode
10717
10718 # What is the maximum length of a command?
10719 max_cmd_len=$lt_cv_sys_max_cmd_len
10720
10721 # Does compiler simultaneously support -c and -o options?
10722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10723
10724 # Must we lock files when doing compilation?
10725 need_locks=$lt_need_locks
10726
10727 # Do we need the lib prefix for modules?
10728 need_lib_prefix=$need_lib_prefix
10729
10730 # Do we need a version for libraries?
10731 need_version=$need_version
10732
10733 # Whether dlopen is supported.
10734 dlopen_support=$enable_dlopen
10735
10736 # Whether dlopen of programs is supported.
10737 dlopen_self=$enable_dlopen_self
10738
10739 # Whether dlopen of statically linked programs is supported.
10740 dlopen_self_static=$enable_dlopen_self_static
10741
10742 # Compiler flag to prevent dynamic linking.
10743 link_static_flag=$lt_lt_prog_compiler_static
10744
10745 # Compiler flag to turn off builtin functions.
10746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10747
10748 # Compiler flag to allow reflexive dlopens.
10749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10750
10751 # Compiler flag to generate shared objects directly from archives.
10752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10753
10754 # Compiler flag to generate thread-safe objects.
10755 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10756
10757 # Library versioning type.
10758 version_type=$version_type
10759
10760 # Format of library name prefix.
10761 libname_spec=$lt_libname_spec
10762
10763 # List of archive names.  First name is the real one, the rest are links.
10764 # The last name is the one that the linker finds with -lNAME.
10765 library_names_spec=$lt_library_names_spec
10766
10767 # The coded name of the library, if different from the real name.
10768 soname_spec=$lt_soname_spec
10769
10770 # Commands used to build and install an old-style archive.
10771 RANLIB=$lt_RANLIB
10772 old_archive_cmds=$lt_old_archive_cmds
10773 old_postinstall_cmds=$lt_old_postinstall_cmds
10774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10775
10776 # Create an old-style archive from a shared archive.
10777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10778
10779 # Create a temporary old-style archive to link instead of a shared archive.
10780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10781
10782 # Commands used to build and install a shared archive.
10783 archive_cmds=$lt_archive_cmds
10784 archive_expsym_cmds=$lt_archive_expsym_cmds
10785 postinstall_cmds=$lt_postinstall_cmds
10786 postuninstall_cmds=$lt_postuninstall_cmds
10787
10788 # Commands used to build a loadable module (assumed same as above if empty)
10789 module_cmds=$lt_module_cmds
10790 module_expsym_cmds=$lt_module_expsym_cmds
10791
10792 # Commands to strip libraries.
10793 old_striplib=$lt_old_striplib
10794 striplib=$lt_striplib
10795
10796 # Dependencies to place before the objects being linked to create a
10797 # shared library.
10798 predep_objects=$lt_predep_objects
10799
10800 # Dependencies to place after the objects being linked to create a
10801 # shared library.
10802 postdep_objects=$lt_postdep_objects
10803
10804 # Dependencies to place before the objects being linked to create a
10805 # shared library.
10806 predeps=$lt_predeps
10807
10808 # Dependencies to place after the objects being linked to create a
10809 # shared library.
10810 postdeps=$lt_postdeps
10811
10812 # The library search path used internally by the compiler when linking
10813 # a shared library.
10814 compiler_lib_search_path=$lt_compiler_lib_search_path
10815
10816 # Method to check whether dependent libraries are shared objects.
10817 deplibs_check_method=$lt_deplibs_check_method
10818
10819 # Command to use when deplibs_check_method == file_magic.
10820 file_magic_cmd=$lt_file_magic_cmd
10821
10822 # Flag that allows shared libraries with undefined symbols to be built.
10823 allow_undefined_flag=$lt_allow_undefined_flag
10824
10825 # Flag that forces no undefined symbols.
10826 no_undefined_flag=$lt_no_undefined_flag
10827
10828 # Commands used to finish a libtool library installation in a directory.
10829 finish_cmds=$lt_finish_cmds
10830
10831 # Same as above, but a single script fragment to be evaled but not shown.
10832 finish_eval=$lt_finish_eval
10833
10834 # Take the output of nm and produce a listing of raw symbols and C names.
10835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10836
10837 # Transform the output of nm in a proper C declaration
10838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10839
10840 # Transform the output of nm in a C name address pair
10841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10842
10843 # This is the shared library runtime path variable.
10844 runpath_var=$runpath_var
10845
10846 # This is the shared library path variable.
10847 shlibpath_var=$shlibpath_var
10848
10849 # Is shlibpath searched before the hard-coded library search path?
10850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10851
10852 # How to hardcode a shared library path into an executable.
10853 hardcode_action=$hardcode_action
10854
10855 # Whether we should hardcode library paths into libraries.
10856 hardcode_into_libs=$hardcode_into_libs
10857
10858 # Flag to hardcode \$libdir into a binary during linking.
10859 # This must work even if \$libdir does not exist.
10860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10861
10862 # If ld is used when linking, flag to hardcode \$libdir into
10863 # a binary during linking. This must work even if \$libdir does
10864 # not exist.
10865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10866
10867 # Whether we need a single -rpath flag with a separated argument.
10868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10869
10870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10871 # resulting binary.
10872 hardcode_direct=$hardcode_direct
10873
10874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10875 # resulting binary.
10876 hardcode_minus_L=$hardcode_minus_L
10877
10878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10879 # the resulting binary.
10880 hardcode_shlibpath_var=$hardcode_shlibpath_var
10881
10882 # Set to yes if building a shared library automatically hardcodes DIR into the library
10883 # and all subsequent libraries and executables linked against it.
10884 hardcode_automatic=$hardcode_automatic
10885
10886 # Variables whose values should be saved in libtool wrapper scripts and
10887 # restored at relink time.
10888 variables_saved_for_relink="$variables_saved_for_relink"
10889
10890 # Whether libtool must link a program against all its dependency libraries.
10891 link_all_deplibs=$link_all_deplibs
10892
10893 # Compile-time system search path for libraries
10894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10895
10896 # Run-time system search path for libraries
10897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10898
10899 # Fix the shell variable \$srcfile for the compiler.
10900 fix_srcfile_path="$fix_srcfile_path"
10901
10902 # Set to yes if exported symbols are required.
10903 always_export_symbols=$always_export_symbols
10904
10905 # The commands to list exported symbols.
10906 export_symbols_cmds=$lt_export_symbols_cmds
10907
10908 # The commands to extract the exported symbol list from a shared archive.
10909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10910
10911 # Symbols that should not be listed in the preloaded symbols.
10912 exclude_expsyms=$lt_exclude_expsyms
10913
10914 # Symbols that must always be exported.
10915 include_expsyms=$lt_include_expsyms
10916
10917 # ### END LIBTOOL CONFIG
10918
10919 __EOF__
10920
10921
10922   case $host_os in
10923   aix3*)
10924     cat <<\EOF >> "$cfgfile"
10925
10926 # AIX sometimes has problems with the GCC collect2 program.  For some
10927 # reason, if we set the COLLECT_NAMES environment variable, the problems
10928 # vanish in a puff of smoke.
10929 if test "X${COLLECT_NAMES+set}" != Xset; then
10930   COLLECT_NAMES=
10931   export COLLECT_NAMES
10932 fi
10933 EOF
10934     ;;
10935   esac
10936
10937   # We use sed instead of cat because bash on DJGPP gets confused if
10938   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10939   # text mode, it properly converts lines to CR/LF.  This bash problem
10940   # is reportedly fixed, but why not run on old versions too?
10941   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10942
10943   mv -f "$cfgfile" "$ofile" || \
10944     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10945   chmod +x "$ofile"
10946
10947 else
10948   # If there is no Makefile yet, we rely on a make rule to execute
10949   # `config.status --recheck' to rerun these tests and create the
10950   # libtool script then.
10951   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10952   if test -f "$ltmain_in"; then
10953     test -f Makefile && make "$ltmain"
10954   fi
10955 fi
10956
10957
10958 ac_ext=c
10959 ac_cpp='$CPP $CPPFLAGS'
10960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10963
10964 CC="$lt_save_CC"
10965
10966
10967 # Check whether --with-tags or --without-tags was given.
10968 if test "${with_tags+set}" = set; then
10969   withval="$with_tags"
10970   tagnames="$withval"
10971 fi;
10972
10973 if test -f "$ltmain" && test -n "$tagnames"; then
10974   if test ! -f "${ofile}"; then
10975     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10976 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10977   fi
10978
10979   if test -z "$LTCC"; then
10980     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10981     if test -z "$LTCC"; then
10982       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10983 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10984     else
10985       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10986 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10987     fi
10988   fi
10989
10990   # Extract list of available tagged configurations in $ofile.
10991   # Note that this assumes the entire list is on one line.
10992   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10993
10994   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10995   for tagname in $tagnames; do
10996     IFS="$lt_save_ifs"
10997     # Check whether tagname contains only valid characters
10998     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10999     "") ;;
11000     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11001 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11002    { (exit 1); exit 1; }; }
11003         ;;
11004     esac
11005
11006     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11007     then
11008       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11009 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11010    { (exit 1); exit 1; }; }
11011     fi
11012
11013     # Update the list of available tags.
11014     if test -n "$tagname"; then
11015       echo appending configuration tag \"$tagname\" to $ofile
11016
11017       case $tagname in
11018       CXX)
11019         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11020             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11021             (test "X$CXX" != "Xg++"))) ; then
11022           :
11023         else
11024           tagname=""
11025         fi
11026         ;;
11027
11028       F77)
11029         if test -n "$F77" && test "X$F77" != "Xno"; then
11030           :
11031         else
11032           tagname=""
11033         fi
11034         ;;
11035
11036       GCJ)
11037         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11038           :
11039         else
11040           tagname=""
11041         fi
11042         ;;
11043
11044       RC)
11045
11046
11047
11048 # Source file extension for RC test sources.
11049 ac_ext=rc
11050
11051 # Object file extension for compiled RC test sources.
11052 objext=o
11053 objext_RC=$objext
11054
11055 # Code to be used in simple compile tests
11056 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11057
11058 # Code to be used in simple link tests
11059 lt_simple_link_test_code="$lt_simple_compile_test_code"
11060
11061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11062
11063 # If no C compiler was specified, use CC.
11064 LTCC=${LTCC-"$CC"}
11065
11066 # Allow CC to be a program name with arguments.
11067 compiler=$CC
11068
11069
11070 # save warnings/boilerplate of simple test code
11071 ac_outfile=conftest.$ac_objext
11072 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11074 _lt_compiler_boilerplate=`cat conftest.err`
11075 $rm conftest*
11076
11077 ac_outfile=conftest.$ac_objext
11078 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11080 _lt_linker_boilerplate=`cat conftest.err`
11081 $rm conftest*
11082
11083
11084 # Allow CC to be a program name with arguments.
11085 lt_save_CC="$CC"
11086 CC=${RC-"windres"}
11087 compiler=$CC
11088 compiler_RC=$CC
11089 for cc_temp in $compiler""; do
11090   case $cc_temp in
11091     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11092     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11093     \-*) ;;
11094     *) break;;
11095   esac
11096 done
11097 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11098
11099 lt_cv_prog_compiler_c_o_RC=yes
11100
11101 # The else clause should only fire when bootstrapping the
11102 # libtool distribution, otherwise you forgot to ship ltmain.sh
11103 # with your package, and you will get complaints that there are
11104 # no rules to generate ltmain.sh.
11105 if test -f "$ltmain"; then
11106   # See if we are running on zsh, and set the options which allow our commands through
11107   # without removal of \ escapes.
11108   if test -n "${ZSH_VERSION+set}" ; then
11109     setopt NO_GLOB_SUBST
11110   fi
11111   # Now quote all the things that may contain metacharacters while being
11112   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11113   # variables and quote the copies for generation of the libtool script.
11114   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11115     SED SHELL STRIP \
11116     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11117     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11118     deplibs_check_method reload_flag reload_cmds need_locks \
11119     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11120     lt_cv_sys_global_symbol_to_c_name_address \
11121     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11122     old_postinstall_cmds old_postuninstall_cmds \
11123     compiler_RC \
11124     CC_RC \
11125     LD_RC \
11126     lt_prog_compiler_wl_RC \
11127     lt_prog_compiler_pic_RC \
11128     lt_prog_compiler_static_RC \
11129     lt_prog_compiler_no_builtin_flag_RC \
11130     export_dynamic_flag_spec_RC \
11131     thread_safe_flag_spec_RC \
11132     whole_archive_flag_spec_RC \
11133     enable_shared_with_static_runtimes_RC \
11134     old_archive_cmds_RC \
11135     old_archive_from_new_cmds_RC \
11136     predep_objects_RC \
11137     postdep_objects_RC \
11138     predeps_RC \
11139     postdeps_RC \
11140     compiler_lib_search_path_RC \
11141     archive_cmds_RC \
11142     archive_expsym_cmds_RC \
11143     postinstall_cmds_RC \
11144     postuninstall_cmds_RC \
11145     old_archive_from_expsyms_cmds_RC \
11146     allow_undefined_flag_RC \
11147     no_undefined_flag_RC \
11148     export_symbols_cmds_RC \
11149     hardcode_libdir_flag_spec_RC \
11150     hardcode_libdir_flag_spec_ld_RC \
11151     hardcode_libdir_separator_RC \
11152     hardcode_automatic_RC \
11153     module_cmds_RC \
11154     module_expsym_cmds_RC \
11155     lt_cv_prog_compiler_c_o_RC \
11156     exclude_expsyms_RC \
11157     include_expsyms_RC; do
11158
11159     case $var in
11160     old_archive_cmds_RC | \
11161     old_archive_from_new_cmds_RC | \
11162     archive_cmds_RC | \
11163     archive_expsym_cmds_RC | \
11164     module_cmds_RC | \
11165     module_expsym_cmds_RC | \
11166     old_archive_from_expsyms_cmds_RC | \
11167     export_symbols_cmds_RC | \
11168     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11169     postinstall_cmds | postuninstall_cmds | \
11170     old_postinstall_cmds | old_postuninstall_cmds | \
11171     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11172       # Double-quote double-evaled strings.
11173       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11174       ;;
11175     *)
11176       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11177       ;;
11178     esac
11179   done
11180
11181   case $lt_echo in
11182   *'\$0 --fallback-echo"')
11183     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11184     ;;
11185   esac
11186
11187 cfgfile="$ofile"
11188
11189   cat <<__EOF__ >> "$cfgfile"
11190 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11191
11192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11193
11194 # Shell to use when invoking shell scripts.
11195 SHELL=$lt_SHELL
11196
11197 # Whether or not to build shared libraries.
11198 build_libtool_libs=$enable_shared
11199
11200 # Whether or not to build static libraries.
11201 build_old_libs=$enable_static
11202
11203 # Whether or not to add -lc for building shared libraries.
11204 build_libtool_need_lc=$archive_cmds_need_lc_RC
11205
11206 # Whether or not to disallow shared libs when runtime libs are static
11207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11208
11209 # Whether or not to optimize for fast installation.
11210 fast_install=$enable_fast_install
11211
11212 # The host system.
11213 host_alias=$host_alias
11214 host=$host
11215 host_os=$host_os
11216
11217 # The build system.
11218 build_alias=$build_alias
11219 build=$build
11220 build_os=$build_os
11221
11222 # An echo program that does not interpret backslashes.
11223 echo=$lt_echo
11224
11225 # The archiver.
11226 AR=$lt_AR
11227 AR_FLAGS=$lt_AR_FLAGS
11228
11229 # A C compiler.
11230 LTCC=$lt_LTCC
11231
11232 # A language-specific compiler.
11233 CC=$lt_compiler_RC
11234
11235 # Is the compiler the GNU C compiler?
11236 with_gcc=$GCC_RC
11237
11238 # An ERE matcher.
11239 EGREP=$lt_EGREP
11240
11241 # The linker used to build libraries.
11242 LD=$lt_LD_RC
11243
11244 # Whether we need hard or soft links.
11245 LN_S=$lt_LN_S
11246
11247 # A BSD-compatible nm program.
11248 NM=$lt_NM
11249
11250 # A symbol stripping program
11251 STRIP=$lt_STRIP
11252
11253 # Used to examine libraries when file_magic_cmd begins "file"
11254 MAGIC_CMD=$MAGIC_CMD
11255
11256 # Used on cygwin: DLL creation program.
11257 DLLTOOL="$DLLTOOL"
11258
11259 # Used on cygwin: object dumper.
11260 OBJDUMP="$OBJDUMP"
11261
11262 # Used on cygwin: assembler.
11263 AS="$AS"
11264
11265 # The name of the directory that contains temporary libtool files.
11266 objdir=$objdir
11267
11268 # How to create reloadable object files.
11269 reload_flag=$lt_reload_flag
11270 reload_cmds=$lt_reload_cmds
11271
11272 # How to pass a linker flag through the compiler.
11273 wl=$lt_lt_prog_compiler_wl_RC
11274
11275 # Object file suffix (normally "o").
11276 objext="$ac_objext"
11277
11278 # Old archive suffix (normally "a").
11279 libext="$libext"
11280
11281 # Shared library suffix (normally ".so").
11282 shrext_cmds='$shrext_cmds'
11283
11284 # Executable file suffix (normally "").
11285 exeext="$exeext"
11286
11287 # Additional compiler flags for building library objects.
11288 pic_flag=$lt_lt_prog_compiler_pic_RC
11289 pic_mode=$pic_mode
11290
11291 # What is the maximum length of a command?
11292 max_cmd_len=$lt_cv_sys_max_cmd_len
11293
11294 # Does compiler simultaneously support -c and -o options?
11295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11296
11297 # Must we lock files when doing compilation?
11298 need_locks=$lt_need_locks
11299
11300 # Do we need the lib prefix for modules?
11301 need_lib_prefix=$need_lib_prefix
11302
11303 # Do we need a version for libraries?
11304 need_version=$need_version
11305
11306 # Whether dlopen is supported.
11307 dlopen_support=$enable_dlopen
11308
11309 # Whether dlopen of programs is supported.
11310 dlopen_self=$enable_dlopen_self
11311
11312 # Whether dlopen of statically linked programs is supported.
11313 dlopen_self_static=$enable_dlopen_self_static
11314
11315 # Compiler flag to prevent dynamic linking.
11316 link_static_flag=$lt_lt_prog_compiler_static_RC
11317
11318 # Compiler flag to turn off builtin functions.
11319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11320
11321 # Compiler flag to allow reflexive dlopens.
11322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11323
11324 # Compiler flag to generate shared objects directly from archives.
11325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11326
11327 # Compiler flag to generate thread-safe objects.
11328 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11329
11330 # Library versioning type.
11331 version_type=$version_type
11332
11333 # Format of library name prefix.
11334 libname_spec=$lt_libname_spec
11335
11336 # List of archive names.  First name is the real one, the rest are links.
11337 # The last name is the one that the linker finds with -lNAME.
11338 library_names_spec=$lt_library_names_spec
11339
11340 # The coded name of the library, if different from the real name.
11341 soname_spec=$lt_soname_spec
11342
11343 # Commands used to build and install an old-style archive.
11344 RANLIB=$lt_RANLIB
11345 old_archive_cmds=$lt_old_archive_cmds_RC
11346 old_postinstall_cmds=$lt_old_postinstall_cmds
11347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11348
11349 # Create an old-style archive from a shared archive.
11350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11351
11352 # Create a temporary old-style archive to link instead of a shared archive.
11353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11354
11355 # Commands used to build and install a shared archive.
11356 archive_cmds=$lt_archive_cmds_RC
11357 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11358 postinstall_cmds=$lt_postinstall_cmds
11359 postuninstall_cmds=$lt_postuninstall_cmds
11360
11361 # Commands used to build a loadable module (assumed same as above if empty)
11362 module_cmds=$lt_module_cmds_RC
11363 module_expsym_cmds=$lt_module_expsym_cmds_RC
11364
11365 # Commands to strip libraries.
11366 old_striplib=$lt_old_striplib
11367 striplib=$lt_striplib
11368
11369 # Dependencies to place before the objects being linked to create a
11370 # shared library.
11371 predep_objects=$lt_predep_objects_RC
11372
11373 # Dependencies to place after the objects being linked to create a
11374 # shared library.
11375 postdep_objects=$lt_postdep_objects_RC
11376
11377 # Dependencies to place before the objects being linked to create a
11378 # shared library.
11379 predeps=$lt_predeps_RC
11380
11381 # Dependencies to place after the objects being linked to create a
11382 # shared library.
11383 postdeps=$lt_postdeps_RC
11384
11385 # The library search path used internally by the compiler when linking
11386 # a shared library.
11387 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11388
11389 # Method to check whether dependent libraries are shared objects.
11390 deplibs_check_method=$lt_deplibs_check_method
11391
11392 # Command to use when deplibs_check_method == file_magic.
11393 file_magic_cmd=$lt_file_magic_cmd
11394
11395 # Flag that allows shared libraries with undefined symbols to be built.
11396 allow_undefined_flag=$lt_allow_undefined_flag_RC
11397
11398 # Flag that forces no undefined symbols.
11399 no_undefined_flag=$lt_no_undefined_flag_RC
11400
11401 # Commands used to finish a libtool library installation in a directory.
11402 finish_cmds=$lt_finish_cmds
11403
11404 # Same as above, but a single script fragment to be evaled but not shown.
11405 finish_eval=$lt_finish_eval
11406
11407 # Take the output of nm and produce a listing of raw symbols and C names.
11408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11409
11410 # Transform the output of nm in a proper C declaration
11411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11412
11413 # Transform the output of nm in a C name address pair
11414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11415
11416 # This is the shared library runtime path variable.
11417 runpath_var=$runpath_var
11418
11419 # This is the shared library path variable.
11420 shlibpath_var=$shlibpath_var
11421
11422 # Is shlibpath searched before the hard-coded library search path?
11423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11424
11425 # How to hardcode a shared library path into an executable.
11426 hardcode_action=$hardcode_action_RC
11427
11428 # Whether we should hardcode library paths into libraries.
11429 hardcode_into_libs=$hardcode_into_libs
11430
11431 # Flag to hardcode \$libdir into a binary during linking.
11432 # This must work even if \$libdir does not exist.
11433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11434
11435 # If ld is used when linking, flag to hardcode \$libdir into
11436 # a binary during linking. This must work even if \$libdir does
11437 # not exist.
11438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11439
11440 # Whether we need a single -rpath flag with a separated argument.
11441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11442
11443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11444 # resulting binary.
11445 hardcode_direct=$hardcode_direct_RC
11446
11447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11448 # resulting binary.
11449 hardcode_minus_L=$hardcode_minus_L_RC
11450
11451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11452 # the resulting binary.
11453 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11454
11455 # Set to yes if building a shared library automatically hardcodes DIR into the library
11456 # and all subsequent libraries and executables linked against it.
11457 hardcode_automatic=$hardcode_automatic_RC
11458
11459 # Variables whose values should be saved in libtool wrapper scripts and
11460 # restored at relink time.
11461 variables_saved_for_relink="$variables_saved_for_relink"
11462
11463 # Whether libtool must link a program against all its dependency libraries.
11464 link_all_deplibs=$link_all_deplibs_RC
11465
11466 # Compile-time system search path for libraries
11467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11468
11469 # Run-time system search path for libraries
11470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11471
11472 # Fix the shell variable \$srcfile for the compiler.
11473 fix_srcfile_path="$fix_srcfile_path_RC"
11474
11475 # Set to yes if exported symbols are required.
11476 always_export_symbols=$always_export_symbols_RC
11477
11478 # The commands to list exported symbols.
11479 export_symbols_cmds=$lt_export_symbols_cmds_RC
11480
11481 # The commands to extract the exported symbol list from a shared archive.
11482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11483
11484 # Symbols that should not be listed in the preloaded symbols.
11485 exclude_expsyms=$lt_exclude_expsyms_RC
11486
11487 # Symbols that must always be exported.
11488 include_expsyms=$lt_include_expsyms_RC
11489
11490 # ### END LIBTOOL TAG CONFIG: $tagname
11491
11492 __EOF__
11493
11494
11495 else
11496   # If there is no Makefile yet, we rely on a make rule to execute
11497   # `config.status --recheck' to rerun these tests and create the
11498   # libtool script then.
11499   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11500   if test -f "$ltmain_in"; then
11501     test -f Makefile && make "$ltmain"
11502   fi
11503 fi
11504
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
11512 CC="$lt_save_CC"
11513
11514         ;;
11515
11516       *)
11517         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11518 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11519    { (exit 1); exit 1; }; }
11520         ;;
11521       esac
11522
11523       # Append the new tag name to the list of available tags.
11524       if test -n "$tagname" ; then
11525       available_tags="$available_tags $tagname"
11526     fi
11527     fi
11528   done
11529   IFS="$lt_save_ifs"
11530
11531   # Now substitute the updated list of available tags.
11532   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11533     mv "${ofile}T" "$ofile"
11534     chmod +x "$ofile"
11535   else
11536     rm -f "${ofile}T"
11537     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11538 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11539    { (exit 1); exit 1; }; }
11540   fi
11541 fi
11542
11543
11544
11545 # This can be used to rebuild libtool when needed
11546 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11547
11548 # Always use our own libtool.
11549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11550
11551 # Prevent multiple expansion
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562 ol_link_perl=no
11563 if test $ol_enable_perl != no ; then
11564         # Extract the first word of "perl", so it can be a program name with args.
11565 set dummy perl; ac_word=$2
11566 echo "$as_me:$LINENO: checking for $ac_word" >&5
11567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568 if test "${ac_cv_path_PERLBIN+set}" = set; then
11569   echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571   case $PERLBIN in
11572   [\\/]* | ?:[\\/]*)
11573   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11574   ;;
11575   *)
11576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11578 do
11579   IFS=$as_save_IFS
11580   test -z "$as_dir" && as_dir=.
11581   for ac_exec_ext in '' $ac_executable_extensions; do
11582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11585     break 2
11586   fi
11587 done
11588 done
11589
11590   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11591   ;;
11592 esac
11593 fi
11594 PERLBIN=$ac_cv_path_PERLBIN
11595
11596 if test -n "$PERLBIN"; then
11597   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11598 echo "${ECHO_T}$PERLBIN" >&6
11599 else
11600   echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11602 fi
11603
11604
11605         if test "no$PERLBIN" = "no" ; then
11606                 if test $ol_enable_perl = yes ; then
11607                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11608 echo "$as_me: error: could not locate perl" >&2;}
11609    { (exit 1); exit 1; }; }
11610                 fi
11611
11612         else
11613                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11614                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11615
11616                 if test x"$ol_enable_perl" = "xyes" ; then
11617                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11618                 else
11619                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11620                 fi
11621                                 ol_link_perl=yes
11622         fi
11623 fi
11624
11625 ac_ext=c
11626 ac_cpp='$CPP $CPPFLAGS'
11627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11630 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11632 # On Suns, sometimes $CPP names a directory.
11633 if test -n "$CPP" && test -d "$CPP"; then
11634   CPP=
11635 fi
11636 if test -z "$CPP"; then
11637   if test "${ac_cv_prog_CPP+set}" = set; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640       # Double quotes because CPP needs to be expanded
11641     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11642     do
11643       ac_preproc_ok=false
11644 for ac_c_preproc_warn_flag in '' yes
11645 do
11646   # Use a header file that comes with gcc, so configuring glibc
11647   # with a fresh cross-compiler works.
11648   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649   # <limits.h> exists even on freestanding compilers.
11650   # On the NeXT, cc -E runs the code through the compiler's parser,
11651   # not just through cpp. "Syntax error" is here to catch this case.
11652   cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658 #ifdef __STDC__
11659 # include <limits.h>
11660 #else
11661 # include <assert.h>
11662 #endif
11663                      Syntax error
11664 _ACEOF
11665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } >/dev/null; then
11673   if test -s conftest.err; then
11674     ac_cpp_err=$ac_c_preproc_warn_flag
11675     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11676   else
11677     ac_cpp_err=
11678   fi
11679 else
11680   ac_cpp_err=yes
11681 fi
11682 if test -z "$ac_cpp_err"; then
11683   :
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688   # Broken: fails on valid input.
11689 continue
11690 fi
11691 rm -f conftest.err conftest.$ac_ext
11692
11693   # OK, works on sane cases.  Now check whether non-existent headers
11694   # can be detected and how.
11695   cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 #include <ac_nonexistent.h>
11702 _ACEOF
11703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11705   ac_status=$?
11706   grep -v '^ *+' conftest.er1 >conftest.err
11707   rm -f conftest.er1
11708   cat conftest.err >&5
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } >/dev/null; then
11711   if test -s conftest.err; then
11712     ac_cpp_err=$ac_c_preproc_warn_flag
11713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11714   else
11715     ac_cpp_err=
11716   fi
11717 else
11718   ac_cpp_err=yes
11719 fi
11720 if test -z "$ac_cpp_err"; then
11721   # Broken: success on invalid input.
11722 continue
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727   # Passes both tests.
11728 ac_preproc_ok=:
11729 break
11730 fi
11731 rm -f conftest.err conftest.$ac_ext
11732
11733 done
11734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11735 rm -f conftest.err conftest.$ac_ext
11736 if $ac_preproc_ok; then
11737   break
11738 fi
11739
11740     done
11741     ac_cv_prog_CPP=$CPP
11742
11743 fi
11744   CPP=$ac_cv_prog_CPP
11745 else
11746   ac_cv_prog_CPP=$CPP
11747 fi
11748 echo "$as_me:$LINENO: result: $CPP" >&5
11749 echo "${ECHO_T}$CPP" >&6
11750 ac_preproc_ok=false
11751 for ac_c_preproc_warn_flag in '' yes
11752 do
11753   # Use a header file that comes with gcc, so configuring glibc
11754   # with a fresh cross-compiler works.
11755   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756   # <limits.h> exists even on freestanding compilers.
11757   # On the NeXT, cc -E runs the code through the compiler's parser,
11758   # not just through cpp. "Syntax error" is here to catch this case.
11759   cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h.  */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h.  */
11765 #ifdef __STDC__
11766 # include <limits.h>
11767 #else
11768 # include <assert.h>
11769 #endif
11770                      Syntax error
11771 _ACEOF
11772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } >/dev/null; then
11780   if test -s conftest.err; then
11781     ac_cpp_err=$ac_c_preproc_warn_flag
11782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11783   else
11784     ac_cpp_err=
11785   fi
11786 else
11787   ac_cpp_err=yes
11788 fi
11789 if test -z "$ac_cpp_err"; then
11790   :
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795   # Broken: fails on valid input.
11796 continue
11797 fi
11798 rm -f conftest.err conftest.$ac_ext
11799
11800   # OK, works on sane cases.  Now check whether non-existent headers
11801   # can be detected and how.
11802   cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 #include <ac_nonexistent.h>
11809 _ACEOF
11810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11812   ac_status=$?
11813   grep -v '^ *+' conftest.er1 >conftest.err
11814   rm -f conftest.er1
11815   cat conftest.err >&5
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); } >/dev/null; then
11818   if test -s conftest.err; then
11819     ac_cpp_err=$ac_c_preproc_warn_flag
11820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11821   else
11822     ac_cpp_err=
11823   fi
11824 else
11825   ac_cpp_err=yes
11826 fi
11827 if test -z "$ac_cpp_err"; then
11828   # Broken: success on invalid input.
11829 continue
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834   # Passes both tests.
11835 ac_preproc_ok=:
11836 break
11837 fi
11838 rm -f conftest.err conftest.$ac_ext
11839
11840 done
11841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11842 rm -f conftest.err conftest.$ac_ext
11843 if $ac_preproc_ok; then
11844   :
11845 else
11846   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11847 See \`config.log' for more details." >&5
11848 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11849 See \`config.log' for more details." >&2;}
11850    { (exit 1); exit 1; }; }
11851 fi
11852
11853 ac_ext=c
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11858
11859
11860 case $host_os in
11861   *mingw32* ) ac_cv_mingw32=yes ;;
11862   *cygwin* ) ac_cv_cygwin=yes ;;
11863 esac
11864
11865
11866
11867
11868 cat >>confdefs.h <<_ACEOF
11869 #define EXEEXT "${EXEEXT}"
11870 _ACEOF
11871
11872
11873 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11874 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11875 if test "${ac_cv_lib_be_be_app+set}" = set; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878   ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lbe -lroot -lnet $LIBS"
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h.  */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h.  */
11886
11887 /* Override any gcc2 internal prototype to avoid an error.  */
11888 #ifdef __cplusplus
11889 extern "C"
11890 #endif
11891 /* We use char because int might match the return type of a gcc2
11892    builtin and then its argument prototype would still apply.  */
11893 char be_app ();
11894 int
11895 main ()
11896 {
11897 be_app ();
11898   ;
11899   return 0;
11900 }
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904   (eval $ac_link) 2>conftest.er1
11905   ac_status=$?
11906   grep -v '^ *+' conftest.er1 >conftest.err
11907   rm -f conftest.er1
11908   cat conftest.err >&5
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); } &&
11911          { ac_try='test -z "$ac_c_werror_flag"
11912                          || test ! -s conftest.err'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; } &&
11918          { ac_try='test -s conftest$ac_exeext'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; }; then
11924   ac_cv_lib_be_be_app=yes
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 ac_cv_lib_be_be_app=no
11930 fi
11931 rm -f conftest.err conftest.$ac_objext \
11932       conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11934 fi
11935 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11936 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11937 if test $ac_cv_lib_be_be_app = yes; then
11938   LIBS="$LIBS -lbe -lroot -lnet"
11939 else
11940   :
11941 fi
11942
11943
11944 ac_ext=c
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949 if test -n "$ac_tool_prefix"; then
11950   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11952 echo "$as_me:$LINENO: checking for $ac_word" >&5
11953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11954 if test "${ac_cv_prog_CC+set}" = set; then
11955   echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957   if test -n "$CC"; then
11958   ac_cv_prog_CC="$CC" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11962 do
11963   IFS=$as_save_IFS
11964   test -z "$as_dir" && as_dir=.
11965   for ac_exec_ext in '' $ac_executable_extensions; do
11966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11969     break 2
11970   fi
11971 done
11972 done
11973
11974 fi
11975 fi
11976 CC=$ac_cv_prog_CC
11977 if test -n "$CC"; then
11978   echo "$as_me:$LINENO: result: $CC" >&5
11979 echo "${ECHO_T}$CC" >&6
11980 else
11981   echo "$as_me:$LINENO: result: no" >&5
11982 echo "${ECHO_T}no" >&6
11983 fi
11984
11985 fi
11986 if test -z "$ac_cv_prog_CC"; then
11987   ac_ct_CC=$CC
11988   # Extract the first word of "gcc", so it can be a program name with args.
11989 set dummy gcc; ac_word=$2
11990 echo "$as_me:$LINENO: checking for $ac_word" >&5
11991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   if test -n "$ac_ct_CC"; then
11996   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11997 else
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12000 do
12001   IFS=$as_save_IFS
12002   test -z "$as_dir" && as_dir=.
12003   for ac_exec_ext in '' $ac_executable_extensions; do
12004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005     ac_cv_prog_ac_ct_CC="gcc"
12006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12007     break 2
12008   fi
12009 done
12010 done
12011
12012 fi
12013 fi
12014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12015 if test -n "$ac_ct_CC"; then
12016   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12017 echo "${ECHO_T}$ac_ct_CC" >&6
12018 else
12019   echo "$as_me:$LINENO: result: no" >&5
12020 echo "${ECHO_T}no" >&6
12021 fi
12022
12023   CC=$ac_ct_CC
12024 else
12025   CC="$ac_cv_prog_CC"
12026 fi
12027
12028 if test -z "$CC"; then
12029   if test -n "$ac_tool_prefix"; then
12030   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12031 set dummy ${ac_tool_prefix}cc; ac_word=$2
12032 echo "$as_me:$LINENO: checking for $ac_word" >&5
12033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12034 if test "${ac_cv_prog_CC+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   if test -n "$CC"; then
12038   ac_cv_prog_CC="$CC" # Let the user override the test.
12039 else
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045   for ac_exec_ext in '' $ac_executable_extensions; do
12046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047     ac_cv_prog_CC="${ac_tool_prefix}cc"
12048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12049     break 2
12050   fi
12051 done
12052 done
12053
12054 fi
12055 fi
12056 CC=$ac_cv_prog_CC
12057 if test -n "$CC"; then
12058   echo "$as_me:$LINENO: result: $CC" >&5
12059 echo "${ECHO_T}$CC" >&6
12060 else
12061   echo "$as_me:$LINENO: result: no" >&5
12062 echo "${ECHO_T}no" >&6
12063 fi
12064
12065 fi
12066 if test -z "$ac_cv_prog_CC"; then
12067   ac_ct_CC=$CC
12068   # Extract the first word of "cc", so it can be a program name with args.
12069 set dummy cc; ac_word=$2
12070 echo "$as_me:$LINENO: checking for $ac_word" >&5
12071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   if test -n "$ac_ct_CC"; then
12076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12077 else
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12080 do
12081   IFS=$as_save_IFS
12082   test -z "$as_dir" && as_dir=.
12083   for ac_exec_ext in '' $ac_executable_extensions; do
12084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12085     ac_cv_prog_ac_ct_CC="cc"
12086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12087     break 2
12088   fi
12089 done
12090 done
12091
12092 fi
12093 fi
12094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12095 if test -n "$ac_ct_CC"; then
12096   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12097 echo "${ECHO_T}$ac_ct_CC" >&6
12098 else
12099   echo "$as_me:$LINENO: result: no" >&5
12100 echo "${ECHO_T}no" >&6
12101 fi
12102
12103   CC=$ac_ct_CC
12104 else
12105   CC="$ac_cv_prog_CC"
12106 fi
12107
12108 fi
12109 if test -z "$CC"; then
12110   # Extract the first word of "cc", so it can be a program name with args.
12111 set dummy cc; ac_word=$2
12112 echo "$as_me:$LINENO: checking for $ac_word" >&5
12113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12114 if test "${ac_cv_prog_CC+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   if test -n "$CC"; then
12118   ac_cv_prog_CC="$CC" # Let the user override the test.
12119 else
12120   ac_prog_rejected=no
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12123 do
12124   IFS=$as_save_IFS
12125   test -z "$as_dir" && as_dir=.
12126   for ac_exec_ext in '' $ac_executable_extensions; do
12127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12129        ac_prog_rejected=yes
12130        continue
12131      fi
12132     ac_cv_prog_CC="cc"
12133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12134     break 2
12135   fi
12136 done
12137 done
12138
12139 if test $ac_prog_rejected = yes; then
12140   # We found a bogon in the path, so make sure we never use it.
12141   set dummy $ac_cv_prog_CC
12142   shift
12143   if test $# != 0; then
12144     # We chose a different compiler from the bogus one.
12145     # However, it has the same basename, so the bogon will be chosen
12146     # first if we set CC to just the basename; use the full file name.
12147     shift
12148     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12149   fi
12150 fi
12151 fi
12152 fi
12153 CC=$ac_cv_prog_CC
12154 if test -n "$CC"; then
12155   echo "$as_me:$LINENO: result: $CC" >&5
12156 echo "${ECHO_T}$CC" >&6
12157 else
12158   echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12160 fi
12161
12162 fi
12163 if test -z "$CC"; then
12164   if test -n "$ac_tool_prefix"; then
12165   for ac_prog in cl
12166   do
12167     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12169 echo "$as_me:$LINENO: checking for $ac_word" >&5
12170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12171 if test "${ac_cv_prog_CC+set}" = set; then
12172   echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174   if test -n "$CC"; then
12175   ac_cv_prog_CC="$CC" # Let the user override the test.
12176 else
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12179 do
12180   IFS=$as_save_IFS
12181   test -z "$as_dir" && as_dir=.
12182   for ac_exec_ext in '' $ac_executable_extensions; do
12183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12186     break 2
12187   fi
12188 done
12189 done
12190
12191 fi
12192 fi
12193 CC=$ac_cv_prog_CC
12194 if test -n "$CC"; then
12195   echo "$as_me:$LINENO: result: $CC" >&5
12196 echo "${ECHO_T}$CC" >&6
12197 else
12198   echo "$as_me:$LINENO: result: no" >&5
12199 echo "${ECHO_T}no" >&6
12200 fi
12201
12202     test -n "$CC" && break
12203   done
12204 fi
12205 if test -z "$CC"; then
12206   ac_ct_CC=$CC
12207   for ac_prog in cl
12208 do
12209   # Extract the first word of "$ac_prog", so it can be a program name with args.
12210 set dummy $ac_prog; ac_word=$2
12211 echo "$as_me:$LINENO: checking for $ac_word" >&5
12212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12214   echo $ECHO_N "(cached) $ECHO_C" >&6
12215 else
12216   if test -n "$ac_ct_CC"; then
12217   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12218 else
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12221 do
12222   IFS=$as_save_IFS
12223   test -z "$as_dir" && as_dir=.
12224   for ac_exec_ext in '' $ac_executable_extensions; do
12225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226     ac_cv_prog_ac_ct_CC="$ac_prog"
12227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12228     break 2
12229   fi
12230 done
12231 done
12232
12233 fi
12234 fi
12235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12236 if test -n "$ac_ct_CC"; then
12237   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12238 echo "${ECHO_T}$ac_ct_CC" >&6
12239 else
12240   echo "$as_me:$LINENO: result: no" >&5
12241 echo "${ECHO_T}no" >&6
12242 fi
12243
12244   test -n "$ac_ct_CC" && break
12245 done
12246
12247   CC=$ac_ct_CC
12248 fi
12249
12250 fi
12251
12252
12253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12254 See \`config.log' for more details." >&5
12255 echo "$as_me: error: no acceptable C compiler found in \$PATH
12256 See \`config.log' for more details." >&2;}
12257    { (exit 1); exit 1; }; }
12258
12259 # Provide some information about the compiler.
12260 echo "$as_me:$LINENO:" \
12261      "checking for C compiler version" >&5
12262 ac_compiler=`set X $ac_compile; echo $2`
12263 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12264   (eval $ac_compiler --version </dev/null >&5) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }
12268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12269   (eval $ac_compiler -v </dev/null >&5) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }
12273 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12274   (eval $ac_compiler -V </dev/null >&5) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }
12278
12279 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12280 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12281 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12282   echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284   cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h.  */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h.  */
12290
12291 int
12292 main ()
12293 {
12294 #ifndef __GNUC__
12295        choke me
12296 #endif
12297
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304   (eval $ac_compile) 2>conftest.er1
12305   ac_status=$?
12306   grep -v '^ *+' conftest.er1 >conftest.err
12307   rm -f conftest.er1
12308   cat conftest.err >&5
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } &&
12311          { ac_try='test -z "$ac_c_werror_flag"
12312                          || test ! -s conftest.err'
12313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314   (eval $ac_try) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); }; } &&
12318          { ac_try='test -s conftest.$ac_objext'
12319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320   (eval $ac_try) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); }; }; then
12324   ac_compiler_gnu=yes
12325 else
12326   echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12328
12329 ac_compiler_gnu=no
12330 fi
12331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12333
12334 fi
12335 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12336 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12337 GCC=`test $ac_compiler_gnu = yes && echo yes`
12338 ac_test_CFLAGS=${CFLAGS+set}
12339 ac_save_CFLAGS=$CFLAGS
12340 CFLAGS="-g"
12341 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12342 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12343 if test "${ac_cv_prog_cc_g+set}" = set; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346   cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352
12353 int
12354 main ()
12355 {
12356
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363   (eval $ac_compile) 2>conftest.er1
12364   ac_status=$?
12365   grep -v '^ *+' conftest.er1 >conftest.err
12366   rm -f conftest.er1
12367   cat conftest.err >&5
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); } &&
12370          { ac_try='test -z "$ac_c_werror_flag"
12371                          || test ! -s conftest.err'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; } &&
12377          { ac_try='test -s conftest.$ac_objext'
12378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379   (eval $ac_try) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); }; }; then
12383   ac_cv_prog_cc_g=yes
12384 else
12385   echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_cv_prog_cc_g=no
12389 fi
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391 fi
12392 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12393 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12394 if test "$ac_test_CFLAGS" = set; then
12395   CFLAGS=$ac_save_CFLAGS
12396 elif test $ac_cv_prog_cc_g = yes; then
12397   if test "$GCC" = yes; then
12398     CFLAGS="-g -O2"
12399   else
12400     CFLAGS="-g"
12401   fi
12402 else
12403   if test "$GCC" = yes; then
12404     CFLAGS="-O2"
12405   else
12406     CFLAGS=
12407   fi
12408 fi
12409 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12410 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12411 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12412   echo $ECHO_N "(cached) $ECHO_C" >&6
12413 else
12414   ac_cv_prog_cc_stdc=no
12415 ac_save_CC=$CC
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h.  */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h.  */
12422 #include <stdarg.h>
12423 #include <stdio.h>
12424 #include <sys/types.h>
12425 #include <sys/stat.h>
12426 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12427 struct buf { int x; };
12428 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12429 static char *e (p, i)
12430      char **p;
12431      int i;
12432 {
12433   return p[i];
12434 }
12435 static char *f (char * (*g) (char **, int), char **p, ...)
12436 {
12437   char *s;
12438   va_list v;
12439   va_start (v,p);
12440   s = g (p, va_arg (v,int));
12441   va_end (v);
12442   return s;
12443 }
12444
12445 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12446    function prototypes and stuff, but not '\xHH' hex character constants.
12447    These don't provoke an error unfortunately, instead are silently treated
12448    as 'x'.  The following induces an error, until -std1 is added to get
12449    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12450    array size at least.  It's necessary to write '\x00'==0 to get something
12451    that's true only with -std1.  */
12452 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12453
12454 int test (int i, double x);
12455 struct s1 {int (*f) (int a);};
12456 struct s2 {int (*f) (double a);};
12457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12458 int argc;
12459 char **argv;
12460 int
12461 main ()
12462 {
12463 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 # Don't try gcc -ansi; that turns off useful extensions and
12469 # breaks some systems' header files.
12470 # AIX                   -qlanglvl=ansi
12471 # Ultrix and OSF/1      -std1
12472 # HP-UX 10.20 and later -Ae
12473 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12474 # SVR4                  -Xc -D__EXTENSIONS__
12475 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12476 do
12477   CC="$ac_save_CC $ac_arg"
12478   rm -f conftest.$ac_objext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480   (eval $ac_compile) 2>conftest.er1
12481   ac_status=$?
12482   grep -v '^ *+' conftest.er1 >conftest.err
12483   rm -f conftest.er1
12484   cat conftest.err >&5
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); } &&
12487          { ac_try='test -z "$ac_c_werror_flag"
12488                          || test ! -s conftest.err'
12489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490   (eval $ac_try) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; } &&
12494          { ac_try='test -s conftest.$ac_objext'
12495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496   (eval $ac_try) 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; }; then
12500   ac_cv_prog_cc_stdc=$ac_arg
12501 break
12502 else
12503   echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 fi
12507 rm -f conftest.err conftest.$ac_objext
12508 done
12509 rm -f conftest.$ac_ext conftest.$ac_objext
12510 CC=$ac_save_CC
12511
12512 fi
12513
12514 case "x$ac_cv_prog_cc_stdc" in
12515   x|xno)
12516     echo "$as_me:$LINENO: result: none needed" >&5
12517 echo "${ECHO_T}none needed" >&6 ;;
12518   *)
12519     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12520 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12521     CC="$CC $ac_cv_prog_cc_stdc" ;;
12522 esac
12523
12524 # Some people use a C++ compiler to compile C.  Since we use `exit',
12525 # in C++ we need to declare it.  In case someone uses the same compiler
12526 # for both compiling C and C++ we need to have the C++ compiler decide
12527 # the declaration of exit, since it's the most demanding environment.
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #ifndef __cplusplus
12530   choke me
12531 #endif
12532 _ACEOF
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535   (eval $ac_compile) 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag"
12543                          || test ! -s conftest.err'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; } &&
12549          { ac_try='test -s conftest.$ac_objext'
12550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551   (eval $ac_try) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; }; then
12555   for ac_declaration in \
12556    '' \
12557    'extern "C" void std::exit (int) throw (); using std::exit;' \
12558    'extern "C" void std::exit (int); using std::exit;' \
12559    'extern "C" void exit (int) throw ();' \
12560    'extern "C" void exit (int);' \
12561    'void exit (int);'
12562 do
12563   cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569 $ac_declaration
12570 #include <stdlib.h>
12571 int
12572 main ()
12573 {
12574 exit (42);
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581   (eval $ac_compile) 2>conftest.er1
12582   ac_status=$?
12583   grep -v '^ *+' conftest.er1 >conftest.err
12584   rm -f conftest.er1
12585   cat conftest.err >&5
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); } &&
12588          { ac_try='test -z "$ac_c_werror_flag"
12589                          || test ! -s conftest.err'
12590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591   (eval $ac_try) 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); }; } &&
12595          { ac_try='test -s conftest.$ac_objext'
12596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597   (eval $ac_try) 2>&5
12598   ac_status=$?
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); }; }; then
12601   :
12602 else
12603   echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12605
12606 continue
12607 fi
12608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12609   cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h.  */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h.  */
12615 $ac_declaration
12616 int
12617 main ()
12618 {
12619 exit (42);
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626   (eval $ac_compile) 2>conftest.er1
12627   ac_status=$?
12628   grep -v '^ *+' conftest.er1 >conftest.err
12629   rm -f conftest.er1
12630   cat conftest.err >&5
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } &&
12633          { ac_try='test -z "$ac_c_werror_flag"
12634                          || test ! -s conftest.err'
12635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636   (eval $ac_try) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; } &&
12640          { ac_try='test -s conftest.$ac_objext'
12641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642   (eval $ac_try) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; }; then
12646   break
12647 else
12648   echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 fi
12652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653 done
12654 rm -f conftest*
12655 if test -n "$ac_declaration"; then
12656   echo '#ifdef __cplusplus' >>confdefs.h
12657   echo $ac_declaration      >>confdefs.h
12658   echo '#endif'             >>confdefs.h
12659 fi
12660
12661 else
12662   echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 fi
12666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667 ac_ext=c
12668 ac_cpp='$CPP $CPPFLAGS'
12669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12672
12673 depcc="$CC"   am_compiler_list=
12674
12675 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12676 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12677 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12678   echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12681   # We make a subdir and do the tests there.  Otherwise we can end up
12682   # making bogus files that we don't know about and never remove.  For
12683   # instance it was reported that on HP-UX the gcc test will end up
12684   # making a dummy file named `D' -- because `-MD' means `put the output
12685   # in D'.
12686   mkdir conftest.dir
12687   # Copy depcomp to subdir because otherwise we won't find it if we're
12688   # using a relative directory.
12689   cp "$am_depcomp" conftest.dir
12690   cd conftest.dir
12691   # We will build objects and dependencies in a subdirectory because
12692   # it helps to detect inapplicable dependency modes.  For instance
12693   # both Tru64's cc and ICC support -MD to output dependencies as a
12694   # side effect of compilation, but ICC will put the dependencies in
12695   # the current directory while Tru64 will put them in the object
12696   # directory.
12697   mkdir sub
12698
12699   am_cv_CC_dependencies_compiler_type=none
12700   if test "$am_compiler_list" = ""; then
12701      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12702   fi
12703   for depmode in $am_compiler_list; do
12704     # Setup a source with many dependencies, because some compilers
12705     # like to wrap large dependency lists on column 80 (with \), and
12706     # we should not choose a depcomp mode which is confused by this.
12707     #
12708     # We need to recreate these files for each test, as the compiler may
12709     # overwrite some of them when testing with obscure command lines.
12710     # This happens at least with the AIX C compiler.
12711     : > sub/conftest.c
12712     for i in 1 2 3 4 5 6; do
12713       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12714       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12715       # Solaris 8's {/usr,}/bin/sh.
12716       touch sub/conftst$i.h
12717     done
12718     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12719
12720     case $depmode in
12721     nosideeffect)
12722       # after this tag, mechanisms are not by side-effect, so they'll
12723       # only be used when explicitly requested
12724       if test "x$enable_dependency_tracking" = xyes; then
12725         continue
12726       else
12727         break
12728       fi
12729       ;;
12730     none) break ;;
12731     esac
12732     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12733     # mode.  It turns out that the SunPro C++ compiler does not properly
12734     # handle `-M -o', and we need to detect this.
12735     if depmode=$depmode \
12736        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12737        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12738        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12739          >/dev/null 2>conftest.err &&
12740        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12741        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12742        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12743       # icc doesn't choke on unknown options, it will just issue warnings
12744       # or remarks (even with -Werror).  So we grep stderr for any message
12745       # that says an option was ignored or not supported.
12746       # When given -MP, icc 7.0 and 7.1 complain thusly:
12747       #   icc: Command line warning: ignoring option '-M'; no argument required
12748       # The diagnosis changed in icc 8.0:
12749       #   icc: Command line remark: option '-MP' not supported
12750       if (grep 'ignoring option' conftest.err ||
12751           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12752         am_cv_CC_dependencies_compiler_type=$depmode
12753         break
12754       fi
12755     fi
12756   done
12757
12758   cd ..
12759   rm -rf conftest.dir
12760 else
12761   am_cv_CC_dependencies_compiler_type=none
12762 fi
12763
12764 fi
12765 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12766 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12768
12769
12770
12771 if
12772   test "x$enable_dependency_tracking" != xno \
12773   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12774   am__fastdepCC_TRUE=
12775   am__fastdepCC_FALSE='#'
12776 else
12777   am__fastdepCC_TRUE='#'
12778   am__fastdepCC_FALSE=
12779 fi
12780
12781
12782 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12783         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12784 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12785    { (exit 1); exit 1; }; }
12786 fi
12787
12788 # test for make depend flag
12789 OL_MKDEP=
12790 OL_MKDEP_FLAGS=
12791 if test -z "${MKDEP}"; then
12792         OL_MKDEP="${CC-cc}"
12793         if test -z "${MKDEP_FLAGS}"; then
12794                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12795 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12796 if test "${ol_cv_mkdep+set}" = set; then
12797   echo $ECHO_N "(cached) $ECHO_C" >&6
12798 else
12799
12800                         ol_cv_mkdep=no
12801                         for flag in "-M" "-xM"; do
12802                                 cat > conftest.c <<EOF
12803  noCode;
12804 EOF
12805                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807   (eval $ac_try) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; } \
12811                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12812                                 then
12813                                         if test ! -f conftest."${ac_object}" ; then
12814                                                 ol_cv_mkdep=$flag
12815                                                 OL_MKDEP_FLAGS="$flag"
12816                                                 break
12817                                         fi
12818                                 fi
12819                         done
12820                         rm -f conftest*
12821
12822 fi
12823 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12824 echo "${ECHO_T}$ol_cv_mkdep" >&6
12825         else
12826                 cc_cv_mkdep=yes
12827                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12828         fi
12829 else
12830         cc_cv_mkdep=yes
12831         OL_MKDEP="${MKDEP}"
12832         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12833 fi
12834
12835
12836
12837 if test "${ol_cv_mkdep}" = no ; then
12838         # this will soon become an error
12839         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12840 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12841 fi
12842
12843 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12844 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12845 if test "${ac_cv_lib_s_afopen+set}" = set; then
12846   echo $ECHO_N "(cached) $ECHO_C" >&6
12847 else
12848   ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-ls  $LIBS"
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856
12857 /* Override any gcc2 internal prototype to avoid an error.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 /* We use char because int might match the return type of a gcc2
12862    builtin and then its argument prototype would still apply.  */
12863 char afopen ();
12864 int
12865 main ()
12866 {
12867 afopen ();
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874   (eval $ac_link) 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -z "$ac_c_werror_flag"
12882                          || test ! -s conftest.err'
12883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884   (eval $ac_try) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; } &&
12888          { ac_try='test -s conftest$ac_exeext'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; }; then
12894   ac_cv_lib_s_afopen=yes
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ac_cv_lib_s_afopen=no
12900 fi
12901 rm -f conftest.err conftest.$ac_objext \
12902       conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12904 fi
12905 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12906 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12907 if test $ac_cv_lib_s_afopen = yes; then
12908
12909         AUTH_LIBS=-ls
12910
12911 cat >>confdefs.h <<\_ACEOF
12912 #define HAVE_AIX_SECURITY 1
12913 _ACEOF
12914
12915
12916 fi
12917
12918
12919 case "$target" in
12920 *-ibm-openedition)
12921         ac_cv_func_getopt=no
12922
12923 cat >>confdefs.h <<\_ACEOF
12924 #define BOTH_STRINGS_H 1
12925 _ACEOF
12926
12927         ;;
12928 esac
12929
12930 ol_link_modules=no
12931 WITH_MODULES_ENABLED=no
12932 if test $ol_enable_modules != no ; then
12933
12934 for ac_header in ltdl.h
12935 do
12936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938   echo "$as_me:$LINENO: checking for $ac_header" >&5
12939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 fi
12943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12945 else
12946   # Is the header compilable?
12947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12949 cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h.  */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h.  */
12955 $ac_includes_default
12956 #include <$ac_header>
12957 _ACEOF
12958 rm -f conftest.$ac_objext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960   (eval $ac_compile) 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } &&
12967          { ac_try='test -z "$ac_c_werror_flag"
12968                          || test ! -s conftest.err'
12969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970   (eval $ac_try) 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; } &&
12974          { ac_try='test -s conftest.$ac_objext'
12975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976   (eval $ac_try) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; }; then
12980   ac_header_compiler=yes
12981 else
12982   echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12984
12985 ac_header_compiler=no
12986 fi
12987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12989 echo "${ECHO_T}$ac_header_compiler" >&6
12990
12991 # Is the header present?
12992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000 #include <$ac_header>
13001 _ACEOF
13002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13003   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
13010   if test -s conftest.err; then
13011     ac_cpp_err=$ac_c_preproc_warn_flag
13012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13013   else
13014     ac_cpp_err=
13015   fi
13016 else
13017   ac_cpp_err=yes
13018 fi
13019 if test -z "$ac_cpp_err"; then
13020   ac_header_preproc=yes
13021 else
13022   echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13024
13025   ac_header_preproc=no
13026 fi
13027 rm -f conftest.err conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13029 echo "${ECHO_T}$ac_header_preproc" >&6
13030
13031 # So?  What about this header?
13032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13033   yes:no: )
13034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13038     ac_header_preproc=yes
13039     ;;
13040   no:yes:* )
13041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13053     (
13054       cat <<\_ASBOX
13055 ## --------------------------------------------- ##
13056 ## Report this to <http://www.openldap.org/its/> ##
13057 ## --------------------------------------------- ##
13058 _ASBOX
13059     ) |
13060       sed "s/^/$as_me: WARNING:     /" >&2
13061     ;;
13062 esac
13063 echo "$as_me:$LINENO: checking for $ac_header" >&5
13064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   eval "$as_ac_Header=\$ac_header_preproc"
13069 fi
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13072
13073 fi
13074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13075   cat >>confdefs.h <<_ACEOF
13076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13077 _ACEOF
13078
13079 fi
13080
13081 done
13082
13083
13084         if test $ac_cv_header_ltdl_h = no ; then
13085                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13086 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13087    { (exit 1); exit 1; }; }
13088         fi
13089
13090         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13091 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13092 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   ac_check_lib_save_LIBS=$LIBS
13096 LIBS="-lltdl  $LIBS"
13097 cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h.  */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h.  */
13103
13104 /* Override any gcc2 internal prototype to avoid an error.  */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 /* We use char because int might match the return type of a gcc2
13109    builtin and then its argument prototype would still apply.  */
13110 char lt_dlinit ();
13111 int
13112 main ()
13113 {
13114 lt_dlinit ();
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121   (eval $ac_link) 2>conftest.er1
13122   ac_status=$?
13123   grep -v '^ *+' conftest.er1 >conftest.err
13124   rm -f conftest.er1
13125   cat conftest.err >&5
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } &&
13128          { ac_try='test -z "$ac_c_werror_flag"
13129                          || test ! -s conftest.err'
13130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131   (eval $ac_try) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; } &&
13135          { ac_try='test -s conftest$ac_exeext'
13136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137   (eval $ac_try) 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; }; then
13141   ac_cv_lib_ltdl_lt_dlinit=yes
13142 else
13143   echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13145
13146 ac_cv_lib_ltdl_lt_dlinit=no
13147 fi
13148 rm -f conftest.err conftest.$ac_objext \
13149       conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13151 fi
13152 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13153 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13154 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13155
13156                 MODULES_LIBS=-lltdl
13157
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_LIBLTDL 1
13160 _ACEOF
13161
13162
13163 fi
13164
13165
13166         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13167                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13168 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13169    { (exit 1); exit 1; }; }
13170         fi
13171         ol_link_modules=yes
13172         WITH_MODULES_ENABLED=yes
13173
13174 else
13175         for i in $Backends; do
13176                 eval "ol_tmp=\$ol_enable_$i"
13177                 if test $ol_tmp = mod ; then
13178                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13179 echo "$as_me: WARNING: building static $i backend" >&2;}
13180                         eval "ol_enable_$i=yes"
13181                 fi
13182         done
13183         for i in $Overlays; do
13184                 eval "ol_tmp=\$ol_enable_$i"
13185                 if test $ol_tmp = mod ; then
13186                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13187 echo "$as_me: WARNING: building static $i overlay" >&2;}
13188                         eval "ol_enable_$i=yes"
13189                 fi
13190         done
13191 fi
13192
13193 # test for EBCDIC
13194 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13195 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13196 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199
13200         cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206
13207 #if !('M' == 0xd4)
13208 #include <__ASCII__/generate_error.h>
13209 #endif
13210
13211 _ACEOF
13212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13214   ac_status=$?
13215   grep -v '^ *+' conftest.er1 >conftest.err
13216   rm -f conftest.er1
13217   cat conftest.err >&5
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); } >/dev/null; then
13220   if test -s conftest.err; then
13221     ac_cpp_err=$ac_c_preproc_warn_flag
13222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13223   else
13224     ac_cpp_err=
13225   fi
13226 else
13227   ac_cpp_err=yes
13228 fi
13229 if test -z "$ac_cpp_err"; then
13230   ol_cv_cpp_ebcdic=yes
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235   ol_cv_cpp_ebcdic=no
13236 fi
13237 rm -f conftest.err conftest.$ac_ext
13238 fi
13239 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13240 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13241 if test $ol_cv_cpp_ebcdic = yes ; then
13242
13243 cat >>confdefs.h <<\_ACEOF
13244 #define HAVE_EBCDIC 1
13245 _ACEOF
13246
13247 fi
13248
13249 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13251 if test "${ol_cv_header_stdc+set}" = set; then
13252   echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254   cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h.  */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h.  */
13260 #include <stdlib.h>
13261 #include <stdarg.h>
13262 #include <string.h>
13263 #include <float.h>
13264 _ACEOF
13265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } >/dev/null; then
13273   if test -s conftest.err; then
13274     ac_cpp_err=$ac_c_preproc_warn_flag
13275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13276   else
13277     ac_cpp_err=
13278   fi
13279 else
13280   ac_cpp_err=yes
13281 fi
13282 if test -z "$ac_cpp_err"; then
13283   ol_cv_header_stdc=yes
13284 else
13285   echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13287
13288   ol_cv_header_stdc=no
13289 fi
13290 rm -f conftest.err conftest.$ac_ext
13291
13292 if test $ol_cv_header_stdc = yes; then
13293   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 #include <string.h>
13301
13302 _ACEOF
13303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13304   $EGREP "memchr" >/dev/null 2>&1; then
13305   :
13306 else
13307   ol_cv_header_stdc=no
13308 fi
13309 rm -f conftest*
13310
13311 fi
13312
13313 if test $ol_cv_header_stdc = yes; then
13314   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h.  */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h.  */
13321 #include <stdlib.h>
13322
13323 _ACEOF
13324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13325   $EGREP "free" >/dev/null 2>&1; then
13326   :
13327 else
13328   ol_cv_header_stdc=no
13329 fi
13330 rm -f conftest*
13331
13332 fi
13333
13334 if test $ol_cv_header_stdc = yes; then
13335   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13336 if test "$cross_compiling" = yes; then
13337   :
13338 else
13339   cat >conftest.$ac_ext <<_ACEOF
13340 /* confdefs.h.  */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h.  */
13345 #include <ctype.h>
13346 #ifndef HAVE_EBCDIC
13347 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13348 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13349 #else
13350 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13351                 || ('j' <= (c) && (c) <= 'r') \
13352                 || ('s' <= (c) && (c) <= 'z'))
13353 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13354 #endif
13355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13356 int main () { int i; for (i = 0; i < 256; i++)
13357 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13358 exit (0); }
13359
13360 _ACEOF
13361 rm -f conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363   (eval $ac_link) 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368   (eval $ac_try) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; }; then
13372   :
13373 else
13374   echo "$as_me: program exited with status $ac_status" >&5
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378 ( exit $ac_status )
13379 ol_cv_header_stdc=no
13380 fi
13381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13382 fi
13383 fi
13384 fi
13385 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13386 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13387 if test $ol_cv_header_stdc = yes; then
13388   cat >>confdefs.h <<\_ACEOF
13389 #define STDC_HEADERS 1
13390 _ACEOF
13391
13392 fi
13393 ac_cv_header_stdc=disable
13394
13395
13396 if test $ol_cv_header_stdc != yes; then
13397         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13398 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13399 fi
13400
13401
13402
13403
13404
13405
13406 ac_header_dirent=no
13407 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13408   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13409 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13410 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13412   echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414   cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420 #include <sys/types.h>
13421 #include <$ac_hdr>
13422
13423 int
13424 main ()
13425 {
13426 if ((DIR *) 0)
13427 return 0;
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 rm -f conftest.$ac_objext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434   (eval $ac_compile) 2>conftest.er1
13435   ac_status=$?
13436   grep -v '^ *+' conftest.er1 >conftest.err
13437   rm -f conftest.er1
13438   cat conftest.err >&5
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } &&
13441          { ac_try='test -z "$ac_c_werror_flag"
13442                          || test ! -s conftest.err'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } &&
13448          { ac_try='test -s conftest.$ac_objext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   eval "$as_ac_Header=yes"
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 eval "$as_ac_Header=no"
13460 fi
13461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13462 fi
13463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466   cat >>confdefs.h <<_ACEOF
13467 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13468 _ACEOF
13469
13470 ac_header_dirent=$ac_hdr; break
13471 fi
13472
13473 done
13474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13475 if test $ac_header_dirent = dirent.h; then
13476   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13477 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13478 if test "${ac_cv_search_opendir+set}" = set; then
13479   echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481   ac_func_search_save_LIBS=$LIBS
13482 ac_cv_search_opendir=no
13483 cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h.  */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h.  */
13489
13490 /* Override any gcc2 internal prototype to avoid an error.  */
13491 #ifdef __cplusplus
13492 extern "C"
13493 #endif
13494 /* We use char because int might match the return type of a gcc2
13495    builtin and then its argument prototype would still apply.  */
13496 char opendir ();
13497 int
13498 main ()
13499 {
13500 opendir ();
13501   ;
13502   return 0;
13503 }
13504 _ACEOF
13505 rm -f conftest.$ac_objext conftest$ac_exeext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507   (eval $ac_link) 2>conftest.er1
13508   ac_status=$?
13509   grep -v '^ *+' conftest.er1 >conftest.err
13510   rm -f conftest.er1
13511   cat conftest.err >&5
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } &&
13514          { ac_try='test -z "$ac_c_werror_flag"
13515                          || test ! -s conftest.err'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; } &&
13521          { ac_try='test -s conftest$ac_exeext'
13522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523   (eval $ac_try) 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; }; then
13527   ac_cv_search_opendir="none required"
13528 else
13529   echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532 fi
13533 rm -f conftest.err conftest.$ac_objext \
13534       conftest$ac_exeext conftest.$ac_ext
13535 if test "$ac_cv_search_opendir" = no; then
13536   for ac_lib in dir; do
13537     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13538     cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544
13545 /* Override any gcc2 internal prototype to avoid an error.  */
13546 #ifdef __cplusplus
13547 extern "C"
13548 #endif
13549 /* We use char because int might match the return type of a gcc2
13550    builtin and then its argument prototype would still apply.  */
13551 char opendir ();
13552 int
13553 main ()
13554 {
13555 opendir ();
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13562   (eval $ac_link) 2>conftest.er1
13563   ac_status=$?
13564   grep -v '^ *+' conftest.er1 >conftest.err
13565   rm -f conftest.er1
13566   cat conftest.err >&5
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); } &&
13569          { ac_try='test -z "$ac_c_werror_flag"
13570                          || test ! -s conftest.err'
13571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572   (eval $ac_try) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; } &&
13576          { ac_try='test -s conftest$ac_exeext'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; }; then
13582   ac_cv_search_opendir="-l$ac_lib"
13583 break
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 fi
13589 rm -f conftest.err conftest.$ac_objext \
13590       conftest$ac_exeext conftest.$ac_ext
13591   done
13592 fi
13593 LIBS=$ac_func_search_save_LIBS
13594 fi
13595 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13596 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13597 if test "$ac_cv_search_opendir" != no; then
13598   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13599
13600 fi
13601
13602 else
13603   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13605 if test "${ac_cv_search_opendir+set}" = set; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   ac_func_search_save_LIBS=$LIBS
13609 ac_cv_search_opendir=no
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h.  */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h.  */
13616
13617 /* Override any gcc2 internal prototype to avoid an error.  */
13618 #ifdef __cplusplus
13619 extern "C"
13620 #endif
13621 /* We use char because int might match the return type of a gcc2
13622    builtin and then its argument prototype would still apply.  */
13623 char opendir ();
13624 int
13625 main ()
13626 {
13627 opendir ();
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634   (eval $ac_link) 2>conftest.er1
13635   ac_status=$?
13636   grep -v '^ *+' conftest.er1 >conftest.err
13637   rm -f conftest.er1
13638   cat conftest.err >&5
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); } &&
13641          { ac_try='test -z "$ac_c_werror_flag"
13642                          || test ! -s conftest.err'
13643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644   (eval $ac_try) 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }; } &&
13648          { ac_try='test -s conftest$ac_exeext'
13649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650   (eval $ac_try) 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   ac_cv_search_opendir="none required"
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 fi
13660 rm -f conftest.err conftest.$ac_objext \
13661       conftest$ac_exeext conftest.$ac_ext
13662 if test "$ac_cv_search_opendir" = no; then
13663   for ac_lib in x; do
13664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13665     cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671
13672 /* Override any gcc2 internal prototype to avoid an error.  */
13673 #ifdef __cplusplus
13674 extern "C"
13675 #endif
13676 /* We use char because int might match the return type of a gcc2
13677    builtin and then its argument prototype would still apply.  */
13678 char opendir ();
13679 int
13680 main ()
13681 {
13682 opendir ();
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13689   (eval $ac_link) 2>conftest.er1
13690   ac_status=$?
13691   grep -v '^ *+' conftest.er1 >conftest.err
13692   rm -f conftest.er1
13693   cat conftest.err >&5
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); } &&
13696          { ac_try='test -z "$ac_c_werror_flag"
13697                          || test ! -s conftest.err'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; } &&
13703          { ac_try='test -s conftest$ac_exeext'
13704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705   (eval $ac_try) 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; }; then
13709   ac_cv_search_opendir="-l$ac_lib"
13710 break
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 fi
13716 rm -f conftest.err conftest.$ac_objext \
13717       conftest$ac_exeext conftest.$ac_ext
13718   done
13719 fi
13720 LIBS=$ac_func_search_save_LIBS
13721 fi
13722 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13723 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13724 if test "$ac_cv_search_opendir" != no; then
13725   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13726
13727 fi
13728
13729 fi
13730
13731 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13732 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13733 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13734   echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736   cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742 #include <sys/types.h>
13743 #include <sys/wait.h>
13744 #ifndef WEXITSTATUS
13745 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13746 #endif
13747 #ifndef WIFEXITED
13748 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13749 #endif
13750
13751 int
13752 main ()
13753 {
13754   int s;
13755   wait (&s);
13756   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13757   ;
13758   return 0;
13759 }
13760 _ACEOF
13761 rm -f conftest.$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763   (eval $ac_compile) 2>conftest.er1
13764   ac_status=$?
13765   grep -v '^ *+' conftest.er1 >conftest.err
13766   rm -f conftest.er1
13767   cat conftest.err >&5
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } &&
13770          { ac_try='test -z "$ac_c_werror_flag"
13771                          || test ! -s conftest.err'
13772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773   (eval $ac_try) 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; } &&
13777          { ac_try='test -s conftest.$ac_objext'
13778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779   (eval $ac_try) 2>&5
13780   ac_status=$?
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); }; }; then
13783   ac_cv_header_sys_wait_h=yes
13784 else
13785   echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13787
13788 ac_cv_header_sys_wait_h=no
13789 fi
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13791 fi
13792 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13793 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13794 if test $ac_cv_header_sys_wait_h = yes; then
13795
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_SYS_WAIT_H 1
13798 _ACEOF
13799
13800 fi
13801
13802 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13803 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13804 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807   cat >conftest.$ac_ext <<_ACEOF
13808 /* confdefs.h.  */
13809 _ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h.  */
13813 #include <sys/types.h>
13814 #include <termios.h>
13815 #ifdef TIOCGWINSZ
13816   yes
13817 #endif
13818
13819 _ACEOF
13820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13821   $EGREP "yes" >/dev/null 2>&1; then
13822   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13823 else
13824   ac_cv_sys_tiocgwinsz_in_termios_h=no
13825 fi
13826 rm -f conftest*
13827
13828 fi
13829 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13830 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13831
13832 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13833   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13834 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13835 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h.  */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h.  */
13844 #include <sys/types.h>
13845 #include <sys/ioctl.h>
13846 #ifdef TIOCGWINSZ
13847   yes
13848 #endif
13849
13850 _ACEOF
13851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13852   $EGREP "yes" >/dev/null 2>&1; then
13853   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13854 else
13855   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13856 fi
13857 rm -f conftest*
13858
13859 fi
13860 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13861 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13862
13863   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13864
13865 cat >>confdefs.h <<\_ACEOF
13866 #define GWINSZ_IN_SYS_IOCTL 1
13867 _ACEOF
13868
13869   fi
13870 fi
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917 for ac_header in \
13918         arpa/inet.h             \
13919         arpa/nameser.h  \
13920         assert.h                \
13921         bits/types.h    \
13922         conio.h                 \
13923         crypt.h                 \
13924         direct.h                \
13925         errno.h                 \
13926         fcntl.h                 \
13927         filio.h                 \
13928         getopt.h                \
13929         grp.h                   \
13930         io.h                    \
13931         libutil.h               \
13932         limits.h                \
13933         locale.h                \
13934         malloc.h                \
13935         memory.h                \
13936         psap.h                  \
13937         pwd.h                   \
13938         process.h               \
13939         sgtty.h                 \
13940         shadow.h                \
13941         stddef.h                \
13942         string.h                \
13943         strings.h               \
13944         sysexits.h              \
13945         sys/file.h              \
13946         sys/filio.h             \
13947         sys/errno.h             \
13948         sys/ioctl.h             \
13949         sys/param.h             \
13950         sys/resource.h  \
13951         sys/select.h    \
13952         sys/socket.h    \
13953         sys/stat.h              \
13954         sys/syslog.h    \
13955         sys/time.h              \
13956         sys/types.h             \
13957         sys/uio.h               \
13958         syslog.h                \
13959         termios.h               \
13960         unistd.h                \
13961         utime.h                 \
13962
13963 do
13964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966   echo "$as_me:$LINENO: checking for $ac_header" >&5
13967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13969   echo $ECHO_N "(cached) $ECHO_C" >&6
13970 fi
13971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13973 else
13974   # Is the header compilable?
13975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 $ac_includes_default
13984 #include <$ac_header>
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988   (eval $ac_compile) 2>conftest.er1
13989   ac_status=$?
13990   grep -v '^ *+' conftest.er1 >conftest.err
13991   rm -f conftest.er1
13992   cat conftest.err >&5
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); } &&
13995          { ac_try='test -z "$ac_c_werror_flag"
13996                          || test ! -s conftest.err'
13997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998   (eval $ac_try) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); }; } &&
14002          { ac_try='test -s conftest.$ac_objext'
14003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004   (eval $ac_try) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); }; }; then
14008   ac_header_compiler=yes
14009 else
14010   echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14012
14013 ac_header_compiler=no
14014 fi
14015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14017 echo "${ECHO_T}$ac_header_compiler" >&6
14018
14019 # Is the header present?
14020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h.  */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h.  */
14028 #include <$ac_header>
14029 _ACEOF
14030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14032   ac_status=$?
14033   grep -v '^ *+' conftest.er1 >conftest.err
14034   rm -f conftest.er1
14035   cat conftest.err >&5
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } >/dev/null; then
14038   if test -s conftest.err; then
14039     ac_cpp_err=$ac_c_preproc_warn_flag
14040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14041   else
14042     ac_cpp_err=
14043   fi
14044 else
14045   ac_cpp_err=yes
14046 fi
14047 if test -z "$ac_cpp_err"; then
14048   ac_header_preproc=yes
14049 else
14050   echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053   ac_header_preproc=no
14054 fi
14055 rm -f conftest.err conftest.$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14057 echo "${ECHO_T}$ac_header_preproc" >&6
14058
14059 # So?  What about this header?
14060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14061   yes:no: )
14062     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14066     ac_header_preproc=yes
14067     ;;
14068   no:yes:* )
14069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14071     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14072 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14073     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14075     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14076 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14079     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14081     (
14082       cat <<\_ASBOX
14083 ## --------------------------------------------- ##
14084 ## Report this to <http://www.openldap.org/its/> ##
14085 ## --------------------------------------------- ##
14086 _ASBOX
14087     ) |
14088       sed "s/^/$as_me: WARNING:     /" >&2
14089     ;;
14090 esac
14091 echo "$as_me:$LINENO: checking for $ac_header" >&5
14092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14094   echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096   eval "$as_ac_Header=\$ac_header_preproc"
14097 fi
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14100
14101 fi
14102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14103   cat >>confdefs.h <<_ACEOF
14104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14105 _ACEOF
14106
14107 fi
14108
14109 done
14110
14111
14112 if test "$ac_cv_mingw32" = yes ; then
14113
14114
14115 for ac_header in winsock.h winsock2.h
14116 do
14117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119   echo "$as_me:$LINENO: checking for $ac_header" >&5
14120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14122   echo $ECHO_N "(cached) $ECHO_C" >&6
14123 fi
14124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14126 else
14127   # Is the header compilable?
14128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14130 cat >conftest.$ac_ext <<_ACEOF
14131 /* confdefs.h.  */
14132 _ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h.  */
14136 $ac_includes_default
14137 #include <$ac_header>
14138 _ACEOF
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141   (eval $ac_compile) 2>conftest.er1
14142   ac_status=$?
14143   grep -v '^ *+' conftest.er1 >conftest.err
14144   rm -f conftest.er1
14145   cat conftest.err >&5
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } &&
14148          { ac_try='test -z "$ac_c_werror_flag"
14149                          || test ! -s conftest.err'
14150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151   (eval $ac_try) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; } &&
14155          { ac_try='test -s conftest.$ac_objext'
14156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157   (eval $ac_try) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); }; }; then
14161   ac_header_compiler=yes
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ac_header_compiler=no
14167 fi
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14170 echo "${ECHO_T}$ac_header_compiler" >&6
14171
14172 # Is the header present?
14173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h.  */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h.  */
14181 #include <$ac_header>
14182 _ACEOF
14183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } >/dev/null; then
14191   if test -s conftest.err; then
14192     ac_cpp_err=$ac_c_preproc_warn_flag
14193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14194   else
14195     ac_cpp_err=
14196   fi
14197 else
14198   ac_cpp_err=yes
14199 fi
14200 if test -z "$ac_cpp_err"; then
14201   ac_header_preproc=yes
14202 else
14203   echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14205
14206   ac_header_preproc=no
14207 fi
14208 rm -f conftest.err conftest.$ac_ext
14209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14210 echo "${ECHO_T}$ac_header_preproc" >&6
14211
14212 # So?  What about this header?
14213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14214   yes:no: )
14215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14219     ac_header_preproc=yes
14220     ;;
14221   no:yes:* )
14222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14234     (
14235       cat <<\_ASBOX
14236 ## --------------------------------------------- ##
14237 ## Report this to <http://www.openldap.org/its/> ##
14238 ## --------------------------------------------- ##
14239 _ASBOX
14240     ) |
14241       sed "s/^/$as_me: WARNING:     /" >&2
14242     ;;
14243 esac
14244 echo "$as_me:$LINENO: checking for $ac_header" >&5
14245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   eval "$as_ac_Header=\$ac_header_preproc"
14250 fi
14251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14253
14254 fi
14255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14256   cat >>confdefs.h <<_ACEOF
14257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14258 _ACEOF
14259
14260 fi
14261
14262 done
14263
14264 fi
14265
14266
14267 for ac_header in resolv.h
14268 do
14269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14270 echo "$as_me:$LINENO: checking for $ac_header" >&5
14271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275   cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281 $ac_includes_default
14282 #include <netinet/in.h>
14283
14284
14285 #include <$ac_header>
14286 _ACEOF
14287 rm -f conftest.$ac_objext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14289   (eval $ac_compile) 2>conftest.er1
14290   ac_status=$?
14291   grep -v '^ *+' conftest.er1 >conftest.err
14292   rm -f conftest.er1
14293   cat conftest.err >&5
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); } &&
14296          { ac_try='test -z "$ac_c_werror_flag"
14297                          || test ! -s conftest.err'
14298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299   (eval $ac_try) 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; } &&
14303          { ac_try='test -s conftest.$ac_objext'
14304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305   (eval $ac_try) 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; }; then
14309   eval "$as_ac_Header=yes"
14310 else
14311   echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314 eval "$as_ac_Header=no"
14315 fi
14316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14317 fi
14318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14321   cat >>confdefs.h <<_ACEOF
14322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14323 _ACEOF
14324
14325 fi
14326
14327 done
14328
14329
14330
14331 for ac_header in netinet/tcp.h
14332 do
14333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14334 echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14337   echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339   cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 $ac_includes_default
14346 #include <netinet/in.h>
14347
14348
14349 #include <$ac_header>
14350 _ACEOF
14351 rm -f conftest.$ac_objext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353   (eval $ac_compile) 2>conftest.er1
14354   ac_status=$?
14355   grep -v '^ *+' conftest.er1 >conftest.err
14356   rm -f conftest.er1
14357   cat conftest.err >&5
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); } &&
14360          { ac_try='test -z "$ac_c_werror_flag"
14361                          || test ! -s conftest.err'
14362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363   (eval $ac_try) 2>&5
14364   ac_status=$?
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); }; } &&
14367          { ac_try='test -s conftest.$ac_objext'
14368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369   (eval $ac_try) 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); }; }; then
14373   eval "$as_ac_Header=yes"
14374 else
14375   echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14377
14378 eval "$as_ac_Header=no"
14379 fi
14380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14381 fi
14382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14385   cat >>confdefs.h <<_ACEOF
14386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14387 _ACEOF
14388
14389 fi
14390
14391 done
14392
14393
14394
14395 for ac_header in sys/ucred.h
14396 do
14397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14398 echo "$as_me:$LINENO: checking for $ac_header" >&5
14399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14401   echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403   cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h.  */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h.  */
14409 $ac_includes_default
14410 #ifdef HAVE_SYS_PARAM_H
14411 #include <sys/param.h>
14412 #endif
14413
14414
14415 #include <$ac_header>
14416 _ACEOF
14417 rm -f conftest.$ac_objext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419   (eval $ac_compile) 2>conftest.er1
14420   ac_status=$?
14421   grep -v '^ *+' conftest.er1 >conftest.err
14422   rm -f conftest.er1
14423   cat conftest.err >&5
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); } &&
14426          { ac_try='test -z "$ac_c_werror_flag"
14427                          || test ! -s conftest.err'
14428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429   (eval $ac_try) 2>&5
14430   ac_status=$?
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); }; } &&
14433          { ac_try='test -s conftest.$ac_objext'
14434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435   (eval $ac_try) 2>&5
14436   ac_status=$?
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); }; }; then
14439   eval "$as_ac_Header=yes"
14440 else
14441   echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444 eval "$as_ac_Header=no"
14445 fi
14446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14447 fi
14448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14451   cat >>confdefs.h <<_ACEOF
14452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14453 _ACEOF
14454
14455 fi
14456
14457 done
14458
14459
14460
14461
14462
14463 for ac_func in sigaction sigset
14464 do
14465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14466 echo "$as_me:$LINENO: checking for $ac_func" >&5
14467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14468 if eval "test \"\${$as_ac_var+set}\" = set"; then
14469   echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471   cat >conftest.$ac_ext <<_ACEOF
14472 /* confdefs.h.  */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h.  */
14477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14479 #define $ac_func innocuous_$ac_func
14480
14481 /* System header to define __stub macros and hopefully few prototypes,
14482     which can conflict with char $ac_func (); below.
14483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14484     <limits.h> exists even on freestanding compilers.  */
14485
14486 #ifdef __STDC__
14487 # include <limits.h>
14488 #else
14489 # include <assert.h>
14490 #endif
14491
14492 #undef $ac_func
14493
14494 /* Override any gcc2 internal prototype to avoid an error.  */
14495 #ifdef __cplusplus
14496 extern "C"
14497 {
14498 #endif
14499 /* We use char because int might match the return type of a gcc2
14500    builtin and then its argument prototype would still apply.  */
14501 char $ac_func ();
14502 /* The GNU C library defines this for functions which it implements
14503     to always fail with ENOSYS.  Some functions are actually named
14504     something starting with __ and the normal name is an alias.  */
14505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14506 choke me
14507 #else
14508 char (*f) () = $ac_func;
14509 #endif
14510 #ifdef __cplusplus
14511 }
14512 #endif
14513
14514 int
14515 main ()
14516 {
14517 return f != $ac_func;
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14524   (eval $ac_link) 2>conftest.er1
14525   ac_status=$?
14526   grep -v '^ *+' conftest.er1 >conftest.err
14527   rm -f conftest.er1
14528   cat conftest.err >&5
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); } &&
14531          { ac_try='test -z "$ac_c_werror_flag"
14532                          || test ! -s conftest.err'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; } &&
14538          { ac_try='test -s conftest$ac_exeext'
14539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540   (eval $ac_try) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544   eval "$as_ac_var=yes"
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 eval "$as_ac_var=no"
14550 fi
14551 rm -f conftest.err conftest.$ac_objext \
14552       conftest$ac_exeext conftest.$ac_ext
14553 fi
14554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14556 if test `eval echo '${'$as_ac_var'}'` = yes; then
14557   cat >>confdefs.h <<_ACEOF
14558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14559 _ACEOF
14560
14561 fi
14562 done
14563
14564
14565 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14566
14567 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14568 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14569 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14570   echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572   ac_check_lib_save_LIBS=$LIBS
14573 LIBS="-lV3  $LIBS"
14574 cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h.  */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h.  */
14580
14581 /* Override any gcc2 internal prototype to avoid an error.  */
14582 #ifdef __cplusplus
14583 extern "C"
14584 #endif
14585 /* We use char because int might match the return type of a gcc2
14586    builtin and then its argument prototype would still apply.  */
14587 char sigset ();
14588 int
14589 main ()
14590 {
14591 sigset ();
14592   ;
14593   return 0;
14594 }
14595 _ACEOF
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598   (eval $ac_link) 2>conftest.er1
14599   ac_status=$?
14600   grep -v '^ *+' conftest.er1 >conftest.err
14601   rm -f conftest.er1
14602   cat conftest.err >&5
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } &&
14605          { ac_try='test -z "$ac_c_werror_flag"
14606                          || test ! -s conftest.err'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; } &&
14612          { ac_try='test -s conftest$ac_exeext'
14613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614   (eval $ac_try) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; }; then
14618   ac_cv_lib_V3_sigset=yes
14619 else
14620   echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 ac_cv_lib_V3_sigset=no
14624 fi
14625 rm -f conftest.err conftest.$ac_objext \
14626       conftest$ac_exeext conftest.$ac_ext
14627 LIBS=$ac_check_lib_save_LIBS
14628 fi
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14630 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14631 if test $ac_cv_lib_V3_sigset = yes; then
14632   cat >>confdefs.h <<_ACEOF
14633 #define HAVE_LIBV3 1
14634 _ACEOF
14635
14636   LIBS="-lV3 $LIBS"
14637
14638 fi
14639
14640 fi
14641
14642 if test "$ac_cv_header_winsock_h" = yes; then
14643 echo "$as_me:$LINENO: checking for winsock" >&5
14644 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14645 if test "${ol_cv_winsock+set}" = set; then
14646   echo $ECHO_N "(cached) $ECHO_C" >&6
14647 else
14648   save_LIBS="$LIBS"
14649 for curlib in ws2_32 wsock32; do
14650         LIBS="$LIBS -l$curlib"
14651         cat >conftest.$ac_ext <<_ACEOF
14652 /* confdefs.h.  */
14653 _ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h.  */
14657 #include <winsock.h>
14658
14659 int
14660 main ()
14661 {
14662
14663                         socket(0,0,0);
14664                         select(0,NULL,NULL,NULL,NULL);
14665                         closesocket(0);
14666                         gethostname(NULL,0);
14667
14668   ;
14669   return 0;
14670 }
14671 _ACEOF
14672 rm -f conftest.$ac_objext conftest$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674   (eval $ac_link) 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } &&
14681          { ac_try='test -z "$ac_c_werror_flag"
14682                          || test ! -s conftest.err'
14683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684   (eval $ac_try) 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); }; } &&
14688          { ac_try='test -s conftest$ac_exeext'
14689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690   (eval $ac_try) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; }; then
14694   ol_cv_winsock=yes
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699 ol_cv_winsock=no
14700 fi
14701 rm -f conftest.err conftest.$ac_objext \
14702       conftest$ac_exeext conftest.$ac_ext
14703
14704         if test $ol_cv_winsock = yes; then
14705
14706 cat >>confdefs.h <<\_ACEOF
14707 #define HAVE_WINSOCK 1
14708 _ACEOF
14709
14710                 ac_cv_func_socket=yes
14711                 ac_cv_func_select=yes
14712                 ac_cv_func_closesocket=yes
14713                 ac_cv_func_gethostname=yes
14714                 if test $curlib = ws2_32; then
14715                         ol_cv_winsock=winsock2
14716
14717 cat >>confdefs.h <<\_ACEOF
14718 #define HAVE_WINSOCK2 1
14719 _ACEOF
14720
14721                 fi
14722                 break
14723         fi
14724         LIBS="$save_LIBS"
14725 done
14726 fi
14727 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14728 echo "${ECHO_T}$ol_cv_winsock" >&6
14729 fi
14730
14731
14732 echo "$as_me:$LINENO: checking for socket" >&5
14733 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14734 if test "${ac_cv_func_socket+set}" = set; then
14735   echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14737   cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h.  */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h.  */
14743 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14745 #define socket innocuous_socket
14746
14747 /* System header to define __stub macros and hopefully few prototypes,
14748     which can conflict with char socket (); below.
14749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14750     <limits.h> exists even on freestanding compilers.  */
14751
14752 #ifdef __STDC__
14753 # include <limits.h>
14754 #else
14755 # include <assert.h>
14756 #endif
14757
14758 #undef socket
14759
14760 /* Override any gcc2 internal prototype to avoid an error.  */
14761 #ifdef __cplusplus
14762 extern "C"
14763 {
14764 #endif
14765 /* We use char because int might match the return type of a gcc2
14766    builtin and then its argument prototype would still apply.  */
14767 char socket ();
14768 /* The GNU C library defines this for functions which it implements
14769     to always fail with ENOSYS.  Some functions are actually named
14770     something starting with __ and the normal name is an alias.  */
14771 #if defined (__stub_socket) || defined (__stub___socket)
14772 choke me
14773 #else
14774 char (*f) () = socket;
14775 #endif
14776 #ifdef __cplusplus
14777 }
14778 #endif
14779
14780 int
14781 main ()
14782 {
14783 return f != socket;
14784   ;
14785   return 0;
14786 }
14787 _ACEOF
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14790   (eval $ac_link) 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -z "$ac_c_werror_flag"
14798                          || test ! -s conftest.err'
14799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800   (eval $ac_try) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; } &&
14804          { ac_try='test -s conftest$ac_exeext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810   ac_cv_func_socket=yes
14811 else
14812   echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815 ac_cv_func_socket=no
14816 fi
14817 rm -f conftest.err conftest.$ac_objext \
14818       conftest$ac_exeext conftest.$ac_ext
14819 fi
14820 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14821 echo "${ECHO_T}$ac_cv_func_socket" >&6
14822 if test $ac_cv_func_socket = yes; then
14823   :
14824 else
14825
14826
14827 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14828 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14829 if test "${ac_cv_lib_socket_main+set}" = set; then
14830   echo $ECHO_N "(cached) $ECHO_C" >&6
14831 else
14832   ac_check_lib_save_LIBS=$LIBS
14833 LIBS="-lsocket  $LIBS"
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h.  */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h.  */
14840
14841
14842 int
14843 main ()
14844 {
14845 main ();
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852   (eval $ac_link) 2>conftest.er1
14853   ac_status=$?
14854   grep -v '^ *+' conftest.er1 >conftest.err
14855   rm -f conftest.er1
14856   cat conftest.err >&5
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); } &&
14859          { ac_try='test -z "$ac_c_werror_flag"
14860                          || test ! -s conftest.err'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; } &&
14866          { ac_try='test -s conftest$ac_exeext'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; }; then
14872   ac_cv_lib_socket_main=yes
14873 else
14874   echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877 ac_cv_lib_socket_main=no
14878 fi
14879 rm -f conftest.err conftest.$ac_objext \
14880       conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS
14882 fi
14883 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14884 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14885 if test $ac_cv_lib_socket_main = yes; then
14886   cat >>confdefs.h <<_ACEOF
14887 #define HAVE_LIBSOCKET 1
14888 _ACEOF
14889
14890   LIBS="-lsocket $LIBS"
14891
14892 fi
14893
14894
14895 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14896 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14897 if test "${ac_cv_lib_net_main+set}" = set; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900   ac_check_lib_save_LIBS=$LIBS
14901 LIBS="-lnet  $LIBS"
14902 cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908
14909
14910 int
14911 main ()
14912 {
14913 main ();
14914   ;
14915   return 0;
14916 }
14917 _ACEOF
14918 rm -f conftest.$ac_objext conftest$ac_exeext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14920   (eval $ac_link) 2>conftest.er1
14921   ac_status=$?
14922   grep -v '^ *+' conftest.er1 >conftest.err
14923   rm -f conftest.er1
14924   cat conftest.err >&5
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); } &&
14927          { ac_try='test -z "$ac_c_werror_flag"
14928                          || test ! -s conftest.err'
14929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930   (eval $ac_try) 2>&5
14931   ac_status=$?
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); }; } &&
14934          { ac_try='test -s conftest$ac_exeext'
14935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936   (eval $ac_try) 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; }; then
14940   ac_cv_lib_net_main=yes
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_cv_lib_net_main=no
14946 fi
14947 rm -f conftest.err conftest.$ac_objext \
14948       conftest$ac_exeext conftest.$ac_ext
14949 LIBS=$ac_check_lib_save_LIBS
14950 fi
14951 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14952 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14953 if test $ac_cv_lib_net_main = yes; then
14954   cat >>confdefs.h <<_ACEOF
14955 #define HAVE_LIBNET 1
14956 _ACEOF
14957
14958   LIBS="-lnet $LIBS"
14959
14960 fi
14961
14962
14963 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14964 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14965 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14966   echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968   ac_check_lib_save_LIBS=$LIBS
14969 LIBS="-lnsl_s  $LIBS"
14970 cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976
14977
14978 int
14979 main ()
14980 {
14981 main ();
14982   ;
14983   return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988   (eval $ac_link) 2>conftest.er1
14989   ac_status=$?
14990   grep -v '^ *+' conftest.er1 >conftest.err
14991   rm -f conftest.er1
14992   cat conftest.err >&5
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); } &&
14995          { ac_try='test -z "$ac_c_werror_flag"
14996                          || test ! -s conftest.err'
14997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998   (eval $ac_try) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); }; } &&
15002          { ac_try='test -s conftest$ac_exeext'
15003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004   (eval $ac_try) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008   ac_cv_lib_nsl_s_main=yes
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ac_cv_lib_nsl_s_main=no
15014 fi
15015 rm -f conftest.err conftest.$ac_objext \
15016       conftest$ac_exeext conftest.$ac_ext
15017 LIBS=$ac_check_lib_save_LIBS
15018 fi
15019 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15020 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15021 if test $ac_cv_lib_nsl_s_main = yes; then
15022   cat >>confdefs.h <<_ACEOF
15023 #define HAVE_LIBNSL_S 1
15024 _ACEOF
15025
15026   LIBS="-lnsl_s $LIBS"
15027
15028 fi
15029
15030
15031 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15032 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15033 if test "${ac_cv_lib_nsl_main+set}" = set; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036   ac_check_lib_save_LIBS=$LIBS
15037 LIBS="-lnsl  $LIBS"
15038 cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h.  */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h.  */
15044
15045
15046 int
15047 main ()
15048 {
15049 main ();
15050   ;
15051   return 0;
15052 }
15053 _ACEOF
15054 rm -f conftest.$ac_objext conftest$ac_exeext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15056   (eval $ac_link) 2>conftest.er1
15057   ac_status=$?
15058   grep -v '^ *+' conftest.er1 >conftest.err
15059   rm -f conftest.er1
15060   cat conftest.err >&5
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); } &&
15063          { ac_try='test -z "$ac_c_werror_flag"
15064                          || test ! -s conftest.err'
15065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066   (eval $ac_try) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); }; } &&
15070          { ac_try='test -s conftest$ac_exeext'
15071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072   (eval $ac_try) 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); }; }; then
15076   ac_cv_lib_nsl_main=yes
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 ac_cv_lib_nsl_main=no
15082 fi
15083 rm -f conftest.err conftest.$ac_objext \
15084       conftest$ac_exeext conftest.$ac_ext
15085 LIBS=$ac_check_lib_save_LIBS
15086 fi
15087 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15088 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15089 if test $ac_cv_lib_nsl_main = yes; then
15090   cat >>confdefs.h <<_ACEOF
15091 #define HAVE_LIBNSL 1
15092 _ACEOF
15093
15094   LIBS="-lnsl $LIBS"
15095
15096 fi
15097
15098
15099 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15100 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15101 if test "${ac_cv_lib_inet_socket+set}" = set; then
15102   echo $ECHO_N "(cached) $ECHO_C" >&6
15103 else
15104   ac_check_lib_save_LIBS=$LIBS
15105 LIBS="-linet  $LIBS"
15106 cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h.  */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h.  */
15112
15113 /* Override any gcc2 internal prototype to avoid an error.  */
15114 #ifdef __cplusplus
15115 extern "C"
15116 #endif
15117 /* We use char because int might match the return type of a gcc2
15118    builtin and then its argument prototype would still apply.  */
15119 char socket ();
15120 int
15121 main ()
15122 {
15123 socket ();
15124   ;
15125   return 0;
15126 }
15127 _ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130   (eval $ac_link) 2>conftest.er1
15131   ac_status=$?
15132   grep -v '^ *+' conftest.er1 >conftest.err
15133   rm -f conftest.er1
15134   cat conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); } &&
15137          { ac_try='test -z "$ac_c_werror_flag"
15138                          || test ! -s conftest.err'
15139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140   (eval $ac_try) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; } &&
15144          { ac_try='test -s conftest$ac_exeext'
15145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146   (eval $ac_try) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); }; }; then
15150   ac_cv_lib_inet_socket=yes
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155 ac_cv_lib_inet_socket=no
15156 fi
15157 rm -f conftest.err conftest.$ac_objext \
15158       conftest$ac_exeext conftest.$ac_ext
15159 LIBS=$ac_check_lib_save_LIBS
15160 fi
15161 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15162 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15163 if test $ac_cv_lib_inet_socket = yes; then
15164   cat >>confdefs.h <<_ACEOF
15165 #define HAVE_LIBINET 1
15166 _ACEOF
15167
15168   LIBS="-linet $LIBS"
15169
15170 fi
15171
15172
15173 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15174 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15175 if test "${ac_cv_lib_gen_main+set}" = set; then
15176   echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178   ac_check_lib_save_LIBS=$LIBS
15179 LIBS="-lgen  $LIBS"
15180 cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h.  */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h.  */
15186
15187
15188 int
15189 main ()
15190 {
15191 main ();
15192   ;
15193   return 0;
15194 }
15195 _ACEOF
15196 rm -f conftest.$ac_objext conftest$ac_exeext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15198   (eval $ac_link) 2>conftest.er1
15199   ac_status=$?
15200   grep -v '^ *+' conftest.er1 >conftest.err
15201   rm -f conftest.er1
15202   cat conftest.err >&5
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); } &&
15205          { ac_try='test -z "$ac_c_werror_flag"
15206                          || test ! -s conftest.err'
15207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208   (eval $ac_try) 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); }; } &&
15212          { ac_try='test -s conftest$ac_exeext'
15213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214   (eval $ac_try) 2>&5
15215   ac_status=$?
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); }; }; then
15218   ac_cv_lib_gen_main=yes
15219 else
15220   echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15222
15223 ac_cv_lib_gen_main=no
15224 fi
15225 rm -f conftest.err conftest.$ac_objext \
15226       conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15228 fi
15229 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15230 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15231 if test $ac_cv_lib_gen_main = yes; then
15232   cat >>confdefs.h <<_ACEOF
15233 #define HAVE_LIBGEN 1
15234 _ACEOF
15235
15236   LIBS="-lgen $LIBS"
15237
15238 fi
15239
15240
15241 fi
15242
15243
15244 echo "$as_me:$LINENO: checking for select" >&5
15245 echo $ECHO_N "checking for select... $ECHO_C" >&6
15246 if test "${ac_cv_func_select+set}" = set; then
15247   echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
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 /* Define select to an innocuous variant, in case <limits.h> declares select.
15256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15257 #define select innocuous_select
15258
15259 /* System header to define __stub macros and hopefully few prototypes,
15260     which can conflict with char select (); below.
15261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15262     <limits.h> exists even on freestanding compilers.  */
15263
15264 #ifdef __STDC__
15265 # include <limits.h>
15266 #else
15267 # include <assert.h>
15268 #endif
15269
15270 #undef select
15271
15272 /* Override any gcc2 internal prototype to avoid an error.  */
15273 #ifdef __cplusplus
15274 extern "C"
15275 {
15276 #endif
15277 /* We use char because int might match the return type of a gcc2
15278    builtin and then its argument prototype would still apply.  */
15279 char select ();
15280 /* The GNU C library defines this for functions which it implements
15281     to always fail with ENOSYS.  Some functions are actually named
15282     something starting with __ and the normal name is an alias.  */
15283 #if defined (__stub_select) || defined (__stub___select)
15284 choke me
15285 #else
15286 char (*f) () = select;
15287 #endif
15288 #ifdef __cplusplus
15289 }
15290 #endif
15291
15292 int
15293 main ()
15294 {
15295 return f != select;
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15302   (eval $ac_link) 2>conftest.er1
15303   ac_status=$?
15304   grep -v '^ *+' conftest.er1 >conftest.err
15305   rm -f conftest.er1
15306   cat conftest.err >&5
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } &&
15309          { ac_try='test -z "$ac_c_werror_flag"
15310                          || test ! -s conftest.err'
15311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312   (eval $ac_try) 2>&5
15313   ac_status=$?
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); }; } &&
15316          { ac_try='test -s conftest$ac_exeext'
15317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318   (eval $ac_try) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; }; then
15322   ac_cv_func_select=yes
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ac_cv_func_select=no
15328 fi
15329 rm -f conftest.err conftest.$ac_objext \
15330       conftest$ac_exeext conftest.$ac_ext
15331 fi
15332 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15333 echo "${ECHO_T}$ac_cv_func_select" >&6
15334 if test $ac_cv_func_select = yes; then
15335   :
15336 else
15337   { { echo "$as_me:$LINENO: error: select() required." >&5
15338 echo "$as_me: error: select() required." >&2;}
15339    { (exit 1); exit 1; }; }
15340 fi
15341
15342
15343 if test "${ac_cv_header_winsock_h}" != yes; then
15344
15345
15346 for ac_header in sys/select.h sys/socket.h
15347 do
15348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15350   echo "$as_me:$LINENO: checking for $ac_header" >&5
15351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 fi
15355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15357 else
15358   # Is the header compilable?
15359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15361 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 $ac_includes_default
15368 #include <$ac_header>
15369 _ACEOF
15370 rm -f conftest.$ac_objext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15372   (eval $ac_compile) 2>conftest.er1
15373   ac_status=$?
15374   grep -v '^ *+' conftest.er1 >conftest.err
15375   rm -f conftest.er1
15376   cat conftest.err >&5
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } &&
15379          { ac_try='test -z "$ac_c_werror_flag"
15380                          || test ! -s conftest.err'
15381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382   (eval $ac_try) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); }; } &&
15386          { ac_try='test -s conftest.$ac_objext'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; }; then
15392   ac_header_compiler=yes
15393 else
15394   echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15396
15397 ac_header_compiler=no
15398 fi
15399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15401 echo "${ECHO_T}$ac_header_compiler" >&6
15402
15403 # Is the header present?
15404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 #include <$ac_header>
15413 _ACEOF
15414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } >/dev/null; then
15422   if test -s conftest.err; then
15423     ac_cpp_err=$ac_c_preproc_warn_flag
15424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15425   else
15426     ac_cpp_err=
15427   fi
15428 else
15429   ac_cpp_err=yes
15430 fi
15431 if test -z "$ac_cpp_err"; then
15432   ac_header_preproc=yes
15433 else
15434   echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15436
15437   ac_header_preproc=no
15438 fi
15439 rm -f conftest.err conftest.$ac_ext
15440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15441 echo "${ECHO_T}$ac_header_preproc" >&6
15442
15443 # So?  What about this header?
15444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15445   yes:no: )
15446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15450     ac_header_preproc=yes
15451     ;;
15452   no:yes:* )
15453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15465     (
15466       cat <<\_ASBOX
15467 ## --------------------------------------------- ##
15468 ## Report this to <http://www.openldap.org/its/> ##
15469 ## --------------------------------------------- ##
15470 _ASBOX
15471     ) |
15472       sed "s/^/$as_me: WARNING:     /" >&2
15473     ;;
15474 esac
15475 echo "$as_me:$LINENO: checking for $ac_header" >&5
15476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15478   echo $ECHO_N "(cached) $ECHO_C" >&6
15479 else
15480   eval "$as_ac_Header=\$ac_header_preproc"
15481 fi
15482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15484
15485 fi
15486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15487   cat >>confdefs.h <<_ACEOF
15488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15489 _ACEOF
15490
15491 fi
15492
15493 done
15494
15495 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15496 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15497 if test "${ac_cv_func_select_args+set}" = set; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15501  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15502   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15503    cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h.  */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h.  */
15509 $ac_includes_default
15510 #if HAVE_SYS_SELECT_H
15511 # include <sys/select.h>
15512 #endif
15513 #if HAVE_SYS_SOCKET_H
15514 # include <sys/socket.h>
15515 #endif
15516
15517 int
15518 main ()
15519 {
15520 extern int select ($ac_arg1,
15521                                             $ac_arg234, $ac_arg234, $ac_arg234,
15522                                             $ac_arg5);
15523   ;
15524   return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15529   (eval $ac_compile) 2>conftest.er1
15530   ac_status=$?
15531   grep -v '^ *+' conftest.er1 >conftest.err
15532   rm -f conftest.er1
15533   cat conftest.err >&5
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); } &&
15536          { ac_try='test -z "$ac_c_werror_flag"
15537                          || test ! -s conftest.err'
15538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539   (eval $ac_try) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; } &&
15543          { ac_try='test -s conftest.$ac_objext'
15544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545   (eval $ac_try) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; }; then
15549   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 fi
15555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556   done
15557  done
15558 done
15559 # Provide a safe default value.
15560 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15561
15562 fi
15563 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15564 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15565 ac_save_IFS=$IFS; IFS=','
15566 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15567 IFS=$ac_save_IFS
15568 shift
15569
15570 cat >>confdefs.h <<_ACEOF
15571 #define SELECT_TYPE_ARG1 $1
15572 _ACEOF
15573
15574
15575 cat >>confdefs.h <<_ACEOF
15576 #define SELECT_TYPE_ARG234 ($2)
15577 _ACEOF
15578
15579
15580 cat >>confdefs.h <<_ACEOF
15581 #define SELECT_TYPE_ARG5 ($3)
15582 _ACEOF
15583
15584 rm -f conftest*
15585
15586 fi
15587
15588
15589
15590 for ac_func in poll
15591 do
15592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15593 echo "$as_me:$LINENO: checking for $ac_func" >&5
15594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15595 if eval "test \"\${$as_ac_var+set}\" = set"; then
15596   echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598   cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15606 #define $ac_func innocuous_$ac_func
15607
15608 /* System header to define __stub macros and hopefully few prototypes,
15609     which can conflict with char $ac_func (); below.
15610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15611     <limits.h> exists even on freestanding compilers.  */
15612
15613 #ifdef __STDC__
15614 # include <limits.h>
15615 #else
15616 # include <assert.h>
15617 #endif
15618
15619 #undef $ac_func
15620
15621 /* Override any gcc2 internal prototype to avoid an error.  */
15622 #ifdef __cplusplus
15623 extern "C"
15624 {
15625 #endif
15626 /* We use char because int might match the return type of a gcc2
15627    builtin and then its argument prototype would still apply.  */
15628 char $ac_func ();
15629 /* The GNU C library defines this for functions which it implements
15630     to always fail with ENOSYS.  Some functions are actually named
15631     something starting with __ and the normal name is an alias.  */
15632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15633 choke me
15634 #else
15635 char (*f) () = $ac_func;
15636 #endif
15637 #ifdef __cplusplus
15638 }
15639 #endif
15640
15641 int
15642 main ()
15643 {
15644 return f != $ac_func;
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15651   (eval $ac_link) 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); } &&
15658          { ac_try='test -z "$ac_c_werror_flag"
15659                          || test ! -s conftest.err'
15660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661   (eval $ac_try) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; } &&
15665          { ac_try='test -s conftest$ac_exeext'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; }; then
15671   eval "$as_ac_var=yes"
15672 else
15673   echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 eval "$as_ac_var=no"
15677 fi
15678 rm -f conftest.err conftest.$ac_objext \
15679       conftest$ac_exeext conftest.$ac_ext
15680 fi
15681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15683 if test `eval echo '${'$as_ac_var'}'` = yes; then
15684   cat >>confdefs.h <<_ACEOF
15685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15686 _ACEOF
15687
15688 fi
15689 done
15690
15691 if test $ac_cv_func_poll = yes; then
15692
15693
15694 for ac_header in poll.h sys/poll.h
15695 do
15696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15698   echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15701   echo $ECHO_N "(cached) $ECHO_C" >&6
15702 fi
15703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15705 else
15706   # Is the header compilable?
15707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715 $ac_includes_default
15716 #include <$ac_header>
15717 _ACEOF
15718 rm -f conftest.$ac_objext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15720   (eval $ac_compile) 2>conftest.er1
15721   ac_status=$?
15722   grep -v '^ *+' conftest.er1 >conftest.err
15723   rm -f conftest.er1
15724   cat conftest.err >&5
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); } &&
15727          { ac_try='test -z "$ac_c_werror_flag"
15728                          || test ! -s conftest.err'
15729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730   (eval $ac_try) 2>&5
15731   ac_status=$?
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); }; } &&
15734          { ac_try='test -s conftest.$ac_objext'
15735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736   (eval $ac_try) 2>&5
15737   ac_status=$?
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); }; }; then
15740   ac_header_compiler=yes
15741 else
15742   echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745 ac_header_compiler=no
15746 fi
15747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15749 echo "${ECHO_T}$ac_header_compiler" >&6
15750
15751 # Is the header present?
15752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h.  */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h.  */
15760 #include <$ac_header>
15761 _ACEOF
15762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15764   ac_status=$?
15765   grep -v '^ *+' conftest.er1 >conftest.err
15766   rm -f conftest.er1
15767   cat conftest.err >&5
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } >/dev/null; then
15770   if test -s conftest.err; then
15771     ac_cpp_err=$ac_c_preproc_warn_flag
15772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15773   else
15774     ac_cpp_err=
15775   fi
15776 else
15777   ac_cpp_err=yes
15778 fi
15779 if test -z "$ac_cpp_err"; then
15780   ac_header_preproc=yes
15781 else
15782   echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785   ac_header_preproc=no
15786 fi
15787 rm -f conftest.err conftest.$ac_ext
15788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15789 echo "${ECHO_T}$ac_header_preproc" >&6
15790
15791 # So?  What about this header?
15792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15793   yes:no: )
15794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15798     ac_header_preproc=yes
15799     ;;
15800   no:yes:* )
15801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15813     (
15814       cat <<\_ASBOX
15815 ## --------------------------------------------- ##
15816 ## Report this to <http://www.openldap.org/its/> ##
15817 ## --------------------------------------------- ##
15818 _ASBOX
15819     ) |
15820       sed "s/^/$as_me: WARNING:     /" >&2
15821     ;;
15822 esac
15823 echo "$as_me:$LINENO: checking for $ac_header" >&5
15824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   eval "$as_ac_Header=\$ac_header_preproc"
15829 fi
15830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15832
15833 fi
15834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15835   cat >>confdefs.h <<_ACEOF
15836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15837 _ACEOF
15838
15839 fi
15840
15841 done
15842
15843 fi
15844
15845
15846 for ac_header in sys/epoll.h
15847 do
15848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15850   echo "$as_me:$LINENO: checking for $ac_header" >&5
15851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 fi
15855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15857 else
15858   # Is the header compilable?
15859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h.  */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h.  */
15867 $ac_includes_default
15868 #include <$ac_header>
15869 _ACEOF
15870 rm -f conftest.$ac_objext
15871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15872   (eval $ac_compile) 2>conftest.er1
15873   ac_status=$?
15874   grep -v '^ *+' conftest.er1 >conftest.err
15875   rm -f conftest.er1
15876   cat conftest.err >&5
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); } &&
15879          { ac_try='test -z "$ac_c_werror_flag"
15880                          || test ! -s conftest.err'
15881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882   (eval $ac_try) 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }; } &&
15886          { ac_try='test -s conftest.$ac_objext'
15887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888   (eval $ac_try) 2>&5
15889   ac_status=$?
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); }; }; then
15892   ac_header_compiler=yes
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897 ac_header_compiler=no
15898 fi
15899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15901 echo "${ECHO_T}$ac_header_compiler" >&6
15902
15903 # Is the header present?
15904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15906 cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h.  */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h.  */
15912 #include <$ac_header>
15913 _ACEOF
15914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15916   ac_status=$?
15917   grep -v '^ *+' conftest.er1 >conftest.err
15918   rm -f conftest.er1
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } >/dev/null; then
15922   if test -s conftest.err; then
15923     ac_cpp_err=$ac_c_preproc_warn_flag
15924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15925   else
15926     ac_cpp_err=
15927   fi
15928 else
15929   ac_cpp_err=yes
15930 fi
15931 if test -z "$ac_cpp_err"; then
15932   ac_header_preproc=yes
15933 else
15934   echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937   ac_header_preproc=no
15938 fi
15939 rm -f conftest.err conftest.$ac_ext
15940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15941 echo "${ECHO_T}$ac_header_preproc" >&6
15942
15943 # So?  What about this header?
15944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15945   yes:no: )
15946     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15950     ac_header_preproc=yes
15951     ;;
15952   no:yes:* )
15953     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15955     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15956 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15957     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15959     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15960 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15963     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15965     (
15966       cat <<\_ASBOX
15967 ## --------------------------------------------- ##
15968 ## Report this to <http://www.openldap.org/its/> ##
15969 ## --------------------------------------------- ##
15970 _ASBOX
15971     ) |
15972       sed "s/^/$as_me: WARNING:     /" >&2
15973     ;;
15974 esac
15975 echo "$as_me:$LINENO: checking for $ac_header" >&5
15976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15978   echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980   eval "$as_ac_Header=\$ac_header_preproc"
15981 fi
15982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15984
15985 fi
15986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15987   cat >>confdefs.h <<_ACEOF
15988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15989 _ACEOF
15990
15991 fi
15992
15993 done
15994
15995 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15996         echo "$as_me:$LINENO: checking for epoll system call" >&5
15997 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15998         if test "$cross_compiling" = yes; then
15999   echo "$as_me:$LINENO: result: no" >&5
16000 echo "${ECHO_T}no" >&6
16001 else
16002   cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h.  */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h.  */
16008 int main(int argc, char **argv)
16009 {
16010         int epfd = epoll_create(256);
16011         exit (epfd == -1 ? 1 : 0);
16012 }
16013 _ACEOF
16014 rm -f conftest$ac_exeext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016   (eval $ac_link) 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021   (eval $ac_try) 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; }; then
16025   echo "$as_me:$LINENO: result: yes" >&5
16026 echo "${ECHO_T}yes" >&6
16027
16028 cat >>confdefs.h <<\_ACEOF
16029 #define HAVE_EPOLL 1
16030 _ACEOF
16031
16032 else
16033   echo "$as_me: program exited with status $ac_status" >&5
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16036
16037 ( exit $ac_status )
16038 echo "$as_me:$LINENO: result: no" >&5
16039 echo "${ECHO_T}no" >&6
16040 fi
16041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16042 fi
16043 fi
16044
16045
16046 for ac_header in sys/devpoll.h
16047 do
16048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16050   echo "$as_me:$LINENO: checking for $ac_header" >&5
16051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16053   echo $ECHO_N "(cached) $ECHO_C" >&6
16054 fi
16055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16057 else
16058   # Is the header compilable?
16059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h.  */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h.  */
16067 $ac_includes_default
16068 #include <$ac_header>
16069 _ACEOF
16070 rm -f conftest.$ac_objext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16072   (eval $ac_compile) 2>conftest.er1
16073   ac_status=$?
16074   grep -v '^ *+' conftest.er1 >conftest.err
16075   rm -f conftest.er1
16076   cat conftest.err >&5
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } &&
16079          { ac_try='test -z "$ac_c_werror_flag"
16080                          || test ! -s conftest.err'
16081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082   (eval $ac_try) 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; } &&
16086          { ac_try='test -s conftest.$ac_objext'
16087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088   (eval $ac_try) 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; }; then
16092   ac_header_compiler=yes
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 ac_header_compiler=no
16098 fi
16099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16101 echo "${ECHO_T}$ac_header_compiler" >&6
16102
16103 # Is the header present?
16104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h.  */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h.  */
16112 #include <$ac_header>
16113 _ACEOF
16114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16116   ac_status=$?
16117   grep -v '^ *+' conftest.er1 >conftest.err
16118   rm -f conftest.er1
16119   cat conftest.err >&5
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); } >/dev/null; then
16122   if test -s conftest.err; then
16123     ac_cpp_err=$ac_c_preproc_warn_flag
16124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16125   else
16126     ac_cpp_err=
16127   fi
16128 else
16129   ac_cpp_err=yes
16130 fi
16131 if test -z "$ac_cpp_err"; then
16132   ac_header_preproc=yes
16133 else
16134   echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137   ac_header_preproc=no
16138 fi
16139 rm -f conftest.err conftest.$ac_ext
16140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16141 echo "${ECHO_T}$ac_header_preproc" >&6
16142
16143 # So?  What about this header?
16144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16145   yes:no: )
16146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16150     ac_header_preproc=yes
16151     ;;
16152   no:yes:* )
16153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16165     (
16166       cat <<\_ASBOX
16167 ## --------------------------------------------- ##
16168 ## Report this to <http://www.openldap.org/its/> ##
16169 ## --------------------------------------------- ##
16170 _ASBOX
16171     ) |
16172       sed "s/^/$as_me: WARNING:     /" >&2
16173     ;;
16174 esac
16175 echo "$as_me:$LINENO: checking for $ac_header" >&5
16176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180   eval "$as_ac_Header=\$ac_header_preproc"
16181 fi
16182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16184
16185 fi
16186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16187   cat >>confdefs.h <<_ACEOF
16188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16189 _ACEOF
16190
16191 fi
16192
16193 done
16194
16195 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16196                 -a "${ac_cv_header_poll_h}" = yes ; \
16197 then
16198         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16199 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16200         if test "$cross_compiling" = yes; then
16201   echo "$as_me:$LINENO: result: no" >&5
16202 echo "${ECHO_T}no" >&6
16203 else
16204   cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h.  */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h.  */
16210 int main(int argc, char **argv)
16211 {
16212         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16213         exit (devpollfd == -1 ? 1 : 0);
16214 }
16215 _ACEOF
16216 rm -f conftest$ac_exeext
16217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16218   (eval $ac_link) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223   (eval $ac_try) 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; }; then
16227   echo "$as_me:$LINENO: result: yes" >&5
16228 echo "${ECHO_T}yes" >&6
16229
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_DEVPOLL 1
16232 _ACEOF
16233
16234 else
16235   echo "$as_me: program exited with status $ac_status" >&5
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239 ( exit $ac_status )
16240 echo "$as_me:$LINENO: result: no" >&5
16241 echo "${ECHO_T}no" >&6
16242 fi
16243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16244 fi
16245 fi
16246
16247 # strerror checks
16248 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16249 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16250 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16251   echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253
16254         cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h.  */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h.  */
16260
16261 #include <stdio.h>
16262 #include <sys/types.h>
16263 #include <errno.h>
16264 #ifdef _WIN32
16265 #include <stdlib.h>
16266 #endif
16267 int
16268 main ()
16269 {
16270 char *c = (char *) *sys_errlist
16271   ;
16272   return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277   (eval $ac_compile) 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } &&
16284          { ac_try='test -z "$ac_c_werror_flag"
16285                          || test ! -s conftest.err'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; } &&
16291          { ac_try='test -s conftest.$ac_objext'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; }; then
16297   ol_cv_dcl_sys_errlist=yes
16298         ol_cv_have_sys_errlist=yes
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303 ol_cv_dcl_sys_errlist=no
16304 fi
16305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16306 fi
16307 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16308 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16309 #
16310 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16311 if test $ol_cv_dcl_sys_errlist = no ; then
16312
16313 cat >>confdefs.h <<\_ACEOF
16314 #define DECL_SYS_ERRLIST 1
16315 _ACEOF
16316
16317
16318         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16319 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16320 if test "${ol_cv_have_sys_errlist+set}" = set; then
16321   echo $ECHO_N "(cached) $ECHO_C" >&6
16322 else
16323
16324                 cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h.  */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h.  */
16330 #include <errno.h>
16331 int
16332 main ()
16333 {
16334 char *c = (char *) *sys_errlist
16335   ;
16336   return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341   (eval $ac_link) 2>conftest.er1
16342   ac_status=$?
16343   grep -v '^ *+' conftest.er1 >conftest.err
16344   rm -f conftest.er1
16345   cat conftest.err >&5
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); } &&
16348          { ac_try='test -z "$ac_c_werror_flag"
16349                          || test ! -s conftest.err'
16350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351   (eval $ac_try) 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; } &&
16355          { ac_try='test -s conftest$ac_exeext'
16356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357   (eval $ac_try) 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); }; }; then
16361   ol_cv_have_sys_errlist=yes
16362 else
16363   echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16365
16366 ol_cv_have_sys_errlist=no
16367 fi
16368 rm -f conftest.err conftest.$ac_objext \
16369       conftest$ac_exeext conftest.$ac_ext
16370 fi
16371 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16372 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16373 fi
16374 if test $ol_cv_have_sys_errlist = yes ; then
16375
16376 cat >>confdefs.h <<\_ACEOF
16377 #define HAVE_SYS_ERRLIST 1
16378 _ACEOF
16379
16380 fi
16381
16382
16383 for ac_func in strerror strerror_r
16384 do
16385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16386 echo "$as_me:$LINENO: checking for $ac_func" >&5
16387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16388 if eval "test \"\${$as_ac_var+set}\" = set"; then
16389   echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391   cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16399 #define $ac_func innocuous_$ac_func
16400
16401 /* System header to define __stub macros and hopefully few prototypes,
16402     which can conflict with char $ac_func (); below.
16403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16404     <limits.h> exists even on freestanding compilers.  */
16405
16406 #ifdef __STDC__
16407 # include <limits.h>
16408 #else
16409 # include <assert.h>
16410 #endif
16411
16412 #undef $ac_func
16413
16414 /* Override any gcc2 internal prototype to avoid an error.  */
16415 #ifdef __cplusplus
16416 extern "C"
16417 {
16418 #endif
16419 /* We use char because int might match the return type of a gcc2
16420    builtin and then its argument prototype would still apply.  */
16421 char $ac_func ();
16422 /* The GNU C library defines this for functions which it implements
16423     to always fail with ENOSYS.  Some functions are actually named
16424     something starting with __ and the normal name is an alias.  */
16425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16426 choke me
16427 #else
16428 char (*f) () = $ac_func;
16429 #endif
16430 #ifdef __cplusplus
16431 }
16432 #endif
16433
16434 int
16435 main ()
16436 {
16437 return f != $ac_func;
16438   ;
16439   return 0;
16440 }
16441 _ACEOF
16442 rm -f conftest.$ac_objext conftest$ac_exeext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16444   (eval $ac_link) 2>conftest.er1
16445   ac_status=$?
16446   grep -v '^ *+' conftest.er1 >conftest.err
16447   rm -f conftest.er1
16448   cat conftest.err >&5
16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); } &&
16451          { ac_try='test -z "$ac_c_werror_flag"
16452                          || test ! -s conftest.err'
16453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454   (eval $ac_try) 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; } &&
16458          { ac_try='test -s conftest$ac_exeext'
16459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460   (eval $ac_try) 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; }; then
16464   eval "$as_ac_var=yes"
16465 else
16466   echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16468
16469 eval "$as_ac_var=no"
16470 fi
16471 rm -f conftest.err conftest.$ac_objext \
16472       conftest$ac_exeext conftest.$ac_ext
16473 fi
16474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16476 if test `eval echo '${'$as_ac_var'}'` = yes; then
16477   cat >>confdefs.h <<_ACEOF
16478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16479 _ACEOF
16480
16481 fi
16482 done
16483
16484 ol_cv_func_strerror_r=no
16485 if test "${ac_cv_func_strerror_r}" = yes ; then
16486         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16487 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16488 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16489   echo $ECHO_N "(cached) $ECHO_C" >&6
16490 else
16491
16492         cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h.  */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h.  */
16498 #include <string.h>
16499 _ACEOF
16500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16501   $EGREP "strerror_r" >/dev/null 2>&1; then
16502   ol_decl_strerror_r=yes
16503 else
16504   ol_decl_strerror_r=no
16505 fi
16506 rm -f conftest*
16507
16508         if test $ol_decl_strerror_r = yes ; then
16509                 cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h.  */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h.  */
16515 #include <string.h>
16516 int
16517 main ()
16518 {
16519    /* from autoconf 2.59 */
16520                                 char buf[100];
16521                                 char x = *strerror_r (0, buf, sizeof buf);
16522                                 char *p = strerror_r (0, buf, sizeof buf);
16523
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_nonposix_strerror_r=yes
16551 else
16552   echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16554
16555 ol_cv_nonposix_strerror_r=no
16556 fi
16557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16558         else
16559                 if test "$cross_compiling" = yes; then
16560   ol_cv_nonposix_strerror=no
16561 else
16562   cat >conftest.$ac_ext <<_ACEOF
16563 /* confdefs.h.  */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h.  */
16568
16569                         main() {
16570                                 char buf[100];
16571                                 buf[0] = 0;
16572                                 strerror_r( 1, buf, sizeof buf );
16573                                 exit( buf[0] == 0 );
16574                         }
16575
16576 _ACEOF
16577 rm -f conftest$ac_exeext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579   (eval $ac_link) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584   (eval $ac_try) 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); }; }; then
16588   ol_cv_nonposix_strerror_r=yes
16589 else
16590   echo "$as_me: program exited with status $ac_status" >&5
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16593
16594 ( exit $ac_status )
16595 ol_cv_nonposix_strerror=no
16596 fi
16597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16598 fi
16599         fi
16600
16601 fi
16602 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16603 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16604 if test $ol_cv_nonposix_strerror_r = yes ; then
16605
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_NONPOSIX_STRERROR_R 1
16608 _ACEOF
16609
16610 fi
16611
16612 elif test "${ac_cv_func_strerror}" = no ; then
16613         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16614 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16615 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16616   echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618
16619         cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h.  */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h.  */
16625
16626 #include <stdio.h>
16627 #include <sys/types.h>
16628 #include <errno.h>
16629 #ifdef _WIN32
16630 #include <stdlib.h>
16631 #endif
16632 int
16633 main ()
16634 {
16635 char *c = (char *) *sys_errlist
16636   ;
16637   return 0;
16638 }
16639 _ACEOF
16640 rm -f conftest.$ac_objext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16642   (eval $ac_compile) 2>conftest.er1
16643   ac_status=$?
16644   grep -v '^ *+' conftest.er1 >conftest.err
16645   rm -f conftest.er1
16646   cat conftest.err >&5
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); } &&
16649          { ac_try='test -z "$ac_c_werror_flag"
16650                          || test ! -s conftest.err'
16651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652   (eval $ac_try) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; } &&
16656          { ac_try='test -s conftest.$ac_objext'
16657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658   (eval $ac_try) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662   ol_cv_dcl_sys_errlist=yes
16663         ol_cv_have_sys_errlist=yes
16664 else
16665   echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16667
16668 ol_cv_dcl_sys_errlist=no
16669 fi
16670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16671 fi
16672 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16673 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16674 #
16675 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16676 if test $ol_cv_dcl_sys_errlist = no ; then
16677
16678 cat >>confdefs.h <<\_ACEOF
16679 #define DECL_SYS_ERRLIST 1
16680 _ACEOF
16681
16682
16683         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16684 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16685 if test "${ol_cv_have_sys_errlist+set}" = set; then
16686   echo $ECHO_N "(cached) $ECHO_C" >&6
16687 else
16688
16689                 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h.  */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h.  */
16695 #include <errno.h>
16696 int
16697 main ()
16698 {
16699 char *c = (char *) *sys_errlist
16700   ;
16701   return 0;
16702 }
16703 _ACEOF
16704 rm -f conftest.$ac_objext conftest$ac_exeext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16706   (eval $ac_link) 2>conftest.er1
16707   ac_status=$?
16708   grep -v '^ *+' conftest.er1 >conftest.err
16709   rm -f conftest.er1
16710   cat conftest.err >&5
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); } &&
16713          { ac_try='test -z "$ac_c_werror_flag"
16714                          || test ! -s conftest.err'
16715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716   (eval $ac_try) 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); }; } &&
16720          { ac_try='test -s conftest$ac_exeext'
16721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722   (eval $ac_try) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; }; then
16726   ol_cv_have_sys_errlist=yes
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ol_cv_have_sys_errlist=no
16732 fi
16733 rm -f conftest.err conftest.$ac_objext \
16734       conftest$ac_exeext conftest.$ac_ext
16735 fi
16736 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16737 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16738 fi
16739 if test $ol_cv_have_sys_errlist = yes ; then
16740
16741 cat >>confdefs.h <<\_ACEOF
16742 #define HAVE_SYS_ERRLIST 1
16743 _ACEOF
16744
16745 fi
16746
16747 fi
16748
16749
16750
16751 for ac_header in regex.h
16752 do
16753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16754 echo "$as_me:$LINENO: checking for $ac_header" >&5
16755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16757   echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759   cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765 $ac_includes_default
16766 #ifdef HAVE_SYS_TYPES_H
16767 #include <sys/types.h>
16768 #endif
16769
16770
16771 #include <$ac_header>
16772 _ACEOF
16773 rm -f conftest.$ac_objext
16774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16775   (eval $ac_compile) 2>conftest.er1
16776   ac_status=$?
16777   grep -v '^ *+' conftest.er1 >conftest.err
16778   rm -f conftest.er1
16779   cat conftest.err >&5
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); } &&
16782          { ac_try='test -z "$ac_c_werror_flag"
16783                          || test ! -s conftest.err'
16784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785   (eval $ac_try) 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); }; } &&
16789          { ac_try='test -s conftest.$ac_objext'
16790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791   (eval $ac_try) 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; }; then
16795   eval "$as_ac_Header=yes"
16796 else
16797   echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800 eval "$as_ac_Header=no"
16801 fi
16802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16803 fi
16804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16807   cat >>confdefs.h <<_ACEOF
16808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16809 _ACEOF
16810
16811 fi
16812
16813 done
16814
16815
16816 if test "$ac_cv_header_regex_h" != yes ; then
16817         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16818 echo "$as_me: error: POSIX regex.h required." >&2;}
16819    { (exit 1); exit 1; }; }
16820 fi
16821 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16822 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16823 if test "${ac_cv_search_regfree+set}" = set; then
16824   echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826   ac_func_search_save_LIBS=$LIBS
16827 ac_cv_search_regfree=no
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h.  */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h.  */
16834
16835 /* Override any gcc2 internal prototype to avoid an error.  */
16836 #ifdef __cplusplus
16837 extern "C"
16838 #endif
16839 /* We use char because int might match the return type of a gcc2
16840    builtin and then its argument prototype would still apply.  */
16841 char regfree ();
16842 int
16843 main ()
16844 {
16845 regfree ();
16846   ;
16847   return 0;
16848 }
16849 _ACEOF
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852   (eval $ac_link) 2>conftest.er1
16853   ac_status=$?
16854   grep -v '^ *+' conftest.er1 >conftest.err
16855   rm -f conftest.er1
16856   cat conftest.err >&5
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); } &&
16859          { ac_try='test -z "$ac_c_werror_flag"
16860                          || test ! -s conftest.err'
16861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862   (eval $ac_try) 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); }; } &&
16866          { ac_try='test -s conftest$ac_exeext'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; }; then
16872   ac_cv_search_regfree="none required"
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 fi
16878 rm -f conftest.err conftest.$ac_objext \
16879       conftest$ac_exeext conftest.$ac_ext
16880 if test "$ac_cv_search_regfree" = no; then
16881   for ac_lib in regex gnuregex; do
16882     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16883     cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h.  */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h.  */
16889
16890 /* Override any gcc2 internal prototype to avoid an error.  */
16891 #ifdef __cplusplus
16892 extern "C"
16893 #endif
16894 /* We use char because int might match the return type of a gcc2
16895    builtin and then its argument prototype would still apply.  */
16896 char regfree ();
16897 int
16898 main ()
16899 {
16900 regfree ();
16901   ;
16902   return 0;
16903 }
16904 _ACEOF
16905 rm -f conftest.$ac_objext conftest$ac_exeext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907   (eval $ac_link) 2>conftest.er1
16908   ac_status=$?
16909   grep -v '^ *+' conftest.er1 >conftest.err
16910   rm -f conftest.er1
16911   cat conftest.err >&5
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } &&
16914          { ac_try='test -z "$ac_c_werror_flag"
16915                          || test ! -s conftest.err'
16916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917   (eval $ac_try) 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; } &&
16921          { ac_try='test -s conftest$ac_exeext'
16922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923   (eval $ac_try) 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; }; then
16927   ac_cv_search_regfree="-l$ac_lib"
16928 break
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 fi
16934 rm -f conftest.err conftest.$ac_objext \
16935       conftest$ac_exeext conftest.$ac_ext
16936   done
16937 fi
16938 LIBS=$ac_func_search_save_LIBS
16939 fi
16940 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16941 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16942 if test "$ac_cv_search_regfree" != no; then
16943   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16944   :
16945 else
16946   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16947 echo "$as_me: error: POSIX regex required." >&2;}
16948    { (exit 1); exit 1; }; }
16949 fi
16950
16951
16952
16953 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16954 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16955 if test "${ol_cv_c_posix_regex+set}" = set; then
16956   echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958
16959         if test "$cross_compiling" = yes; then
16960   ol_cv_c_posix_regex=cross
16961 else
16962   cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h.  */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h.  */
16968
16969 #include <sys/types.h>
16970 #include <regex.h>
16971 static char *pattern, *string;
16972 main()
16973 {
16974         int rc;
16975         regex_t re;
16976
16977         pattern = "^A";
16978
16979         if(regcomp(&re, pattern, 0)) {
16980                 return -1;
16981         }
16982
16983         string = "ALL MATCH";
16984
16985         rc = regexec(&re, string, 0, (void*)0, 0);
16986
16987         regfree(&re);
16988
16989         return rc;
16990 }
16991 _ACEOF
16992 rm -f conftest$ac_exeext
16993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16994   (eval $ac_link) 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999   (eval $ac_try) 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); }; }; then
17003   ol_cv_c_posix_regex=yes
17004 else
17005   echo "$as_me: program exited with status $ac_status" >&5
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009 ( exit $ac_status )
17010 ol_cv_c_posix_regex=no
17011 fi
17012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17013 fi
17014 fi
17015 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17016 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17017
17018 if test "$ol_cv_c_posix_regex" = no ; then
17019         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17020 echo "$as_me: error: broken POSIX regex!" >&2;}
17021    { (exit 1); exit 1; }; }
17022 fi
17023
17024
17025 have_uuid=no
17026
17027 for ac_header in sys/uuid.h
17028 do
17029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17031   echo "$as_me:$LINENO: checking for $ac_header" >&5
17032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17034   echo $ECHO_N "(cached) $ECHO_C" >&6
17035 fi
17036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17038 else
17039   # Is the header compilable?
17040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h.  */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h.  */
17048 $ac_includes_default
17049 #include <$ac_header>
17050 _ACEOF
17051 rm -f conftest.$ac_objext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053   (eval $ac_compile) 2>conftest.er1
17054   ac_status=$?
17055   grep -v '^ *+' conftest.er1 >conftest.err
17056   rm -f conftest.er1
17057   cat conftest.err >&5
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } &&
17060          { ac_try='test -z "$ac_c_werror_flag"
17061                          || test ! -s conftest.err'
17062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063   (eval $ac_try) 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; } &&
17067          { ac_try='test -s conftest.$ac_objext'
17068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069   (eval $ac_try) 2>&5
17070   ac_status=$?
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); }; }; then
17073   ac_header_compiler=yes
17074 else
17075   echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 ac_header_compiler=no
17079 fi
17080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17082 echo "${ECHO_T}$ac_header_compiler" >&6
17083
17084 # Is the header present?
17085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17087 cat >conftest.$ac_ext <<_ACEOF
17088 /* confdefs.h.  */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h.  */
17093 #include <$ac_header>
17094 _ACEOF
17095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } >/dev/null; then
17103   if test -s conftest.err; then
17104     ac_cpp_err=$ac_c_preproc_warn_flag
17105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17106   else
17107     ac_cpp_err=
17108   fi
17109 else
17110   ac_cpp_err=yes
17111 fi
17112 if test -z "$ac_cpp_err"; then
17113   ac_header_preproc=yes
17114 else
17115   echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118   ac_header_preproc=no
17119 fi
17120 rm -f conftest.err conftest.$ac_ext
17121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17122 echo "${ECHO_T}$ac_header_preproc" >&6
17123
17124 # So?  What about this header?
17125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17126   yes:no: )
17127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17131     ac_header_preproc=yes
17132     ;;
17133   no:yes:* )
17134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17146     (
17147       cat <<\_ASBOX
17148 ## --------------------------------------------- ##
17149 ## Report this to <http://www.openldap.org/its/> ##
17150 ## --------------------------------------------- ##
17151 _ASBOX
17152     ) |
17153       sed "s/^/$as_me: WARNING:     /" >&2
17154     ;;
17155 esac
17156 echo "$as_me:$LINENO: checking for $ac_header" >&5
17157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17159   echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161   eval "$as_ac_Header=\$ac_header_preproc"
17162 fi
17163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17165
17166 fi
17167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17168   cat >>confdefs.h <<_ACEOF
17169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17170 _ACEOF
17171
17172 fi
17173
17174 done
17175
17176 if test $ac_cv_header_sys_uuid_h = yes ; then
17177         save_LIBS="$LIBS"
17178         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17179 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17180 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17181   echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183   ac_func_search_save_LIBS=$LIBS
17184 ac_cv_search_uuid_to_str=no
17185 cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h.  */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h.  */
17191
17192 /* Override any gcc2 internal prototype to avoid an error.  */
17193 #ifdef __cplusplus
17194 extern "C"
17195 #endif
17196 /* We use char because int might match the return type of a gcc2
17197    builtin and then its argument prototype would still apply.  */
17198 char uuid_to_str ();
17199 int
17200 main ()
17201 {
17202 uuid_to_str ();
17203   ;
17204   return 0;
17205 }
17206 _ACEOF
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209   (eval $ac_link) 2>conftest.er1
17210   ac_status=$?
17211   grep -v '^ *+' conftest.er1 >conftest.err
17212   rm -f conftest.er1
17213   cat conftest.err >&5
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); } &&
17216          { ac_try='test -z "$ac_c_werror_flag"
17217                          || test ! -s conftest.err'
17218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219   (eval $ac_try) 2>&5
17220   ac_status=$?
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); }; } &&
17223          { ac_try='test -s conftest$ac_exeext'
17224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225   (eval $ac_try) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); }; }; then
17229   ac_cv_search_uuid_to_str="none required"
17230 else
17231   echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17233
17234 fi
17235 rm -f conftest.err conftest.$ac_objext \
17236       conftest$ac_exeext conftest.$ac_ext
17237 if test "$ac_cv_search_uuid_to_str" = no; then
17238   for ac_lib in uuid; do
17239     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17240     cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h.  */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h.  */
17246
17247 /* Override any gcc2 internal prototype to avoid an error.  */
17248 #ifdef __cplusplus
17249 extern "C"
17250 #endif
17251 /* We use char because int might match the return type of a gcc2
17252    builtin and then its argument prototype would still apply.  */
17253 char uuid_to_str ();
17254 int
17255 main ()
17256 {
17257 uuid_to_str ();
17258   ;
17259   return 0;
17260 }
17261 _ACEOF
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17264   (eval $ac_link) 2>conftest.er1
17265   ac_status=$?
17266   grep -v '^ *+' conftest.er1 >conftest.err
17267   rm -f conftest.er1
17268   cat conftest.err >&5
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); } &&
17271          { ac_try='test -z "$ac_c_werror_flag"
17272                          || test ! -s conftest.err'
17273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274   (eval $ac_try) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; } &&
17278          { ac_try='test -s conftest$ac_exeext'
17279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280   (eval $ac_try) 2>&5
17281   ac_status=$?
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); }; }; then
17284   ac_cv_search_uuid_to_str="-l$ac_lib"
17285 break
17286 else
17287   echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290 fi
17291 rm -f conftest.err conftest.$ac_objext \
17292       conftest$ac_exeext conftest.$ac_ext
17293   done
17294 fi
17295 LIBS=$ac_func_search_save_LIBS
17296 fi
17297 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17298 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17299 if test "$ac_cv_search_uuid_to_str" != no; then
17300   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17301   have_uuid=yes
17302 else
17303   :
17304 fi
17305
17306         LIBS="$save_LIBS"
17307
17308         if test have_uuid = yes ; then
17309
17310 cat >>confdefs.h <<\_ACEOF
17311 #define HAVE_UUID_TO_STR 1
17312 _ACEOF
17313
17314
17315                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17316                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17317         fi
17318 fi
17319
17320 if test $have_uuid = no ; then
17321         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17322 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17323         save_LIBS="$LIBS"
17324         LIBS="$LIBS -lrpcrt4"
17325         cat >conftest.$ac_ext <<_ACEOF
17326 /* confdefs.h.  */
17327 _ACEOF
17328 cat confdefs.h >>conftest.$ac_ext
17329 cat >>conftest.$ac_ext <<_ACEOF
17330 /* end confdefs.h.  */
17331
17332                 int __stdcall UuidCreate(void *);
17333                 int __stdcall UuidToStringA(void *,void **);
17334
17335 int
17336 main ()
17337 {
17338
17339                 UuidCreate(0);
17340                 UuidToStringA(0,0);
17341
17342   ;
17343   return 0;
17344 }
17345 _ACEOF
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17348   (eval $ac_link) 2>conftest.er1
17349   ac_status=$?
17350   grep -v '^ *+' conftest.er1 >conftest.err
17351   rm -f conftest.er1
17352   cat conftest.err >&5
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); } &&
17355          { ac_try='test -z "$ac_c_werror_flag"
17356                          || test ! -s conftest.err'
17357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358   (eval $ac_try) 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); }; } &&
17362          { ac_try='test -s conftest$ac_exeext'
17363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364   (eval $ac_try) 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; }; then
17368   need_rpcrt=yes
17369 else
17370   echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17372
17373 need_rpcrt=no
17374 fi
17375 rm -f conftest.err conftest.$ac_objext \
17376       conftest$ac_exeext conftest.$ac_ext
17377         if test $need_rpcrt = yes; then
17378                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17379         fi
17380         LIBS="$save_LIBS"
17381         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17382 echo "${ECHO_T}$need_rpcrt" >&6
17383 fi
17384
17385 ol_cv_lib_resolver=no
17386 if test $ol_cv_lib_resolver = no ; then
17387         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17388 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17389 if test "${ol_cv_resolver_none+set}" = set; then
17390   echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392
17393         ol_RESOLVER_LIB=
17394         ol_LIBS=$LIBS
17395         LIBS="$ol_RESOLVER_LIB $LIBS"
17396
17397         cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403
17404 #ifdef HAVE_SYS_TYPES_H
17405 #       include <sys/types.h>
17406 #endif
17407 #include <netinet/in.h>
17408 #ifdef HAVE_ARPA_NAMESER_H
17409 #       include <arpa/nameser.h>
17410 #endif
17411 #ifdef HAVE_RESOLV_H
17412 #       include <resolv.h>
17413 #endif
17414
17415 int
17416 main ()
17417 {
17418 {
17419         int len, status;
17420         char *request = NULL;
17421         unsigned char reply[64*1024];
17422         unsigned char host[64*1024];
17423         unsigned char *p;
17424
17425 #ifdef NS_HFIXEDSZ
17426         /* Bind 8/9 interface */
17427         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17428 #else
17429         /* Bind 4 interface */
17430 # ifndef T_SRV
17431 #  define T_SRV 33
17432 # endif
17433         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17434 #endif
17435         p = reply;
17436 #ifdef NS_HFIXEDSZ
17437         /* Bind 8/9 interface */
17438         p += NS_HFIXEDSZ;
17439 #elif defined(HFIXEDSZ)
17440         /* Bind 4 interface w/ HFIXEDSZ */
17441         p += HFIXEDSZ;
17442 #else
17443         /* Bind 4 interface w/o HFIXEDSZ */
17444         p += sizeof(HEADER);
17445 #endif
17446         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17447 }
17448   ;
17449   return 0;
17450 }
17451 _ACEOF
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454   (eval $ac_link) 2>conftest.er1
17455   ac_status=$?
17456   grep -v '^ *+' conftest.er1 >conftest.err
17457   rm -f conftest.er1
17458   cat conftest.err >&5
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); } &&
17461          { ac_try='test -z "$ac_c_werror_flag"
17462                          || test ! -s conftest.err'
17463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464   (eval $ac_try) 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; } &&
17468          { ac_try='test -s conftest$ac_exeext'
17469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470   (eval $ac_try) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); }; }; then
17474   ol_cv_resolver_none=yes
17475 else
17476   echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17478
17479 ol_cv_resolver_none=no
17480 fi
17481 rm -f conftest.err conftest.$ac_objext \
17482       conftest$ac_exeext conftest.$ac_ext
17483
17484         LIBS="$ol_LIBS"
17485
17486 fi
17487 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17488 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17489
17490         if test $ol_cv_resolver_none = yes ; then
17491                 ol_cv_lib_resolver=yes
17492         fi
17493 fi
17494
17495 if test $ol_cv_lib_resolver = no ; then
17496         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17497 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17498 if test "${ol_cv_resolver_resolv+set}" = set; then
17499   echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501
17502         ol_RESOLVER_LIB=-lresolv
17503         ol_LIBS=$LIBS
17504         LIBS="$ol_RESOLVER_LIB $LIBS"
17505
17506         cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512
17513 #ifdef HAVE_SYS_TYPES_H
17514 #       include <sys/types.h>
17515 #endif
17516 #include <netinet/in.h>
17517 #ifdef HAVE_ARPA_NAMESER_H
17518 #       include <arpa/nameser.h>
17519 #endif
17520 #ifdef HAVE_RESOLV_H
17521 #       include <resolv.h>
17522 #endif
17523
17524 int
17525 main ()
17526 {
17527 {
17528         int len, status;
17529         char *request = NULL;
17530         unsigned char reply[64*1024];
17531         unsigned char host[64*1024];
17532         unsigned char *p;
17533
17534 #ifdef NS_HFIXEDSZ
17535         /* Bind 8/9 interface */
17536         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17537 #else
17538         /* Bind 4 interface */
17539 # ifndef T_SRV
17540 #  define T_SRV 33
17541 # endif
17542         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17543 #endif
17544         p = reply;
17545 #ifdef NS_HFIXEDSZ
17546         /* Bind 8/9 interface */
17547         p += NS_HFIXEDSZ;
17548 #elif defined(HFIXEDSZ)
17549         /* Bind 4 interface w/ HFIXEDSZ */
17550         p += HFIXEDSZ;
17551 #else
17552         /* Bind 4 interface w/o HFIXEDSZ */
17553         p += sizeof(HEADER);
17554 #endif
17555         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17556 }
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563   (eval $ac_link) 2>conftest.er1
17564   ac_status=$?
17565   grep -v '^ *+' conftest.er1 >conftest.err
17566   rm -f conftest.er1
17567   cat conftest.err >&5
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); } &&
17570          { ac_try='test -z "$ac_c_werror_flag"
17571                          || test ! -s conftest.err'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; } &&
17577          { ac_try='test -s conftest$ac_exeext'
17578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579   (eval $ac_try) 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; }; then
17583   ol_cv_resolver_resolv=yes
17584 else
17585   echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588 ol_cv_resolver_resolv=no
17589 fi
17590 rm -f conftest.err conftest.$ac_objext \
17591       conftest$ac_exeext conftest.$ac_ext
17592
17593         LIBS="$ol_LIBS"
17594
17595 fi
17596 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17597 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17598
17599         if test $ol_cv_resolver_resolv = yes ; then
17600                 ol_cv_lib_resolver=-lresolv
17601         fi
17602 fi
17603
17604 if test $ol_cv_lib_resolver = no ; then
17605         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17606 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17607 if test "${ol_cv_resolver_bind+set}" = set; then
17608   echo $ECHO_N "(cached) $ECHO_C" >&6
17609 else
17610
17611         ol_RESOLVER_LIB=-lbind
17612         ol_LIBS=$LIBS
17613         LIBS="$ol_RESOLVER_LIB $LIBS"
17614
17615         cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h.  */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h.  */
17621
17622 #ifdef HAVE_SYS_TYPES_H
17623 #       include <sys/types.h>
17624 #endif
17625 #include <netinet/in.h>
17626 #ifdef HAVE_ARPA_NAMESER_H
17627 #       include <arpa/nameser.h>
17628 #endif
17629 #ifdef HAVE_RESOLV_H
17630 #       include <resolv.h>
17631 #endif
17632
17633 int
17634 main ()
17635 {
17636 {
17637         int len, status;
17638         char *request = NULL;
17639         unsigned char reply[64*1024];
17640         unsigned char host[64*1024];
17641         unsigned char *p;
17642
17643 #ifdef NS_HFIXEDSZ
17644         /* Bind 8/9 interface */
17645         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17646 #else
17647         /* Bind 4 interface */
17648 # ifndef T_SRV
17649 #  define T_SRV 33
17650 # endif
17651         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17652 #endif
17653         p = reply;
17654 #ifdef NS_HFIXEDSZ
17655         /* Bind 8/9 interface */
17656         p += NS_HFIXEDSZ;
17657 #elif defined(HFIXEDSZ)
17658         /* Bind 4 interface w/ HFIXEDSZ */
17659         p += HFIXEDSZ;
17660 #else
17661         /* Bind 4 interface w/o HFIXEDSZ */
17662         p += sizeof(HEADER);
17663 #endif
17664         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17665 }
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17672   (eval $ac_link) 2>conftest.er1
17673   ac_status=$?
17674   grep -v '^ *+' conftest.er1 >conftest.err
17675   rm -f conftest.er1
17676   cat conftest.err >&5
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } &&
17679          { ac_try='test -z "$ac_c_werror_flag"
17680                          || test ! -s conftest.err'
17681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682   (eval $ac_try) 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; } &&
17686          { ac_try='test -s conftest$ac_exeext'
17687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688   (eval $ac_try) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; }; then
17692   ol_cv_resolver_bind=yes
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697 ol_cv_resolver_bind=no
17698 fi
17699 rm -f conftest.err conftest.$ac_objext \
17700       conftest$ac_exeext conftest.$ac_ext
17701
17702         LIBS="$ol_LIBS"
17703
17704 fi
17705 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17706 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17707
17708         if test $ol_cv_resolver_bind = yes ; then
17709                 ol_cv_lib_resolver=-lbind
17710         fi
17711 fi
17712
17713
17714
17715 ol_link_dnssrv=no
17716 if test "$ol_cv_lib_resolver" != no ; then
17717
17718 cat >>confdefs.h <<\_ACEOF
17719 #define HAVE_RES_QUERY 1
17720 _ACEOF
17721
17722
17723         if test "$ol_enable_dnssrv" != no ; then
17724                 ol_link_dnssrv=yes
17725         fi
17726
17727         if test "$ol_cv_lib_resolver" != yes ; then
17728                 LIBS="$ol_cv_lib_resolver $LIBS"
17729         fi
17730 fi
17731
17732 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17733         if test "$ol_link_dnssrv" = no ; then
17734                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17735 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17736    { (exit 1); exit 1; }; }
17737         fi
17738 else
17739         ol_enable_dnssrv=no
17740 fi
17741
17742
17743 for ac_func in hstrerror
17744 do
17745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17746 echo "$as_me:$LINENO: checking for $ac_func" >&5
17747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17748 if eval "test \"\${$as_ac_var+set}\" = set"; then
17749   echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17751   cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h.  */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h.  */
17757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17759 #define $ac_func innocuous_$ac_func
17760
17761 /* System header to define __stub macros and hopefully few prototypes,
17762     which can conflict with char $ac_func (); below.
17763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17764     <limits.h> exists even on freestanding compilers.  */
17765
17766 #ifdef __STDC__
17767 # include <limits.h>
17768 #else
17769 # include <assert.h>
17770 #endif
17771
17772 #undef $ac_func
17773
17774 /* Override any gcc2 internal prototype to avoid an error.  */
17775 #ifdef __cplusplus
17776 extern "C"
17777 {
17778 #endif
17779 /* We use char because int might match the return type of a gcc2
17780    builtin and then its argument prototype would still apply.  */
17781 char $ac_func ();
17782 /* The GNU C library defines this for functions which it implements
17783     to always fail with ENOSYS.  Some functions are actually named
17784     something starting with __ and the normal name is an alias.  */
17785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17786 choke me
17787 #else
17788 char (*f) () = $ac_func;
17789 #endif
17790 #ifdef __cplusplus
17791 }
17792 #endif
17793
17794 int
17795 main ()
17796 {
17797 return f != $ac_func;
17798   ;
17799   return 0;
17800 }
17801 _ACEOF
17802 rm -f conftest.$ac_objext conftest$ac_exeext
17803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17804   (eval $ac_link) 2>conftest.er1
17805   ac_status=$?
17806   grep -v '^ *+' conftest.er1 >conftest.err
17807   rm -f conftest.er1
17808   cat conftest.err >&5
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } &&
17811          { ac_try='test -z "$ac_c_werror_flag"
17812                          || test ! -s conftest.err'
17813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814   (eval $ac_try) 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; } &&
17818          { ac_try='test -s conftest$ac_exeext'
17819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820   (eval $ac_try) 2>&5
17821   ac_status=$?
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); }; }; then
17824   eval "$as_ac_var=yes"
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829 eval "$as_ac_var=no"
17830 fi
17831 rm -f conftest.err conftest.$ac_objext \
17832       conftest$ac_exeext conftest.$ac_ext
17833 fi
17834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17836 if test `eval echo '${'$as_ac_var'}'` = yes; then
17837   cat >>confdefs.h <<_ACEOF
17838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17839 _ACEOF
17840
17841 fi
17842 done
17843
17844
17845
17846
17847
17848
17849 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17850 do
17851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17852 echo "$as_me:$LINENO: checking for $ac_func" >&5
17853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17854 if eval "test \"\${$as_ac_var+set}\" = set"; then
17855   echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857   cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h.  */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h.  */
17863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17865 #define $ac_func innocuous_$ac_func
17866
17867 /* System header to define __stub macros and hopefully few prototypes,
17868     which can conflict with char $ac_func (); below.
17869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17870     <limits.h> exists even on freestanding compilers.  */
17871
17872 #ifdef __STDC__
17873 # include <limits.h>
17874 #else
17875 # include <assert.h>
17876 #endif
17877
17878 #undef $ac_func
17879
17880 /* Override any gcc2 internal prototype to avoid an error.  */
17881 #ifdef __cplusplus
17882 extern "C"
17883 {
17884 #endif
17885 /* We use char because int might match the return type of a gcc2
17886    builtin and then its argument prototype would still apply.  */
17887 char $ac_func ();
17888 /* The GNU C library defines this for functions which it implements
17889     to always fail with ENOSYS.  Some functions are actually named
17890     something starting with __ and the normal name is an alias.  */
17891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17892 choke me
17893 #else
17894 char (*f) () = $ac_func;
17895 #endif
17896 #ifdef __cplusplus
17897 }
17898 #endif
17899
17900 int
17901 main ()
17902 {
17903 return f != $ac_func;
17904   ;
17905   return 0;
17906 }
17907 _ACEOF
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910   (eval $ac_link) 2>conftest.er1
17911   ac_status=$?
17912   grep -v '^ *+' conftest.er1 >conftest.err
17913   rm -f conftest.er1
17914   cat conftest.err >&5
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } &&
17917          { ac_try='test -z "$ac_c_werror_flag"
17918                          || test ! -s conftest.err'
17919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920   (eval $ac_try) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; } &&
17924          { ac_try='test -s conftest$ac_exeext'
17925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926   (eval $ac_try) 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); }; }; then
17930   eval "$as_ac_var=yes"
17931 else
17932   echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 eval "$as_ac_var=no"
17936 fi
17937 rm -f conftest.err conftest.$ac_objext \
17938       conftest$ac_exeext conftest.$ac_ext
17939 fi
17940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17942 if test `eval echo '${'$as_ac_var'}'` = yes; then
17943   cat >>confdefs.h <<_ACEOF
17944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17945 _ACEOF
17946
17947 fi
17948 done
17949
17950
17951 ol_link_ipv6=no
17952 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17953         if test $ol_enable_ipv6 = yes ; then
17954                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17955 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17956    { (exit 1); exit 1; }; }
17957         fi
17958 elif test $ol_enable_ipv6 != no ; then
17959         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17960 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17961 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964
17965                 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971
17972 #                       include <netinet/in.h>
17973 #                       ifdef INET6_ADDRSTRLEN
17974                                 __has_inet6_addrstrlen__;
17975 #                       endif
17976
17977 _ACEOF
17978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17979   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17980   ol_cv_inet6_addrstrlen=yes
17981 else
17982   ol_cv_inet6_addrstrlen=no
17983 fi
17984 rm -f conftest*
17985
17986 fi
17987 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17988 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17989
17990
17991         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17992 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17993 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17994   echo $ECHO_N "(cached) $ECHO_C" >&6
17995 else
17996
17997                 cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h.  */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h.  */
18003
18004 #include <sys/types.h>
18005 #include <sys/socket.h>
18006
18007 int
18008 main ()
18009 {
18010
18011                         struct sockaddr_storage ss;
18012
18013   ;
18014   return 0;
18015 }
18016 _ACEOF
18017 rm -f conftest.$ac_objext
18018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18019   (eval $ac_compile) 2>conftest.er1
18020   ac_status=$?
18021   grep -v '^ *+' conftest.er1 >conftest.err
18022   rm -f conftest.er1
18023   cat conftest.err >&5
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); } &&
18026          { ac_try='test -z "$ac_c_werror_flag"
18027                          || test ! -s conftest.err'
18028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029   (eval $ac_try) 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; } &&
18033          { ac_try='test -s conftest.$ac_objext'
18034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035   (eval $ac_try) 2>&5
18036   ac_status=$?
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); }; }; then
18039   ol_cv_struct_sockaddr_storage=yes
18040 else
18041   echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18043
18044 ol_cv_struct_sockaddr_storage=no
18045 fi
18046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18047 fi
18048 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18049 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18050
18051         if test $ol_cv_inet6_addrstrlen = yes &&
18052            test $ol_cv_struct_sockaddr_storage = yes ; then
18053                 ol_link_ipv6=yes
18054         elif test $ol_enable_ipv6 = yes &&
18055              test $ol_cv_inet6_addrstrlen = no ; then
18056                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18057 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18058    { (exit 1); exit 1; }; }
18059         elif test $ol_enable_ipv6 = yes &&
18060              test $ol_cv_struct_sockaddr_storage = no ; then
18061                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18062 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18063    { (exit 1); exit 1; }; }
18064         fi
18065 fi
18066
18067 if test $ol_enable_local != no ; then
18068
18069 for ac_header in sys/un.h
18070 do
18071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18073   echo "$as_me:$LINENO: checking for $ac_header" >&5
18074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18076   echo $ECHO_N "(cached) $ECHO_C" >&6
18077 fi
18078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18080 else
18081   # Is the header compilable?
18082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18084 cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h.  */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h.  */
18090 $ac_includes_default
18091 #include <$ac_header>
18092 _ACEOF
18093 rm -f conftest.$ac_objext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18095   (eval $ac_compile) 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } &&
18102          { ac_try='test -z "$ac_c_werror_flag"
18103                          || test ! -s conftest.err'
18104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105   (eval $ac_try) 2>&5
18106   ac_status=$?
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); }; } &&
18109          { ac_try='test -s conftest.$ac_objext'
18110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111   (eval $ac_try) 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; }; then
18115   ac_header_compiler=yes
18116 else
18117   echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18119
18120 ac_header_compiler=no
18121 fi
18122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18124 echo "${ECHO_T}$ac_header_compiler" >&6
18125
18126 # Is the header present?
18127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135 #include <$ac_header>
18136 _ACEOF
18137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18139   ac_status=$?
18140   grep -v '^ *+' conftest.er1 >conftest.err
18141   rm -f conftest.er1
18142   cat conftest.err >&5
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); } >/dev/null; then
18145   if test -s conftest.err; then
18146     ac_cpp_err=$ac_c_preproc_warn_flag
18147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18148   else
18149     ac_cpp_err=
18150   fi
18151 else
18152   ac_cpp_err=yes
18153 fi
18154 if test -z "$ac_cpp_err"; then
18155   ac_header_preproc=yes
18156 else
18157   echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160   ac_header_preproc=no
18161 fi
18162 rm -f conftest.err conftest.$ac_ext
18163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18164 echo "${ECHO_T}$ac_header_preproc" >&6
18165
18166 # So?  What about this header?
18167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18168   yes:no: )
18169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18173     ac_header_preproc=yes
18174     ;;
18175   no:yes:* )
18176     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18178     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18179 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18180     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18182     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18183 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18186     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18188     (
18189       cat <<\_ASBOX
18190 ## --------------------------------------------- ##
18191 ## Report this to <http://www.openldap.org/its/> ##
18192 ## --------------------------------------------- ##
18193 _ASBOX
18194     ) |
18195       sed "s/^/$as_me: WARNING:     /" >&2
18196     ;;
18197 esac
18198 echo "$as_me:$LINENO: checking for $ac_header" >&5
18199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18201   echo $ECHO_N "(cached) $ECHO_C" >&6
18202 else
18203   eval "$as_ac_Header=\$ac_header_preproc"
18204 fi
18205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18207
18208 fi
18209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18210   cat >>confdefs.h <<_ACEOF
18211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18212 _ACEOF
18213
18214 fi
18215
18216 done
18217
18218
18219         if test $ol_enable_local = auto ; then
18220                 ol_enable_local=$ac_cv_header_sys_un_h
18221         elif test $ac_cv_header_sys_un_h = no ; then
18222                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18223 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18224    { (exit 1); exit 1; }; }
18225         fi
18226 fi
18227
18228 ol_link_kbind=no
18229 ol_link_krb5=no
18230 ol_link_krb4=no
18231
18232 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18233
18234
18235 for ac_header in krb5.h
18236 do
18237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18239   echo "$as_me:$LINENO: checking for $ac_header" >&5
18240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18242   echo $ECHO_N "(cached) $ECHO_C" >&6
18243 fi
18244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18246 else
18247   # Is the header compilable?
18248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h.  */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h.  */
18256 $ac_includes_default
18257 #include <$ac_header>
18258 _ACEOF
18259 rm -f conftest.$ac_objext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18261   (eval $ac_compile) 2>conftest.er1
18262   ac_status=$?
18263   grep -v '^ *+' conftest.er1 >conftest.err
18264   rm -f conftest.er1
18265   cat conftest.err >&5
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); } &&
18268          { ac_try='test -z "$ac_c_werror_flag"
18269                          || test ! -s conftest.err'
18270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271   (eval $ac_try) 2>&5
18272   ac_status=$?
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); }; } &&
18275          { ac_try='test -s conftest.$ac_objext'
18276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277   (eval $ac_try) 2>&5
18278   ac_status=$?
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); }; }; then
18281   ac_header_compiler=yes
18282 else
18283   echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18285
18286 ac_header_compiler=no
18287 fi
18288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18290 echo "${ECHO_T}$ac_header_compiler" >&6
18291
18292 # Is the header present?
18293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18295 cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h.  */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h.  */
18301 #include <$ac_header>
18302 _ACEOF
18303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18305   ac_status=$?
18306   grep -v '^ *+' conftest.er1 >conftest.err
18307   rm -f conftest.er1
18308   cat conftest.err >&5
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); } >/dev/null; then
18311   if test -s conftest.err; then
18312     ac_cpp_err=$ac_c_preproc_warn_flag
18313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18314   else
18315     ac_cpp_err=
18316   fi
18317 else
18318   ac_cpp_err=yes
18319 fi
18320 if test -z "$ac_cpp_err"; then
18321   ac_header_preproc=yes
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326   ac_header_preproc=no
18327 fi
18328 rm -f conftest.err conftest.$ac_ext
18329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18330 echo "${ECHO_T}$ac_header_preproc" >&6
18331
18332 # So?  What about this header?
18333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18334   yes:no: )
18335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18339     ac_header_preproc=yes
18340     ;;
18341   no:yes:* )
18342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18354     (
18355       cat <<\_ASBOX
18356 ## --------------------------------------------- ##
18357 ## Report this to <http://www.openldap.org/its/> ##
18358 ## --------------------------------------------- ##
18359 _ASBOX
18360     ) |
18361       sed "s/^/$as_me: WARNING:     /" >&2
18362     ;;
18363 esac
18364 echo "$as_me:$LINENO: checking for $ac_header" >&5
18365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   eval "$as_ac_Header=\$ac_header_preproc"
18370 fi
18371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18373
18374 fi
18375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18376   cat >>confdefs.h <<_ACEOF
18377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18378 _ACEOF
18379
18380 fi
18381
18382 done
18383
18384
18385         if test $ac_cv_header_krb5_h = yes ; then
18386
18387 for ac_header in heim_err.h
18388 do
18389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18391   echo "$as_me:$LINENO: checking for $ac_header" >&5
18392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18394   echo $ECHO_N "(cached) $ECHO_C" >&6
18395 fi
18396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18398 else
18399   # Is the header compilable?
18400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h.  */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h.  */
18408 $ac_includes_default
18409 #include <$ac_header>
18410 _ACEOF
18411 rm -f conftest.$ac_objext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413   (eval $ac_compile) 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } &&
18420          { ac_try='test -z "$ac_c_werror_flag"
18421                          || test ! -s conftest.err'
18422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423   (eval $ac_try) 2>&5
18424   ac_status=$?
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); }; } &&
18427          { ac_try='test -s conftest.$ac_objext'
18428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429   (eval $ac_try) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; }; then
18433   ac_header_compiler=yes
18434 else
18435   echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438 ac_header_compiler=no
18439 fi
18440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18442 echo "${ECHO_T}$ac_header_compiler" >&6
18443
18444 # Is the header present?
18445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h.  */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h.  */
18453 #include <$ac_header>
18454 _ACEOF
18455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18457   ac_status=$?
18458   grep -v '^ *+' conftest.er1 >conftest.err
18459   rm -f conftest.er1
18460   cat conftest.err >&5
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } >/dev/null; then
18463   if test -s conftest.err; then
18464     ac_cpp_err=$ac_c_preproc_warn_flag
18465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18466   else
18467     ac_cpp_err=
18468   fi
18469 else
18470   ac_cpp_err=yes
18471 fi
18472 if test -z "$ac_cpp_err"; then
18473   ac_header_preproc=yes
18474 else
18475   echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478   ac_header_preproc=no
18479 fi
18480 rm -f conftest.err conftest.$ac_ext
18481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18482 echo "${ECHO_T}$ac_header_preproc" >&6
18483
18484 # So?  What about this header?
18485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18486   yes:no: )
18487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18491     ac_header_preproc=yes
18492     ;;
18493   no:yes:* )
18494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18506     (
18507       cat <<\_ASBOX
18508 ## --------------------------------------------- ##
18509 ## Report this to <http://www.openldap.org/its/> ##
18510 ## --------------------------------------------- ##
18511 _ASBOX
18512     ) |
18513       sed "s/^/$as_me: WARNING:     /" >&2
18514     ;;
18515 esac
18516 echo "$as_me:$LINENO: checking for $ac_header" >&5
18517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   eval "$as_ac_Header=\$ac_header_preproc"
18522 fi
18523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18525
18526 fi
18527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18528   cat >>confdefs.h <<_ACEOF
18529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18530 _ACEOF
18531
18532 fi
18533
18534 done
18535
18536                 if test $ac_cv_header_heim_err_h = yes ; then
18537                         krb5_impl=heimdal
18538                 else
18539                         krb5_impl=mit
18540                 fi
18541
18542                 if test $krb5_impl = mit; then
18543                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18544 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18545 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18546   echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548   ac_check_lib_save_LIBS=$LIBS
18549 LIBS="-lk5crypto  $LIBS"
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h.  */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h.  */
18556
18557
18558 int
18559 main ()
18560 {
18561 main ();
18562   ;
18563   return 0;
18564 }
18565 _ACEOF
18566 rm -f conftest.$ac_objext conftest$ac_exeext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18568   (eval $ac_link) 2>conftest.er1
18569   ac_status=$?
18570   grep -v '^ *+' conftest.er1 >conftest.err
18571   rm -f conftest.er1
18572   cat conftest.err >&5
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); } &&
18575          { ac_try='test -z "$ac_c_werror_flag"
18576                          || test ! -s conftest.err'
18577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578   (eval $ac_try) 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; } &&
18582          { ac_try='test -s conftest$ac_exeext'
18583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584   (eval $ac_try) 2>&5
18585   ac_status=$?
18586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587   (exit $ac_status); }; }; then
18588   ac_cv_lib_k5crypto_main=yes
18589 else
18590   echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18592
18593 ac_cv_lib_k5crypto_main=no
18594 fi
18595 rm -f conftest.err conftest.$ac_objext \
18596       conftest$ac_exeext conftest.$ac_ext
18597 LIBS=$ac_check_lib_save_LIBS
18598 fi
18599 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18600 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18601 if test $ac_cv_lib_k5crypto_main = yes; then
18602   krb5crypto=k5crypto
18603 else
18604   krb5crypto=crypto
18605 fi
18606
18607
18608                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18609 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18610 if test "${ac_cv_lib_krb5_main+set}" = set; then
18611   echo $ECHO_N "(cached) $ECHO_C" >&6
18612 else
18613   ac_check_lib_save_LIBS=$LIBS
18614 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18615 cat >conftest.$ac_ext <<_ACEOF
18616 /* confdefs.h.  */
18617 _ACEOF
18618 cat confdefs.h >>conftest.$ac_ext
18619 cat >>conftest.$ac_ext <<_ACEOF
18620 /* end confdefs.h.  */
18621
18622
18623 int
18624 main ()
18625 {
18626 main ();
18627   ;
18628   return 0;
18629 }
18630 _ACEOF
18631 rm -f conftest.$ac_objext conftest$ac_exeext
18632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18633   (eval $ac_link) 2>conftest.er1
18634   ac_status=$?
18635   grep -v '^ *+' conftest.er1 >conftest.err
18636   rm -f conftest.er1
18637   cat conftest.err >&5
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); } &&
18640          { ac_try='test -z "$ac_c_werror_flag"
18641                          || test ! -s conftest.err'
18642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643   (eval $ac_try) 2>&5
18644   ac_status=$?
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); }; } &&
18647          { ac_try='test -s conftest$ac_exeext'
18648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18649   (eval $ac_try) 2>&5
18650   ac_status=$?
18651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652   (exit $ac_status); }; }; then
18653   ac_cv_lib_krb5_main=yes
18654 else
18655   echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18657
18658 ac_cv_lib_krb5_main=no
18659 fi
18660 rm -f conftest.err conftest.$ac_objext \
18661       conftest$ac_exeext conftest.$ac_ext
18662 LIBS=$ac_check_lib_save_LIBS
18663 fi
18664 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18665 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18666 if test $ac_cv_lib_krb5_main = yes; then
18667   have_krb5=yes
18668                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18669 else
18670   have_krb5=no
18671 fi
18672
18673
18674                 elif test $krb5_impl = heimdal; then
18675                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18676 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18677 if test "${ac_cv_lib_des_main+set}" = set; then
18678   echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680   ac_check_lib_save_LIBS=$LIBS
18681 LIBS="-ldes  $LIBS"
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688
18689
18690 int
18691 main ()
18692 {
18693 main ();
18694   ;
18695   return 0;
18696 }
18697 _ACEOF
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18700   (eval $ac_link) 2>conftest.er1
18701   ac_status=$?
18702   grep -v '^ *+' conftest.er1 >conftest.err
18703   rm -f conftest.er1
18704   cat conftest.err >&5
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); } &&
18707          { ac_try='test -z "$ac_c_werror_flag"
18708                          || test ! -s conftest.err'
18709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710   (eval $ac_try) 2>&5
18711   ac_status=$?
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); }; } &&
18714          { ac_try='test -s conftest$ac_exeext'
18715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716   (eval $ac_try) 2>&5
18717   ac_status=$?
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); }; }; then
18720   ac_cv_lib_des_main=yes
18721 else
18722   echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18724
18725 ac_cv_lib_des_main=no
18726 fi
18727 rm -f conftest.err conftest.$ac_objext \
18728       conftest$ac_exeext conftest.$ac_ext
18729 LIBS=$ac_check_lib_save_LIBS
18730 fi
18731 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18732 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18733 if test $ac_cv_lib_des_main = yes; then
18734   krb5crypto=des
18735 else
18736   krb5crypto=crypto
18737 fi
18738
18739
18740                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18741 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18742 if test "${ac_cv_lib_krb5_main+set}" = set; then
18743   echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745   ac_check_lib_save_LIBS=$LIBS
18746 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18747 cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h.  */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h.  */
18753
18754
18755 int
18756 main ()
18757 {
18758 main ();
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext conftest$ac_exeext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18765   (eval $ac_link) 2>conftest.er1
18766   ac_status=$?
18767   grep -v '^ *+' conftest.er1 >conftest.err
18768   rm -f conftest.er1
18769   cat conftest.err >&5
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); } &&
18772          { ac_try='test -z "$ac_c_werror_flag"
18773                          || test ! -s conftest.err'
18774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775   (eval $ac_try) 2>&5
18776   ac_status=$?
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); }; } &&
18779          { ac_try='test -s conftest$ac_exeext'
18780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781   (eval $ac_try) 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); }; }; then
18785   ac_cv_lib_krb5_main=yes
18786 else
18787   echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 ac_cv_lib_krb5_main=no
18791 fi
18792 rm -f conftest.err conftest.$ac_objext \
18793       conftest$ac_exeext conftest.$ac_ext
18794 LIBS=$ac_check_lib_save_LIBS
18795 fi
18796 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18797 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18798 if test $ac_cv_lib_krb5_main = yes; then
18799   have_krb5=yes
18800                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18801 else
18802   have_krb5=no
18803 fi
18804
18805
18806
18807 cat >>confdefs.h <<\_ACEOF
18808 #define HAVE_HEIMDAL_KERBEROS 1
18809 _ACEOF
18810
18811
18812                 else
18813                         have_krb5=no
18814                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18815 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18816                 fi
18817
18818                 if test $have_krb5 = yes ; then
18819                         ol_link_krb5=yes
18820
18821
18822 cat >>confdefs.h <<\_ACEOF
18823 #define HAVE_KRB5 1
18824 _ACEOF
18825
18826
18827                         if test $ol_with_kerberos = k5only ; then
18828                                 ol_with_kerberos=found
18829                         fi
18830
18831                 elif test $ol_with_kerberos != auto ; then
18832                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18833 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18834    { (exit 1); exit 1; }; }
18835                 fi
18836
18837         fi
18838         ;;
18839 esac
18840
18841 if test $ol_link_krb5 = yes &&
18842    { test $ol_with_kerberos = yes ||
18843      test $ol_with_kerberos = auto ||
18844      test $ol_with_kerberos = k425; }; then
18845
18846
18847
18848 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18849 do
18850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18852   echo "$as_me:$LINENO: checking for $ac_header" >&5
18853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18855   echo $ECHO_N "(cached) $ECHO_C" >&6
18856 fi
18857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18859 else
18860   # Is the header compilable?
18861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18863 cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h.  */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h.  */
18869 $ac_includes_default
18870 #include <$ac_header>
18871 _ACEOF
18872 rm -f conftest.$ac_objext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18874   (eval $ac_compile) 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -z "$ac_c_werror_flag"
18882                          || test ! -s conftest.err'
18883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884   (eval $ac_try) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; } &&
18888          { ac_try='test -s conftest.$ac_objext'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   ac_header_compiler=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 ac_header_compiler=no
18900 fi
18901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18903 echo "${ECHO_T}$ac_header_compiler" >&6
18904
18905 # Is the header present?
18906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h.  */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h.  */
18914 #include <$ac_header>
18915 _ACEOF
18916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } >/dev/null; then
18924   if test -s conftest.err; then
18925     ac_cpp_err=$ac_c_preproc_warn_flag
18926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18927   else
18928     ac_cpp_err=
18929   fi
18930 else
18931   ac_cpp_err=yes
18932 fi
18933 if test -z "$ac_cpp_err"; then
18934   ac_header_preproc=yes
18935 else
18936   echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18938
18939   ac_header_preproc=no
18940 fi
18941 rm -f conftest.err conftest.$ac_ext
18942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18943 echo "${ECHO_T}$ac_header_preproc" >&6
18944
18945 # So?  What about this header?
18946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18947   yes:no: )
18948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18952     ac_header_preproc=yes
18953     ;;
18954   no:yes:* )
18955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18957     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18958 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18959     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18961     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18962 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18965     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18967     (
18968       cat <<\_ASBOX
18969 ## --------------------------------------------- ##
18970 ## Report this to <http://www.openldap.org/its/> ##
18971 ## --------------------------------------------- ##
18972 _ASBOX
18973     ) |
18974       sed "s/^/$as_me: WARNING:     /" >&2
18975     ;;
18976 esac
18977 echo "$as_me:$LINENO: checking for $ac_header" >&5
18978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982   eval "$as_ac_Header=\$ac_header_preproc"
18983 fi
18984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18986
18987 fi
18988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18989   cat >>confdefs.h <<_ACEOF
18990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18991 _ACEOF
18992
18993 fi
18994
18995 done
18996
18997
18998         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18999                 if test $krb5_impl = mit; then
19000                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
19001 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
19002 if test "${ac_cv_lib_krb4_main+set}" = set; then
19003   echo $ECHO_N "(cached) $ECHO_C" >&6
19004 else
19005   ac_check_lib_save_LIBS=$LIBS
19006 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
19007 cat >conftest.$ac_ext <<_ACEOF
19008 /* confdefs.h.  */
19009 _ACEOF
19010 cat confdefs.h >>conftest.$ac_ext
19011 cat >>conftest.$ac_ext <<_ACEOF
19012 /* end confdefs.h.  */
19013
19014
19015 int
19016 main ()
19017 {
19018 main ();
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19025   (eval $ac_link) 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } &&
19032          { ac_try='test -z "$ac_c_werror_flag"
19033                          || test ! -s conftest.err'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; } &&
19039          { ac_try='test -s conftest$ac_exeext'
19040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041   (eval $ac_try) 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; }; then
19045   ac_cv_lib_krb4_main=yes
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050 ac_cv_lib_krb4_main=no
19051 fi
19052 rm -f conftest.err conftest.$ac_objext \
19053       conftest$ac_exeext conftest.$ac_ext
19054 LIBS=$ac_check_lib_save_LIBS
19055 fi
19056 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19057 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19058 if test $ac_cv_lib_krb4_main = yes; then
19059   have_k425=yes
19060                                 KRB4_LIBS="-lkrb4 -ldes425"
19061 else
19062   have_k425=no
19063 fi
19064
19065
19066                 elif test $krb5_impl = heimdal; then
19067                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
19068 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
19069 if test "${ac_cv_lib_krb4_main+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   ac_check_lib_save_LIBS=$LIBS
19073 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
19074 cat >conftest.$ac_ext <<_ACEOF
19075 /* confdefs.h.  */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h.  */
19080
19081
19082 int
19083 main ()
19084 {
19085 main ();
19086   ;
19087   return 0;
19088 }
19089 _ACEOF
19090 rm -f conftest.$ac_objext conftest$ac_exeext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19092   (eval $ac_link) 2>conftest.er1
19093   ac_status=$?
19094   grep -v '^ *+' conftest.er1 >conftest.err
19095   rm -f conftest.er1
19096   cat conftest.err >&5
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } &&
19099          { ac_try='test -z "$ac_c_werror_flag"
19100                          || test ! -s conftest.err'
19101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102   (eval $ac_try) 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; } &&
19106          { ac_try='test -s conftest$ac_exeext'
19107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108   (eval $ac_try) 2>&5
19109   ac_status=$?
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); }; }; then
19112   ac_cv_lib_krb4_main=yes
19113 else
19114   echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19116
19117 ac_cv_lib_krb4_main=no
19118 fi
19119 rm -f conftest.err conftest.$ac_objext \
19120       conftest$ac_exeext conftest.$ac_ext
19121 LIBS=$ac_check_lib_save_LIBS
19122 fi
19123 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19124 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19125 if test $ac_cv_lib_krb4_main = yes; then
19126   have_k425=yes
19127                                 KRB4_LIBS="-lkrb4"
19128 else
19129   have_k425=no
19130 fi
19131
19132
19133                 else
19134                         have_425=no
19135                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
19136 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
19137                 fi
19138
19139                 if test $have_k425 = yes ; then
19140                         ol_with_kerberos=found
19141                         ol_link_krb4=yes
19142
19143
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE_KRB425 1
19146 _ACEOF
19147
19148
19149 cat >>confdefs.h <<\_ACEOF
19150 #define HAVE_KRB4 1
19151 _ACEOF
19152
19153
19154                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
19155 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
19156 if test "${ol_cv_var_des_debug+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159
19160                                                                 save_LIBS="$LIBS"
19161                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
19162                                 cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168
19169 #include <kerberosIV/krb.h>
19170 #include <kerberosIV/des.h>
19171 extern int des_debug;
19172
19173 int
19174 main ()
19175 {
19176
19177 des_debug = 1;
19178
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185   (eval $ac_link) 2>conftest.er1
19186   ac_status=$?
19187   grep -v '^ *+' conftest.er1 >conftest.err
19188   rm -f conftest.er1
19189   cat conftest.err >&5
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); } &&
19192          { ac_try='test -z "$ac_c_werror_flag"
19193                          || test ! -s conftest.err'
19194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195   (eval $ac_try) 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }; } &&
19199          { ac_try='test -s conftest$ac_exeext'
19200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201   (eval $ac_try) 2>&5
19202   ac_status=$?
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); }; }; then
19205   ol_cv_var_des_debug=yes
19206 else
19207   echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210 ol_cv_var_des_debug=no
19211 fi
19212 rm -f conftest.err conftest.$ac_objext \
19213       conftest$ac_exeext conftest.$ac_ext
19214                                                                 LIBS="$save_LIBS"
19215
19216 fi
19217 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19218 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19219
19220                         if test $ol_cv_var_des_debug = yes ; then
19221
19222 cat >>confdefs.h <<\_ACEOF
19223 #define HAVE_DES_DEBUG 1
19224 _ACEOF
19225
19226                         fi
19227
19228                         LIBS="$save_LIBS"
19229                 fi
19230         fi
19231 fi
19232
19233 if test $ol_link_krb5 = yes ; then
19234         ol_with_kerberos=found
19235 fi
19236
19237 case $ol_with_kerberos in yes | auto | k4 | kth)
19238
19239
19240
19241
19242 for ac_header in krb.h des.h krb-archaeology.h
19243 do
19244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19246   echo "$as_me:$LINENO: checking for $ac_header" >&5
19247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19249   echo $ECHO_N "(cached) $ECHO_C" >&6
19250 fi
19251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19253 else
19254   # Is the header compilable?
19255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19256 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
19264 #include <$ac_header>
19265 _ACEOF
19266 rm -f conftest.$ac_objext
19267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19268   (eval $ac_compile) 2>conftest.er1
19269   ac_status=$?
19270   grep -v '^ *+' conftest.er1 >conftest.err
19271   rm -f conftest.er1
19272   cat conftest.err >&5
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); } &&
19275          { ac_try='test -z "$ac_c_werror_flag"
19276                          || test ! -s conftest.err'
19277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278   (eval $ac_try) 2>&5
19279   ac_status=$?
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); }; } &&
19282          { ac_try='test -s conftest.$ac_objext'
19283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284   (eval $ac_try) 2>&5
19285   ac_status=$?
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); }; }; then
19288   ac_header_compiler=yes
19289 else
19290   echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19292
19293 ac_header_compiler=no
19294 fi
19295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19297 echo "${ECHO_T}$ac_header_compiler" >&6
19298
19299 # Is the header present?
19300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19302 cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h.  */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h.  */
19308 #include <$ac_header>
19309 _ACEOF
19310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19312   ac_status=$?
19313   grep -v '^ *+' conftest.er1 >conftest.err
19314   rm -f conftest.er1
19315   cat conftest.err >&5
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); } >/dev/null; then
19318   if test -s conftest.err; then
19319     ac_cpp_err=$ac_c_preproc_warn_flag
19320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19321   else
19322     ac_cpp_err=
19323   fi
19324 else
19325   ac_cpp_err=yes
19326 fi
19327 if test -z "$ac_cpp_err"; then
19328   ac_header_preproc=yes
19329 else
19330   echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19332
19333   ac_header_preproc=no
19334 fi
19335 rm -f conftest.err conftest.$ac_ext
19336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19337 echo "${ECHO_T}$ac_header_preproc" >&6
19338
19339 # So?  What about this header?
19340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19341   yes:no: )
19342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19346     ac_header_preproc=yes
19347     ;;
19348   no:yes:* )
19349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19361     (
19362       cat <<\_ASBOX
19363 ## --------------------------------------------- ##
19364 ## Report this to <http://www.openldap.org/its/> ##
19365 ## --------------------------------------------- ##
19366 _ASBOX
19367     ) |
19368       sed "s/^/$as_me: WARNING:     /" >&2
19369     ;;
19370 esac
19371 echo "$as_me:$LINENO: checking for $ac_header" >&5
19372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19374   echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376   eval "$as_ac_Header=\$ac_header_preproc"
19377 fi
19378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19380
19381 fi
19382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19383   cat >>confdefs.h <<_ACEOF
19384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19385 _ACEOF
19386
19387 fi
19388
19389 done
19390
19391
19392         if test $ac_cv_header_krb_h = yes ; then
19393                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19394 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19395 if test "${ac_cv_lib_krb_main+set}" = set; then
19396   echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398   ac_check_lib_save_LIBS=$LIBS
19399 LIBS="-lkrb -ldes $LIBS"
19400 cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406
19407
19408 int
19409 main ()
19410 {
19411 main ();
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418   (eval $ac_link) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"
19426                          || test ! -s conftest.err'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest$ac_exeext'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   ac_cv_lib_krb_main=yes
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_cv_lib_krb_main=no
19444 fi
19445 rm -f conftest.err conftest.$ac_objext \
19446       conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19448 fi
19449 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19450 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19451 if test $ac_cv_lib_krb_main = yes; then
19452   have_k4=yes
19453 else
19454   have_k4=no
19455 fi
19456
19457
19458                 if test $have_k4 = yes ; then
19459                         ol_with_kerberos=found
19460                         ol_link_krb4=yes
19461
19462
19463 cat >>confdefs.h <<\_ACEOF
19464 #define HAVE_KRB4 1
19465 _ACEOF
19466
19467
19468                         KRB4_LIBS="-lkrb -ldes"
19469
19470                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19471
19472 cat >>confdefs.h <<\_ACEOF
19473 #define HAVE_KTH_KERBEROS 1
19474 _ACEOF
19475
19476                         fi
19477                 fi
19478         fi
19479         ;;
19480 esac
19481
19482 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19483         ol_link_kbind=yes
19484
19485 elif test $ol_enable_kbind = yes ; then
19486         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19487 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19488    { (exit 1); exit 1; }; }
19489 fi
19490
19491 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19492
19493 cat >>confdefs.h <<\_ACEOF
19494 #define HAVE_KERBEROS 1
19495 _ACEOF
19496
19497
19498 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19499         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19500 echo "$as_me: error: Kerberos detection failed" >&2;}
19501    { (exit 1); exit 1; }; }
19502 fi
19503
19504
19505 if test $ol_with_tls = yes ; then
19506         ol_with_tls=auto
19507 fi
19508
19509 ol_link_tls=no
19510 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19511
19512 for ac_header in openssl/ssl.h
19513 do
19514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19516   echo "$as_me:$LINENO: checking for $ac_header" >&5
19517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 fi
19521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19523 else
19524   # Is the header compilable?
19525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533 $ac_includes_default
19534 #include <$ac_header>
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538   (eval $ac_compile) 2>conftest.er1
19539   ac_status=$?
19540   grep -v '^ *+' conftest.er1 >conftest.err
19541   rm -f conftest.er1
19542   cat conftest.err >&5
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } &&
19545          { ac_try='test -z "$ac_c_werror_flag"
19546                          || test ! -s conftest.err'
19547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548   (eval $ac_try) 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; } &&
19552          { ac_try='test -s conftest.$ac_objext'
19553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554   (eval $ac_try) 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; }; then
19558   ac_header_compiler=yes
19559 else
19560   echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563 ac_header_compiler=no
19564 fi
19565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19567 echo "${ECHO_T}$ac_header_compiler" >&6
19568
19569 # Is the header present?
19570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19572 cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 #include <$ac_header>
19579 _ACEOF
19580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19582   ac_status=$?
19583   grep -v '^ *+' conftest.er1 >conftest.err
19584   rm -f conftest.er1
19585   cat conftest.err >&5
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); } >/dev/null; then
19588   if test -s conftest.err; then
19589     ac_cpp_err=$ac_c_preproc_warn_flag
19590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19591   else
19592     ac_cpp_err=
19593   fi
19594 else
19595   ac_cpp_err=yes
19596 fi
19597 if test -z "$ac_cpp_err"; then
19598   ac_header_preproc=yes
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603   ac_header_preproc=no
19604 fi
19605 rm -f conftest.err conftest.$ac_ext
19606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19607 echo "${ECHO_T}$ac_header_preproc" >&6
19608
19609 # So?  What about this header?
19610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19611   yes:no: )
19612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19616     ac_header_preproc=yes
19617     ;;
19618   no:yes:* )
19619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19631     (
19632       cat <<\_ASBOX
19633 ## --------------------------------------------- ##
19634 ## Report this to <http://www.openldap.org/its/> ##
19635 ## --------------------------------------------- ##
19636 _ASBOX
19637     ) |
19638       sed "s/^/$as_me: WARNING:     /" >&2
19639     ;;
19640 esac
19641 echo "$as_me:$LINENO: checking for $ac_header" >&5
19642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19644   echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646   eval "$as_ac_Header=\$ac_header_preproc"
19647 fi
19648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19650
19651 fi
19652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19653   cat >>confdefs.h <<_ACEOF
19654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19655 _ACEOF
19656
19657 fi
19658
19659 done
19660
19661
19662         if test $ac_cv_header_openssl_ssl_h = yes ; then
19663                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19664 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19665 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19666   echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668   ac_check_lib_save_LIBS=$LIBS
19669 LIBS="-lssl -lcrypto $LIBS"
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h.  */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h.  */
19676
19677 /* Override any gcc2 internal prototype to avoid an error.  */
19678 #ifdef __cplusplus
19679 extern "C"
19680 #endif
19681 /* We use char because int might match the return type of a gcc2
19682    builtin and then its argument prototype would still apply.  */
19683 char SSL_library_init ();
19684 int
19685 main ()
19686 {
19687 SSL_library_init ();
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19694   (eval $ac_link) 2>conftest.er1
19695   ac_status=$?
19696   grep -v '^ *+' conftest.er1 >conftest.err
19697   rm -f conftest.er1
19698   cat conftest.err >&5
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); } &&
19701          { ac_try='test -z "$ac_c_werror_flag"
19702                          || test ! -s conftest.err'
19703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704   (eval $ac_try) 2>&5
19705   ac_status=$?
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); }; } &&
19708          { ac_try='test -s conftest$ac_exeext'
19709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710   (eval $ac_try) 2>&5
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); }; }; then
19714   ac_cv_lib_ssl_SSL_library_init=yes
19715 else
19716   echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719 ac_cv_lib_ssl_SSL_library_init=no
19720 fi
19721 rm -f conftest.err conftest.$ac_objext \
19722       conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_lib_save_LIBS
19724 fi
19725 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19726 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19727 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19728   have_openssl=yes
19729                         need_rsaref=no
19730 else
19731   have_openssl=no
19732 fi
19733
19734
19735                 if test $have_openssl = no ; then
19736                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19737 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19738 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749
19750 /* Override any gcc2 internal prototype to avoid an error.  */
19751 #ifdef __cplusplus
19752 extern "C"
19753 #endif
19754 /* We use char because int might match the return type of a gcc2
19755    builtin and then its argument prototype would still apply.  */
19756 char ssl3_accept ();
19757 int
19758 main ()
19759 {
19760 ssl3_accept ();
19761   ;
19762   return 0;
19763 }
19764 _ACEOF
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19767   (eval $ac_link) 2>conftest.er1
19768   ac_status=$?
19769   grep -v '^ *+' conftest.er1 >conftest.err
19770   rm -f conftest.er1
19771   cat conftest.err >&5
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); } &&
19774          { ac_try='test -z "$ac_c_werror_flag"
19775                          || test ! -s conftest.err'
19776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777   (eval $ac_try) 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); }; } &&
19781          { ac_try='test -s conftest$ac_exeext'
19782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783   (eval $ac_try) 2>&5
19784   ac_status=$?
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); }; }; then
19787   ac_cv_lib_ssl_ssl3_accept=yes
19788 else
19789   echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792 ac_cv_lib_ssl_ssl3_accept=no
19793 fi
19794 rm -f conftest.err conftest.$ac_objext \
19795       conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19797 fi
19798 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19799 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19800 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19801   have_openssl=yes
19802                                 need_rsaref=yes
19803 else
19804   have_openssl=no
19805 fi
19806
19807                 fi
19808
19809                 if test $have_openssl = yes ; then
19810                         ol_with_tls=openssl
19811                         ol_link_tls=yes
19812
19813
19814 cat >>confdefs.h <<\_ACEOF
19815 #define HAVE_OPENSSL 1
19816 _ACEOF
19817
19818
19819                         if test $need_rsaref = yes; then
19820
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_RSAREF 1
19823 _ACEOF
19824
19825
19826                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19827                         else
19828                                 TLS_LIBS="-lssl -lcrypto"
19829                         fi
19830
19831                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19832 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19833 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19834   echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836
19837                 cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843
19844 #ifdef HAVE_OPENSSL_SSL_H
19845 #include <openssl/ssl.h>
19846 #endif
19847
19848 /* Require 0.9.7d+ */
19849 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19850         char *__ssl_compat = "0.9.7d";
19851 #endif
19852
19853 _ACEOF
19854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19855   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19856   ol_cv_ssl_crl_compat=yes
19857 else
19858   ol_cv_ssl_crl_compat=no
19859 fi
19860 rm -f conftest*
19861
19862 fi
19863 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19864 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19865
19866                         if test $ol_cv_ssl_crl_compat = yes ; then
19867
19868 cat >>confdefs.h <<\_ACEOF
19869 #define HAVE_OPENSSL_CRL 1
19870 _ACEOF
19871
19872                         fi
19873                 fi
19874         fi
19875 fi
19876
19877 WITH_TLS=no
19878 if test $ol_link_tls = yes ; then
19879
19880 cat >>confdefs.h <<\_ACEOF
19881 #define HAVE_TLS 1
19882 _ACEOF
19883
19884         WITH_TLS=yes
19885 elif test $ol_with_tls = auto ; then
19886         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19887 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19888         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19889 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19890 elif test $ol_with_tls != no ; then
19891         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19892 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19893    { (exit 1); exit 1; }; }
19894 else
19895         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19896 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19897 fi
19898
19899 if test $ol_enable_lmpasswd != no; then
19900         if test $ol_link_tls != yes ; then
19901                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19902 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19903    { (exit 1); exit 1; }; }
19904         fi
19905
19906
19907 cat >>confdefs.h <<\_ACEOF
19908 #define SLAPD_LMHASH 1
19909 _ACEOF
19910
19911 fi
19912
19913 ol_link_threads=no
19914
19915 case $ol_with_threads in auto | yes | nt)
19916
19917
19918         echo "$as_me:$LINENO: checking for _beginthread" >&5
19919 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19920 if test "${ac_cv_func__beginthread+set}" = set; then
19921   echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923   cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h.  */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h.  */
19929 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19931 #define _beginthread innocuous__beginthread
19932
19933 /* System header to define __stub macros and hopefully few prototypes,
19934     which can conflict with char _beginthread (); below.
19935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19936     <limits.h> exists even on freestanding compilers.  */
19937
19938 #ifdef __STDC__
19939 # include <limits.h>
19940 #else
19941 # include <assert.h>
19942 #endif
19943
19944 #undef _beginthread
19945
19946 /* Override any gcc2 internal prototype to avoid an error.  */
19947 #ifdef __cplusplus
19948 extern "C"
19949 {
19950 #endif
19951 /* We use char because int might match the return type of a gcc2
19952    builtin and then its argument prototype would still apply.  */
19953 char _beginthread ();
19954 /* The GNU C library defines this for functions which it implements
19955     to always fail with ENOSYS.  Some functions are actually named
19956     something starting with __ and the normal name is an alias.  */
19957 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19958 choke me
19959 #else
19960 char (*f) () = _beginthread;
19961 #endif
19962 #ifdef __cplusplus
19963 }
19964 #endif
19965
19966 int
19967 main ()
19968 {
19969 return f != _beginthread;
19970   ;
19971   return 0;
19972 }
19973 _ACEOF
19974 rm -f conftest.$ac_objext conftest$ac_exeext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19976   (eval $ac_link) 2>conftest.er1
19977   ac_status=$?
19978   grep -v '^ *+' conftest.er1 >conftest.err
19979   rm -f conftest.er1
19980   cat conftest.err >&5
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); } &&
19983          { ac_try='test -z "$ac_c_werror_flag"
19984                          || test ! -s conftest.err'
19985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986   (eval $ac_try) 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; } &&
19990          { ac_try='test -s conftest$ac_exeext'
19991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992   (eval $ac_try) 2>&5
19993   ac_status=$?
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); }; }; then
19996   ac_cv_func__beginthread=yes
19997 else
19998   echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001 ac_cv_func__beginthread=no
20002 fi
20003 rm -f conftest.err conftest.$ac_objext \
20004       conftest$ac_exeext conftest.$ac_ext
20005 fi
20006 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20007 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
20008
20009
20010         if test $ac_cv_func__beginthread = yes ; then
20011
20012 cat >>confdefs.h <<\_ACEOF
20013 #define HAVE_NT_THREADS 1
20014 _ACEOF
20015
20016                 ol_cv_nt_threads=yes
20017         fi
20018
20019
20020         if test "$ol_cv_nt_threads" = yes ; then
20021                 ol_link_threads=nt
20022                 ol_with_threads=found
20023                 ol_with_yielding_select=yes
20024
20025
20026 cat >>confdefs.h <<\_ACEOF
20027 #define HAVE_NT_SERVICE_MANAGER 1
20028 _ACEOF
20029
20030
20031 cat >>confdefs.h <<\_ACEOF
20032 #define HAVE_NT_EVENT_LOG 1
20033 _ACEOF
20034
20035         fi
20036
20037         if test $ol_with_threads = nt ; then
20038                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20039 echo "$as_me: error: could not locate NT Threads" >&2;}
20040    { (exit 1); exit 1; }; }
20041         fi
20042         ;;
20043 esac
20044
20045 case $ol_with_threads in auto | yes | posix)
20046
20047
20048 for ac_header in pthread.h
20049 do
20050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20052   echo "$as_me:$LINENO: checking for $ac_header" >&5
20053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 fi
20057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20059 else
20060   # Is the header compilable?
20061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20063 cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h.  */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h.  */
20069 $ac_includes_default
20070 #include <$ac_header>
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074   (eval $ac_compile) 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } &&
20081          { ac_try='test -z "$ac_c_werror_flag"
20082                          || test ! -s conftest.err'
20083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084   (eval $ac_try) 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; } &&
20088          { ac_try='test -s conftest.$ac_objext'
20089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090   (eval $ac_try) 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; }; then
20094   ac_header_compiler=yes
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099 ac_header_compiler=no
20100 fi
20101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20103 echo "${ECHO_T}$ac_header_compiler" >&6
20104
20105 # Is the header present?
20106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h.  */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h.  */
20114 #include <$ac_header>
20115 _ACEOF
20116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20118   ac_status=$?
20119   grep -v '^ *+' conftest.er1 >conftest.err
20120   rm -f conftest.er1
20121   cat conftest.err >&5
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); } >/dev/null; then
20124   if test -s conftest.err; then
20125     ac_cpp_err=$ac_c_preproc_warn_flag
20126     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20127   else
20128     ac_cpp_err=
20129   fi
20130 else
20131   ac_cpp_err=yes
20132 fi
20133 if test -z "$ac_cpp_err"; then
20134   ac_header_preproc=yes
20135 else
20136   echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139   ac_header_preproc=no
20140 fi
20141 rm -f conftest.err conftest.$ac_ext
20142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20143 echo "${ECHO_T}$ac_header_preproc" >&6
20144
20145 # So?  What about this header?
20146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20147   yes:no: )
20148     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20152     ac_header_preproc=yes
20153     ;;
20154   no:yes:* )
20155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20157     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20158 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20159     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20161     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20162 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20165     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20167     (
20168       cat <<\_ASBOX
20169 ## --------------------------------------------- ##
20170 ## Report this to <http://www.openldap.org/its/> ##
20171 ## --------------------------------------------- ##
20172 _ASBOX
20173     ) |
20174       sed "s/^/$as_me: WARNING:     /" >&2
20175     ;;
20176 esac
20177 echo "$as_me:$LINENO: checking for $ac_header" >&5
20178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20180   echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182   eval "$as_ac_Header=\$ac_header_preproc"
20183 fi
20184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20186
20187 fi
20188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20189   cat >>confdefs.h <<_ACEOF
20190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20191 _ACEOF
20192
20193 fi
20194
20195 done
20196
20197
20198         if test $ac_cv_header_pthread_h = yes ; then
20199                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20200 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20201 if test "${ol_cv_pthread_version+set}" = set; then
20202   echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204
20205         cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h.  */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h.  */
20211
20212 #               include <pthread.h>
20213
20214 int
20215 main ()
20216 {
20217
20218                 int i = PTHREAD_CREATE_JOINABLE;
20219
20220   ;
20221   return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226   (eval $ac_compile) 2>conftest.er1
20227   ac_status=$?
20228   grep -v '^ *+' conftest.er1 >conftest.err
20229   rm -f conftest.er1
20230   cat conftest.err >&5
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); } &&
20233          { ac_try='test -z "$ac_c_werror_flag"
20234                          || test ! -s conftest.err'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; } &&
20240          { ac_try='test -s conftest.$ac_objext'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246
20247         cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h.  */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h.  */
20253 #include <pthread.h>
20254
20255 _ACEOF
20256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20257   $EGREP "pthread_detach" >/dev/null 2>&1; then
20258   ol_cv_pthread_version=10
20259 else
20260   ol_cv_pthread_version=8
20261 fi
20262 rm -f conftest*
20263
20264 else
20265   echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268
20269         cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275
20276 #               include <pthread.h>
20277 #               ifdef PTHREAD_CREATE_UNDETACHED
20278                 draft7
20279 #               endif
20280
20281 _ACEOF
20282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20283   $EGREP "draft7" >/dev/null 2>&1; then
20284   ol_cv_pthread_version=7
20285 else
20286
20287         cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 #include <pthread.h>
20294
20295 _ACEOF
20296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20297   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20298   ol_cv_pthread_version=6
20299 else
20300
20301         cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307
20308 #               include <pthread.h>
20309 #ifdef          PTHREAD_MUTEX_INITIALIZER
20310                 draft5
20311 #endif
20312
20313 _ACEOF
20314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20315   $EGREP "draft5" >/dev/null 2>&1; then
20316   ol_cv_pthread_version=5
20317 else
20318   ol_cv_pthread_version=4
20319 fi
20320 rm -f conftest*
20321
20322 fi
20323 rm -f conftest*
20324
20325 fi
20326 rm -f conftest*
20327
20328 fi
20329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20330
20331 fi
20332 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20333 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20334
20335
20336                 if test $ol_cv_pthread_version != 0 ; then
20337
20338 cat >>confdefs.h <<_ACEOF
20339 #define HAVE_PTHREADS $ol_cv_pthread_version
20340 _ACEOF
20341
20342                 else
20343                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20344 echo "$as_me: error: unknown pthread version" >&2;}
20345    { (exit 1); exit 1; }; }
20346                 fi
20347
20348                 # consider threads found
20349                 ol_with_threads=found
20350
20351
20352         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20353 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20354 if test "${ol_cv_header_linux_threads+set}" = set; then
20355   echo $ECHO_N "(cached) $ECHO_C" >&6
20356 else
20357   cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363 #include <pthread.h>
20364 _ACEOF
20365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20366   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20367   ol_cv_header_linux_threads=yes
20368 else
20369   ol_cv_header_linux_threads=no
20370 fi
20371 rm -f conftest*
20372
20373
20374 fi
20375 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20376 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20377         if test $ol_cv_header_linux_threads = yes; then
20378
20379 cat >>confdefs.h <<\_ACEOF
20380 #define HAVE_LINUX_THREADS 1
20381 _ACEOF
20382
20383         fi
20384
20385
20386         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20387 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20388 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 else
20391   cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h.  */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h.  */
20397 #include <pthread.h>
20398 #ifdef _POSIX_THREAD_IS_GNU_PTH
20399         __gnu_pth__;
20400 #endif
20401
20402 _ACEOF
20403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20404   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20405   ol_cv_header_gnu_pth_pthread_h=yes
20406 else
20407   ol_cv_header_gnu_pth_pthread_h=no
20408 fi
20409 rm -f conftest*
20410
20411
20412 fi
20413 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20414 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20415
20416
20417                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20418
20419 for ac_header in sched.h
20420 do
20421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20423   echo "$as_me:$LINENO: checking for $ac_header" >&5
20424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20426   echo $ECHO_N "(cached) $ECHO_C" >&6
20427 fi
20428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20430 else
20431   # Is the header compilable?
20432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20434 cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h.  */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h.  */
20440 $ac_includes_default
20441 #include <$ac_header>
20442 _ACEOF
20443 rm -f conftest.$ac_objext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445   (eval $ac_compile) 2>conftest.er1
20446   ac_status=$?
20447   grep -v '^ *+' conftest.er1 >conftest.err
20448   rm -f conftest.er1
20449   cat conftest.err >&5
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } &&
20452          { ac_try='test -z "$ac_c_werror_flag"
20453                          || test ! -s conftest.err'
20454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455   (eval $ac_try) 2>&5
20456   ac_status=$?
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); }; } &&
20459          { ac_try='test -s conftest.$ac_objext'
20460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461   (eval $ac_try) 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); }; }; then
20465   ac_header_compiler=yes
20466 else
20467   echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470 ac_header_compiler=no
20471 fi
20472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20474 echo "${ECHO_T}$ac_header_compiler" >&6
20475
20476 # Is the header present?
20477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20479 cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485 #include <$ac_header>
20486 _ACEOF
20487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20489   ac_status=$?
20490   grep -v '^ *+' conftest.er1 >conftest.err
20491   rm -f conftest.er1
20492   cat conftest.err >&5
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); } >/dev/null; then
20495   if test -s conftest.err; then
20496     ac_cpp_err=$ac_c_preproc_warn_flag
20497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20498   else
20499     ac_cpp_err=
20500   fi
20501 else
20502   ac_cpp_err=yes
20503 fi
20504 if test -z "$ac_cpp_err"; then
20505   ac_header_preproc=yes
20506 else
20507   echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510   ac_header_preproc=no
20511 fi
20512 rm -f conftest.err conftest.$ac_ext
20513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20514 echo "${ECHO_T}$ac_header_preproc" >&6
20515
20516 # So?  What about this header?
20517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20518   yes:no: )
20519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20523     ac_header_preproc=yes
20524     ;;
20525   no:yes:* )
20526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20538     (
20539       cat <<\_ASBOX
20540 ## --------------------------------------------- ##
20541 ## Report this to <http://www.openldap.org/its/> ##
20542 ## --------------------------------------------- ##
20543 _ASBOX
20544     ) |
20545       sed "s/^/$as_me: WARNING:     /" >&2
20546     ;;
20547 esac
20548 echo "$as_me:$LINENO: checking for $ac_header" >&5
20549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20551   echo $ECHO_N "(cached) $ECHO_C" >&6
20552 else
20553   eval "$as_ac_Header=\$ac_header_preproc"
20554 fi
20555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20557
20558 fi
20559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20560   cat >>confdefs.h <<_ACEOF
20561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20562 _ACEOF
20563
20564 fi
20565
20566 done
20567
20568                 fi
20569
20570
20571                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20572 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20573 if test "${ol_cv_pthread_create+set}" = set; then
20574   echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576
20577                         if test "$cross_compiling" = yes; then
20578   cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584
20585 /* pthread test headers */
20586 #include <pthread.h>
20587 #if HAVE_PTHREADS < 7
20588 #include <errno.h>
20589 #endif
20590 #ifndef NULL
20591 #define NULL (void*)0
20592 #endif
20593
20594 static void *task(p)
20595         void *p;
20596 {
20597         return (void *) (p == NULL);
20598 }
20599
20600 int
20601 main ()
20602 {
20603
20604         /* pthread test function */
20605 #ifndef PTHREAD_CREATE_DETACHED
20606 #define PTHREAD_CREATE_DETACHED 1
20607 #endif
20608         pthread_t t;
20609         int status;
20610         int detach = PTHREAD_CREATE_DETACHED;
20611
20612 #if HAVE_PTHREADS > 4
20613         /* Final pthreads */
20614         pthread_attr_t attr;
20615
20616         status = pthread_attr_init(&attr);
20617         if( status ) return status;
20618
20619 #if HAVE_PTHREADS < 7
20620         status = pthread_attr_setdetachstate(&attr, &detach);
20621         if( status < 0 ) status = errno;
20622 #else
20623         status = pthread_attr_setdetachstate(&attr, detach);
20624 #endif
20625         if( status ) return status;
20626         status = pthread_create( &t, &attr, task, NULL );
20627 #if HAVE_PTHREADS < 7
20628         if( status < 0 ) status = errno;
20629 #endif
20630         if( status ) return status;
20631 #else
20632         /* Draft 4 pthreads */
20633         status = pthread_create( &t, pthread_attr_default, task, NULL );
20634         if( status ) return errno;
20635
20636         /* give thread a chance to complete */
20637         /* it should remain joinable and hence detachable */
20638         sleep( 1 );
20639
20640         status = pthread_detach( &t );
20641         if( status ) return errno;
20642 #endif
20643
20644 #ifdef HAVE_LINUX_THREADS
20645         pthread_kill_other_threads_np();
20646 #endif
20647
20648         return 0;
20649
20650   ;
20651   return 0;
20652 }
20653 _ACEOF
20654 rm -f conftest.$ac_objext conftest$ac_exeext
20655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20656   (eval $ac_link) 2>conftest.er1
20657   ac_status=$?
20658   grep -v '^ *+' conftest.er1 >conftest.err
20659   rm -f conftest.er1
20660   cat conftest.err >&5
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } &&
20663          { ac_try='test -z "$ac_c_werror_flag"
20664                          || test ! -s conftest.err'
20665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666   (eval $ac_try) 2>&5
20667   ac_status=$?
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); }; } &&
20670          { ac_try='test -s conftest$ac_exeext'
20671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672   (eval $ac_try) 2>&5
20673   ac_status=$?
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); }; }; then
20676   ol_cv_pthread_create=yes
20677 else
20678   echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20680
20681 ol_cv_pthread_create=no
20682 fi
20683 rm -f conftest.err conftest.$ac_objext \
20684       conftest$ac_exeext conftest.$ac_ext
20685 else
20686   cat >conftest.$ac_ext <<_ACEOF
20687 /* confdefs.h.  */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h.  */
20692
20693 /* pthread test headers */
20694 #include <pthread.h>
20695 #if HAVE_PTHREADS < 7
20696 #include <errno.h>
20697 #endif
20698 #ifndef NULL
20699 #define NULL (void*)0
20700 #endif
20701
20702 static void *task(p)
20703         void *p;
20704 {
20705         return (void *) (p == NULL);
20706 }
20707
20708
20709 int main(argc, argv)
20710         int argc;
20711         char **argv;
20712 {
20713
20714         /* pthread test function */
20715 #ifndef PTHREAD_CREATE_DETACHED
20716 #define PTHREAD_CREATE_DETACHED 1
20717 #endif
20718         pthread_t t;
20719         int status;
20720         int detach = PTHREAD_CREATE_DETACHED;
20721
20722 #if HAVE_PTHREADS > 4
20723         /* Final pthreads */
20724         pthread_attr_t attr;
20725
20726         status = pthread_attr_init(&attr);
20727         if( status ) return status;
20728
20729 #if HAVE_PTHREADS < 7
20730         status = pthread_attr_setdetachstate(&attr, &detach);
20731         if( status < 0 ) status = errno;
20732 #else
20733         status = pthread_attr_setdetachstate(&attr, detach);
20734 #endif
20735         if( status ) return status;
20736         status = pthread_create( &t, &attr, task, NULL );
20737 #if HAVE_PTHREADS < 7
20738         if( status < 0 ) status = errno;
20739 #endif
20740         if( status ) return status;
20741 #else
20742         /* Draft 4 pthreads */
20743         status = pthread_create( &t, pthread_attr_default, task, NULL );
20744         if( status ) return errno;
20745
20746         /* give thread a chance to complete */
20747         /* it should remain joinable and hence detachable */
20748         sleep( 1 );
20749
20750         status = pthread_detach( &t );
20751         if( status ) return errno;
20752 #endif
20753
20754 #ifdef HAVE_LINUX_THREADS
20755         pthread_kill_other_threads_np();
20756 #endif
20757
20758         return 0;
20759
20760 }
20761
20762 _ACEOF
20763 rm -f conftest$ac_exeext
20764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20765   (eval $ac_link) 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770   (eval $ac_try) 2>&5
20771   ac_status=$?
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); }; }; then
20774   ol_cv_pthread_create=yes
20775 else
20776   echo "$as_me: program exited with status $ac_status" >&5
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780 ( exit $ac_status )
20781 ol_cv_pthread_create=no
20782 fi
20783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20784 fi
20785 fi
20786 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20787 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20788
20789                 if test $ol_cv_pthread_create != no ; then
20790                         ol_link_threads=posix
20791                         ol_link_pthreads=""
20792                 fi
20793
20794                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20795 if test "$ol_link_threads" = no ; then
20796         # try -kthread
20797         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20798 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20799 if test "${ol_cv_pthread_kthread+set}" = set; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802
20803                 # save the flags
20804                 ol_LIBS="$LIBS"
20805                 LIBS="-kthread $LIBS"
20806
20807                 if test "$cross_compiling" = yes; then
20808   cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h.  */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h.  */
20814
20815 /* pthread test headers */
20816 #include <pthread.h>
20817 #if HAVE_PTHREADS < 7
20818 #include <errno.h>
20819 #endif
20820 #ifndef NULL
20821 #define NULL (void*)0
20822 #endif
20823
20824 static void *task(p)
20825         void *p;
20826 {
20827         return (void *) (p == NULL);
20828 }
20829
20830 int
20831 main ()
20832 {
20833
20834         /* pthread test function */
20835 #ifndef PTHREAD_CREATE_DETACHED
20836 #define PTHREAD_CREATE_DETACHED 1
20837 #endif
20838         pthread_t t;
20839         int status;
20840         int detach = PTHREAD_CREATE_DETACHED;
20841
20842 #if HAVE_PTHREADS > 4
20843         /* Final pthreads */
20844         pthread_attr_t attr;
20845
20846         status = pthread_attr_init(&attr);
20847         if( status ) return status;
20848
20849 #if HAVE_PTHREADS < 7
20850         status = pthread_attr_setdetachstate(&attr, &detach);
20851         if( status < 0 ) status = errno;
20852 #else
20853         status = pthread_attr_setdetachstate(&attr, detach);
20854 #endif
20855         if( status ) return status;
20856         status = pthread_create( &t, &attr, task, NULL );
20857 #if HAVE_PTHREADS < 7
20858         if( status < 0 ) status = errno;
20859 #endif
20860         if( status ) return status;
20861 #else
20862         /* Draft 4 pthreads */
20863         status = pthread_create( &t, pthread_attr_default, task, NULL );
20864         if( status ) return errno;
20865
20866         /* give thread a chance to complete */
20867         /* it should remain joinable and hence detachable */
20868         sleep( 1 );
20869
20870         status = pthread_detach( &t );
20871         if( status ) return errno;
20872 #endif
20873
20874 #ifdef HAVE_LINUX_THREADS
20875         pthread_kill_other_threads_np();
20876 #endif
20877
20878         return 0;
20879
20880   ;
20881   return 0;
20882 }
20883 _ACEOF
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886   (eval $ac_link) 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } &&
20893          { ac_try='test -z "$ac_c_werror_flag"
20894                          || test ! -s conftest.err'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; } &&
20900          { ac_try='test -s conftest$ac_exeext'
20901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902   (eval $ac_try) 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   ol_cv_pthread_kthread=yes
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 ol_cv_pthread_kthread=no
20912 fi
20913 rm -f conftest.err conftest.$ac_objext \
20914       conftest$ac_exeext conftest.$ac_ext
20915 else
20916   cat >conftest.$ac_ext <<_ACEOF
20917 /* confdefs.h.  */
20918 _ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h.  */
20922
20923 /* pthread test headers */
20924 #include <pthread.h>
20925 #if HAVE_PTHREADS < 7
20926 #include <errno.h>
20927 #endif
20928 #ifndef NULL
20929 #define NULL (void*)0
20930 #endif
20931
20932 static void *task(p)
20933         void *p;
20934 {
20935         return (void *) (p == NULL);
20936 }
20937
20938
20939 int main(argc, argv)
20940         int argc;
20941         char **argv;
20942 {
20943
20944         /* pthread test function */
20945 #ifndef PTHREAD_CREATE_DETACHED
20946 #define PTHREAD_CREATE_DETACHED 1
20947 #endif
20948         pthread_t t;
20949         int status;
20950         int detach = PTHREAD_CREATE_DETACHED;
20951
20952 #if HAVE_PTHREADS > 4
20953         /* Final pthreads */
20954         pthread_attr_t attr;
20955
20956         status = pthread_attr_init(&attr);
20957         if( status ) return status;
20958
20959 #if HAVE_PTHREADS < 7
20960         status = pthread_attr_setdetachstate(&attr, &detach);
20961         if( status < 0 ) status = errno;
20962 #else
20963         status = pthread_attr_setdetachstate(&attr, detach);
20964 #endif
20965         if( status ) return status;
20966         status = pthread_create( &t, &attr, task, NULL );
20967 #if HAVE_PTHREADS < 7
20968         if( status < 0 ) status = errno;
20969 #endif
20970         if( status ) return status;
20971 #else
20972         /* Draft 4 pthreads */
20973         status = pthread_create( &t, pthread_attr_default, task, NULL );
20974         if( status ) return errno;
20975
20976         /* give thread a chance to complete */
20977         /* it should remain joinable and hence detachable */
20978         sleep( 1 );
20979
20980         status = pthread_detach( &t );
20981         if( status ) return errno;
20982 #endif
20983
20984 #ifdef HAVE_LINUX_THREADS
20985         pthread_kill_other_threads_np();
20986 #endif
20987
20988         return 0;
20989
20990 }
20991
20992 _ACEOF
20993 rm -f conftest$ac_exeext
20994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20995   (eval $ac_link) 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000   (eval $ac_try) 2>&5
21001   ac_status=$?
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); }; }; then
21004   ol_cv_pthread_kthread=yes
21005 else
21006   echo "$as_me: program exited with status $ac_status" >&5
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 ( exit $ac_status )
21011 ol_cv_pthread_kthread=no
21012 fi
21013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21014 fi
21015
21016                 # restore the LIBS
21017                 LIBS="$ol_LIBS"
21018
21019 fi
21020 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21021 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
21022
21023         if test $ol_cv_pthread_kthread = yes ; then
21024                 ol_link_pthreads="-kthread"
21025                 ol_link_threads=posix
21026         fi
21027 fi
21028
21029                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21030 if test "$ol_link_threads" = no ; then
21031         # try -pthread
21032         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21033 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
21034 if test "${ol_cv_pthread_pthread+set}" = set; then
21035   echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037
21038                 # save the flags
21039                 ol_LIBS="$LIBS"
21040                 LIBS="-pthread $LIBS"
21041
21042                 if test "$cross_compiling" = yes; then
21043   cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049
21050 /* pthread test headers */
21051 #include <pthread.h>
21052 #if HAVE_PTHREADS < 7
21053 #include <errno.h>
21054 #endif
21055 #ifndef NULL
21056 #define NULL (void*)0
21057 #endif
21058
21059 static void *task(p)
21060         void *p;
21061 {
21062         return (void *) (p == NULL);
21063 }
21064
21065 int
21066 main ()
21067 {
21068
21069         /* pthread test function */
21070 #ifndef PTHREAD_CREATE_DETACHED
21071 #define PTHREAD_CREATE_DETACHED 1
21072 #endif
21073         pthread_t t;
21074         int status;
21075         int detach = PTHREAD_CREATE_DETACHED;
21076
21077 #if HAVE_PTHREADS > 4
21078         /* Final pthreads */
21079         pthread_attr_t attr;
21080
21081         status = pthread_attr_init(&attr);
21082         if( status ) return status;
21083
21084 #if HAVE_PTHREADS < 7
21085         status = pthread_attr_setdetachstate(&attr, &detach);
21086         if( status < 0 ) status = errno;
21087 #else
21088         status = pthread_attr_setdetachstate(&attr, detach);
21089 #endif
21090         if( status ) return status;
21091         status = pthread_create( &t, &attr, task, NULL );
21092 #if HAVE_PTHREADS < 7
21093         if( status < 0 ) status = errno;
21094 #endif
21095         if( status ) return status;
21096 #else
21097         /* Draft 4 pthreads */
21098         status = pthread_create( &t, pthread_attr_default, task, NULL );
21099         if( status ) return errno;
21100
21101         /* give thread a chance to complete */
21102         /* it should remain joinable and hence detachable */
21103         sleep( 1 );
21104
21105         status = pthread_detach( &t );
21106         if( status ) return errno;
21107 #endif
21108
21109 #ifdef HAVE_LINUX_THREADS
21110         pthread_kill_other_threads_np();
21111 #endif
21112
21113         return 0;
21114
21115   ;
21116   return 0;
21117 }
21118 _ACEOF
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21121   (eval $ac_link) 2>conftest.er1
21122   ac_status=$?
21123   grep -v '^ *+' conftest.er1 >conftest.err
21124   rm -f conftest.er1
21125   cat conftest.err >&5
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); } &&
21128          { ac_try='test -z "$ac_c_werror_flag"
21129                          || test ! -s conftest.err'
21130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131   (eval $ac_try) 2>&5
21132   ac_status=$?
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); }; } &&
21135          { ac_try='test -s conftest$ac_exeext'
21136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137   (eval $ac_try) 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); }; }; then
21141   ol_cv_pthread_pthread=yes
21142 else
21143   echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146 ol_cv_pthread_pthread=no
21147 fi
21148 rm -f conftest.err conftest.$ac_objext \
21149       conftest$ac_exeext conftest.$ac_ext
21150 else
21151   cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h.  */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h.  */
21157
21158 /* pthread test headers */
21159 #include <pthread.h>
21160 #if HAVE_PTHREADS < 7
21161 #include <errno.h>
21162 #endif
21163 #ifndef NULL
21164 #define NULL (void*)0
21165 #endif
21166
21167 static void *task(p)
21168         void *p;
21169 {
21170         return (void *) (p == NULL);
21171 }
21172
21173
21174 int main(argc, argv)
21175         int argc;
21176         char **argv;
21177 {
21178
21179         /* pthread test function */
21180 #ifndef PTHREAD_CREATE_DETACHED
21181 #define PTHREAD_CREATE_DETACHED 1
21182 #endif
21183         pthread_t t;
21184         int status;
21185         int detach = PTHREAD_CREATE_DETACHED;
21186
21187 #if HAVE_PTHREADS > 4
21188         /* Final pthreads */
21189         pthread_attr_t attr;
21190
21191         status = pthread_attr_init(&attr);
21192         if( status ) return status;
21193
21194 #if HAVE_PTHREADS < 7
21195         status = pthread_attr_setdetachstate(&attr, &detach);
21196         if( status < 0 ) status = errno;
21197 #else
21198         status = pthread_attr_setdetachstate(&attr, detach);
21199 #endif
21200         if( status ) return status;
21201         status = pthread_create( &t, &attr, task, NULL );
21202 #if HAVE_PTHREADS < 7
21203         if( status < 0 ) status = errno;
21204 #endif
21205         if( status ) return status;
21206 #else
21207         /* Draft 4 pthreads */
21208         status = pthread_create( &t, pthread_attr_default, task, NULL );
21209         if( status ) return errno;
21210
21211         /* give thread a chance to complete */
21212         /* it should remain joinable and hence detachable */
21213         sleep( 1 );
21214
21215         status = pthread_detach( &t );
21216         if( status ) return errno;
21217 #endif
21218
21219 #ifdef HAVE_LINUX_THREADS
21220         pthread_kill_other_threads_np();
21221 #endif
21222
21223         return 0;
21224
21225 }
21226
21227 _ACEOF
21228 rm -f conftest$ac_exeext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21230   (eval $ac_link) 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235   (eval $ac_try) 2>&5
21236   ac_status=$?
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); }; }; then
21239   ol_cv_pthread_pthread=yes
21240 else
21241   echo "$as_me: program exited with status $ac_status" >&5
21242 echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245 ( exit $ac_status )
21246 ol_cv_pthread_pthread=no
21247 fi
21248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21249 fi
21250
21251                 # restore the LIBS
21252                 LIBS="$ol_LIBS"
21253
21254 fi
21255 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21256 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21257
21258         if test $ol_cv_pthread_pthread = yes ; then
21259                 ol_link_pthreads="-pthread"
21260                 ol_link_threads=posix
21261         fi
21262 fi
21263
21264                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21265 if test "$ol_link_threads" = no ; then
21266         # try -pthreads
21267         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21268 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21269 if test "${ol_cv_pthread_pthreads+set}" = set; then
21270   echo $ECHO_N "(cached) $ECHO_C" >&6
21271 else
21272
21273                 # save the flags
21274                 ol_LIBS="$LIBS"
21275                 LIBS="-pthreads $LIBS"
21276
21277                 if test "$cross_compiling" = yes; then
21278   cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284
21285 /* pthread test headers */
21286 #include <pthread.h>
21287 #if HAVE_PTHREADS < 7
21288 #include <errno.h>
21289 #endif
21290 #ifndef NULL
21291 #define NULL (void*)0
21292 #endif
21293
21294 static void *task(p)
21295         void *p;
21296 {
21297         return (void *) (p == NULL);
21298 }
21299
21300 int
21301 main ()
21302 {
21303
21304         /* pthread test function */
21305 #ifndef PTHREAD_CREATE_DETACHED
21306 #define PTHREAD_CREATE_DETACHED 1
21307 #endif
21308         pthread_t t;
21309         int status;
21310         int detach = PTHREAD_CREATE_DETACHED;
21311
21312 #if HAVE_PTHREADS > 4
21313         /* Final pthreads */
21314         pthread_attr_t attr;
21315
21316         status = pthread_attr_init(&attr);
21317         if( status ) return status;
21318
21319 #if HAVE_PTHREADS < 7
21320         status = pthread_attr_setdetachstate(&attr, &detach);
21321         if( status < 0 ) status = errno;
21322 #else
21323         status = pthread_attr_setdetachstate(&attr, detach);
21324 #endif
21325         if( status ) return status;
21326         status = pthread_create( &t, &attr, task, NULL );
21327 #if HAVE_PTHREADS < 7
21328         if( status < 0 ) status = errno;
21329 #endif
21330         if( status ) return status;
21331 #else
21332         /* Draft 4 pthreads */
21333         status = pthread_create( &t, pthread_attr_default, task, NULL );
21334         if( status ) return errno;
21335
21336         /* give thread a chance to complete */
21337         /* it should remain joinable and hence detachable */
21338         sleep( 1 );
21339
21340         status = pthread_detach( &t );
21341         if( status ) return errno;
21342 #endif
21343
21344 #ifdef HAVE_LINUX_THREADS
21345         pthread_kill_other_threads_np();
21346 #endif
21347
21348         return 0;
21349
21350   ;
21351   return 0;
21352 }
21353 _ACEOF
21354 rm -f conftest.$ac_objext conftest$ac_exeext
21355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21356   (eval $ac_link) 2>conftest.er1
21357   ac_status=$?
21358   grep -v '^ *+' conftest.er1 >conftest.err
21359   rm -f conftest.er1
21360   cat conftest.err >&5
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } &&
21363          { ac_try='test -z "$ac_c_werror_flag"
21364                          || test ! -s conftest.err'
21365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366   (eval $ac_try) 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; } &&
21370          { ac_try='test -s conftest$ac_exeext'
21371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372   (eval $ac_try) 2>&5
21373   ac_status=$?
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); }; }; then
21376   ol_cv_pthread_pthreads=yes
21377 else
21378   echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381 ol_cv_pthread_pthreads=no
21382 fi
21383 rm -f conftest.err conftest.$ac_objext \
21384       conftest$ac_exeext conftest.$ac_ext
21385 else
21386   cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h.  */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h.  */
21392
21393 /* pthread test headers */
21394 #include <pthread.h>
21395 #if HAVE_PTHREADS < 7
21396 #include <errno.h>
21397 #endif
21398 #ifndef NULL
21399 #define NULL (void*)0
21400 #endif
21401
21402 static void *task(p)
21403         void *p;
21404 {
21405         return (void *) (p == NULL);
21406 }
21407
21408
21409 int main(argc, argv)
21410         int argc;
21411         char **argv;
21412 {
21413
21414         /* pthread test function */
21415 #ifndef PTHREAD_CREATE_DETACHED
21416 #define PTHREAD_CREATE_DETACHED 1
21417 #endif
21418         pthread_t t;
21419         int status;
21420         int detach = PTHREAD_CREATE_DETACHED;
21421
21422 #if HAVE_PTHREADS > 4
21423         /* Final pthreads */
21424         pthread_attr_t attr;
21425
21426         status = pthread_attr_init(&attr);
21427         if( status ) return status;
21428
21429 #if HAVE_PTHREADS < 7
21430         status = pthread_attr_setdetachstate(&attr, &detach);
21431         if( status < 0 ) status = errno;
21432 #else
21433         status = pthread_attr_setdetachstate(&attr, detach);
21434 #endif
21435         if( status ) return status;
21436         status = pthread_create( &t, &attr, task, NULL );
21437 #if HAVE_PTHREADS < 7
21438         if( status < 0 ) status = errno;
21439 #endif
21440         if( status ) return status;
21441 #else
21442         /* Draft 4 pthreads */
21443         status = pthread_create( &t, pthread_attr_default, task, NULL );
21444         if( status ) return errno;
21445
21446         /* give thread a chance to complete */
21447         /* it should remain joinable and hence detachable */
21448         sleep( 1 );
21449
21450         status = pthread_detach( &t );
21451         if( status ) return errno;
21452 #endif
21453
21454 #ifdef HAVE_LINUX_THREADS
21455         pthread_kill_other_threads_np();
21456 #endif
21457
21458         return 0;
21459
21460 }
21461
21462 _ACEOF
21463 rm -f conftest$ac_exeext
21464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21465   (eval $ac_link) 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470   (eval $ac_try) 2>&5
21471   ac_status=$?
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); }; }; then
21474   ol_cv_pthread_pthreads=yes
21475 else
21476   echo "$as_me: program exited with status $ac_status" >&5
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480 ( exit $ac_status )
21481 ol_cv_pthread_pthreads=no
21482 fi
21483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21484 fi
21485
21486                 # restore the LIBS
21487                 LIBS="$ol_LIBS"
21488
21489 fi
21490 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21491 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21492
21493         if test $ol_cv_pthread_pthreads = yes ; then
21494                 ol_link_pthreads="-pthreads"
21495                 ol_link_threads=posix
21496         fi
21497 fi
21498
21499                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21500 if test "$ol_link_threads" = no ; then
21501         # try -mthreads
21502         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21503 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21504 if test "${ol_cv_pthread_mthreads+set}" = set; then
21505   echo $ECHO_N "(cached) $ECHO_C" >&6
21506 else
21507
21508                 # save the flags
21509                 ol_LIBS="$LIBS"
21510                 LIBS="-mthreads $LIBS"
21511
21512                 if test "$cross_compiling" = yes; then
21513   cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h.  */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h.  */
21519
21520 /* pthread test headers */
21521 #include <pthread.h>
21522 #if HAVE_PTHREADS < 7
21523 #include <errno.h>
21524 #endif
21525 #ifndef NULL
21526 #define NULL (void*)0
21527 #endif
21528
21529 static void *task(p)
21530         void *p;
21531 {
21532         return (void *) (p == NULL);
21533 }
21534
21535 int
21536 main ()
21537 {
21538
21539         /* pthread test function */
21540 #ifndef PTHREAD_CREATE_DETACHED
21541 #define PTHREAD_CREATE_DETACHED 1
21542 #endif
21543         pthread_t t;
21544         int status;
21545         int detach = PTHREAD_CREATE_DETACHED;
21546
21547 #if HAVE_PTHREADS > 4
21548         /* Final pthreads */
21549         pthread_attr_t attr;
21550
21551         status = pthread_attr_init(&attr);
21552         if( status ) return status;
21553
21554 #if HAVE_PTHREADS < 7
21555         status = pthread_attr_setdetachstate(&attr, &detach);
21556         if( status < 0 ) status = errno;
21557 #else
21558         status = pthread_attr_setdetachstate(&attr, detach);
21559 #endif
21560         if( status ) return status;
21561         status = pthread_create( &t, &attr, task, NULL );
21562 #if HAVE_PTHREADS < 7
21563         if( status < 0 ) status = errno;
21564 #endif
21565         if( status ) return status;
21566 #else
21567         /* Draft 4 pthreads */
21568         status = pthread_create( &t, pthread_attr_default, task, NULL );
21569         if( status ) return errno;
21570
21571         /* give thread a chance to complete */
21572         /* it should remain joinable and hence detachable */
21573         sleep( 1 );
21574
21575         status = pthread_detach( &t );
21576         if( status ) return errno;
21577 #endif
21578
21579 #ifdef HAVE_LINUX_THREADS
21580         pthread_kill_other_threads_np();
21581 #endif
21582
21583         return 0;
21584
21585   ;
21586   return 0;
21587 }
21588 _ACEOF
21589 rm -f conftest.$ac_objext conftest$ac_exeext
21590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21591   (eval $ac_link) 2>conftest.er1
21592   ac_status=$?
21593   grep -v '^ *+' conftest.er1 >conftest.err
21594   rm -f conftest.er1
21595   cat conftest.err >&5
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); } &&
21598          { ac_try='test -z "$ac_c_werror_flag"
21599                          || test ! -s conftest.err'
21600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601   (eval $ac_try) 2>&5
21602   ac_status=$?
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); }; } &&
21605          { ac_try='test -s conftest$ac_exeext'
21606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607   (eval $ac_try) 2>&5
21608   ac_status=$?
21609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610   (exit $ac_status); }; }; then
21611   ol_cv_pthread_mthreads=yes
21612 else
21613   echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 ol_cv_pthread_mthreads=no
21617 fi
21618 rm -f conftest.err conftest.$ac_objext \
21619       conftest$ac_exeext conftest.$ac_ext
21620 else
21621   cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627
21628 /* pthread test headers */
21629 #include <pthread.h>
21630 #if HAVE_PTHREADS < 7
21631 #include <errno.h>
21632 #endif
21633 #ifndef NULL
21634 #define NULL (void*)0
21635 #endif
21636
21637 static void *task(p)
21638         void *p;
21639 {
21640         return (void *) (p == NULL);
21641 }
21642
21643
21644 int main(argc, argv)
21645         int argc;
21646         char **argv;
21647 {
21648
21649         /* pthread test function */
21650 #ifndef PTHREAD_CREATE_DETACHED
21651 #define PTHREAD_CREATE_DETACHED 1
21652 #endif
21653         pthread_t t;
21654         int status;
21655         int detach = PTHREAD_CREATE_DETACHED;
21656
21657 #if HAVE_PTHREADS > 4
21658         /* Final pthreads */
21659         pthread_attr_t attr;
21660
21661         status = pthread_attr_init(&attr);
21662         if( status ) return status;
21663
21664 #if HAVE_PTHREADS < 7
21665         status = pthread_attr_setdetachstate(&attr, &detach);
21666         if( status < 0 ) status = errno;
21667 #else
21668         status = pthread_attr_setdetachstate(&attr, detach);
21669 #endif
21670         if( status ) return status;
21671         status = pthread_create( &t, &attr, task, NULL );
21672 #if HAVE_PTHREADS < 7
21673         if( status < 0 ) status = errno;
21674 #endif
21675         if( status ) return status;
21676 #else
21677         /* Draft 4 pthreads */
21678         status = pthread_create( &t, pthread_attr_default, task, NULL );
21679         if( status ) return errno;
21680
21681         /* give thread a chance to complete */
21682         /* it should remain joinable and hence detachable */
21683         sleep( 1 );
21684
21685         status = pthread_detach( &t );
21686         if( status ) return errno;
21687 #endif
21688
21689 #ifdef HAVE_LINUX_THREADS
21690         pthread_kill_other_threads_np();
21691 #endif
21692
21693         return 0;
21694
21695 }
21696
21697 _ACEOF
21698 rm -f conftest$ac_exeext
21699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21700   (eval $ac_link) 2>&5
21701   ac_status=$?
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705   (eval $ac_try) 2>&5
21706   ac_status=$?
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); }; }; then
21709   ol_cv_pthread_mthreads=yes
21710 else
21711   echo "$as_me: program exited with status $ac_status" >&5
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21714
21715 ( exit $ac_status )
21716 ol_cv_pthread_mthreads=no
21717 fi
21718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21719 fi
21720
21721                 # restore the LIBS
21722                 LIBS="$ol_LIBS"
21723
21724 fi
21725 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21726 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21727
21728         if test $ol_cv_pthread_mthreads = yes ; then
21729                 ol_link_pthreads="-mthreads"
21730                 ol_link_threads=posix
21731         fi
21732 fi
21733
21734                 # Pthread try link: -thread (ol_cv_pthread_thread)
21735 if test "$ol_link_threads" = no ; then
21736         # try -thread
21737         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21738 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21739 if test "${ol_cv_pthread_thread+set}" = set; then
21740   echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742
21743                 # save the flags
21744                 ol_LIBS="$LIBS"
21745                 LIBS="-thread $LIBS"
21746
21747                 if test "$cross_compiling" = yes; then
21748   cat >conftest.$ac_ext <<_ACEOF
21749 /* confdefs.h.  */
21750 _ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h.  */
21754
21755 /* pthread test headers */
21756 #include <pthread.h>
21757 #if HAVE_PTHREADS < 7
21758 #include <errno.h>
21759 #endif
21760 #ifndef NULL
21761 #define NULL (void*)0
21762 #endif
21763
21764 static void *task(p)
21765         void *p;
21766 {
21767         return (void *) (p == NULL);
21768 }
21769
21770 int
21771 main ()
21772 {
21773
21774         /* pthread test function */
21775 #ifndef PTHREAD_CREATE_DETACHED
21776 #define PTHREAD_CREATE_DETACHED 1
21777 #endif
21778         pthread_t t;
21779         int status;
21780         int detach = PTHREAD_CREATE_DETACHED;
21781
21782 #if HAVE_PTHREADS > 4
21783         /* Final pthreads */
21784         pthread_attr_t attr;
21785
21786         status = pthread_attr_init(&attr);
21787         if( status ) return status;
21788
21789 #if HAVE_PTHREADS < 7
21790         status = pthread_attr_setdetachstate(&attr, &detach);
21791         if( status < 0 ) status = errno;
21792 #else
21793         status = pthread_attr_setdetachstate(&attr, detach);
21794 #endif
21795         if( status ) return status;
21796         status = pthread_create( &t, &attr, task, NULL );
21797 #if HAVE_PTHREADS < 7
21798         if( status < 0 ) status = errno;
21799 #endif
21800         if( status ) return status;
21801 #else
21802         /* Draft 4 pthreads */
21803         status = pthread_create( &t, pthread_attr_default, task, NULL );
21804         if( status ) return errno;
21805
21806         /* give thread a chance to complete */
21807         /* it should remain joinable and hence detachable */
21808         sleep( 1 );
21809
21810         status = pthread_detach( &t );
21811         if( status ) return errno;
21812 #endif
21813
21814 #ifdef HAVE_LINUX_THREADS
21815         pthread_kill_other_threads_np();
21816 #endif
21817
21818         return 0;
21819
21820   ;
21821   return 0;
21822 }
21823 _ACEOF
21824 rm -f conftest.$ac_objext conftest$ac_exeext
21825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21826   (eval $ac_link) 2>conftest.er1
21827   ac_status=$?
21828   grep -v '^ *+' conftest.er1 >conftest.err
21829   rm -f conftest.er1
21830   cat conftest.err >&5
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); } &&
21833          { ac_try='test -z "$ac_c_werror_flag"
21834                          || test ! -s conftest.err'
21835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21836   (eval $ac_try) 2>&5
21837   ac_status=$?
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); }; } &&
21840          { ac_try='test -s conftest$ac_exeext'
21841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21842   (eval $ac_try) 2>&5
21843   ac_status=$?
21844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845   (exit $ac_status); }; }; then
21846   ol_cv_pthread_thread=yes
21847 else
21848   echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21850
21851 ol_cv_pthread_thread=no
21852 fi
21853 rm -f conftest.err conftest.$ac_objext \
21854       conftest$ac_exeext conftest.$ac_ext
21855 else
21856   cat >conftest.$ac_ext <<_ACEOF
21857 /* confdefs.h.  */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h.  */
21862
21863 /* pthread test headers */
21864 #include <pthread.h>
21865 #if HAVE_PTHREADS < 7
21866 #include <errno.h>
21867 #endif
21868 #ifndef NULL
21869 #define NULL (void*)0
21870 #endif
21871
21872 static void *task(p)
21873         void *p;
21874 {
21875         return (void *) (p == NULL);
21876 }
21877
21878
21879 int main(argc, argv)
21880         int argc;
21881         char **argv;
21882 {
21883
21884         /* pthread test function */
21885 #ifndef PTHREAD_CREATE_DETACHED
21886 #define PTHREAD_CREATE_DETACHED 1
21887 #endif
21888         pthread_t t;
21889         int status;
21890         int detach = PTHREAD_CREATE_DETACHED;
21891
21892 #if HAVE_PTHREADS > 4
21893         /* Final pthreads */
21894         pthread_attr_t attr;
21895
21896         status = pthread_attr_init(&attr);
21897         if( status ) return status;
21898
21899 #if HAVE_PTHREADS < 7
21900         status = pthread_attr_setdetachstate(&attr, &detach);
21901         if( status < 0 ) status = errno;
21902 #else
21903         status = pthread_attr_setdetachstate(&attr, detach);
21904 #endif
21905         if( status ) return status;
21906         status = pthread_create( &t, &attr, task, NULL );
21907 #if HAVE_PTHREADS < 7
21908         if( status < 0 ) status = errno;
21909 #endif
21910         if( status ) return status;
21911 #else
21912         /* Draft 4 pthreads */
21913         status = pthread_create( &t, pthread_attr_default, task, NULL );
21914         if( status ) return errno;
21915
21916         /* give thread a chance to complete */
21917         /* it should remain joinable and hence detachable */
21918         sleep( 1 );
21919
21920         status = pthread_detach( &t );
21921         if( status ) return errno;
21922 #endif
21923
21924 #ifdef HAVE_LINUX_THREADS
21925         pthread_kill_other_threads_np();
21926 #endif
21927
21928         return 0;
21929
21930 }
21931
21932 _ACEOF
21933 rm -f conftest$ac_exeext
21934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21935   (eval $ac_link) 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940   (eval $ac_try) 2>&5
21941   ac_status=$?
21942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943   (exit $ac_status); }; }; then
21944   ol_cv_pthread_thread=yes
21945 else
21946   echo "$as_me: program exited with status $ac_status" >&5
21947 echo "$as_me: failed program was:" >&5
21948 sed 's/^/| /' conftest.$ac_ext >&5
21949
21950 ( exit $ac_status )
21951 ol_cv_pthread_thread=no
21952 fi
21953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21954 fi
21955
21956                 # restore the LIBS
21957                 LIBS="$ol_LIBS"
21958
21959 fi
21960 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21961 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21962
21963         if test $ol_cv_pthread_thread = yes ; then
21964                 ol_link_pthreads="-thread"
21965                 ol_link_threads=posix
21966         fi
21967 fi
21968
21969
21970                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21971 if test "$ol_link_threads" = no ; then
21972         # try -lpthread -lmach -lexc -lc_r
21973         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21974 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21975 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21976   echo $ECHO_N "(cached) $ECHO_C" >&6
21977 else
21978
21979                 # save the flags
21980                 ol_LIBS="$LIBS"
21981                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21982
21983                 if test "$cross_compiling" = yes; then
21984   cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h.  */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h.  */
21990
21991 /* pthread test headers */
21992 #include <pthread.h>
21993 #if HAVE_PTHREADS < 7
21994 #include <errno.h>
21995 #endif
21996 #ifndef NULL
21997 #define NULL (void*)0
21998 #endif
21999
22000 static void *task(p)
22001         void *p;
22002 {
22003         return (void *) (p == NULL);
22004 }
22005
22006 int
22007 main ()
22008 {
22009
22010         /* pthread test function */
22011 #ifndef PTHREAD_CREATE_DETACHED
22012 #define PTHREAD_CREATE_DETACHED 1
22013 #endif
22014         pthread_t t;
22015         int status;
22016         int detach = PTHREAD_CREATE_DETACHED;
22017
22018 #if HAVE_PTHREADS > 4
22019         /* Final pthreads */
22020         pthread_attr_t attr;
22021
22022         status = pthread_attr_init(&attr);
22023         if( status ) return status;
22024
22025 #if HAVE_PTHREADS < 7
22026         status = pthread_attr_setdetachstate(&attr, &detach);
22027         if( status < 0 ) status = errno;
22028 #else
22029         status = pthread_attr_setdetachstate(&attr, detach);
22030 #endif
22031         if( status ) return status;
22032         status = pthread_create( &t, &attr, task, NULL );
22033 #if HAVE_PTHREADS < 7
22034         if( status < 0 ) status = errno;
22035 #endif
22036         if( status ) return status;
22037 #else
22038         /* Draft 4 pthreads */
22039         status = pthread_create( &t, pthread_attr_default, task, NULL );
22040         if( status ) return errno;
22041
22042         /* give thread a chance to complete */
22043         /* it should remain joinable and hence detachable */
22044         sleep( 1 );
22045
22046         status = pthread_detach( &t );
22047         if( status ) return errno;
22048 #endif
22049
22050 #ifdef HAVE_LINUX_THREADS
22051         pthread_kill_other_threads_np();
22052 #endif
22053
22054         return 0;
22055
22056   ;
22057   return 0;
22058 }
22059 _ACEOF
22060 rm -f conftest.$ac_objext conftest$ac_exeext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22062   (eval $ac_link) 2>conftest.er1
22063   ac_status=$?
22064   grep -v '^ *+' conftest.er1 >conftest.err
22065   rm -f conftest.er1
22066   cat conftest.err >&5
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); } &&
22069          { ac_try='test -z "$ac_c_werror_flag"
22070                          || test ! -s conftest.err'
22071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072   (eval $ac_try) 2>&5
22073   ac_status=$?
22074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075   (exit $ac_status); }; } &&
22076          { ac_try='test -s conftest$ac_exeext'
22077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078   (eval $ac_try) 2>&5
22079   ac_status=$?
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); }; }; then
22082   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22088 fi
22089 rm -f conftest.err conftest.$ac_objext \
22090       conftest$ac_exeext conftest.$ac_ext
22091 else
22092   cat >conftest.$ac_ext <<_ACEOF
22093 /* confdefs.h.  */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h.  */
22098
22099 /* pthread test headers */
22100 #include <pthread.h>
22101 #if HAVE_PTHREADS < 7
22102 #include <errno.h>
22103 #endif
22104 #ifndef NULL
22105 #define NULL (void*)0
22106 #endif
22107
22108 static void *task(p)
22109         void *p;
22110 {
22111         return (void *) (p == NULL);
22112 }
22113
22114
22115 int main(argc, argv)
22116         int argc;
22117         char **argv;
22118 {
22119
22120         /* pthread test function */
22121 #ifndef PTHREAD_CREATE_DETACHED
22122 #define PTHREAD_CREATE_DETACHED 1
22123 #endif
22124         pthread_t t;
22125         int status;
22126         int detach = PTHREAD_CREATE_DETACHED;
22127
22128 #if HAVE_PTHREADS > 4
22129         /* Final pthreads */
22130         pthread_attr_t attr;
22131
22132         status = pthread_attr_init(&attr);
22133         if( status ) return status;
22134
22135 #if HAVE_PTHREADS < 7
22136         status = pthread_attr_setdetachstate(&attr, &detach);
22137         if( status < 0 ) status = errno;
22138 #else
22139         status = pthread_attr_setdetachstate(&attr, detach);
22140 #endif
22141         if( status ) return status;
22142         status = pthread_create( &t, &attr, task, NULL );
22143 #if HAVE_PTHREADS < 7
22144         if( status < 0 ) status = errno;
22145 #endif
22146         if( status ) return status;
22147 #else
22148         /* Draft 4 pthreads */
22149         status = pthread_create( &t, pthread_attr_default, task, NULL );
22150         if( status ) return errno;
22151
22152         /* give thread a chance to complete */
22153         /* it should remain joinable and hence detachable */
22154         sleep( 1 );
22155
22156         status = pthread_detach( &t );
22157         if( status ) return errno;
22158 #endif
22159
22160 #ifdef HAVE_LINUX_THREADS
22161         pthread_kill_other_threads_np();
22162 #endif
22163
22164         return 0;
22165
22166 }
22167
22168 _ACEOF
22169 rm -f conftest$ac_exeext
22170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22171   (eval $ac_link) 2>&5
22172   ac_status=$?
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176   (eval $ac_try) 2>&5
22177   ac_status=$?
22178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179   (exit $ac_status); }; }; then
22180   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22181 else
22182   echo "$as_me: program exited with status $ac_status" >&5
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22185
22186 ( exit $ac_status )
22187 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22188 fi
22189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22190 fi
22191
22192                 # restore the LIBS
22193                 LIBS="$ol_LIBS"
22194
22195 fi
22196 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22197 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22198
22199         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22200                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22201                 ol_link_threads=posix
22202         fi
22203 fi
22204
22205                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22206 if test "$ol_link_threads" = no ; then
22207         # try -lpthread -lmach -lexc
22208         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22209 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22210 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22211   echo $ECHO_N "(cached) $ECHO_C" >&6
22212 else
22213
22214                 # save the flags
22215                 ol_LIBS="$LIBS"
22216                 LIBS="-lpthread -lmach -lexc $LIBS"
22217
22218                 if test "$cross_compiling" = yes; then
22219   cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h.  */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h.  */
22225
22226 /* pthread test headers */
22227 #include <pthread.h>
22228 #if HAVE_PTHREADS < 7
22229 #include <errno.h>
22230 #endif
22231 #ifndef NULL
22232 #define NULL (void*)0
22233 #endif
22234
22235 static void *task(p)
22236         void *p;
22237 {
22238         return (void *) (p == NULL);
22239 }
22240
22241 int
22242 main ()
22243 {
22244
22245         /* pthread test function */
22246 #ifndef PTHREAD_CREATE_DETACHED
22247 #define PTHREAD_CREATE_DETACHED 1
22248 #endif
22249         pthread_t t;
22250         int status;
22251         int detach = PTHREAD_CREATE_DETACHED;
22252
22253 #if HAVE_PTHREADS > 4
22254         /* Final pthreads */
22255         pthread_attr_t attr;
22256
22257         status = pthread_attr_init(&attr);
22258         if( status ) return status;
22259
22260 #if HAVE_PTHREADS < 7
22261         status = pthread_attr_setdetachstate(&attr, &detach);
22262         if( status < 0 ) status = errno;
22263 #else
22264         status = pthread_attr_setdetachstate(&attr, detach);
22265 #endif
22266         if( status ) return status;
22267         status = pthread_create( &t, &attr, task, NULL );
22268 #if HAVE_PTHREADS < 7
22269         if( status < 0 ) status = errno;
22270 #endif
22271         if( status ) return status;
22272 #else
22273         /* Draft 4 pthreads */
22274         status = pthread_create( &t, pthread_attr_default, task, NULL );
22275         if( status ) return errno;
22276
22277         /* give thread a chance to complete */
22278         /* it should remain joinable and hence detachable */
22279         sleep( 1 );
22280
22281         status = pthread_detach( &t );
22282         if( status ) return errno;
22283 #endif
22284
22285 #ifdef HAVE_LINUX_THREADS
22286         pthread_kill_other_threads_np();
22287 #endif
22288
22289         return 0;
22290
22291   ;
22292   return 0;
22293 }
22294 _ACEOF
22295 rm -f conftest.$ac_objext conftest$ac_exeext
22296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22297   (eval $ac_link) 2>conftest.er1
22298   ac_status=$?
22299   grep -v '^ *+' conftest.er1 >conftest.err
22300   rm -f conftest.er1
22301   cat conftest.err >&5
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); } &&
22304          { ac_try='test -z "$ac_c_werror_flag"
22305                          || test ! -s conftest.err'
22306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307   (eval $ac_try) 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); }; } &&
22311          { ac_try='test -s conftest$ac_exeext'
22312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313   (eval $ac_try) 2>&5
22314   ac_status=$?
22315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316   (exit $ac_status); }; }; then
22317   ol_cv_pthread_lpthread_lmach_lexc=yes
22318 else
22319   echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22321
22322 ol_cv_pthread_lpthread_lmach_lexc=no
22323 fi
22324 rm -f conftest.err conftest.$ac_objext \
22325       conftest$ac_exeext conftest.$ac_ext
22326 else
22327   cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h.  */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h.  */
22333
22334 /* pthread test headers */
22335 #include <pthread.h>
22336 #if HAVE_PTHREADS < 7
22337 #include <errno.h>
22338 #endif
22339 #ifndef NULL
22340 #define NULL (void*)0
22341 #endif
22342
22343 static void *task(p)
22344         void *p;
22345 {
22346         return (void *) (p == NULL);
22347 }
22348
22349
22350 int main(argc, argv)
22351         int argc;
22352         char **argv;
22353 {
22354
22355         /* pthread test function */
22356 #ifndef PTHREAD_CREATE_DETACHED
22357 #define PTHREAD_CREATE_DETACHED 1
22358 #endif
22359         pthread_t t;
22360         int status;
22361         int detach = PTHREAD_CREATE_DETACHED;
22362
22363 #if HAVE_PTHREADS > 4
22364         /* Final pthreads */
22365         pthread_attr_t attr;
22366
22367         status = pthread_attr_init(&attr);
22368         if( status ) return status;
22369
22370 #if HAVE_PTHREADS < 7
22371         status = pthread_attr_setdetachstate(&attr, &detach);
22372         if( status < 0 ) status = errno;
22373 #else
22374         status = pthread_attr_setdetachstate(&attr, detach);
22375 #endif
22376         if( status ) return status;
22377         status = pthread_create( &t, &attr, task, NULL );
22378 #if HAVE_PTHREADS < 7
22379         if( status < 0 ) status = errno;
22380 #endif
22381         if( status ) return status;
22382 #else
22383         /* Draft 4 pthreads */
22384         status = pthread_create( &t, pthread_attr_default, task, NULL );
22385         if( status ) return errno;
22386
22387         /* give thread a chance to complete */
22388         /* it should remain joinable and hence detachable */
22389         sleep( 1 );
22390
22391         status = pthread_detach( &t );
22392         if( status ) return errno;
22393 #endif
22394
22395 #ifdef HAVE_LINUX_THREADS
22396         pthread_kill_other_threads_np();
22397 #endif
22398
22399         return 0;
22400
22401 }
22402
22403 _ACEOF
22404 rm -f conftest$ac_exeext
22405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22406   (eval $ac_link) 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411   (eval $ac_try) 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }; }; then
22415   ol_cv_pthread_lpthread_lmach_lexc=yes
22416 else
22417   echo "$as_me: program exited with status $ac_status" >&5
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
22421 ( exit $ac_status )
22422 ol_cv_pthread_lpthread_lmach_lexc=no
22423 fi
22424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22425 fi
22426
22427                 # restore the LIBS
22428                 LIBS="$ol_LIBS"
22429
22430 fi
22431 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22432 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22433
22434         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22435                 ol_link_pthreads="-lpthread -lmach -lexc"
22436                 ol_link_threads=posix
22437         fi
22438 fi
22439
22440
22441                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22442 if test "$ol_link_threads" = no ; then
22443         # try -lpthread -Wl,-woff,85
22444         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22445 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22446 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22447   echo $ECHO_N "(cached) $ECHO_C" >&6
22448 else
22449
22450                 # save the flags
22451                 ol_LIBS="$LIBS"
22452                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22453
22454                 if test "$cross_compiling" = yes; then
22455   cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h.  */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h.  */
22461
22462 /* pthread test headers */
22463 #include <pthread.h>
22464 #if HAVE_PTHREADS < 7
22465 #include <errno.h>
22466 #endif
22467 #ifndef NULL
22468 #define NULL (void*)0
22469 #endif
22470
22471 static void *task(p)
22472         void *p;
22473 {
22474         return (void *) (p == NULL);
22475 }
22476
22477 int
22478 main ()
22479 {
22480
22481         /* pthread test function */
22482 #ifndef PTHREAD_CREATE_DETACHED
22483 #define PTHREAD_CREATE_DETACHED 1
22484 #endif
22485         pthread_t t;
22486         int status;
22487         int detach = PTHREAD_CREATE_DETACHED;
22488
22489 #if HAVE_PTHREADS > 4
22490         /* Final pthreads */
22491         pthread_attr_t attr;
22492
22493         status = pthread_attr_init(&attr);
22494         if( status ) return status;
22495
22496 #if HAVE_PTHREADS < 7
22497         status = pthread_attr_setdetachstate(&attr, &detach);
22498         if( status < 0 ) status = errno;
22499 #else
22500         status = pthread_attr_setdetachstate(&attr, detach);
22501 #endif
22502         if( status ) return status;
22503         status = pthread_create( &t, &attr, task, NULL );
22504 #if HAVE_PTHREADS < 7
22505         if( status < 0 ) status = errno;
22506 #endif
22507         if( status ) return status;
22508 #else
22509         /* Draft 4 pthreads */
22510         status = pthread_create( &t, pthread_attr_default, task, NULL );
22511         if( status ) return errno;
22512
22513         /* give thread a chance to complete */
22514         /* it should remain joinable and hence detachable */
22515         sleep( 1 );
22516
22517         status = pthread_detach( &t );
22518         if( status ) return errno;
22519 #endif
22520
22521 #ifdef HAVE_LINUX_THREADS
22522         pthread_kill_other_threads_np();
22523 #endif
22524
22525         return 0;
22526
22527   ;
22528   return 0;
22529 }
22530 _ACEOF
22531 rm -f conftest.$ac_objext conftest$ac_exeext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533   (eval $ac_link) 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } &&
22540          { ac_try='test -z "$ac_c_werror_flag"
22541                          || test ! -s conftest.err'
22542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543   (eval $ac_try) 2>&5
22544   ac_status=$?
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); }; } &&
22547          { ac_try='test -s conftest$ac_exeext'
22548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549   (eval $ac_try) 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); }; }; then
22553   ol_cv_pthread_lib_lpthread_woff=yes
22554 else
22555   echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558 ol_cv_pthread_lib_lpthread_woff=no
22559 fi
22560 rm -f conftest.err conftest.$ac_objext \
22561       conftest$ac_exeext conftest.$ac_ext
22562 else
22563   cat >conftest.$ac_ext <<_ACEOF
22564 /* confdefs.h.  */
22565 _ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h.  */
22569
22570 /* pthread test headers */
22571 #include <pthread.h>
22572 #if HAVE_PTHREADS < 7
22573 #include <errno.h>
22574 #endif
22575 #ifndef NULL
22576 #define NULL (void*)0
22577 #endif
22578
22579 static void *task(p)
22580         void *p;
22581 {
22582         return (void *) (p == NULL);
22583 }
22584
22585
22586 int main(argc, argv)
22587         int argc;
22588         char **argv;
22589 {
22590
22591         /* pthread test function */
22592 #ifndef PTHREAD_CREATE_DETACHED
22593 #define PTHREAD_CREATE_DETACHED 1
22594 #endif
22595         pthread_t t;
22596         int status;
22597         int detach = PTHREAD_CREATE_DETACHED;
22598
22599 #if HAVE_PTHREADS > 4
22600         /* Final pthreads */
22601         pthread_attr_t attr;
22602
22603         status = pthread_attr_init(&attr);
22604         if( status ) return status;
22605
22606 #if HAVE_PTHREADS < 7
22607         status = pthread_attr_setdetachstate(&attr, &detach);
22608         if( status < 0 ) status = errno;
22609 #else
22610         status = pthread_attr_setdetachstate(&attr, detach);
22611 #endif
22612         if( status ) return status;
22613         status = pthread_create( &t, &attr, task, NULL );
22614 #if HAVE_PTHREADS < 7
22615         if( status < 0 ) status = errno;
22616 #endif
22617         if( status ) return status;
22618 #else
22619         /* Draft 4 pthreads */
22620         status = pthread_create( &t, pthread_attr_default, task, NULL );
22621         if( status ) return errno;
22622
22623         /* give thread a chance to complete */
22624         /* it should remain joinable and hence detachable */
22625         sleep( 1 );
22626
22627         status = pthread_detach( &t );
22628         if( status ) return errno;
22629 #endif
22630
22631 #ifdef HAVE_LINUX_THREADS
22632         pthread_kill_other_threads_np();
22633 #endif
22634
22635         return 0;
22636
22637 }
22638
22639 _ACEOF
22640 rm -f conftest$ac_exeext
22641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22642   (eval $ac_link) 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22647   (eval $ac_try) 2>&5
22648   ac_status=$?
22649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650   (exit $ac_status); }; }; then
22651   ol_cv_pthread_lib_lpthread_woff=yes
22652 else
22653   echo "$as_me: program exited with status $ac_status" >&5
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22656
22657 ( exit $ac_status )
22658 ol_cv_pthread_lib_lpthread_woff=no
22659 fi
22660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22661 fi
22662
22663                 # restore the LIBS
22664                 LIBS="$ol_LIBS"
22665
22666 fi
22667 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22668 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22669
22670         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22671                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22672                 ol_link_threads=posix
22673         fi
22674 fi
22675
22676
22677                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22678 if test "$ol_link_threads" = no ; then
22679         # try -lpthread
22680         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22681 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22682 if test "${ol_cv_pthread_lpthread+set}" = set; then
22683   echo $ECHO_N "(cached) $ECHO_C" >&6
22684 else
22685
22686                 # save the flags
22687                 ol_LIBS="$LIBS"
22688                 LIBS="-lpthread $LIBS"
22689
22690                 if test "$cross_compiling" = yes; then
22691   cat >conftest.$ac_ext <<_ACEOF
22692 /* confdefs.h.  */
22693 _ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h.  */
22697
22698 /* pthread test headers */
22699 #include <pthread.h>
22700 #if HAVE_PTHREADS < 7
22701 #include <errno.h>
22702 #endif
22703 #ifndef NULL
22704 #define NULL (void*)0
22705 #endif
22706
22707 static void *task(p)
22708         void *p;
22709 {
22710         return (void *) (p == NULL);
22711 }
22712
22713 int
22714 main ()
22715 {
22716
22717         /* pthread test function */
22718 #ifndef PTHREAD_CREATE_DETACHED
22719 #define PTHREAD_CREATE_DETACHED 1
22720 #endif
22721         pthread_t t;
22722         int status;
22723         int detach = PTHREAD_CREATE_DETACHED;
22724
22725 #if HAVE_PTHREADS > 4
22726         /* Final pthreads */
22727         pthread_attr_t attr;
22728
22729         status = pthread_attr_init(&attr);
22730         if( status ) return status;
22731
22732 #if HAVE_PTHREADS < 7
22733         status = pthread_attr_setdetachstate(&attr, &detach);
22734         if( status < 0 ) status = errno;
22735 #else
22736         status = pthread_attr_setdetachstate(&attr, detach);
22737 #endif
22738         if( status ) return status;
22739         status = pthread_create( &t, &attr, task, NULL );
22740 #if HAVE_PTHREADS < 7
22741         if( status < 0 ) status = errno;
22742 #endif
22743         if( status ) return status;
22744 #else
22745         /* Draft 4 pthreads */
22746         status = pthread_create( &t, pthread_attr_default, task, NULL );
22747         if( status ) return errno;
22748
22749         /* give thread a chance to complete */
22750         /* it should remain joinable and hence detachable */
22751         sleep( 1 );
22752
22753         status = pthread_detach( &t );
22754         if( status ) return errno;
22755 #endif
22756
22757 #ifdef HAVE_LINUX_THREADS
22758         pthread_kill_other_threads_np();
22759 #endif
22760
22761         return 0;
22762
22763   ;
22764   return 0;
22765 }
22766 _ACEOF
22767 rm -f conftest.$ac_objext conftest$ac_exeext
22768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22769   (eval $ac_link) 2>conftest.er1
22770   ac_status=$?
22771   grep -v '^ *+' conftest.er1 >conftest.err
22772   rm -f conftest.er1
22773   cat conftest.err >&5
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } &&
22776          { ac_try='test -z "$ac_c_werror_flag"
22777                          || test ! -s conftest.err'
22778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779   (eval $ac_try) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }; } &&
22783          { ac_try='test -s conftest$ac_exeext'
22784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785   (eval $ac_try) 2>&5
22786   ac_status=$?
22787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788   (exit $ac_status); }; }; then
22789   ol_cv_pthread_lpthread=yes
22790 else
22791   echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794 ol_cv_pthread_lpthread=no
22795 fi
22796 rm -f conftest.err conftest.$ac_objext \
22797       conftest$ac_exeext conftest.$ac_ext
22798 else
22799   cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h.  */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h.  */
22805
22806 /* pthread test headers */
22807 #include <pthread.h>
22808 #if HAVE_PTHREADS < 7
22809 #include <errno.h>
22810 #endif
22811 #ifndef NULL
22812 #define NULL (void*)0
22813 #endif
22814
22815 static void *task(p)
22816         void *p;
22817 {
22818         return (void *) (p == NULL);
22819 }
22820
22821
22822 int main(argc, argv)
22823         int argc;
22824         char **argv;
22825 {
22826
22827         /* pthread test function */
22828 #ifndef PTHREAD_CREATE_DETACHED
22829 #define PTHREAD_CREATE_DETACHED 1
22830 #endif
22831         pthread_t t;
22832         int status;
22833         int detach = PTHREAD_CREATE_DETACHED;
22834
22835 #if HAVE_PTHREADS > 4
22836         /* Final pthreads */
22837         pthread_attr_t attr;
22838
22839         status = pthread_attr_init(&attr);
22840         if( status ) return status;
22841
22842 #if HAVE_PTHREADS < 7
22843         status = pthread_attr_setdetachstate(&attr, &detach);
22844         if( status < 0 ) status = errno;
22845 #else
22846         status = pthread_attr_setdetachstate(&attr, detach);
22847 #endif
22848         if( status ) return status;
22849         status = pthread_create( &t, &attr, task, NULL );
22850 #if HAVE_PTHREADS < 7
22851         if( status < 0 ) status = errno;
22852 #endif
22853         if( status ) return status;
22854 #else
22855         /* Draft 4 pthreads */
22856         status = pthread_create( &t, pthread_attr_default, task, NULL );
22857         if( status ) return errno;
22858
22859         /* give thread a chance to complete */
22860         /* it should remain joinable and hence detachable */
22861         sleep( 1 );
22862
22863         status = pthread_detach( &t );
22864         if( status ) return errno;
22865 #endif
22866
22867 #ifdef HAVE_LINUX_THREADS
22868         pthread_kill_other_threads_np();
22869 #endif
22870
22871         return 0;
22872
22873 }
22874
22875 _ACEOF
22876 rm -f conftest$ac_exeext
22877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22878   (eval $ac_link) 2>&5
22879   ac_status=$?
22880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883   (eval $ac_try) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); }; }; then
22887   ol_cv_pthread_lpthread=yes
22888 else
22889   echo "$as_me: program exited with status $ac_status" >&5
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893 ( exit $ac_status )
22894 ol_cv_pthread_lpthread=no
22895 fi
22896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22897 fi
22898
22899                 # restore the LIBS
22900                 LIBS="$ol_LIBS"
22901
22902 fi
22903 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22904 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22905
22906         if test $ol_cv_pthread_lpthread = yes ; then
22907                 ol_link_pthreads="-lpthread"
22908                 ol_link_threads=posix
22909         fi
22910 fi
22911
22912                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22913 if test "$ol_link_threads" = no ; then
22914         # try -lc_r
22915         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22916 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22917 if test "${ol_cv_pthread_lc_r+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920
22921                 # save the flags
22922                 ol_LIBS="$LIBS"
22923                 LIBS="-lc_r $LIBS"
22924
22925                 if test "$cross_compiling" = yes; then
22926   cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h.  */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h.  */
22932
22933 /* pthread test headers */
22934 #include <pthread.h>
22935 #if HAVE_PTHREADS < 7
22936 #include <errno.h>
22937 #endif
22938 #ifndef NULL
22939 #define NULL (void*)0
22940 #endif
22941
22942 static void *task(p)
22943         void *p;
22944 {
22945         return (void *) (p == NULL);
22946 }
22947
22948 int
22949 main ()
22950 {
22951
22952         /* pthread test function */
22953 #ifndef PTHREAD_CREATE_DETACHED
22954 #define PTHREAD_CREATE_DETACHED 1
22955 #endif
22956         pthread_t t;
22957         int status;
22958         int detach = PTHREAD_CREATE_DETACHED;
22959
22960 #if HAVE_PTHREADS > 4
22961         /* Final pthreads */
22962         pthread_attr_t attr;
22963
22964         status = pthread_attr_init(&attr);
22965         if( status ) return status;
22966
22967 #if HAVE_PTHREADS < 7
22968         status = pthread_attr_setdetachstate(&attr, &detach);
22969         if( status < 0 ) status = errno;
22970 #else
22971         status = pthread_attr_setdetachstate(&attr, detach);
22972 #endif
22973         if( status ) return status;
22974         status = pthread_create( &t, &attr, task, NULL );
22975 #if HAVE_PTHREADS < 7
22976         if( status < 0 ) status = errno;
22977 #endif
22978         if( status ) return status;
22979 #else
22980         /* Draft 4 pthreads */
22981         status = pthread_create( &t, pthread_attr_default, task, NULL );
22982         if( status ) return errno;
22983
22984         /* give thread a chance to complete */
22985         /* it should remain joinable and hence detachable */
22986         sleep( 1 );
22987
22988         status = pthread_detach( &t );
22989         if( status ) return errno;
22990 #endif
22991
22992 #ifdef HAVE_LINUX_THREADS
22993         pthread_kill_other_threads_np();
22994 #endif
22995
22996         return 0;
22997
22998   ;
22999   return 0;
23000 }
23001 _ACEOF
23002 rm -f conftest.$ac_objext conftest$ac_exeext
23003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23004   (eval $ac_link) 2>conftest.er1
23005   ac_status=$?
23006   grep -v '^ *+' conftest.er1 >conftest.err
23007   rm -f conftest.er1
23008   cat conftest.err >&5
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); } &&
23011          { ac_try='test -z "$ac_c_werror_flag"
23012                          || test ! -s conftest.err'
23013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014   (eval $ac_try) 2>&5
23015   ac_status=$?
23016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); }; } &&
23018          { ac_try='test -s conftest$ac_exeext'
23019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020   (eval $ac_try) 2>&5
23021   ac_status=$?
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); }; }; then
23024   ol_cv_pthread_lc_r=yes
23025 else
23026   echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23028
23029 ol_cv_pthread_lc_r=no
23030 fi
23031 rm -f conftest.err conftest.$ac_objext \
23032       conftest$ac_exeext conftest.$ac_ext
23033 else
23034   cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h.  */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h.  */
23040
23041 /* pthread test headers */
23042 #include <pthread.h>
23043 #if HAVE_PTHREADS < 7
23044 #include <errno.h>
23045 #endif
23046 #ifndef NULL
23047 #define NULL (void*)0
23048 #endif
23049
23050 static void *task(p)
23051         void *p;
23052 {
23053         return (void *) (p == NULL);
23054 }
23055
23056
23057 int main(argc, argv)
23058         int argc;
23059         char **argv;
23060 {
23061
23062         /* pthread test function */
23063 #ifndef PTHREAD_CREATE_DETACHED
23064 #define PTHREAD_CREATE_DETACHED 1
23065 #endif
23066         pthread_t t;
23067         int status;
23068         int detach = PTHREAD_CREATE_DETACHED;
23069
23070 #if HAVE_PTHREADS > 4
23071         /* Final pthreads */
23072         pthread_attr_t attr;
23073
23074         status = pthread_attr_init(&attr);
23075         if( status ) return status;
23076
23077 #if HAVE_PTHREADS < 7
23078         status = pthread_attr_setdetachstate(&attr, &detach);
23079         if( status < 0 ) status = errno;
23080 #else
23081         status = pthread_attr_setdetachstate(&attr, detach);
23082 #endif
23083         if( status ) return status;
23084         status = pthread_create( &t, &attr, task, NULL );
23085 #if HAVE_PTHREADS < 7
23086         if( status < 0 ) status = errno;
23087 #endif
23088         if( status ) return status;
23089 #else
23090         /* Draft 4 pthreads */
23091         status = pthread_create( &t, pthread_attr_default, task, NULL );
23092         if( status ) return errno;
23093
23094         /* give thread a chance to complete */
23095         /* it should remain joinable and hence detachable */
23096         sleep( 1 );
23097
23098         status = pthread_detach( &t );
23099         if( status ) return errno;
23100 #endif
23101
23102 #ifdef HAVE_LINUX_THREADS
23103         pthread_kill_other_threads_np();
23104 #endif
23105
23106         return 0;
23107
23108 }
23109
23110 _ACEOF
23111 rm -f conftest$ac_exeext
23112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23113   (eval $ac_link) 2>&5
23114   ac_status=$?
23115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118   (eval $ac_try) 2>&5
23119   ac_status=$?
23120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121   (exit $ac_status); }; }; then
23122   ol_cv_pthread_lc_r=yes
23123 else
23124   echo "$as_me: program exited with status $ac_status" >&5
23125 echo "$as_me: failed program was:" >&5
23126 sed 's/^/| /' conftest.$ac_ext >&5
23127
23128 ( exit $ac_status )
23129 ol_cv_pthread_lc_r=no
23130 fi
23131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23132 fi
23133
23134                 # restore the LIBS
23135                 LIBS="$ol_LIBS"
23136
23137 fi
23138 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23139 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23140
23141         if test $ol_cv_pthread_lc_r = yes ; then
23142                 ol_link_pthreads="-lc_r"
23143                 ol_link_threads=posix
23144         fi
23145 fi
23146
23147
23148                 # Pthread try link: -threads (ol_cv_pthread_threads)
23149 if test "$ol_link_threads" = no ; then
23150         # try -threads
23151         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23152 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23153 if test "${ol_cv_pthread_threads+set}" = set; then
23154   echo $ECHO_N "(cached) $ECHO_C" >&6
23155 else
23156
23157                 # save the flags
23158                 ol_LIBS="$LIBS"
23159                 LIBS="-threads $LIBS"
23160
23161                 if test "$cross_compiling" = yes; then
23162   cat >conftest.$ac_ext <<_ACEOF
23163 /* confdefs.h.  */
23164 _ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h.  */
23168
23169 /* pthread test headers */
23170 #include <pthread.h>
23171 #if HAVE_PTHREADS < 7
23172 #include <errno.h>
23173 #endif
23174 #ifndef NULL
23175 #define NULL (void*)0
23176 #endif
23177
23178 static void *task(p)
23179         void *p;
23180 {
23181         return (void *) (p == NULL);
23182 }
23183
23184 int
23185 main ()
23186 {
23187
23188         /* pthread test function */
23189 #ifndef PTHREAD_CREATE_DETACHED
23190 #define PTHREAD_CREATE_DETACHED 1
23191 #endif
23192         pthread_t t;
23193         int status;
23194         int detach = PTHREAD_CREATE_DETACHED;
23195
23196 #if HAVE_PTHREADS > 4
23197         /* Final pthreads */
23198         pthread_attr_t attr;
23199
23200         status = pthread_attr_init(&attr);
23201         if( status ) return status;
23202
23203 #if HAVE_PTHREADS < 7
23204         status = pthread_attr_setdetachstate(&attr, &detach);
23205         if( status < 0 ) status = errno;
23206 #else
23207         status = pthread_attr_setdetachstate(&attr, detach);
23208 #endif
23209         if( status ) return status;
23210         status = pthread_create( &t, &attr, task, NULL );
23211 #if HAVE_PTHREADS < 7
23212         if( status < 0 ) status = errno;
23213 #endif
23214         if( status ) return status;
23215 #else
23216         /* Draft 4 pthreads */
23217         status = pthread_create( &t, pthread_attr_default, task, NULL );
23218         if( status ) return errno;
23219
23220         /* give thread a chance to complete */
23221         /* it should remain joinable and hence detachable */
23222         sleep( 1 );
23223
23224         status = pthread_detach( &t );
23225         if( status ) return errno;
23226 #endif
23227
23228 #ifdef HAVE_LINUX_THREADS
23229         pthread_kill_other_threads_np();
23230 #endif
23231
23232         return 0;
23233
23234   ;
23235   return 0;
23236 }
23237 _ACEOF
23238 rm -f conftest.$ac_objext conftest$ac_exeext
23239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23240   (eval $ac_link) 2>conftest.er1
23241   ac_status=$?
23242   grep -v '^ *+' conftest.er1 >conftest.err
23243   rm -f conftest.er1
23244   cat conftest.err >&5
23245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); } &&
23247          { ac_try='test -z "$ac_c_werror_flag"
23248                          || test ! -s conftest.err'
23249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250   (eval $ac_try) 2>&5
23251   ac_status=$?
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); }; } &&
23254          { ac_try='test -s conftest$ac_exeext'
23255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256   (eval $ac_try) 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); }; }; then
23260   ol_cv_pthread_threads=yes
23261 else
23262   echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23264
23265 ol_cv_pthread_threads=no
23266 fi
23267 rm -f conftest.err conftest.$ac_objext \
23268       conftest$ac_exeext conftest.$ac_ext
23269 else
23270   cat >conftest.$ac_ext <<_ACEOF
23271 /* confdefs.h.  */
23272 _ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h.  */
23276
23277 /* pthread test headers */
23278 #include <pthread.h>
23279 #if HAVE_PTHREADS < 7
23280 #include <errno.h>
23281 #endif
23282 #ifndef NULL
23283 #define NULL (void*)0
23284 #endif
23285
23286 static void *task(p)
23287         void *p;
23288 {
23289         return (void *) (p == NULL);
23290 }
23291
23292
23293 int main(argc, argv)
23294         int argc;
23295         char **argv;
23296 {
23297
23298         /* pthread test function */
23299 #ifndef PTHREAD_CREATE_DETACHED
23300 #define PTHREAD_CREATE_DETACHED 1
23301 #endif
23302         pthread_t t;
23303         int status;
23304         int detach = PTHREAD_CREATE_DETACHED;
23305
23306 #if HAVE_PTHREADS > 4
23307         /* Final pthreads */
23308         pthread_attr_t attr;
23309
23310         status = pthread_attr_init(&attr);
23311         if( status ) return status;
23312
23313 #if HAVE_PTHREADS < 7
23314         status = pthread_attr_setdetachstate(&attr, &detach);
23315         if( status < 0 ) status = errno;
23316 #else
23317         status = pthread_attr_setdetachstate(&attr, detach);
23318 #endif
23319         if( status ) return status;
23320         status = pthread_create( &t, &attr, task, NULL );
23321 #if HAVE_PTHREADS < 7
23322         if( status < 0 ) status = errno;
23323 #endif
23324         if( status ) return status;
23325 #else
23326         /* Draft 4 pthreads */
23327         status = pthread_create( &t, pthread_attr_default, task, NULL );
23328         if( status ) return errno;
23329
23330         /* give thread a chance to complete */
23331         /* it should remain joinable and hence detachable */
23332         sleep( 1 );
23333
23334         status = pthread_detach( &t );
23335         if( status ) return errno;
23336 #endif
23337
23338 #ifdef HAVE_LINUX_THREADS
23339         pthread_kill_other_threads_np();
23340 #endif
23341
23342         return 0;
23343
23344 }
23345
23346 _ACEOF
23347 rm -f conftest$ac_exeext
23348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23349   (eval $ac_link) 2>&5
23350   ac_status=$?
23351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354   (eval $ac_try) 2>&5
23355   ac_status=$?
23356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); }; }; then
23358   ol_cv_pthread_threads=yes
23359 else
23360   echo "$as_me: program exited with status $ac_status" >&5
23361 echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23363
23364 ( exit $ac_status )
23365 ol_cv_pthread_threads=no
23366 fi
23367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23368 fi
23369
23370                 # restore the LIBS
23371                 LIBS="$ol_LIBS"
23372
23373 fi
23374 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23375 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23376
23377         if test $ol_cv_pthread_threads = yes ; then
23378                 ol_link_pthreads="-threads"
23379                 ol_link_threads=posix
23380         fi
23381 fi
23382
23383
23384                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23385 if test "$ol_link_threads" = no ; then
23386         # try -lpthreads -lmach -lexc -lc_r
23387         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23388 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23389 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23390   echo $ECHO_N "(cached) $ECHO_C" >&6
23391 else
23392
23393                 # save the flags
23394                 ol_LIBS="$LIBS"
23395                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23396
23397                 if test "$cross_compiling" = yes; then
23398   cat >conftest.$ac_ext <<_ACEOF
23399 /* confdefs.h.  */
23400 _ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h.  */
23404
23405 /* pthread test headers */
23406 #include <pthread.h>
23407 #if HAVE_PTHREADS < 7
23408 #include <errno.h>
23409 #endif
23410 #ifndef NULL
23411 #define NULL (void*)0
23412 #endif
23413
23414 static void *task(p)
23415         void *p;
23416 {
23417         return (void *) (p == NULL);
23418 }
23419
23420 int
23421 main ()
23422 {
23423
23424         /* pthread test function */
23425 #ifndef PTHREAD_CREATE_DETACHED
23426 #define PTHREAD_CREATE_DETACHED 1
23427 #endif
23428         pthread_t t;
23429         int status;
23430         int detach = PTHREAD_CREATE_DETACHED;
23431
23432 #if HAVE_PTHREADS > 4
23433         /* Final pthreads */
23434         pthread_attr_t attr;
23435
23436         status = pthread_attr_init(&attr);
23437         if( status ) return status;
23438
23439 #if HAVE_PTHREADS < 7
23440         status = pthread_attr_setdetachstate(&attr, &detach);
23441         if( status < 0 ) status = errno;
23442 #else
23443         status = pthread_attr_setdetachstate(&attr, detach);
23444 #endif
23445         if( status ) return status;
23446         status = pthread_create( &t, &attr, task, NULL );
23447 #if HAVE_PTHREADS < 7
23448         if( status < 0 ) status = errno;
23449 #endif
23450         if( status ) return status;
23451 #else
23452         /* Draft 4 pthreads */
23453         status = pthread_create( &t, pthread_attr_default, task, NULL );
23454         if( status ) return errno;
23455
23456         /* give thread a chance to complete */
23457         /* it should remain joinable and hence detachable */
23458         sleep( 1 );
23459
23460         status = pthread_detach( &t );
23461         if( status ) return errno;
23462 #endif
23463
23464 #ifdef HAVE_LINUX_THREADS
23465         pthread_kill_other_threads_np();
23466 #endif
23467
23468         return 0;
23469
23470   ;
23471   return 0;
23472 }
23473 _ACEOF
23474 rm -f conftest.$ac_objext conftest$ac_exeext
23475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23476   (eval $ac_link) 2>conftest.er1
23477   ac_status=$?
23478   grep -v '^ *+' conftest.er1 >conftest.err
23479   rm -f conftest.er1
23480   cat conftest.err >&5
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); } &&
23483          { ac_try='test -z "$ac_c_werror_flag"
23484                          || test ! -s conftest.err'
23485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486   (eval $ac_try) 2>&5
23487   ac_status=$?
23488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); }; } &&
23490          { ac_try='test -s conftest$ac_exeext'
23491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23492   (eval $ac_try) 2>&5
23493   ac_status=$?
23494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495   (exit $ac_status); }; }; then
23496   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23497 else
23498   echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23500
23501 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23502 fi
23503 rm -f conftest.err conftest.$ac_objext \
23504       conftest$ac_exeext conftest.$ac_ext
23505 else
23506   cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512
23513 /* pthread test headers */
23514 #include <pthread.h>
23515 #if HAVE_PTHREADS < 7
23516 #include <errno.h>
23517 #endif
23518 #ifndef NULL
23519 #define NULL (void*)0
23520 #endif
23521
23522 static void *task(p)
23523         void *p;
23524 {
23525         return (void *) (p == NULL);
23526 }
23527
23528
23529 int main(argc, argv)
23530         int argc;
23531         char **argv;
23532 {
23533
23534         /* pthread test function */
23535 #ifndef PTHREAD_CREATE_DETACHED
23536 #define PTHREAD_CREATE_DETACHED 1
23537 #endif
23538         pthread_t t;
23539         int status;
23540         int detach = PTHREAD_CREATE_DETACHED;
23541
23542 #if HAVE_PTHREADS > 4
23543         /* Final pthreads */
23544         pthread_attr_t attr;
23545
23546         status = pthread_attr_init(&attr);
23547         if( status ) return status;
23548
23549 #if HAVE_PTHREADS < 7
23550         status = pthread_attr_setdetachstate(&attr, &detach);
23551         if( status < 0 ) status = errno;
23552 #else
23553         status = pthread_attr_setdetachstate(&attr, detach);
23554 #endif
23555         if( status ) return status;
23556         status = pthread_create( &t, &attr, task, NULL );
23557 #if HAVE_PTHREADS < 7
23558         if( status < 0 ) status = errno;
23559 #endif
23560         if( status ) return status;
23561 #else
23562         /* Draft 4 pthreads */
23563         status = pthread_create( &t, pthread_attr_default, task, NULL );
23564         if( status ) return errno;
23565
23566         /* give thread a chance to complete */
23567         /* it should remain joinable and hence detachable */
23568         sleep( 1 );
23569
23570         status = pthread_detach( &t );
23571         if( status ) return errno;
23572 #endif
23573
23574 #ifdef HAVE_LINUX_THREADS
23575         pthread_kill_other_threads_np();
23576 #endif
23577
23578         return 0;
23579
23580 }
23581
23582 _ACEOF
23583 rm -f conftest$ac_exeext
23584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23585   (eval $ac_link) 2>&5
23586   ac_status=$?
23587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590   (eval $ac_try) 2>&5
23591   ac_status=$?
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); }; }; then
23594   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23595 else
23596   echo "$as_me: program exited with status $ac_status" >&5
23597 echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23599
23600 ( exit $ac_status )
23601 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23602 fi
23603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23604 fi
23605
23606                 # restore the LIBS
23607                 LIBS="$ol_LIBS"
23608
23609 fi
23610 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23611 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23612
23613         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23614                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23615                 ol_link_threads=posix
23616         fi
23617 fi
23618
23619                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23620 if test "$ol_link_threads" = no ; then
23621         # try -lpthreads -lmach -lexc
23622         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23623 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23624 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23625   echo $ECHO_N "(cached) $ECHO_C" >&6
23626 else
23627
23628                 # save the flags
23629                 ol_LIBS="$LIBS"
23630                 LIBS="-lpthreads -lmach -lexc $LIBS"
23631
23632                 if test "$cross_compiling" = yes; then
23633   cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h.  */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h.  */
23639
23640 /* pthread test headers */
23641 #include <pthread.h>
23642 #if HAVE_PTHREADS < 7
23643 #include <errno.h>
23644 #endif
23645 #ifndef NULL
23646 #define NULL (void*)0
23647 #endif
23648
23649 static void *task(p)
23650         void *p;
23651 {
23652         return (void *) (p == NULL);
23653 }
23654
23655 int
23656 main ()
23657 {
23658
23659         /* pthread test function */
23660 #ifndef PTHREAD_CREATE_DETACHED
23661 #define PTHREAD_CREATE_DETACHED 1
23662 #endif
23663         pthread_t t;
23664         int status;
23665         int detach = PTHREAD_CREATE_DETACHED;
23666
23667 #if HAVE_PTHREADS > 4
23668         /* Final pthreads */
23669         pthread_attr_t attr;
23670
23671         status = pthread_attr_init(&attr);
23672         if( status ) return status;
23673
23674 #if HAVE_PTHREADS < 7
23675         status = pthread_attr_setdetachstate(&attr, &detach);
23676         if( status < 0 ) status = errno;
23677 #else
23678         status = pthread_attr_setdetachstate(&attr, detach);
23679 #endif
23680         if( status ) return status;
23681         status = pthread_create( &t, &attr, task, NULL );
23682 #if HAVE_PTHREADS < 7
23683         if( status < 0 ) status = errno;
23684 #endif
23685         if( status ) return status;
23686 #else
23687         /* Draft 4 pthreads */
23688         status = pthread_create( &t, pthread_attr_default, task, NULL );
23689         if( status ) return errno;
23690
23691         /* give thread a chance to complete */
23692         /* it should remain joinable and hence detachable */
23693         sleep( 1 );
23694
23695         status = pthread_detach( &t );
23696         if( status ) return errno;
23697 #endif
23698
23699 #ifdef HAVE_LINUX_THREADS
23700         pthread_kill_other_threads_np();
23701 #endif
23702
23703         return 0;
23704
23705   ;
23706   return 0;
23707 }
23708 _ACEOF
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23711   (eval $ac_link) 2>conftest.er1
23712   ac_status=$?
23713   grep -v '^ *+' conftest.er1 >conftest.err
23714   rm -f conftest.er1
23715   cat conftest.err >&5
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); } &&
23718          { ac_try='test -z "$ac_c_werror_flag"
23719                          || test ! -s conftest.err'
23720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721   (eval $ac_try) 2>&5
23722   ac_status=$?
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); }; } &&
23725          { ac_try='test -s conftest$ac_exeext'
23726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727   (eval $ac_try) 2>&5
23728   ac_status=$?
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); }; }; then
23731   ol_cv_pthread_lpthreads_lmach_lexc=yes
23732 else
23733   echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23735
23736 ol_cv_pthread_lpthreads_lmach_lexc=no
23737 fi
23738 rm -f conftest.err conftest.$ac_objext \
23739       conftest$ac_exeext conftest.$ac_ext
23740 else
23741   cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h.  */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h.  */
23747
23748 /* pthread test headers */
23749 #include <pthread.h>
23750 #if HAVE_PTHREADS < 7
23751 #include <errno.h>
23752 #endif
23753 #ifndef NULL
23754 #define NULL (void*)0
23755 #endif
23756
23757 static void *task(p)
23758         void *p;
23759 {
23760         return (void *) (p == NULL);
23761 }
23762
23763
23764 int main(argc, argv)
23765         int argc;
23766         char **argv;
23767 {
23768
23769         /* pthread test function */
23770 #ifndef PTHREAD_CREATE_DETACHED
23771 #define PTHREAD_CREATE_DETACHED 1
23772 #endif
23773         pthread_t t;
23774         int status;
23775         int detach = PTHREAD_CREATE_DETACHED;
23776
23777 #if HAVE_PTHREADS > 4
23778         /* Final pthreads */
23779         pthread_attr_t attr;
23780
23781         status = pthread_attr_init(&attr);
23782         if( status ) return status;
23783
23784 #if HAVE_PTHREADS < 7
23785         status = pthread_attr_setdetachstate(&attr, &detach);
23786         if( status < 0 ) status = errno;
23787 #else
23788         status = pthread_attr_setdetachstate(&attr, detach);
23789 #endif
23790         if( status ) return status;
23791         status = pthread_create( &t, &attr, task, NULL );
23792 #if HAVE_PTHREADS < 7
23793         if( status < 0 ) status = errno;
23794 #endif
23795         if( status ) return status;
23796 #else
23797         /* Draft 4 pthreads */
23798         status = pthread_create( &t, pthread_attr_default, task, NULL );
23799         if( status ) return errno;
23800
23801         /* give thread a chance to complete */
23802         /* it should remain joinable and hence detachable */
23803         sleep( 1 );
23804
23805         status = pthread_detach( &t );
23806         if( status ) return errno;
23807 #endif
23808
23809 #ifdef HAVE_LINUX_THREADS
23810         pthread_kill_other_threads_np();
23811 #endif
23812
23813         return 0;
23814
23815 }
23816
23817 _ACEOF
23818 rm -f conftest$ac_exeext
23819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23820   (eval $ac_link) 2>&5
23821   ac_status=$?
23822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825   (eval $ac_try) 2>&5
23826   ac_status=$?
23827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); }; }; then
23829   ol_cv_pthread_lpthreads_lmach_lexc=yes
23830 else
23831   echo "$as_me: program exited with status $ac_status" >&5
23832 echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23834
23835 ( exit $ac_status )
23836 ol_cv_pthread_lpthreads_lmach_lexc=no
23837 fi
23838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23839 fi
23840
23841                 # restore the LIBS
23842                 LIBS="$ol_LIBS"
23843
23844 fi
23845 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23846 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23847
23848         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23849                 ol_link_pthreads="-lpthreads -lmach -lexc"
23850                 ol_link_threads=posix
23851         fi
23852 fi
23853
23854                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23855 if test "$ol_link_threads" = no ; then
23856         # try -lpthreads -lexc
23857         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23858 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23859 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23860   echo $ECHO_N "(cached) $ECHO_C" >&6
23861 else
23862
23863                 # save the flags
23864                 ol_LIBS="$LIBS"
23865                 LIBS="-lpthreads -lexc $LIBS"
23866
23867                 if test "$cross_compiling" = yes; then
23868   cat >conftest.$ac_ext <<_ACEOF
23869 /* confdefs.h.  */
23870 _ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h.  */
23874
23875 /* pthread test headers */
23876 #include <pthread.h>
23877 #if HAVE_PTHREADS < 7
23878 #include <errno.h>
23879 #endif
23880 #ifndef NULL
23881 #define NULL (void*)0
23882 #endif
23883
23884 static void *task(p)
23885         void *p;
23886 {
23887         return (void *) (p == NULL);
23888 }
23889
23890 int
23891 main ()
23892 {
23893
23894         /* pthread test function */
23895 #ifndef PTHREAD_CREATE_DETACHED
23896 #define PTHREAD_CREATE_DETACHED 1
23897 #endif
23898         pthread_t t;
23899         int status;
23900         int detach = PTHREAD_CREATE_DETACHED;
23901
23902 #if HAVE_PTHREADS > 4
23903         /* Final pthreads */
23904         pthread_attr_t attr;
23905
23906         status = pthread_attr_init(&attr);
23907         if( status ) return status;
23908
23909 #if HAVE_PTHREADS < 7
23910         status = pthread_attr_setdetachstate(&attr, &detach);
23911         if( status < 0 ) status = errno;
23912 #else
23913         status = pthread_attr_setdetachstate(&attr, detach);
23914 #endif
23915         if( status ) return status;
23916         status = pthread_create( &t, &attr, task, NULL );
23917 #if HAVE_PTHREADS < 7
23918         if( status < 0 ) status = errno;
23919 #endif
23920         if( status ) return status;
23921 #else
23922         /* Draft 4 pthreads */
23923         status = pthread_create( &t, pthread_attr_default, task, NULL );
23924         if( status ) return errno;
23925
23926         /* give thread a chance to complete */
23927         /* it should remain joinable and hence detachable */
23928         sleep( 1 );
23929
23930         status = pthread_detach( &t );
23931         if( status ) return errno;
23932 #endif
23933
23934 #ifdef HAVE_LINUX_THREADS
23935         pthread_kill_other_threads_np();
23936 #endif
23937
23938         return 0;
23939
23940   ;
23941   return 0;
23942 }
23943 _ACEOF
23944 rm -f conftest.$ac_objext conftest$ac_exeext
23945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23946   (eval $ac_link) 2>conftest.er1
23947   ac_status=$?
23948   grep -v '^ *+' conftest.er1 >conftest.err
23949   rm -f conftest.er1
23950   cat conftest.err >&5
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); } &&
23953          { ac_try='test -z "$ac_c_werror_flag"
23954                          || test ! -s conftest.err'
23955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956   (eval $ac_try) 2>&5
23957   ac_status=$?
23958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959   (exit $ac_status); }; } &&
23960          { ac_try='test -s conftest$ac_exeext'
23961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962   (eval $ac_try) 2>&5
23963   ac_status=$?
23964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965   (exit $ac_status); }; }; then
23966   ol_cv_pthread_lpthreads_lexc=yes
23967 else
23968   echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23970
23971 ol_cv_pthread_lpthreads_lexc=no
23972 fi
23973 rm -f conftest.err conftest.$ac_objext \
23974       conftest$ac_exeext conftest.$ac_ext
23975 else
23976   cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h.  */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h.  */
23982
23983 /* pthread test headers */
23984 #include <pthread.h>
23985 #if HAVE_PTHREADS < 7
23986 #include <errno.h>
23987 #endif
23988 #ifndef NULL
23989 #define NULL (void*)0
23990 #endif
23991
23992 static void *task(p)
23993         void *p;
23994 {
23995         return (void *) (p == NULL);
23996 }
23997
23998
23999 int main(argc, argv)
24000         int argc;
24001         char **argv;
24002 {
24003
24004         /* pthread test function */
24005 #ifndef PTHREAD_CREATE_DETACHED
24006 #define PTHREAD_CREATE_DETACHED 1
24007 #endif
24008         pthread_t t;
24009         int status;
24010         int detach = PTHREAD_CREATE_DETACHED;
24011
24012 #if HAVE_PTHREADS > 4
24013         /* Final pthreads */
24014         pthread_attr_t attr;
24015
24016         status = pthread_attr_init(&attr);
24017         if( status ) return status;
24018
24019 #if HAVE_PTHREADS < 7
24020         status = pthread_attr_setdetachstate(&attr, &detach);
24021         if( status < 0 ) status = errno;
24022 #else
24023         status = pthread_attr_setdetachstate(&attr, detach);
24024 #endif
24025         if( status ) return status;
24026         status = pthread_create( &t, &attr, task, NULL );
24027 #if HAVE_PTHREADS < 7
24028         if( status < 0 ) status = errno;
24029 #endif
24030         if( status ) return status;
24031 #else
24032         /* Draft 4 pthreads */
24033         status = pthread_create( &t, pthread_attr_default, task, NULL );
24034         if( status ) return errno;
24035
24036         /* give thread a chance to complete */
24037         /* it should remain joinable and hence detachable */
24038         sleep( 1 );
24039
24040         status = pthread_detach( &t );
24041         if( status ) return errno;
24042 #endif
24043
24044 #ifdef HAVE_LINUX_THREADS
24045         pthread_kill_other_threads_np();
24046 #endif
24047
24048         return 0;
24049
24050 }
24051
24052 _ACEOF
24053 rm -f conftest$ac_exeext
24054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24055   (eval $ac_link) 2>&5
24056   ac_status=$?
24057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060   (eval $ac_try) 2>&5
24061   ac_status=$?
24062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063   (exit $ac_status); }; }; then
24064   ol_cv_pthread_lpthreads_lexc=yes
24065 else
24066   echo "$as_me: program exited with status $ac_status" >&5
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24069
24070 ( exit $ac_status )
24071 ol_cv_pthread_lpthreads_lexc=no
24072 fi
24073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24074 fi
24075
24076                 # restore the LIBS
24077                 LIBS="$ol_LIBS"
24078
24079 fi
24080 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24081 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24082
24083         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24084                 ol_link_pthreads="-lpthreads -lexc"
24085                 ol_link_threads=posix
24086         fi
24087 fi
24088
24089
24090                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24091 if test "$ol_link_threads" = no ; then
24092         # try -lpthreads
24093         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24094 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24095 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24096   echo $ECHO_N "(cached) $ECHO_C" >&6
24097 else
24098
24099                 # save the flags
24100                 ol_LIBS="$LIBS"
24101                 LIBS="-lpthreads $LIBS"
24102
24103                 if test "$cross_compiling" = yes; then
24104   cat >conftest.$ac_ext <<_ACEOF
24105 /* confdefs.h.  */
24106 _ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h.  */
24110
24111 /* pthread test headers */
24112 #include <pthread.h>
24113 #if HAVE_PTHREADS < 7
24114 #include <errno.h>
24115 #endif
24116 #ifndef NULL
24117 #define NULL (void*)0
24118 #endif
24119
24120 static void *task(p)
24121         void *p;
24122 {
24123         return (void *) (p == NULL);
24124 }
24125
24126 int
24127 main ()
24128 {
24129
24130         /* pthread test function */
24131 #ifndef PTHREAD_CREATE_DETACHED
24132 #define PTHREAD_CREATE_DETACHED 1
24133 #endif
24134         pthread_t t;
24135         int status;
24136         int detach = PTHREAD_CREATE_DETACHED;
24137
24138 #if HAVE_PTHREADS > 4
24139         /* Final pthreads */
24140         pthread_attr_t attr;
24141
24142         status = pthread_attr_init(&attr);
24143         if( status ) return status;
24144
24145 #if HAVE_PTHREADS < 7
24146         status = pthread_attr_setdetachstate(&attr, &detach);
24147         if( status < 0 ) status = errno;
24148 #else
24149         status = pthread_attr_setdetachstate(&attr, detach);
24150 #endif
24151         if( status ) return status;
24152         status = pthread_create( &t, &attr, task, NULL );
24153 #if HAVE_PTHREADS < 7
24154         if( status < 0 ) status = errno;
24155 #endif
24156         if( status ) return status;
24157 #else
24158         /* Draft 4 pthreads */
24159         status = pthread_create( &t, pthread_attr_default, task, NULL );
24160         if( status ) return errno;
24161
24162         /* give thread a chance to complete */
24163         /* it should remain joinable and hence detachable */
24164         sleep( 1 );
24165
24166         status = pthread_detach( &t );
24167         if( status ) return errno;
24168 #endif
24169
24170 #ifdef HAVE_LINUX_THREADS
24171         pthread_kill_other_threads_np();
24172 #endif
24173
24174         return 0;
24175
24176   ;
24177   return 0;
24178 }
24179 _ACEOF
24180 rm -f conftest.$ac_objext conftest$ac_exeext
24181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24182   (eval $ac_link) 2>conftest.er1
24183   ac_status=$?
24184   grep -v '^ *+' conftest.er1 >conftest.err
24185   rm -f conftest.er1
24186   cat conftest.err >&5
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); } &&
24189          { ac_try='test -z "$ac_c_werror_flag"
24190                          || test ! -s conftest.err'
24191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192   (eval $ac_try) 2>&5
24193   ac_status=$?
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); }; } &&
24196          { ac_try='test -s conftest$ac_exeext'
24197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198   (eval $ac_try) 2>&5
24199   ac_status=$?
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); }; }; then
24202   ol_cv_pthread_lib_lpthreads=yes
24203 else
24204   echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24206
24207 ol_cv_pthread_lib_lpthreads=no
24208 fi
24209 rm -f conftest.err conftest.$ac_objext \
24210       conftest$ac_exeext conftest.$ac_ext
24211 else
24212   cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h.  */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h.  */
24218
24219 /* pthread test headers */
24220 #include <pthread.h>
24221 #if HAVE_PTHREADS < 7
24222 #include <errno.h>
24223 #endif
24224 #ifndef NULL
24225 #define NULL (void*)0
24226 #endif
24227
24228 static void *task(p)
24229         void *p;
24230 {
24231         return (void *) (p == NULL);
24232 }
24233
24234
24235 int main(argc, argv)
24236         int argc;
24237         char **argv;
24238 {
24239
24240         /* pthread test function */
24241 #ifndef PTHREAD_CREATE_DETACHED
24242 #define PTHREAD_CREATE_DETACHED 1
24243 #endif
24244         pthread_t t;
24245         int status;
24246         int detach = PTHREAD_CREATE_DETACHED;
24247
24248 #if HAVE_PTHREADS > 4
24249         /* Final pthreads */
24250         pthread_attr_t attr;
24251
24252         status = pthread_attr_init(&attr);
24253         if( status ) return status;
24254
24255 #if HAVE_PTHREADS < 7
24256         status = pthread_attr_setdetachstate(&attr, &detach);
24257         if( status < 0 ) status = errno;
24258 #else
24259         status = pthread_attr_setdetachstate(&attr, detach);
24260 #endif
24261         if( status ) return status;
24262         status = pthread_create( &t, &attr, task, NULL );
24263 #if HAVE_PTHREADS < 7
24264         if( status < 0 ) status = errno;
24265 #endif
24266         if( status ) return status;
24267 #else
24268         /* Draft 4 pthreads */
24269         status = pthread_create( &t, pthread_attr_default, task, NULL );
24270         if( status ) return errno;
24271
24272         /* give thread a chance to complete */
24273         /* it should remain joinable and hence detachable */
24274         sleep( 1 );
24275
24276         status = pthread_detach( &t );
24277         if( status ) return errno;
24278 #endif
24279
24280 #ifdef HAVE_LINUX_THREADS
24281         pthread_kill_other_threads_np();
24282 #endif
24283
24284         return 0;
24285
24286 }
24287
24288 _ACEOF
24289 rm -f conftest$ac_exeext
24290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24291   (eval $ac_link) 2>&5
24292   ac_status=$?
24293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296   (eval $ac_try) 2>&5
24297   ac_status=$?
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); }; }; then
24300   ol_cv_pthread_lib_lpthreads=yes
24301 else
24302   echo "$as_me: program exited with status $ac_status" >&5
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24305
24306 ( exit $ac_status )
24307 ol_cv_pthread_lib_lpthreads=no
24308 fi
24309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24310 fi
24311
24312                 # restore the LIBS
24313                 LIBS="$ol_LIBS"
24314
24315 fi
24316 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24317 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24318
24319         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24320                 ol_link_pthreads="-lpthreads"
24321                 ol_link_threads=posix
24322         fi
24323 fi
24324
24325
24326                 if test $ol_link_threads != no ; then
24327                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24328
24329                                                 save_CPPFLAGS="$CPPFLAGS"
24330                         save_LIBS="$LIBS"
24331                         LIBS="$LTHREAD_LIBS $LIBS"
24332
24333
24334
24335
24336 for ac_func in sched_yield pthread_yield thr_yield
24337 do
24338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24339 echo "$as_me:$LINENO: checking for $ac_func" >&5
24340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24341 if eval "test \"\${$as_ac_var+set}\" = set"; then
24342   echo $ECHO_N "(cached) $ECHO_C" >&6
24343 else
24344   cat >conftest.$ac_ext <<_ACEOF
24345 /* confdefs.h.  */
24346 _ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h.  */
24350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24352 #define $ac_func innocuous_$ac_func
24353
24354 /* System header to define __stub macros and hopefully few prototypes,
24355     which can conflict with char $ac_func (); below.
24356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24357     <limits.h> exists even on freestanding compilers.  */
24358
24359 #ifdef __STDC__
24360 # include <limits.h>
24361 #else
24362 # include <assert.h>
24363 #endif
24364
24365 #undef $ac_func
24366
24367 /* Override any gcc2 internal prototype to avoid an error.  */
24368 #ifdef __cplusplus
24369 extern "C"
24370 {
24371 #endif
24372 /* We use char because int might match the return type of a gcc2
24373    builtin and then its argument prototype would still apply.  */
24374 char $ac_func ();
24375 /* The GNU C library defines this for functions which it implements
24376     to always fail with ENOSYS.  Some functions are actually named
24377     something starting with __ and the normal name is an alias.  */
24378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24379 choke me
24380 #else
24381 char (*f) () = $ac_func;
24382 #endif
24383 #ifdef __cplusplus
24384 }
24385 #endif
24386
24387 int
24388 main ()
24389 {
24390 return f != $ac_func;
24391   ;
24392   return 0;
24393 }
24394 _ACEOF
24395 rm -f conftest.$ac_objext conftest$ac_exeext
24396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24397   (eval $ac_link) 2>conftest.er1
24398   ac_status=$?
24399   grep -v '^ *+' conftest.er1 >conftest.err
24400   rm -f conftest.er1
24401   cat conftest.err >&5
24402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403   (exit $ac_status); } &&
24404          { ac_try='test -z "$ac_c_werror_flag"
24405                          || test ! -s conftest.err'
24406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407   (eval $ac_try) 2>&5
24408   ac_status=$?
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); }; } &&
24411          { ac_try='test -s conftest$ac_exeext'
24412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24413   (eval $ac_try) 2>&5
24414   ac_status=$?
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); }; }; then
24417   eval "$as_ac_var=yes"
24418 else
24419   echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24421
24422 eval "$as_ac_var=no"
24423 fi
24424 rm -f conftest.err conftest.$ac_objext \
24425       conftest$ac_exeext conftest.$ac_ext
24426 fi
24427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24429 if test `eval echo '${'$as_ac_var'}'` = yes; then
24430   cat >>confdefs.h <<_ACEOF
24431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24432 _ACEOF
24433
24434 fi
24435 done
24436
24437
24438                         if test $ac_cv_func_sched_yield = no &&
24439                            test $ac_cv_func_pthread_yield = no &&
24440                            test $ac_cv_func_thr_yield = no ; then
24441                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24442 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24443 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24444   echo $ECHO_N "(cached) $ECHO_C" >&6
24445 else
24446   ac_check_lib_save_LIBS=$LIBS
24447 LIBS="-lrt  $LIBS"
24448 cat >conftest.$ac_ext <<_ACEOF
24449 /* confdefs.h.  */
24450 _ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h.  */
24454
24455 /* Override any gcc2 internal prototype to avoid an error.  */
24456 #ifdef __cplusplus
24457 extern "C"
24458 #endif
24459 /* We use char because int might match the return type of a gcc2
24460    builtin and then its argument prototype would still apply.  */
24461 char sched_yield ();
24462 int
24463 main ()
24464 {
24465 sched_yield ();
24466   ;
24467   return 0;
24468 }
24469 _ACEOF
24470 rm -f conftest.$ac_objext conftest$ac_exeext
24471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24472   (eval $ac_link) 2>conftest.er1
24473   ac_status=$?
24474   grep -v '^ *+' conftest.er1 >conftest.err
24475   rm -f conftest.er1
24476   cat conftest.err >&5
24477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); } &&
24479          { ac_try='test -z "$ac_c_werror_flag"
24480                          || test ! -s conftest.err'
24481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482   (eval $ac_try) 2>&5
24483   ac_status=$?
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); }; } &&
24486          { ac_try='test -s conftest$ac_exeext'
24487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488   (eval $ac_try) 2>&5
24489   ac_status=$?
24490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491   (exit $ac_status); }; }; then
24492   ac_cv_lib_rt_sched_yield=yes
24493 else
24494   echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24496
24497 ac_cv_lib_rt_sched_yield=no
24498 fi
24499 rm -f conftest.err conftest.$ac_objext \
24500       conftest$ac_exeext conftest.$ac_ext
24501 LIBS=$ac_check_lib_save_LIBS
24502 fi
24503 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24504 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24505 if test $ac_cv_lib_rt_sched_yield = yes; then
24506   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24507
24508 cat >>confdefs.h <<\_ACEOF
24509 #define HAVE_SCHED_YIELD 1
24510 _ACEOF
24511
24512                                         ac_cv_func_sched_yield=yes
24513 else
24514   ac_cv_func_sched_yield=no
24515 fi
24516
24517                         fi
24518                         if test $ac_cv_func_sched_yield = no &&
24519                            test $ac_cv_func_pthread_yield = no &&
24520                            test "$ac_cv_func_thr_yield" = no ; then
24521                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24522 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24523                         fi
24524
24525
24526
24527 for ac_func in pthread_kill pthread_rwlock_destroy
24528 do
24529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24530 echo "$as_me:$LINENO: checking for $ac_func" >&5
24531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24532 if eval "test \"\${$as_ac_var+set}\" = set"; then
24533   echo $ECHO_N "(cached) $ECHO_C" >&6
24534 else
24535   cat >conftest.$ac_ext <<_ACEOF
24536 /* confdefs.h.  */
24537 _ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h.  */
24541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24543 #define $ac_func innocuous_$ac_func
24544
24545 /* System header to define __stub macros and hopefully few prototypes,
24546     which can conflict with char $ac_func (); below.
24547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24548     <limits.h> exists even on freestanding compilers.  */
24549
24550 #ifdef __STDC__
24551 # include <limits.h>
24552 #else
24553 # include <assert.h>
24554 #endif
24555
24556 #undef $ac_func
24557
24558 /* Override any gcc2 internal prototype to avoid an error.  */
24559 #ifdef __cplusplus
24560 extern "C"
24561 {
24562 #endif
24563 /* We use char because int might match the return type of a gcc2
24564    builtin and then its argument prototype would still apply.  */
24565 char $ac_func ();
24566 /* The GNU C library defines this for functions which it implements
24567     to always fail with ENOSYS.  Some functions are actually named
24568     something starting with __ and the normal name is an alias.  */
24569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24570 choke me
24571 #else
24572 char (*f) () = $ac_func;
24573 #endif
24574 #ifdef __cplusplus
24575 }
24576 #endif
24577
24578 int
24579 main ()
24580 {
24581 return f != $ac_func;
24582   ;
24583   return 0;
24584 }
24585 _ACEOF
24586 rm -f conftest.$ac_objext conftest$ac_exeext
24587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24588   (eval $ac_link) 2>conftest.er1
24589   ac_status=$?
24590   grep -v '^ *+' conftest.er1 >conftest.err
24591   rm -f conftest.er1
24592   cat conftest.err >&5
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); } &&
24595          { ac_try='test -z "$ac_c_werror_flag"
24596                          || test ! -s conftest.err'
24597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598   (eval $ac_try) 2>&5
24599   ac_status=$?
24600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); }; } &&
24602          { ac_try='test -s conftest$ac_exeext'
24603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604   (eval $ac_try) 2>&5
24605   ac_status=$?
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); }; }; then
24608   eval "$as_ac_var=yes"
24609 else
24610   echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24612
24613 eval "$as_ac_var=no"
24614 fi
24615 rm -f conftest.err conftest.$ac_objext \
24616       conftest$ac_exeext conftest.$ac_ext
24617 fi
24618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24620 if test `eval echo '${'$as_ac_var'}'` = yes; then
24621   cat >>confdefs.h <<_ACEOF
24622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24623 _ACEOF
24624
24625 fi
24626 done
24627
24628
24629                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24630 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24631 if test "${ol_cv_func_pthread_detach+set}" = set; then
24632   echo $ECHO_N "(cached) $ECHO_C" >&6
24633 else
24634
24635                                                                 cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h.  */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h.  */
24641
24642 #include <pthread.h>
24643 #ifndef NULL
24644 #define NULL (void*)0
24645 #endif
24646
24647 int
24648 main ()
24649 {
24650 pthread_detach(NULL);
24651   ;
24652   return 0;
24653 }
24654 _ACEOF
24655 rm -f conftest.$ac_objext conftest$ac_exeext
24656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24657   (eval $ac_link) 2>conftest.er1
24658   ac_status=$?
24659   grep -v '^ *+' conftest.er1 >conftest.err
24660   rm -f conftest.er1
24661   cat conftest.err >&5
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); } &&
24664          { ac_try='test -z "$ac_c_werror_flag"
24665                          || test ! -s conftest.err'
24666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24667   (eval $ac_try) 2>&5
24668   ac_status=$?
24669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670   (exit $ac_status); }; } &&
24671          { ac_try='test -s conftest$ac_exeext'
24672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24673   (eval $ac_try) 2>&5
24674   ac_status=$?
24675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676   (exit $ac_status); }; }; then
24677   ol_cv_func_pthread_detach=yes
24678 else
24679   echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24681
24682 ol_cv_func_pthread_detach=no
24683 fi
24684 rm -f conftest.err conftest.$ac_objext \
24685       conftest$ac_exeext conftest.$ac_ext
24686
24687 fi
24688 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24689 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24690
24691                         if test $ol_cv_func_pthread_detach = no ; then
24692                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24693 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24694    { (exit 1); exit 1; }; }
24695                         fi
24696
24697
24698 cat >>confdefs.h <<\_ACEOF
24699 #define HAVE_PTHREAD_DETACH 1
24700 _ACEOF
24701
24702
24703
24704
24705
24706
24707 for ac_func in \
24708                                 pthread_setconcurrency \
24709                                 pthread_getconcurrency \
24710                                 thr_setconcurrency \
24711                                 thr_getconcurrency \
24712
24713 do
24714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24715 echo "$as_me:$LINENO: checking for $ac_func" >&5
24716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24717 if eval "test \"\${$as_ac_var+set}\" = set"; then
24718   echo $ECHO_N "(cached) $ECHO_C" >&6
24719 else
24720   cat >conftest.$ac_ext <<_ACEOF
24721 /* confdefs.h.  */
24722 _ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h.  */
24726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24728 #define $ac_func innocuous_$ac_func
24729
24730 /* System header to define __stub macros and hopefully few prototypes,
24731     which can conflict with char $ac_func (); below.
24732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24733     <limits.h> exists even on freestanding compilers.  */
24734
24735 #ifdef __STDC__
24736 # include <limits.h>
24737 #else
24738 # include <assert.h>
24739 #endif
24740
24741 #undef $ac_func
24742
24743 /* Override any gcc2 internal prototype to avoid an error.  */
24744 #ifdef __cplusplus
24745 extern "C"
24746 {
24747 #endif
24748 /* We use char because int might match the return type of a gcc2
24749    builtin and then its argument prototype would still apply.  */
24750 char $ac_func ();
24751 /* The GNU C library defines this for functions which it implements
24752     to always fail with ENOSYS.  Some functions are actually named
24753     something starting with __ and the normal name is an alias.  */
24754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24755 choke me
24756 #else
24757 char (*f) () = $ac_func;
24758 #endif
24759 #ifdef __cplusplus
24760 }
24761 #endif
24762
24763 int
24764 main ()
24765 {
24766 return f != $ac_func;
24767   ;
24768   return 0;
24769 }
24770 _ACEOF
24771 rm -f conftest.$ac_objext conftest$ac_exeext
24772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24773   (eval $ac_link) 2>conftest.er1
24774   ac_status=$?
24775   grep -v '^ *+' conftest.er1 >conftest.err
24776   rm -f conftest.er1
24777   cat conftest.err >&5
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); } &&
24780          { ac_try='test -z "$ac_c_werror_flag"
24781                          || test ! -s conftest.err'
24782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783   (eval $ac_try) 2>&5
24784   ac_status=$?
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); }; } &&
24787          { ac_try='test -s conftest$ac_exeext'
24788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789   (eval $ac_try) 2>&5
24790   ac_status=$?
24791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792   (exit $ac_status); }; }; then
24793   eval "$as_ac_var=yes"
24794 else
24795   echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24797
24798 eval "$as_ac_var=no"
24799 fi
24800 rm -f conftest.err conftest.$ac_objext \
24801       conftest$ac_exeext conftest.$ac_ext
24802 fi
24803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24805 if test `eval echo '${'$as_ac_var'}'` = yes; then
24806   cat >>confdefs.h <<_ACEOF
24807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24808 _ACEOF
24809
24810 fi
24811 done
24812
24813
24814
24815
24816 for ac_func in pthread_kill_other_threads_np
24817 do
24818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24819 echo "$as_me:$LINENO: checking for $ac_func" >&5
24820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24821 if eval "test \"\${$as_ac_var+set}\" = set"; then
24822   echo $ECHO_N "(cached) $ECHO_C" >&6
24823 else
24824   cat >conftest.$ac_ext <<_ACEOF
24825 /* confdefs.h.  */
24826 _ACEOF
24827 cat confdefs.h >>conftest.$ac_ext
24828 cat >>conftest.$ac_ext <<_ACEOF
24829 /* end confdefs.h.  */
24830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24832 #define $ac_func innocuous_$ac_func
24833
24834 /* System header to define __stub macros and hopefully few prototypes,
24835     which can conflict with char $ac_func (); below.
24836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24837     <limits.h> exists even on freestanding compilers.  */
24838
24839 #ifdef __STDC__
24840 # include <limits.h>
24841 #else
24842 # include <assert.h>
24843 #endif
24844
24845 #undef $ac_func
24846
24847 /* Override any gcc2 internal prototype to avoid an error.  */
24848 #ifdef __cplusplus
24849 extern "C"
24850 {
24851 #endif
24852 /* We use char because int might match the return type of a gcc2
24853    builtin and then its argument prototype would still apply.  */
24854 char $ac_func ();
24855 /* The GNU C library defines this for functions which it implements
24856     to always fail with ENOSYS.  Some functions are actually named
24857     something starting with __ and the normal name is an alias.  */
24858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24859 choke me
24860 #else
24861 char (*f) () = $ac_func;
24862 #endif
24863 #ifdef __cplusplus
24864 }
24865 #endif
24866
24867 int
24868 main ()
24869 {
24870 return f != $ac_func;
24871   ;
24872   return 0;
24873 }
24874 _ACEOF
24875 rm -f conftest.$ac_objext conftest$ac_exeext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24877   (eval $ac_link) 2>conftest.er1
24878   ac_status=$?
24879   grep -v '^ *+' conftest.er1 >conftest.err
24880   rm -f conftest.er1
24881   cat conftest.err >&5
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); } &&
24884          { ac_try='test -z "$ac_c_werror_flag"
24885                          || test ! -s conftest.err'
24886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887   (eval $ac_try) 2>&5
24888   ac_status=$?
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); }; } &&
24891          { ac_try='test -s conftest$ac_exeext'
24892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893   (eval $ac_try) 2>&5
24894   ac_status=$?
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); }; }; then
24897   eval "$as_ac_var=yes"
24898 else
24899   echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24901
24902 eval "$as_ac_var=no"
24903 fi
24904 rm -f conftest.err conftest.$ac_objext \
24905       conftest$ac_exeext conftest.$ac_ext
24906 fi
24907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24909 if test `eval echo '${'$as_ac_var'}'` = yes; then
24910   cat >>confdefs.h <<_ACEOF
24911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24912 _ACEOF
24913
24914 fi
24915 done
24916
24917         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24918 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24919 if test "${ol_cv_sys_linux_threads+set}" = set; then
24920   echo $ECHO_N "(cached) $ECHO_C" >&6
24921 else
24922   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24923 fi
24924 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24925 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24926
24927
24928
24929
24930         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24931 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24932 if test "${ol_cv_linux_threads+set}" = set; then
24933   echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935
24936                 if test $ol_cv_header_linux_threads = yes &&
24937                    test $ol_cv_sys_linux_threads = yes; then
24938                         ol_cv_linux_threads=yes
24939                 elif test $ol_cv_header_linux_threads = no &&
24940                      test $ol_cv_sys_linux_threads = no; then
24941                         ol_cv_linux_threads=no
24942                 else
24943                         ol_cv_linux_threads=error
24944                 fi
24945
24946 fi
24947 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24948 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24949
24950
24951                         if test $ol_cv_linux_threads = error; then
24952                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24953 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24954    { (exit 1); exit 1; }; };
24955                         fi
24956
24957                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24958 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24959 if test "${ol_cv_pthread_create_works+set}" = set; then
24960   echo $ECHO_N "(cached) $ECHO_C" >&6
24961 else
24962
24963                         if test "$cross_compiling" = yes; then
24964                                 ol_cv_pthread_create_works=yes
24965 else
24966   cat >conftest.$ac_ext <<_ACEOF
24967 /* confdefs.h.  */
24968 _ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h.  */
24972
24973 /* pthread test headers */
24974 #include <pthread.h>
24975 #if HAVE_PTHREADS < 7
24976 #include <errno.h>
24977 #endif
24978 #ifndef NULL
24979 #define NULL (void*)0
24980 #endif
24981
24982 static void *task(p)
24983         void *p;
24984 {
24985         return (void *) (p == NULL);
24986 }
24987
24988
24989 int main(argc, argv)
24990         int argc;
24991         char **argv;
24992 {
24993
24994         /* pthread test function */
24995 #ifndef PTHREAD_CREATE_DETACHED
24996 #define PTHREAD_CREATE_DETACHED 1
24997 #endif
24998         pthread_t t;
24999         int status;
25000         int detach = PTHREAD_CREATE_DETACHED;
25001
25002 #if HAVE_PTHREADS > 4
25003         /* Final pthreads */
25004         pthread_attr_t attr;
25005
25006         status = pthread_attr_init(&attr);
25007         if( status ) return status;
25008
25009 #if HAVE_PTHREADS < 7
25010         status = pthread_attr_setdetachstate(&attr, &detach);
25011         if( status < 0 ) status = errno;
25012 #else
25013         status = pthread_attr_setdetachstate(&attr, detach);
25014 #endif
25015         if( status ) return status;
25016         status = pthread_create( &t, &attr, task, NULL );
25017 #if HAVE_PTHREADS < 7
25018         if( status < 0 ) status = errno;
25019 #endif
25020         if( status ) return status;
25021 #else
25022         /* Draft 4 pthreads */
25023         status = pthread_create( &t, pthread_attr_default, task, NULL );
25024         if( status ) return errno;
25025
25026         /* give thread a chance to complete */
25027         /* it should remain joinable and hence detachable */
25028         sleep( 1 );
25029
25030         status = pthread_detach( &t );
25031         if( status ) return errno;
25032 #endif
25033
25034 #ifdef HAVE_LINUX_THREADS
25035         pthread_kill_other_threads_np();
25036 #endif
25037
25038         return 0;
25039
25040 }
25041
25042 _ACEOF
25043 rm -f conftest$ac_exeext
25044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25045   (eval $ac_link) 2>&5
25046   ac_status=$?
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050   (eval $ac_try) 2>&5
25051   ac_status=$?
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); }; }; then
25054   ol_cv_pthread_create_works=yes
25055 else
25056   echo "$as_me: program exited with status $ac_status" >&5
25057 echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060 ( exit $ac_status )
25061 ol_cv_pthread_create_works=no
25062 fi
25063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25064 fi
25065 fi
25066 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25067 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25068
25069                         if test $ol_cv_pthread_create_works = no ; then
25070                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25071 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25072    { (exit 1); exit 1; }; }
25073                         fi
25074
25075                         ol_replace_broken_yield=no
25076
25077                         if test $ol_replace_broken_yield = yes ; then
25078
25079 cat >>confdefs.h <<\_ACEOF
25080 #define REPLACE_BROKEN_YIELD 1
25081 _ACEOF
25082
25083                         fi
25084
25085                                                 if test $ol_with_yielding_select = auto ; then
25086                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25087 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25088 if test "${ol_cv_pthread_select_yields+set}" = set; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091
25092                                 if test "$cross_compiling" = yes; then
25093   ol_cv_pthread_select_yields=cross
25094 else
25095   cat >conftest.$ac_ext <<_ACEOF
25096 /* confdefs.h.  */
25097 _ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h.  */
25101
25102 #include <sys/types.h>
25103 #include <sys/time.h>
25104 #include <unistd.h>
25105 #include <pthread.h>
25106 #ifndef NULL
25107 #define NULL (void*) 0
25108 #endif
25109
25110 static int fildes[2];
25111
25112 static void *task(p)
25113         void *p;
25114 {
25115         int i;
25116         struct timeval tv;
25117
25118         fd_set rfds;
25119
25120         tv.tv_sec=10;
25121         tv.tv_usec=0;
25122
25123         FD_ZERO(&rfds);
25124         FD_SET(fildes[0], &rfds);
25125
25126         /* we're not interested in any fds */
25127         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25128
25129         if(i < 0) {
25130                 perror("select");
25131                 exit(10);
25132         }
25133
25134         exit(0); /* if we exit here, the select blocked the whole process */
25135 }
25136
25137 int main(argc, argv)
25138         int argc;
25139         char **argv;
25140 {
25141         pthread_t t;
25142
25143         /* create a pipe to select */
25144         if(pipe(&fildes[0])) {
25145                 perror("select");
25146                 exit(1);
25147         }
25148
25149 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25150         (void) pthread_setconcurrency(2);
25151 #else
25152 #ifdef HAVE_THR_SETCONCURRENCY
25153         /* Set Solaris LWP concurrency to 2 */
25154         thr_setconcurrency(2);
25155 #endif
25156 #endif
25157
25158 #if HAVE_PTHREADS < 6
25159         pthread_create(&t, pthread_attr_default, task, NULL);
25160 #else
25161         pthread_create(&t, NULL, task, NULL);
25162 #endif
25163
25164         /* make sure task runs first */
25165 #if HAVE_THR_YIELD
25166         thr_yield();
25167 #elif defined( HAVE_SCHED_YIELD )
25168         sched_yield();
25169 #elif defined( HAVE_PTHREAD_YIELD )
25170         pthread_yield();
25171 #endif
25172
25173         exit(2);
25174 }
25175 _ACEOF
25176 rm -f conftest$ac_exeext
25177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25178   (eval $ac_link) 2>&5
25179   ac_status=$?
25180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25183   (eval $ac_try) 2>&5
25184   ac_status=$?
25185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186   (exit $ac_status); }; }; then
25187   ol_cv_pthread_select_yields=no
25188 else
25189   echo "$as_me: program exited with status $ac_status" >&5
25190 echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25192
25193 ( exit $ac_status )
25194 ol_cv_pthread_select_yields=yes
25195 fi
25196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25197 fi
25198 fi
25199 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25200 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25201
25202                                 if test $ol_cv_pthread_select_yields = cross ; then
25203                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25204 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25205    { (exit 1); exit 1; }; }
25206                                 fi
25207
25208                                 if test $ol_cv_pthread_select_yields = yes ; then
25209                                         ol_with_yielding_select=yes
25210                                 fi
25211                         fi
25212
25213                                                 CPPFLAGS="$save_CPPFLAGS"
25214                         LIBS="$save_LIBS"
25215                 else
25216                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25217 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25218    { (exit 1); exit 1; }; }
25219                 fi
25220         fi
25221
25222         if test $ol_with_threads = posix ; then
25223                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25224 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25225    { (exit 1); exit 1; }; }
25226         fi
25227         ;;
25228 esac
25229
25230 case $ol_with_threads in auto | yes | mach)
25231
25232
25233
25234 for ac_header in mach/cthreads.h cthreads.h
25235 do
25236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25238   echo "$as_me:$LINENO: checking for $ac_header" >&5
25239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25241   echo $ECHO_N "(cached) $ECHO_C" >&6
25242 fi
25243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25245 else
25246   # Is the header compilable?
25247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25249 cat >conftest.$ac_ext <<_ACEOF
25250 /* confdefs.h.  */
25251 _ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h.  */
25255 $ac_includes_default
25256 #include <$ac_header>
25257 _ACEOF
25258 rm -f conftest.$ac_objext
25259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25260   (eval $ac_compile) 2>conftest.er1
25261   ac_status=$?
25262   grep -v '^ *+' conftest.er1 >conftest.err
25263   rm -f conftest.er1
25264   cat conftest.err >&5
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } &&
25267          { ac_try='test -z "$ac_c_werror_flag"
25268                          || test ! -s conftest.err'
25269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25270   (eval $ac_try) 2>&5
25271   ac_status=$?
25272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273   (exit $ac_status); }; } &&
25274          { ac_try='test -s conftest.$ac_objext'
25275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276   (eval $ac_try) 2>&5
25277   ac_status=$?
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); }; }; then
25280   ac_header_compiler=yes
25281 else
25282   echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25284
25285 ac_header_compiler=no
25286 fi
25287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25289 echo "${ECHO_T}$ac_header_compiler" >&6
25290
25291 # Is the header present?
25292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25294 cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h.  */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h.  */
25300 #include <$ac_header>
25301 _ACEOF
25302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25304   ac_status=$?
25305   grep -v '^ *+' conftest.er1 >conftest.err
25306   rm -f conftest.er1
25307   cat conftest.err >&5
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); } >/dev/null; then
25310   if test -s conftest.err; then
25311     ac_cpp_err=$ac_c_preproc_warn_flag
25312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25313   else
25314     ac_cpp_err=
25315   fi
25316 else
25317   ac_cpp_err=yes
25318 fi
25319 if test -z "$ac_cpp_err"; then
25320   ac_header_preproc=yes
25321 else
25322   echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.$ac_ext >&5
25324
25325   ac_header_preproc=no
25326 fi
25327 rm -f conftest.err conftest.$ac_ext
25328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25329 echo "${ECHO_T}$ac_header_preproc" >&6
25330
25331 # So?  What about this header?
25332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25333   yes:no: )
25334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25338     ac_header_preproc=yes
25339     ;;
25340   no:yes:* )
25341     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25343     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25344 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25345     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25347     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25348 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25351     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25353     (
25354       cat <<\_ASBOX
25355 ## --------------------------------------------- ##
25356 ## Report this to <http://www.openldap.org/its/> ##
25357 ## --------------------------------------------- ##
25358 _ASBOX
25359     ) |
25360       sed "s/^/$as_me: WARNING:     /" >&2
25361     ;;
25362 esac
25363 echo "$as_me:$LINENO: checking for $ac_header" >&5
25364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25366   echo $ECHO_N "(cached) $ECHO_C" >&6
25367 else
25368   eval "$as_ac_Header=\$ac_header_preproc"
25369 fi
25370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25372
25373 fi
25374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25375   cat >>confdefs.h <<_ACEOF
25376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25377 _ACEOF
25378
25379 fi
25380
25381 done
25382
25383         if test $ac_cv_header_mach_cthreads_h = yes ; then
25384                 ol_with_threads=found
25385
25386                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25387 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25388 if test "${ac_cv_func_cthread_fork+set}" = set; then
25389   echo $ECHO_N "(cached) $ECHO_C" >&6
25390 else
25391   cat >conftest.$ac_ext <<_ACEOF
25392 /* confdefs.h.  */
25393 _ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h.  */
25397 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25399 #define cthread_fork innocuous_cthread_fork
25400
25401 /* System header to define __stub macros and hopefully few prototypes,
25402     which can conflict with char cthread_fork (); below.
25403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25404     <limits.h> exists even on freestanding compilers.  */
25405
25406 #ifdef __STDC__
25407 # include <limits.h>
25408 #else
25409 # include <assert.h>
25410 #endif
25411
25412 #undef cthread_fork
25413
25414 /* Override any gcc2 internal prototype to avoid an error.  */
25415 #ifdef __cplusplus
25416 extern "C"
25417 {
25418 #endif
25419 /* We use char because int might match the return type of a gcc2
25420    builtin and then its argument prototype would still apply.  */
25421 char cthread_fork ();
25422 /* The GNU C library defines this for functions which it implements
25423     to always fail with ENOSYS.  Some functions are actually named
25424     something starting with __ and the normal name is an alias.  */
25425 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25426 choke me
25427 #else
25428 char (*f) () = cthread_fork;
25429 #endif
25430 #ifdef __cplusplus
25431 }
25432 #endif
25433
25434 int
25435 main ()
25436 {
25437 return f != cthread_fork;
25438   ;
25439   return 0;
25440 }
25441 _ACEOF
25442 rm -f conftest.$ac_objext conftest$ac_exeext
25443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25444   (eval $ac_link) 2>conftest.er1
25445   ac_status=$?
25446   grep -v '^ *+' conftest.er1 >conftest.err
25447   rm -f conftest.er1
25448   cat conftest.err >&5
25449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); } &&
25451          { ac_try='test -z "$ac_c_werror_flag"
25452                          || test ! -s conftest.err'
25453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454   (eval $ac_try) 2>&5
25455   ac_status=$?
25456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); }; } &&
25458          { ac_try='test -s conftest$ac_exeext'
25459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460   (eval $ac_try) 2>&5
25461   ac_status=$?
25462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); }; }; then
25464   ac_cv_func_cthread_fork=yes
25465 else
25466   echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25468
25469 ac_cv_func_cthread_fork=no
25470 fi
25471 rm -f conftest.err conftest.$ac_objext \
25472       conftest$ac_exeext conftest.$ac_ext
25473 fi
25474 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25475 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25476 if test $ac_cv_func_cthread_fork = yes; then
25477   ol_link_threads=yes
25478 fi
25479
25480
25481                 if test $ol_link_threads = no ; then
25482                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25483 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25484 if test "${ol_cv_cthread_all_load+set}" = set; then
25485   echo $ECHO_N "(cached) $ECHO_C" >&6
25486 else
25487
25488                                                                 save_LIBS="$LIBS"
25489                                 LIBS="-all_load $LIBS"
25490                                 cat >conftest.$ac_ext <<_ACEOF
25491 /* confdefs.h.  */
25492 _ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h.  */
25496 #include <mach/cthreads.h>
25497 int
25498 main ()
25499 {
25500
25501                                         cthread_fork((void *)0, (void *)0);
25502
25503   ;
25504   return 0;
25505 }
25506 _ACEOF
25507 rm -f conftest.$ac_objext conftest$ac_exeext
25508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25509   (eval $ac_link) 2>conftest.er1
25510   ac_status=$?
25511   grep -v '^ *+' conftest.er1 >conftest.err
25512   rm -f conftest.er1
25513   cat conftest.err >&5
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); } &&
25516          { ac_try='test -z "$ac_c_werror_flag"
25517                          || test ! -s conftest.err'
25518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519   (eval $ac_try) 2>&5
25520   ac_status=$?
25521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522   (exit $ac_status); }; } &&
25523          { ac_try='test -s conftest$ac_exeext'
25524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25525   (eval $ac_try) 2>&5
25526   ac_status=$?
25527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528   (exit $ac_status); }; }; then
25529   ol_cv_cthread_all_load=yes
25530 else
25531   echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25533
25534 ol_cv_cthread_all_load=no
25535 fi
25536 rm -f conftest.err conftest.$ac_objext \
25537       conftest$ac_exeext conftest.$ac_ext
25538                                                                 LIBS="$save_LIBS"
25539
25540 fi
25541 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25542 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25543
25544                         if test $ol_cv_cthread_all_load = yes ; then
25545                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25546                                 ol_link_threads=mach
25547                                 ol_with_threads=found
25548                         fi
25549                 fi
25550
25551         elif test $ac_cv_header_cthreads_h = yes ; then
25552
25553                 ol_with_threads=found
25554
25555                                 save_LIBS="$LIBS"
25556                 LIBS="$LIBS -lthreads"
25557                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25558 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25559 if test "${ac_cv_func_cthread_fork+set}" = set; then
25560   echo $ECHO_N "(cached) $ECHO_C" >&6
25561 else
25562   cat >conftest.$ac_ext <<_ACEOF
25563 /* confdefs.h.  */
25564 _ACEOF
25565 cat confdefs.h >>conftest.$ac_ext
25566 cat >>conftest.$ac_ext <<_ACEOF
25567 /* end confdefs.h.  */
25568 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25570 #define cthread_fork innocuous_cthread_fork
25571
25572 /* System header to define __stub macros and hopefully few prototypes,
25573     which can conflict with char cthread_fork (); below.
25574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25575     <limits.h> exists even on freestanding compilers.  */
25576
25577 #ifdef __STDC__
25578 # include <limits.h>
25579 #else
25580 # include <assert.h>
25581 #endif
25582
25583 #undef cthread_fork
25584
25585 /* Override any gcc2 internal prototype to avoid an error.  */
25586 #ifdef __cplusplus
25587 extern "C"
25588 {
25589 #endif
25590 /* We use char because int might match the return type of a gcc2
25591    builtin and then its argument prototype would still apply.  */
25592 char cthread_fork ();
25593 /* The GNU C library defines this for functions which it implements
25594     to always fail with ENOSYS.  Some functions are actually named
25595     something starting with __ and the normal name is an alias.  */
25596 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25597 choke me
25598 #else
25599 char (*f) () = cthread_fork;
25600 #endif
25601 #ifdef __cplusplus
25602 }
25603 #endif
25604
25605 int
25606 main ()
25607 {
25608 return f != cthread_fork;
25609   ;
25610   return 0;
25611 }
25612 _ACEOF
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25615   (eval $ac_link) 2>conftest.er1
25616   ac_status=$?
25617   grep -v '^ *+' conftest.er1 >conftest.err
25618   rm -f conftest.er1
25619   cat conftest.err >&5
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); } &&
25622          { ac_try='test -z "$ac_c_werror_flag"
25623                          || test ! -s conftest.err'
25624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625   (eval $ac_try) 2>&5
25626   ac_status=$?
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); }; } &&
25629          { ac_try='test -s conftest$ac_exeext'
25630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631   (eval $ac_try) 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); }; }; then
25635   ac_cv_func_cthread_fork=yes
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640 ac_cv_func_cthread_fork=no
25641 fi
25642 rm -f conftest.err conftest.$ac_objext \
25643       conftest$ac_exeext conftest.$ac_ext
25644 fi
25645 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25646 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25647 if test $ac_cv_func_cthread_fork = yes; then
25648   ol_link_threads=yes
25649 fi
25650
25651                 LIBS="$save_LIBS"
25652
25653                 if test $ol_link_threads = yes ; then
25654                         LTHREAD_LIBS="-lthreads"
25655                         ol_link_threads=mach
25656                         ol_with_threads=found
25657                 else
25658                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25659 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25660    { (exit 1); exit 1; }; }
25661                 fi
25662
25663         elif test $ol_with_threads = mach ; then
25664                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25665 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25666    { (exit 1); exit 1; }; }
25667         fi
25668
25669         if test $ol_link_threads = mach ; then
25670
25671 cat >>confdefs.h <<\_ACEOF
25672 #define HAVE_MACH_CTHREADS 1
25673 _ACEOF
25674
25675         elif test $ol_with_threads = found ; then
25676                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25677 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25678    { (exit 1); exit 1; }; }
25679         fi
25680         ;;
25681 esac
25682
25683 case $ol_with_threads in auto | yes | pth)
25684
25685
25686 for ac_header in pth.h
25687 do
25688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25690   echo "$as_me:$LINENO: checking for $ac_header" >&5
25691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25693   echo $ECHO_N "(cached) $ECHO_C" >&6
25694 fi
25695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25697 else
25698   # Is the header compilable?
25699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25701 cat >conftest.$ac_ext <<_ACEOF
25702 /* confdefs.h.  */
25703 _ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h.  */
25707 $ac_includes_default
25708 #include <$ac_header>
25709 _ACEOF
25710 rm -f conftest.$ac_objext
25711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25712   (eval $ac_compile) 2>conftest.er1
25713   ac_status=$?
25714   grep -v '^ *+' conftest.er1 >conftest.err
25715   rm -f conftest.er1
25716   cat conftest.err >&5
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); } &&
25719          { ac_try='test -z "$ac_c_werror_flag"
25720                          || test ! -s conftest.err'
25721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722   (eval $ac_try) 2>&5
25723   ac_status=$?
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); }; } &&
25726          { ac_try='test -s conftest.$ac_objext'
25727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728   (eval $ac_try) 2>&5
25729   ac_status=$?
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); }; }; then
25732   ac_header_compiler=yes
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737 ac_header_compiler=no
25738 fi
25739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25741 echo "${ECHO_T}$ac_header_compiler" >&6
25742
25743 # Is the header present?
25744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25746 cat >conftest.$ac_ext <<_ACEOF
25747 /* confdefs.h.  */
25748 _ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h.  */
25752 #include <$ac_header>
25753 _ACEOF
25754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25756   ac_status=$?
25757   grep -v '^ *+' conftest.er1 >conftest.err
25758   rm -f conftest.er1
25759   cat conftest.err >&5
25760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761   (exit $ac_status); } >/dev/null; then
25762   if test -s conftest.err; then
25763     ac_cpp_err=$ac_c_preproc_warn_flag
25764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25765   else
25766     ac_cpp_err=
25767   fi
25768 else
25769   ac_cpp_err=yes
25770 fi
25771 if test -z "$ac_cpp_err"; then
25772   ac_header_preproc=yes
25773 else
25774   echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25776
25777   ac_header_preproc=no
25778 fi
25779 rm -f conftest.err conftest.$ac_ext
25780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25781 echo "${ECHO_T}$ac_header_preproc" >&6
25782
25783 # So?  What about this header?
25784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25785   yes:no: )
25786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25790     ac_header_preproc=yes
25791     ;;
25792   no:yes:* )
25793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25805     (
25806       cat <<\_ASBOX
25807 ## --------------------------------------------- ##
25808 ## Report this to <http://www.openldap.org/its/> ##
25809 ## --------------------------------------------- ##
25810 _ASBOX
25811     ) |
25812       sed "s/^/$as_me: WARNING:     /" >&2
25813     ;;
25814 esac
25815 echo "$as_me:$LINENO: checking for $ac_header" >&5
25816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25818   echo $ECHO_N "(cached) $ECHO_C" >&6
25819 else
25820   eval "$as_ac_Header=\$ac_header_preproc"
25821 fi
25822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25824
25825 fi
25826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25827   cat >>confdefs.h <<_ACEOF
25828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25829 _ACEOF
25830
25831 fi
25832
25833 done
25834
25835
25836         if test $ac_cv_header_pth_h = yes ; then
25837                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25838 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25839 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25840   echo $ECHO_N "(cached) $ECHO_C" >&6
25841 else
25842   ac_check_lib_save_LIBS=$LIBS
25843 LIBS="-lpth  $LIBS"
25844 cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h.  */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h.  */
25850
25851 /* Override any gcc2 internal prototype to avoid an error.  */
25852 #ifdef __cplusplus
25853 extern "C"
25854 #endif
25855 /* We use char because int might match the return type of a gcc2
25856    builtin and then its argument prototype would still apply.  */
25857 char pth_version ();
25858 int
25859 main ()
25860 {
25861 pth_version ();
25862   ;
25863   return 0;
25864 }
25865 _ACEOF
25866 rm -f conftest.$ac_objext conftest$ac_exeext
25867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25868   (eval $ac_link) 2>conftest.er1
25869   ac_status=$?
25870   grep -v '^ *+' conftest.er1 >conftest.err
25871   rm -f conftest.er1
25872   cat conftest.err >&5
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); } &&
25875          { ac_try='test -z "$ac_c_werror_flag"
25876                          || test ! -s conftest.err'
25877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878   (eval $ac_try) 2>&5
25879   ac_status=$?
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); }; } &&
25882          { ac_try='test -s conftest$ac_exeext'
25883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884   (eval $ac_try) 2>&5
25885   ac_status=$?
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); }; }; then
25888   ac_cv_lib_pth_pth_version=yes
25889 else
25890   echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25892
25893 ac_cv_lib_pth_pth_version=no
25894 fi
25895 rm -f conftest.err conftest.$ac_objext \
25896       conftest$ac_exeext conftest.$ac_ext
25897 LIBS=$ac_check_lib_save_LIBS
25898 fi
25899 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25900 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25901 if test $ac_cv_lib_pth_pth_version = yes; then
25902   have_pth=yes
25903 else
25904   have_pth=no
25905 fi
25906
25907
25908                 if test $have_pth = yes ; then
25909
25910 cat >>confdefs.h <<\_ACEOF
25911 #define HAVE_GNU_PTH 1
25912 _ACEOF
25913
25914                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25915                         ol_link_threads=pth
25916                         ol_with_threads=found
25917
25918                         if test $ol_with_yielding_select = auto ; then
25919                                 ol_with_yielding_select=yes
25920                         fi
25921                 fi
25922         fi
25923         ;;
25924 esac
25925
25926 case $ol_with_threads in auto | yes | lwp)
25927
25928
25929
25930 for ac_header in thread.h synch.h
25931 do
25932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25934   echo "$as_me:$LINENO: checking for $ac_header" >&5
25935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25937   echo $ECHO_N "(cached) $ECHO_C" >&6
25938 fi
25939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25941 else
25942   # Is the header compilable?
25943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25945 cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h.  */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h.  */
25951 $ac_includes_default
25952 #include <$ac_header>
25953 _ACEOF
25954 rm -f conftest.$ac_objext
25955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25956   (eval $ac_compile) 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_objext'
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   ac_header_compiler=yes
25977 else
25978   echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25980
25981 ac_header_compiler=no
25982 fi
25983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25985 echo "${ECHO_T}$ac_header_compiler" >&6
25986
25987 # Is the header present?
25988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25990 cat >conftest.$ac_ext <<_ACEOF
25991 /* confdefs.h.  */
25992 _ACEOF
25993 cat confdefs.h >>conftest.$ac_ext
25994 cat >>conftest.$ac_ext <<_ACEOF
25995 /* end confdefs.h.  */
25996 #include <$ac_header>
25997 _ACEOF
25998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26000   ac_status=$?
26001   grep -v '^ *+' conftest.er1 >conftest.err
26002   rm -f conftest.er1
26003   cat conftest.err >&5
26004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005   (exit $ac_status); } >/dev/null; then
26006   if test -s conftest.err; then
26007     ac_cpp_err=$ac_c_preproc_warn_flag
26008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26009   else
26010     ac_cpp_err=
26011   fi
26012 else
26013   ac_cpp_err=yes
26014 fi
26015 if test -z "$ac_cpp_err"; then
26016   ac_header_preproc=yes
26017 else
26018   echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26020
26021   ac_header_preproc=no
26022 fi
26023 rm -f conftest.err conftest.$ac_ext
26024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26025 echo "${ECHO_T}$ac_header_preproc" >&6
26026
26027 # So?  What about this header?
26028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26029   yes:no: )
26030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26034     ac_header_preproc=yes
26035     ;;
26036   no:yes:* )
26037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26049     (
26050       cat <<\_ASBOX
26051 ## --------------------------------------------- ##
26052 ## Report this to <http://www.openldap.org/its/> ##
26053 ## --------------------------------------------- ##
26054 _ASBOX
26055     ) |
26056       sed "s/^/$as_me: WARNING:     /" >&2
26057     ;;
26058 esac
26059 echo "$as_me:$LINENO: checking for $ac_header" >&5
26060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26062   echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064   eval "$as_ac_Header=\$ac_header_preproc"
26065 fi
26066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26068
26069 fi
26070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26071   cat >>confdefs.h <<_ACEOF
26072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26073 _ACEOF
26074
26075 fi
26076
26077 done
26078
26079         if test $ac_cv_header_thread_h = yes &&
26080            test $ac_cv_header_synch_h = yes ; then
26081                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26082 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26083 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26084   echo $ECHO_N "(cached) $ECHO_C" >&6
26085 else
26086   ac_check_lib_save_LIBS=$LIBS
26087 LIBS="-lthread  $LIBS"
26088 cat >conftest.$ac_ext <<_ACEOF
26089 /* confdefs.h.  */
26090 _ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h.  */
26094
26095 /* Override any gcc2 internal prototype to avoid an error.  */
26096 #ifdef __cplusplus
26097 extern "C"
26098 #endif
26099 /* We use char because int might match the return type of a gcc2
26100    builtin and then its argument prototype would still apply.  */
26101 char thr_create ();
26102 int
26103 main ()
26104 {
26105 thr_create ();
26106   ;
26107   return 0;
26108 }
26109 _ACEOF
26110 rm -f conftest.$ac_objext conftest$ac_exeext
26111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26112   (eval $ac_link) 2>conftest.er1
26113   ac_status=$?
26114   grep -v '^ *+' conftest.er1 >conftest.err
26115   rm -f conftest.er1
26116   cat conftest.err >&5
26117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118   (exit $ac_status); } &&
26119          { ac_try='test -z "$ac_c_werror_flag"
26120                          || test ! -s conftest.err'
26121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122   (eval $ac_try) 2>&5
26123   ac_status=$?
26124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125   (exit $ac_status); }; } &&
26126          { ac_try='test -s conftest$ac_exeext'
26127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128   (eval $ac_try) 2>&5
26129   ac_status=$?
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); }; }; then
26132   ac_cv_lib_thread_thr_create=yes
26133 else
26134   echo "$as_me: failed program was:" >&5
26135 sed 's/^/| /' conftest.$ac_ext >&5
26136
26137 ac_cv_lib_thread_thr_create=no
26138 fi
26139 rm -f conftest.err conftest.$ac_objext \
26140       conftest$ac_exeext conftest.$ac_ext
26141 LIBS=$ac_check_lib_save_LIBS
26142 fi
26143 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26144 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26145 if test $ac_cv_lib_thread_thr_create = yes; then
26146   have_thr=yes
26147 else
26148   have_thr=no
26149 fi
26150
26151
26152                 if test $have_thr = yes ; then
26153
26154 cat >>confdefs.h <<\_ACEOF
26155 #define HAVE_THR 1
26156 _ACEOF
26157
26158                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26159                         ol_link_threads=thr
26160
26161                         if test $ol_with_yielding_select = auto ; then
26162                                 ol_with_yielding_select=yes
26163                         fi
26164
26165
26166
26167 for ac_func in \
26168                                 thr_setconcurrency \
26169                                 thr_getconcurrency \
26170
26171 do
26172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26173 echo "$as_me:$LINENO: checking for $ac_func" >&5
26174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26175 if eval "test \"\${$as_ac_var+set}\" = set"; then
26176   echo $ECHO_N "(cached) $ECHO_C" >&6
26177 else
26178   cat >conftest.$ac_ext <<_ACEOF
26179 /* confdefs.h.  */
26180 _ACEOF
26181 cat confdefs.h >>conftest.$ac_ext
26182 cat >>conftest.$ac_ext <<_ACEOF
26183 /* end confdefs.h.  */
26184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26186 #define $ac_func innocuous_$ac_func
26187
26188 /* System header to define __stub macros and hopefully few prototypes,
26189     which can conflict with char $ac_func (); below.
26190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26191     <limits.h> exists even on freestanding compilers.  */
26192
26193 #ifdef __STDC__
26194 # include <limits.h>
26195 #else
26196 # include <assert.h>
26197 #endif
26198
26199 #undef $ac_func
26200
26201 /* Override any gcc2 internal prototype to avoid an error.  */
26202 #ifdef __cplusplus
26203 extern "C"
26204 {
26205 #endif
26206 /* We use char because int might match the return type of a gcc2
26207    builtin and then its argument prototype would still apply.  */
26208 char $ac_func ();
26209 /* The GNU C library defines this for functions which it implements
26210     to always fail with ENOSYS.  Some functions are actually named
26211     something starting with __ and the normal name is an alias.  */
26212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26213 choke me
26214 #else
26215 char (*f) () = $ac_func;
26216 #endif
26217 #ifdef __cplusplus
26218 }
26219 #endif
26220
26221 int
26222 main ()
26223 {
26224 return f != $ac_func;
26225   ;
26226   return 0;
26227 }
26228 _ACEOF
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26231   (eval $ac_link) 2>conftest.er1
26232   ac_status=$?
26233   grep -v '^ *+' conftest.er1 >conftest.err
26234   rm -f conftest.er1
26235   cat conftest.err >&5
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); } &&
26238          { ac_try='test -z "$ac_c_werror_flag"
26239                          || test ! -s conftest.err'
26240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241   (eval $ac_try) 2>&5
26242   ac_status=$?
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); }; } &&
26245          { ac_try='test -s conftest$ac_exeext'
26246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247   (eval $ac_try) 2>&5
26248   ac_status=$?
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); }; }; then
26251   eval "$as_ac_var=yes"
26252 else
26253   echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26255
26256 eval "$as_ac_var=no"
26257 fi
26258 rm -f conftest.err conftest.$ac_objext \
26259       conftest$ac_exeext conftest.$ac_ext
26260 fi
26261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26263 if test `eval echo '${'$as_ac_var'}'` = yes; then
26264   cat >>confdefs.h <<_ACEOF
26265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26266 _ACEOF
26267
26268 fi
26269 done
26270
26271                 fi
26272         fi
26273
26274
26275 for ac_header in lwp/lwp.h
26276 do
26277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26279   echo "$as_me:$LINENO: checking for $ac_header" >&5
26280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26282   echo $ECHO_N "(cached) $ECHO_C" >&6
26283 fi
26284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26286 else
26287   # Is the header compilable?
26288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26290 cat >conftest.$ac_ext <<_ACEOF
26291 /* confdefs.h.  */
26292 _ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h.  */
26296 $ac_includes_default
26297 #include <$ac_header>
26298 _ACEOF
26299 rm -f conftest.$ac_objext
26300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26301   (eval $ac_compile) 2>conftest.er1
26302   ac_status=$?
26303   grep -v '^ *+' conftest.er1 >conftest.err
26304   rm -f conftest.er1
26305   cat conftest.err >&5
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); } &&
26308          { ac_try='test -z "$ac_c_werror_flag"
26309                          || test ! -s conftest.err'
26310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311   (eval $ac_try) 2>&5
26312   ac_status=$?
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); }; } &&
26315          { ac_try='test -s conftest.$ac_objext'
26316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26317   (eval $ac_try) 2>&5
26318   ac_status=$?
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); }; }; then
26321   ac_header_compiler=yes
26322 else
26323   echo "$as_me: failed program was:" >&5
26324 sed 's/^/| /' conftest.$ac_ext >&5
26325
26326 ac_header_compiler=no
26327 fi
26328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26330 echo "${ECHO_T}$ac_header_compiler" >&6
26331
26332 # Is the header present?
26333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26335 cat >conftest.$ac_ext <<_ACEOF
26336 /* confdefs.h.  */
26337 _ACEOF
26338 cat confdefs.h >>conftest.$ac_ext
26339 cat >>conftest.$ac_ext <<_ACEOF
26340 /* end confdefs.h.  */
26341 #include <$ac_header>
26342 _ACEOF
26343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26345   ac_status=$?
26346   grep -v '^ *+' conftest.er1 >conftest.err
26347   rm -f conftest.er1
26348   cat conftest.err >&5
26349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350   (exit $ac_status); } >/dev/null; then
26351   if test -s conftest.err; then
26352     ac_cpp_err=$ac_c_preproc_warn_flag
26353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26354   else
26355     ac_cpp_err=
26356   fi
26357 else
26358   ac_cpp_err=yes
26359 fi
26360 if test -z "$ac_cpp_err"; then
26361   ac_header_preproc=yes
26362 else
26363   echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26365
26366   ac_header_preproc=no
26367 fi
26368 rm -f conftest.err conftest.$ac_ext
26369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26370 echo "${ECHO_T}$ac_header_preproc" >&6
26371
26372 # So?  What about this header?
26373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26374   yes:no: )
26375     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26379     ac_header_preproc=yes
26380     ;;
26381   no:yes:* )
26382     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26384     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26385 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26386     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26388     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26389 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26392     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26394     (
26395       cat <<\_ASBOX
26396 ## --------------------------------------------- ##
26397 ## Report this to <http://www.openldap.org/its/> ##
26398 ## --------------------------------------------- ##
26399 _ASBOX
26400     ) |
26401       sed "s/^/$as_me: WARNING:     /" >&2
26402     ;;
26403 esac
26404 echo "$as_me:$LINENO: checking for $ac_header" >&5
26405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26407   echo $ECHO_N "(cached) $ECHO_C" >&6
26408 else
26409   eval "$as_ac_Header=\$ac_header_preproc"
26410 fi
26411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26413
26414 fi
26415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26416   cat >>confdefs.h <<_ACEOF
26417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26418 _ACEOF
26419
26420 fi
26421
26422 done
26423
26424         if test $ac_cv_header_lwp_lwp_h = yes ; then
26425                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26426 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26427 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26428   echo $ECHO_N "(cached) $ECHO_C" >&6
26429 else
26430   ac_check_lib_save_LIBS=$LIBS
26431 LIBS="-llwp  $LIBS"
26432 cat >conftest.$ac_ext <<_ACEOF
26433 /* confdefs.h.  */
26434 _ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h.  */
26438
26439 /* Override any gcc2 internal prototype to avoid an error.  */
26440 #ifdef __cplusplus
26441 extern "C"
26442 #endif
26443 /* We use char because int might match the return type of a gcc2
26444    builtin and then its argument prototype would still apply.  */
26445 char lwp_create ();
26446 int
26447 main ()
26448 {
26449 lwp_create ();
26450   ;
26451   return 0;
26452 }
26453 _ACEOF
26454 rm -f conftest.$ac_objext conftest$ac_exeext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26456   (eval $ac_link) 2>conftest.er1
26457   ac_status=$?
26458   grep -v '^ *+' conftest.er1 >conftest.err
26459   rm -f conftest.er1
26460   cat conftest.err >&5
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); } &&
26463          { ac_try='test -z "$ac_c_werror_flag"
26464                          || test ! -s conftest.err'
26465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466   (eval $ac_try) 2>&5
26467   ac_status=$?
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); }; } &&
26470          { ac_try='test -s conftest$ac_exeext'
26471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472   (eval $ac_try) 2>&5
26473   ac_status=$?
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); }; }; then
26476   ac_cv_lib_lwp_lwp_create=yes
26477 else
26478   echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481 ac_cv_lib_lwp_lwp_create=no
26482 fi
26483 rm -f conftest.err conftest.$ac_objext \
26484       conftest$ac_exeext conftest.$ac_ext
26485 LIBS=$ac_check_lib_save_LIBS
26486 fi
26487 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26488 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26489 if test $ac_cv_lib_lwp_lwp_create = yes; then
26490   have_lwp=yes
26491 else
26492   have_lwp=no
26493 fi
26494
26495
26496                 if test $have_lwp = yes ; then
26497
26498 cat >>confdefs.h <<\_ACEOF
26499 #define HAVE_LWP 1
26500 _ACEOF
26501
26502                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26503                         ol_link_threads=lwp
26504
26505                         if test $ol_with_yielding_select = auto ; then
26506                                 ol_with_yielding_select=no
26507                         fi
26508                 fi
26509         fi
26510         ;;
26511 esac
26512
26513 if test $ol_with_yielding_select = yes ; then
26514
26515 cat >>confdefs.h <<\_ACEOF
26516 #define HAVE_YIELDING_SELECT 1
26517 _ACEOF
26518
26519 fi
26520
26521 if test $ol_with_threads = manual ; then
26522                 ol_link_threads=yes
26523
26524         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26525 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26526
26527
26528
26529 for ac_header in pthread.h sched.h
26530 do
26531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26533   echo "$as_me:$LINENO: checking for $ac_header" >&5
26534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26536   echo $ECHO_N "(cached) $ECHO_C" >&6
26537 fi
26538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26540 else
26541   # Is the header compilable?
26542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26544 cat >conftest.$ac_ext <<_ACEOF
26545 /* confdefs.h.  */
26546 _ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h.  */
26550 $ac_includes_default
26551 #include <$ac_header>
26552 _ACEOF
26553 rm -f conftest.$ac_objext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26555   (eval $ac_compile) 2>conftest.er1
26556   ac_status=$?
26557   grep -v '^ *+' conftest.er1 >conftest.err
26558   rm -f conftest.er1
26559   cat conftest.err >&5
26560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561   (exit $ac_status); } &&
26562          { ac_try='test -z "$ac_c_werror_flag"
26563                          || test ! -s conftest.err'
26564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565   (eval $ac_try) 2>&5
26566   ac_status=$?
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); }; } &&
26569          { ac_try='test -s conftest.$ac_objext'
26570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26571   (eval $ac_try) 2>&5
26572   ac_status=$?
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); }; }; then
26575   ac_header_compiler=yes
26576 else
26577   echo "$as_me: failed program was:" >&5
26578 sed 's/^/| /' conftest.$ac_ext >&5
26579
26580 ac_header_compiler=no
26581 fi
26582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26584 echo "${ECHO_T}$ac_header_compiler" >&6
26585
26586 # Is the header present?
26587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26589 cat >conftest.$ac_ext <<_ACEOF
26590 /* confdefs.h.  */
26591 _ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
26594 /* end confdefs.h.  */
26595 #include <$ac_header>
26596 _ACEOF
26597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26599   ac_status=$?
26600   grep -v '^ *+' conftest.er1 >conftest.err
26601   rm -f conftest.er1
26602   cat conftest.err >&5
26603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604   (exit $ac_status); } >/dev/null; then
26605   if test -s conftest.err; then
26606     ac_cpp_err=$ac_c_preproc_warn_flag
26607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26608   else
26609     ac_cpp_err=
26610   fi
26611 else
26612   ac_cpp_err=yes
26613 fi
26614 if test -z "$ac_cpp_err"; then
26615   ac_header_preproc=yes
26616 else
26617   echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26619
26620   ac_header_preproc=no
26621 fi
26622 rm -f conftest.err conftest.$ac_ext
26623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26624 echo "${ECHO_T}$ac_header_preproc" >&6
26625
26626 # So?  What about this header?
26627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26628   yes:no: )
26629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26633     ac_header_preproc=yes
26634     ;;
26635   no:yes:* )
26636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26648     (
26649       cat <<\_ASBOX
26650 ## --------------------------------------------- ##
26651 ## Report this to <http://www.openldap.org/its/> ##
26652 ## --------------------------------------------- ##
26653 _ASBOX
26654     ) |
26655       sed "s/^/$as_me: WARNING:     /" >&2
26656     ;;
26657 esac
26658 echo "$as_me:$LINENO: checking for $ac_header" >&5
26659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26661   echo $ECHO_N "(cached) $ECHO_C" >&6
26662 else
26663   eval "$as_ac_Header=\$ac_header_preproc"
26664 fi
26665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26667
26668 fi
26669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26670   cat >>confdefs.h <<_ACEOF
26671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26672 _ACEOF
26673
26674 fi
26675
26676 done
26677
26678
26679
26680 for ac_func in sched_yield pthread_yield
26681 do
26682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26683 echo "$as_me:$LINENO: checking for $ac_func" >&5
26684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26685 if eval "test \"\${$as_ac_var+set}\" = set"; then
26686   echo $ECHO_N "(cached) $ECHO_C" >&6
26687 else
26688   cat >conftest.$ac_ext <<_ACEOF
26689 /* confdefs.h.  */
26690 _ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h.  */
26694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26696 #define $ac_func innocuous_$ac_func
26697
26698 /* System header to define __stub macros and hopefully few prototypes,
26699     which can conflict with char $ac_func (); below.
26700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26701     <limits.h> exists even on freestanding compilers.  */
26702
26703 #ifdef __STDC__
26704 # include <limits.h>
26705 #else
26706 # include <assert.h>
26707 #endif
26708
26709 #undef $ac_func
26710
26711 /* Override any gcc2 internal prototype to avoid an error.  */
26712 #ifdef __cplusplus
26713 extern "C"
26714 {
26715 #endif
26716 /* We use char because int might match the return type of a gcc2
26717    builtin and then its argument prototype would still apply.  */
26718 char $ac_func ();
26719 /* The GNU C library defines this for functions which it implements
26720     to always fail with ENOSYS.  Some functions are actually named
26721     something starting with __ and the normal name is an alias.  */
26722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26723 choke me
26724 #else
26725 char (*f) () = $ac_func;
26726 #endif
26727 #ifdef __cplusplus
26728 }
26729 #endif
26730
26731 int
26732 main ()
26733 {
26734 return f != $ac_func;
26735   ;
26736   return 0;
26737 }
26738 _ACEOF
26739 rm -f conftest.$ac_objext conftest$ac_exeext
26740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26741   (eval $ac_link) 2>conftest.er1
26742   ac_status=$?
26743   grep -v '^ *+' conftest.er1 >conftest.err
26744   rm -f conftest.er1
26745   cat conftest.err >&5
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); } &&
26748          { ac_try='test -z "$ac_c_werror_flag"
26749                          || test ! -s conftest.err'
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); }; } &&
26755          { ac_try='test -s conftest$ac_exeext'
26756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26757   (eval $ac_try) 2>&5
26758   ac_status=$?
26759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760   (exit $ac_status); }; }; then
26761   eval "$as_ac_var=yes"
26762 else
26763   echo "$as_me: failed program was:" >&5
26764 sed 's/^/| /' conftest.$ac_ext >&5
26765
26766 eval "$as_ac_var=no"
26767 fi
26768 rm -f conftest.err conftest.$ac_objext \
26769       conftest$ac_exeext conftest.$ac_ext
26770 fi
26771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26773 if test `eval echo '${'$as_ac_var'}'` = yes; then
26774   cat >>confdefs.h <<_ACEOF
26775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26776 _ACEOF
26777
26778 fi
26779 done
26780
26781
26782         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26783 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26784 if test "${ol_cv_header_linux_threads+set}" = set; then
26785   echo $ECHO_N "(cached) $ECHO_C" >&6
26786 else
26787   cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h.  */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h.  */
26793 #include <pthread.h>
26794 _ACEOF
26795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26796   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26797   ol_cv_header_linux_threads=yes
26798 else
26799   ol_cv_header_linux_threads=no
26800 fi
26801 rm -f conftest*
26802
26803
26804 fi
26805 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26806 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26807         if test $ol_cv_header_linux_threads = yes; then
26808
26809 cat >>confdefs.h <<\_ACEOF
26810 #define HAVE_LINUX_THREADS 1
26811 _ACEOF
26812
26813         fi
26814
26815
26816
26817 for ac_header in mach/cthreads.h
26818 do
26819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26821   echo "$as_me:$LINENO: checking for $ac_header" >&5
26822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26824   echo $ECHO_N "(cached) $ECHO_C" >&6
26825 fi
26826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26828 else
26829   # Is the header compilable?
26830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26832 cat >conftest.$ac_ext <<_ACEOF
26833 /* confdefs.h.  */
26834 _ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h.  */
26838 $ac_includes_default
26839 #include <$ac_header>
26840 _ACEOF
26841 rm -f conftest.$ac_objext
26842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26843   (eval $ac_compile) 2>conftest.er1
26844   ac_status=$?
26845   grep -v '^ *+' conftest.er1 >conftest.err
26846   rm -f conftest.er1
26847   cat conftest.err >&5
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); } &&
26850          { ac_try='test -z "$ac_c_werror_flag"
26851                          || test ! -s conftest.err'
26852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853   (eval $ac_try) 2>&5
26854   ac_status=$?
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); }; } &&
26857          { ac_try='test -s conftest.$ac_objext'
26858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859   (eval $ac_try) 2>&5
26860   ac_status=$?
26861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); }; }; then
26863   ac_header_compiler=yes
26864 else
26865   echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26867
26868 ac_header_compiler=no
26869 fi
26870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26872 echo "${ECHO_T}$ac_header_compiler" >&6
26873
26874 # Is the header present?
26875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26877 cat >conftest.$ac_ext <<_ACEOF
26878 /* confdefs.h.  */
26879 _ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h.  */
26883 #include <$ac_header>
26884 _ACEOF
26885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26887   ac_status=$?
26888   grep -v '^ *+' conftest.er1 >conftest.err
26889   rm -f conftest.er1
26890   cat conftest.err >&5
26891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892   (exit $ac_status); } >/dev/null; then
26893   if test -s conftest.err; then
26894     ac_cpp_err=$ac_c_preproc_warn_flag
26895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26896   else
26897     ac_cpp_err=
26898   fi
26899 else
26900   ac_cpp_err=yes
26901 fi
26902 if test -z "$ac_cpp_err"; then
26903   ac_header_preproc=yes
26904 else
26905   echo "$as_me: failed program was:" >&5
26906 sed 's/^/| /' conftest.$ac_ext >&5
26907
26908   ac_header_preproc=no
26909 fi
26910 rm -f conftest.err conftest.$ac_ext
26911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26912 echo "${ECHO_T}$ac_header_preproc" >&6
26913
26914 # So?  What about this header?
26915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26916   yes:no: )
26917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26921     ac_header_preproc=yes
26922     ;;
26923   no:yes:* )
26924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26936     (
26937       cat <<\_ASBOX
26938 ## --------------------------------------------- ##
26939 ## Report this to <http://www.openldap.org/its/> ##
26940 ## --------------------------------------------- ##
26941 _ASBOX
26942     ) |
26943       sed "s/^/$as_me: WARNING:     /" >&2
26944     ;;
26945 esac
26946 echo "$as_me:$LINENO: checking for $ac_header" >&5
26947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26949   echo $ECHO_N "(cached) $ECHO_C" >&6
26950 else
26951   eval "$as_ac_Header=\$ac_header_preproc"
26952 fi
26953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26955
26956 fi
26957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26958   cat >>confdefs.h <<_ACEOF
26959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26960 _ACEOF
26961
26962 fi
26963
26964 done
26965
26966
26967 for ac_header in lwp/lwp.h
26968 do
26969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26971   echo "$as_me:$LINENO: checking for $ac_header" >&5
26972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26974   echo $ECHO_N "(cached) $ECHO_C" >&6
26975 fi
26976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26978 else
26979   # Is the header compilable?
26980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26982 cat >conftest.$ac_ext <<_ACEOF
26983 /* confdefs.h.  */
26984 _ACEOF
26985 cat confdefs.h >>conftest.$ac_ext
26986 cat >>conftest.$ac_ext <<_ACEOF
26987 /* end confdefs.h.  */
26988 $ac_includes_default
26989 #include <$ac_header>
26990 _ACEOF
26991 rm -f conftest.$ac_objext
26992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26993   (eval $ac_compile) 2>conftest.er1
26994   ac_status=$?
26995   grep -v '^ *+' conftest.er1 >conftest.err
26996   rm -f conftest.er1
26997   cat conftest.err >&5
26998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); } &&
27000          { ac_try='test -z "$ac_c_werror_flag"
27001                          || test ! -s conftest.err'
27002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003   (eval $ac_try) 2>&5
27004   ac_status=$?
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); }; } &&
27007          { ac_try='test -s conftest.$ac_objext'
27008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27009   (eval $ac_try) 2>&5
27010   ac_status=$?
27011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012   (exit $ac_status); }; }; then
27013   ac_header_compiler=yes
27014 else
27015   echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27017
27018 ac_header_compiler=no
27019 fi
27020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27022 echo "${ECHO_T}$ac_header_compiler" >&6
27023
27024 # Is the header present?
27025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27027 cat >conftest.$ac_ext <<_ACEOF
27028 /* confdefs.h.  */
27029 _ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h.  */
27033 #include <$ac_header>
27034 _ACEOF
27035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27037   ac_status=$?
27038   grep -v '^ *+' conftest.er1 >conftest.err
27039   rm -f conftest.er1
27040   cat conftest.err >&5
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); } >/dev/null; then
27043   if test -s conftest.err; then
27044     ac_cpp_err=$ac_c_preproc_warn_flag
27045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27046   else
27047     ac_cpp_err=
27048   fi
27049 else
27050   ac_cpp_err=yes
27051 fi
27052 if test -z "$ac_cpp_err"; then
27053   ac_header_preproc=yes
27054 else
27055   echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27057
27058   ac_header_preproc=no
27059 fi
27060 rm -f conftest.err conftest.$ac_ext
27061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27062 echo "${ECHO_T}$ac_header_preproc" >&6
27063
27064 # So?  What about this header?
27065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27066   yes:no: )
27067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27071     ac_header_preproc=yes
27072     ;;
27073   no:yes:* )
27074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27086     (
27087       cat <<\_ASBOX
27088 ## --------------------------------------------- ##
27089 ## Report this to <http://www.openldap.org/its/> ##
27090 ## --------------------------------------------- ##
27091 _ASBOX
27092     ) |
27093       sed "s/^/$as_me: WARNING:     /" >&2
27094     ;;
27095 esac
27096 echo "$as_me:$LINENO: checking for $ac_header" >&5
27097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27099   echo $ECHO_N "(cached) $ECHO_C" >&6
27100 else
27101   eval "$as_ac_Header=\$ac_header_preproc"
27102 fi
27103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27105
27106 fi
27107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27108   cat >>confdefs.h <<_ACEOF
27109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27110 _ACEOF
27111
27112 fi
27113
27114 done
27115
27116
27117
27118 for ac_header in thread.h synch.h
27119 do
27120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27122   echo "$as_me:$LINENO: checking for $ac_header" >&5
27123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27125   echo $ECHO_N "(cached) $ECHO_C" >&6
27126 fi
27127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27129 else
27130   # Is the header compilable?
27131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27133 cat >conftest.$ac_ext <<_ACEOF
27134 /* confdefs.h.  */
27135 _ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h.  */
27139 $ac_includes_default
27140 #include <$ac_header>
27141 _ACEOF
27142 rm -f conftest.$ac_objext
27143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27144   (eval $ac_compile) 2>conftest.er1
27145   ac_status=$?
27146   grep -v '^ *+' conftest.er1 >conftest.err
27147   rm -f conftest.er1
27148   cat conftest.err >&5
27149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150   (exit $ac_status); } &&
27151          { ac_try='test -z "$ac_c_werror_flag"
27152                          || test ! -s conftest.err'
27153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154   (eval $ac_try) 2>&5
27155   ac_status=$?
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); }; } &&
27158          { ac_try='test -s conftest.$ac_objext'
27159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27160   (eval $ac_try) 2>&5
27161   ac_status=$?
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); }; }; then
27164   ac_header_compiler=yes
27165 else
27166   echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27168
27169 ac_header_compiler=no
27170 fi
27171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27173 echo "${ECHO_T}$ac_header_compiler" >&6
27174
27175 # Is the header present?
27176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27178 cat >conftest.$ac_ext <<_ACEOF
27179 /* confdefs.h.  */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h.  */
27184 #include <$ac_header>
27185 _ACEOF
27186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27188   ac_status=$?
27189   grep -v '^ *+' conftest.er1 >conftest.err
27190   rm -f conftest.er1
27191   cat conftest.err >&5
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); } >/dev/null; then
27194   if test -s conftest.err; then
27195     ac_cpp_err=$ac_c_preproc_warn_flag
27196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27197   else
27198     ac_cpp_err=
27199   fi
27200 else
27201   ac_cpp_err=yes
27202 fi
27203 if test -z "$ac_cpp_err"; then
27204   ac_header_preproc=yes
27205 else
27206   echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209   ac_header_preproc=no
27210 fi
27211 rm -f conftest.err conftest.$ac_ext
27212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27213 echo "${ECHO_T}$ac_header_preproc" >&6
27214
27215 # So?  What about this header?
27216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27217   yes:no: )
27218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27222     ac_header_preproc=yes
27223     ;;
27224   no:yes:* )
27225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27237     (
27238       cat <<\_ASBOX
27239 ## --------------------------------------------- ##
27240 ## Report this to <http://www.openldap.org/its/> ##
27241 ## --------------------------------------------- ##
27242 _ASBOX
27243     ) |
27244       sed "s/^/$as_me: WARNING:     /" >&2
27245     ;;
27246 esac
27247 echo "$as_me:$LINENO: checking for $ac_header" >&5
27248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27250   echo $ECHO_N "(cached) $ECHO_C" >&6
27251 else
27252   eval "$as_ac_Header=\$ac_header_preproc"
27253 fi
27254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27256
27257 fi
27258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27259   cat >>confdefs.h <<_ACEOF
27260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27261 _ACEOF
27262
27263 fi
27264
27265 done
27266
27267 fi
27268
27269 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27270                         cat >>confdefs.h <<\_ACEOF
27271 #define REENTRANT 1
27272 _ACEOF
27273
27274         cat >>confdefs.h <<\_ACEOF
27275 #define _REENTRANT 1
27276 _ACEOF
27277
27278         cat >>confdefs.h <<\_ACEOF
27279 #define THREAD_SAFE 1
27280 _ACEOF
27281
27282         cat >>confdefs.h <<\_ACEOF
27283 #define _THREAD_SAFE 1
27284 _ACEOF
27285
27286         cat >>confdefs.h <<\_ACEOF
27287 #define THREADSAFE 1
27288 _ACEOF
27289
27290         cat >>confdefs.h <<\_ACEOF
27291 #define _THREADSAFE 1
27292 _ACEOF
27293
27294         cat >>confdefs.h <<\_ACEOF
27295 #define _SGI_MP_SOURCE 1
27296 _ACEOF
27297
27298
27299                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27300 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27301 if test "${ol_cv_errno_thread_specific+set}" = set; then
27302   echo $ECHO_N "(cached) $ECHO_C" >&6
27303 else
27304
27305                 cat >conftest.$ac_ext <<_ACEOF
27306 /* confdefs.h.  */
27307 _ACEOF
27308 cat confdefs.h >>conftest.$ac_ext
27309 cat >>conftest.$ac_ext <<_ACEOF
27310 /* end confdefs.h.  */
27311 #include <errno.h>
27312 int
27313 main ()
27314 {
27315 errno = 0;
27316   ;
27317   return 0;
27318 }
27319 _ACEOF
27320 rm -f conftest.$ac_objext conftest$ac_exeext
27321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27322   (eval $ac_link) 2>conftest.er1
27323   ac_status=$?
27324   grep -v '^ *+' conftest.er1 >conftest.err
27325   rm -f conftest.er1
27326   cat conftest.err >&5
27327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328   (exit $ac_status); } &&
27329          { ac_try='test -z "$ac_c_werror_flag"
27330                          || test ! -s conftest.err'
27331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332   (eval $ac_try) 2>&5
27333   ac_status=$?
27334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); }; } &&
27336          { ac_try='test -s conftest$ac_exeext'
27337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27338   (eval $ac_try) 2>&5
27339   ac_status=$?
27340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341   (exit $ac_status); }; }; then
27342   ol_cv_errno_thread_specific=yes
27343 else
27344   echo "$as_me: failed program was:" >&5
27345 sed 's/^/| /' conftest.$ac_ext >&5
27346
27347 ol_cv_errno_thread_specific=no
27348 fi
27349 rm -f conftest.err conftest.$ac_objext \
27350       conftest$ac_exeext conftest.$ac_ext
27351
27352 fi
27353 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27354 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27355
27356                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27357 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27358 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27359   echo $ECHO_N "(cached) $ECHO_C" >&6
27360 else
27361
27362                 cat >conftest.$ac_ext <<_ACEOF
27363 /* confdefs.h.  */
27364 _ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h.  */
27368 #include <netdb.h>
27369 int
27370 main ()
27371 {
27372 h_errno = 0;
27373   ;
27374   return 0;
27375 }
27376 _ACEOF
27377 rm -f conftest.$ac_objext conftest$ac_exeext
27378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27379   (eval $ac_link) 2>conftest.er1
27380   ac_status=$?
27381   grep -v '^ *+' conftest.er1 >conftest.err
27382   rm -f conftest.er1
27383   cat conftest.err >&5
27384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385   (exit $ac_status); } &&
27386          { ac_try='test -z "$ac_c_werror_flag"
27387                          || test ! -s conftest.err'
27388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389   (eval $ac_try) 2>&5
27390   ac_status=$?
27391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392   (exit $ac_status); }; } &&
27393          { ac_try='test -s conftest$ac_exeext'
27394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395   (eval $ac_try) 2>&5
27396   ac_status=$?
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); }; }; then
27399   ol_cv_h_errno_thread_specific=yes
27400 else
27401   echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404 ol_cv_h_errno_thread_specific=no
27405 fi
27406 rm -f conftest.err conftest.$ac_objext \
27407       conftest$ac_exeext conftest.$ac_ext
27408
27409 fi
27410 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27411 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27412
27413         if test $ol_cv_errno_thread_specific != yes ||
27414            test $ol_cv_h_errno_thread_specific != yes ; then
27415                 LIBS="$LTHREAD_LIBS $LIBS"
27416                 LTHREAD_LIBS=""
27417         fi
27418
27419 fi
27420
27421 if test $ol_link_threads = no ; then
27422         if test $ol_with_threads = yes ; then
27423                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27424 echo "$as_me: error: no suitable thread support" >&2;}
27425    { (exit 1); exit 1; }; }
27426         fi
27427
27428         if test $ol_with_threads = auto ; then
27429                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27430 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27431                 ol_with_threads=no
27432         fi
27433
27434
27435 cat >>confdefs.h <<\_ACEOF
27436 #define NO_THREADS 1
27437 _ACEOF
27438
27439         LTHREAD_LIBS=""
27440         BUILD_THREAD=no
27441 else
27442         BUILD_THREAD=yes
27443 fi
27444
27445 if test $ol_link_threads != no ; then
27446
27447 cat >>confdefs.h <<\_ACEOF
27448 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27449 _ACEOF
27450
27451 fi
27452
27453
27454
27455
27456 for ac_func in \
27457         ctime_r                 \
27458         gethostbyname_r gethostbyaddr_r \
27459
27460 do
27461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27462 echo "$as_me:$LINENO: checking for $ac_func" >&5
27463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27464 if eval "test \"\${$as_ac_var+set}\" = set"; then
27465   echo $ECHO_N "(cached) $ECHO_C" >&6
27466 else
27467   cat >conftest.$ac_ext <<_ACEOF
27468 /* confdefs.h.  */
27469 _ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h.  */
27473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27475 #define $ac_func innocuous_$ac_func
27476
27477 /* System header to define __stub macros and hopefully few prototypes,
27478     which can conflict with char $ac_func (); below.
27479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27480     <limits.h> exists even on freestanding compilers.  */
27481
27482 #ifdef __STDC__
27483 # include <limits.h>
27484 #else
27485 # include <assert.h>
27486 #endif
27487
27488 #undef $ac_func
27489
27490 /* Override any gcc2 internal prototype to avoid an error.  */
27491 #ifdef __cplusplus
27492 extern "C"
27493 {
27494 #endif
27495 /* We use char because int might match the return type of a gcc2
27496    builtin and then its argument prototype would still apply.  */
27497 char $ac_func ();
27498 /* The GNU C library defines this for functions which it implements
27499     to always fail with ENOSYS.  Some functions are actually named
27500     something starting with __ and the normal name is an alias.  */
27501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27502 choke me
27503 #else
27504 char (*f) () = $ac_func;
27505 #endif
27506 #ifdef __cplusplus
27507 }
27508 #endif
27509
27510 int
27511 main ()
27512 {
27513 return f != $ac_func;
27514   ;
27515   return 0;
27516 }
27517 _ACEOF
27518 rm -f conftest.$ac_objext conftest$ac_exeext
27519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27520   (eval $ac_link) 2>conftest.er1
27521   ac_status=$?
27522   grep -v '^ *+' conftest.er1 >conftest.err
27523   rm -f conftest.er1
27524   cat conftest.err >&5
27525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526   (exit $ac_status); } &&
27527          { ac_try='test -z "$ac_c_werror_flag"
27528                          || test ! -s conftest.err'
27529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530   (eval $ac_try) 2>&5
27531   ac_status=$?
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); }; } &&
27534          { ac_try='test -s conftest$ac_exeext'
27535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27536   (eval $ac_try) 2>&5
27537   ac_status=$?
27538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539   (exit $ac_status); }; }; then
27540   eval "$as_ac_var=yes"
27541 else
27542   echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27544
27545 eval "$as_ac_var=no"
27546 fi
27547 rm -f conftest.err conftest.$ac_objext \
27548       conftest$ac_exeext conftest.$ac_ext
27549 fi
27550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27552 if test `eval echo '${'$as_ac_var'}'` = yes; then
27553   cat >>confdefs.h <<_ACEOF
27554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27555 _ACEOF
27556
27557 fi
27558 done
27559
27560
27561 if test "$ac_cv_func_ctime_r" = no ; then
27562         ol_cv_func_ctime_r_nargs=0
27563 else
27564         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27565 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27566 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27567   echo $ECHO_N "(cached) $ECHO_C" >&6
27568 else
27569   cat >conftest.$ac_ext <<_ACEOF
27570 /* confdefs.h.  */
27571 _ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h.  */
27575 #include <time.h>
27576 int
27577 main ()
27578 {
27579 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27580   ;
27581   return 0;
27582 }
27583 _ACEOF
27584 rm -f conftest.$ac_objext
27585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27586   (eval $ac_compile) 2>conftest.er1
27587   ac_status=$?
27588   grep -v '^ *+' conftest.er1 >conftest.err
27589   rm -f conftest.er1
27590   cat conftest.err >&5
27591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592   (exit $ac_status); } &&
27593          { ac_try='test -z "$ac_c_werror_flag"
27594                          || test ! -s conftest.err'
27595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596   (eval $ac_try) 2>&5
27597   ac_status=$?
27598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); }; } &&
27600          { ac_try='test -s conftest.$ac_objext'
27601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27602   (eval $ac_try) 2>&5
27603   ac_status=$?
27604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605   (exit $ac_status); }; }; then
27606   ol_cv_func_ctime_r_nargs3=yes
27607 else
27608   echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27610
27611 ol_cv_func_ctime_r_nargs3=no
27612 fi
27613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27614
27615         cat >conftest.$ac_ext <<_ACEOF
27616 /* confdefs.h.  */
27617 _ACEOF
27618 cat confdefs.h >>conftest.$ac_ext
27619 cat >>conftest.$ac_ext <<_ACEOF
27620 /* end confdefs.h.  */
27621 #include <time.h>
27622 int
27623 main ()
27624 {
27625 time_t ti; char *buffer; ctime_r(&ti,buffer);
27626   ;
27627   return 0;
27628 }
27629 _ACEOF
27630 rm -f conftest.$ac_objext
27631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27632   (eval $ac_compile) 2>conftest.er1
27633   ac_status=$?
27634   grep -v '^ *+' conftest.er1 >conftest.err
27635   rm -f conftest.er1
27636   cat conftest.err >&5
27637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638   (exit $ac_status); } &&
27639          { ac_try='test -z "$ac_c_werror_flag"
27640                          || test ! -s conftest.err'
27641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642   (eval $ac_try) 2>&5
27643   ac_status=$?
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); }; } &&
27646          { ac_try='test -s conftest.$ac_objext'
27647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648   (eval $ac_try) 2>&5
27649   ac_status=$?
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); }; }; then
27652   ol_cv_func_ctime_r_nargs2=yes
27653 else
27654   echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27656
27657 ol_cv_func_ctime_r_nargs2=no
27658 fi
27659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27660
27661         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27662            test $ol_cv_func_ctime_r_nargs2 = no ; then
27663
27664                 ol_cv_func_ctime_r_nargs=3
27665
27666         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27667              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27668
27669                 ol_cv_func_ctime_r_nargs=2
27670
27671         else
27672                 ol_cv_func_ctime_r_nargs=0
27673         fi
27674
27675 fi
27676 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27677 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27678
27679   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27680
27681 cat >>confdefs.h <<_ACEOF
27682 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27683 _ACEOF
27684
27685   fi
27686
27687 fi
27688
27689 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27690         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27691 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27692 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27693   echo $ECHO_N "(cached) $ECHO_C" >&6
27694 else
27695   cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h.  */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h.  */
27701 #include <sys/types.h>
27702 #include <sys/socket.h>
27703 #include <netinet/in.h>
27704 #include <netdb.h>
27705 #define BUFSIZE (sizeof(struct hostent)+10)
27706 int
27707 main ()
27708 {
27709 struct hostent hent; char buffer[BUFSIZE];
27710                 int bufsize=BUFSIZE;int h_errno;
27711                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27712                         buffer, bufsize, &h_errno);
27713   ;
27714   return 0;
27715 }
27716 _ACEOF
27717 rm -f conftest.$ac_objext
27718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27719   (eval $ac_compile) 2>conftest.er1
27720   ac_status=$?
27721   grep -v '^ *+' conftest.er1 >conftest.err
27722   rm -f conftest.er1
27723   cat conftest.err >&5
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); } &&
27726          { ac_try='test -z "$ac_c_werror_flag"
27727                          || test ! -s conftest.err'
27728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729   (eval $ac_try) 2>&5
27730   ac_status=$?
27731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732   (exit $ac_status); }; } &&
27733          { ac_try='test -s conftest.$ac_objext'
27734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27735   (eval $ac_try) 2>&5
27736   ac_status=$?
27737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738   (exit $ac_status); }; }; then
27739   ol_cv_func_gethostbyname_r_nargs5=yes
27740 else
27741   echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27743
27744 ol_cv_func_gethostbyname_r_nargs5=no
27745 fi
27746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27747
27748         cat >conftest.$ac_ext <<_ACEOF
27749 /* confdefs.h.  */
27750 _ACEOF
27751 cat confdefs.h >>conftest.$ac_ext
27752 cat >>conftest.$ac_ext <<_ACEOF
27753 /* end confdefs.h.  */
27754 #include <sys/types.h>
27755 #include <sys/socket.h>
27756 #include <netinet/in.h>
27757 #include <netdb.h>
27758 #define BUFSIZE (sizeof(struct hostent)+10)
27759 int
27760 main ()
27761 {
27762 struct hostent hent;struct hostent *rhent;
27763                 char buffer[BUFSIZE];
27764                 int bufsize=BUFSIZE;int h_errno;
27765                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27766                         &rhent, &h_errno);
27767   ;
27768   return 0;
27769 }
27770 _ACEOF
27771 rm -f conftest.$ac_objext
27772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27773   (eval $ac_compile) 2>conftest.er1
27774   ac_status=$?
27775   grep -v '^ *+' conftest.er1 >conftest.err
27776   rm -f conftest.er1
27777   cat conftest.err >&5
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); } &&
27780          { ac_try='test -z "$ac_c_werror_flag"
27781                          || test ! -s conftest.err'
27782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783   (eval $ac_try) 2>&5
27784   ac_status=$?
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); }; } &&
27787          { ac_try='test -s conftest.$ac_objext'
27788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789   (eval $ac_try) 2>&5
27790   ac_status=$?
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); }; }; then
27793   ol_cv_func_gethostbyname_r_nargs6=yes
27794 else
27795   echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27797
27798 ol_cv_func_gethostbyname_r_nargs6=no
27799 fi
27800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27801
27802         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27803            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27804
27805                 ol_cv_func_gethostbyname_r_nargs=5
27806
27807         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27808              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27809
27810                 ol_cv_func_gethostbyname_r_nargs=6
27811
27812         else
27813                 ol_cv_func_gethostbyname_r_nargs=0
27814         fi
27815
27816 fi
27817 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27818 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27819   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27820
27821 cat >>confdefs.h <<_ACEOF
27822 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27823 _ACEOF
27824
27825   fi
27826
27827 else
27828         ol_cv_func_gethostbyname_r_nargs=0
27829 fi
27830
27831 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27832         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27833 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27834 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27835   echo $ECHO_N "(cached) $ECHO_C" >&6
27836 else
27837   cat >conftest.$ac_ext <<_ACEOF
27838 /* confdefs.h.  */
27839 _ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h.  */
27843 #include <sys/types.h>
27844 #include <sys/socket.h>
27845 #include <netinet/in.h>
27846 #include <netdb.h>
27847 #define BUFSIZE (sizeof(struct hostent)+10)
27848 int
27849 main ()
27850 {
27851 struct hostent hent; char buffer[BUFSIZE];
27852             struct in_addr add;
27853             size_t alen=sizeof(struct in_addr);
27854             int bufsize=BUFSIZE;int h_errno;
27855                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27856                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27857   ;
27858   return 0;
27859 }
27860 _ACEOF
27861 rm -f conftest.$ac_objext
27862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27863   (eval $ac_compile) 2>conftest.er1
27864   ac_status=$?
27865   grep -v '^ *+' conftest.er1 >conftest.err
27866   rm -f conftest.er1
27867   cat conftest.err >&5
27868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); } &&
27870          { ac_try='test -z "$ac_c_werror_flag"
27871                          || test ! -s conftest.err'
27872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873   (eval $ac_try) 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; } &&
27877          { ac_try='test -s conftest.$ac_objext'
27878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879   (eval $ac_try) 2>&5
27880   ac_status=$?
27881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882   (exit $ac_status); }; }; then
27883   ol_cv_func_gethostbyaddr_r_nargs7=yes
27884 else
27885   echo "$as_me: failed program was:" >&5
27886 sed 's/^/| /' conftest.$ac_ext >&5
27887
27888 ol_cv_func_gethostbyaddr_r_nargs7=no
27889 fi
27890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27891
27892         cat >conftest.$ac_ext <<_ACEOF
27893 /* confdefs.h.  */
27894 _ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h.  */
27898 #include <sys/types.h>
27899 #include <sys/socket.h>
27900 #include <netinet/in.h>
27901 #include <netdb.h>
27902 #define BUFSIZE (sizeof(struct hostent)+10)
27903 int
27904 main ()
27905 {
27906 struct hostent hent;
27907                 struct hostent *rhent; char buffer[BUFSIZE];
27908                 struct in_addr add;
27909                 size_t alen=sizeof(struct in_addr);
27910                 int bufsize=BUFSIZE;int h_errno;
27911                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27912                         alen, AF_INET, &hent, buffer, bufsize,
27913                         &rhent, &h_errno);
27914   ;
27915   return 0;
27916 }
27917 _ACEOF
27918 rm -f conftest.$ac_objext
27919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27920   (eval $ac_compile) 2>conftest.er1
27921   ac_status=$?
27922   grep -v '^ *+' conftest.er1 >conftest.err
27923   rm -f conftest.er1
27924   cat conftest.err >&5
27925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); } &&
27927          { ac_try='test -z "$ac_c_werror_flag"
27928                          || test ! -s conftest.err'
27929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930   (eval $ac_try) 2>&5
27931   ac_status=$?
27932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933   (exit $ac_status); }; } &&
27934          { ac_try='test -s conftest.$ac_objext'
27935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936   (eval $ac_try) 2>&5
27937   ac_status=$?
27938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939   (exit $ac_status); }; }; then
27940   ol_cv_func_gethostbyaddr_r_nargs8=yes
27941 else
27942   echo "$as_me: failed program was:" >&5
27943 sed 's/^/| /' conftest.$ac_ext >&5
27944
27945 ol_cv_func_gethostbyaddr_r_nargs8=no
27946 fi
27947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27948
27949         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27950            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27951
27952                 ol_cv_func_gethostbyaddr_r_nargs=7
27953
27954         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27955              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27956
27957                 ol_cv_func_gethostbyaddr_r_nargs=8
27958
27959         else
27960                 ol_cv_func_gethostbyaddr_r_nargs=0
27961         fi
27962
27963 fi
27964 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27965 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27966   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27967
27968 cat >>confdefs.h <<_ACEOF
27969 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27970 _ACEOF
27971
27972   fi
27973
27974 else
27975         ol_cv_func_gethostbyaddr_r_nargs=0
27976 fi
27977
27978 ol_link_bdb=no
27979
27980 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27981         ol_cv_berkeley_db=no
27982
27983 for ac_header in db.h
27984 do
27985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27987   echo "$as_me:$LINENO: checking for $ac_header" >&5
27988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27990   echo $ECHO_N "(cached) $ECHO_C" >&6
27991 fi
27992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27994 else
27995   # Is the header compilable?
27996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27998 cat >conftest.$ac_ext <<_ACEOF
27999 /* confdefs.h.  */
28000 _ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h.  */
28004 $ac_includes_default
28005 #include <$ac_header>
28006 _ACEOF
28007 rm -f conftest.$ac_objext
28008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28009   (eval $ac_compile) 2>conftest.er1
28010   ac_status=$?
28011   grep -v '^ *+' conftest.er1 >conftest.err
28012   rm -f conftest.er1
28013   cat conftest.err >&5
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); } &&
28016          { ac_try='test -z "$ac_c_werror_flag"
28017                          || test ! -s conftest.err'
28018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28019   (eval $ac_try) 2>&5
28020   ac_status=$?
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); }; } &&
28023          { ac_try='test -s conftest.$ac_objext'
28024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28025   (eval $ac_try) 2>&5
28026   ac_status=$?
28027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028   (exit $ac_status); }; }; then
28029   ac_header_compiler=yes
28030 else
28031   echo "$as_me: failed program was:" >&5
28032 sed 's/^/| /' conftest.$ac_ext >&5
28033
28034 ac_header_compiler=no
28035 fi
28036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28038 echo "${ECHO_T}$ac_header_compiler" >&6
28039
28040 # Is the header present?
28041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28043 cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h.  */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h.  */
28049 #include <$ac_header>
28050 _ACEOF
28051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28053   ac_status=$?
28054   grep -v '^ *+' conftest.er1 >conftest.err
28055   rm -f conftest.er1
28056   cat conftest.err >&5
28057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058   (exit $ac_status); } >/dev/null; then
28059   if test -s conftest.err; then
28060     ac_cpp_err=$ac_c_preproc_warn_flag
28061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28062   else
28063     ac_cpp_err=
28064   fi
28065 else
28066   ac_cpp_err=yes
28067 fi
28068 if test -z "$ac_cpp_err"; then
28069   ac_header_preproc=yes
28070 else
28071   echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28073
28074   ac_header_preproc=no
28075 fi
28076 rm -f conftest.err conftest.$ac_ext
28077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28078 echo "${ECHO_T}$ac_header_preproc" >&6
28079
28080 # So?  What about this header?
28081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28082   yes:no: )
28083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28087     ac_header_preproc=yes
28088     ;;
28089   no:yes:* )
28090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28092     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28093 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28094     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28096     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28097 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28100     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28102     (
28103       cat <<\_ASBOX
28104 ## --------------------------------------------- ##
28105 ## Report this to <http://www.openldap.org/its/> ##
28106 ## --------------------------------------------- ##
28107 _ASBOX
28108     ) |
28109       sed "s/^/$as_me: WARNING:     /" >&2
28110     ;;
28111 esac
28112 echo "$as_me:$LINENO: checking for $ac_header" >&5
28113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28115   echo $ECHO_N "(cached) $ECHO_C" >&6
28116 else
28117   eval "$as_ac_Header=\$ac_header_preproc"
28118 fi
28119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28121
28122 fi
28123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28124   cat >>confdefs.h <<_ACEOF
28125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28126 _ACEOF
28127
28128 fi
28129
28130 done
28131
28132 if test $ac_cv_header_db_h = yes; then
28133         ol_cv_lib_db=no
28134
28135 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28136 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28137 if test "${ol_cv_bdb_major+set}" = set; then
28138   echo $ECHO_N "(cached) $ECHO_C" >&6
28139 else
28140
28141         ol_cv_bdb_major=0
28142         if test $ol_cv_bdb_major = 0 ; then
28143                 cat >conftest.$ac_ext <<_ACEOF
28144 /* confdefs.h.  */
28145 _ACEOF
28146 cat confdefs.h >>conftest.$ac_ext
28147 cat >>conftest.$ac_ext <<_ACEOF
28148 /* end confdefs.h.  */
28149
28150 #include <db.h>
28151 #ifndef DB_VERSION_MAJOR
28152 #       define DB_VERSION_MAJOR 1
28153 #endif
28154 #if DB_VERSION_MAJOR == 4
28155 __db_version
28156 #endif
28157
28158 _ACEOF
28159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28160   $EGREP "__db_version" >/dev/null 2>&1; then
28161   ol_cv_bdb_major=4
28162 else
28163   :
28164 fi
28165 rm -f conftest*
28166
28167         fi
28168         if test $ol_cv_bdb_major = 0 ; then
28169                 cat >conftest.$ac_ext <<_ACEOF
28170 /* confdefs.h.  */
28171 _ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h.  */
28175
28176 #include <db.h>
28177 #ifndef DB_VERSION_MAJOR
28178 #       define DB_VERSION_MAJOR 1
28179 #endif
28180 #if DB_VERSION_MAJOR == 3
28181 __db_version
28182 #endif
28183
28184 _ACEOF
28185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28186   $EGREP "__db_version" >/dev/null 2>&1; then
28187   ol_cv_bdb_major=3
28188 else
28189   :
28190 fi
28191 rm -f conftest*
28192
28193         fi
28194         if test $ol_cv_bdb_major = 0 ; then
28195                 cat >conftest.$ac_ext <<_ACEOF
28196 /* confdefs.h.  */
28197 _ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h.  */
28201
28202 #include <db.h>
28203 #ifndef DB_VERSION_MAJOR
28204 #       define DB_VERSION_MAJOR 1
28205 #endif
28206 #if DB_VERSION_MAJOR == 2
28207 __db_version
28208 #endif
28209
28210 _ACEOF
28211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28212   $EGREP "__db_version" >/dev/null 2>&1; then
28213   ol_cv_bdb_major=2
28214 else
28215   :
28216 fi
28217 rm -f conftest*
28218
28219         fi
28220         if test $ol_cv_bdb_major = 0 ; then
28221                 cat >conftest.$ac_ext <<_ACEOF
28222 /* confdefs.h.  */
28223 _ACEOF
28224 cat confdefs.h >>conftest.$ac_ext
28225 cat >>conftest.$ac_ext <<_ACEOF
28226 /* end confdefs.h.  */
28227
28228 #include <db.h>
28229 #ifndef DB_VERSION_MAJOR
28230 #       define DB_VERSION_MAJOR 1
28231 #endif
28232 #if DB_VERSION_MAJOR == 1
28233 __db_version
28234 #endif
28235
28236 _ACEOF
28237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28238   $EGREP "__db_version" >/dev/null 2>&1; then
28239   ol_cv_bdb_major=1
28240 else
28241   :
28242 fi
28243 rm -f conftest*
28244
28245         fi
28246
28247         if test $ol_cv_bdb_major = 0 ; then
28248                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28249 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28250    { (exit 1); exit 1; }; }
28251         fi
28252
28253 fi
28254 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28255 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28256
28257 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28258 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28259 if test "${ol_cv_bdb_minor+set}" = set; then
28260   echo $ECHO_N "(cached) $ECHO_C" >&6
28261 else
28262
28263         ol_cv_bdb_minor=0
28264         if test $ol_cv_bdb_minor = 0 ; then
28265                 cat >conftest.$ac_ext <<_ACEOF
28266 /* confdefs.h.  */
28267 _ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h.  */
28271
28272 #include <db.h>
28273 #ifndef DB_VERSION_MINOR
28274 #       define DB_VERSION_MINOR 0
28275 #endif
28276 #if DB_VERSION_MINOR == 9
28277 __db_version
28278 #endif
28279
28280 _ACEOF
28281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28282   $EGREP "__db_version" >/dev/null 2>&1; then
28283   ol_cv_bdb_minor=9
28284 else
28285   :
28286 fi
28287 rm -f conftest*
28288
28289         fi
28290         if test $ol_cv_bdb_minor = 0 ; then
28291                 cat >conftest.$ac_ext <<_ACEOF
28292 /* confdefs.h.  */
28293 _ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h.  */
28297
28298 #include <db.h>
28299 #ifndef DB_VERSION_MINOR
28300 #       define DB_VERSION_MINOR 0
28301 #endif
28302 #if DB_VERSION_MINOR == 8
28303 __db_version
28304 #endif
28305
28306 _ACEOF
28307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28308   $EGREP "__db_version" >/dev/null 2>&1; then
28309   ol_cv_bdb_minor=8
28310 else
28311   :
28312 fi
28313 rm -f conftest*
28314
28315         fi
28316         if test $ol_cv_bdb_minor = 0 ; then
28317                 cat >conftest.$ac_ext <<_ACEOF
28318 /* confdefs.h.  */
28319 _ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h.  */
28323
28324 #include <db.h>
28325 #ifndef DB_VERSION_MINOR
28326 #       define DB_VERSION_MINOR 0
28327 #endif
28328 #if DB_VERSION_MINOR == 7
28329 __db_version
28330 #endif
28331
28332 _ACEOF
28333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28334   $EGREP "__db_version" >/dev/null 2>&1; then
28335   ol_cv_bdb_minor=7
28336 else
28337   :
28338 fi
28339 rm -f conftest*
28340
28341         fi
28342         if test $ol_cv_bdb_minor = 0 ; then
28343                 cat >conftest.$ac_ext <<_ACEOF
28344 /* confdefs.h.  */
28345 _ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h.  */
28349
28350 #include <db.h>
28351 #ifndef DB_VERSION_MINOR
28352 #       define DB_VERSION_MINOR 0
28353 #endif
28354 #if DB_VERSION_MINOR == 6
28355 __db_version
28356 #endif
28357
28358 _ACEOF
28359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28360   $EGREP "__db_version" >/dev/null 2>&1; then
28361   ol_cv_bdb_minor=6
28362 else
28363   :
28364 fi
28365 rm -f conftest*
28366
28367         fi
28368         if test $ol_cv_bdb_minor = 0 ; then
28369                 cat >conftest.$ac_ext <<_ACEOF
28370 /* confdefs.h.  */
28371 _ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h.  */
28375
28376 #include <db.h>
28377 #ifndef DB_VERSION_MINOR
28378 #       define DB_VERSION_MINOR 0
28379 #endif
28380 #if DB_VERSION_MINOR == 5
28381 __db_version
28382 #endif
28383
28384 _ACEOF
28385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28386   $EGREP "__db_version" >/dev/null 2>&1; then
28387   ol_cv_bdb_minor=5
28388 else
28389   :
28390 fi
28391 rm -f conftest*
28392
28393         fi
28394         if test $ol_cv_bdb_minor = 0 ; then
28395                 cat >conftest.$ac_ext <<_ACEOF
28396 /* confdefs.h.  */
28397 _ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h.  */
28401
28402 #include <db.h>
28403 #ifndef DB_VERSION_MINOR
28404 #       define DB_VERSION_MINOR 0
28405 #endif
28406 #if DB_VERSION_MINOR == 4
28407 __db_version
28408 #endif
28409
28410 _ACEOF
28411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28412   $EGREP "__db_version" >/dev/null 2>&1; then
28413   ol_cv_bdb_minor=4
28414 else
28415   :
28416 fi
28417 rm -f conftest*
28418
28419         fi
28420         if test $ol_cv_bdb_minor = 0 ; then
28421                 cat >conftest.$ac_ext <<_ACEOF
28422 /* confdefs.h.  */
28423 _ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h.  */
28427
28428 #include <db.h>
28429 #ifndef DB_VERSION_MINOR
28430 #       define DB_VERSION_MINOR 0
28431 #endif
28432 #if DB_VERSION_MINOR == 3
28433 __db_version
28434 #endif
28435
28436 _ACEOF
28437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28438   $EGREP "__db_version" >/dev/null 2>&1; then
28439   ol_cv_bdb_minor=3
28440 else
28441   :
28442 fi
28443 rm -f conftest*
28444
28445         fi
28446         if test $ol_cv_bdb_minor = 0 ; then
28447                 cat >conftest.$ac_ext <<_ACEOF
28448 /* confdefs.h.  */
28449 _ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h.  */
28453
28454 #include <db.h>
28455 #ifndef DB_VERSION_MINOR
28456 #       define DB_VERSION_MINOR 0
28457 #endif
28458 #if DB_VERSION_MINOR == 2
28459 __db_version
28460 #endif
28461
28462 _ACEOF
28463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28464   $EGREP "__db_version" >/dev/null 2>&1; then
28465   ol_cv_bdb_minor=2
28466 else
28467   :
28468 fi
28469 rm -f conftest*
28470
28471         fi
28472         if test $ol_cv_bdb_minor = 0 ; then
28473                 cat >conftest.$ac_ext <<_ACEOF
28474 /* confdefs.h.  */
28475 _ACEOF
28476 cat confdefs.h >>conftest.$ac_ext
28477 cat >>conftest.$ac_ext <<_ACEOF
28478 /* end confdefs.h.  */
28479
28480 #include <db.h>
28481 #ifndef DB_VERSION_MINOR
28482 #       define DB_VERSION_MINOR 0
28483 #endif
28484 #if DB_VERSION_MINOR == 1
28485 __db_version
28486 #endif
28487
28488 _ACEOF
28489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28490   $EGREP "__db_version" >/dev/null 2>&1; then
28491   ol_cv_bdb_minor=1
28492 else
28493   :
28494 fi
28495 rm -f conftest*
28496
28497         fi
28498
28499 fi
28500 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28501 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28502
28503 if test $ol_cv_bdb_major = 4 ; then
28504         if test $ol_cv_bdb_minor = 4 ; then
28505                 if test $ol_cv_lib_db = no ; then
28506         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28507 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28508 if test "${ol_cv_db_db44+set}" = set; then
28509   echo $ECHO_N "(cached) $ECHO_C" >&6
28510 else
28511
28512         ol_DB_LIB=-ldb44
28513         ol_LIBS=$LIBS
28514         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28515
28516         cat >conftest.$ac_ext <<_ACEOF
28517 /* confdefs.h.  */
28518 _ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h.  */
28522
28523 #ifdef HAVE_DB_185_H
28524 # include <db_185.h>
28525 #else
28526 # include <db.h>
28527 #endif
28528
28529 #ifndef DB_VERSION_MAJOR
28530 # define DB_VERSION_MAJOR 1
28531 #endif
28532
28533 #ifndef NULL
28534 #define NULL ((void*)0)
28535 #endif
28536
28537 int
28538 main ()
28539 {
28540
28541 #if DB_VERSION_MAJOR > 1
28542         {
28543                 char *version;
28544                 int major, minor, patch;
28545
28546                 version = db_version( &major, &minor, &patch );
28547
28548                 if( major != DB_VERSION_MAJOR ||
28549                         minor < DB_VERSION_MINOR )
28550                 {
28551                         printf("Berkeley DB version mismatch\n"
28552                                 "\theader: %s\n\tlibrary: %s\n",
28553                                 DB_VERSION_STRING, version);
28554                         return 1;
28555                 }
28556         }
28557 #endif
28558
28559 #if DB_VERSION_MAJOR > 2
28560         db_env_create( NULL, 0 );
28561 #elif DB_VERSION_MAJOR > 1
28562         db_appexit( NULL );
28563 #else
28564         (void) dbopen( NULL, 0, 0, 0, NULL);
28565 #endif
28566
28567   ;
28568   return 0;
28569 }
28570 _ACEOF
28571 rm -f conftest.$ac_objext conftest$ac_exeext
28572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28573   (eval $ac_link) 2>conftest.er1
28574   ac_status=$?
28575   grep -v '^ *+' conftest.er1 >conftest.err
28576   rm -f conftest.er1
28577   cat conftest.err >&5
28578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579   (exit $ac_status); } &&
28580          { ac_try='test -z "$ac_c_werror_flag"
28581                          || test ! -s conftest.err'
28582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583   (eval $ac_try) 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; } &&
28587          { ac_try='test -s conftest$ac_exeext'
28588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28589   (eval $ac_try) 2>&5
28590   ac_status=$?
28591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592   (exit $ac_status); }; }; then
28593   ol_cv_db_db44=yes
28594 else
28595   echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28597
28598 ol_cv_db_db44=no
28599 fi
28600 rm -f conftest.err conftest.$ac_objext \
28601       conftest$ac_exeext conftest.$ac_ext
28602
28603         LIBS="$ol_LIBS"
28604
28605 fi
28606 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28607 echo "${ECHO_T}$ol_cv_db_db44" >&6
28608
28609         if test $ol_cv_db_db44 = yes ; then
28610                 ol_cv_lib_db=-ldb44
28611         fi
28612 fi
28613
28614                 if test $ol_cv_lib_db = no ; then
28615         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28616 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28617 if test "${ol_cv_db_db_44+set}" = set; then
28618   echo $ECHO_N "(cached) $ECHO_C" >&6
28619 else
28620
28621         ol_DB_LIB=-ldb-44
28622         ol_LIBS=$LIBS
28623         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28624
28625         cat >conftest.$ac_ext <<_ACEOF
28626 /* confdefs.h.  */
28627 _ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h.  */
28631
28632 #ifdef HAVE_DB_185_H
28633 # include <db_185.h>
28634 #else
28635 # include <db.h>
28636 #endif
28637
28638 #ifndef DB_VERSION_MAJOR
28639 # define DB_VERSION_MAJOR 1
28640 #endif
28641
28642 #ifndef NULL
28643 #define NULL ((void*)0)
28644 #endif
28645
28646 int
28647 main ()
28648 {
28649
28650 #if DB_VERSION_MAJOR > 1
28651         {
28652                 char *version;
28653                 int major, minor, patch;
28654
28655                 version = db_version( &major, &minor, &patch );
28656
28657                 if( major != DB_VERSION_MAJOR ||
28658                         minor < DB_VERSION_MINOR )
28659                 {
28660                         printf("Berkeley DB version mismatch\n"
28661                                 "\theader: %s\n\tlibrary: %s\n",
28662                                 DB_VERSION_STRING, version);
28663                         return 1;
28664                 }
28665         }
28666 #endif
28667
28668 #if DB_VERSION_MAJOR > 2
28669         db_env_create( NULL, 0 );
28670 #elif DB_VERSION_MAJOR > 1
28671         db_appexit( NULL );
28672 #else
28673         (void) dbopen( NULL, 0, 0, 0, NULL);
28674 #endif
28675
28676   ;
28677   return 0;
28678 }
28679 _ACEOF
28680 rm -f conftest.$ac_objext conftest$ac_exeext
28681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28682   (eval $ac_link) 2>conftest.er1
28683   ac_status=$?
28684   grep -v '^ *+' conftest.er1 >conftest.err
28685   rm -f conftest.er1
28686   cat conftest.err >&5
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); } &&
28689          { ac_try='test -z "$ac_c_werror_flag"
28690                          || test ! -s conftest.err'
28691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692   (eval $ac_try) 2>&5
28693   ac_status=$?
28694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695   (exit $ac_status); }; } &&
28696          { ac_try='test -s conftest$ac_exeext'
28697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698   (eval $ac_try) 2>&5
28699   ac_status=$?
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); }; }; then
28702   ol_cv_db_db_44=yes
28703 else
28704   echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28706
28707 ol_cv_db_db_44=no
28708 fi
28709 rm -f conftest.err conftest.$ac_objext \
28710       conftest$ac_exeext conftest.$ac_ext
28711
28712         LIBS="$ol_LIBS"
28713
28714 fi
28715 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28716 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28717
28718         if test $ol_cv_db_db_44 = yes ; then
28719                 ol_cv_lib_db=-ldb-44
28720         fi
28721 fi
28722
28723                 if test $ol_cv_lib_db = no ; then
28724         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28725 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28726 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28727   echo $ECHO_N "(cached) $ECHO_C" >&6
28728 else
28729
28730         ol_DB_LIB=-ldb-4.4
28731         ol_LIBS=$LIBS
28732         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28733
28734         cat >conftest.$ac_ext <<_ACEOF
28735 /* confdefs.h.  */
28736 _ACEOF
28737 cat confdefs.h >>conftest.$ac_ext
28738 cat >>conftest.$ac_ext <<_ACEOF
28739 /* end confdefs.h.  */
28740
28741 #ifdef HAVE_DB_185_H
28742 # include <db_185.h>
28743 #else
28744 # include <db.h>
28745 #endif
28746
28747 #ifndef DB_VERSION_MAJOR
28748 # define DB_VERSION_MAJOR 1
28749 #endif
28750
28751 #ifndef NULL
28752 #define NULL ((void*)0)
28753 #endif
28754
28755 int
28756 main ()
28757 {
28758
28759 #if DB_VERSION_MAJOR > 1
28760         {
28761                 char *version;
28762                 int major, minor, patch;
28763
28764                 version = db_version( &major, &minor, &patch );
28765
28766                 if( major != DB_VERSION_MAJOR ||
28767                         minor < DB_VERSION_MINOR )
28768                 {
28769                         printf("Berkeley DB version mismatch\n"
28770                                 "\theader: %s\n\tlibrary: %s\n",
28771                                 DB_VERSION_STRING, version);
28772                         return 1;
28773                 }
28774         }
28775 #endif
28776
28777 #if DB_VERSION_MAJOR > 2
28778         db_env_create( NULL, 0 );
28779 #elif DB_VERSION_MAJOR > 1
28780         db_appexit( NULL );
28781 #else
28782         (void) dbopen( NULL, 0, 0, 0, NULL);
28783 #endif
28784
28785   ;
28786   return 0;
28787 }
28788 _ACEOF
28789 rm -f conftest.$ac_objext conftest$ac_exeext
28790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28791   (eval $ac_link) 2>conftest.er1
28792   ac_status=$?
28793   grep -v '^ *+' conftest.er1 >conftest.err
28794   rm -f conftest.er1
28795   cat conftest.err >&5
28796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797   (exit $ac_status); } &&
28798          { ac_try='test -z "$ac_c_werror_flag"
28799                          || test ! -s conftest.err'
28800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28801   (eval $ac_try) 2>&5
28802   ac_status=$?
28803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804   (exit $ac_status); }; } &&
28805          { ac_try='test -s conftest$ac_exeext'
28806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807   (eval $ac_try) 2>&5
28808   ac_status=$?
28809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); }; }; then
28811   ol_cv_db_db_4_dot_4=yes
28812 else
28813   echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.$ac_ext >&5
28815
28816 ol_cv_db_db_4_dot_4=no
28817 fi
28818 rm -f conftest.err conftest.$ac_objext \
28819       conftest$ac_exeext conftest.$ac_ext
28820
28821         LIBS="$ol_LIBS"
28822
28823 fi
28824 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28825 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28826
28827         if test $ol_cv_db_db_4_dot_4 = yes ; then
28828                 ol_cv_lib_db=-ldb-4.4
28829         fi
28830 fi
28831
28832                 if test $ol_cv_lib_db = no ; then
28833         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28834 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28835 if test "${ol_cv_db_db_4_4+set}" = set; then
28836   echo $ECHO_N "(cached) $ECHO_C" >&6
28837 else
28838
28839         ol_DB_LIB=-ldb-4-4
28840         ol_LIBS=$LIBS
28841         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28842
28843         cat >conftest.$ac_ext <<_ACEOF
28844 /* confdefs.h.  */
28845 _ACEOF
28846 cat confdefs.h >>conftest.$ac_ext
28847 cat >>conftest.$ac_ext <<_ACEOF
28848 /* end confdefs.h.  */
28849
28850 #ifdef HAVE_DB_185_H
28851 # include <db_185.h>
28852 #else
28853 # include <db.h>
28854 #endif
28855
28856 #ifndef DB_VERSION_MAJOR
28857 # define DB_VERSION_MAJOR 1
28858 #endif
28859
28860 #ifndef NULL
28861 #define NULL ((void*)0)
28862 #endif
28863
28864 int
28865 main ()
28866 {
28867
28868 #if DB_VERSION_MAJOR > 1
28869         {
28870                 char *version;
28871                 int major, minor, patch;
28872
28873                 version = db_version( &major, &minor, &patch );
28874
28875                 if( major != DB_VERSION_MAJOR ||
28876                         minor < DB_VERSION_MINOR )
28877                 {
28878                         printf("Berkeley DB version mismatch\n"
28879                                 "\theader: %s\n\tlibrary: %s\n",
28880                                 DB_VERSION_STRING, version);
28881                         return 1;
28882                 }
28883         }
28884 #endif
28885
28886 #if DB_VERSION_MAJOR > 2
28887         db_env_create( NULL, 0 );
28888 #elif DB_VERSION_MAJOR > 1
28889         db_appexit( NULL );
28890 #else
28891         (void) dbopen( NULL, 0, 0, 0, NULL);
28892 #endif
28893
28894   ;
28895   return 0;
28896 }
28897 _ACEOF
28898 rm -f conftest.$ac_objext conftest$ac_exeext
28899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28900   (eval $ac_link) 2>conftest.er1
28901   ac_status=$?
28902   grep -v '^ *+' conftest.er1 >conftest.err
28903   rm -f conftest.er1
28904   cat conftest.err >&5
28905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906   (exit $ac_status); } &&
28907          { ac_try='test -z "$ac_c_werror_flag"
28908                          || test ! -s conftest.err'
28909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910   (eval $ac_try) 2>&5
28911   ac_status=$?
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); }; } &&
28914          { ac_try='test -s conftest$ac_exeext'
28915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916   (eval $ac_try) 2>&5
28917   ac_status=$?
28918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919   (exit $ac_status); }; }; then
28920   ol_cv_db_db_4_4=yes
28921 else
28922   echo "$as_me: failed program was:" >&5
28923 sed 's/^/| /' conftest.$ac_ext >&5
28924
28925 ol_cv_db_db_4_4=no
28926 fi
28927 rm -f conftest.err conftest.$ac_objext \
28928       conftest$ac_exeext conftest.$ac_ext
28929
28930         LIBS="$ol_LIBS"
28931
28932 fi
28933 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28934 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28935
28936         if test $ol_cv_db_db_4_4 = yes ; then
28937                 ol_cv_lib_db=-ldb-4-4
28938         fi
28939 fi
28940
28941         elif test $ol_cv_bdb_minor = 3 ; then
28942                 if test $ol_cv_lib_db = no ; then
28943         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28944 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28945 if test "${ol_cv_db_db43+set}" = set; then
28946   echo $ECHO_N "(cached) $ECHO_C" >&6
28947 else
28948
28949         ol_DB_LIB=-ldb43
28950         ol_LIBS=$LIBS
28951         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28952
28953         cat >conftest.$ac_ext <<_ACEOF
28954 /* confdefs.h.  */
28955 _ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h.  */
28959
28960 #ifdef HAVE_DB_185_H
28961 # include <db_185.h>
28962 #else
28963 # include <db.h>
28964 #endif
28965
28966 #ifndef DB_VERSION_MAJOR
28967 # define DB_VERSION_MAJOR 1
28968 #endif
28969
28970 #ifndef NULL
28971 #define NULL ((void*)0)
28972 #endif
28973
28974 int
28975 main ()
28976 {
28977
28978 #if DB_VERSION_MAJOR > 1
28979         {
28980                 char *version;
28981                 int major, minor, patch;
28982
28983                 version = db_version( &major, &minor, &patch );
28984
28985                 if( major != DB_VERSION_MAJOR ||
28986                         minor < DB_VERSION_MINOR )
28987                 {
28988                         printf("Berkeley DB version mismatch\n"
28989                                 "\theader: %s\n\tlibrary: %s\n",
28990                                 DB_VERSION_STRING, version);
28991                         return 1;
28992                 }
28993         }
28994 #endif
28995
28996 #if DB_VERSION_MAJOR > 2
28997         db_env_create( NULL, 0 );
28998 #elif DB_VERSION_MAJOR > 1
28999         db_appexit( NULL );
29000 #else
29001         (void) dbopen( NULL, 0, 0, 0, NULL);
29002 #endif
29003
29004   ;
29005   return 0;
29006 }
29007 _ACEOF
29008 rm -f conftest.$ac_objext conftest$ac_exeext
29009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29010   (eval $ac_link) 2>conftest.er1
29011   ac_status=$?
29012   grep -v '^ *+' conftest.er1 >conftest.err
29013   rm -f conftest.er1
29014   cat conftest.err >&5
29015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016   (exit $ac_status); } &&
29017          { ac_try='test -z "$ac_c_werror_flag"
29018                          || test ! -s conftest.err'
29019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020   (eval $ac_try) 2>&5
29021   ac_status=$?
29022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023   (exit $ac_status); }; } &&
29024          { ac_try='test -s conftest$ac_exeext'
29025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026   (eval $ac_try) 2>&5
29027   ac_status=$?
29028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029   (exit $ac_status); }; }; then
29030   ol_cv_db_db43=yes
29031 else
29032   echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29034
29035 ol_cv_db_db43=no
29036 fi
29037 rm -f conftest.err conftest.$ac_objext \
29038       conftest$ac_exeext conftest.$ac_ext
29039
29040         LIBS="$ol_LIBS"
29041
29042 fi
29043 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
29044 echo "${ECHO_T}$ol_cv_db_db43" >&6
29045
29046         if test $ol_cv_db_db43 = yes ; then
29047                 ol_cv_lib_db=-ldb43
29048         fi
29049 fi
29050
29051                 if test $ol_cv_lib_db = no ; then
29052         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29053 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29054 if test "${ol_cv_db_db_43+set}" = set; then
29055   echo $ECHO_N "(cached) $ECHO_C" >&6
29056 else
29057
29058         ol_DB_LIB=-ldb-43
29059         ol_LIBS=$LIBS
29060         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29061
29062         cat >conftest.$ac_ext <<_ACEOF
29063 /* confdefs.h.  */
29064 _ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h.  */
29068
29069 #ifdef HAVE_DB_185_H
29070 # include <db_185.h>
29071 #else
29072 # include <db.h>
29073 #endif
29074
29075 #ifndef DB_VERSION_MAJOR
29076 # define DB_VERSION_MAJOR 1
29077 #endif
29078
29079 #ifndef NULL
29080 #define NULL ((void*)0)
29081 #endif
29082
29083 int
29084 main ()
29085 {
29086
29087 #if DB_VERSION_MAJOR > 1
29088         {
29089                 char *version;
29090                 int major, minor, patch;
29091
29092                 version = db_version( &major, &minor, &patch );
29093
29094                 if( major != DB_VERSION_MAJOR ||
29095                         minor < DB_VERSION_MINOR )
29096                 {
29097                         printf("Berkeley DB version mismatch\n"
29098                                 "\theader: %s\n\tlibrary: %s\n",
29099                                 DB_VERSION_STRING, version);
29100                         return 1;
29101                 }
29102         }
29103 #endif
29104
29105 #if DB_VERSION_MAJOR > 2
29106         db_env_create( NULL, 0 );
29107 #elif DB_VERSION_MAJOR > 1
29108         db_appexit( NULL );
29109 #else
29110         (void) dbopen( NULL, 0, 0, 0, NULL);
29111 #endif
29112
29113   ;
29114   return 0;
29115 }
29116 _ACEOF
29117 rm -f conftest.$ac_objext conftest$ac_exeext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29119   (eval $ac_link) 2>conftest.er1
29120   ac_status=$?
29121   grep -v '^ *+' conftest.er1 >conftest.err
29122   rm -f conftest.er1
29123   cat conftest.err >&5
29124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125   (exit $ac_status); } &&
29126          { ac_try='test -z "$ac_c_werror_flag"
29127                          || test ! -s conftest.err'
29128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129   (eval $ac_try) 2>&5
29130   ac_status=$?
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); }; } &&
29133          { ac_try='test -s conftest$ac_exeext'
29134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135   (eval $ac_try) 2>&5
29136   ac_status=$?
29137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138   (exit $ac_status); }; }; then
29139   ol_cv_db_db_43=yes
29140 else
29141   echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144 ol_cv_db_db_43=no
29145 fi
29146 rm -f conftest.err conftest.$ac_objext \
29147       conftest$ac_exeext conftest.$ac_ext
29148
29149         LIBS="$ol_LIBS"
29150
29151 fi
29152 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29153 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29154
29155         if test $ol_cv_db_db_43 = yes ; then
29156                 ol_cv_lib_db=-ldb-43
29157         fi
29158 fi
29159
29160                 if test $ol_cv_lib_db = no ; then
29161         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29162 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29163 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29164   echo $ECHO_N "(cached) $ECHO_C" >&6
29165 else
29166
29167         ol_DB_LIB=-ldb-4.3
29168         ol_LIBS=$LIBS
29169         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29170
29171         cat >conftest.$ac_ext <<_ACEOF
29172 /* confdefs.h.  */
29173 _ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h.  */
29177
29178 #ifdef HAVE_DB_185_H
29179 # include <db_185.h>
29180 #else
29181 # include <db.h>
29182 #endif
29183
29184 #ifndef DB_VERSION_MAJOR
29185 # define DB_VERSION_MAJOR 1
29186 #endif
29187
29188 #ifndef NULL
29189 #define NULL ((void*)0)
29190 #endif
29191
29192 int
29193 main ()
29194 {
29195
29196 #if DB_VERSION_MAJOR > 1
29197         {
29198                 char *version;
29199                 int major, minor, patch;
29200
29201                 version = db_version( &major, &minor, &patch );
29202
29203                 if( major != DB_VERSION_MAJOR ||
29204                         minor < DB_VERSION_MINOR )
29205                 {
29206                         printf("Berkeley DB version mismatch\n"
29207                                 "\theader: %s\n\tlibrary: %s\n",
29208                                 DB_VERSION_STRING, version);
29209                         return 1;
29210                 }
29211         }
29212 #endif
29213
29214 #if DB_VERSION_MAJOR > 2
29215         db_env_create( NULL, 0 );
29216 #elif DB_VERSION_MAJOR > 1
29217         db_appexit( NULL );
29218 #else
29219         (void) dbopen( NULL, 0, 0, 0, NULL);
29220 #endif
29221
29222   ;
29223   return 0;
29224 }
29225 _ACEOF
29226 rm -f conftest.$ac_objext conftest$ac_exeext
29227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29228   (eval $ac_link) 2>conftest.er1
29229   ac_status=$?
29230   grep -v '^ *+' conftest.er1 >conftest.err
29231   rm -f conftest.er1
29232   cat conftest.err >&5
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); } &&
29235          { ac_try='test -z "$ac_c_werror_flag"
29236                          || test ! -s conftest.err'
29237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238   (eval $ac_try) 2>&5
29239   ac_status=$?
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); }; } &&
29242          { ac_try='test -s conftest$ac_exeext'
29243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244   (eval $ac_try) 2>&5
29245   ac_status=$?
29246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247   (exit $ac_status); }; }; then
29248   ol_cv_db_db_4_dot_3=yes
29249 else
29250   echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.$ac_ext >&5
29252
29253 ol_cv_db_db_4_dot_3=no
29254 fi
29255 rm -f conftest.err conftest.$ac_objext \
29256       conftest$ac_exeext conftest.$ac_ext
29257
29258         LIBS="$ol_LIBS"
29259
29260 fi
29261 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29262 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29263
29264         if test $ol_cv_db_db_4_dot_3 = yes ; then
29265                 ol_cv_lib_db=-ldb-4.3
29266         fi
29267 fi
29268
29269                 if test $ol_cv_lib_db = no ; then
29270         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29271 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29272 if test "${ol_cv_db_db_4_3+set}" = set; then
29273   echo $ECHO_N "(cached) $ECHO_C" >&6
29274 else
29275
29276         ol_DB_LIB=-ldb-4-3
29277         ol_LIBS=$LIBS
29278         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29279
29280         cat >conftest.$ac_ext <<_ACEOF
29281 /* confdefs.h.  */
29282 _ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h.  */
29286
29287 #ifdef HAVE_DB_185_H
29288 # include <db_185.h>
29289 #else
29290 # include <db.h>
29291 #endif
29292
29293 #ifndef DB_VERSION_MAJOR
29294 # define DB_VERSION_MAJOR 1
29295 #endif
29296
29297 #ifndef NULL
29298 #define NULL ((void*)0)
29299 #endif
29300
29301 int
29302 main ()
29303 {
29304
29305 #if DB_VERSION_MAJOR > 1
29306         {
29307                 char *version;
29308                 int major, minor, patch;
29309
29310                 version = db_version( &major, &minor, &patch );
29311
29312                 if( major != DB_VERSION_MAJOR ||
29313                         minor < DB_VERSION_MINOR )
29314                 {
29315                         printf("Berkeley DB version mismatch\n"
29316                                 "\theader: %s\n\tlibrary: %s\n",
29317                                 DB_VERSION_STRING, version);
29318                         return 1;
29319                 }
29320         }
29321 #endif
29322
29323 #if DB_VERSION_MAJOR > 2
29324         db_env_create( NULL, 0 );
29325 #elif DB_VERSION_MAJOR > 1
29326         db_appexit( NULL );
29327 #else
29328         (void) dbopen( NULL, 0, 0, 0, NULL);
29329 #endif
29330
29331   ;
29332   return 0;
29333 }
29334 _ACEOF
29335 rm -f conftest.$ac_objext conftest$ac_exeext
29336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29337   (eval $ac_link) 2>conftest.er1
29338   ac_status=$?
29339   grep -v '^ *+' conftest.er1 >conftest.err
29340   rm -f conftest.er1
29341   cat conftest.err >&5
29342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343   (exit $ac_status); } &&
29344          { ac_try='test -z "$ac_c_werror_flag"
29345                          || test ! -s conftest.err'
29346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29347   (eval $ac_try) 2>&5
29348   ac_status=$?
29349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350   (exit $ac_status); }; } &&
29351          { ac_try='test -s conftest$ac_exeext'
29352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29353   (eval $ac_try) 2>&5
29354   ac_status=$?
29355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356   (exit $ac_status); }; }; then
29357   ol_cv_db_db_4_3=yes
29358 else
29359   echo "$as_me: failed program was:" >&5
29360 sed 's/^/| /' conftest.$ac_ext >&5
29361
29362 ol_cv_db_db_4_3=no
29363 fi
29364 rm -f conftest.err conftest.$ac_objext \
29365       conftest$ac_exeext conftest.$ac_ext
29366
29367         LIBS="$ol_LIBS"
29368
29369 fi
29370 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29371 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29372
29373         if test $ol_cv_db_db_4_3 = yes ; then
29374                 ol_cv_lib_db=-ldb-4-3
29375         fi
29376 fi
29377
29378         elif test $ol_cv_bdb_minor = 2 ; then
29379                 if test $ol_cv_lib_db = no ; then
29380         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29381 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29382 if test "${ol_cv_db_db42+set}" = set; then
29383   echo $ECHO_N "(cached) $ECHO_C" >&6
29384 else
29385
29386         ol_DB_LIB=-ldb42
29387         ol_LIBS=$LIBS
29388         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29389
29390         cat >conftest.$ac_ext <<_ACEOF
29391 /* confdefs.h.  */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h.  */
29396
29397 #ifdef HAVE_DB_185_H
29398 # include <db_185.h>
29399 #else
29400 # include <db.h>
29401 #endif
29402
29403 #ifndef DB_VERSION_MAJOR
29404 # define DB_VERSION_MAJOR 1
29405 #endif
29406
29407 #ifndef NULL
29408 #define NULL ((void*)0)
29409 #endif
29410
29411 int
29412 main ()
29413 {
29414
29415 #if DB_VERSION_MAJOR > 1
29416         {
29417                 char *version;
29418                 int major, minor, patch;
29419
29420                 version = db_version( &major, &minor, &patch );
29421
29422                 if( major != DB_VERSION_MAJOR ||
29423                         minor < DB_VERSION_MINOR )
29424                 {
29425                         printf("Berkeley DB version mismatch\n"
29426                                 "\theader: %s\n\tlibrary: %s\n",
29427                                 DB_VERSION_STRING, version);
29428                         return 1;
29429                 }
29430         }
29431 #endif
29432
29433 #if DB_VERSION_MAJOR > 2
29434         db_env_create( NULL, 0 );
29435 #elif DB_VERSION_MAJOR > 1
29436         db_appexit( NULL );
29437 #else
29438         (void) dbopen( NULL, 0, 0, 0, NULL);
29439 #endif
29440
29441   ;
29442   return 0;
29443 }
29444 _ACEOF
29445 rm -f conftest.$ac_objext conftest$ac_exeext
29446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29447   (eval $ac_link) 2>conftest.er1
29448   ac_status=$?
29449   grep -v '^ *+' conftest.er1 >conftest.err
29450   rm -f conftest.er1
29451   cat conftest.err >&5
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); } &&
29454          { ac_try='test -z "$ac_c_werror_flag"
29455                          || test ! -s conftest.err'
29456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29457   (eval $ac_try) 2>&5
29458   ac_status=$?
29459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460   (exit $ac_status); }; } &&
29461          { ac_try='test -s conftest$ac_exeext'
29462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463   (eval $ac_try) 2>&5
29464   ac_status=$?
29465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466   (exit $ac_status); }; }; then
29467   ol_cv_db_db42=yes
29468 else
29469   echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29471
29472 ol_cv_db_db42=no
29473 fi
29474 rm -f conftest.err conftest.$ac_objext \
29475       conftest$ac_exeext conftest.$ac_ext
29476
29477         LIBS="$ol_LIBS"
29478
29479 fi
29480 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29481 echo "${ECHO_T}$ol_cv_db_db42" >&6
29482
29483         if test $ol_cv_db_db42 = yes ; then
29484                 ol_cv_lib_db=-ldb42
29485         fi
29486 fi
29487
29488                 if test $ol_cv_lib_db = no ; then
29489         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29490 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29491 if test "${ol_cv_db_db_42+set}" = set; then
29492   echo $ECHO_N "(cached) $ECHO_C" >&6
29493 else
29494
29495         ol_DB_LIB=-ldb-42
29496         ol_LIBS=$LIBS
29497         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29498
29499         cat >conftest.$ac_ext <<_ACEOF
29500 /* confdefs.h.  */
29501 _ACEOF
29502 cat confdefs.h >>conftest.$ac_ext
29503 cat >>conftest.$ac_ext <<_ACEOF
29504 /* end confdefs.h.  */
29505
29506 #ifdef HAVE_DB_185_H
29507 # include <db_185.h>
29508 #else
29509 # include <db.h>
29510 #endif
29511
29512 #ifndef DB_VERSION_MAJOR
29513 # define DB_VERSION_MAJOR 1
29514 #endif
29515
29516 #ifndef NULL
29517 #define NULL ((void*)0)
29518 #endif
29519
29520 int
29521 main ()
29522 {
29523
29524 #if DB_VERSION_MAJOR > 1
29525         {
29526                 char *version;
29527                 int major, minor, patch;
29528
29529                 version = db_version( &major, &minor, &patch );
29530
29531                 if( major != DB_VERSION_MAJOR ||
29532                         minor < DB_VERSION_MINOR )
29533                 {
29534                         printf("Berkeley DB version mismatch\n"
29535                                 "\theader: %s\n\tlibrary: %s\n",
29536                                 DB_VERSION_STRING, version);
29537                         return 1;
29538                 }
29539         }
29540 #endif
29541
29542 #if DB_VERSION_MAJOR > 2
29543         db_env_create( NULL, 0 );
29544 #elif DB_VERSION_MAJOR > 1
29545         db_appexit( NULL );
29546 #else
29547         (void) dbopen( NULL, 0, 0, 0, NULL);
29548 #endif
29549
29550   ;
29551   return 0;
29552 }
29553 _ACEOF
29554 rm -f conftest.$ac_objext conftest$ac_exeext
29555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29556   (eval $ac_link) 2>conftest.er1
29557   ac_status=$?
29558   grep -v '^ *+' conftest.er1 >conftest.err
29559   rm -f conftest.er1
29560   cat conftest.err >&5
29561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562   (exit $ac_status); } &&
29563          { ac_try='test -z "$ac_c_werror_flag"
29564                          || test ! -s conftest.err'
29565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29566   (eval $ac_try) 2>&5
29567   ac_status=$?
29568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569   (exit $ac_status); }; } &&
29570          { ac_try='test -s conftest$ac_exeext'
29571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572   (eval $ac_try) 2>&5
29573   ac_status=$?
29574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575   (exit $ac_status); }; }; then
29576   ol_cv_db_db_42=yes
29577 else
29578   echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29580
29581 ol_cv_db_db_42=no
29582 fi
29583 rm -f conftest.err conftest.$ac_objext \
29584       conftest$ac_exeext conftest.$ac_ext
29585
29586         LIBS="$ol_LIBS"
29587
29588 fi
29589 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29590 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29591
29592         if test $ol_cv_db_db_42 = yes ; then
29593                 ol_cv_lib_db=-ldb-42
29594         fi
29595 fi
29596
29597                 if test $ol_cv_lib_db = no ; then
29598         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29599 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29600 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29601   echo $ECHO_N "(cached) $ECHO_C" >&6
29602 else
29603
29604         ol_DB_LIB=-ldb-4.2
29605         ol_LIBS=$LIBS
29606         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29607
29608         cat >conftest.$ac_ext <<_ACEOF
29609 /* confdefs.h.  */
29610 _ACEOF
29611 cat confdefs.h >>conftest.$ac_ext
29612 cat >>conftest.$ac_ext <<_ACEOF
29613 /* end confdefs.h.  */
29614
29615 #ifdef HAVE_DB_185_H
29616 # include <db_185.h>
29617 #else
29618 # include <db.h>
29619 #endif
29620
29621 #ifndef DB_VERSION_MAJOR
29622 # define DB_VERSION_MAJOR 1
29623 #endif
29624
29625 #ifndef NULL
29626 #define NULL ((void*)0)
29627 #endif
29628
29629 int
29630 main ()
29631 {
29632
29633 #if DB_VERSION_MAJOR > 1
29634         {
29635                 char *version;
29636                 int major, minor, patch;
29637
29638                 version = db_version( &major, &minor, &patch );
29639
29640                 if( major != DB_VERSION_MAJOR ||
29641                         minor < DB_VERSION_MINOR )
29642                 {
29643                         printf("Berkeley DB version mismatch\n"
29644                                 "\theader: %s\n\tlibrary: %s\n",
29645                                 DB_VERSION_STRING, version);
29646                         return 1;
29647                 }
29648         }
29649 #endif
29650
29651 #if DB_VERSION_MAJOR > 2
29652         db_env_create( NULL, 0 );
29653 #elif DB_VERSION_MAJOR > 1
29654         db_appexit( NULL );
29655 #else
29656         (void) dbopen( NULL, 0, 0, 0, NULL);
29657 #endif
29658
29659   ;
29660   return 0;
29661 }
29662 _ACEOF
29663 rm -f conftest.$ac_objext conftest$ac_exeext
29664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29665   (eval $ac_link) 2>conftest.er1
29666   ac_status=$?
29667   grep -v '^ *+' conftest.er1 >conftest.err
29668   rm -f conftest.er1
29669   cat conftest.err >&5
29670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671   (exit $ac_status); } &&
29672          { ac_try='test -z "$ac_c_werror_flag"
29673                          || test ! -s conftest.err'
29674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675   (eval $ac_try) 2>&5
29676   ac_status=$?
29677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678   (exit $ac_status); }; } &&
29679          { ac_try='test -s conftest$ac_exeext'
29680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29681   (eval $ac_try) 2>&5
29682   ac_status=$?
29683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684   (exit $ac_status); }; }; then
29685   ol_cv_db_db_4_dot_2=yes
29686 else
29687   echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29689
29690 ol_cv_db_db_4_dot_2=no
29691 fi
29692 rm -f conftest.err conftest.$ac_objext \
29693       conftest$ac_exeext conftest.$ac_ext
29694
29695         LIBS="$ol_LIBS"
29696
29697 fi
29698 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29699 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29700
29701         if test $ol_cv_db_db_4_dot_2 = yes ; then
29702                 ol_cv_lib_db=-ldb-4.2
29703         fi
29704 fi
29705
29706                 if test $ol_cv_lib_db = no ; then
29707         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29708 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29709 if test "${ol_cv_db_db_4_2+set}" = set; then
29710   echo $ECHO_N "(cached) $ECHO_C" >&6
29711 else
29712
29713         ol_DB_LIB=-ldb-4-2
29714         ol_LIBS=$LIBS
29715         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29716
29717         cat >conftest.$ac_ext <<_ACEOF
29718 /* confdefs.h.  */
29719 _ACEOF
29720 cat confdefs.h >>conftest.$ac_ext
29721 cat >>conftest.$ac_ext <<_ACEOF
29722 /* end confdefs.h.  */
29723
29724 #ifdef HAVE_DB_185_H
29725 # include <db_185.h>
29726 #else
29727 # include <db.h>
29728 #endif
29729
29730 #ifndef DB_VERSION_MAJOR
29731 # define DB_VERSION_MAJOR 1
29732 #endif
29733
29734 #ifndef NULL
29735 #define NULL ((void*)0)
29736 #endif
29737
29738 int
29739 main ()
29740 {
29741
29742 #if DB_VERSION_MAJOR > 1
29743         {
29744                 char *version;
29745                 int major, minor, patch;
29746
29747                 version = db_version( &major, &minor, &patch );
29748
29749                 if( major != DB_VERSION_MAJOR ||
29750                         minor < DB_VERSION_MINOR )
29751                 {
29752                         printf("Berkeley DB version mismatch\n"
29753                                 "\theader: %s\n\tlibrary: %s\n",
29754                                 DB_VERSION_STRING, version);
29755                         return 1;
29756                 }
29757         }
29758 #endif
29759
29760 #if DB_VERSION_MAJOR > 2
29761         db_env_create( NULL, 0 );
29762 #elif DB_VERSION_MAJOR > 1
29763         db_appexit( NULL );
29764 #else
29765         (void) dbopen( NULL, 0, 0, 0, NULL);
29766 #endif
29767
29768   ;
29769   return 0;
29770 }
29771 _ACEOF
29772 rm -f conftest.$ac_objext conftest$ac_exeext
29773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29774   (eval $ac_link) 2>conftest.er1
29775   ac_status=$?
29776   grep -v '^ *+' conftest.er1 >conftest.err
29777   rm -f conftest.er1
29778   cat conftest.err >&5
29779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780   (exit $ac_status); } &&
29781          { ac_try='test -z "$ac_c_werror_flag"
29782                          || test ! -s conftest.err'
29783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29784   (eval $ac_try) 2>&5
29785   ac_status=$?
29786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787   (exit $ac_status); }; } &&
29788          { ac_try='test -s conftest$ac_exeext'
29789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29790   (eval $ac_try) 2>&5
29791   ac_status=$?
29792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793   (exit $ac_status); }; }; then
29794   ol_cv_db_db_4_2=yes
29795 else
29796   echo "$as_me: failed program was:" >&5
29797 sed 's/^/| /' conftest.$ac_ext >&5
29798
29799 ol_cv_db_db_4_2=no
29800 fi
29801 rm -f conftest.err conftest.$ac_objext \
29802       conftest$ac_exeext conftest.$ac_ext
29803
29804         LIBS="$ol_LIBS"
29805
29806 fi
29807 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29808 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29809
29810         if test $ol_cv_db_db_4_2 = yes ; then
29811                 ol_cv_lib_db=-ldb-4-2
29812         fi
29813 fi
29814
29815         elif test $ol_cv_bdb_minor = 1 ; then
29816                 if test $ol_cv_lib_db = no ; then
29817         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29818 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29819 if test "${ol_cv_db_db41+set}" = set; then
29820   echo $ECHO_N "(cached) $ECHO_C" >&6
29821 else
29822
29823         ol_DB_LIB=-ldb41
29824         ol_LIBS=$LIBS
29825         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29826
29827         cat >conftest.$ac_ext <<_ACEOF
29828 /* confdefs.h.  */
29829 _ACEOF
29830 cat confdefs.h >>conftest.$ac_ext
29831 cat >>conftest.$ac_ext <<_ACEOF
29832 /* end confdefs.h.  */
29833
29834 #ifdef HAVE_DB_185_H
29835 # include <db_185.h>
29836 #else
29837 # include <db.h>
29838 #endif
29839
29840 #ifndef DB_VERSION_MAJOR
29841 # define DB_VERSION_MAJOR 1
29842 #endif
29843
29844 #ifndef NULL
29845 #define NULL ((void*)0)
29846 #endif
29847
29848 int
29849 main ()
29850 {
29851
29852 #if DB_VERSION_MAJOR > 1
29853         {
29854                 char *version;
29855                 int major, minor, patch;
29856
29857                 version = db_version( &major, &minor, &patch );
29858
29859                 if( major != DB_VERSION_MAJOR ||
29860                         minor < DB_VERSION_MINOR )
29861                 {
29862                         printf("Berkeley DB version mismatch\n"
29863                                 "\theader: %s\n\tlibrary: %s\n",
29864                                 DB_VERSION_STRING, version);
29865                         return 1;
29866                 }
29867         }
29868 #endif
29869
29870 #if DB_VERSION_MAJOR > 2
29871         db_env_create( NULL, 0 );
29872 #elif DB_VERSION_MAJOR > 1
29873         db_appexit( NULL );
29874 #else
29875         (void) dbopen( NULL, 0, 0, 0, NULL);
29876 #endif
29877
29878   ;
29879   return 0;
29880 }
29881 _ACEOF
29882 rm -f conftest.$ac_objext conftest$ac_exeext
29883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29884   (eval $ac_link) 2>conftest.er1
29885   ac_status=$?
29886   grep -v '^ *+' conftest.er1 >conftest.err
29887   rm -f conftest.er1
29888   cat conftest.err >&5
29889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890   (exit $ac_status); } &&
29891          { ac_try='test -z "$ac_c_werror_flag"
29892                          || test ! -s conftest.err'
29893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894   (eval $ac_try) 2>&5
29895   ac_status=$?
29896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897   (exit $ac_status); }; } &&
29898          { ac_try='test -s conftest$ac_exeext'
29899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900   (eval $ac_try) 2>&5
29901   ac_status=$?
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); }; }; then
29904   ol_cv_db_db41=yes
29905 else
29906   echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29908
29909 ol_cv_db_db41=no
29910 fi
29911 rm -f conftest.err conftest.$ac_objext \
29912       conftest$ac_exeext conftest.$ac_ext
29913
29914         LIBS="$ol_LIBS"
29915
29916 fi
29917 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29918 echo "${ECHO_T}$ol_cv_db_db41" >&6
29919
29920         if test $ol_cv_db_db41 = yes ; then
29921                 ol_cv_lib_db=-ldb41
29922         fi
29923 fi
29924
29925                 if test $ol_cv_lib_db = no ; then
29926         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29927 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29928 if test "${ol_cv_db_db_41+set}" = set; then
29929   echo $ECHO_N "(cached) $ECHO_C" >&6
29930 else
29931
29932         ol_DB_LIB=-ldb-41
29933         ol_LIBS=$LIBS
29934         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29935
29936         cat >conftest.$ac_ext <<_ACEOF
29937 /* confdefs.h.  */
29938 _ACEOF
29939 cat confdefs.h >>conftest.$ac_ext
29940 cat >>conftest.$ac_ext <<_ACEOF
29941 /* end confdefs.h.  */
29942
29943 #ifdef HAVE_DB_185_H
29944 # include <db_185.h>
29945 #else
29946 # include <db.h>
29947 #endif
29948
29949 #ifndef DB_VERSION_MAJOR
29950 # define DB_VERSION_MAJOR 1
29951 #endif
29952
29953 #ifndef NULL
29954 #define NULL ((void*)0)
29955 #endif
29956
29957 int
29958 main ()
29959 {
29960
29961 #if DB_VERSION_MAJOR > 1
29962         {
29963                 char *version;
29964                 int major, minor, patch;
29965
29966                 version = db_version( &major, &minor, &patch );
29967
29968                 if( major != DB_VERSION_MAJOR ||
29969                         minor < DB_VERSION_MINOR )
29970                 {
29971                         printf("Berkeley DB version mismatch\n"
29972                                 "\theader: %s\n\tlibrary: %s\n",
29973                                 DB_VERSION_STRING, version);
29974                         return 1;
29975                 }
29976         }
29977 #endif
29978
29979 #if DB_VERSION_MAJOR > 2
29980         db_env_create( NULL, 0 );
29981 #elif DB_VERSION_MAJOR > 1
29982         db_appexit( NULL );
29983 #else
29984         (void) dbopen( NULL, 0, 0, 0, NULL);
29985 #endif
29986
29987   ;
29988   return 0;
29989 }
29990 _ACEOF
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29993   (eval $ac_link) 2>conftest.er1
29994   ac_status=$?
29995   grep -v '^ *+' conftest.er1 >conftest.err
29996   rm -f conftest.er1
29997   cat conftest.err >&5
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); } &&
30000          { ac_try='test -z "$ac_c_werror_flag"
30001                          || test ! -s conftest.err'
30002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003   (eval $ac_try) 2>&5
30004   ac_status=$?
30005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006   (exit $ac_status); }; } &&
30007          { ac_try='test -s conftest$ac_exeext'
30008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30009   (eval $ac_try) 2>&5
30010   ac_status=$?
30011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012   (exit $ac_status); }; }; then
30013   ol_cv_db_db_41=yes
30014 else
30015   echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30017
30018 ol_cv_db_db_41=no
30019 fi
30020 rm -f conftest.err conftest.$ac_objext \
30021       conftest$ac_exeext conftest.$ac_ext
30022
30023         LIBS="$ol_LIBS"
30024
30025 fi
30026 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
30027 echo "${ECHO_T}$ol_cv_db_db_41" >&6
30028
30029         if test $ol_cv_db_db_41 = yes ; then
30030                 ol_cv_lib_db=-ldb-41
30031         fi
30032 fi
30033
30034                 if test $ol_cv_lib_db = no ; then
30035         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
30036 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
30037 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
30038   echo $ECHO_N "(cached) $ECHO_C" >&6
30039 else
30040
30041         ol_DB_LIB=-ldb-4.1
30042         ol_LIBS=$LIBS
30043         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30044
30045         cat >conftest.$ac_ext <<_ACEOF
30046 /* confdefs.h.  */
30047 _ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h.  */
30051
30052 #ifdef HAVE_DB_185_H
30053 # include <db_185.h>
30054 #else
30055 # include <db.h>
30056 #endif
30057
30058 #ifndef DB_VERSION_MAJOR
30059 # define DB_VERSION_MAJOR 1
30060 #endif
30061
30062 #ifndef NULL
30063 #define NULL ((void*)0)
30064 #endif
30065
30066 int
30067 main ()
30068 {
30069
30070 #if DB_VERSION_MAJOR > 1
30071         {
30072                 char *version;
30073                 int major, minor, patch;
30074
30075                 version = db_version( &major, &minor, &patch );
30076
30077                 if( major != DB_VERSION_MAJOR ||
30078                         minor < DB_VERSION_MINOR )
30079                 {
30080                         printf("Berkeley DB version mismatch\n"
30081                                 "\theader: %s\n\tlibrary: %s\n",
30082                                 DB_VERSION_STRING, version);
30083                         return 1;
30084                 }
30085         }
30086 #endif
30087
30088 #if DB_VERSION_MAJOR > 2
30089         db_env_create( NULL, 0 );
30090 #elif DB_VERSION_MAJOR > 1
30091         db_appexit( NULL );
30092 #else
30093         (void) dbopen( NULL, 0, 0, 0, NULL);
30094 #endif
30095
30096   ;
30097   return 0;
30098 }
30099 _ACEOF
30100 rm -f conftest.$ac_objext conftest$ac_exeext
30101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30102   (eval $ac_link) 2>conftest.er1
30103   ac_status=$?
30104   grep -v '^ *+' conftest.er1 >conftest.err
30105   rm -f conftest.er1
30106   cat conftest.err >&5
30107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108   (exit $ac_status); } &&
30109          { ac_try='test -z "$ac_c_werror_flag"
30110                          || test ! -s conftest.err'
30111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112   (eval $ac_try) 2>&5
30113   ac_status=$?
30114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); }; } &&
30116          { ac_try='test -s conftest$ac_exeext'
30117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30118   (eval $ac_try) 2>&5
30119   ac_status=$?
30120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121   (exit $ac_status); }; }; then
30122   ol_cv_db_db_4_dot_1=yes
30123 else
30124   echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30126
30127 ol_cv_db_db_4_dot_1=no
30128 fi
30129 rm -f conftest.err conftest.$ac_objext \
30130       conftest$ac_exeext conftest.$ac_ext
30131
30132         LIBS="$ol_LIBS"
30133
30134 fi
30135 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30136 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30137
30138         if test $ol_cv_db_db_4_dot_1 = yes ; then
30139                 ol_cv_lib_db=-ldb-4.1
30140         fi
30141 fi
30142
30143                 if test $ol_cv_lib_db = no ; then
30144         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30145 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30146 if test "${ol_cv_db_db_4_1+set}" = set; then
30147   echo $ECHO_N "(cached) $ECHO_C" >&6
30148 else
30149
30150         ol_DB_LIB=-ldb-4-1
30151         ol_LIBS=$LIBS
30152         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30153
30154         cat >conftest.$ac_ext <<_ACEOF
30155 /* confdefs.h.  */
30156 _ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h.  */
30160
30161 #ifdef HAVE_DB_185_H
30162 # include <db_185.h>
30163 #else
30164 # include <db.h>
30165 #endif
30166
30167 #ifndef DB_VERSION_MAJOR
30168 # define DB_VERSION_MAJOR 1
30169 #endif
30170
30171 #ifndef NULL
30172 #define NULL ((void*)0)
30173 #endif
30174
30175 int
30176 main ()
30177 {
30178
30179 #if DB_VERSION_MAJOR > 1
30180         {
30181                 char *version;
30182                 int major, minor, patch;
30183
30184                 version = db_version( &major, &minor, &patch );
30185
30186                 if( major != DB_VERSION_MAJOR ||
30187                         minor < DB_VERSION_MINOR )
30188                 {
30189                         printf("Berkeley DB version mismatch\n"
30190                                 "\theader: %s\n\tlibrary: %s\n",
30191                                 DB_VERSION_STRING, version);
30192                         return 1;
30193                 }
30194         }
30195 #endif
30196
30197 #if DB_VERSION_MAJOR > 2
30198         db_env_create( NULL, 0 );
30199 #elif DB_VERSION_MAJOR > 1
30200         db_appexit( NULL );
30201 #else
30202         (void) dbopen( NULL, 0, 0, 0, NULL);
30203 #endif
30204
30205   ;
30206   return 0;
30207 }
30208 _ACEOF
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30211   (eval $ac_link) 2>conftest.er1
30212   ac_status=$?
30213   grep -v '^ *+' conftest.er1 >conftest.err
30214   rm -f conftest.er1
30215   cat conftest.err >&5
30216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217   (exit $ac_status); } &&
30218          { ac_try='test -z "$ac_c_werror_flag"
30219                          || test ! -s conftest.err'
30220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30221   (eval $ac_try) 2>&5
30222   ac_status=$?
30223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224   (exit $ac_status); }; } &&
30225          { ac_try='test -s conftest$ac_exeext'
30226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30227   (eval $ac_try) 2>&5
30228   ac_status=$?
30229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230   (exit $ac_status); }; }; then
30231   ol_cv_db_db_4_1=yes
30232 else
30233   echo "$as_me: failed program was:" >&5
30234 sed 's/^/| /' conftest.$ac_ext >&5
30235
30236 ol_cv_db_db_4_1=no
30237 fi
30238 rm -f conftest.err conftest.$ac_objext \
30239       conftest$ac_exeext conftest.$ac_ext
30240
30241         LIBS="$ol_LIBS"
30242
30243 fi
30244 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30245 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30246
30247         if test $ol_cv_db_db_4_1 = yes ; then
30248                 ol_cv_lib_db=-ldb-4-1
30249         fi
30250 fi
30251
30252         fi
30253         if test $ol_cv_lib_db = no ; then
30254         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30255 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30256 if test "${ol_cv_db_db_4+set}" = set; then
30257   echo $ECHO_N "(cached) $ECHO_C" >&6
30258 else
30259
30260         ol_DB_LIB=-ldb-4
30261         ol_LIBS=$LIBS
30262         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30263
30264         cat >conftest.$ac_ext <<_ACEOF
30265 /* confdefs.h.  */
30266 _ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h.  */
30270
30271 #ifdef HAVE_DB_185_H
30272 # include <db_185.h>
30273 #else
30274 # include <db.h>
30275 #endif
30276
30277 #ifndef DB_VERSION_MAJOR
30278 # define DB_VERSION_MAJOR 1
30279 #endif
30280
30281 #ifndef NULL
30282 #define NULL ((void*)0)
30283 #endif
30284
30285 int
30286 main ()
30287 {
30288
30289 #if DB_VERSION_MAJOR > 1
30290         {
30291                 char *version;
30292                 int major, minor, patch;
30293
30294                 version = db_version( &major, &minor, &patch );
30295
30296                 if( major != DB_VERSION_MAJOR ||
30297                         minor < DB_VERSION_MINOR )
30298                 {
30299                         printf("Berkeley DB version mismatch\n"
30300                                 "\theader: %s\n\tlibrary: %s\n",
30301                                 DB_VERSION_STRING, version);
30302                         return 1;
30303                 }
30304         }
30305 #endif
30306
30307 #if DB_VERSION_MAJOR > 2
30308         db_env_create( NULL, 0 );
30309 #elif DB_VERSION_MAJOR > 1
30310         db_appexit( NULL );
30311 #else
30312         (void) dbopen( NULL, 0, 0, 0, NULL);
30313 #endif
30314
30315   ;
30316   return 0;
30317 }
30318 _ACEOF
30319 rm -f conftest.$ac_objext conftest$ac_exeext
30320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30321   (eval $ac_link) 2>conftest.er1
30322   ac_status=$?
30323   grep -v '^ *+' conftest.er1 >conftest.err
30324   rm -f conftest.er1
30325   cat conftest.err >&5
30326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327   (exit $ac_status); } &&
30328          { ac_try='test -z "$ac_c_werror_flag"
30329                          || test ! -s conftest.err'
30330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30331   (eval $ac_try) 2>&5
30332   ac_status=$?
30333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334   (exit $ac_status); }; } &&
30335          { ac_try='test -s conftest$ac_exeext'
30336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30337   (eval $ac_try) 2>&5
30338   ac_status=$?
30339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340   (exit $ac_status); }; }; then
30341   ol_cv_db_db_4=yes
30342 else
30343   echo "$as_me: failed program was:" >&5
30344 sed 's/^/| /' conftest.$ac_ext >&5
30345
30346 ol_cv_db_db_4=no
30347 fi
30348 rm -f conftest.err conftest.$ac_objext \
30349       conftest$ac_exeext conftest.$ac_ext
30350
30351         LIBS="$ol_LIBS"
30352
30353 fi
30354 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30355 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30356
30357         if test $ol_cv_db_db_4 = yes ; then
30358                 ol_cv_lib_db=-ldb-4
30359         fi
30360 fi
30361
30362         if test $ol_cv_lib_db = no ; then
30363         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30364 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30365 if test "${ol_cv_db_db4+set}" = set; then
30366   echo $ECHO_N "(cached) $ECHO_C" >&6
30367 else
30368
30369         ol_DB_LIB=-ldb4
30370         ol_LIBS=$LIBS
30371         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30372
30373         cat >conftest.$ac_ext <<_ACEOF
30374 /* confdefs.h.  */
30375 _ACEOF
30376 cat confdefs.h >>conftest.$ac_ext
30377 cat >>conftest.$ac_ext <<_ACEOF
30378 /* end confdefs.h.  */
30379
30380 #ifdef HAVE_DB_185_H
30381 # include <db_185.h>
30382 #else
30383 # include <db.h>
30384 #endif
30385
30386 #ifndef DB_VERSION_MAJOR
30387 # define DB_VERSION_MAJOR 1
30388 #endif
30389
30390 #ifndef NULL
30391 #define NULL ((void*)0)
30392 #endif
30393
30394 int
30395 main ()
30396 {
30397
30398 #if DB_VERSION_MAJOR > 1
30399         {
30400                 char *version;
30401                 int major, minor, patch;
30402
30403                 version = db_version( &major, &minor, &patch );
30404
30405                 if( major != DB_VERSION_MAJOR ||
30406                         minor < DB_VERSION_MINOR )
30407                 {
30408                         printf("Berkeley DB version mismatch\n"
30409                                 "\theader: %s\n\tlibrary: %s\n",
30410                                 DB_VERSION_STRING, version);
30411                         return 1;
30412                 }
30413         }
30414 #endif
30415
30416 #if DB_VERSION_MAJOR > 2
30417         db_env_create( NULL, 0 );
30418 #elif DB_VERSION_MAJOR > 1
30419         db_appexit( NULL );
30420 #else
30421         (void) dbopen( NULL, 0, 0, 0, NULL);
30422 #endif
30423
30424   ;
30425   return 0;
30426 }
30427 _ACEOF
30428 rm -f conftest.$ac_objext conftest$ac_exeext
30429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30430   (eval $ac_link) 2>conftest.er1
30431   ac_status=$?
30432   grep -v '^ *+' conftest.er1 >conftest.err
30433   rm -f conftest.er1
30434   cat conftest.err >&5
30435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436   (exit $ac_status); } &&
30437          { ac_try='test -z "$ac_c_werror_flag"
30438                          || test ! -s conftest.err'
30439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440   (eval $ac_try) 2>&5
30441   ac_status=$?
30442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443   (exit $ac_status); }; } &&
30444          { ac_try='test -s conftest$ac_exeext'
30445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446   (eval $ac_try) 2>&5
30447   ac_status=$?
30448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449   (exit $ac_status); }; }; then
30450   ol_cv_db_db4=yes
30451 else
30452   echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30454
30455 ol_cv_db_db4=no
30456 fi
30457 rm -f conftest.err conftest.$ac_objext \
30458       conftest$ac_exeext conftest.$ac_ext
30459
30460         LIBS="$ol_LIBS"
30461
30462 fi
30463 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30464 echo "${ECHO_T}$ol_cv_db_db4" >&6
30465
30466         if test $ol_cv_db_db4 = yes ; then
30467                 ol_cv_lib_db=-ldb4
30468         fi
30469 fi
30470
30471         if test $ol_cv_lib_db = no ; then
30472         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30473 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30474 if test "${ol_cv_db_db+set}" = set; then
30475   echo $ECHO_N "(cached) $ECHO_C" >&6
30476 else
30477
30478         ol_DB_LIB=-ldb
30479         ol_LIBS=$LIBS
30480         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30481
30482         cat >conftest.$ac_ext <<_ACEOF
30483 /* confdefs.h.  */
30484 _ACEOF
30485 cat confdefs.h >>conftest.$ac_ext
30486 cat >>conftest.$ac_ext <<_ACEOF
30487 /* end confdefs.h.  */
30488
30489 #ifdef HAVE_DB_185_H
30490 # include <db_185.h>
30491 #else
30492 # include <db.h>
30493 #endif
30494
30495 #ifndef DB_VERSION_MAJOR
30496 # define DB_VERSION_MAJOR 1
30497 #endif
30498
30499 #ifndef NULL
30500 #define NULL ((void*)0)
30501 #endif
30502
30503 int
30504 main ()
30505 {
30506
30507 #if DB_VERSION_MAJOR > 1
30508         {
30509                 char *version;
30510                 int major, minor, patch;
30511
30512                 version = db_version( &major, &minor, &patch );
30513
30514                 if( major != DB_VERSION_MAJOR ||
30515                         minor < DB_VERSION_MINOR )
30516                 {
30517                         printf("Berkeley DB version mismatch\n"
30518                                 "\theader: %s\n\tlibrary: %s\n",
30519                                 DB_VERSION_STRING, version);
30520                         return 1;
30521                 }
30522         }
30523 #endif
30524
30525 #if DB_VERSION_MAJOR > 2
30526         db_env_create( NULL, 0 );
30527 #elif DB_VERSION_MAJOR > 1
30528         db_appexit( NULL );
30529 #else
30530         (void) dbopen( NULL, 0, 0, 0, NULL);
30531 #endif
30532
30533   ;
30534   return 0;
30535 }
30536 _ACEOF
30537 rm -f conftest.$ac_objext conftest$ac_exeext
30538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30539   (eval $ac_link) 2>conftest.er1
30540   ac_status=$?
30541   grep -v '^ *+' conftest.er1 >conftest.err
30542   rm -f conftest.er1
30543   cat conftest.err >&5
30544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545   (exit $ac_status); } &&
30546          { ac_try='test -z "$ac_c_werror_flag"
30547                          || test ! -s conftest.err'
30548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30549   (eval $ac_try) 2>&5
30550   ac_status=$?
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); }; } &&
30553          { ac_try='test -s conftest$ac_exeext'
30554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30555   (eval $ac_try) 2>&5
30556   ac_status=$?
30557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558   (exit $ac_status); }; }; then
30559   ol_cv_db_db=yes
30560 else
30561   echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30563
30564 ol_cv_db_db=no
30565 fi
30566 rm -f conftest.err conftest.$ac_objext \
30567       conftest$ac_exeext conftest.$ac_ext
30568
30569         LIBS="$ol_LIBS"
30570
30571 fi
30572 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30573 echo "${ECHO_T}$ol_cv_db_db" >&6
30574
30575         if test $ol_cv_db_db = yes ; then
30576                 ol_cv_lib_db=-ldb
30577         fi
30578 fi
30579
30580
30581 elif test $ol_cv_bdb_major = 3 ; then
30582         if test $ol_cv_lib_db = no ; then
30583         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30584 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30585 if test "${ol_cv_db_db3+set}" = set; then
30586   echo $ECHO_N "(cached) $ECHO_C" >&6
30587 else
30588
30589         ol_DB_LIB=-ldb3
30590         ol_LIBS=$LIBS
30591         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30592
30593         cat >conftest.$ac_ext <<_ACEOF
30594 /* confdefs.h.  */
30595 _ACEOF
30596 cat confdefs.h >>conftest.$ac_ext
30597 cat >>conftest.$ac_ext <<_ACEOF
30598 /* end confdefs.h.  */
30599
30600 #ifdef HAVE_DB_185_H
30601 # include <db_185.h>
30602 #else
30603 # include <db.h>
30604 #endif
30605
30606 #ifndef DB_VERSION_MAJOR
30607 # define DB_VERSION_MAJOR 1
30608 #endif
30609
30610 #ifndef NULL
30611 #define NULL ((void*)0)
30612 #endif
30613
30614 int
30615 main ()
30616 {
30617
30618 #if DB_VERSION_MAJOR > 1
30619         {
30620                 char *version;
30621                 int major, minor, patch;
30622
30623                 version = db_version( &major, &minor, &patch );
30624
30625                 if( major != DB_VERSION_MAJOR ||
30626                         minor < DB_VERSION_MINOR )
30627                 {
30628                         printf("Berkeley DB version mismatch\n"
30629                                 "\theader: %s\n\tlibrary: %s\n",
30630                                 DB_VERSION_STRING, version);
30631                         return 1;
30632                 }
30633         }
30634 #endif
30635
30636 #if DB_VERSION_MAJOR > 2
30637         db_env_create( NULL, 0 );
30638 #elif DB_VERSION_MAJOR > 1
30639         db_appexit( NULL );
30640 #else
30641         (void) dbopen( NULL, 0, 0, 0, NULL);
30642 #endif
30643
30644   ;
30645   return 0;
30646 }
30647 _ACEOF
30648 rm -f conftest.$ac_objext conftest$ac_exeext
30649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30650   (eval $ac_link) 2>conftest.er1
30651   ac_status=$?
30652   grep -v '^ *+' conftest.er1 >conftest.err
30653   rm -f conftest.er1
30654   cat conftest.err >&5
30655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656   (exit $ac_status); } &&
30657          { ac_try='test -z "$ac_c_werror_flag"
30658                          || test ! -s conftest.err'
30659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30660   (eval $ac_try) 2>&5
30661   ac_status=$?
30662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663   (exit $ac_status); }; } &&
30664          { ac_try='test -s conftest$ac_exeext'
30665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30666   (eval $ac_try) 2>&5
30667   ac_status=$?
30668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669   (exit $ac_status); }; }; then
30670   ol_cv_db_db3=yes
30671 else
30672   echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30674
30675 ol_cv_db_db3=no
30676 fi
30677 rm -f conftest.err conftest.$ac_objext \
30678       conftest$ac_exeext conftest.$ac_ext
30679
30680         LIBS="$ol_LIBS"
30681
30682 fi
30683 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30684 echo "${ECHO_T}$ol_cv_db_db3" >&6
30685
30686         if test $ol_cv_db_db3 = yes ; then
30687                 ol_cv_lib_db=-ldb3
30688         fi
30689 fi
30690
30691         if test $ol_cv_lib_db = no ; then
30692         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30693 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30694 if test "${ol_cv_db_db_3+set}" = set; then
30695   echo $ECHO_N "(cached) $ECHO_C" >&6
30696 else
30697
30698         ol_DB_LIB=-ldb-3
30699         ol_LIBS=$LIBS
30700         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30701
30702         cat >conftest.$ac_ext <<_ACEOF
30703 /* confdefs.h.  */
30704 _ACEOF
30705 cat confdefs.h >>conftest.$ac_ext
30706 cat >>conftest.$ac_ext <<_ACEOF
30707 /* end confdefs.h.  */
30708
30709 #ifdef HAVE_DB_185_H
30710 # include <db_185.h>
30711 #else
30712 # include <db.h>
30713 #endif
30714
30715 #ifndef DB_VERSION_MAJOR
30716 # define DB_VERSION_MAJOR 1
30717 #endif
30718
30719 #ifndef NULL
30720 #define NULL ((void*)0)
30721 #endif
30722
30723 int
30724 main ()
30725 {
30726
30727 #if DB_VERSION_MAJOR > 1
30728         {
30729                 char *version;
30730                 int major, minor, patch;
30731
30732                 version = db_version( &major, &minor, &patch );
30733
30734                 if( major != DB_VERSION_MAJOR ||
30735                         minor < DB_VERSION_MINOR )
30736                 {
30737                         printf("Berkeley DB version mismatch\n"
30738                                 "\theader: %s\n\tlibrary: %s\n",
30739                                 DB_VERSION_STRING, version);
30740                         return 1;
30741                 }
30742         }
30743 #endif
30744
30745 #if DB_VERSION_MAJOR > 2
30746         db_env_create( NULL, 0 );
30747 #elif DB_VERSION_MAJOR > 1
30748         db_appexit( NULL );
30749 #else
30750         (void) dbopen( NULL, 0, 0, 0, NULL);
30751 #endif
30752
30753   ;
30754   return 0;
30755 }
30756 _ACEOF
30757 rm -f conftest.$ac_objext conftest$ac_exeext
30758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30759   (eval $ac_link) 2>conftest.er1
30760   ac_status=$?
30761   grep -v '^ *+' conftest.er1 >conftest.err
30762   rm -f conftest.er1
30763   cat conftest.err >&5
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); } &&
30766          { ac_try='test -z "$ac_c_werror_flag"
30767                          || test ! -s conftest.err'
30768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769   (eval $ac_try) 2>&5
30770   ac_status=$?
30771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772   (exit $ac_status); }; } &&
30773          { ac_try='test -s conftest$ac_exeext'
30774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775   (eval $ac_try) 2>&5
30776   ac_status=$?
30777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778   (exit $ac_status); }; }; then
30779   ol_cv_db_db_3=yes
30780 else
30781   echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30783
30784 ol_cv_db_db_3=no
30785 fi
30786 rm -f conftest.err conftest.$ac_objext \
30787       conftest$ac_exeext conftest.$ac_ext
30788
30789         LIBS="$ol_LIBS"
30790
30791 fi
30792 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30793 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30794
30795         if test $ol_cv_db_db_3 = yes ; then
30796                 ol_cv_lib_db=-ldb-3
30797         fi
30798 fi
30799
30800
30801 elif test $ol_cv_bdb_major = 2 ; then
30802         if test $ol_cv_lib_db = no ; then
30803         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30804 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30805 if test "${ol_cv_db_db2+set}" = set; then
30806   echo $ECHO_N "(cached) $ECHO_C" >&6
30807 else
30808
30809         ol_DB_LIB=-ldb2
30810         ol_LIBS=$LIBS
30811         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30812
30813         cat >conftest.$ac_ext <<_ACEOF
30814 /* confdefs.h.  */
30815 _ACEOF
30816 cat confdefs.h >>conftest.$ac_ext
30817 cat >>conftest.$ac_ext <<_ACEOF
30818 /* end confdefs.h.  */
30819
30820 #ifdef HAVE_DB_185_H
30821 # include <db_185.h>
30822 #else
30823 # include <db.h>
30824 #endif
30825
30826 #ifndef DB_VERSION_MAJOR
30827 # define DB_VERSION_MAJOR 1
30828 #endif
30829
30830 #ifndef NULL
30831 #define NULL ((void*)0)
30832 #endif
30833
30834 int
30835 main ()
30836 {
30837
30838 #if DB_VERSION_MAJOR > 1
30839         {
30840                 char *version;
30841                 int major, minor, patch;
30842
30843                 version = db_version( &major, &minor, &patch );
30844
30845                 if( major != DB_VERSION_MAJOR ||
30846                         minor < DB_VERSION_MINOR )
30847                 {
30848                         printf("Berkeley DB version mismatch\n"
30849                                 "\theader: %s\n\tlibrary: %s\n",
30850                                 DB_VERSION_STRING, version);
30851                         return 1;
30852                 }
30853         }
30854 #endif
30855
30856 #if DB_VERSION_MAJOR > 2
30857         db_env_create( NULL, 0 );
30858 #elif DB_VERSION_MAJOR > 1
30859         db_appexit( NULL );
30860 #else
30861         (void) dbopen( NULL, 0, 0, 0, NULL);
30862 #endif
30863
30864   ;
30865   return 0;
30866 }
30867 _ACEOF
30868 rm -f conftest.$ac_objext conftest$ac_exeext
30869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30870   (eval $ac_link) 2>conftest.er1
30871   ac_status=$?
30872   grep -v '^ *+' conftest.er1 >conftest.err
30873   rm -f conftest.er1
30874   cat conftest.err >&5
30875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876   (exit $ac_status); } &&
30877          { ac_try='test -z "$ac_c_werror_flag"
30878                          || test ! -s conftest.err'
30879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30880   (eval $ac_try) 2>&5
30881   ac_status=$?
30882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883   (exit $ac_status); }; } &&
30884          { ac_try='test -s conftest$ac_exeext'
30885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30886   (eval $ac_try) 2>&5
30887   ac_status=$?
30888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889   (exit $ac_status); }; }; then
30890   ol_cv_db_db2=yes
30891 else
30892   echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30894
30895 ol_cv_db_db2=no
30896 fi
30897 rm -f conftest.err conftest.$ac_objext \
30898       conftest$ac_exeext conftest.$ac_ext
30899
30900         LIBS="$ol_LIBS"
30901
30902 fi
30903 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30904 echo "${ECHO_T}$ol_cv_db_db2" >&6
30905
30906         if test $ol_cv_db_db2 = yes ; then
30907                 ol_cv_lib_db=-ldb2
30908         fi
30909 fi
30910
30911         if test $ol_cv_lib_db = no ; then
30912         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30913 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30914 if test "${ol_cv_db_db_2+set}" = set; then
30915   echo $ECHO_N "(cached) $ECHO_C" >&6
30916 else
30917
30918         ol_DB_LIB=-ldb-2
30919         ol_LIBS=$LIBS
30920         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30921
30922         cat >conftest.$ac_ext <<_ACEOF
30923 /* confdefs.h.  */
30924 _ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h.  */
30928
30929 #ifdef HAVE_DB_185_H
30930 # include <db_185.h>
30931 #else
30932 # include <db.h>
30933 #endif
30934
30935 #ifndef DB_VERSION_MAJOR
30936 # define DB_VERSION_MAJOR 1
30937 #endif
30938
30939 #ifndef NULL
30940 #define NULL ((void*)0)
30941 #endif
30942
30943 int
30944 main ()
30945 {
30946
30947 #if DB_VERSION_MAJOR > 1
30948         {
30949                 char *version;
30950                 int major, minor, patch;
30951
30952                 version = db_version( &major, &minor, &patch );
30953
30954                 if( major != DB_VERSION_MAJOR ||
30955                         minor < DB_VERSION_MINOR )
30956                 {
30957                         printf("Berkeley DB version mismatch\n"
30958                                 "\theader: %s\n\tlibrary: %s\n",
30959                                 DB_VERSION_STRING, version);
30960                         return 1;
30961                 }
30962         }
30963 #endif
30964
30965 #if DB_VERSION_MAJOR > 2
30966         db_env_create( NULL, 0 );
30967 #elif DB_VERSION_MAJOR > 1
30968         db_appexit( NULL );
30969 #else
30970         (void) dbopen( NULL, 0, 0, 0, NULL);
30971 #endif
30972
30973   ;
30974   return 0;
30975 }
30976 _ACEOF
30977 rm -f conftest.$ac_objext conftest$ac_exeext
30978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30979   (eval $ac_link) 2>conftest.er1
30980   ac_status=$?
30981   grep -v '^ *+' conftest.er1 >conftest.err
30982   rm -f conftest.er1
30983   cat conftest.err >&5
30984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985   (exit $ac_status); } &&
30986          { ac_try='test -z "$ac_c_werror_flag"
30987                          || test ! -s conftest.err'
30988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989   (eval $ac_try) 2>&5
30990   ac_status=$?
30991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992   (exit $ac_status); }; } &&
30993          { ac_try='test -s conftest$ac_exeext'
30994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30995   (eval $ac_try) 2>&5
30996   ac_status=$?
30997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998   (exit $ac_status); }; }; then
30999   ol_cv_db_db_2=yes
31000 else
31001   echo "$as_me: failed program was:" >&5
31002 sed 's/^/| /' conftest.$ac_ext >&5
31003
31004 ol_cv_db_db_2=no
31005 fi
31006 rm -f conftest.err conftest.$ac_objext \
31007       conftest$ac_exeext conftest.$ac_ext
31008
31009         LIBS="$ol_LIBS"
31010
31011 fi
31012 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
31013 echo "${ECHO_T}$ol_cv_db_db_2" >&6
31014
31015         if test $ol_cv_db_db_2 = yes ; then
31016                 ol_cv_lib_db=-ldb-2
31017         fi
31018 fi
31019
31020
31021 elif test $ol_cv_bdb_major = 1 ; then
31022         if test $ol_cv_lib_db = no ; then
31023         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
31024 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
31025 if test "${ol_cv_db_db1+set}" = set; then
31026   echo $ECHO_N "(cached) $ECHO_C" >&6
31027 else
31028
31029         ol_DB_LIB=-ldb1
31030         ol_LIBS=$LIBS
31031         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31032
31033         cat >conftest.$ac_ext <<_ACEOF
31034 /* confdefs.h.  */
31035 _ACEOF
31036 cat confdefs.h >>conftest.$ac_ext
31037 cat >>conftest.$ac_ext <<_ACEOF
31038 /* end confdefs.h.  */
31039
31040 #ifdef HAVE_DB_185_H
31041 # include <db_185.h>
31042 #else
31043 # include <db.h>
31044 #endif
31045
31046 #ifndef DB_VERSION_MAJOR
31047 # define DB_VERSION_MAJOR 1
31048 #endif
31049
31050 #ifndef NULL
31051 #define NULL ((void*)0)
31052 #endif
31053
31054 int
31055 main ()
31056 {
31057
31058 #if DB_VERSION_MAJOR > 1
31059         {
31060                 char *version;
31061                 int major, minor, patch;
31062
31063                 version = db_version( &major, &minor, &patch );
31064
31065                 if( major != DB_VERSION_MAJOR ||
31066                         minor < DB_VERSION_MINOR )
31067                 {
31068                         printf("Berkeley DB version mismatch\n"
31069                                 "\theader: %s\n\tlibrary: %s\n",
31070                                 DB_VERSION_STRING, version);
31071                         return 1;
31072                 }
31073         }
31074 #endif
31075
31076 #if DB_VERSION_MAJOR > 2
31077         db_env_create( NULL, 0 );
31078 #elif DB_VERSION_MAJOR > 1
31079         db_appexit( NULL );
31080 #else
31081         (void) dbopen( NULL, 0, 0, 0, NULL);
31082 #endif
31083
31084   ;
31085   return 0;
31086 }
31087 _ACEOF
31088 rm -f conftest.$ac_objext conftest$ac_exeext
31089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31090   (eval $ac_link) 2>conftest.er1
31091   ac_status=$?
31092   grep -v '^ *+' conftest.er1 >conftest.err
31093   rm -f conftest.er1
31094   cat conftest.err >&5
31095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096   (exit $ac_status); } &&
31097          { ac_try='test -z "$ac_c_werror_flag"
31098                          || test ! -s conftest.err'
31099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31100   (eval $ac_try) 2>&5
31101   ac_status=$?
31102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103   (exit $ac_status); }; } &&
31104          { ac_try='test -s conftest$ac_exeext'
31105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31106   (eval $ac_try) 2>&5
31107   ac_status=$?
31108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109   (exit $ac_status); }; }; then
31110   ol_cv_db_db1=yes
31111 else
31112   echo "$as_me: failed program was:" >&5
31113 sed 's/^/| /' conftest.$ac_ext >&5
31114
31115 ol_cv_db_db1=no
31116 fi
31117 rm -f conftest.err conftest.$ac_objext \
31118       conftest$ac_exeext conftest.$ac_ext
31119
31120         LIBS="$ol_LIBS"
31121
31122 fi
31123 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31124 echo "${ECHO_T}$ol_cv_db_db1" >&6
31125
31126         if test $ol_cv_db_db1 = yes ; then
31127                 ol_cv_lib_db=-ldb1
31128         fi
31129 fi
31130
31131         if test $ol_cv_lib_db = no ; then
31132         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31133 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31134 if test "${ol_cv_db_db_1+set}" = set; then
31135   echo $ECHO_N "(cached) $ECHO_C" >&6
31136 else
31137
31138         ol_DB_LIB=-ldb-1
31139         ol_LIBS=$LIBS
31140         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31141
31142         cat >conftest.$ac_ext <<_ACEOF
31143 /* confdefs.h.  */
31144 _ACEOF
31145 cat confdefs.h >>conftest.$ac_ext
31146 cat >>conftest.$ac_ext <<_ACEOF
31147 /* end confdefs.h.  */
31148
31149 #ifdef HAVE_DB_185_H
31150 # include <db_185.h>
31151 #else
31152 # include <db.h>
31153 #endif
31154
31155 #ifndef DB_VERSION_MAJOR
31156 # define DB_VERSION_MAJOR 1
31157 #endif
31158
31159 #ifndef NULL
31160 #define NULL ((void*)0)
31161 #endif
31162
31163 int
31164 main ()
31165 {
31166
31167 #if DB_VERSION_MAJOR > 1
31168         {
31169                 char *version;
31170                 int major, minor, patch;
31171
31172                 version = db_version( &major, &minor, &patch );
31173
31174                 if( major != DB_VERSION_MAJOR ||
31175                         minor < DB_VERSION_MINOR )
31176                 {
31177                         printf("Berkeley DB version mismatch\n"
31178                                 "\theader: %s\n\tlibrary: %s\n",
31179                                 DB_VERSION_STRING, version);
31180                         return 1;
31181                 }
31182         }
31183 #endif
31184
31185 #if DB_VERSION_MAJOR > 2
31186         db_env_create( NULL, 0 );
31187 #elif DB_VERSION_MAJOR > 1
31188         db_appexit( NULL );
31189 #else
31190         (void) dbopen( NULL, 0, 0, 0, NULL);
31191 #endif
31192
31193   ;
31194   return 0;
31195 }
31196 _ACEOF
31197 rm -f conftest.$ac_objext conftest$ac_exeext
31198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31199   (eval $ac_link) 2>conftest.er1
31200   ac_status=$?
31201   grep -v '^ *+' conftest.er1 >conftest.err
31202   rm -f conftest.er1
31203   cat conftest.err >&5
31204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); } &&
31206          { ac_try='test -z "$ac_c_werror_flag"
31207                          || test ! -s conftest.err'
31208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209   (eval $ac_try) 2>&5
31210   ac_status=$?
31211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212   (exit $ac_status); }; } &&
31213          { ac_try='test -s conftest$ac_exeext'
31214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215   (eval $ac_try) 2>&5
31216   ac_status=$?
31217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218   (exit $ac_status); }; }; then
31219   ol_cv_db_db_1=yes
31220 else
31221   echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31223
31224 ol_cv_db_db_1=no
31225 fi
31226 rm -f conftest.err conftest.$ac_objext \
31227       conftest$ac_exeext conftest.$ac_ext
31228
31229         LIBS="$ol_LIBS"
31230
31231 fi
31232 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31233 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31234
31235         if test $ol_cv_db_db_1 = yes ; then
31236                 ol_cv_lib_db=-ldb-1
31237         fi
31238 fi
31239
31240 fi
31241 if test $ol_cv_lib_db = no ; then
31242         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31243 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31244 if test "${ol_cv_db_none+set}" = set; then
31245   echo $ECHO_N "(cached) $ECHO_C" >&6
31246 else
31247
31248         ol_DB_LIB=
31249         ol_LIBS=$LIBS
31250         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31251
31252         cat >conftest.$ac_ext <<_ACEOF
31253 /* confdefs.h.  */
31254 _ACEOF
31255 cat confdefs.h >>conftest.$ac_ext
31256 cat >>conftest.$ac_ext <<_ACEOF
31257 /* end confdefs.h.  */
31258
31259 #ifdef HAVE_DB_185_H
31260 # include <db_185.h>
31261 #else
31262 # include <db.h>
31263 #endif
31264
31265 #ifndef DB_VERSION_MAJOR
31266 # define DB_VERSION_MAJOR 1
31267 #endif
31268
31269 #ifndef NULL
31270 #define NULL ((void*)0)
31271 #endif
31272
31273 int
31274 main ()
31275 {
31276
31277 #if DB_VERSION_MAJOR > 1
31278         {
31279                 char *version;
31280                 int major, minor, patch;
31281
31282                 version = db_version( &major, &minor, &patch );
31283
31284                 if( major != DB_VERSION_MAJOR ||
31285                         minor < DB_VERSION_MINOR )
31286                 {
31287                         printf("Berkeley DB version mismatch\n"
31288                                 "\theader: %s\n\tlibrary: %s\n",
31289                                 DB_VERSION_STRING, version);
31290                         return 1;
31291                 }
31292         }
31293 #endif
31294
31295 #if DB_VERSION_MAJOR > 2
31296         db_env_create( NULL, 0 );
31297 #elif DB_VERSION_MAJOR > 1
31298         db_appexit( NULL );
31299 #else
31300         (void) dbopen( NULL, 0, 0, 0, NULL);
31301 #endif
31302
31303   ;
31304   return 0;
31305 }
31306 _ACEOF
31307 rm -f conftest.$ac_objext conftest$ac_exeext
31308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31309   (eval $ac_link) 2>conftest.er1
31310   ac_status=$?
31311   grep -v '^ *+' conftest.er1 >conftest.err
31312   rm -f conftest.er1
31313   cat conftest.err >&5
31314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315   (exit $ac_status); } &&
31316          { ac_try='test -z "$ac_c_werror_flag"
31317                          || test ! -s conftest.err'
31318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319   (eval $ac_try) 2>&5
31320   ac_status=$?
31321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322   (exit $ac_status); }; } &&
31323          { ac_try='test -s conftest$ac_exeext'
31324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31325   (eval $ac_try) 2>&5
31326   ac_status=$?
31327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328   (exit $ac_status); }; }; then
31329   ol_cv_db_none=yes
31330 else
31331   echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31333
31334 ol_cv_db_none=no
31335 fi
31336 rm -f conftest.err conftest.$ac_objext \
31337       conftest$ac_exeext conftest.$ac_ext
31338
31339         LIBS="$ol_LIBS"
31340
31341 fi
31342 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31343 echo "${ECHO_T}$ol_cv_db_none" >&6
31344
31345         if test $ol_cv_db_none = yes ; then
31346                 ol_cv_lib_db=yes
31347         fi
31348 fi
31349
31350
31351         if test "$ol_cv_lib_db" != no ; then
31352                 ol_cv_berkeley_db=yes
31353                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31354 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31355 if test "${ol_cv_berkeley_db_version+set}" = set; then
31356   echo $ECHO_N "(cached) $ECHO_C" >&6
31357 else
31358
31359         ol_LIBS="$LIBS"
31360         LIBS="$LTHREAD_LIBS $LIBS"
31361         if test $ol_cv_lib_db != yes ; then
31362                 LIBS="$ol_cv_lib_db $LIBS"
31363         fi
31364
31365         if test "$cross_compiling" = yes; then
31366   ol_cv_berkeley_db_version=cross
31367 else
31368   cat >conftest.$ac_ext <<_ACEOF
31369 /* confdefs.h.  */
31370 _ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h.  */
31374
31375 #ifdef HAVE_DB_185_H
31376         choke me;
31377 #else
31378 #include <db.h>
31379 #endif
31380 #ifndef DB_VERSION_MAJOR
31381 # define DB_VERSION_MAJOR 1
31382 #endif
31383 #ifndef NULL
31384 #define NULL ((void *)0)
31385 #endif
31386 main()
31387 {
31388 #if DB_VERSION_MAJOR > 1
31389         char *version;
31390         int major, minor, patch;
31391
31392         version = db_version( &major, &minor, &patch );
31393
31394         if( major != DB_VERSION_MAJOR ||
31395                 minor != DB_VERSION_MINOR ||
31396                 patch != DB_VERSION_PATCH )
31397         {
31398                 printf("Berkeley DB version mismatch\n"
31399                         "\theader: %s\n\tlibrary: %s\n",
31400                         DB_VERSION_STRING, version);
31401                 return 1;
31402         }
31403 #endif
31404
31405         return 0;
31406 }
31407 _ACEOF
31408 rm -f conftest$ac_exeext
31409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31410   (eval $ac_link) 2>&5
31411   ac_status=$?
31412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31415   (eval $ac_try) 2>&5
31416   ac_status=$?
31417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418   (exit $ac_status); }; }; then
31419   ol_cv_berkeley_db_version=yes
31420 else
31421   echo "$as_me: program exited with status $ac_status" >&5
31422 echo "$as_me: failed program was:" >&5
31423 sed 's/^/| /' conftest.$ac_ext >&5
31424
31425 ( exit $ac_status )
31426 ol_cv_berkeley_db_version=no
31427 fi
31428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31429 fi
31430
31431         LIBS="$ol_LIBS"
31432
31433 fi
31434 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31435 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31436
31437         if test $ol_cv_berkeley_db_version = no ; then
31438                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31439 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31440    { (exit 1); exit 1; }; }
31441         fi
31442
31443                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31444 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31445 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31446   echo $ECHO_N "(cached) $ECHO_C" >&6
31447 else
31448
31449         ol_LIBS="$LIBS"
31450         LIBS="$LTHREAD_LIBS $LIBS"
31451         if test $ol_cv_lib_db != yes ; then
31452                 LIBS="$ol_cv_lib_db $LIBS"
31453         fi
31454
31455         if test "$cross_compiling" = yes; then
31456   ol_cv_berkeley_db_thread=cross
31457 else
31458   cat >conftest.$ac_ext <<_ACEOF
31459 /* confdefs.h.  */
31460 _ACEOF
31461 cat confdefs.h >>conftest.$ac_ext
31462 cat >>conftest.$ac_ext <<_ACEOF
31463 /* end confdefs.h.  */
31464
31465 #ifdef HAVE_DB_185_H
31466         choke me;
31467 #else
31468 #include <db.h>
31469 #endif
31470 #ifndef NULL
31471 #define NULL ((void *)0)
31472 #endif
31473 main()
31474 {
31475         int rc;
31476         u_int32_t flags = DB_CREATE |
31477 #ifdef DB_PRIVATE
31478                 DB_PRIVATE |
31479 #endif
31480                 DB_THREAD;
31481
31482 #if DB_VERSION_MAJOR > 2
31483         DB_ENV *env = NULL;
31484
31485         rc = db_env_create( &env, 0 );
31486
31487         flags |= DB_INIT_MPOOL;
31488 #ifdef DB_MPOOL_PRIVATE
31489         flags |= DB_MPOOL_PRIVATE;
31490 #endif
31491
31492         if( rc ) {
31493                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31494                 return rc;
31495         }
31496
31497 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31498         rc = env->open( env, NULL, flags, 0 );
31499 #else
31500         rc = env->open( env, NULL, NULL, flags, 0 );
31501 #endif
31502
31503         if ( rc == 0 ) {
31504                 rc = env->close( env, 0 );
31505         }
31506
31507         if( rc ) {
31508                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31509                 return rc;
31510         }
31511
31512 #else
31513         DB_ENV env;
31514         memset( &env, '\0', sizeof(env) );
31515
31516         rc = db_appinit( NULL, NULL, &env, flags );
31517
31518         if( rc == 0 ) {
31519                 db_appexit( &env );
31520         }
31521
31522         unlink("__db_mpool.share");
31523         unlink("__db_lock.share");
31524 #endif
31525
31526         return rc;
31527 }
31528 _ACEOF
31529 rm -f conftest$ac_exeext
31530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31531   (eval $ac_link) 2>&5
31532   ac_status=$?
31533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536   (eval $ac_try) 2>&5
31537   ac_status=$?
31538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539   (exit $ac_status); }; }; then
31540   ol_cv_berkeley_db_thread=yes
31541 else
31542   echo "$as_me: program exited with status $ac_status" >&5
31543 echo "$as_me: failed program was:" >&5
31544 sed 's/^/| /' conftest.$ac_ext >&5
31545
31546 ( exit $ac_status )
31547 ol_cv_berkeley_db_thread=no
31548 fi
31549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31550 fi
31551
31552         LIBS="$ol_LIBS"
31553
31554 fi
31555 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31556 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31557
31558         if test $ol_cv_berkeley_db_thread != no ; then
31559
31560 cat >>confdefs.h <<\_ACEOF
31561 #define HAVE_BERKELEY_DB_THREAD 1
31562 _ACEOF
31563
31564         fi
31565
31566         fi
31567 fi
31568
31569
31570         if test $ol_cv_berkeley_db = no ; then
31571                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31572 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31573    { (exit 1); exit 1; }; }
31574         fi
31575
31576
31577 cat >>confdefs.h <<\_ACEOF
31578 #define HAVE_BERKELEY_DB 1
31579 _ACEOF
31580
31581
31582                         if test $ol_cv_lib_db != yes ; then
31583                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31584         fi
31585
31586         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31587 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31588 if test "${ol_cv_bdb_compat+set}" = set; then
31589   echo $ECHO_N "(cached) $ECHO_C" >&6
31590 else
31591
31592         cat >conftest.$ac_ext <<_ACEOF
31593 /* confdefs.h.  */
31594 _ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h.  */
31598
31599 #include <db.h>
31600
31601  /* this check could be improved */
31602 #ifndef DB_VERSION_MAJOR
31603 #       define DB_VERSION_MAJOR 1
31604 #endif
31605 #ifndef DB_VERSION_MINOR
31606 #       define DB_VERSION_MINOR 0
31607 #endif
31608
31609 /* require 4.2 or later */
31610 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
31611         __db_version_compat
31612 #endif
31613
31614 _ACEOF
31615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31616   $EGREP "__db_version_compat" >/dev/null 2>&1; then
31617   ol_cv_bdb_compat=yes
31618 else
31619   ol_cv_bdb_compat=no
31620 fi
31621 rm -f conftest*
31622
31623 fi
31624 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31625 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31626
31627
31628         if test $ol_cv_bdb_compat != yes ; then
31629                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31630 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31631    { (exit 1); exit 1; }; }
31632         fi
31633
31634         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31635
31636         ol_link_bdb=yes
31637 fi
31638
31639
31640 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31641         BUILD_LIBS_DYNAMIC=shared
31642
31643 cat >>confdefs.h <<\_ACEOF
31644 #define LDAP_LIBS_DYNAMIC 1
31645 _ACEOF
31646
31647         LTSTATIC=""
31648 else
31649         BUILD_LIBS_DYNAMIC=static
31650         LTSTATIC="-static"
31651 fi
31652
31653 if test $ol_enable_wrappers != no ; then
31654
31655 for ac_header in tcpd.h
31656 do
31657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31659   echo "$as_me:$LINENO: checking for $ac_header" >&5
31660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31662   echo $ECHO_N "(cached) $ECHO_C" >&6
31663 fi
31664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31666 else
31667   # Is the header compilable?
31668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31670 cat >conftest.$ac_ext <<_ACEOF
31671 /* confdefs.h.  */
31672 _ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h.  */
31676 $ac_includes_default
31677 #include <$ac_header>
31678 _ACEOF
31679 rm -f conftest.$ac_objext
31680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31681   (eval $ac_compile) 2>conftest.er1
31682   ac_status=$?
31683   grep -v '^ *+' conftest.er1 >conftest.err
31684   rm -f conftest.er1
31685   cat conftest.err >&5
31686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687   (exit $ac_status); } &&
31688          { ac_try='test -z "$ac_c_werror_flag"
31689                          || test ! -s conftest.err'
31690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31691   (eval $ac_try) 2>&5
31692   ac_status=$?
31693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694   (exit $ac_status); }; } &&
31695          { ac_try='test -s conftest.$ac_objext'
31696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31697   (eval $ac_try) 2>&5
31698   ac_status=$?
31699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700   (exit $ac_status); }; }; then
31701   ac_header_compiler=yes
31702 else
31703   echo "$as_me: failed program was:" >&5
31704 sed 's/^/| /' conftest.$ac_ext >&5
31705
31706 ac_header_compiler=no
31707 fi
31708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31710 echo "${ECHO_T}$ac_header_compiler" >&6
31711
31712 # Is the header present?
31713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31715 cat >conftest.$ac_ext <<_ACEOF
31716 /* confdefs.h.  */
31717 _ACEOF
31718 cat confdefs.h >>conftest.$ac_ext
31719 cat >>conftest.$ac_ext <<_ACEOF
31720 /* end confdefs.h.  */
31721 #include <$ac_header>
31722 _ACEOF
31723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31725   ac_status=$?
31726   grep -v '^ *+' conftest.er1 >conftest.err
31727   rm -f conftest.er1
31728   cat conftest.err >&5
31729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730   (exit $ac_status); } >/dev/null; then
31731   if test -s conftest.err; then
31732     ac_cpp_err=$ac_c_preproc_warn_flag
31733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31734   else
31735     ac_cpp_err=
31736   fi
31737 else
31738   ac_cpp_err=yes
31739 fi
31740 if test -z "$ac_cpp_err"; then
31741   ac_header_preproc=yes
31742 else
31743   echo "$as_me: failed program was:" >&5
31744 sed 's/^/| /' conftest.$ac_ext >&5
31745
31746   ac_header_preproc=no
31747 fi
31748 rm -f conftest.err conftest.$ac_ext
31749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31750 echo "${ECHO_T}$ac_header_preproc" >&6
31751
31752 # So?  What about this header?
31753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31754   yes:no: )
31755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31759     ac_header_preproc=yes
31760     ;;
31761   no:yes:* )
31762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31774     (
31775       cat <<\_ASBOX
31776 ## --------------------------------------------- ##
31777 ## Report this to <http://www.openldap.org/its/> ##
31778 ## --------------------------------------------- ##
31779 _ASBOX
31780     ) |
31781       sed "s/^/$as_me: WARNING:     /" >&2
31782     ;;
31783 esac
31784 echo "$as_me:$LINENO: checking for $ac_header" >&5
31785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31787   echo $ECHO_N "(cached) $ECHO_C" >&6
31788 else
31789   eval "$as_ac_Header=\$ac_header_preproc"
31790 fi
31791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31793
31794 fi
31795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31796   cat >>confdefs.h <<_ACEOF
31797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31798 _ACEOF
31799
31800                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31801 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31802                 save_LIBS="$LIBS"
31803                 LIBS="$LIBS -lwrap"
31804                 cat >conftest.$ac_ext <<_ACEOF
31805 /* confdefs.h.  */
31806 _ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h.  */
31810
31811 #include <tcpd.h>
31812 int allow_severity = 0;
31813 int deny_severity  = 0;
31814
31815 struct request_info *req;
31816
31817 int
31818 main ()
31819 {
31820
31821 hosts_access(req)
31822
31823   ;
31824   return 0;
31825 }
31826 _ACEOF
31827 rm -f conftest.$ac_objext conftest$ac_exeext
31828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31829   (eval $ac_link) 2>conftest.er1
31830   ac_status=$?
31831   grep -v '^ *+' conftest.er1 >conftest.err
31832   rm -f conftest.er1
31833   cat conftest.err >&5
31834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835   (exit $ac_status); } &&
31836          { ac_try='test -z "$ac_c_werror_flag"
31837                          || test ! -s conftest.err'
31838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31839   (eval $ac_try) 2>&5
31840   ac_status=$?
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); }; } &&
31843          { ac_try='test -s conftest$ac_exeext'
31844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31845   (eval $ac_try) 2>&5
31846   ac_status=$?
31847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848   (exit $ac_status); }; }; then
31849   echo "$as_me:$LINENO: result: -lwrap" >&5
31850 echo "${ECHO_T}-lwrap" >&6
31851                 have_wrappers=yes
31852                 LIBS="$save_LIBS"
31853 else
31854   echo "$as_me: failed program was:" >&5
31855 sed 's/^/| /' conftest.$ac_ext >&5
31856
31857
31858                                 LIBS="$LIBS -lnsl"
31859                 cat >conftest.$ac_ext <<_ACEOF
31860 /* confdefs.h.  */
31861 _ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h.  */
31865
31866 #include <tcpd.h>
31867 int allow_severity = 0;
31868 int deny_severity  = 0;
31869
31870 struct request_info *req;
31871
31872 int
31873 main ()
31874 {
31875
31876 hosts_access(req)
31877
31878   ;
31879   return 0;
31880 }
31881 _ACEOF
31882 rm -f conftest.$ac_objext conftest$ac_exeext
31883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31884   (eval $ac_link) 2>conftest.er1
31885   ac_status=$?
31886   grep -v '^ *+' conftest.er1 >conftest.err
31887   rm -f conftest.er1
31888   cat conftest.err >&5
31889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890   (exit $ac_status); } &&
31891          { ac_try='test -z "$ac_c_werror_flag"
31892                          || test ! -s conftest.err'
31893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894   (eval $ac_try) 2>&5
31895   ac_status=$?
31896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897   (exit $ac_status); }; } &&
31898          { ac_try='test -s conftest$ac_exeext'
31899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900   (eval $ac_try) 2>&5
31901   ac_status=$?
31902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903   (exit $ac_status); }; }; then
31904   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31905 echo "${ECHO_T}-lwrap -lnsl" >&6
31906                 have_wrappers=yes
31907                 LIBS="$save_LIBS -lnsl"
31908 else
31909   echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31911
31912
31913                 echo "$as_me:$LINENO: result: no" >&5
31914 echo "${ECHO_T}no" >&6
31915                 have_wrappers=no
31916                 LIBS=$save_LIBS
31917 fi
31918 rm -f conftest.err conftest.$ac_objext \
31919       conftest$ac_exeext conftest.$ac_ext
31920 fi
31921 rm -f conftest.err conftest.$ac_objext \
31922       conftest$ac_exeext conftest.$ac_ext
31923 else
31924   have_wrappers=no
31925 fi
31926
31927 done
31928
31929
31930         if test $have_wrappers = yes ; then
31931
31932 cat >>confdefs.h <<\_ACEOF
31933 #define HAVE_TCPD 1
31934 _ACEOF
31935
31936                 WRAP_LIBS="-lwrap"
31937         elif test $ol_enable_wrappers = yes ; then
31938                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31939 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31940    { (exit 1); exit 1; }; }
31941         else
31942                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31943 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31944                 WRAP_LIBS=""
31945         fi
31946 fi
31947
31948 if test $ol_enable_syslog != no ; then
31949         echo "$as_me:$LINENO: checking for openlog" >&5
31950 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31951 if test "${ac_cv_func_openlog+set}" = set; then
31952   echo $ECHO_N "(cached) $ECHO_C" >&6
31953 else
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 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31962 #define openlog innocuous_openlog
31963
31964 /* System header to define __stub macros and hopefully few prototypes,
31965     which can conflict with char openlog (); below.
31966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31967     <limits.h> exists even on freestanding compilers.  */
31968
31969 #ifdef __STDC__
31970 # include <limits.h>
31971 #else
31972 # include <assert.h>
31973 #endif
31974
31975 #undef openlog
31976
31977 /* Override any gcc2 internal prototype to avoid an error.  */
31978 #ifdef __cplusplus
31979 extern "C"
31980 {
31981 #endif
31982 /* We use char because int might match the return type of a gcc2
31983    builtin and then its argument prototype would still apply.  */
31984 char openlog ();
31985 /* The GNU C library defines this for functions which it implements
31986     to always fail with ENOSYS.  Some functions are actually named
31987     something starting with __ and the normal name is an alias.  */
31988 #if defined (__stub_openlog) || defined (__stub___openlog)
31989 choke me
31990 #else
31991 char (*f) () = openlog;
31992 #endif
31993 #ifdef __cplusplus
31994 }
31995 #endif
31996
31997 int
31998 main ()
31999 {
32000 return f != openlog;
32001   ;
32002   return 0;
32003 }
32004 _ACEOF
32005 rm -f conftest.$ac_objext conftest$ac_exeext
32006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32007   (eval $ac_link) 2>conftest.er1
32008   ac_status=$?
32009   grep -v '^ *+' conftest.er1 >conftest.err
32010   rm -f conftest.er1
32011   cat conftest.err >&5
32012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013   (exit $ac_status); } &&
32014          { ac_try='test -z "$ac_c_werror_flag"
32015                          || test ! -s conftest.err'
32016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32017   (eval $ac_try) 2>&5
32018   ac_status=$?
32019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020   (exit $ac_status); }; } &&
32021          { ac_try='test -s conftest$ac_exeext'
32022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32023   (eval $ac_try) 2>&5
32024   ac_status=$?
32025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026   (exit $ac_status); }; }; then
32027   ac_cv_func_openlog=yes
32028 else
32029   echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.$ac_ext >&5
32031
32032 ac_cv_func_openlog=no
32033 fi
32034 rm -f conftest.err conftest.$ac_objext \
32035       conftest$ac_exeext conftest.$ac_ext
32036 fi
32037 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
32038 echo "${ECHO_T}$ac_cv_func_openlog" >&6
32039
32040         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
32041                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
32042 echo "$as_me: error: could not find syslog" >&2;}
32043    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
32044         fi
32045         ol_enable_syslog=$ac_cv_func_openlog
32046 fi
32047
32048 ol_link_sql=no
32049 if test $ol_enable_sql != no ; then
32050
32051
32052 for ac_header in sql.h sqlext.h
32053 do
32054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32056   echo "$as_me:$LINENO: checking for $ac_header" >&5
32057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32059   echo $ECHO_N "(cached) $ECHO_C" >&6
32060 fi
32061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32063 else
32064   # Is the header compilable?
32065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32067 cat >conftest.$ac_ext <<_ACEOF
32068 /* confdefs.h.  */
32069 _ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h.  */
32073 $ac_includes_default
32074 #include <$ac_header>
32075 _ACEOF
32076 rm -f conftest.$ac_objext
32077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32078   (eval $ac_compile) 2>conftest.er1
32079   ac_status=$?
32080   grep -v '^ *+' conftest.er1 >conftest.err
32081   rm -f conftest.er1
32082   cat conftest.err >&5
32083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084   (exit $ac_status); } &&
32085          { ac_try='test -z "$ac_c_werror_flag"
32086                          || test ! -s conftest.err'
32087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32088   (eval $ac_try) 2>&5
32089   ac_status=$?
32090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091   (exit $ac_status); }; } &&
32092          { ac_try='test -s conftest.$ac_objext'
32093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32094   (eval $ac_try) 2>&5
32095   ac_status=$?
32096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097   (exit $ac_status); }; }; then
32098   ac_header_compiler=yes
32099 else
32100   echo "$as_me: failed program was:" >&5
32101 sed 's/^/| /' conftest.$ac_ext >&5
32102
32103 ac_header_compiler=no
32104 fi
32105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32107 echo "${ECHO_T}$ac_header_compiler" >&6
32108
32109 # Is the header present?
32110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32112 cat >conftest.$ac_ext <<_ACEOF
32113 /* confdefs.h.  */
32114 _ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h.  */
32118 #include <$ac_header>
32119 _ACEOF
32120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32122   ac_status=$?
32123   grep -v '^ *+' conftest.er1 >conftest.err
32124   rm -f conftest.er1
32125   cat conftest.err >&5
32126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127   (exit $ac_status); } >/dev/null; then
32128   if test -s conftest.err; then
32129     ac_cpp_err=$ac_c_preproc_warn_flag
32130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32131   else
32132     ac_cpp_err=
32133   fi
32134 else
32135   ac_cpp_err=yes
32136 fi
32137 if test -z "$ac_cpp_err"; then
32138   ac_header_preproc=yes
32139 else
32140   echo "$as_me: failed program was:" >&5
32141 sed 's/^/| /' conftest.$ac_ext >&5
32142
32143   ac_header_preproc=no
32144 fi
32145 rm -f conftest.err conftest.$ac_ext
32146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32147 echo "${ECHO_T}$ac_header_preproc" >&6
32148
32149 # So?  What about this header?
32150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32151   yes:no: )
32152     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32156     ac_header_preproc=yes
32157     ;;
32158   no:yes:* )
32159     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32161     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32162 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32163     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32165     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32166 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32169     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32171     (
32172       cat <<\_ASBOX
32173 ## --------------------------------------------- ##
32174 ## Report this to <http://www.openldap.org/its/> ##
32175 ## --------------------------------------------- ##
32176 _ASBOX
32177     ) |
32178       sed "s/^/$as_me: WARNING:     /" >&2
32179     ;;
32180 esac
32181 echo "$as_me:$LINENO: checking for $ac_header" >&5
32182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32184   echo $ECHO_N "(cached) $ECHO_C" >&6
32185 else
32186   eval "$as_ac_Header=\$ac_header_preproc"
32187 fi
32188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32190
32191 fi
32192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32193   cat >>confdefs.h <<_ACEOF
32194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32195 _ACEOF
32196
32197 else
32198
32199                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
32200 echo "$as_me: error: could not locate SQL headers" >&2;}
32201    { (exit 1); exit 1; }; }
32202
32203 fi
32204
32205 done
32206
32207
32208         sql_LIBS="$LIBS"
32209         LIBS="$LTHREAD_LIBS"
32210
32211         if test $ol_with_odbc = auto ; then
32212                 ol_with_odbc="iodbc unixodbc"
32213         fi
32214
32215         for odbc in $ol_with_odbc ; do
32216                 if test $ol_link_sql = no ; then
32217                         case $odbc in
32218                         iodbc)
32219                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
32220 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
32221 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
32222   echo $ECHO_N "(cached) $ECHO_C" >&6
32223 else
32224   ac_check_lib_save_LIBS=$LIBS
32225 LIBS="-liodbc  $LIBS"
32226 cat >conftest.$ac_ext <<_ACEOF
32227 /* confdefs.h.  */
32228 _ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h.  */
32232
32233 /* Override any gcc2 internal prototype to avoid an error.  */
32234 #ifdef __cplusplus
32235 extern "C"
32236 #endif
32237 /* We use char because int might match the return type of a gcc2
32238    builtin and then its argument prototype would still apply.  */
32239 char SQLDriverConnect ();
32240 int
32241 main ()
32242 {
32243 SQLDriverConnect ();
32244   ;
32245   return 0;
32246 }
32247 _ACEOF
32248 rm -f conftest.$ac_objext conftest$ac_exeext
32249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32250   (eval $ac_link) 2>conftest.er1
32251   ac_status=$?
32252   grep -v '^ *+' conftest.er1 >conftest.err
32253   rm -f conftest.er1
32254   cat conftest.err >&5
32255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256   (exit $ac_status); } &&
32257          { ac_try='test -z "$ac_c_werror_flag"
32258                          || test ! -s conftest.err'
32259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260   (eval $ac_try) 2>&5
32261   ac_status=$?
32262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263   (exit $ac_status); }; } &&
32264          { ac_try='test -s conftest$ac_exeext'
32265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266   (eval $ac_try) 2>&5
32267   ac_status=$?
32268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269   (exit $ac_status); }; }; then
32270   ac_cv_lib_iodbc_SQLDriverConnect=yes
32271 else
32272   echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32274
32275 ac_cv_lib_iodbc_SQLDriverConnect=no
32276 fi
32277 rm -f conftest.err conftest.$ac_objext \
32278       conftest$ac_exeext conftest.$ac_ext
32279 LIBS=$ac_check_lib_save_LIBS
32280 fi
32281 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
32282 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
32283 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
32284   have_iodbc=yes
32285 else
32286   have_iodbc=no
32287 fi
32288
32289                                 if test $have_iodbc = yes ; then
32290                                         ol_link_sql="-liodbc"
32291                                 fi
32292                                 ;;
32293
32294                         unixodbc)
32295                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
32296 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
32297 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
32298   echo $ECHO_N "(cached) $ECHO_C" >&6
32299 else
32300   ac_check_lib_save_LIBS=$LIBS
32301 LIBS="-lodbc  $LIBS"
32302 cat >conftest.$ac_ext <<_ACEOF
32303 /* confdefs.h.  */
32304 _ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h.  */
32308
32309 /* Override any gcc2 internal prototype to avoid an error.  */
32310 #ifdef __cplusplus
32311 extern "C"
32312 #endif
32313 /* We use char because int might match the return type of a gcc2
32314    builtin and then its argument prototype would still apply.  */
32315 char SQLDriverConnect ();
32316 int
32317 main ()
32318 {
32319 SQLDriverConnect ();
32320   ;
32321   return 0;
32322 }
32323 _ACEOF
32324 rm -f conftest.$ac_objext conftest$ac_exeext
32325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32326   (eval $ac_link) 2>conftest.er1
32327   ac_status=$?
32328   grep -v '^ *+' conftest.er1 >conftest.err
32329   rm -f conftest.er1
32330   cat conftest.err >&5
32331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332   (exit $ac_status); } &&
32333          { ac_try='test -z "$ac_c_werror_flag"
32334                          || test ! -s conftest.err'
32335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32336   (eval $ac_try) 2>&5
32337   ac_status=$?
32338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339   (exit $ac_status); }; } &&
32340          { ac_try='test -s conftest$ac_exeext'
32341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32342   (eval $ac_try) 2>&5
32343   ac_status=$?
32344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345   (exit $ac_status); }; }; then
32346   ac_cv_lib_odbc_SQLDriverConnect=yes
32347 else
32348   echo "$as_me: failed program was:" >&5
32349 sed 's/^/| /' conftest.$ac_ext >&5
32350
32351 ac_cv_lib_odbc_SQLDriverConnect=no
32352 fi
32353 rm -f conftest.err conftest.$ac_objext \
32354       conftest$ac_exeext conftest.$ac_ext
32355 LIBS=$ac_check_lib_save_LIBS
32356 fi
32357 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32358 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32359 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32360   have_odbc=yes
32361 else
32362   have_odbc=no
32363 fi
32364
32365                                 if test $have_odbc = yes ; then
32366                                         ol_link_sql="-lodbc"
32367                                 fi
32368                                 ;;
32369
32370                         *)
32371                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32372 echo "$as_me: error: unknown ODBC library" >&2;}
32373    { (exit 1); exit 1; }; }
32374                                 ;;
32375                         esac
32376                 fi
32377         done
32378
32379         LIBS="$sql_LIBS"
32380
32381         if test $ol_link_sql != no ; then
32382                 SLAPD_SQL_LIBS="$ol_link_sql"
32383
32384         elif test $ol_enable_sql != auto ; then
32385                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32386 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32387    { (exit 1); exit 1; }; }
32388         fi
32389 fi
32390
32391 ol_icu=no
32392
32393 for ac_header in unicode/utypes.h
32394 do
32395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32397   echo "$as_me:$LINENO: checking for $ac_header" >&5
32398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32400   echo $ECHO_N "(cached) $ECHO_C" >&6
32401 fi
32402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32404 else
32405   # Is the header compilable?
32406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32408 cat >conftest.$ac_ext <<_ACEOF
32409 /* confdefs.h.  */
32410 _ACEOF
32411 cat confdefs.h >>conftest.$ac_ext
32412 cat >>conftest.$ac_ext <<_ACEOF
32413 /* end confdefs.h.  */
32414 $ac_includes_default
32415 #include <$ac_header>
32416 _ACEOF
32417 rm -f conftest.$ac_objext
32418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32419   (eval $ac_compile) 2>conftest.er1
32420   ac_status=$?
32421   grep -v '^ *+' conftest.er1 >conftest.err
32422   rm -f conftest.er1
32423   cat conftest.err >&5
32424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425   (exit $ac_status); } &&
32426          { ac_try='test -z "$ac_c_werror_flag"
32427                          || test ! -s conftest.err'
32428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32429   (eval $ac_try) 2>&5
32430   ac_status=$?
32431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432   (exit $ac_status); }; } &&
32433          { ac_try='test -s conftest.$ac_objext'
32434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32435   (eval $ac_try) 2>&5
32436   ac_status=$?
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); }; }; then
32439   ac_header_compiler=yes
32440 else
32441   echo "$as_me: failed program was:" >&5
32442 sed 's/^/| /' conftest.$ac_ext >&5
32443
32444 ac_header_compiler=no
32445 fi
32446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32448 echo "${ECHO_T}$ac_header_compiler" >&6
32449
32450 # Is the header present?
32451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32453 cat >conftest.$ac_ext <<_ACEOF
32454 /* confdefs.h.  */
32455 _ACEOF
32456 cat confdefs.h >>conftest.$ac_ext
32457 cat >>conftest.$ac_ext <<_ACEOF
32458 /* end confdefs.h.  */
32459 #include <$ac_header>
32460 _ACEOF
32461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32463   ac_status=$?
32464   grep -v '^ *+' conftest.er1 >conftest.err
32465   rm -f conftest.er1
32466   cat conftest.err >&5
32467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468   (exit $ac_status); } >/dev/null; then
32469   if test -s conftest.err; then
32470     ac_cpp_err=$ac_c_preproc_warn_flag
32471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32472   else
32473     ac_cpp_err=
32474   fi
32475 else
32476   ac_cpp_err=yes
32477 fi
32478 if test -z "$ac_cpp_err"; then
32479   ac_header_preproc=yes
32480 else
32481   echo "$as_me: failed program was:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32483
32484   ac_header_preproc=no
32485 fi
32486 rm -f conftest.err conftest.$ac_ext
32487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32488 echo "${ECHO_T}$ac_header_preproc" >&6
32489
32490 # So?  What about this header?
32491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32492   yes:no: )
32493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32497     ac_header_preproc=yes
32498     ;;
32499   no:yes:* )
32500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32512     (
32513       cat <<\_ASBOX
32514 ## --------------------------------------------- ##
32515 ## Report this to <http://www.openldap.org/its/> ##
32516 ## --------------------------------------------- ##
32517 _ASBOX
32518     ) |
32519       sed "s/^/$as_me: WARNING:     /" >&2
32520     ;;
32521 esac
32522 echo "$as_me:$LINENO: checking for $ac_header" >&5
32523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32525   echo $ECHO_N "(cached) $ECHO_C" >&6
32526 else
32527   eval "$as_ac_Header=\$ac_header_preproc"
32528 fi
32529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32531
32532 fi
32533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32534   cat >>confdefs.h <<_ACEOF
32535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32536 _ACEOF
32537
32538 fi
32539
32540 done
32541
32542 if test $ac_cv_header_unicode_utypes_h = yes ; then
32543                 OL_ICULIBS="-licuuc -licudata"
32544
32545         echo "$as_me:$LINENO: checking for ICU libraries" >&5
32546 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32547 if test "${ol_cv_lib_icu+set}" = set; then
32548   echo $ECHO_N "(cached) $ECHO_C" >&6
32549 else
32550
32551                 ol_LIBS="$LIBS"
32552                 LIBS="$OL_ICULIBS $LIBS"
32553                 cat >conftest.$ac_ext <<_ACEOF
32554 /* confdefs.h.  */
32555 _ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h.  */
32559
32560 #include <unicode/utypes.h>
32561
32562 int
32563 main ()
32564 {
32565
32566 (void) u_errorName(0);
32567
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext conftest$ac_exeext
32573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32574   (eval $ac_link) 2>conftest.er1
32575   ac_status=$?
32576   grep -v '^ *+' conftest.er1 >conftest.err
32577   rm -f conftest.er1
32578   cat conftest.err >&5
32579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580   (exit $ac_status); } &&
32581          { ac_try='test -z "$ac_c_werror_flag"
32582                          || test ! -s conftest.err'
32583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32584   (eval $ac_try) 2>&5
32585   ac_status=$?
32586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587   (exit $ac_status); }; } &&
32588          { ac_try='test -s conftest$ac_exeext'
32589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590   (eval $ac_try) 2>&5
32591   ac_status=$?
32592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593   (exit $ac_status); }; }; then
32594   ol_cv_lib_icu=yes
32595 else
32596   echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32598
32599 ol_cv_lib_icu=no
32600 fi
32601 rm -f conftest.err conftest.$ac_objext \
32602       conftest$ac_exeext conftest.$ac_ext
32603                 LIBS="$ol_LIBS"
32604
32605 fi
32606 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32607 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32608
32609         if test $ol_cv_lib_icu != no ; then
32610                 ol_icu="$OL_ICULIBS"
32611
32612 cat >>confdefs.h <<\_ACEOF
32613 #define HAVE_ICU 1
32614 _ACEOF
32615
32616         fi
32617 fi
32618
32619 if test "$ol_icu" = no ; then
32620         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32621 echo "$as_me: WARNING: ICU not available" >&2;}
32622 else
32623         ICU_LIBS="$ol_icu"
32624 fi
32625 WITH_SASL=no
32626 ol_link_sasl=no
32627 ol_link_spasswd=no
32628 if test $ol_with_cyrus_sasl != no ; then
32629
32630
32631 for ac_header in sasl/sasl.h sasl.h
32632 do
32633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32635   echo "$as_me:$LINENO: checking for $ac_header" >&5
32636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32638   echo $ECHO_N "(cached) $ECHO_C" >&6
32639 fi
32640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32642 else
32643   # Is the header compilable?
32644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32646 cat >conftest.$ac_ext <<_ACEOF
32647 /* confdefs.h.  */
32648 _ACEOF
32649 cat confdefs.h >>conftest.$ac_ext
32650 cat >>conftest.$ac_ext <<_ACEOF
32651 /* end confdefs.h.  */
32652 $ac_includes_default
32653 #include <$ac_header>
32654 _ACEOF
32655 rm -f conftest.$ac_objext
32656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32657   (eval $ac_compile) 2>conftest.er1
32658   ac_status=$?
32659   grep -v '^ *+' conftest.er1 >conftest.err
32660   rm -f conftest.er1
32661   cat conftest.err >&5
32662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663   (exit $ac_status); } &&
32664          { ac_try='test -z "$ac_c_werror_flag"
32665                          || test ! -s conftest.err'
32666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32667   (eval $ac_try) 2>&5
32668   ac_status=$?
32669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670   (exit $ac_status); }; } &&
32671          { ac_try='test -s conftest.$ac_objext'
32672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32673   (eval $ac_try) 2>&5
32674   ac_status=$?
32675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676   (exit $ac_status); }; }; then
32677   ac_header_compiler=yes
32678 else
32679   echo "$as_me: failed program was:" >&5
32680 sed 's/^/| /' conftest.$ac_ext >&5
32681
32682 ac_header_compiler=no
32683 fi
32684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32686 echo "${ECHO_T}$ac_header_compiler" >&6
32687
32688 # Is the header present?
32689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32691 cat >conftest.$ac_ext <<_ACEOF
32692 /* confdefs.h.  */
32693 _ACEOF
32694 cat confdefs.h >>conftest.$ac_ext
32695 cat >>conftest.$ac_ext <<_ACEOF
32696 /* end confdefs.h.  */
32697 #include <$ac_header>
32698 _ACEOF
32699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32701   ac_status=$?
32702   grep -v '^ *+' conftest.er1 >conftest.err
32703   rm -f conftest.er1
32704   cat conftest.err >&5
32705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706   (exit $ac_status); } >/dev/null; then
32707   if test -s conftest.err; then
32708     ac_cpp_err=$ac_c_preproc_warn_flag
32709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32710   else
32711     ac_cpp_err=
32712   fi
32713 else
32714   ac_cpp_err=yes
32715 fi
32716 if test -z "$ac_cpp_err"; then
32717   ac_header_preproc=yes
32718 else
32719   echo "$as_me: failed program was:" >&5
32720 sed 's/^/| /' conftest.$ac_ext >&5
32721
32722   ac_header_preproc=no
32723 fi
32724 rm -f conftest.err conftest.$ac_ext
32725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32726 echo "${ECHO_T}$ac_header_preproc" >&6
32727
32728 # So?  What about this header?
32729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32730   yes:no: )
32731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32735     ac_header_preproc=yes
32736     ;;
32737   no:yes:* )
32738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32750     (
32751       cat <<\_ASBOX
32752 ## --------------------------------------------- ##
32753 ## Report this to <http://www.openldap.org/its/> ##
32754 ## --------------------------------------------- ##
32755 _ASBOX
32756     ) |
32757       sed "s/^/$as_me: WARNING:     /" >&2
32758     ;;
32759 esac
32760 echo "$as_me:$LINENO: checking for $ac_header" >&5
32761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32763   echo $ECHO_N "(cached) $ECHO_C" >&6
32764 else
32765   eval "$as_ac_Header=\$ac_header_preproc"
32766 fi
32767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32769
32770 fi
32771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32772   cat >>confdefs.h <<_ACEOF
32773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32774 _ACEOF
32775
32776 fi
32777
32778 done
32779
32780
32781         if test $ac_cv_header_sasl_sasl_h = yes ||
32782            test $ac_cv_header_sasl_h = yes; then
32783                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32784 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32785 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32786   echo $ECHO_N "(cached) $ECHO_C" >&6
32787 else
32788   ac_check_lib_save_LIBS=$LIBS
32789 LIBS="-lsasl2  $LIBS"
32790 cat >conftest.$ac_ext <<_ACEOF
32791 /* confdefs.h.  */
32792 _ACEOF
32793 cat confdefs.h >>conftest.$ac_ext
32794 cat >>conftest.$ac_ext <<_ACEOF
32795 /* end confdefs.h.  */
32796
32797 /* Override any gcc2 internal prototype to avoid an error.  */
32798 #ifdef __cplusplus
32799 extern "C"
32800 #endif
32801 /* We use char because int might match the return type of a gcc2
32802    builtin and then its argument prototype would still apply.  */
32803 char sasl_client_init ();
32804 int
32805 main ()
32806 {
32807 sasl_client_init ();
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   ac_cv_lib_sasl2_sasl_client_init=yes
32835 else
32836   echo "$as_me: failed program was:" >&5
32837 sed 's/^/| /' conftest.$ac_ext >&5
32838
32839 ac_cv_lib_sasl2_sasl_client_init=no
32840 fi
32841 rm -f conftest.err conftest.$ac_objext \
32842       conftest$ac_exeext conftest.$ac_ext
32843 LIBS=$ac_check_lib_save_LIBS
32844 fi
32845 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32846 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32847 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32848   ol_link_sasl="-lsasl2"
32849 else
32850   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32851 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32852 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32853   echo $ECHO_N "(cached) $ECHO_C" >&6
32854 else
32855   ac_check_lib_save_LIBS=$LIBS
32856 LIBS="-lsasl  $LIBS"
32857 cat >conftest.$ac_ext <<_ACEOF
32858 /* confdefs.h.  */
32859 _ACEOF
32860 cat confdefs.h >>conftest.$ac_ext
32861 cat >>conftest.$ac_ext <<_ACEOF
32862 /* end confdefs.h.  */
32863
32864 /* Override any gcc2 internal prototype to avoid an error.  */
32865 #ifdef __cplusplus
32866 extern "C"
32867 #endif
32868 /* We use char because int might match the return type of a gcc2
32869    builtin and then its argument prototype would still apply.  */
32870 char sasl_client_init ();
32871 int
32872 main ()
32873 {
32874 sasl_client_init ();
32875   ;
32876   return 0;
32877 }
32878 _ACEOF
32879 rm -f conftest.$ac_objext conftest$ac_exeext
32880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32881   (eval $ac_link) 2>conftest.er1
32882   ac_status=$?
32883   grep -v '^ *+' conftest.er1 >conftest.err
32884   rm -f conftest.er1
32885   cat conftest.err >&5
32886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887   (exit $ac_status); } &&
32888          { ac_try='test -z "$ac_c_werror_flag"
32889                          || test ! -s conftest.err'
32890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32891   (eval $ac_try) 2>&5
32892   ac_status=$?
32893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894   (exit $ac_status); }; } &&
32895          { ac_try='test -s conftest$ac_exeext'
32896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32897   (eval $ac_try) 2>&5
32898   ac_status=$?
32899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900   (exit $ac_status); }; }; then
32901   ac_cv_lib_sasl_sasl_client_init=yes
32902 else
32903   echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32905
32906 ac_cv_lib_sasl_sasl_client_init=no
32907 fi
32908 rm -f conftest.err conftest.$ac_objext \
32909       conftest$ac_exeext conftest.$ac_ext
32910 LIBS=$ac_check_lib_save_LIBS
32911 fi
32912 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32913 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32914 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32915   ol_link_sasl="-lsasl"
32916 fi
32917
32918 fi
32919
32920         fi
32921
32922         if test $ol_link_sasl = no ; then
32923                 if test $ol_with_cyrus_sasl != auto ; then
32924                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32925 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32926    { (exit 1); exit 1; }; }
32927                 else
32928                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32929 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32930                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32931 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32932                         if test $ol_link_tls = no ; then
32933                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32934 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32935                         fi
32936                 fi
32937         else
32938                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32939 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32940 if test "${ol_cv_sasl_compat+set}" = set; then
32941   echo $ECHO_N "(cached) $ECHO_C" >&6
32942 else
32943
32944         cat >conftest.$ac_ext <<_ACEOF
32945 /* confdefs.h.  */
32946 _ACEOF
32947 cat confdefs.h >>conftest.$ac_ext
32948 cat >>conftest.$ac_ext <<_ACEOF
32949 /* end confdefs.h.  */
32950
32951 #ifdef HAVE_SASL_SASL_H
32952 #include <sasl/sasl.h>
32953 #else
32954 #include <sasl.h>
32955 #endif
32956
32957 /* Require 2.1.15+ */
32958 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
32959         char *__sasl_compat = "2.2+ or better okay (we guess)";
32960 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
32961         && SASL_VERSION_STEP >=15
32962         char *__sasl_compat = "2.1.15+ or better okay";
32963 #endif
32964
32965 _ACEOF
32966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32967   $EGREP "__sasl_compat" >/dev/null 2>&1; then
32968   ol_cv_sasl_compat=yes
32969 else
32970   ol_cv_sasl_compat=no
32971 fi
32972 rm -f conftest*
32973
32974 fi
32975 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32976 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32977
32978                 if test $ol_cv_sasl_compat = no ; then
32979                         ol_link_sasl=no
32980                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32981 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32982    { (exit 1); exit 1; }; }
32983                 fi
32984
32985
32986 cat >>confdefs.h <<\_ACEOF
32987 #define HAVE_CYRUS_SASL 1
32988 _ACEOF
32989
32990                 SASL_LIBS="$ol_link_sasl"
32991                 if test $ol_enable_spasswd != no ; then
32992                         ol_link_spasswd=yes
32993                 fi
32994
32995                 ac_save_LIBS="$LIBS"
32996                 LIBS="$LIBS $ol_link_sasl"
32997                 echo "$as_me:$LINENO: checking for sasl_version" >&5
32998 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32999 if test "${ac_cv_func_sasl_version+set}" = set; then
33000   echo $ECHO_N "(cached) $ECHO_C" >&6
33001 else
33002   cat >conftest.$ac_ext <<_ACEOF
33003 /* confdefs.h.  */
33004 _ACEOF
33005 cat confdefs.h >>conftest.$ac_ext
33006 cat >>conftest.$ac_ext <<_ACEOF
33007 /* end confdefs.h.  */
33008 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
33009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33010 #define sasl_version innocuous_sasl_version
33011
33012 /* System header to define __stub macros and hopefully few prototypes,
33013     which can conflict with char sasl_version (); below.
33014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33015     <limits.h> exists even on freestanding compilers.  */
33016
33017 #ifdef __STDC__
33018 # include <limits.h>
33019 #else
33020 # include <assert.h>
33021 #endif
33022
33023 #undef sasl_version
33024
33025 /* Override any gcc2 internal prototype to avoid an error.  */
33026 #ifdef __cplusplus
33027 extern "C"
33028 {
33029 #endif
33030 /* We use char because int might match the return type of a gcc2
33031    builtin and then its argument prototype would still apply.  */
33032 char sasl_version ();
33033 /* The GNU C library defines this for functions which it implements
33034     to always fail with ENOSYS.  Some functions are actually named
33035     something starting with __ and the normal name is an alias.  */
33036 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
33037 choke me
33038 #else
33039 char (*f) () = sasl_version;
33040 #endif
33041 #ifdef __cplusplus
33042 }
33043 #endif
33044
33045 int
33046 main ()
33047 {
33048 return f != sasl_version;
33049   ;
33050   return 0;
33051 }
33052 _ACEOF
33053 rm -f conftest.$ac_objext conftest$ac_exeext
33054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33055   (eval $ac_link) 2>conftest.er1
33056   ac_status=$?
33057   grep -v '^ *+' conftest.er1 >conftest.err
33058   rm -f conftest.er1
33059   cat conftest.err >&5
33060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061   (exit $ac_status); } &&
33062          { ac_try='test -z "$ac_c_werror_flag"
33063                          || test ! -s conftest.err'
33064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33065   (eval $ac_try) 2>&5
33066   ac_status=$?
33067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068   (exit $ac_status); }; } &&
33069          { ac_try='test -s conftest$ac_exeext'
33070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33071   (eval $ac_try) 2>&5
33072   ac_status=$?
33073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074   (exit $ac_status); }; }; then
33075   ac_cv_func_sasl_version=yes
33076 else
33077   echo "$as_me: failed program was:" >&5
33078 sed 's/^/| /' conftest.$ac_ext >&5
33079
33080 ac_cv_func_sasl_version=no
33081 fi
33082 rm -f conftest.err conftest.$ac_objext \
33083       conftest$ac_exeext conftest.$ac_ext
33084 fi
33085 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
33086 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
33087 if test $ac_cv_func_sasl_version = yes; then
33088
33089 cat >>confdefs.h <<\_ACEOF
33090 #define HAVE_SASL_VERSION 1
33091 _ACEOF
33092
33093 fi
33094
33095                 LIBS="$ac_save_LIBS"
33096
33097                 WITH_SASL=yes
33098         fi
33099
33100 else
33101         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
33102 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
33103         if test $ol_link_tls = no ; then
33104                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
33105 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
33106         fi
33107 fi
33108
33109 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
33110         dev=no
33111         if test -r /dev/urandom ; then
33112                 dev="/dev/urandom";
33113         elif test -r /idev/urandom ; then
33114                 dev="/idev/urandom";
33115         elif test -r /dev/srandom ; then
33116                 dev="/dev/srandom";
33117         elif test -r /dev/random ; then
33118                 dev="/dev/random";
33119         elif test -r /idev/random ; then
33120                 dev="/idev/random";
33121         fi
33122
33123         if test $dev != no ; then
33124
33125 cat >>confdefs.h <<_ACEOF
33126 #define URANDOM_DEVICE "$dev"
33127 _ACEOF
33128
33129         fi
33130 fi
33131
33132 ol_link_fetch=no
33133 if test $ol_with_fetch != no ; then
33134         ol_LIBS=$LIBS
33135 LIBS="-lfetch -lcom_err $LIBS"
33136 echo "$as_me:$LINENO: checking fetch(3) library" >&5
33137 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
33138 if test "${ol_cv_lib_fetch+set}" = set; then
33139   echo $ECHO_N "(cached) $ECHO_C" >&6
33140 else
33141
33142         cat >conftest.$ac_ext <<_ACEOF
33143 /* confdefs.h.  */
33144 _ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h.  */
33148
33149 #include <sys/param.h>
33150 #include <stdio.h>
33151 #include <fetch.h>
33152 int
33153 main ()
33154 {
33155 struct url *u = fetchParseURL("file:///");
33156   ;
33157   return 0;
33158 }
33159 _ACEOF
33160 rm -f conftest.$ac_objext conftest$ac_exeext
33161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33162   (eval $ac_link) 2>conftest.er1
33163   ac_status=$?
33164   grep -v '^ *+' conftest.er1 >conftest.err
33165   rm -f conftest.er1
33166   cat conftest.err >&5
33167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168   (exit $ac_status); } &&
33169          { ac_try='test -z "$ac_c_werror_flag"
33170                          || test ! -s conftest.err'
33171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33172   (eval $ac_try) 2>&5
33173   ac_status=$?
33174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175   (exit $ac_status); }; } &&
33176          { ac_try='test -s conftest$ac_exeext'
33177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33178   (eval $ac_try) 2>&5
33179   ac_status=$?
33180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181   (exit $ac_status); }; }; then
33182   ol_cv_lib_fetch=yes
33183 else
33184   echo "$as_me: failed program was:" >&5
33185 sed 's/^/| /' conftest.$ac_ext >&5
33186
33187 ol_cv_lib_fetch=no
33188 fi
33189 rm -f conftest.err conftest.$ac_objext \
33190       conftest$ac_exeext conftest.$ac_ext
33191 fi
33192 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
33193 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
33194 LIBS=$ol_LIBS
33195 if test $ol_cv_lib_fetch != no ; then
33196         ol_link_fetch="-lfetch -lcom_err"
33197
33198 cat >>confdefs.h <<\_ACEOF
33199 #define HAVE_FETCH 1
33200 _ACEOF
33201
33202 fi
33203
33204
33205         if test $ol_cv_lib_fetch != no ; then
33206                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
33207                 ol_link_fetch=freebsd
33208
33209         elif test $ol_with_fetch != auto ; then
33210                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
33211 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
33212    { (exit 1); exit 1; }; }
33213         fi
33214 fi
33215
33216 if test $ol_enable_crypt != no ; then
33217         save_LIBS="$LIBS"
33218         LIBS="$TLS_LIBS $LIBS"
33219
33220         echo "$as_me:$LINENO: checking for crypt" >&5
33221 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
33222 if test "${ac_cv_func_crypt+set}" = set; then
33223   echo $ECHO_N "(cached) $ECHO_C" >&6
33224 else
33225   cat >conftest.$ac_ext <<_ACEOF
33226 /* confdefs.h.  */
33227 _ACEOF
33228 cat confdefs.h >>conftest.$ac_ext
33229 cat >>conftest.$ac_ext <<_ACEOF
33230 /* end confdefs.h.  */
33231 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
33232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33233 #define crypt innocuous_crypt
33234
33235 /* System header to define __stub macros and hopefully few prototypes,
33236     which can conflict with char crypt (); below.
33237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33238     <limits.h> exists even on freestanding compilers.  */
33239
33240 #ifdef __STDC__
33241 # include <limits.h>
33242 #else
33243 # include <assert.h>
33244 #endif
33245
33246 #undef crypt
33247
33248 /* Override any gcc2 internal prototype to avoid an error.  */
33249 #ifdef __cplusplus
33250 extern "C"
33251 {
33252 #endif
33253 /* We use char because int might match the return type of a gcc2
33254    builtin and then its argument prototype would still apply.  */
33255 char crypt ();
33256 /* The GNU C library defines this for functions which it implements
33257     to always fail with ENOSYS.  Some functions are actually named
33258     something starting with __ and the normal name is an alias.  */
33259 #if defined (__stub_crypt) || defined (__stub___crypt)
33260 choke me
33261 #else
33262 char (*f) () = crypt;
33263 #endif
33264 #ifdef __cplusplus
33265 }
33266 #endif
33267
33268 int
33269 main ()
33270 {
33271 return f != crypt;
33272   ;
33273   return 0;
33274 }
33275 _ACEOF
33276 rm -f conftest.$ac_objext conftest$ac_exeext
33277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33278   (eval $ac_link) 2>conftest.er1
33279   ac_status=$?
33280   grep -v '^ *+' conftest.er1 >conftest.err
33281   rm -f conftest.er1
33282   cat conftest.err >&5
33283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284   (exit $ac_status); } &&
33285          { ac_try='test -z "$ac_c_werror_flag"
33286                          || test ! -s conftest.err'
33287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288   (eval $ac_try) 2>&5
33289   ac_status=$?
33290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291   (exit $ac_status); }; } &&
33292          { ac_try='test -s conftest$ac_exeext'
33293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33294   (eval $ac_try) 2>&5
33295   ac_status=$?
33296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297   (exit $ac_status); }; }; then
33298   ac_cv_func_crypt=yes
33299 else
33300   echo "$as_me: failed program was:" >&5
33301 sed 's/^/| /' conftest.$ac_ext >&5
33302
33303 ac_cv_func_crypt=no
33304 fi
33305 rm -f conftest.err conftest.$ac_objext \
33306       conftest$ac_exeext conftest.$ac_ext
33307 fi
33308 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
33309 echo "${ECHO_T}$ac_cv_func_crypt" >&6
33310 if test $ac_cv_func_crypt = yes; then
33311   have_crypt=yes
33312 else
33313
33314                 LIBS="$save_LIBS"
33315                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
33316 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
33317 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
33318   echo $ECHO_N "(cached) $ECHO_C" >&6
33319 else
33320   ac_check_lib_save_LIBS=$LIBS
33321 LIBS="-lcrypt  $LIBS"
33322 cat >conftest.$ac_ext <<_ACEOF
33323 /* confdefs.h.  */
33324 _ACEOF
33325 cat confdefs.h >>conftest.$ac_ext
33326 cat >>conftest.$ac_ext <<_ACEOF
33327 /* end confdefs.h.  */
33328
33329 /* Override any gcc2 internal prototype to avoid an error.  */
33330 #ifdef __cplusplus
33331 extern "C"
33332 #endif
33333 /* We use char because int might match the return type of a gcc2
33334    builtin and then its argument prototype would still apply.  */
33335 char crypt ();
33336 int
33337 main ()
33338 {
33339 crypt ();
33340   ;
33341   return 0;
33342 }
33343 _ACEOF
33344 rm -f conftest.$ac_objext conftest$ac_exeext
33345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33346   (eval $ac_link) 2>conftest.er1
33347   ac_status=$?
33348   grep -v '^ *+' conftest.er1 >conftest.err
33349   rm -f conftest.er1
33350   cat conftest.err >&5
33351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352   (exit $ac_status); } &&
33353          { ac_try='test -z "$ac_c_werror_flag"
33354                          || test ! -s conftest.err'
33355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356   (eval $ac_try) 2>&5
33357   ac_status=$?
33358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359   (exit $ac_status); }; } &&
33360          { ac_try='test -s conftest$ac_exeext'
33361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33362   (eval $ac_try) 2>&5
33363   ac_status=$?
33364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365   (exit $ac_status); }; }; then
33366   ac_cv_lib_crypt_crypt=yes
33367 else
33368   echo "$as_me: failed program was:" >&5
33369 sed 's/^/| /' conftest.$ac_ext >&5
33370
33371 ac_cv_lib_crypt_crypt=no
33372 fi
33373 rm -f conftest.err conftest.$ac_objext \
33374       conftest$ac_exeext conftest.$ac_ext
33375 LIBS=$ac_check_lib_save_LIBS
33376 fi
33377 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33378 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33379 if test $ac_cv_lib_crypt_crypt = yes; then
33380   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33381                         have_crypt=yes
33382 else
33383   have_crypt=no
33384 fi
33385
33386 fi
33387
33388
33389         LIBS="$save_LIBS"
33390
33391         if test $have_crypt = yes ; then
33392
33393 cat >>confdefs.h <<\_ACEOF
33394 #define HAVE_CRYPT 1
33395 _ACEOF
33396
33397         else
33398                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33399 echo "$as_me: WARNING: could not find crypt" >&2;}
33400                 if test $ol_enable_crypt = yes ; then
33401                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33402 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33403    { (exit 1); exit 1; }; }
33404                 fi
33405
33406                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33407 echo "$as_me: WARNING: disabling crypt support" >&2;}
33408                 ol_enable_crypt=no
33409         fi
33410 fi
33411
33412 if test $ol_enable_proctitle != no ; then
33413         echo "$as_me:$LINENO: checking for setproctitle" >&5
33414 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33415 if test "${ac_cv_func_setproctitle+set}" = set; then
33416   echo $ECHO_N "(cached) $ECHO_C" >&6
33417 else
33418   cat >conftest.$ac_ext <<_ACEOF
33419 /* confdefs.h.  */
33420 _ACEOF
33421 cat confdefs.h >>conftest.$ac_ext
33422 cat >>conftest.$ac_ext <<_ACEOF
33423 /* end confdefs.h.  */
33424 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33426 #define setproctitle innocuous_setproctitle
33427
33428 /* System header to define __stub macros and hopefully few prototypes,
33429     which can conflict with char setproctitle (); below.
33430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33431     <limits.h> exists even on freestanding compilers.  */
33432
33433 #ifdef __STDC__
33434 # include <limits.h>
33435 #else
33436 # include <assert.h>
33437 #endif
33438
33439 #undef setproctitle
33440
33441 /* Override any gcc2 internal prototype to avoid an error.  */
33442 #ifdef __cplusplus
33443 extern "C"
33444 {
33445 #endif
33446 /* We use char because int might match the return type of a gcc2
33447    builtin and then its argument prototype would still apply.  */
33448 char setproctitle ();
33449 /* The GNU C library defines this for functions which it implements
33450     to always fail with ENOSYS.  Some functions are actually named
33451     something starting with __ and the normal name is an alias.  */
33452 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33453 choke me
33454 #else
33455 char (*f) () = setproctitle;
33456 #endif
33457 #ifdef __cplusplus
33458 }
33459 #endif
33460
33461 int
33462 main ()
33463 {
33464 return f != setproctitle;
33465   ;
33466   return 0;
33467 }
33468 _ACEOF
33469 rm -f conftest.$ac_objext conftest$ac_exeext
33470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33471   (eval $ac_link) 2>conftest.er1
33472   ac_status=$?
33473   grep -v '^ *+' conftest.er1 >conftest.err
33474   rm -f conftest.er1
33475   cat conftest.err >&5
33476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477   (exit $ac_status); } &&
33478          { ac_try='test -z "$ac_c_werror_flag"
33479                          || test ! -s conftest.err'
33480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33481   (eval $ac_try) 2>&5
33482   ac_status=$?
33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484   (exit $ac_status); }; } &&
33485          { ac_try='test -s conftest$ac_exeext'
33486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33487   (eval $ac_try) 2>&5
33488   ac_status=$?
33489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490   (exit $ac_status); }; }; then
33491   ac_cv_func_setproctitle=yes
33492 else
33493   echo "$as_me: failed program was:" >&5
33494 sed 's/^/| /' conftest.$ac_ext >&5
33495
33496 ac_cv_func_setproctitle=no
33497 fi
33498 rm -f conftest.err conftest.$ac_objext \
33499       conftest$ac_exeext conftest.$ac_ext
33500 fi
33501 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33502 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33503 if test $ac_cv_func_setproctitle = yes; then
33504   have_setproctitle=yes
33505 else
33506
33507                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33508 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33509 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33510   echo $ECHO_N "(cached) $ECHO_C" >&6
33511 else
33512   ac_check_lib_save_LIBS=$LIBS
33513 LIBS="-lutil  $LIBS"
33514 cat >conftest.$ac_ext <<_ACEOF
33515 /* confdefs.h.  */
33516 _ACEOF
33517 cat confdefs.h >>conftest.$ac_ext
33518 cat >>conftest.$ac_ext <<_ACEOF
33519 /* end confdefs.h.  */
33520
33521 /* Override any gcc2 internal prototype to avoid an error.  */
33522 #ifdef __cplusplus
33523 extern "C"
33524 #endif
33525 /* We use char because int might match the return type of a gcc2
33526    builtin and then its argument prototype would still apply.  */
33527 char setproctitle ();
33528 int
33529 main ()
33530 {
33531 setproctitle ();
33532   ;
33533   return 0;
33534 }
33535 _ACEOF
33536 rm -f conftest.$ac_objext conftest$ac_exeext
33537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33538   (eval $ac_link) 2>conftest.er1
33539   ac_status=$?
33540   grep -v '^ *+' conftest.er1 >conftest.err
33541   rm -f conftest.er1
33542   cat conftest.err >&5
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); } &&
33545          { ac_try='test -z "$ac_c_werror_flag"
33546                          || test ! -s conftest.err'
33547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548   (eval $ac_try) 2>&5
33549   ac_status=$?
33550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551   (exit $ac_status); }; } &&
33552          { ac_try='test -s conftest$ac_exeext'
33553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33554   (eval $ac_try) 2>&5
33555   ac_status=$?
33556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557   (exit $ac_status); }; }; then
33558   ac_cv_lib_util_setproctitle=yes
33559 else
33560   echo "$as_me: failed program was:" >&5
33561 sed 's/^/| /' conftest.$ac_ext >&5
33562
33563 ac_cv_lib_util_setproctitle=no
33564 fi
33565 rm -f conftest.err conftest.$ac_objext \
33566       conftest$ac_exeext conftest.$ac_ext
33567 LIBS=$ac_check_lib_save_LIBS
33568 fi
33569 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33570 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33571 if test $ac_cv_lib_util_setproctitle = yes; then
33572   have_setproctitle=yes
33573                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
33574 else
33575   have_setproctitle=no
33576                         case $LIBOBJS in
33577     "setproctitle.$ac_objext"   | \
33578   *" setproctitle.$ac_objext"   | \
33579     "setproctitle.$ac_objext "* | \
33580   *" setproctitle.$ac_objext "* ) ;;
33581   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33582 esac
33583
33584                         LIBSRCS="$LIBSRCS setproctitle.c"
33585 fi
33586
33587 fi
33588
33589
33590         if test $have_setproctitle = yes ; then
33591
33592 cat >>confdefs.h <<\_ACEOF
33593 #define HAVE_SETPROCTITLE 1
33594 _ACEOF
33595
33596         fi
33597 fi
33598
33599 if test $ol_enable_slp != no ; then
33600
33601 for ac_header in slp.h
33602 do
33603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33605   echo "$as_me:$LINENO: checking for $ac_header" >&5
33606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33608   echo $ECHO_N "(cached) $ECHO_C" >&6
33609 fi
33610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33612 else
33613   # Is the header compilable?
33614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33616 cat >conftest.$ac_ext <<_ACEOF
33617 /* confdefs.h.  */
33618 _ACEOF
33619 cat confdefs.h >>conftest.$ac_ext
33620 cat >>conftest.$ac_ext <<_ACEOF
33621 /* end confdefs.h.  */
33622 $ac_includes_default
33623 #include <$ac_header>
33624 _ACEOF
33625 rm -f conftest.$ac_objext
33626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33627   (eval $ac_compile) 2>conftest.er1
33628   ac_status=$?
33629   grep -v '^ *+' conftest.er1 >conftest.err
33630   rm -f conftest.er1
33631   cat conftest.err >&5
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); } &&
33634          { ac_try='test -z "$ac_c_werror_flag"
33635                          || test ! -s conftest.err'
33636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33637   (eval $ac_try) 2>&5
33638   ac_status=$?
33639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640   (exit $ac_status); }; } &&
33641          { ac_try='test -s conftest.$ac_objext'
33642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33643   (eval $ac_try) 2>&5
33644   ac_status=$?
33645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646   (exit $ac_status); }; }; then
33647   ac_header_compiler=yes
33648 else
33649   echo "$as_me: failed program was:" >&5
33650 sed 's/^/| /' conftest.$ac_ext >&5
33651
33652 ac_header_compiler=no
33653 fi
33654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33656 echo "${ECHO_T}$ac_header_compiler" >&6
33657
33658 # Is the header present?
33659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33661 cat >conftest.$ac_ext <<_ACEOF
33662 /* confdefs.h.  */
33663 _ACEOF
33664 cat confdefs.h >>conftest.$ac_ext
33665 cat >>conftest.$ac_ext <<_ACEOF
33666 /* end confdefs.h.  */
33667 #include <$ac_header>
33668 _ACEOF
33669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33671   ac_status=$?
33672   grep -v '^ *+' conftest.er1 >conftest.err
33673   rm -f conftest.er1
33674   cat conftest.err >&5
33675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676   (exit $ac_status); } >/dev/null; then
33677   if test -s conftest.err; then
33678     ac_cpp_err=$ac_c_preproc_warn_flag
33679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33680   else
33681     ac_cpp_err=
33682   fi
33683 else
33684   ac_cpp_err=yes
33685 fi
33686 if test -z "$ac_cpp_err"; then
33687   ac_header_preproc=yes
33688 else
33689   echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33691
33692   ac_header_preproc=no
33693 fi
33694 rm -f conftest.err conftest.$ac_ext
33695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33696 echo "${ECHO_T}$ac_header_preproc" >&6
33697
33698 # So?  What about this header?
33699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33700   yes:no: )
33701     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33705     ac_header_preproc=yes
33706     ;;
33707   no:yes:* )
33708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33710     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33711 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33712     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33714     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33715 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33718     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33720     (
33721       cat <<\_ASBOX
33722 ## --------------------------------------------- ##
33723 ## Report this to <http://www.openldap.org/its/> ##
33724 ## --------------------------------------------- ##
33725 _ASBOX
33726     ) |
33727       sed "s/^/$as_me: WARNING:     /" >&2
33728     ;;
33729 esac
33730 echo "$as_me:$LINENO: checking for $ac_header" >&5
33731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33733   echo $ECHO_N "(cached) $ECHO_C" >&6
33734 else
33735   eval "$as_ac_Header=\$ac_header_preproc"
33736 fi
33737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33739
33740 fi
33741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33742   cat >>confdefs.h <<_ACEOF
33743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33744 _ACEOF
33745
33746 fi
33747
33748 done
33749
33750
33751         if test $ac_cv_header_slp_h = yes ; then
33752                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33753 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33754 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33755   echo $ECHO_N "(cached) $ECHO_C" >&6
33756 else
33757   ac_check_lib_save_LIBS=$LIBS
33758 LIBS="-lslp  $LIBS"
33759 cat >conftest.$ac_ext <<_ACEOF
33760 /* confdefs.h.  */
33761 _ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h.  */
33765
33766 /* Override any gcc2 internal prototype to avoid an error.  */
33767 #ifdef __cplusplus
33768 extern "C"
33769 #endif
33770 /* We use char because int might match the return type of a gcc2
33771    builtin and then its argument prototype would still apply.  */
33772 char SLPOpen ();
33773 int
33774 main ()
33775 {
33776 SLPOpen ();
33777   ;
33778   return 0;
33779 }
33780 _ACEOF
33781 rm -f conftest.$ac_objext conftest$ac_exeext
33782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33783   (eval $ac_link) 2>conftest.er1
33784   ac_status=$?
33785   grep -v '^ *+' conftest.er1 >conftest.err
33786   rm -f conftest.er1
33787   cat conftest.err >&5
33788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789   (exit $ac_status); } &&
33790          { ac_try='test -z "$ac_c_werror_flag"
33791                          || test ! -s conftest.err'
33792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793   (eval $ac_try) 2>&5
33794   ac_status=$?
33795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796   (exit $ac_status); }; } &&
33797          { ac_try='test -s conftest$ac_exeext'
33798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799   (eval $ac_try) 2>&5
33800   ac_status=$?
33801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802   (exit $ac_status); }; }; then
33803   ac_cv_lib_slp_SLPOpen=yes
33804 else
33805   echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33807
33808 ac_cv_lib_slp_SLPOpen=no
33809 fi
33810 rm -f conftest.err conftest.$ac_objext \
33811       conftest$ac_exeext conftest.$ac_ext
33812 LIBS=$ac_check_lib_save_LIBS
33813 fi
33814 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33815 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33816 if test $ac_cv_lib_slp_SLPOpen = yes; then
33817   have_slp=yes
33818 else
33819   have_slp=no
33820 fi
33821
33822                 if test $have_slp = yes ; then
33823
33824 cat >>confdefs.h <<\_ACEOF
33825 #define HAVE_SLP 1
33826 _ACEOF
33827
33828                         SLAPD_SLP_LIBS=-lslp
33829                 fi
33830
33831         elif test $ol_enable_slp = yes ; then
33832                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33833 echo "$as_me: error: SLP not found" >&2;}
33834    { (exit 1); exit 1; }; }
33835         fi
33836 fi
33837
33838
33839 echo "$as_me:$LINENO: checking for mode_t" >&5
33840 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33841 if test "${ac_cv_type_mode_t+set}" = set; then
33842   echo $ECHO_N "(cached) $ECHO_C" >&6
33843 else
33844   cat >conftest.$ac_ext <<_ACEOF
33845 /* confdefs.h.  */
33846 _ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h.  */
33850 $ac_includes_default
33851 int
33852 main ()
33853 {
33854 if ((mode_t *) 0)
33855   return 0;
33856 if (sizeof (mode_t))
33857   return 0;
33858   ;
33859   return 0;
33860 }
33861 _ACEOF
33862 rm -f conftest.$ac_objext
33863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33864   (eval $ac_compile) 2>conftest.er1
33865   ac_status=$?
33866   grep -v '^ *+' conftest.er1 >conftest.err
33867   rm -f conftest.er1
33868   cat conftest.err >&5
33869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870   (exit $ac_status); } &&
33871          { ac_try='test -z "$ac_c_werror_flag"
33872                          || test ! -s conftest.err'
33873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33874   (eval $ac_try) 2>&5
33875   ac_status=$?
33876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877   (exit $ac_status); }; } &&
33878          { ac_try='test -s conftest.$ac_objext'
33879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880   (eval $ac_try) 2>&5
33881   ac_status=$?
33882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883   (exit $ac_status); }; }; then
33884   ac_cv_type_mode_t=yes
33885 else
33886   echo "$as_me: failed program was:" >&5
33887 sed 's/^/| /' conftest.$ac_ext >&5
33888
33889 ac_cv_type_mode_t=no
33890 fi
33891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33892 fi
33893 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33894 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33895 if test $ac_cv_type_mode_t = yes; then
33896   :
33897 else
33898
33899 cat >>confdefs.h <<_ACEOF
33900 #define mode_t int
33901 _ACEOF
33902
33903 fi
33904
33905 echo "$as_me:$LINENO: checking for off_t" >&5
33906 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33907 if test "${ac_cv_type_off_t+set}" = set; then
33908   echo $ECHO_N "(cached) $ECHO_C" >&6
33909 else
33910   cat >conftest.$ac_ext <<_ACEOF
33911 /* confdefs.h.  */
33912 _ACEOF
33913 cat confdefs.h >>conftest.$ac_ext
33914 cat >>conftest.$ac_ext <<_ACEOF
33915 /* end confdefs.h.  */
33916 $ac_includes_default
33917 int
33918 main ()
33919 {
33920 if ((off_t *) 0)
33921   return 0;
33922 if (sizeof (off_t))
33923   return 0;
33924   ;
33925   return 0;
33926 }
33927 _ACEOF
33928 rm -f conftest.$ac_objext
33929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33930   (eval $ac_compile) 2>conftest.er1
33931   ac_status=$?
33932   grep -v '^ *+' conftest.er1 >conftest.err
33933   rm -f conftest.er1
33934   cat conftest.err >&5
33935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936   (exit $ac_status); } &&
33937          { ac_try='test -z "$ac_c_werror_flag"
33938                          || test ! -s conftest.err'
33939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33940   (eval $ac_try) 2>&5
33941   ac_status=$?
33942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943   (exit $ac_status); }; } &&
33944          { ac_try='test -s conftest.$ac_objext'
33945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33946   (eval $ac_try) 2>&5
33947   ac_status=$?
33948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949   (exit $ac_status); }; }; then
33950   ac_cv_type_off_t=yes
33951 else
33952   echo "$as_me: failed program was:" >&5
33953 sed 's/^/| /' conftest.$ac_ext >&5
33954
33955 ac_cv_type_off_t=no
33956 fi
33957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33958 fi
33959 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33960 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33961 if test $ac_cv_type_off_t = yes; then
33962   :
33963 else
33964
33965 cat >>confdefs.h <<_ACEOF
33966 #define off_t long
33967 _ACEOF
33968
33969 fi
33970
33971 echo "$as_me:$LINENO: checking for pid_t" >&5
33972 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33973 if test "${ac_cv_type_pid_t+set}" = set; then
33974   echo $ECHO_N "(cached) $ECHO_C" >&6
33975 else
33976   cat >conftest.$ac_ext <<_ACEOF
33977 /* confdefs.h.  */
33978 _ACEOF
33979 cat confdefs.h >>conftest.$ac_ext
33980 cat >>conftest.$ac_ext <<_ACEOF
33981 /* end confdefs.h.  */
33982 $ac_includes_default
33983 int
33984 main ()
33985 {
33986 if ((pid_t *) 0)
33987   return 0;
33988 if (sizeof (pid_t))
33989   return 0;
33990   ;
33991   return 0;
33992 }
33993 _ACEOF
33994 rm -f conftest.$ac_objext
33995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33996   (eval $ac_compile) 2>conftest.er1
33997   ac_status=$?
33998   grep -v '^ *+' conftest.er1 >conftest.err
33999   rm -f conftest.er1
34000   cat conftest.err >&5
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); } &&
34003          { ac_try='test -z "$ac_c_werror_flag"
34004                          || test ! -s conftest.err'
34005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006   (eval $ac_try) 2>&5
34007   ac_status=$?
34008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009   (exit $ac_status); }; } &&
34010          { ac_try='test -s conftest.$ac_objext'
34011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012   (eval $ac_try) 2>&5
34013   ac_status=$?
34014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015   (exit $ac_status); }; }; then
34016   ac_cv_type_pid_t=yes
34017 else
34018   echo "$as_me: failed program was:" >&5
34019 sed 's/^/| /' conftest.$ac_ext >&5
34020
34021 ac_cv_type_pid_t=no
34022 fi
34023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34024 fi
34025 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34026 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34027 if test $ac_cv_type_pid_t = yes; then
34028   :
34029 else
34030
34031 cat >>confdefs.h <<_ACEOF
34032 #define pid_t int
34033 _ACEOF
34034
34035 fi
34036
34037 echo "$as_me:$LINENO: checking for ssize_t" >&5
34038 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34039 if test "${ac_cv_type_ssize_t+set}" = set; then
34040   echo $ECHO_N "(cached) $ECHO_C" >&6
34041 else
34042   cat >conftest.$ac_ext <<_ACEOF
34043 /* confdefs.h.  */
34044 _ACEOF
34045 cat confdefs.h >>conftest.$ac_ext
34046 cat >>conftest.$ac_ext <<_ACEOF
34047 /* end confdefs.h.  */
34048 $ac_includes_default
34049 int
34050 main ()
34051 {
34052 if ((ssize_t *) 0)
34053   return 0;
34054 if (sizeof (ssize_t))
34055   return 0;
34056   ;
34057   return 0;
34058 }
34059 _ACEOF
34060 rm -f conftest.$ac_objext
34061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34062   (eval $ac_compile) 2>conftest.er1
34063   ac_status=$?
34064   grep -v '^ *+' conftest.er1 >conftest.err
34065   rm -f conftest.er1
34066   cat conftest.err >&5
34067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); } &&
34069          { ac_try='test -z "$ac_c_werror_flag"
34070                          || test ! -s conftest.err'
34071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072   (eval $ac_try) 2>&5
34073   ac_status=$?
34074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075   (exit $ac_status); }; } &&
34076          { ac_try='test -s conftest.$ac_objext'
34077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34078   (eval $ac_try) 2>&5
34079   ac_status=$?
34080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081   (exit $ac_status); }; }; then
34082   ac_cv_type_ssize_t=yes
34083 else
34084   echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34086
34087 ac_cv_type_ssize_t=no
34088 fi
34089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34090 fi
34091 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34092 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34093 if test $ac_cv_type_ssize_t = yes; then
34094   :
34095 else
34096
34097 cat >>confdefs.h <<_ACEOF
34098 #define ssize_t signed int
34099 _ACEOF
34100
34101 fi
34102
34103 echo "$as_me:$LINENO: checking for caddr_t" >&5
34104 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
34105 if test "${ac_cv_type_caddr_t+set}" = set; then
34106   echo $ECHO_N "(cached) $ECHO_C" >&6
34107 else
34108   cat >conftest.$ac_ext <<_ACEOF
34109 /* confdefs.h.  */
34110 _ACEOF
34111 cat confdefs.h >>conftest.$ac_ext
34112 cat >>conftest.$ac_ext <<_ACEOF
34113 /* end confdefs.h.  */
34114 $ac_includes_default
34115 int
34116 main ()
34117 {
34118 if ((caddr_t *) 0)
34119   return 0;
34120 if (sizeof (caddr_t))
34121   return 0;
34122   ;
34123   return 0;
34124 }
34125 _ACEOF
34126 rm -f conftest.$ac_objext
34127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34128   (eval $ac_compile) 2>conftest.er1
34129   ac_status=$?
34130   grep -v '^ *+' conftest.er1 >conftest.err
34131   rm -f conftest.er1
34132   cat conftest.err >&5
34133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134   (exit $ac_status); } &&
34135          { ac_try='test -z "$ac_c_werror_flag"
34136                          || test ! -s conftest.err'
34137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34138   (eval $ac_try) 2>&5
34139   ac_status=$?
34140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141   (exit $ac_status); }; } &&
34142          { ac_try='test -s conftest.$ac_objext'
34143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34144   (eval $ac_try) 2>&5
34145   ac_status=$?
34146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147   (exit $ac_status); }; }; then
34148   ac_cv_type_caddr_t=yes
34149 else
34150   echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34152
34153 ac_cv_type_caddr_t=no
34154 fi
34155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34156 fi
34157 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
34158 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
34159 if test $ac_cv_type_caddr_t = yes; then
34160   :
34161 else
34162
34163 cat >>confdefs.h <<_ACEOF
34164 #define caddr_t char *
34165 _ACEOF
34166
34167 fi
34168
34169 echo "$as_me:$LINENO: checking for size_t" >&5
34170 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34171 if test "${ac_cv_type_size_t+set}" = set; then
34172   echo $ECHO_N "(cached) $ECHO_C" >&6
34173 else
34174   cat >conftest.$ac_ext <<_ACEOF
34175 /* confdefs.h.  */
34176 _ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h.  */
34180 $ac_includes_default
34181 int
34182 main ()
34183 {
34184 if ((size_t *) 0)
34185   return 0;
34186 if (sizeof (size_t))
34187   return 0;
34188   ;
34189   return 0;
34190 }
34191 _ACEOF
34192 rm -f conftest.$ac_objext
34193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34194   (eval $ac_compile) 2>conftest.er1
34195   ac_status=$?
34196   grep -v '^ *+' conftest.er1 >conftest.err
34197   rm -f conftest.er1
34198   cat conftest.err >&5
34199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200   (exit $ac_status); } &&
34201          { ac_try='test -z "$ac_c_werror_flag"
34202                          || test ! -s conftest.err'
34203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204   (eval $ac_try) 2>&5
34205   ac_status=$?
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); }; } &&
34208          { ac_try='test -s conftest.$ac_objext'
34209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210   (eval $ac_try) 2>&5
34211   ac_status=$?
34212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213   (exit $ac_status); }; }; then
34214   ac_cv_type_size_t=yes
34215 else
34216   echo "$as_me: failed program was:" >&5
34217 sed 's/^/| /' conftest.$ac_ext >&5
34218
34219 ac_cv_type_size_t=no
34220 fi
34221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34222 fi
34223 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34224 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34225 if test $ac_cv_type_size_t = yes; then
34226   :
34227 else
34228
34229 cat >>confdefs.h <<_ACEOF
34230 #define size_t unsigned
34231 _ACEOF
34232
34233 fi
34234
34235
34236 echo "$as_me:$LINENO: checking for long long" >&5
34237 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34238 if test "${ac_cv_type_long_long+set}" = set; then
34239   echo $ECHO_N "(cached) $ECHO_C" >&6
34240 else
34241   cat >conftest.$ac_ext <<_ACEOF
34242 /* confdefs.h.  */
34243 _ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h.  */
34247 $ac_includes_default
34248 int
34249 main ()
34250 {
34251 if ((long long *) 0)
34252   return 0;
34253 if (sizeof (long long))
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_long_long=yes
34282 else
34283   echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34285
34286 ac_cv_type_long_long=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_long_long" >&5
34291 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34292 if test $ac_cv_type_long_long = yes; then
34293
34294 cat >>confdefs.h <<_ACEOF
34295 #define HAVE_LONG_LONG 1
34296 _ACEOF
34297
34298
34299 fi
34300
34301 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34302 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
34303 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34304   echo $ECHO_N "(cached) $ECHO_C" >&6
34305 else
34306   cat >conftest.$ac_ext <<_ACEOF
34307 /* confdefs.h.  */
34308 _ACEOF
34309 cat confdefs.h >>conftest.$ac_ext
34310 cat >>conftest.$ac_ext <<_ACEOF
34311 /* end confdefs.h.  */
34312 $ac_includes_default
34313 int
34314 main ()
34315 {
34316 if ((ptrdiff_t *) 0)
34317   return 0;
34318 if (sizeof (ptrdiff_t))
34319   return 0;
34320   ;
34321   return 0;
34322 }
34323 _ACEOF
34324 rm -f conftest.$ac_objext
34325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34326   (eval $ac_compile) 2>conftest.er1
34327   ac_status=$?
34328   grep -v '^ *+' conftest.er1 >conftest.err
34329   rm -f conftest.er1
34330   cat conftest.err >&5
34331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332   (exit $ac_status); } &&
34333          { ac_try='test -z "$ac_c_werror_flag"
34334                          || test ! -s conftest.err'
34335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34336   (eval $ac_try) 2>&5
34337   ac_status=$?
34338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339   (exit $ac_status); }; } &&
34340          { ac_try='test -s conftest.$ac_objext'
34341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34342   (eval $ac_try) 2>&5
34343   ac_status=$?
34344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345   (exit $ac_status); }; }; then
34346   ac_cv_type_ptrdiff_t=yes
34347 else
34348   echo "$as_me: failed program was:" >&5
34349 sed 's/^/| /' conftest.$ac_ext >&5
34350
34351 ac_cv_type_ptrdiff_t=no
34352 fi
34353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34354 fi
34355 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34356 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34357 if test $ac_cv_type_ptrdiff_t = yes; then
34358
34359 cat >>confdefs.h <<_ACEOF
34360 #define HAVE_PTRDIFF_T 1
34361 _ACEOF
34362
34363
34364 fi
34365
34366
34367 echo "$as_me:$LINENO: checking for socklen_t" >&5
34368 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34369 if test "${ac_cv_type_socklen_t+set}" = set; then
34370   echo $ECHO_N "(cached) $ECHO_C" >&6
34371 else
34372   cat >conftest.$ac_ext <<_ACEOF
34373 /* confdefs.h.  */
34374 _ACEOF
34375 cat confdefs.h >>conftest.$ac_ext
34376 cat >>conftest.$ac_ext <<_ACEOF
34377 /* end confdefs.h.  */
34378 $ac_includes_default
34379 #ifdef HAVE_SYS_SOCKET_H
34380 #include <sys/socket.h>
34381 #endif
34382
34383
34384 int
34385 main ()
34386 {
34387 if ((socklen_t *) 0)
34388   return 0;
34389 if (sizeof (socklen_t))
34390   return 0;
34391   ;
34392   return 0;
34393 }
34394 _ACEOF
34395 rm -f conftest.$ac_objext
34396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34397   (eval $ac_compile) 2>conftest.er1
34398   ac_status=$?
34399   grep -v '^ *+' conftest.er1 >conftest.err
34400   rm -f conftest.er1
34401   cat conftest.err >&5
34402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403   (exit $ac_status); } &&
34404          { ac_try='test -z "$ac_c_werror_flag"
34405                          || test ! -s conftest.err'
34406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407   (eval $ac_try) 2>&5
34408   ac_status=$?
34409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410   (exit $ac_status); }; } &&
34411          { ac_try='test -s conftest.$ac_objext'
34412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413   (eval $ac_try) 2>&5
34414   ac_status=$?
34415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416   (exit $ac_status); }; }; then
34417   ac_cv_type_socklen_t=yes
34418 else
34419   echo "$as_me: failed program was:" >&5
34420 sed 's/^/| /' conftest.$ac_ext >&5
34421
34422 ac_cv_type_socklen_t=no
34423 fi
34424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34425 fi
34426 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34427 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34428 if test $ac_cv_type_socklen_t = yes; then
34429   :
34430 else
34431
34432 cat >>confdefs.h <<_ACEOF
34433 #define socklen_t int
34434 _ACEOF
34435
34436 fi
34437
34438
34439 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34440 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34441 if test "${ac_cv_type_signal+set}" = set; then
34442   echo $ECHO_N "(cached) $ECHO_C" >&6
34443 else
34444   cat >conftest.$ac_ext <<_ACEOF
34445 /* confdefs.h.  */
34446 _ACEOF
34447 cat confdefs.h >>conftest.$ac_ext
34448 cat >>conftest.$ac_ext <<_ACEOF
34449 /* end confdefs.h.  */
34450 #include <sys/types.h>
34451 #include <signal.h>
34452 #ifdef signal
34453 # undef signal
34454 #endif
34455 #ifdef __cplusplus
34456 extern "C" void (*signal (int, void (*)(int)))(int);
34457 #else
34458 void (*signal ()) ();
34459 #endif
34460
34461 int
34462 main ()
34463 {
34464 int i;
34465   ;
34466   return 0;
34467 }
34468 _ACEOF
34469 rm -f conftest.$ac_objext
34470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34471   (eval $ac_compile) 2>conftest.er1
34472   ac_status=$?
34473   grep -v '^ *+' conftest.er1 >conftest.err
34474   rm -f conftest.er1
34475   cat conftest.err >&5
34476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477   (exit $ac_status); } &&
34478          { ac_try='test -z "$ac_c_werror_flag"
34479                          || test ! -s conftest.err'
34480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481   (eval $ac_try) 2>&5
34482   ac_status=$?
34483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484   (exit $ac_status); }; } &&
34485          { ac_try='test -s conftest.$ac_objext'
34486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487   (eval $ac_try) 2>&5
34488   ac_status=$?
34489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490   (exit $ac_status); }; }; then
34491   ac_cv_type_signal=void
34492 else
34493   echo "$as_me: failed program was:" >&5
34494 sed 's/^/| /' conftest.$ac_ext >&5
34495
34496 ac_cv_type_signal=int
34497 fi
34498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34499 fi
34500 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34501 echo "${ECHO_T}$ac_cv_type_signal" >&6
34502
34503 cat >>confdefs.h <<_ACEOF
34504 #define RETSIGTYPE $ac_cv_type_signal
34505 _ACEOF
34506
34507
34508
34509 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34510 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34511 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34512   echo $ECHO_N "(cached) $ECHO_C" >&6
34513 else
34514   cat >conftest.$ac_ext <<_ACEOF
34515 /* confdefs.h.  */
34516 _ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h.  */
34520 $ac_includes_default
34521 #include <signal.h>
34522
34523
34524 int
34525 main ()
34526 {
34527 if ((sig_atomic_t *) 0)
34528   return 0;
34529 if (sizeof (sig_atomic_t))
34530   return 0;
34531   ;
34532   return 0;
34533 }
34534 _ACEOF
34535 rm -f conftest.$ac_objext
34536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34537   (eval $ac_compile) 2>conftest.er1
34538   ac_status=$?
34539   grep -v '^ *+' conftest.er1 >conftest.err
34540   rm -f conftest.er1
34541   cat conftest.err >&5
34542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543   (exit $ac_status); } &&
34544          { ac_try='test -z "$ac_c_werror_flag"
34545                          || test ! -s conftest.err'
34546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547   (eval $ac_try) 2>&5
34548   ac_status=$?
34549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550   (exit $ac_status); }; } &&
34551          { ac_try='test -s conftest.$ac_objext'
34552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553   (eval $ac_try) 2>&5
34554   ac_status=$?
34555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556   (exit $ac_status); }; }; then
34557   ac_cv_type_sig_atomic_t=yes
34558 else
34559   echo "$as_me: failed program was:" >&5
34560 sed 's/^/| /' conftest.$ac_ext >&5
34561
34562 ac_cv_type_sig_atomic_t=no
34563 fi
34564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34565 fi
34566 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34567 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34568 if test $ac_cv_type_sig_atomic_t = yes; then
34569   :
34570 else
34571
34572 cat >>confdefs.h <<_ACEOF
34573 #define sig_atomic_t int
34574 _ACEOF
34575
34576 fi
34577
34578
34579 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34580 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34581 if test "${ac_cv_type_uid_t+set}" = set; then
34582   echo $ECHO_N "(cached) $ECHO_C" >&6
34583 else
34584   cat >conftest.$ac_ext <<_ACEOF
34585 /* confdefs.h.  */
34586 _ACEOF
34587 cat confdefs.h >>conftest.$ac_ext
34588 cat >>conftest.$ac_ext <<_ACEOF
34589 /* end confdefs.h.  */
34590 #include <sys/types.h>
34591
34592 _ACEOF
34593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34594   $EGREP "uid_t" >/dev/null 2>&1; then
34595   ac_cv_type_uid_t=yes
34596 else
34597   ac_cv_type_uid_t=no
34598 fi
34599 rm -f conftest*
34600
34601 fi
34602 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34603 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34604 if test $ac_cv_type_uid_t = no; then
34605
34606 cat >>confdefs.h <<\_ACEOF
34607 #define uid_t int
34608 _ACEOF
34609
34610
34611 cat >>confdefs.h <<\_ACEOF
34612 #define gid_t int
34613 _ACEOF
34614
34615 fi
34616
34617
34618 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34619 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34620 if test "${ac_cv_header_time+set}" = set; then
34621   echo $ECHO_N "(cached) $ECHO_C" >&6
34622 else
34623   cat >conftest.$ac_ext <<_ACEOF
34624 /* confdefs.h.  */
34625 _ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h.  */
34629 #include <sys/types.h>
34630 #include <sys/time.h>
34631 #include <time.h>
34632
34633 int
34634 main ()
34635 {
34636 if ((struct tm *) 0)
34637 return 0;
34638   ;
34639   return 0;
34640 }
34641 _ACEOF
34642 rm -f conftest.$ac_objext
34643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34644   (eval $ac_compile) 2>conftest.er1
34645   ac_status=$?
34646   grep -v '^ *+' conftest.er1 >conftest.err
34647   rm -f conftest.er1
34648   cat conftest.err >&5
34649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650   (exit $ac_status); } &&
34651          { ac_try='test -z "$ac_c_werror_flag"
34652                          || test ! -s conftest.err'
34653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34654   (eval $ac_try) 2>&5
34655   ac_status=$?
34656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657   (exit $ac_status); }; } &&
34658          { ac_try='test -s conftest.$ac_objext'
34659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34660   (eval $ac_try) 2>&5
34661   ac_status=$?
34662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663   (exit $ac_status); }; }; then
34664   ac_cv_header_time=yes
34665 else
34666   echo "$as_me: failed program was:" >&5
34667 sed 's/^/| /' conftest.$ac_ext >&5
34668
34669 ac_cv_header_time=no
34670 fi
34671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34672 fi
34673 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34674 echo "${ECHO_T}$ac_cv_header_time" >&6
34675 if test $ac_cv_header_time = yes; then
34676
34677 cat >>confdefs.h <<\_ACEOF
34678 #define TIME_WITH_SYS_TIME 1
34679 _ACEOF
34680
34681 fi
34682
34683 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34684 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34685 if test "${ac_cv_struct_tm+set}" = set; then
34686   echo $ECHO_N "(cached) $ECHO_C" >&6
34687 else
34688   cat >conftest.$ac_ext <<_ACEOF
34689 /* confdefs.h.  */
34690 _ACEOF
34691 cat confdefs.h >>conftest.$ac_ext
34692 cat >>conftest.$ac_ext <<_ACEOF
34693 /* end confdefs.h.  */
34694 #include <sys/types.h>
34695 #include <time.h>
34696
34697 int
34698 main ()
34699 {
34700 struct tm *tp; tp->tm_sec;
34701   ;
34702   return 0;
34703 }
34704 _ACEOF
34705 rm -f conftest.$ac_objext
34706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34707   (eval $ac_compile) 2>conftest.er1
34708   ac_status=$?
34709   grep -v '^ *+' conftest.er1 >conftest.err
34710   rm -f conftest.er1
34711   cat conftest.err >&5
34712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713   (exit $ac_status); } &&
34714          { ac_try='test -z "$ac_c_werror_flag"
34715                          || test ! -s conftest.err'
34716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717   (eval $ac_try) 2>&5
34718   ac_status=$?
34719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720   (exit $ac_status); }; } &&
34721          { ac_try='test -s conftest.$ac_objext'
34722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34723   (eval $ac_try) 2>&5
34724   ac_status=$?
34725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726   (exit $ac_status); }; }; then
34727   ac_cv_struct_tm=time.h
34728 else
34729   echo "$as_me: failed program was:" >&5
34730 sed 's/^/| /' conftest.$ac_ext >&5
34731
34732 ac_cv_struct_tm=sys/time.h
34733 fi
34734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34735 fi
34736 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34737 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34738 if test $ac_cv_struct_tm = sys/time.h; then
34739
34740 cat >>confdefs.h <<\_ACEOF
34741 #define TM_IN_SYS_TIME 1
34742 _ACEOF
34743
34744 fi
34745
34746 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34747 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34748 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34749   echo $ECHO_N "(cached) $ECHO_C" >&6
34750 else
34751   cat >conftest.$ac_ext <<_ACEOF
34752 /* confdefs.h.  */
34753 _ACEOF
34754 cat confdefs.h >>conftest.$ac_ext
34755 cat >>conftest.$ac_ext <<_ACEOF
34756 /* end confdefs.h.  */
34757 $ac_includes_default
34758 int
34759 main ()
34760 {
34761 static struct stat ac_aggr;
34762 if (ac_aggr.st_blksize)
34763 return 0;
34764   ;
34765   return 0;
34766 }
34767 _ACEOF
34768 rm -f conftest.$ac_objext
34769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34770   (eval $ac_compile) 2>conftest.er1
34771   ac_status=$?
34772   grep -v '^ *+' conftest.er1 >conftest.err
34773   rm -f conftest.er1
34774   cat conftest.err >&5
34775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776   (exit $ac_status); } &&
34777          { ac_try='test -z "$ac_c_werror_flag"
34778                          || test ! -s conftest.err'
34779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34780   (eval $ac_try) 2>&5
34781   ac_status=$?
34782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783   (exit $ac_status); }; } &&
34784          { ac_try='test -s conftest.$ac_objext'
34785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34786   (eval $ac_try) 2>&5
34787   ac_status=$?
34788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789   (exit $ac_status); }; }; then
34790   ac_cv_member_struct_stat_st_blksize=yes
34791 else
34792   echo "$as_me: failed program was:" >&5
34793 sed 's/^/| /' conftest.$ac_ext >&5
34794
34795 cat >conftest.$ac_ext <<_ACEOF
34796 /* confdefs.h.  */
34797 _ACEOF
34798 cat confdefs.h >>conftest.$ac_ext
34799 cat >>conftest.$ac_ext <<_ACEOF
34800 /* end confdefs.h.  */
34801 $ac_includes_default
34802 int
34803 main ()
34804 {
34805 static struct stat ac_aggr;
34806 if (sizeof ac_aggr.st_blksize)
34807 return 0;
34808   ;
34809   return 0;
34810 }
34811 _ACEOF
34812 rm -f conftest.$ac_objext
34813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34814   (eval $ac_compile) 2>conftest.er1
34815   ac_status=$?
34816   grep -v '^ *+' conftest.er1 >conftest.err
34817   rm -f conftest.er1
34818   cat conftest.err >&5
34819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820   (exit $ac_status); } &&
34821          { ac_try='test -z "$ac_c_werror_flag"
34822                          || test ! -s conftest.err'
34823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34824   (eval $ac_try) 2>&5
34825   ac_status=$?
34826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827   (exit $ac_status); }; } &&
34828          { ac_try='test -s conftest.$ac_objext'
34829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34830   (eval $ac_try) 2>&5
34831   ac_status=$?
34832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833   (exit $ac_status); }; }; then
34834   ac_cv_member_struct_stat_st_blksize=yes
34835 else
34836   echo "$as_me: failed program was:" >&5
34837 sed 's/^/| /' conftest.$ac_ext >&5
34838
34839 ac_cv_member_struct_stat_st_blksize=no
34840 fi
34841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34842 fi
34843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34844 fi
34845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34846 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34847 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34848
34849 cat >>confdefs.h <<_ACEOF
34850 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34851 _ACEOF
34852
34853
34854 fi
34855
34856 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34857 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34858 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34859   echo $ECHO_N "(cached) $ECHO_C" >&6
34860 else
34861   cat >conftest.$ac_ext <<_ACEOF
34862 /* confdefs.h.  */
34863 _ACEOF
34864 cat confdefs.h >>conftest.$ac_ext
34865 cat >>conftest.$ac_ext <<_ACEOF
34866 /* end confdefs.h.  */
34867 $ac_includes_default
34868 #include <pwd.h>
34869
34870 int
34871 main ()
34872 {
34873 static struct passwd ac_aggr;
34874 if (ac_aggr.pw_gecos)
34875 return 0;
34876   ;
34877   return 0;
34878 }
34879 _ACEOF
34880 rm -f conftest.$ac_objext
34881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34882   (eval $ac_compile) 2>conftest.er1
34883   ac_status=$?
34884   grep -v '^ *+' conftest.er1 >conftest.err
34885   rm -f conftest.er1
34886   cat conftest.err >&5
34887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888   (exit $ac_status); } &&
34889          { ac_try='test -z "$ac_c_werror_flag"
34890                          || test ! -s conftest.err'
34891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892   (eval $ac_try) 2>&5
34893   ac_status=$?
34894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); }; } &&
34896          { ac_try='test -s conftest.$ac_objext'
34897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34898   (eval $ac_try) 2>&5
34899   ac_status=$?
34900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901   (exit $ac_status); }; }; then
34902   ac_cv_member_struct_passwd_pw_gecos=yes
34903 else
34904   echo "$as_me: failed program was:" >&5
34905 sed 's/^/| /' conftest.$ac_ext >&5
34906
34907 cat >conftest.$ac_ext <<_ACEOF
34908 /* confdefs.h.  */
34909 _ACEOF
34910 cat confdefs.h >>conftest.$ac_ext
34911 cat >>conftest.$ac_ext <<_ACEOF
34912 /* end confdefs.h.  */
34913 $ac_includes_default
34914 #include <pwd.h>
34915
34916 int
34917 main ()
34918 {
34919 static struct passwd ac_aggr;
34920 if (sizeof ac_aggr.pw_gecos)
34921 return 0;
34922   ;
34923   return 0;
34924 }
34925 _ACEOF
34926 rm -f conftest.$ac_objext
34927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34928   (eval $ac_compile) 2>conftest.er1
34929   ac_status=$?
34930   grep -v '^ *+' conftest.er1 >conftest.err
34931   rm -f conftest.er1
34932   cat conftest.err >&5
34933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934   (exit $ac_status); } &&
34935          { ac_try='test -z "$ac_c_werror_flag"
34936                          || test ! -s conftest.err'
34937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34938   (eval $ac_try) 2>&5
34939   ac_status=$?
34940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941   (exit $ac_status); }; } &&
34942          { ac_try='test -s conftest.$ac_objext'
34943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34944   (eval $ac_try) 2>&5
34945   ac_status=$?
34946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947   (exit $ac_status); }; }; then
34948   ac_cv_member_struct_passwd_pw_gecos=yes
34949 else
34950   echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34952
34953 ac_cv_member_struct_passwd_pw_gecos=no
34954 fi
34955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34956 fi
34957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34958 fi
34959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34960 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34961 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34962
34963 cat >>confdefs.h <<_ACEOF
34964 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34965 _ACEOF
34966
34967
34968 fi
34969
34970 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34971 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34972 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34973   echo $ECHO_N "(cached) $ECHO_C" >&6
34974 else
34975   cat >conftest.$ac_ext <<_ACEOF
34976 /* confdefs.h.  */
34977 _ACEOF
34978 cat confdefs.h >>conftest.$ac_ext
34979 cat >>conftest.$ac_ext <<_ACEOF
34980 /* end confdefs.h.  */
34981 $ac_includes_default
34982 #include <pwd.h>
34983
34984 int
34985 main ()
34986 {
34987 static struct passwd ac_aggr;
34988 if (ac_aggr.pw_passwd)
34989 return 0;
34990   ;
34991   return 0;
34992 }
34993 _ACEOF
34994 rm -f conftest.$ac_objext
34995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34996   (eval $ac_compile) 2>conftest.er1
34997   ac_status=$?
34998   grep -v '^ *+' conftest.er1 >conftest.err
34999   rm -f conftest.er1
35000   cat conftest.err >&5
35001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002   (exit $ac_status); } &&
35003          { ac_try='test -z "$ac_c_werror_flag"
35004                          || test ! -s conftest.err'
35005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006   (eval $ac_try) 2>&5
35007   ac_status=$?
35008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009   (exit $ac_status); }; } &&
35010          { ac_try='test -s conftest.$ac_objext'
35011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35012   (eval $ac_try) 2>&5
35013   ac_status=$?
35014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015   (exit $ac_status); }; }; then
35016   ac_cv_member_struct_passwd_pw_passwd=yes
35017 else
35018   echo "$as_me: failed program was:" >&5
35019 sed 's/^/| /' conftest.$ac_ext >&5
35020
35021 cat >conftest.$ac_ext <<_ACEOF
35022 /* confdefs.h.  */
35023 _ACEOF
35024 cat confdefs.h >>conftest.$ac_ext
35025 cat >>conftest.$ac_ext <<_ACEOF
35026 /* end confdefs.h.  */
35027 $ac_includes_default
35028 #include <pwd.h>
35029
35030 int
35031 main ()
35032 {
35033 static struct passwd ac_aggr;
35034 if (sizeof ac_aggr.pw_passwd)
35035 return 0;
35036   ;
35037   return 0;
35038 }
35039 _ACEOF
35040 rm -f conftest.$ac_objext
35041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35042   (eval $ac_compile) 2>conftest.er1
35043   ac_status=$?
35044   grep -v '^ *+' conftest.er1 >conftest.err
35045   rm -f conftest.er1
35046   cat conftest.err >&5
35047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048   (exit $ac_status); } &&
35049          { ac_try='test -z "$ac_c_werror_flag"
35050                          || test ! -s conftest.err'
35051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35052   (eval $ac_try) 2>&5
35053   ac_status=$?
35054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35055   (exit $ac_status); }; } &&
35056          { ac_try='test -s conftest.$ac_objext'
35057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35058   (eval $ac_try) 2>&5
35059   ac_status=$?
35060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061   (exit $ac_status); }; }; then
35062   ac_cv_member_struct_passwd_pw_passwd=yes
35063 else
35064   echo "$as_me: failed program was:" >&5
35065 sed 's/^/| /' conftest.$ac_ext >&5
35066
35067 ac_cv_member_struct_passwd_pw_passwd=no
35068 fi
35069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35070 fi
35071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35072 fi
35073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
35074 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
35075 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
35076
35077 cat >>confdefs.h <<_ACEOF
35078 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
35079 _ACEOF
35080
35081
35082 fi
35083
35084
35085 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
35086 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
35087 if test "${ol_cv_c_upper_lower+set}" = set; then
35088   echo $ECHO_N "(cached) $ECHO_C" >&6
35089 else
35090
35091         if test "$cross_compiling" = yes; then
35092   ol_cv_c_upper_lower=safe
35093 else
35094   cat >conftest.$ac_ext <<_ACEOF
35095 /* confdefs.h.  */
35096 _ACEOF
35097 cat confdefs.h >>conftest.$ac_ext
35098 cat >>conftest.$ac_ext <<_ACEOF
35099 /* end confdefs.h.  */
35100
35101 #include <ctype.h>
35102 main()
35103 {
35104         if ('C' == toupper('C'))
35105                 exit(0);
35106         else
35107                 exit(1);
35108 }
35109 _ACEOF
35110 rm -f conftest$ac_exeext
35111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35112   (eval $ac_link) 2>&5
35113   ac_status=$?
35114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35117   (eval $ac_try) 2>&5
35118   ac_status=$?
35119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120   (exit $ac_status); }; }; then
35121   ol_cv_c_upper_lower=no
35122 else
35123   echo "$as_me: program exited with status $ac_status" >&5
35124 echo "$as_me: failed program was:" >&5
35125 sed 's/^/| /' conftest.$ac_ext >&5
35126
35127 ( exit $ac_status )
35128 ol_cv_c_upper_lower=yes
35129 fi
35130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35131 fi
35132 fi
35133 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
35134 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
35135 if test $ol_cv_c_upper_lower != no ; then
35136
35137 cat >>confdefs.h <<\_ACEOF
35138 #define C_UPPER_LOWER 1
35139 _ACEOF
35140
35141 fi
35142
35143 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35144 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
35145 if test "${ac_cv_c_const+set}" = set; then
35146   echo $ECHO_N "(cached) $ECHO_C" >&6
35147 else
35148   cat >conftest.$ac_ext <<_ACEOF
35149 /* confdefs.h.  */
35150 _ACEOF
35151 cat confdefs.h >>conftest.$ac_ext
35152 cat >>conftest.$ac_ext <<_ACEOF
35153 /* end confdefs.h.  */
35154
35155 int
35156 main ()
35157 {
35158 /* FIXME: Include the comments suggested by Paul. */
35159 #ifndef __cplusplus
35160   /* Ultrix mips cc rejects this.  */
35161   typedef int charset[2];
35162   const charset x;
35163   /* SunOS 4.1.1 cc rejects this.  */
35164   char const *const *ccp;
35165   char **p;
35166   /* NEC SVR4.0.2 mips cc rejects this.  */
35167   struct point {int x, y;};
35168   static struct point const zero = {0,0};
35169   /* AIX XL C 1.02.0.0 rejects this.
35170      It does not let you subtract one const X* pointer from another in
35171      an arm of an if-expression whose if-part is not a constant
35172      expression */
35173   const char *g = "string";
35174   ccp = &g + (g ? g-g : 0);
35175   /* HPUX 7.0 cc rejects these. */
35176   ++ccp;
35177   p = (char**) ccp;
35178   ccp = (char const *const *) p;
35179   { /* SCO 3.2v4 cc rejects this.  */
35180     char *t;
35181     char const *s = 0 ? (char *) 0 : (char const *) 0;
35182
35183     *t++ = 0;
35184   }
35185   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
35186     int x[] = {25, 17};
35187     const int *foo = &x[0];
35188     ++foo;
35189   }
35190   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35191     typedef const int *iptr;
35192     iptr p = 0;
35193     ++p;
35194   }
35195   { /* AIX XL C 1.02.0.0 rejects this saying
35196        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35197     struct s { int j; const int *ap[3]; };
35198     struct s *b; b->j = 5;
35199   }
35200   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35201     const int foo = 10;
35202   }
35203 #endif
35204
35205   ;
35206   return 0;
35207 }
35208 _ACEOF
35209 rm -f conftest.$ac_objext
35210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35211   (eval $ac_compile) 2>conftest.er1
35212   ac_status=$?
35213   grep -v '^ *+' conftest.er1 >conftest.err
35214   rm -f conftest.er1
35215   cat conftest.err >&5
35216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217   (exit $ac_status); } &&
35218          { ac_try='test -z "$ac_c_werror_flag"
35219                          || test ! -s conftest.err'
35220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35221   (eval $ac_try) 2>&5
35222   ac_status=$?
35223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35224   (exit $ac_status); }; } &&
35225          { ac_try='test -s conftest.$ac_objext'
35226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35227   (eval $ac_try) 2>&5
35228   ac_status=$?
35229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230   (exit $ac_status); }; }; then
35231   ac_cv_c_const=yes
35232 else
35233   echo "$as_me: failed program was:" >&5
35234 sed 's/^/| /' conftest.$ac_ext >&5
35235
35236 ac_cv_c_const=no
35237 fi
35238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35239 fi
35240 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35241 echo "${ECHO_T}$ac_cv_c_const" >&6
35242 if test $ac_cv_c_const = no; then
35243
35244 cat >>confdefs.h <<\_ACEOF
35245 #define const
35246 _ACEOF
35247
35248 fi
35249
35250 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35251 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35252 if test "${ol_cv_c_volatile+set}" = set; then
35253   echo $ECHO_N "(cached) $ECHO_C" >&6
35254 else
35255   cat >conftest.$ac_ext <<_ACEOF
35256 /* confdefs.h.  */
35257 _ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h.  */
35261 int x, y, z;
35262 int
35263 main ()
35264 {
35265 volatile int a; int * volatile b = x ? &y : &z;
35266       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35267       *b = 0;
35268   ;
35269   return 0;
35270 }
35271 _ACEOF
35272 rm -f conftest.$ac_objext
35273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35274   (eval $ac_compile) 2>conftest.er1
35275   ac_status=$?
35276   grep -v '^ *+' conftest.er1 >conftest.err
35277   rm -f conftest.er1
35278   cat conftest.err >&5
35279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280   (exit $ac_status); } &&
35281          { ac_try='test -z "$ac_c_werror_flag"
35282                          || test ! -s conftest.err'
35283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35284   (eval $ac_try) 2>&5
35285   ac_status=$?
35286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287   (exit $ac_status); }; } &&
35288          { ac_try='test -s conftest.$ac_objext'
35289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290   (eval $ac_try) 2>&5
35291   ac_status=$?
35292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293   (exit $ac_status); }; }; then
35294   ol_cv_c_volatile=yes
35295 else
35296   echo "$as_me: failed program was:" >&5
35297 sed 's/^/| /' conftest.$ac_ext >&5
35298
35299 ol_cv_c_volatile=no
35300 fi
35301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35302 fi
35303 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35304 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35305   if test $ol_cv_c_volatile = yes; then
35306     :
35307   else
35308
35309 cat >>confdefs.h <<\_ACEOF
35310 #define volatile
35311 _ACEOF
35312
35313   fi
35314
35315
35316 if test $cross_compiling = yes ; then
35317         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35318 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35319
35320 cat >>confdefs.h <<\_ACEOF
35321 #define CROSS_COMPILING 1
35322 _ACEOF
35323
35324 else
35325         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35326 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35327 if test "${ac_cv_c_bigendian+set}" = set; then
35328   echo $ECHO_N "(cached) $ECHO_C" >&6
35329 else
35330   # See if sys/param.h defines the BYTE_ORDER macro.
35331 cat >conftest.$ac_ext <<_ACEOF
35332 /* confdefs.h.  */
35333 _ACEOF
35334 cat confdefs.h >>conftest.$ac_ext
35335 cat >>conftest.$ac_ext <<_ACEOF
35336 /* end confdefs.h.  */
35337 #include <sys/types.h>
35338 #include <sys/param.h>
35339
35340 int
35341 main ()
35342 {
35343 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35344  bogus endian macros
35345 #endif
35346
35347   ;
35348   return 0;
35349 }
35350 _ACEOF
35351 rm -f conftest.$ac_objext
35352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35353   (eval $ac_compile) 2>conftest.er1
35354   ac_status=$?
35355   grep -v '^ *+' conftest.er1 >conftest.err
35356   rm -f conftest.er1
35357   cat conftest.err >&5
35358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359   (exit $ac_status); } &&
35360          { ac_try='test -z "$ac_c_werror_flag"
35361                          || test ! -s conftest.err'
35362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35363   (eval $ac_try) 2>&5
35364   ac_status=$?
35365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366   (exit $ac_status); }; } &&
35367          { ac_try='test -s conftest.$ac_objext'
35368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35369   (eval $ac_try) 2>&5
35370   ac_status=$?
35371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372   (exit $ac_status); }; }; then
35373   # It does; now see whether it defined to BIG_ENDIAN or not.
35374 cat >conftest.$ac_ext <<_ACEOF
35375 /* confdefs.h.  */
35376 _ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h.  */
35380 #include <sys/types.h>
35381 #include <sys/param.h>
35382
35383 int
35384 main ()
35385 {
35386 #if BYTE_ORDER != BIG_ENDIAN
35387  not big endian
35388 #endif
35389
35390   ;
35391   return 0;
35392 }
35393 _ACEOF
35394 rm -f conftest.$ac_objext
35395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35396   (eval $ac_compile) 2>conftest.er1
35397   ac_status=$?
35398   grep -v '^ *+' conftest.er1 >conftest.err
35399   rm -f conftest.er1
35400   cat conftest.err >&5
35401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402   (exit $ac_status); } &&
35403          { ac_try='test -z "$ac_c_werror_flag"
35404                          || test ! -s conftest.err'
35405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35406   (eval $ac_try) 2>&5
35407   ac_status=$?
35408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409   (exit $ac_status); }; } &&
35410          { ac_try='test -s conftest.$ac_objext'
35411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412   (eval $ac_try) 2>&5
35413   ac_status=$?
35414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415   (exit $ac_status); }; }; then
35416   ac_cv_c_bigendian=yes
35417 else
35418   echo "$as_me: failed program was:" >&5
35419 sed 's/^/| /' conftest.$ac_ext >&5
35420
35421 ac_cv_c_bigendian=no
35422 fi
35423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35424 else
35425   echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.$ac_ext >&5
35427
35428 # It does not; compile a test program.
35429 if test "$cross_compiling" = yes; then
35430   # try to guess the endianness by grepping values into an object file
35431   ac_cv_c_bigendian=unknown
35432   cat >conftest.$ac_ext <<_ACEOF
35433 /* confdefs.h.  */
35434 _ACEOF
35435 cat confdefs.h >>conftest.$ac_ext
35436 cat >>conftest.$ac_ext <<_ACEOF
35437 /* end confdefs.h.  */
35438 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35439 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35440 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35441 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35442 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35443 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35444 int
35445 main ()
35446 {
35447  _ascii (); _ebcdic ();
35448   ;
35449   return 0;
35450 }
35451 _ACEOF
35452 rm -f conftest.$ac_objext
35453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35454   (eval $ac_compile) 2>conftest.er1
35455   ac_status=$?
35456   grep -v '^ *+' conftest.er1 >conftest.err
35457   rm -f conftest.er1
35458   cat conftest.err >&5
35459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460   (exit $ac_status); } &&
35461          { ac_try='test -z "$ac_c_werror_flag"
35462                          || test ! -s conftest.err'
35463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35464   (eval $ac_try) 2>&5
35465   ac_status=$?
35466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467   (exit $ac_status); }; } &&
35468          { ac_try='test -s conftest.$ac_objext'
35469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35470   (eval $ac_try) 2>&5
35471   ac_status=$?
35472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473   (exit $ac_status); }; }; then
35474   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35475   ac_cv_c_bigendian=yes
35476 fi
35477 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35478   if test "$ac_cv_c_bigendian" = unknown; then
35479     ac_cv_c_bigendian=no
35480   else
35481     # finding both strings is unlikely to happen, but who knows?
35482     ac_cv_c_bigendian=unknown
35483   fi
35484 fi
35485 else
35486   echo "$as_me: failed program was:" >&5
35487 sed 's/^/| /' conftest.$ac_ext >&5
35488
35489 fi
35490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35491 else
35492   cat >conftest.$ac_ext <<_ACEOF
35493 /* confdefs.h.  */
35494 _ACEOF
35495 cat confdefs.h >>conftest.$ac_ext
35496 cat >>conftest.$ac_ext <<_ACEOF
35497 /* end confdefs.h.  */
35498 int
35499 main ()
35500 {
35501   /* Are we little or big endian?  From Harbison&Steele.  */
35502   union
35503   {
35504     long l;
35505     char c[sizeof (long)];
35506   } u;
35507   u.l = 1;
35508   exit (u.c[sizeof (long) - 1] == 1);
35509 }
35510 _ACEOF
35511 rm -f conftest$ac_exeext
35512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35513   (eval $ac_link) 2>&5
35514   ac_status=$?
35515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
35522   ac_cv_c_bigendian=no
35523 else
35524   echo "$as_me: program exited with status $ac_status" >&5
35525 echo "$as_me: failed program was:" >&5
35526 sed 's/^/| /' conftest.$ac_ext >&5
35527
35528 ( exit $ac_status )
35529 ac_cv_c_bigendian=yes
35530 fi
35531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35532 fi
35533 fi
35534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35535 fi
35536 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35537 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35538 case $ac_cv_c_bigendian in
35539   yes)
35540
35541 cat >>confdefs.h <<\_ACEOF
35542 #define WORDS_BIGENDIAN 1
35543 _ACEOF
35544  ;;
35545   no)
35546      ;;
35547   *)
35548     { { echo "$as_me:$LINENO: error: unknown endianness
35549 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35550 echo "$as_me: error: unknown endianness
35551 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35552    { (exit 1); exit 1; }; } ;;
35553 esac
35554
35555 fi
35556
35557 echo "$as_me:$LINENO: checking for short" >&5
35558 echo $ECHO_N "checking for short... $ECHO_C" >&6
35559 if test "${ac_cv_type_short+set}" = set; then
35560   echo $ECHO_N "(cached) $ECHO_C" >&6
35561 else
35562   cat >conftest.$ac_ext <<_ACEOF
35563 /* confdefs.h.  */
35564 _ACEOF
35565 cat confdefs.h >>conftest.$ac_ext
35566 cat >>conftest.$ac_ext <<_ACEOF
35567 /* end confdefs.h.  */
35568 $ac_includes_default
35569 int
35570 main ()
35571 {
35572 if ((short *) 0)
35573   return 0;
35574 if (sizeof (short))
35575   return 0;
35576   ;
35577   return 0;
35578 }
35579 _ACEOF
35580 rm -f conftest.$ac_objext
35581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35582   (eval $ac_compile) 2>conftest.er1
35583   ac_status=$?
35584   grep -v '^ *+' conftest.er1 >conftest.err
35585   rm -f conftest.er1
35586   cat conftest.err >&5
35587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588   (exit $ac_status); } &&
35589          { ac_try='test -z "$ac_c_werror_flag"
35590                          || test ! -s conftest.err'
35591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35592   (eval $ac_try) 2>&5
35593   ac_status=$?
35594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595   (exit $ac_status); }; } &&
35596          { ac_try='test -s conftest.$ac_objext'
35597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35598   (eval $ac_try) 2>&5
35599   ac_status=$?
35600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601   (exit $ac_status); }; }; then
35602   ac_cv_type_short=yes
35603 else
35604   echo "$as_me: failed program was:" >&5
35605 sed 's/^/| /' conftest.$ac_ext >&5
35606
35607 ac_cv_type_short=no
35608 fi
35609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35610 fi
35611 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35612 echo "${ECHO_T}$ac_cv_type_short" >&6
35613
35614 echo "$as_me:$LINENO: checking size of short" >&5
35615 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35616 if test "${ac_cv_sizeof_short+set}" = set; then
35617   echo $ECHO_N "(cached) $ECHO_C" >&6
35618 else
35619   if test "$ac_cv_type_short" = yes; then
35620   # The cast to unsigned long works around a bug in the HP C Compiler
35621   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35622   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35623   # This bug is HP SR number 8606223364.
35624   if test "$cross_compiling" = yes; then
35625   # Depending upon the size, compute the lo and hi bounds.
35626 cat >conftest.$ac_ext <<_ACEOF
35627 /* confdefs.h.  */
35628 _ACEOF
35629 cat confdefs.h >>conftest.$ac_ext
35630 cat >>conftest.$ac_ext <<_ACEOF
35631 /* end confdefs.h.  */
35632 $ac_includes_default
35633 int
35634 main ()
35635 {
35636 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35637 test_array [0] = 0
35638
35639   ;
35640   return 0;
35641 }
35642 _ACEOF
35643 rm -f conftest.$ac_objext
35644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35645   (eval $ac_compile) 2>conftest.er1
35646   ac_status=$?
35647   grep -v '^ *+' conftest.er1 >conftest.err
35648   rm -f conftest.er1
35649   cat conftest.err >&5
35650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651   (exit $ac_status); } &&
35652          { ac_try='test -z "$ac_c_werror_flag"
35653                          || test ! -s conftest.err'
35654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35655   (eval $ac_try) 2>&5
35656   ac_status=$?
35657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658   (exit $ac_status); }; } &&
35659          { ac_try='test -s conftest.$ac_objext'
35660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661   (eval $ac_try) 2>&5
35662   ac_status=$?
35663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664   (exit $ac_status); }; }; then
35665   ac_lo=0 ac_mid=0
35666   while :; do
35667     cat >conftest.$ac_ext <<_ACEOF
35668 /* confdefs.h.  */
35669 _ACEOF
35670 cat confdefs.h >>conftest.$ac_ext
35671 cat >>conftest.$ac_ext <<_ACEOF
35672 /* end confdefs.h.  */
35673 $ac_includes_default
35674 int
35675 main ()
35676 {
35677 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35678 test_array [0] = 0
35679
35680   ;
35681   return 0;
35682 }
35683 _ACEOF
35684 rm -f conftest.$ac_objext
35685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35686   (eval $ac_compile) 2>conftest.er1
35687   ac_status=$?
35688   grep -v '^ *+' conftest.er1 >conftest.err
35689   rm -f conftest.er1
35690   cat conftest.err >&5
35691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692   (exit $ac_status); } &&
35693          { ac_try='test -z "$ac_c_werror_flag"
35694                          || test ! -s conftest.err'
35695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35696   (eval $ac_try) 2>&5
35697   ac_status=$?
35698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35699   (exit $ac_status); }; } &&
35700          { ac_try='test -s conftest.$ac_objext'
35701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35702   (eval $ac_try) 2>&5
35703   ac_status=$?
35704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705   (exit $ac_status); }; }; then
35706   ac_hi=$ac_mid; break
35707 else
35708   echo "$as_me: failed program was:" >&5
35709 sed 's/^/| /' conftest.$ac_ext >&5
35710
35711 ac_lo=`expr $ac_mid + 1`
35712                     if test $ac_lo -le $ac_mid; then
35713                       ac_lo= ac_hi=
35714                       break
35715                     fi
35716                     ac_mid=`expr 2 '*' $ac_mid + 1`
35717 fi
35718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35719   done
35720 else
35721   echo "$as_me: failed program was:" >&5
35722 sed 's/^/| /' conftest.$ac_ext >&5
35723
35724 cat >conftest.$ac_ext <<_ACEOF
35725 /* confdefs.h.  */
35726 _ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h.  */
35730 $ac_includes_default
35731 int
35732 main ()
35733 {
35734 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35735 test_array [0] = 0
35736
35737   ;
35738   return 0;
35739 }
35740 _ACEOF
35741 rm -f conftest.$ac_objext
35742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35743   (eval $ac_compile) 2>conftest.er1
35744   ac_status=$?
35745   grep -v '^ *+' conftest.er1 >conftest.err
35746   rm -f conftest.er1
35747   cat conftest.err >&5
35748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749   (exit $ac_status); } &&
35750          { ac_try='test -z "$ac_c_werror_flag"
35751                          || test ! -s conftest.err'
35752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35753   (eval $ac_try) 2>&5
35754   ac_status=$?
35755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); }; } &&
35757          { ac_try='test -s conftest.$ac_objext'
35758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35759   (eval $ac_try) 2>&5
35760   ac_status=$?
35761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762   (exit $ac_status); }; }; then
35763   ac_hi=-1 ac_mid=-1
35764   while :; do
35765     cat >conftest.$ac_ext <<_ACEOF
35766 /* confdefs.h.  */
35767 _ACEOF
35768 cat confdefs.h >>conftest.$ac_ext
35769 cat >>conftest.$ac_ext <<_ACEOF
35770 /* end confdefs.h.  */
35771 $ac_includes_default
35772 int
35773 main ()
35774 {
35775 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35776 test_array [0] = 0
35777
35778   ;
35779   return 0;
35780 }
35781 _ACEOF
35782 rm -f conftest.$ac_objext
35783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35784   (eval $ac_compile) 2>conftest.er1
35785   ac_status=$?
35786   grep -v '^ *+' conftest.er1 >conftest.err
35787   rm -f conftest.er1
35788   cat conftest.err >&5
35789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35790   (exit $ac_status); } &&
35791          { ac_try='test -z "$ac_c_werror_flag"
35792                          || test ! -s conftest.err'
35793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35794   (eval $ac_try) 2>&5
35795   ac_status=$?
35796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797   (exit $ac_status); }; } &&
35798          { ac_try='test -s conftest.$ac_objext'
35799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35800   (eval $ac_try) 2>&5
35801   ac_status=$?
35802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803   (exit $ac_status); }; }; then
35804   ac_lo=$ac_mid; break
35805 else
35806   echo "$as_me: failed program was:" >&5
35807 sed 's/^/| /' conftest.$ac_ext >&5
35808
35809 ac_hi=`expr '(' $ac_mid ')' - 1`
35810                        if test $ac_mid -le $ac_hi; then
35811                          ac_lo= ac_hi=
35812                          break
35813                        fi
35814                        ac_mid=`expr 2 '*' $ac_mid`
35815 fi
35816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35817   done
35818 else
35819   echo "$as_me: failed program was:" >&5
35820 sed 's/^/| /' conftest.$ac_ext >&5
35821
35822 ac_lo= ac_hi=
35823 fi
35824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35825 fi
35826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35827 # Binary search between lo and hi bounds.
35828 while test "x$ac_lo" != "x$ac_hi"; do
35829   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35830   cat >conftest.$ac_ext <<_ACEOF
35831 /* confdefs.h.  */
35832 _ACEOF
35833 cat confdefs.h >>conftest.$ac_ext
35834 cat >>conftest.$ac_ext <<_ACEOF
35835 /* end confdefs.h.  */
35836 $ac_includes_default
35837 int
35838 main ()
35839 {
35840 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35841 test_array [0] = 0
35842
35843   ;
35844   return 0;
35845 }
35846 _ACEOF
35847 rm -f conftest.$ac_objext
35848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35849   (eval $ac_compile) 2>conftest.er1
35850   ac_status=$?
35851   grep -v '^ *+' conftest.er1 >conftest.err
35852   rm -f conftest.er1
35853   cat conftest.err >&5
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); } &&
35856          { ac_try='test -z "$ac_c_werror_flag"
35857                          || test ! -s conftest.err'
35858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859   (eval $ac_try) 2>&5
35860   ac_status=$?
35861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862   (exit $ac_status); }; } &&
35863          { ac_try='test -s conftest.$ac_objext'
35864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35865   (eval $ac_try) 2>&5
35866   ac_status=$?
35867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868   (exit $ac_status); }; }; then
35869   ac_hi=$ac_mid
35870 else
35871   echo "$as_me: failed program was:" >&5
35872 sed 's/^/| /' conftest.$ac_ext >&5
35873
35874 ac_lo=`expr '(' $ac_mid ')' + 1`
35875 fi
35876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35877 done
35878 case $ac_lo in
35879 ?*) ac_cv_sizeof_short=$ac_lo;;
35880 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35881 See \`config.log' for more details." >&5
35882 echo "$as_me: error: cannot compute sizeof (short), 77
35883 See \`config.log' for more details." >&2;}
35884    { (exit 1); exit 1; }; } ;;
35885 esac
35886 else
35887   if test "$cross_compiling" = yes; then
35888   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35889 See \`config.log' for more details." >&5
35890 echo "$as_me: error: cannot run test program while cross compiling
35891 See \`config.log' for more details." >&2;}
35892    { (exit 1); exit 1; }; }
35893 else
35894   cat >conftest.$ac_ext <<_ACEOF
35895 /* confdefs.h.  */
35896 _ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h.  */
35900 $ac_includes_default
35901 long longval () { return (long) (sizeof (short)); }
35902 unsigned long ulongval () { return (long) (sizeof (short)); }
35903 #include <stdio.h>
35904 #include <stdlib.h>
35905 int
35906 main ()
35907 {
35908
35909   FILE *f = fopen ("conftest.val", "w");
35910   if (! f)
35911     exit (1);
35912   if (((long) (sizeof (short))) < 0)
35913     {
35914       long i = longval ();
35915       if (i != ((long) (sizeof (short))))
35916         exit (1);
35917       fprintf (f, "%ld\n", i);
35918     }
35919   else
35920     {
35921       unsigned long i = ulongval ();
35922       if (i != ((long) (sizeof (short))))
35923         exit (1);
35924       fprintf (f, "%lu\n", i);
35925     }
35926   exit (ferror (f) || fclose (f) != 0);
35927
35928   ;
35929   return 0;
35930 }
35931 _ACEOF
35932 rm -f conftest$ac_exeext
35933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35934   (eval $ac_link) 2>&5
35935   ac_status=$?
35936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35939   (eval $ac_try) 2>&5
35940   ac_status=$?
35941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942   (exit $ac_status); }; }; then
35943   ac_cv_sizeof_short=`cat conftest.val`
35944 else
35945   echo "$as_me: program exited with status $ac_status" >&5
35946 echo "$as_me: failed program was:" >&5
35947 sed 's/^/| /' conftest.$ac_ext >&5
35948
35949 ( exit $ac_status )
35950 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35951 See \`config.log' for more details." >&5
35952 echo "$as_me: error: cannot compute sizeof (short), 77
35953 See \`config.log' for more details." >&2;}
35954    { (exit 1); exit 1; }; }
35955 fi
35956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35957 fi
35958 fi
35959 rm -f conftest.val
35960 else
35961   ac_cv_sizeof_short=0
35962 fi
35963 fi
35964 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35965 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35966 cat >>confdefs.h <<_ACEOF
35967 #define SIZEOF_SHORT $ac_cv_sizeof_short
35968 _ACEOF
35969
35970
35971 echo "$as_me:$LINENO: checking for int" >&5
35972 echo $ECHO_N "checking for int... $ECHO_C" >&6
35973 if test "${ac_cv_type_int+set}" = set; then
35974   echo $ECHO_N "(cached) $ECHO_C" >&6
35975 else
35976   cat >conftest.$ac_ext <<_ACEOF
35977 /* confdefs.h.  */
35978 _ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h.  */
35982 $ac_includes_default
35983 int
35984 main ()
35985 {
35986 if ((int *) 0)
35987   return 0;
35988 if (sizeof (int))
35989   return 0;
35990   ;
35991   return 0;
35992 }
35993 _ACEOF
35994 rm -f conftest.$ac_objext
35995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996   (eval $ac_compile) 2>conftest.er1
35997   ac_status=$?
35998   grep -v '^ *+' conftest.er1 >conftest.err
35999   rm -f conftest.er1
36000   cat conftest.err >&5
36001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002   (exit $ac_status); } &&
36003          { ac_try='test -z "$ac_c_werror_flag"
36004                          || test ! -s conftest.err'
36005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36006   (eval $ac_try) 2>&5
36007   ac_status=$?
36008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009   (exit $ac_status); }; } &&
36010          { ac_try='test -s conftest.$ac_objext'
36011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36012   (eval $ac_try) 2>&5
36013   ac_status=$?
36014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015   (exit $ac_status); }; }; then
36016   ac_cv_type_int=yes
36017 else
36018   echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36020
36021 ac_cv_type_int=no
36022 fi
36023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36024 fi
36025 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
36026 echo "${ECHO_T}$ac_cv_type_int" >&6
36027
36028 echo "$as_me:$LINENO: checking size of int" >&5
36029 echo $ECHO_N "checking size of int... $ECHO_C" >&6
36030 if test "${ac_cv_sizeof_int+set}" = set; then
36031   echo $ECHO_N "(cached) $ECHO_C" >&6
36032 else
36033   if test "$ac_cv_type_int" = yes; then
36034   # The cast to unsigned long works around a bug in the HP C Compiler
36035   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36036   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36037   # This bug is HP SR number 8606223364.
36038   if test "$cross_compiling" = yes; then
36039   # Depending upon the size, compute the lo and hi bounds.
36040 cat >conftest.$ac_ext <<_ACEOF
36041 /* confdefs.h.  */
36042 _ACEOF
36043 cat confdefs.h >>conftest.$ac_ext
36044 cat >>conftest.$ac_ext <<_ACEOF
36045 /* end confdefs.h.  */
36046 $ac_includes_default
36047 int
36048 main ()
36049 {
36050 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
36051 test_array [0] = 0
36052
36053   ;
36054   return 0;
36055 }
36056 _ACEOF
36057 rm -f conftest.$ac_objext
36058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36059   (eval $ac_compile) 2>conftest.er1
36060   ac_status=$?
36061   grep -v '^ *+' conftest.er1 >conftest.err
36062   rm -f conftest.er1
36063   cat conftest.err >&5
36064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065   (exit $ac_status); } &&
36066          { ac_try='test -z "$ac_c_werror_flag"
36067                          || test ! -s conftest.err'
36068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36069   (eval $ac_try) 2>&5
36070   ac_status=$?
36071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072   (exit $ac_status); }; } &&
36073          { ac_try='test -s conftest.$ac_objext'
36074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36075   (eval $ac_try) 2>&5
36076   ac_status=$?
36077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078   (exit $ac_status); }; }; then
36079   ac_lo=0 ac_mid=0
36080   while :; do
36081     cat >conftest.$ac_ext <<_ACEOF
36082 /* confdefs.h.  */
36083 _ACEOF
36084 cat confdefs.h >>conftest.$ac_ext
36085 cat >>conftest.$ac_ext <<_ACEOF
36086 /* end confdefs.h.  */
36087 $ac_includes_default
36088 int
36089 main ()
36090 {
36091 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36092 test_array [0] = 0
36093
36094   ;
36095   return 0;
36096 }
36097 _ACEOF
36098 rm -f conftest.$ac_objext
36099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36100   (eval $ac_compile) 2>conftest.er1
36101   ac_status=$?
36102   grep -v '^ *+' conftest.er1 >conftest.err
36103   rm -f conftest.er1
36104   cat conftest.err >&5
36105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106   (exit $ac_status); } &&
36107          { ac_try='test -z "$ac_c_werror_flag"
36108                          || test ! -s conftest.err'
36109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36110   (eval $ac_try) 2>&5
36111   ac_status=$?
36112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113   (exit $ac_status); }; } &&
36114          { ac_try='test -s conftest.$ac_objext'
36115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36116   (eval $ac_try) 2>&5
36117   ac_status=$?
36118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119   (exit $ac_status); }; }; then
36120   ac_hi=$ac_mid; break
36121 else
36122   echo "$as_me: failed program was:" >&5
36123 sed 's/^/| /' conftest.$ac_ext >&5
36124
36125 ac_lo=`expr $ac_mid + 1`
36126                     if test $ac_lo -le $ac_mid; then
36127                       ac_lo= ac_hi=
36128                       break
36129                     fi
36130                     ac_mid=`expr 2 '*' $ac_mid + 1`
36131 fi
36132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36133   done
36134 else
36135   echo "$as_me: failed program was:" >&5
36136 sed 's/^/| /' conftest.$ac_ext >&5
36137
36138 cat >conftest.$ac_ext <<_ACEOF
36139 /* confdefs.h.  */
36140 _ACEOF
36141 cat confdefs.h >>conftest.$ac_ext
36142 cat >>conftest.$ac_ext <<_ACEOF
36143 /* end confdefs.h.  */
36144 $ac_includes_default
36145 int
36146 main ()
36147 {
36148 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
36149 test_array [0] = 0
36150
36151   ;
36152   return 0;
36153 }
36154 _ACEOF
36155 rm -f conftest.$ac_objext
36156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36157   (eval $ac_compile) 2>conftest.er1
36158   ac_status=$?
36159   grep -v '^ *+' conftest.er1 >conftest.err
36160   rm -f conftest.er1
36161   cat conftest.err >&5
36162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163   (exit $ac_status); } &&
36164          { ac_try='test -z "$ac_c_werror_flag"
36165                          || test ! -s conftest.err'
36166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36167   (eval $ac_try) 2>&5
36168   ac_status=$?
36169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170   (exit $ac_status); }; } &&
36171          { ac_try='test -s conftest.$ac_objext'
36172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36173   (eval $ac_try) 2>&5
36174   ac_status=$?
36175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176   (exit $ac_status); }; }; then
36177   ac_hi=-1 ac_mid=-1
36178   while :; do
36179     cat >conftest.$ac_ext <<_ACEOF
36180 /* confdefs.h.  */
36181 _ACEOF
36182 cat confdefs.h >>conftest.$ac_ext
36183 cat >>conftest.$ac_ext <<_ACEOF
36184 /* end confdefs.h.  */
36185 $ac_includes_default
36186 int
36187 main ()
36188 {
36189 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
36190 test_array [0] = 0
36191
36192   ;
36193   return 0;
36194 }
36195 _ACEOF
36196 rm -f conftest.$ac_objext
36197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36198   (eval $ac_compile) 2>conftest.er1
36199   ac_status=$?
36200   grep -v '^ *+' conftest.er1 >conftest.err
36201   rm -f conftest.er1
36202   cat conftest.err >&5
36203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204   (exit $ac_status); } &&
36205          { ac_try='test -z "$ac_c_werror_flag"
36206                          || test ! -s conftest.err'
36207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36208   (eval $ac_try) 2>&5
36209   ac_status=$?
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); }; } &&
36212          { ac_try='test -s conftest.$ac_objext'
36213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36214   (eval $ac_try) 2>&5
36215   ac_status=$?
36216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217   (exit $ac_status); }; }; then
36218   ac_lo=$ac_mid; break
36219 else
36220   echo "$as_me: failed program was:" >&5
36221 sed 's/^/| /' conftest.$ac_ext >&5
36222
36223 ac_hi=`expr '(' $ac_mid ')' - 1`
36224                        if test $ac_mid -le $ac_hi; then
36225                          ac_lo= ac_hi=
36226                          break
36227                        fi
36228                        ac_mid=`expr 2 '*' $ac_mid`
36229 fi
36230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36231   done
36232 else
36233   echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36235
36236 ac_lo= ac_hi=
36237 fi
36238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36239 fi
36240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36241 # Binary search between lo and hi bounds.
36242 while test "x$ac_lo" != "x$ac_hi"; do
36243   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36244   cat >conftest.$ac_ext <<_ACEOF
36245 /* confdefs.h.  */
36246 _ACEOF
36247 cat confdefs.h >>conftest.$ac_ext
36248 cat >>conftest.$ac_ext <<_ACEOF
36249 /* end confdefs.h.  */
36250 $ac_includes_default
36251 int
36252 main ()
36253 {
36254 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36255 test_array [0] = 0
36256
36257   ;
36258   return 0;
36259 }
36260 _ACEOF
36261 rm -f conftest.$ac_objext
36262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36263   (eval $ac_compile) 2>conftest.er1
36264   ac_status=$?
36265   grep -v '^ *+' conftest.er1 >conftest.err
36266   rm -f conftest.er1
36267   cat conftest.err >&5
36268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269   (exit $ac_status); } &&
36270          { ac_try='test -z "$ac_c_werror_flag"
36271                          || test ! -s conftest.err'
36272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273   (eval $ac_try) 2>&5
36274   ac_status=$?
36275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); }; } &&
36277          { ac_try='test -s conftest.$ac_objext'
36278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279   (eval $ac_try) 2>&5
36280   ac_status=$?
36281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282   (exit $ac_status); }; }; then
36283   ac_hi=$ac_mid
36284 else
36285   echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36287
36288 ac_lo=`expr '(' $ac_mid ')' + 1`
36289 fi
36290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36291 done
36292 case $ac_lo in
36293 ?*) ac_cv_sizeof_int=$ac_lo;;
36294 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36295 See \`config.log' for more details." >&5
36296 echo "$as_me: error: cannot compute sizeof (int), 77
36297 See \`config.log' for more details." >&2;}
36298    { (exit 1); exit 1; }; } ;;
36299 esac
36300 else
36301   if test "$cross_compiling" = yes; then
36302   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36303 See \`config.log' for more details." >&5
36304 echo "$as_me: error: cannot run test program while cross compiling
36305 See \`config.log' for more details." >&2;}
36306    { (exit 1); exit 1; }; }
36307 else
36308   cat >conftest.$ac_ext <<_ACEOF
36309 /* confdefs.h.  */
36310 _ACEOF
36311 cat confdefs.h >>conftest.$ac_ext
36312 cat >>conftest.$ac_ext <<_ACEOF
36313 /* end confdefs.h.  */
36314 $ac_includes_default
36315 long longval () { return (long) (sizeof (int)); }
36316 unsigned long ulongval () { return (long) (sizeof (int)); }
36317 #include <stdio.h>
36318 #include <stdlib.h>
36319 int
36320 main ()
36321 {
36322
36323   FILE *f = fopen ("conftest.val", "w");
36324   if (! f)
36325     exit (1);
36326   if (((long) (sizeof (int))) < 0)
36327     {
36328       long i = longval ();
36329       if (i != ((long) (sizeof (int))))
36330         exit (1);
36331       fprintf (f, "%ld\n", i);
36332     }
36333   else
36334     {
36335       unsigned long i = ulongval ();
36336       if (i != ((long) (sizeof (int))))
36337         exit (1);
36338       fprintf (f, "%lu\n", i);
36339     }
36340   exit (ferror (f) || fclose (f) != 0);
36341
36342   ;
36343   return 0;
36344 }
36345 _ACEOF
36346 rm -f conftest$ac_exeext
36347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36348   (eval $ac_link) 2>&5
36349   ac_status=$?
36350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36353   (eval $ac_try) 2>&5
36354   ac_status=$?
36355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356   (exit $ac_status); }; }; then
36357   ac_cv_sizeof_int=`cat conftest.val`
36358 else
36359   echo "$as_me: program exited with status $ac_status" >&5
36360 echo "$as_me: failed program was:" >&5
36361 sed 's/^/| /' conftest.$ac_ext >&5
36362
36363 ( exit $ac_status )
36364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36365 See \`config.log' for more details." >&5
36366 echo "$as_me: error: cannot compute sizeof (int), 77
36367 See \`config.log' for more details." >&2;}
36368    { (exit 1); exit 1; }; }
36369 fi
36370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36371 fi
36372 fi
36373 rm -f conftest.val
36374 else
36375   ac_cv_sizeof_int=0
36376 fi
36377 fi
36378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36379 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36380 cat >>confdefs.h <<_ACEOF
36381 #define SIZEOF_INT $ac_cv_sizeof_int
36382 _ACEOF
36383
36384
36385 echo "$as_me:$LINENO: checking for long" >&5
36386 echo $ECHO_N "checking for long... $ECHO_C" >&6
36387 if test "${ac_cv_type_long+set}" = set; then
36388   echo $ECHO_N "(cached) $ECHO_C" >&6
36389 else
36390   cat >conftest.$ac_ext <<_ACEOF
36391 /* confdefs.h.  */
36392 _ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h.  */
36396 $ac_includes_default
36397 int
36398 main ()
36399 {
36400 if ((long *) 0)
36401   return 0;
36402 if (sizeof (long))
36403   return 0;
36404   ;
36405   return 0;
36406 }
36407 _ACEOF
36408 rm -f conftest.$ac_objext
36409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36410   (eval $ac_compile) 2>conftest.er1
36411   ac_status=$?
36412   grep -v '^ *+' conftest.er1 >conftest.err
36413   rm -f conftest.er1
36414   cat conftest.err >&5
36415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416   (exit $ac_status); } &&
36417          { ac_try='test -z "$ac_c_werror_flag"
36418                          || test ! -s conftest.err'
36419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36420   (eval $ac_try) 2>&5
36421   ac_status=$?
36422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423   (exit $ac_status); }; } &&
36424          { ac_try='test -s conftest.$ac_objext'
36425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36426   (eval $ac_try) 2>&5
36427   ac_status=$?
36428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429   (exit $ac_status); }; }; then
36430   ac_cv_type_long=yes
36431 else
36432   echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36434
36435 ac_cv_type_long=no
36436 fi
36437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36438 fi
36439 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36440 echo "${ECHO_T}$ac_cv_type_long" >&6
36441
36442 echo "$as_me:$LINENO: checking size of long" >&5
36443 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36444 if test "${ac_cv_sizeof_long+set}" = set; then
36445   echo $ECHO_N "(cached) $ECHO_C" >&6
36446 else
36447   if test "$ac_cv_type_long" = yes; then
36448   # The cast to unsigned long works around a bug in the HP C Compiler
36449   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36450   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36451   # This bug is HP SR number 8606223364.
36452   if test "$cross_compiling" = yes; then
36453   # Depending upon the size, compute the lo and hi bounds.
36454 cat >conftest.$ac_ext <<_ACEOF
36455 /* confdefs.h.  */
36456 _ACEOF
36457 cat confdefs.h >>conftest.$ac_ext
36458 cat >>conftest.$ac_ext <<_ACEOF
36459 /* end confdefs.h.  */
36460 $ac_includes_default
36461 int
36462 main ()
36463 {
36464 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36465 test_array [0] = 0
36466
36467   ;
36468   return 0;
36469 }
36470 _ACEOF
36471 rm -f conftest.$ac_objext
36472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36473   (eval $ac_compile) 2>conftest.er1
36474   ac_status=$?
36475   grep -v '^ *+' conftest.er1 >conftest.err
36476   rm -f conftest.er1
36477   cat conftest.err >&5
36478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36479   (exit $ac_status); } &&
36480          { ac_try='test -z "$ac_c_werror_flag"
36481                          || test ! -s conftest.err'
36482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36483   (eval $ac_try) 2>&5
36484   ac_status=$?
36485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36486   (exit $ac_status); }; } &&
36487          { ac_try='test -s conftest.$ac_objext'
36488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36489   (eval $ac_try) 2>&5
36490   ac_status=$?
36491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492   (exit $ac_status); }; }; then
36493   ac_lo=0 ac_mid=0
36494   while :; do
36495     cat >conftest.$ac_ext <<_ACEOF
36496 /* confdefs.h.  */
36497 _ACEOF
36498 cat confdefs.h >>conftest.$ac_ext
36499 cat >>conftest.$ac_ext <<_ACEOF
36500 /* end confdefs.h.  */
36501 $ac_includes_default
36502 int
36503 main ()
36504 {
36505 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36506 test_array [0] = 0
36507
36508   ;
36509   return 0;
36510 }
36511 _ACEOF
36512 rm -f conftest.$ac_objext
36513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36514   (eval $ac_compile) 2>conftest.er1
36515   ac_status=$?
36516   grep -v '^ *+' conftest.er1 >conftest.err
36517   rm -f conftest.er1
36518   cat conftest.err >&5
36519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520   (exit $ac_status); } &&
36521          { ac_try='test -z "$ac_c_werror_flag"
36522                          || test ! -s conftest.err'
36523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524   (eval $ac_try) 2>&5
36525   ac_status=$?
36526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527   (exit $ac_status); }; } &&
36528          { ac_try='test -s conftest.$ac_objext'
36529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36530   (eval $ac_try) 2>&5
36531   ac_status=$?
36532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533   (exit $ac_status); }; }; then
36534   ac_hi=$ac_mid; break
36535 else
36536   echo "$as_me: failed program was:" >&5
36537 sed 's/^/| /' conftest.$ac_ext >&5
36538
36539 ac_lo=`expr $ac_mid + 1`
36540                     if test $ac_lo -le $ac_mid; then
36541                       ac_lo= ac_hi=
36542                       break
36543                     fi
36544                     ac_mid=`expr 2 '*' $ac_mid + 1`
36545 fi
36546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36547   done
36548 else
36549   echo "$as_me: failed program was:" >&5
36550 sed 's/^/| /' conftest.$ac_ext >&5
36551
36552 cat >conftest.$ac_ext <<_ACEOF
36553 /* confdefs.h.  */
36554 _ACEOF
36555 cat confdefs.h >>conftest.$ac_ext
36556 cat >>conftest.$ac_ext <<_ACEOF
36557 /* end confdefs.h.  */
36558 $ac_includes_default
36559 int
36560 main ()
36561 {
36562 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36563 test_array [0] = 0
36564
36565   ;
36566   return 0;
36567 }
36568 _ACEOF
36569 rm -f conftest.$ac_objext
36570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36571   (eval $ac_compile) 2>conftest.er1
36572   ac_status=$?
36573   grep -v '^ *+' conftest.er1 >conftest.err
36574   rm -f conftest.er1
36575   cat conftest.err >&5
36576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36577   (exit $ac_status); } &&
36578          { ac_try='test -z "$ac_c_werror_flag"
36579                          || test ! -s conftest.err'
36580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36581   (eval $ac_try) 2>&5
36582   ac_status=$?
36583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36584   (exit $ac_status); }; } &&
36585          { ac_try='test -s conftest.$ac_objext'
36586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36587   (eval $ac_try) 2>&5
36588   ac_status=$?
36589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590   (exit $ac_status); }; }; then
36591   ac_hi=-1 ac_mid=-1
36592   while :; do
36593     cat >conftest.$ac_ext <<_ACEOF
36594 /* confdefs.h.  */
36595 _ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h.  */
36599 $ac_includes_default
36600 int
36601 main ()
36602 {
36603 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36604 test_array [0] = 0
36605
36606   ;
36607   return 0;
36608 }
36609 _ACEOF
36610 rm -f conftest.$ac_objext
36611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36612   (eval $ac_compile) 2>conftest.er1
36613   ac_status=$?
36614   grep -v '^ *+' conftest.er1 >conftest.err
36615   rm -f conftest.er1
36616   cat conftest.err >&5
36617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618   (exit $ac_status); } &&
36619          { ac_try='test -z "$ac_c_werror_flag"
36620                          || test ! -s conftest.err'
36621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36622   (eval $ac_try) 2>&5
36623   ac_status=$?
36624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36625   (exit $ac_status); }; } &&
36626          { ac_try='test -s conftest.$ac_objext'
36627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36628   (eval $ac_try) 2>&5
36629   ac_status=$?
36630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631   (exit $ac_status); }; }; then
36632   ac_lo=$ac_mid; break
36633 else
36634   echo "$as_me: failed program was:" >&5
36635 sed 's/^/| /' conftest.$ac_ext >&5
36636
36637 ac_hi=`expr '(' $ac_mid ')' - 1`
36638                        if test $ac_mid -le $ac_hi; then
36639                          ac_lo= ac_hi=
36640                          break
36641                        fi
36642                        ac_mid=`expr 2 '*' $ac_mid`
36643 fi
36644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36645   done
36646 else
36647   echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36649
36650 ac_lo= ac_hi=
36651 fi
36652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36653 fi
36654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36655 # Binary search between lo and hi bounds.
36656 while test "x$ac_lo" != "x$ac_hi"; do
36657   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36658   cat >conftest.$ac_ext <<_ACEOF
36659 /* confdefs.h.  */
36660 _ACEOF
36661 cat confdefs.h >>conftest.$ac_ext
36662 cat >>conftest.$ac_ext <<_ACEOF
36663 /* end confdefs.h.  */
36664 $ac_includes_default
36665 int
36666 main ()
36667 {
36668 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36669 test_array [0] = 0
36670
36671   ;
36672   return 0;
36673 }
36674 _ACEOF
36675 rm -f conftest.$ac_objext
36676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36677   (eval $ac_compile) 2>conftest.er1
36678   ac_status=$?
36679   grep -v '^ *+' conftest.er1 >conftest.err
36680   rm -f conftest.er1
36681   cat conftest.err >&5
36682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36683   (exit $ac_status); } &&
36684          { ac_try='test -z "$ac_c_werror_flag"
36685                          || test ! -s conftest.err'
36686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36687   (eval $ac_try) 2>&5
36688   ac_status=$?
36689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690   (exit $ac_status); }; } &&
36691          { ac_try='test -s conftest.$ac_objext'
36692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36693   (eval $ac_try) 2>&5
36694   ac_status=$?
36695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36696   (exit $ac_status); }; }; then
36697   ac_hi=$ac_mid
36698 else
36699   echo "$as_me: failed program was:" >&5
36700 sed 's/^/| /' conftest.$ac_ext >&5
36701
36702 ac_lo=`expr '(' $ac_mid ')' + 1`
36703 fi
36704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36705 done
36706 case $ac_lo in
36707 ?*) ac_cv_sizeof_long=$ac_lo;;
36708 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36709 See \`config.log' for more details." >&5
36710 echo "$as_me: error: cannot compute sizeof (long), 77
36711 See \`config.log' for more details." >&2;}
36712    { (exit 1); exit 1; }; } ;;
36713 esac
36714 else
36715   if test "$cross_compiling" = yes; then
36716   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36717 See \`config.log' for more details." >&5
36718 echo "$as_me: error: cannot run test program while cross compiling
36719 See \`config.log' for more details." >&2;}
36720    { (exit 1); exit 1; }; }
36721 else
36722   cat >conftest.$ac_ext <<_ACEOF
36723 /* confdefs.h.  */
36724 _ACEOF
36725 cat confdefs.h >>conftest.$ac_ext
36726 cat >>conftest.$ac_ext <<_ACEOF
36727 /* end confdefs.h.  */
36728 $ac_includes_default
36729 long longval () { return (long) (sizeof (long)); }
36730 unsigned long ulongval () { return (long) (sizeof (long)); }
36731 #include <stdio.h>
36732 #include <stdlib.h>
36733 int
36734 main ()
36735 {
36736
36737   FILE *f = fopen ("conftest.val", "w");
36738   if (! f)
36739     exit (1);
36740   if (((long) (sizeof (long))) < 0)
36741     {
36742       long i = longval ();
36743       if (i != ((long) (sizeof (long))))
36744         exit (1);
36745       fprintf (f, "%ld\n", i);
36746     }
36747   else
36748     {
36749       unsigned long i = ulongval ();
36750       if (i != ((long) (sizeof (long))))
36751         exit (1);
36752       fprintf (f, "%lu\n", i);
36753     }
36754   exit (ferror (f) || fclose (f) != 0);
36755
36756   ;
36757   return 0;
36758 }
36759 _ACEOF
36760 rm -f conftest$ac_exeext
36761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36762   (eval $ac_link) 2>&5
36763   ac_status=$?
36764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36767   (eval $ac_try) 2>&5
36768   ac_status=$?
36769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36770   (exit $ac_status); }; }; then
36771   ac_cv_sizeof_long=`cat conftest.val`
36772 else
36773   echo "$as_me: program exited with status $ac_status" >&5
36774 echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36776
36777 ( exit $ac_status )
36778 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36779 See \`config.log' for more details." >&5
36780 echo "$as_me: error: cannot compute sizeof (long), 77
36781 See \`config.log' for more details." >&2;}
36782    { (exit 1); exit 1; }; }
36783 fi
36784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36785 fi
36786 fi
36787 rm -f conftest.val
36788 else
36789   ac_cv_sizeof_long=0
36790 fi
36791 fi
36792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36793 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36794 cat >>confdefs.h <<_ACEOF
36795 #define SIZEOF_LONG $ac_cv_sizeof_long
36796 _ACEOF
36797
36798
36799 echo "$as_me:$LINENO: checking for long long" >&5
36800 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36801 if test "${ac_cv_type_long_long+set}" = set; then
36802   echo $ECHO_N "(cached) $ECHO_C" >&6
36803 else
36804   cat >conftest.$ac_ext <<_ACEOF
36805 /* confdefs.h.  */
36806 _ACEOF
36807 cat confdefs.h >>conftest.$ac_ext
36808 cat >>conftest.$ac_ext <<_ACEOF
36809 /* end confdefs.h.  */
36810 $ac_includes_default
36811 int
36812 main ()
36813 {
36814 if ((long long *) 0)
36815   return 0;
36816 if (sizeof (long long))
36817   return 0;
36818   ;
36819   return 0;
36820 }
36821 _ACEOF
36822 rm -f conftest.$ac_objext
36823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36824   (eval $ac_compile) 2>conftest.er1
36825   ac_status=$?
36826   grep -v '^ *+' conftest.er1 >conftest.err
36827   rm -f conftest.er1
36828   cat conftest.err >&5
36829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830   (exit $ac_status); } &&
36831          { ac_try='test -z "$ac_c_werror_flag"
36832                          || test ! -s conftest.err'
36833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36834   (eval $ac_try) 2>&5
36835   ac_status=$?
36836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837   (exit $ac_status); }; } &&
36838          { ac_try='test -s conftest.$ac_objext'
36839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36840   (eval $ac_try) 2>&5
36841   ac_status=$?
36842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36843   (exit $ac_status); }; }; then
36844   ac_cv_type_long_long=yes
36845 else
36846   echo "$as_me: failed program was:" >&5
36847 sed 's/^/| /' conftest.$ac_ext >&5
36848
36849 ac_cv_type_long_long=no
36850 fi
36851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36852 fi
36853 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36854 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36855
36856 echo "$as_me:$LINENO: checking size of long long" >&5
36857 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36858 if test "${ac_cv_sizeof_long_long+set}" = set; then
36859   echo $ECHO_N "(cached) $ECHO_C" >&6
36860 else
36861   if test "$ac_cv_type_long_long" = yes; then
36862   # The cast to unsigned long works around a bug in the HP C Compiler
36863   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36864   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36865   # This bug is HP SR number 8606223364.
36866   if test "$cross_compiling" = yes; then
36867   # Depending upon the size, compute the lo and hi bounds.
36868 cat >conftest.$ac_ext <<_ACEOF
36869 /* confdefs.h.  */
36870 _ACEOF
36871 cat confdefs.h >>conftest.$ac_ext
36872 cat >>conftest.$ac_ext <<_ACEOF
36873 /* end confdefs.h.  */
36874 $ac_includes_default
36875 int
36876 main ()
36877 {
36878 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36879 test_array [0] = 0
36880
36881   ;
36882   return 0;
36883 }
36884 _ACEOF
36885 rm -f conftest.$ac_objext
36886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36887   (eval $ac_compile) 2>conftest.er1
36888   ac_status=$?
36889   grep -v '^ *+' conftest.er1 >conftest.err
36890   rm -f conftest.er1
36891   cat conftest.err >&5
36892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893   (exit $ac_status); } &&
36894          { ac_try='test -z "$ac_c_werror_flag"
36895                          || test ! -s conftest.err'
36896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36897   (eval $ac_try) 2>&5
36898   ac_status=$?
36899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900   (exit $ac_status); }; } &&
36901          { ac_try='test -s conftest.$ac_objext'
36902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36903   (eval $ac_try) 2>&5
36904   ac_status=$?
36905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36906   (exit $ac_status); }; }; then
36907   ac_lo=0 ac_mid=0
36908   while :; do
36909     cat >conftest.$ac_ext <<_ACEOF
36910 /* confdefs.h.  */
36911 _ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h.  */
36915 $ac_includes_default
36916 int
36917 main ()
36918 {
36919 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36920 test_array [0] = 0
36921
36922   ;
36923   return 0;
36924 }
36925 _ACEOF
36926 rm -f conftest.$ac_objext
36927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36928   (eval $ac_compile) 2>conftest.er1
36929   ac_status=$?
36930   grep -v '^ *+' conftest.er1 >conftest.err
36931   rm -f conftest.er1
36932   cat conftest.err >&5
36933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934   (exit $ac_status); } &&
36935          { ac_try='test -z "$ac_c_werror_flag"
36936                          || test ! -s conftest.err'
36937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36938   (eval $ac_try) 2>&5
36939   ac_status=$?
36940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36941   (exit $ac_status); }; } &&
36942          { ac_try='test -s conftest.$ac_objext'
36943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36944   (eval $ac_try) 2>&5
36945   ac_status=$?
36946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947   (exit $ac_status); }; }; then
36948   ac_hi=$ac_mid; break
36949 else
36950   echo "$as_me: failed program was:" >&5
36951 sed 's/^/| /' conftest.$ac_ext >&5
36952
36953 ac_lo=`expr $ac_mid + 1`
36954                     if test $ac_lo -le $ac_mid; then
36955                       ac_lo= ac_hi=
36956                       break
36957                     fi
36958                     ac_mid=`expr 2 '*' $ac_mid + 1`
36959 fi
36960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36961   done
36962 else
36963   echo "$as_me: failed program was:" >&5
36964 sed 's/^/| /' conftest.$ac_ext >&5
36965
36966 cat >conftest.$ac_ext <<_ACEOF
36967 /* confdefs.h.  */
36968 _ACEOF
36969 cat confdefs.h >>conftest.$ac_ext
36970 cat >>conftest.$ac_ext <<_ACEOF
36971 /* end confdefs.h.  */
36972 $ac_includes_default
36973 int
36974 main ()
36975 {
36976 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36977 test_array [0] = 0
36978
36979   ;
36980   return 0;
36981 }
36982 _ACEOF
36983 rm -f conftest.$ac_objext
36984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36985   (eval $ac_compile) 2>conftest.er1
36986   ac_status=$?
36987   grep -v '^ *+' conftest.er1 >conftest.err
36988   rm -f conftest.er1
36989   cat conftest.err >&5
36990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991   (exit $ac_status); } &&
36992          { ac_try='test -z "$ac_c_werror_flag"
36993                          || test ! -s conftest.err'
36994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36995   (eval $ac_try) 2>&5
36996   ac_status=$?
36997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36998   (exit $ac_status); }; } &&
36999          { ac_try='test -s conftest.$ac_objext'
37000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37001   (eval $ac_try) 2>&5
37002   ac_status=$?
37003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004   (exit $ac_status); }; }; then
37005   ac_hi=-1 ac_mid=-1
37006   while :; do
37007     cat >conftest.$ac_ext <<_ACEOF
37008 /* confdefs.h.  */
37009 _ACEOF
37010 cat confdefs.h >>conftest.$ac_ext
37011 cat >>conftest.$ac_ext <<_ACEOF
37012 /* end confdefs.h.  */
37013 $ac_includes_default
37014 int
37015 main ()
37016 {
37017 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
37018 test_array [0] = 0
37019
37020   ;
37021   return 0;
37022 }
37023 _ACEOF
37024 rm -f conftest.$ac_objext
37025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37026   (eval $ac_compile) 2>conftest.er1
37027   ac_status=$?
37028   grep -v '^ *+' conftest.er1 >conftest.err
37029   rm -f conftest.er1
37030   cat conftest.err >&5
37031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032   (exit $ac_status); } &&
37033          { ac_try='test -z "$ac_c_werror_flag"
37034                          || test ! -s conftest.err'
37035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37036   (eval $ac_try) 2>&5
37037   ac_status=$?
37038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37039   (exit $ac_status); }; } &&
37040          { ac_try='test -s conftest.$ac_objext'
37041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37042   (eval $ac_try) 2>&5
37043   ac_status=$?
37044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045   (exit $ac_status); }; }; then
37046   ac_lo=$ac_mid; break
37047 else
37048   echo "$as_me: failed program was:" >&5
37049 sed 's/^/| /' conftest.$ac_ext >&5
37050
37051 ac_hi=`expr '(' $ac_mid ')' - 1`
37052                        if test $ac_mid -le $ac_hi; then
37053                          ac_lo= ac_hi=
37054                          break
37055                        fi
37056                        ac_mid=`expr 2 '*' $ac_mid`
37057 fi
37058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37059   done
37060 else
37061   echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37063
37064 ac_lo= ac_hi=
37065 fi
37066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37067 fi
37068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37069 # Binary search between lo and hi bounds.
37070 while test "x$ac_lo" != "x$ac_hi"; do
37071   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37072   cat >conftest.$ac_ext <<_ACEOF
37073 /* confdefs.h.  */
37074 _ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h.  */
37078 $ac_includes_default
37079 int
37080 main ()
37081 {
37082 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
37083 test_array [0] = 0
37084
37085   ;
37086   return 0;
37087 }
37088 _ACEOF
37089 rm -f conftest.$ac_objext
37090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37091   (eval $ac_compile) 2>conftest.er1
37092   ac_status=$?
37093   grep -v '^ *+' conftest.er1 >conftest.err
37094   rm -f conftest.er1
37095   cat conftest.err >&5
37096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37097   (exit $ac_status); } &&
37098          { ac_try='test -z "$ac_c_werror_flag"
37099                          || test ! -s conftest.err'
37100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37101   (eval $ac_try) 2>&5
37102   ac_status=$?
37103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104   (exit $ac_status); }; } &&
37105          { ac_try='test -s conftest.$ac_objext'
37106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37107   (eval $ac_try) 2>&5
37108   ac_status=$?
37109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110   (exit $ac_status); }; }; then
37111   ac_hi=$ac_mid
37112 else
37113   echo "$as_me: failed program was:" >&5
37114 sed 's/^/| /' conftest.$ac_ext >&5
37115
37116 ac_lo=`expr '(' $ac_mid ')' + 1`
37117 fi
37118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37119 done
37120 case $ac_lo in
37121 ?*) ac_cv_sizeof_long_long=$ac_lo;;
37122 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37123 See \`config.log' for more details." >&5
37124 echo "$as_me: error: cannot compute sizeof (long long), 77
37125 See \`config.log' for more details." >&2;}
37126    { (exit 1); exit 1; }; } ;;
37127 esac
37128 else
37129   if test "$cross_compiling" = yes; then
37130   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37131 See \`config.log' for more details." >&5
37132 echo "$as_me: error: cannot run test program while cross compiling
37133 See \`config.log' for more details." >&2;}
37134    { (exit 1); exit 1; }; }
37135 else
37136   cat >conftest.$ac_ext <<_ACEOF
37137 /* confdefs.h.  */
37138 _ACEOF
37139 cat confdefs.h >>conftest.$ac_ext
37140 cat >>conftest.$ac_ext <<_ACEOF
37141 /* end confdefs.h.  */
37142 $ac_includes_default
37143 long longval () { return (long) (sizeof (long long)); }
37144 unsigned long ulongval () { return (long) (sizeof (long long)); }
37145 #include <stdio.h>
37146 #include <stdlib.h>
37147 int
37148 main ()
37149 {
37150
37151   FILE *f = fopen ("conftest.val", "w");
37152   if (! f)
37153     exit (1);
37154   if (((long) (sizeof (long long))) < 0)
37155     {
37156       long i = longval ();
37157       if (i != ((long) (sizeof (long long))))
37158         exit (1);
37159       fprintf (f, "%ld\n", i);
37160     }
37161   else
37162     {
37163       unsigned long i = ulongval ();
37164       if (i != ((long) (sizeof (long long))))
37165         exit (1);
37166       fprintf (f, "%lu\n", i);
37167     }
37168   exit (ferror (f) || fclose (f) != 0);
37169
37170   ;
37171   return 0;
37172 }
37173 _ACEOF
37174 rm -f conftest$ac_exeext
37175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37176   (eval $ac_link) 2>&5
37177   ac_status=$?
37178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37181   (eval $ac_try) 2>&5
37182   ac_status=$?
37183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184   (exit $ac_status); }; }; then
37185   ac_cv_sizeof_long_long=`cat conftest.val`
37186 else
37187   echo "$as_me: program exited with status $ac_status" >&5
37188 echo "$as_me: failed program was:" >&5
37189 sed 's/^/| /' conftest.$ac_ext >&5
37190
37191 ( exit $ac_status )
37192 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37193 See \`config.log' for more details." >&5
37194 echo "$as_me: error: cannot compute sizeof (long long), 77
37195 See \`config.log' for more details." >&2;}
37196    { (exit 1); exit 1; }; }
37197 fi
37198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37199 fi
37200 fi
37201 rm -f conftest.val
37202 else
37203   ac_cv_sizeof_long_long=0
37204 fi
37205 fi
37206 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
37207 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
37208 cat >>confdefs.h <<_ACEOF
37209 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37210 _ACEOF
37211
37212
37213 echo "$as_me:$LINENO: checking for wchar_t" >&5
37214 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
37215 if test "${ac_cv_type_wchar_t+set}" = set; then
37216   echo $ECHO_N "(cached) $ECHO_C" >&6
37217 else
37218   cat >conftest.$ac_ext <<_ACEOF
37219 /* confdefs.h.  */
37220 _ACEOF
37221 cat confdefs.h >>conftest.$ac_ext
37222 cat >>conftest.$ac_ext <<_ACEOF
37223 /* end confdefs.h.  */
37224 $ac_includes_default
37225 int
37226 main ()
37227 {
37228 if ((wchar_t *) 0)
37229   return 0;
37230 if (sizeof (wchar_t))
37231   return 0;
37232   ;
37233   return 0;
37234 }
37235 _ACEOF
37236 rm -f conftest.$ac_objext
37237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37238   (eval $ac_compile) 2>conftest.er1
37239   ac_status=$?
37240   grep -v '^ *+' conftest.er1 >conftest.err
37241   rm -f conftest.er1
37242   cat conftest.err >&5
37243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244   (exit $ac_status); } &&
37245          { ac_try='test -z "$ac_c_werror_flag"
37246                          || test ! -s conftest.err'
37247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37248   (eval $ac_try) 2>&5
37249   ac_status=$?
37250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251   (exit $ac_status); }; } &&
37252          { ac_try='test -s conftest.$ac_objext'
37253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37254   (eval $ac_try) 2>&5
37255   ac_status=$?
37256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257   (exit $ac_status); }; }; then
37258   ac_cv_type_wchar_t=yes
37259 else
37260   echo "$as_me: failed program was:" >&5
37261 sed 's/^/| /' conftest.$ac_ext >&5
37262
37263 ac_cv_type_wchar_t=no
37264 fi
37265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37266 fi
37267 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37268 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37269
37270 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37271 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37272 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37273   echo $ECHO_N "(cached) $ECHO_C" >&6
37274 else
37275   if test "$ac_cv_type_wchar_t" = yes; then
37276   # The cast to unsigned long works around a bug in the HP C Compiler
37277   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37278   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37279   # This bug is HP SR number 8606223364.
37280   if test "$cross_compiling" = yes; then
37281   # Depending upon the size, compute the lo and hi bounds.
37282 cat >conftest.$ac_ext <<_ACEOF
37283 /* confdefs.h.  */
37284 _ACEOF
37285 cat confdefs.h >>conftest.$ac_ext
37286 cat >>conftest.$ac_ext <<_ACEOF
37287 /* end confdefs.h.  */
37288 $ac_includes_default
37289 int
37290 main ()
37291 {
37292 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37293 test_array [0] = 0
37294
37295   ;
37296   return 0;
37297 }
37298 _ACEOF
37299 rm -f conftest.$ac_objext
37300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37301   (eval $ac_compile) 2>conftest.er1
37302   ac_status=$?
37303   grep -v '^ *+' conftest.er1 >conftest.err
37304   rm -f conftest.er1
37305   cat conftest.err >&5
37306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307   (exit $ac_status); } &&
37308          { ac_try='test -z "$ac_c_werror_flag"
37309                          || test ! -s conftest.err'
37310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37311   (eval $ac_try) 2>&5
37312   ac_status=$?
37313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37314   (exit $ac_status); }; } &&
37315          { ac_try='test -s conftest.$ac_objext'
37316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37317   (eval $ac_try) 2>&5
37318   ac_status=$?
37319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320   (exit $ac_status); }; }; then
37321   ac_lo=0 ac_mid=0
37322   while :; do
37323     cat >conftest.$ac_ext <<_ACEOF
37324 /* confdefs.h.  */
37325 _ACEOF
37326 cat confdefs.h >>conftest.$ac_ext
37327 cat >>conftest.$ac_ext <<_ACEOF
37328 /* end confdefs.h.  */
37329 $ac_includes_default
37330 int
37331 main ()
37332 {
37333 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37334 test_array [0] = 0
37335
37336   ;
37337   return 0;
37338 }
37339 _ACEOF
37340 rm -f conftest.$ac_objext
37341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37342   (eval $ac_compile) 2>conftest.er1
37343   ac_status=$?
37344   grep -v '^ *+' conftest.er1 >conftest.err
37345   rm -f conftest.er1
37346   cat conftest.err >&5
37347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348   (exit $ac_status); } &&
37349          { ac_try='test -z "$ac_c_werror_flag"
37350                          || test ! -s conftest.err'
37351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352   (eval $ac_try) 2>&5
37353   ac_status=$?
37354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355   (exit $ac_status); }; } &&
37356          { ac_try='test -s conftest.$ac_objext'
37357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358   (eval $ac_try) 2>&5
37359   ac_status=$?
37360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361   (exit $ac_status); }; }; then
37362   ac_hi=$ac_mid; break
37363 else
37364   echo "$as_me: failed program was:" >&5
37365 sed 's/^/| /' conftest.$ac_ext >&5
37366
37367 ac_lo=`expr $ac_mid + 1`
37368                     if test $ac_lo -le $ac_mid; then
37369                       ac_lo= ac_hi=
37370                       break
37371                     fi
37372                     ac_mid=`expr 2 '*' $ac_mid + 1`
37373 fi
37374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37375   done
37376 else
37377   echo "$as_me: failed program was:" >&5
37378 sed 's/^/| /' conftest.$ac_ext >&5
37379
37380 cat >conftest.$ac_ext <<_ACEOF
37381 /* confdefs.h.  */
37382 _ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h.  */
37386 $ac_includes_default
37387 int
37388 main ()
37389 {
37390 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37391 test_array [0] = 0
37392
37393   ;
37394   return 0;
37395 }
37396 _ACEOF
37397 rm -f conftest.$ac_objext
37398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37399   (eval $ac_compile) 2>conftest.er1
37400   ac_status=$?
37401   grep -v '^ *+' conftest.er1 >conftest.err
37402   rm -f conftest.er1
37403   cat conftest.err >&5
37404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405   (exit $ac_status); } &&
37406          { ac_try='test -z "$ac_c_werror_flag"
37407                          || test ! -s conftest.err'
37408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409   (eval $ac_try) 2>&5
37410   ac_status=$?
37411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412   (exit $ac_status); }; } &&
37413          { ac_try='test -s conftest.$ac_objext'
37414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415   (eval $ac_try) 2>&5
37416   ac_status=$?
37417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418   (exit $ac_status); }; }; then
37419   ac_hi=-1 ac_mid=-1
37420   while :; do
37421     cat >conftest.$ac_ext <<_ACEOF
37422 /* confdefs.h.  */
37423 _ACEOF
37424 cat confdefs.h >>conftest.$ac_ext
37425 cat >>conftest.$ac_ext <<_ACEOF
37426 /* end confdefs.h.  */
37427 $ac_includes_default
37428 int
37429 main ()
37430 {
37431 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37432 test_array [0] = 0
37433
37434   ;
37435   return 0;
37436 }
37437 _ACEOF
37438 rm -f conftest.$ac_objext
37439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37440   (eval $ac_compile) 2>conftest.er1
37441   ac_status=$?
37442   grep -v '^ *+' conftest.er1 >conftest.err
37443   rm -f conftest.er1
37444   cat conftest.err >&5
37445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446   (exit $ac_status); } &&
37447          { ac_try='test -z "$ac_c_werror_flag"
37448                          || test ! -s conftest.err'
37449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450   (eval $ac_try) 2>&5
37451   ac_status=$?
37452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); }; } &&
37454          { ac_try='test -s conftest.$ac_objext'
37455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456   (eval $ac_try) 2>&5
37457   ac_status=$?
37458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459   (exit $ac_status); }; }; then
37460   ac_lo=$ac_mid; break
37461 else
37462   echo "$as_me: failed program was:" >&5
37463 sed 's/^/| /' conftest.$ac_ext >&5
37464
37465 ac_hi=`expr '(' $ac_mid ')' - 1`
37466                        if test $ac_mid -le $ac_hi; then
37467                          ac_lo= ac_hi=
37468                          break
37469                        fi
37470                        ac_mid=`expr 2 '*' $ac_mid`
37471 fi
37472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37473   done
37474 else
37475   echo "$as_me: failed program was:" >&5
37476 sed 's/^/| /' conftest.$ac_ext >&5
37477
37478 ac_lo= ac_hi=
37479 fi
37480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37481 fi
37482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37483 # Binary search between lo and hi bounds.
37484 while test "x$ac_lo" != "x$ac_hi"; do
37485   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37486   cat >conftest.$ac_ext <<_ACEOF
37487 /* confdefs.h.  */
37488 _ACEOF
37489 cat confdefs.h >>conftest.$ac_ext
37490 cat >>conftest.$ac_ext <<_ACEOF
37491 /* end confdefs.h.  */
37492 $ac_includes_default
37493 int
37494 main ()
37495 {
37496 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37497 test_array [0] = 0
37498
37499   ;
37500   return 0;
37501 }
37502 _ACEOF
37503 rm -f conftest.$ac_objext
37504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37505   (eval $ac_compile) 2>conftest.er1
37506   ac_status=$?
37507   grep -v '^ *+' conftest.er1 >conftest.err
37508   rm -f conftest.er1
37509   cat conftest.err >&5
37510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511   (exit $ac_status); } &&
37512          { ac_try='test -z "$ac_c_werror_flag"
37513                          || test ! -s conftest.err'
37514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37515   (eval $ac_try) 2>&5
37516   ac_status=$?
37517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37518   (exit $ac_status); }; } &&
37519          { ac_try='test -s conftest.$ac_objext'
37520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37521   (eval $ac_try) 2>&5
37522   ac_status=$?
37523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524   (exit $ac_status); }; }; then
37525   ac_hi=$ac_mid
37526 else
37527   echo "$as_me: failed program was:" >&5
37528 sed 's/^/| /' conftest.$ac_ext >&5
37529
37530 ac_lo=`expr '(' $ac_mid ')' + 1`
37531 fi
37532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37533 done
37534 case $ac_lo in
37535 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37537 See \`config.log' for more details." >&5
37538 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37539 See \`config.log' for more details." >&2;}
37540    { (exit 1); exit 1; }; } ;;
37541 esac
37542 else
37543   if test "$cross_compiling" = yes; then
37544   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37545 See \`config.log' for more details." >&5
37546 echo "$as_me: error: cannot run test program while cross compiling
37547 See \`config.log' for more details." >&2;}
37548    { (exit 1); exit 1; }; }
37549 else
37550   cat >conftest.$ac_ext <<_ACEOF
37551 /* confdefs.h.  */
37552 _ACEOF
37553 cat confdefs.h >>conftest.$ac_ext
37554 cat >>conftest.$ac_ext <<_ACEOF
37555 /* end confdefs.h.  */
37556 $ac_includes_default
37557 long longval () { return (long) (sizeof (wchar_t)); }
37558 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37559 #include <stdio.h>
37560 #include <stdlib.h>
37561 int
37562 main ()
37563 {
37564
37565   FILE *f = fopen ("conftest.val", "w");
37566   if (! f)
37567     exit (1);
37568   if (((long) (sizeof (wchar_t))) < 0)
37569     {
37570       long i = longval ();
37571       if (i != ((long) (sizeof (wchar_t))))
37572         exit (1);
37573       fprintf (f, "%ld\n", i);
37574     }
37575   else
37576     {
37577       unsigned long i = ulongval ();
37578       if (i != ((long) (sizeof (wchar_t))))
37579         exit (1);
37580       fprintf (f, "%lu\n", i);
37581     }
37582   exit (ferror (f) || fclose (f) != 0);
37583
37584   ;
37585   return 0;
37586 }
37587 _ACEOF
37588 rm -f conftest$ac_exeext
37589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37590   (eval $ac_link) 2>&5
37591   ac_status=$?
37592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595   (eval $ac_try) 2>&5
37596   ac_status=$?
37597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598   (exit $ac_status); }; }; then
37599   ac_cv_sizeof_wchar_t=`cat conftest.val`
37600 else
37601   echo "$as_me: program exited with status $ac_status" >&5
37602 echo "$as_me: failed program was:" >&5
37603 sed 's/^/| /' conftest.$ac_ext >&5
37604
37605 ( exit $ac_status )
37606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37607 See \`config.log' for more details." >&5
37608 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37609 See \`config.log' for more details." >&2;}
37610    { (exit 1); exit 1; }; }
37611 fi
37612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37613 fi
37614 fi
37615 rm -f conftest.val
37616 else
37617   ac_cv_sizeof_wchar_t=0
37618 fi
37619 fi
37620 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37621 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37622 cat >>confdefs.h <<_ACEOF
37623 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37624 _ACEOF
37625
37626
37627
37628 if test "$ac_cv_sizeof_int" -lt 4 ; then
37629         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37630 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37631
37632
37633 cat >>confdefs.h <<\_ACEOF
37634 #define LBER_INT_T long
37635 _ACEOF
37636
37637 else
37638
37639 cat >>confdefs.h <<\_ACEOF
37640 #define LBER_INT_T int
37641 _ACEOF
37642
37643 fi
37644
37645
37646 cat >>confdefs.h <<\_ACEOF
37647 #define LBER_LEN_T long
37648 _ACEOF
37649
37650
37651 cat >>confdefs.h <<\_ACEOF
37652 #define LBER_SOCKET_T int
37653 _ACEOF
37654
37655
37656 cat >>confdefs.h <<\_ACEOF
37657 #define LBER_TAG_T long
37658 _ACEOF
37659
37660
37661 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37662         if test $ac_cv_sizeof_long_long -gt 4 ; then
37663                 ol_with_mp=longlong
37664
37665 cat >>confdefs.h <<\_ACEOF
37666 #define USE_MP_LONG_LONG 1
37667 _ACEOF
37668
37669         elif test $ol_with_mp = longlong ; then
37670                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37671 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37672    { (exit 1); exit 1; }; }
37673         fi
37674 fi
37675 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37676         if test $ac_cv_sizeof_long -gt 4 ; then
37677                 ol_with_mp=long
37678
37679 cat >>confdefs.h <<\_ACEOF
37680 #define USE_MP_LONG 1
37681 _ACEOF
37682
37683         elif test $ol_with_mp = long ; then
37684                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37685 echo "$as_me: error: long unusable for multiple precision" >&2;}
37686    { (exit 1); exit 1; }; }
37687         fi
37688 fi
37689 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37690
37691 for ac_header in openssl/bn.h
37692 do
37693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37695   echo "$as_me:$LINENO: checking for $ac_header" >&5
37696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37698   echo $ECHO_N "(cached) $ECHO_C" >&6
37699 fi
37700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37702 else
37703   # Is the header compilable?
37704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37706 cat >conftest.$ac_ext <<_ACEOF
37707 /* confdefs.h.  */
37708 _ACEOF
37709 cat confdefs.h >>conftest.$ac_ext
37710 cat >>conftest.$ac_ext <<_ACEOF
37711 /* end confdefs.h.  */
37712 $ac_includes_default
37713 #include <$ac_header>
37714 _ACEOF
37715 rm -f conftest.$ac_objext
37716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37717   (eval $ac_compile) 2>conftest.er1
37718   ac_status=$?
37719   grep -v '^ *+' conftest.er1 >conftest.err
37720   rm -f conftest.er1
37721   cat conftest.err >&5
37722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723   (exit $ac_status); } &&
37724          { ac_try='test -z "$ac_c_werror_flag"
37725                          || test ! -s conftest.err'
37726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727   (eval $ac_try) 2>&5
37728   ac_status=$?
37729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730   (exit $ac_status); }; } &&
37731          { ac_try='test -s conftest.$ac_objext'
37732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37733   (eval $ac_try) 2>&5
37734   ac_status=$?
37735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736   (exit $ac_status); }; }; then
37737   ac_header_compiler=yes
37738 else
37739   echo "$as_me: failed program was:" >&5
37740 sed 's/^/| /' conftest.$ac_ext >&5
37741
37742 ac_header_compiler=no
37743 fi
37744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37746 echo "${ECHO_T}$ac_header_compiler" >&6
37747
37748 # Is the header present?
37749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37751 cat >conftest.$ac_ext <<_ACEOF
37752 /* confdefs.h.  */
37753 _ACEOF
37754 cat confdefs.h >>conftest.$ac_ext
37755 cat >>conftest.$ac_ext <<_ACEOF
37756 /* end confdefs.h.  */
37757 #include <$ac_header>
37758 _ACEOF
37759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37761   ac_status=$?
37762   grep -v '^ *+' conftest.er1 >conftest.err
37763   rm -f conftest.er1
37764   cat conftest.err >&5
37765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766   (exit $ac_status); } >/dev/null; then
37767   if test -s conftest.err; then
37768     ac_cpp_err=$ac_c_preproc_warn_flag
37769     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37770   else
37771     ac_cpp_err=
37772   fi
37773 else
37774   ac_cpp_err=yes
37775 fi
37776 if test -z "$ac_cpp_err"; then
37777   ac_header_preproc=yes
37778 else
37779   echo "$as_me: failed program was:" >&5
37780 sed 's/^/| /' conftest.$ac_ext >&5
37781
37782   ac_header_preproc=no
37783 fi
37784 rm -f conftest.err conftest.$ac_ext
37785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37786 echo "${ECHO_T}$ac_header_preproc" >&6
37787
37788 # So?  What about this header?
37789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37790   yes:no: )
37791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37795     ac_header_preproc=yes
37796     ;;
37797   no:yes:* )
37798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37810     (
37811       cat <<\_ASBOX
37812 ## --------------------------------------------- ##
37813 ## Report this to <http://www.openldap.org/its/> ##
37814 ## --------------------------------------------- ##
37815 _ASBOX
37816     ) |
37817       sed "s/^/$as_me: WARNING:     /" >&2
37818     ;;
37819 esac
37820 echo "$as_me:$LINENO: checking for $ac_header" >&5
37821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37823   echo $ECHO_N "(cached) $ECHO_C" >&6
37824 else
37825   eval "$as_ac_Header=\$ac_header_preproc"
37826 fi
37827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37829
37830 fi
37831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37832   cat >>confdefs.h <<_ACEOF
37833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37834 _ACEOF
37835
37836 fi
37837
37838 done
37839
37840
37841 for ac_header in openssl/crypto.h
37842 do
37843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37845   echo "$as_me:$LINENO: checking for $ac_header" >&5
37846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37848   echo $ECHO_N "(cached) $ECHO_C" >&6
37849 fi
37850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37852 else
37853   # Is the header compilable?
37854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37856 cat >conftest.$ac_ext <<_ACEOF
37857 /* confdefs.h.  */
37858 _ACEOF
37859 cat confdefs.h >>conftest.$ac_ext
37860 cat >>conftest.$ac_ext <<_ACEOF
37861 /* end confdefs.h.  */
37862 $ac_includes_default
37863 #include <$ac_header>
37864 _ACEOF
37865 rm -f conftest.$ac_objext
37866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37867   (eval $ac_compile) 2>conftest.er1
37868   ac_status=$?
37869   grep -v '^ *+' conftest.er1 >conftest.err
37870   rm -f conftest.er1
37871   cat conftest.err >&5
37872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873   (exit $ac_status); } &&
37874          { ac_try='test -z "$ac_c_werror_flag"
37875                          || test ! -s conftest.err'
37876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877   (eval $ac_try) 2>&5
37878   ac_status=$?
37879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880   (exit $ac_status); }; } &&
37881          { ac_try='test -s conftest.$ac_objext'
37882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883   (eval $ac_try) 2>&5
37884   ac_status=$?
37885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886   (exit $ac_status); }; }; then
37887   ac_header_compiler=yes
37888 else
37889   echo "$as_me: failed program was:" >&5
37890 sed 's/^/| /' conftest.$ac_ext >&5
37891
37892 ac_header_compiler=no
37893 fi
37894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37896 echo "${ECHO_T}$ac_header_compiler" >&6
37897
37898 # Is the header present?
37899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37901 cat >conftest.$ac_ext <<_ACEOF
37902 /* confdefs.h.  */
37903 _ACEOF
37904 cat confdefs.h >>conftest.$ac_ext
37905 cat >>conftest.$ac_ext <<_ACEOF
37906 /* end confdefs.h.  */
37907 #include <$ac_header>
37908 _ACEOF
37909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37910   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37911   ac_status=$?
37912   grep -v '^ *+' conftest.er1 >conftest.err
37913   rm -f conftest.er1
37914   cat conftest.err >&5
37915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916   (exit $ac_status); } >/dev/null; then
37917   if test -s conftest.err; then
37918     ac_cpp_err=$ac_c_preproc_warn_flag
37919     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37920   else
37921     ac_cpp_err=
37922   fi
37923 else
37924   ac_cpp_err=yes
37925 fi
37926 if test -z "$ac_cpp_err"; then
37927   ac_header_preproc=yes
37928 else
37929   echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37931
37932   ac_header_preproc=no
37933 fi
37934 rm -f conftest.err conftest.$ac_ext
37935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37936 echo "${ECHO_T}$ac_header_preproc" >&6
37937
37938 # So?  What about this header?
37939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37940   yes:no: )
37941     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37945     ac_header_preproc=yes
37946     ;;
37947   no:yes:* )
37948     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37950     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37951 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37952     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37954     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37955 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37958     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37960     (
37961       cat <<\_ASBOX
37962 ## --------------------------------------------- ##
37963 ## Report this to <http://www.openldap.org/its/> ##
37964 ## --------------------------------------------- ##
37965 _ASBOX
37966     ) |
37967       sed "s/^/$as_me: WARNING:     /" >&2
37968     ;;
37969 esac
37970 echo "$as_me:$LINENO: checking for $ac_header" >&5
37971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37973   echo $ECHO_N "(cached) $ECHO_C" >&6
37974 else
37975   eval "$as_ac_Header=\$ac_header_preproc"
37976 fi
37977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37979
37980 fi
37981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37982   cat >>confdefs.h <<_ACEOF
37983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37984 _ACEOF
37985
37986 fi
37987
37988 done
37989
37990         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37991                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37992                 test "$ol_with_tls" = "found" ; then
37993                 ol_with_mp=bignum
37994
37995 cat >>confdefs.h <<\_ACEOF
37996 #define USE_MP_BIGNUM 1
37997 _ACEOF
37998
37999         elif test $ol_with_mp = bignum ; then
38000                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
38001 echo "$as_me: error: bignum not available" >&2;}
38002    { (exit 1); exit 1; }; }
38003         fi
38004 fi
38005 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
38006
38007 for ac_header in gmp.h
38008 do
38009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38011   echo "$as_me:$LINENO: checking for $ac_header" >&5
38012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38014   echo $ECHO_N "(cached) $ECHO_C" >&6
38015 fi
38016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38018 else
38019   # Is the header compilable?
38020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38022 cat >conftest.$ac_ext <<_ACEOF
38023 /* confdefs.h.  */
38024 _ACEOF
38025 cat confdefs.h >>conftest.$ac_ext
38026 cat >>conftest.$ac_ext <<_ACEOF
38027 /* end confdefs.h.  */
38028 $ac_includes_default
38029 #include <$ac_header>
38030 _ACEOF
38031 rm -f conftest.$ac_objext
38032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38033   (eval $ac_compile) 2>conftest.er1
38034   ac_status=$?
38035   grep -v '^ *+' conftest.er1 >conftest.err
38036   rm -f conftest.er1
38037   cat conftest.err >&5
38038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039   (exit $ac_status); } &&
38040          { ac_try='test -z "$ac_c_werror_flag"
38041                          || test ! -s conftest.err'
38042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38043   (eval $ac_try) 2>&5
38044   ac_status=$?
38045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38046   (exit $ac_status); }; } &&
38047          { ac_try='test -s conftest.$ac_objext'
38048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38049   (eval $ac_try) 2>&5
38050   ac_status=$?
38051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052   (exit $ac_status); }; }; then
38053   ac_header_compiler=yes
38054 else
38055   echo "$as_me: failed program was:" >&5
38056 sed 's/^/| /' conftest.$ac_ext >&5
38057
38058 ac_header_compiler=no
38059 fi
38060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38062 echo "${ECHO_T}$ac_header_compiler" >&6
38063
38064 # Is the header present?
38065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38067 cat >conftest.$ac_ext <<_ACEOF
38068 /* confdefs.h.  */
38069 _ACEOF
38070 cat confdefs.h >>conftest.$ac_ext
38071 cat >>conftest.$ac_ext <<_ACEOF
38072 /* end confdefs.h.  */
38073 #include <$ac_header>
38074 _ACEOF
38075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38077   ac_status=$?
38078   grep -v '^ *+' conftest.er1 >conftest.err
38079   rm -f conftest.er1
38080   cat conftest.err >&5
38081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38082   (exit $ac_status); } >/dev/null; then
38083   if test -s conftest.err; then
38084     ac_cpp_err=$ac_c_preproc_warn_flag
38085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38086   else
38087     ac_cpp_err=
38088   fi
38089 else
38090   ac_cpp_err=yes
38091 fi
38092 if test -z "$ac_cpp_err"; then
38093   ac_header_preproc=yes
38094 else
38095   echo "$as_me: failed program was:" >&5
38096 sed 's/^/| /' conftest.$ac_ext >&5
38097
38098   ac_header_preproc=no
38099 fi
38100 rm -f conftest.err conftest.$ac_ext
38101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38102 echo "${ECHO_T}$ac_header_preproc" >&6
38103
38104 # So?  What about this header?
38105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38106   yes:no: )
38107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38111     ac_header_preproc=yes
38112     ;;
38113   no:yes:* )
38114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38126     (
38127       cat <<\_ASBOX
38128 ## --------------------------------------------- ##
38129 ## Report this to <http://www.openldap.org/its/> ##
38130 ## --------------------------------------------- ##
38131 _ASBOX
38132     ) |
38133       sed "s/^/$as_me: WARNING:     /" >&2
38134     ;;
38135 esac
38136 echo "$as_me:$LINENO: checking for $ac_header" >&5
38137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38139   echo $ECHO_N "(cached) $ECHO_C" >&6
38140 else
38141   eval "$as_ac_Header=\$ac_header_preproc"
38142 fi
38143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38145
38146 fi
38147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38148   cat >>confdefs.h <<_ACEOF
38149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38150 _ACEOF
38151
38152 fi
38153
38154 done
38155
38156
38157 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38158 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38159 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38160   echo $ECHO_N "(cached) $ECHO_C" >&6
38161 else
38162   ac_check_lib_save_LIBS=$LIBS
38163 LIBS="-lgmp  $LIBS"
38164 cat >conftest.$ac_ext <<_ACEOF
38165 /* confdefs.h.  */
38166 _ACEOF
38167 cat confdefs.h >>conftest.$ac_ext
38168 cat >>conftest.$ac_ext <<_ACEOF
38169 /* end confdefs.h.  */
38170
38171 /* Override any gcc2 internal prototype to avoid an error.  */
38172 #ifdef __cplusplus
38173 extern "C"
38174 #endif
38175 /* We use char because int might match the return type of a gcc2
38176    builtin and then its argument prototype would still apply.  */
38177 char __gmpz_add_ui ();
38178 int
38179 main ()
38180 {
38181 __gmpz_add_ui ();
38182   ;
38183   return 0;
38184 }
38185 _ACEOF
38186 rm -f conftest.$ac_objext conftest$ac_exeext
38187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38188   (eval $ac_link) 2>conftest.er1
38189   ac_status=$?
38190   grep -v '^ *+' conftest.er1 >conftest.err
38191   rm -f conftest.er1
38192   cat conftest.err >&5
38193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194   (exit $ac_status); } &&
38195          { ac_try='test -z "$ac_c_werror_flag"
38196                          || test ! -s conftest.err'
38197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38198   (eval $ac_try) 2>&5
38199   ac_status=$?
38200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201   (exit $ac_status); }; } &&
38202          { ac_try='test -s conftest$ac_exeext'
38203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204   (eval $ac_try) 2>&5
38205   ac_status=$?
38206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207   (exit $ac_status); }; }; then
38208   ac_cv_lib_gmp___gmpz_add_ui=yes
38209 else
38210   echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38212
38213 ac_cv_lib_gmp___gmpz_add_ui=no
38214 fi
38215 rm -f conftest.err conftest.$ac_objext \
38216       conftest$ac_exeext conftest.$ac_ext
38217 LIBS=$ac_check_lib_save_LIBS
38218 fi
38219 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38220 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38221 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38222   cat >>confdefs.h <<_ACEOF
38223 #define HAVE_LIBGMP 1
38224 _ACEOF
38225
38226   LIBS="-lgmp $LIBS"
38227
38228 fi
38229
38230         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
38231
38232 cat >>confdefs.h <<\_ACEOF
38233 #define USE_MP_GMP 1
38234 _ACEOF
38235
38236                 ol_with_mp=gmp
38237         elif test $ol_with_mp = gmp ; then
38238                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
38239 echo "$as_me: error: gmp not available" >&2;}
38240    { (exit 1); exit 1; }; }
38241         fi
38242 fi
38243 if test $ol_with_mp = auto ; then
38244         ol_with_mp=no
38245 fi
38246
38247 echo "$as_me:$LINENO: checking for working memcmp" >&5
38248 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
38249 if test "${ac_cv_func_memcmp_working+set}" = set; then
38250   echo $ECHO_N "(cached) $ECHO_C" >&6
38251 else
38252   if test "$cross_compiling" = yes; then
38253   ac_cv_func_memcmp_working=no
38254 else
38255   cat >conftest.$ac_ext <<_ACEOF
38256 /* confdefs.h.  */
38257 _ACEOF
38258 cat confdefs.h >>conftest.$ac_ext
38259 cat >>conftest.$ac_ext <<_ACEOF
38260 /* end confdefs.h.  */
38261 $ac_includes_default
38262 int
38263 main ()
38264 {
38265
38266   /* Some versions of memcmp are not 8-bit clean.  */
38267   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38268   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38269     exit (1);
38270
38271   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38272      or more and with at least one buffer not starting on a 4-byte boundary.
38273      William Lewis provided this test program.   */
38274   {
38275     char foo[21];
38276     char bar[21];
38277     int i;
38278     for (i = 0; i < 4; i++)
38279       {
38280         char *a = foo + i;
38281         char *b = bar + i;
38282         strcpy (a, "--------01111111");
38283         strcpy (b, "--------10000000");
38284         if (memcmp (a, b, 16) >= 0)
38285           exit (1);
38286       }
38287     exit (0);
38288   }
38289
38290   ;
38291   return 0;
38292 }
38293 _ACEOF
38294 rm -f conftest$ac_exeext
38295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38296   (eval $ac_link) 2>&5
38297   ac_status=$?
38298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38301   (eval $ac_try) 2>&5
38302   ac_status=$?
38303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304   (exit $ac_status); }; }; then
38305   ac_cv_func_memcmp_working=yes
38306 else
38307   echo "$as_me: program exited with status $ac_status" >&5
38308 echo "$as_me: failed program was:" >&5
38309 sed 's/^/| /' conftest.$ac_ext >&5
38310
38311 ( exit $ac_status )
38312 ac_cv_func_memcmp_working=no
38313 fi
38314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38315 fi
38316 fi
38317 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38318 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38319 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38320     "memcmp.$ac_objext"   | \
38321   *" memcmp.$ac_objext"   | \
38322     "memcmp.$ac_objext "* | \
38323   *" memcmp.$ac_objext "* ) ;;
38324   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38325 esac
38326
38327
38328
38329 if test $ac_cv_func_memcmp_working = no ; then
38330
38331 cat >>confdefs.h <<\_ACEOF
38332 #define NEED_MEMCMP_REPLACEMENT 1
38333 _ACEOF
38334
38335 fi
38336
38337
38338 for ac_func in strftime
38339 do
38340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38341 echo "$as_me:$LINENO: checking for $ac_func" >&5
38342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38343 if eval "test \"\${$as_ac_var+set}\" = set"; then
38344   echo $ECHO_N "(cached) $ECHO_C" >&6
38345 else
38346   cat >conftest.$ac_ext <<_ACEOF
38347 /* confdefs.h.  */
38348 _ACEOF
38349 cat confdefs.h >>conftest.$ac_ext
38350 cat >>conftest.$ac_ext <<_ACEOF
38351 /* end confdefs.h.  */
38352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38354 #define $ac_func innocuous_$ac_func
38355
38356 /* System header to define __stub macros and hopefully few prototypes,
38357     which can conflict with char $ac_func (); below.
38358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38359     <limits.h> exists even on freestanding compilers.  */
38360
38361 #ifdef __STDC__
38362 # include <limits.h>
38363 #else
38364 # include <assert.h>
38365 #endif
38366
38367 #undef $ac_func
38368
38369 /* Override any gcc2 internal prototype to avoid an error.  */
38370 #ifdef __cplusplus
38371 extern "C"
38372 {
38373 #endif
38374 /* We use char because int might match the return type of a gcc2
38375    builtin and then its argument prototype would still apply.  */
38376 char $ac_func ();
38377 /* The GNU C library defines this for functions which it implements
38378     to always fail with ENOSYS.  Some functions are actually named
38379     something starting with __ and the normal name is an alias.  */
38380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38381 choke me
38382 #else
38383 char (*f) () = $ac_func;
38384 #endif
38385 #ifdef __cplusplus
38386 }
38387 #endif
38388
38389 int
38390 main ()
38391 {
38392 return f != $ac_func;
38393   ;
38394   return 0;
38395 }
38396 _ACEOF
38397 rm -f conftest.$ac_objext conftest$ac_exeext
38398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38399   (eval $ac_link) 2>conftest.er1
38400   ac_status=$?
38401   grep -v '^ *+' conftest.er1 >conftest.err
38402   rm -f conftest.er1
38403   cat conftest.err >&5
38404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38405   (exit $ac_status); } &&
38406          { ac_try='test -z "$ac_c_werror_flag"
38407                          || test ! -s conftest.err'
38408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38409   (eval $ac_try) 2>&5
38410   ac_status=$?
38411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412   (exit $ac_status); }; } &&
38413          { ac_try='test -s conftest$ac_exeext'
38414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415   (eval $ac_try) 2>&5
38416   ac_status=$?
38417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418   (exit $ac_status); }; }; then
38419   eval "$as_ac_var=yes"
38420 else
38421   echo "$as_me: failed program was:" >&5
38422 sed 's/^/| /' conftest.$ac_ext >&5
38423
38424 eval "$as_ac_var=no"
38425 fi
38426 rm -f conftest.err conftest.$ac_objext \
38427       conftest$ac_exeext conftest.$ac_ext
38428 fi
38429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38431 if test `eval echo '${'$as_ac_var'}'` = yes; then
38432   cat >>confdefs.h <<_ACEOF
38433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38434 _ACEOF
38435
38436 else
38437   # strftime is in -lintl on SCO UNIX.
38438 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38439 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38440 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38441   echo $ECHO_N "(cached) $ECHO_C" >&6
38442 else
38443   ac_check_lib_save_LIBS=$LIBS
38444 LIBS="-lintl  $LIBS"
38445 cat >conftest.$ac_ext <<_ACEOF
38446 /* confdefs.h.  */
38447 _ACEOF
38448 cat confdefs.h >>conftest.$ac_ext
38449 cat >>conftest.$ac_ext <<_ACEOF
38450 /* end confdefs.h.  */
38451
38452 /* Override any gcc2 internal prototype to avoid an error.  */
38453 #ifdef __cplusplus
38454 extern "C"
38455 #endif
38456 /* We use char because int might match the return type of a gcc2
38457    builtin and then its argument prototype would still apply.  */
38458 char strftime ();
38459 int
38460 main ()
38461 {
38462 strftime ();
38463   ;
38464   return 0;
38465 }
38466 _ACEOF
38467 rm -f conftest.$ac_objext conftest$ac_exeext
38468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38469   (eval $ac_link) 2>conftest.er1
38470   ac_status=$?
38471   grep -v '^ *+' conftest.er1 >conftest.err
38472   rm -f conftest.er1
38473   cat conftest.err >&5
38474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475   (exit $ac_status); } &&
38476          { ac_try='test -z "$ac_c_werror_flag"
38477                          || test ! -s conftest.err'
38478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38479   (eval $ac_try) 2>&5
38480   ac_status=$?
38481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482   (exit $ac_status); }; } &&
38483          { ac_try='test -s conftest$ac_exeext'
38484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38485   (eval $ac_try) 2>&5
38486   ac_status=$?
38487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38488   (exit $ac_status); }; }; then
38489   ac_cv_lib_intl_strftime=yes
38490 else
38491   echo "$as_me: failed program was:" >&5
38492 sed 's/^/| /' conftest.$ac_ext >&5
38493
38494 ac_cv_lib_intl_strftime=no
38495 fi
38496 rm -f conftest.err conftest.$ac_objext \
38497       conftest$ac_exeext conftest.$ac_ext
38498 LIBS=$ac_check_lib_save_LIBS
38499 fi
38500 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38501 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38502 if test $ac_cv_lib_intl_strftime = yes; then
38503   cat >>confdefs.h <<\_ACEOF
38504 #define HAVE_STRFTIME 1
38505 _ACEOF
38506
38507 LIBS="-lintl $LIBS"
38508 fi
38509
38510 fi
38511 done
38512
38513
38514 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38515 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38516 if test "${ol_cv_func_inet_aton+set}" = set; then
38517   echo $ECHO_N "(cached) $ECHO_C" >&6
38518 else
38519   cat >conftest.$ac_ext <<_ACEOF
38520 /* confdefs.h.  */
38521 _ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h.  */
38525
38526 #ifdef HAVE_SYS_TYPES_H
38527 #       include <sys/types.h>
38528 #endif
38529 #ifdef HAVE_SYS_SOCKET_H
38530 #       include <sys/socket.h>
38531 #       ifdef HAVE_SYS_SELECT_H
38532 #               include <sys/select.h>
38533 #       endif
38534 #       include <netinet/in.h>
38535 #       ifdef HAVE_ARPA_INET_H
38536 #               include <arpa/inet.h>
38537 #       endif
38538 #endif
38539
38540 int
38541 main ()
38542 {
38543 struct in_addr in;
38544 int rc = inet_aton( "255.255.255.255", &in );
38545   ;
38546   return 0;
38547 }
38548 _ACEOF
38549 rm -f conftest.$ac_objext conftest$ac_exeext
38550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38551   (eval $ac_link) 2>conftest.er1
38552   ac_status=$?
38553   grep -v '^ *+' conftest.er1 >conftest.err
38554   rm -f conftest.er1
38555   cat conftest.err >&5
38556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38557   (exit $ac_status); } &&
38558          { ac_try='test -z "$ac_c_werror_flag"
38559                          || test ! -s conftest.err'
38560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38561   (eval $ac_try) 2>&5
38562   ac_status=$?
38563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38564   (exit $ac_status); }; } &&
38565          { ac_try='test -s conftest$ac_exeext'
38566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38567   (eval $ac_try) 2>&5
38568   ac_status=$?
38569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570   (exit $ac_status); }; }; then
38571   ol_cv_func_inet_aton=yes
38572 else
38573   echo "$as_me: failed program was:" >&5
38574 sed 's/^/| /' conftest.$ac_ext >&5
38575
38576 ol_cv_func_inet_aton=no
38577 fi
38578 rm -f conftest.err conftest.$ac_objext \
38579       conftest$ac_exeext conftest.$ac_ext
38580 fi
38581 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38582 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38583   if test $ol_cv_func_inet_aton != no; then
38584
38585 cat >>confdefs.h <<\_ACEOF
38586 #define HAVE_INET_ATON 1
38587 _ACEOF
38588
38589   fi
38590
38591
38592 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38593 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38594 if test "${ac_cv_func__spawnlp+set}" = set; then
38595   echo $ECHO_N "(cached) $ECHO_C" >&6
38596 else
38597   cat >conftest.$ac_ext <<_ACEOF
38598 /* confdefs.h.  */
38599 _ACEOF
38600 cat confdefs.h >>conftest.$ac_ext
38601 cat >>conftest.$ac_ext <<_ACEOF
38602 /* end confdefs.h.  */
38603 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38605 #define _spawnlp innocuous__spawnlp
38606
38607 /* System header to define __stub macros and hopefully few prototypes,
38608     which can conflict with char _spawnlp (); below.
38609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38610     <limits.h> exists even on freestanding compilers.  */
38611
38612 #ifdef __STDC__
38613 # include <limits.h>
38614 #else
38615 # include <assert.h>
38616 #endif
38617
38618 #undef _spawnlp
38619
38620 /* Override any gcc2 internal prototype to avoid an error.  */
38621 #ifdef __cplusplus
38622 extern "C"
38623 {
38624 #endif
38625 /* We use char because int might match the return type of a gcc2
38626    builtin and then its argument prototype would still apply.  */
38627 char _spawnlp ();
38628 /* The GNU C library defines this for functions which it implements
38629     to always fail with ENOSYS.  Some functions are actually named
38630     something starting with __ and the normal name is an alias.  */
38631 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38632 choke me
38633 #else
38634 char (*f) () = _spawnlp;
38635 #endif
38636 #ifdef __cplusplus
38637 }
38638 #endif
38639
38640 int
38641 main ()
38642 {
38643 return f != _spawnlp;
38644   ;
38645   return 0;
38646 }
38647 _ACEOF
38648 rm -f conftest.$ac_objext conftest$ac_exeext
38649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38650   (eval $ac_link) 2>conftest.er1
38651   ac_status=$?
38652   grep -v '^ *+' conftest.er1 >conftest.err
38653   rm -f conftest.er1
38654   cat conftest.err >&5
38655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656   (exit $ac_status); } &&
38657          { ac_try='test -z "$ac_c_werror_flag"
38658                          || test ! -s conftest.err'
38659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660   (eval $ac_try) 2>&5
38661   ac_status=$?
38662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663   (exit $ac_status); }; } &&
38664          { ac_try='test -s conftest$ac_exeext'
38665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666   (eval $ac_try) 2>&5
38667   ac_status=$?
38668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669   (exit $ac_status); }; }; then
38670   ac_cv_func__spawnlp=yes
38671 else
38672   echo "$as_me: failed program was:" >&5
38673 sed 's/^/| /' conftest.$ac_ext >&5
38674
38675 ac_cv_func__spawnlp=no
38676 fi
38677 rm -f conftest.err conftest.$ac_objext \
38678       conftest$ac_exeext conftest.$ac_ext
38679 fi
38680 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38681 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38682 if test $ac_cv_func__spawnlp = yes; then
38683
38684 cat >>confdefs.h <<\_ACEOF
38685 #define HAVE_SPAWNLP 1
38686 _ACEOF
38687
38688 fi
38689
38690
38691 echo "$as_me:$LINENO: checking for _snprintf" >&5
38692 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38693 if test "${ac_cv_func__snprintf+set}" = set; then
38694   echo $ECHO_N "(cached) $ECHO_C" >&6
38695 else
38696   cat >conftest.$ac_ext <<_ACEOF
38697 /* confdefs.h.  */
38698 _ACEOF
38699 cat confdefs.h >>conftest.$ac_ext
38700 cat >>conftest.$ac_ext <<_ACEOF
38701 /* end confdefs.h.  */
38702 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38704 #define _snprintf innocuous__snprintf
38705
38706 /* System header to define __stub macros and hopefully few prototypes,
38707     which can conflict with char _snprintf (); below.
38708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38709     <limits.h> exists even on freestanding compilers.  */
38710
38711 #ifdef __STDC__
38712 # include <limits.h>
38713 #else
38714 # include <assert.h>
38715 #endif
38716
38717 #undef _snprintf
38718
38719 /* Override any gcc2 internal prototype to avoid an error.  */
38720 #ifdef __cplusplus
38721 extern "C"
38722 {
38723 #endif
38724 /* We use char because int might match the return type of a gcc2
38725    builtin and then its argument prototype would still apply.  */
38726 char _snprintf ();
38727 /* The GNU C library defines this for functions which it implements
38728     to always fail with ENOSYS.  Some functions are actually named
38729     something starting with __ and the normal name is an alias.  */
38730 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38731 choke me
38732 #else
38733 char (*f) () = _snprintf;
38734 #endif
38735 #ifdef __cplusplus
38736 }
38737 #endif
38738
38739 int
38740 main ()
38741 {
38742 return f != _snprintf;
38743   ;
38744   return 0;
38745 }
38746 _ACEOF
38747 rm -f conftest.$ac_objext conftest$ac_exeext
38748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38749   (eval $ac_link) 2>conftest.er1
38750   ac_status=$?
38751   grep -v '^ *+' conftest.er1 >conftest.err
38752   rm -f conftest.er1
38753   cat conftest.err >&5
38754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755   (exit $ac_status); } &&
38756          { ac_try='test -z "$ac_c_werror_flag"
38757                          || test ! -s conftest.err'
38758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38759   (eval $ac_try) 2>&5
38760   ac_status=$?
38761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762   (exit $ac_status); }; } &&
38763          { ac_try='test -s conftest$ac_exeext'
38764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38765   (eval $ac_try) 2>&5
38766   ac_status=$?
38767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768   (exit $ac_status); }; }; then
38769   ac_cv_func__snprintf=yes
38770 else
38771   echo "$as_me: failed program was:" >&5
38772 sed 's/^/| /' conftest.$ac_ext >&5
38773
38774 ac_cv_func__snprintf=no
38775 fi
38776 rm -f conftest.err conftest.$ac_objext \
38777       conftest$ac_exeext conftest.$ac_ext
38778 fi
38779 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38780 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38781 if test $ac_cv_func__snprintf = yes; then
38782   ac_cv_func_snprintf=yes
38783
38784 cat >>confdefs.h <<\_ACEOF
38785 #define snprintf _snprintf
38786 _ACEOF
38787
38788
38789 fi
38790
38791
38792 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38793 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38794 if test "${ac_cv_func__vsnprintf+set}" = set; then
38795   echo $ECHO_N "(cached) $ECHO_C" >&6
38796 else
38797   cat >conftest.$ac_ext <<_ACEOF
38798 /* confdefs.h.  */
38799 _ACEOF
38800 cat confdefs.h >>conftest.$ac_ext
38801 cat >>conftest.$ac_ext <<_ACEOF
38802 /* end confdefs.h.  */
38803 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38805 #define _vsnprintf innocuous__vsnprintf
38806
38807 /* System header to define __stub macros and hopefully few prototypes,
38808     which can conflict with char _vsnprintf (); below.
38809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38810     <limits.h> exists even on freestanding compilers.  */
38811
38812 #ifdef __STDC__
38813 # include <limits.h>
38814 #else
38815 # include <assert.h>
38816 #endif
38817
38818 #undef _vsnprintf
38819
38820 /* Override any gcc2 internal prototype to avoid an error.  */
38821 #ifdef __cplusplus
38822 extern "C"
38823 {
38824 #endif
38825 /* We use char because int might match the return type of a gcc2
38826    builtin and then its argument prototype would still apply.  */
38827 char _vsnprintf ();
38828 /* The GNU C library defines this for functions which it implements
38829     to always fail with ENOSYS.  Some functions are actually named
38830     something starting with __ and the normal name is an alias.  */
38831 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38832 choke me
38833 #else
38834 char (*f) () = _vsnprintf;
38835 #endif
38836 #ifdef __cplusplus
38837 }
38838 #endif
38839
38840 int
38841 main ()
38842 {
38843 return f != _vsnprintf;
38844   ;
38845   return 0;
38846 }
38847 _ACEOF
38848 rm -f conftest.$ac_objext conftest$ac_exeext
38849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38850   (eval $ac_link) 2>conftest.er1
38851   ac_status=$?
38852   grep -v '^ *+' conftest.er1 >conftest.err
38853   rm -f conftest.er1
38854   cat conftest.err >&5
38855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38856   (exit $ac_status); } &&
38857          { ac_try='test -z "$ac_c_werror_flag"
38858                          || test ! -s conftest.err'
38859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38860   (eval $ac_try) 2>&5
38861   ac_status=$?
38862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863   (exit $ac_status); }; } &&
38864          { ac_try='test -s conftest$ac_exeext'
38865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38866   (eval $ac_try) 2>&5
38867   ac_status=$?
38868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38869   (exit $ac_status); }; }; then
38870   ac_cv_func__vsnprintf=yes
38871 else
38872   echo "$as_me: failed program was:" >&5
38873 sed 's/^/| /' conftest.$ac_ext >&5
38874
38875 ac_cv_func__vsnprintf=no
38876 fi
38877 rm -f conftest.err conftest.$ac_objext \
38878       conftest$ac_exeext conftest.$ac_ext
38879 fi
38880 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38881 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38882 if test $ac_cv_func__vsnprintf = yes; then
38883   ac_cv_func_vsnprintf=yes
38884
38885 cat >>confdefs.h <<\_ACEOF
38886 #define vsnprintf _vsnprintf
38887 _ACEOF
38888
38889
38890 fi
38891
38892
38893
38894 for ac_func in vprintf
38895 do
38896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38897 echo "$as_me:$LINENO: checking for $ac_func" >&5
38898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38899 if eval "test \"\${$as_ac_var+set}\" = set"; then
38900   echo $ECHO_N "(cached) $ECHO_C" >&6
38901 else
38902   cat >conftest.$ac_ext <<_ACEOF
38903 /* confdefs.h.  */
38904 _ACEOF
38905 cat confdefs.h >>conftest.$ac_ext
38906 cat >>conftest.$ac_ext <<_ACEOF
38907 /* end confdefs.h.  */
38908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38910 #define $ac_func innocuous_$ac_func
38911
38912 /* System header to define __stub macros and hopefully few prototypes,
38913     which can conflict with char $ac_func (); below.
38914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38915     <limits.h> exists even on freestanding compilers.  */
38916
38917 #ifdef __STDC__
38918 # include <limits.h>
38919 #else
38920 # include <assert.h>
38921 #endif
38922
38923 #undef $ac_func
38924
38925 /* Override any gcc2 internal prototype to avoid an error.  */
38926 #ifdef __cplusplus
38927 extern "C"
38928 {
38929 #endif
38930 /* We use char because int might match the return type of a gcc2
38931    builtin and then its argument prototype would still apply.  */
38932 char $ac_func ();
38933 /* The GNU C library defines this for functions which it implements
38934     to always fail with ENOSYS.  Some functions are actually named
38935     something starting with __ and the normal name is an alias.  */
38936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38937 choke me
38938 #else
38939 char (*f) () = $ac_func;
38940 #endif
38941 #ifdef __cplusplus
38942 }
38943 #endif
38944
38945 int
38946 main ()
38947 {
38948 return f != $ac_func;
38949   ;
38950   return 0;
38951 }
38952 _ACEOF
38953 rm -f conftest.$ac_objext conftest$ac_exeext
38954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38955   (eval $ac_link) 2>conftest.er1
38956   ac_status=$?
38957   grep -v '^ *+' conftest.er1 >conftest.err
38958   rm -f conftest.er1
38959   cat conftest.err >&5
38960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961   (exit $ac_status); } &&
38962          { ac_try='test -z "$ac_c_werror_flag"
38963                          || test ! -s conftest.err'
38964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38965   (eval $ac_try) 2>&5
38966   ac_status=$?
38967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968   (exit $ac_status); }; } &&
38969          { ac_try='test -s conftest$ac_exeext'
38970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38971   (eval $ac_try) 2>&5
38972   ac_status=$?
38973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38974   (exit $ac_status); }; }; then
38975   eval "$as_ac_var=yes"
38976 else
38977   echo "$as_me: failed program was:" >&5
38978 sed 's/^/| /' conftest.$ac_ext >&5
38979
38980 eval "$as_ac_var=no"
38981 fi
38982 rm -f conftest.err conftest.$ac_objext \
38983       conftest$ac_exeext conftest.$ac_ext
38984 fi
38985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38987 if test `eval echo '${'$as_ac_var'}'` = yes; then
38988   cat >>confdefs.h <<_ACEOF
38989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38990 _ACEOF
38991
38992 echo "$as_me:$LINENO: checking for _doprnt" >&5
38993 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38994 if test "${ac_cv_func__doprnt+set}" = set; then
38995   echo $ECHO_N "(cached) $ECHO_C" >&6
38996 else
38997   cat >conftest.$ac_ext <<_ACEOF
38998 /* confdefs.h.  */
38999 _ACEOF
39000 cat confdefs.h >>conftest.$ac_ext
39001 cat >>conftest.$ac_ext <<_ACEOF
39002 /* end confdefs.h.  */
39003 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39005 #define _doprnt innocuous__doprnt
39006
39007 /* System header to define __stub macros and hopefully few prototypes,
39008     which can conflict with char _doprnt (); below.
39009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39010     <limits.h> exists even on freestanding compilers.  */
39011
39012 #ifdef __STDC__
39013 # include <limits.h>
39014 #else
39015 # include <assert.h>
39016 #endif
39017
39018 #undef _doprnt
39019
39020 /* Override any gcc2 internal prototype to avoid an error.  */
39021 #ifdef __cplusplus
39022 extern "C"
39023 {
39024 #endif
39025 /* We use char because int might match the return type of a gcc2
39026    builtin and then its argument prototype would still apply.  */
39027 char _doprnt ();
39028 /* The GNU C library defines this for functions which it implements
39029     to always fail with ENOSYS.  Some functions are actually named
39030     something starting with __ and the normal name is an alias.  */
39031 #if defined (__stub__doprnt) || defined (__stub____doprnt)
39032 choke me
39033 #else
39034 char (*f) () = _doprnt;
39035 #endif
39036 #ifdef __cplusplus
39037 }
39038 #endif
39039
39040 int
39041 main ()
39042 {
39043 return f != _doprnt;
39044   ;
39045   return 0;
39046 }
39047 _ACEOF
39048 rm -f conftest.$ac_objext conftest$ac_exeext
39049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39050   (eval $ac_link) 2>conftest.er1
39051   ac_status=$?
39052   grep -v '^ *+' conftest.er1 >conftest.err
39053   rm -f conftest.er1
39054   cat conftest.err >&5
39055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056   (exit $ac_status); } &&
39057          { ac_try='test -z "$ac_c_werror_flag"
39058                          || test ! -s conftest.err'
39059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39060   (eval $ac_try) 2>&5
39061   ac_status=$?
39062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39063   (exit $ac_status); }; } &&
39064          { ac_try='test -s conftest$ac_exeext'
39065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39066   (eval $ac_try) 2>&5
39067   ac_status=$?
39068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069   (exit $ac_status); }; }; then
39070   ac_cv_func__doprnt=yes
39071 else
39072   echo "$as_me: failed program was:" >&5
39073 sed 's/^/| /' conftest.$ac_ext >&5
39074
39075 ac_cv_func__doprnt=no
39076 fi
39077 rm -f conftest.err conftest.$ac_objext \
39078       conftest$ac_exeext conftest.$ac_ext
39079 fi
39080 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39081 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
39082 if test $ac_cv_func__doprnt = yes; then
39083
39084 cat >>confdefs.h <<\_ACEOF
39085 #define HAVE_DOPRNT 1
39086 _ACEOF
39087
39088 fi
39089
39090 fi
39091 done
39092
39093
39094
39095 if test $ac_cv_func_vprintf = yes ; then
39096
39097
39098 for ac_func in snprintf vsnprintf
39099 do
39100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39101 echo "$as_me:$LINENO: checking for $ac_func" >&5
39102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39103 if eval "test \"\${$as_ac_var+set}\" = set"; then
39104   echo $ECHO_N "(cached) $ECHO_C" >&6
39105 else
39106   cat >conftest.$ac_ext <<_ACEOF
39107 /* confdefs.h.  */
39108 _ACEOF
39109 cat confdefs.h >>conftest.$ac_ext
39110 cat >>conftest.$ac_ext <<_ACEOF
39111 /* end confdefs.h.  */
39112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39114 #define $ac_func innocuous_$ac_func
39115
39116 /* System header to define __stub macros and hopefully few prototypes,
39117     which can conflict with char $ac_func (); below.
39118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39119     <limits.h> exists even on freestanding compilers.  */
39120
39121 #ifdef __STDC__
39122 # include <limits.h>
39123 #else
39124 # include <assert.h>
39125 #endif
39126
39127 #undef $ac_func
39128
39129 /* Override any gcc2 internal prototype to avoid an error.  */
39130 #ifdef __cplusplus
39131 extern "C"
39132 {
39133 #endif
39134 /* We use char because int might match the return type of a gcc2
39135    builtin and then its argument prototype would still apply.  */
39136 char $ac_func ();
39137 /* The GNU C library defines this for functions which it implements
39138     to always fail with ENOSYS.  Some functions are actually named
39139     something starting with __ and the normal name is an alias.  */
39140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39141 choke me
39142 #else
39143 char (*f) () = $ac_func;
39144 #endif
39145 #ifdef __cplusplus
39146 }
39147 #endif
39148
39149 int
39150 main ()
39151 {
39152 return f != $ac_func;
39153   ;
39154   return 0;
39155 }
39156 _ACEOF
39157 rm -f conftest.$ac_objext conftest$ac_exeext
39158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39159   (eval $ac_link) 2>conftest.er1
39160   ac_status=$?
39161   grep -v '^ *+' conftest.er1 >conftest.err
39162   rm -f conftest.er1
39163   cat conftest.err >&5
39164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165   (exit $ac_status); } &&
39166          { ac_try='test -z "$ac_c_werror_flag"
39167                          || test ! -s conftest.err'
39168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39169   (eval $ac_try) 2>&5
39170   ac_status=$?
39171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172   (exit $ac_status); }; } &&
39173          { ac_try='test -s conftest$ac_exeext'
39174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175   (eval $ac_try) 2>&5
39176   ac_status=$?
39177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178   (exit $ac_status); }; }; then
39179   eval "$as_ac_var=yes"
39180 else
39181   echo "$as_me: failed program was:" >&5
39182 sed 's/^/| /' conftest.$ac_ext >&5
39183
39184 eval "$as_ac_var=no"
39185 fi
39186 rm -f conftest.err conftest.$ac_objext \
39187       conftest$ac_exeext conftest.$ac_ext
39188 fi
39189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39191 if test `eval echo '${'$as_ac_var'}'` = yes; then
39192   cat >>confdefs.h <<_ACEOF
39193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39194 _ACEOF
39195
39196 fi
39197 done
39198
39199 fi
39200
39201
39202
39203
39204
39205
39206
39207
39208
39209
39210
39211
39212
39213
39214
39215
39216
39217
39218
39219
39220
39221
39222
39223
39224
39225
39226
39227
39228
39229
39230
39231
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256 for ac_func in \
39257         bcopy                   \
39258         closesocket             \
39259         chroot                  \
39260         endgrent                \
39261         endpwent                \
39262         fcntl                   \
39263         flock                   \
39264         fstat                   \
39265         getdtablesize           \
39266         getgrgid                \
39267         gethostname             \
39268         getpass                 \
39269         getpassphrase           \
39270         getpwuid                \
39271         getpwnam                \
39272         getspnam                \
39273         gettimeofday            \
39274         initgroups              \
39275         inet_ntoa_b             \
39276         ioctl                   \
39277         lockf                   \
39278         memcpy                  \
39279         memmove                 \
39280         memrchr                 \
39281         mkstemp                 \
39282         mktemp                  \
39283         pipe                    \
39284         read                    \
39285         recv                    \
39286         recvfrom                \
39287         setpwfile               \
39288         setgid                  \
39289         setegid                 \
39290         setsid                  \
39291         setuid                  \
39292         seteuid                 \
39293         signal                  \
39294         strdup                  \
39295         strpbrk                 \
39296         strrchr                 \
39297         strsep                  \
39298         strstr                  \
39299         strtol                  \
39300         strtoul                 \
39301         strtoq                  \
39302         strtouq                 \
39303         strtoll                 \
39304         strspn                  \
39305         sysconf                 \
39306         waitpid                 \
39307         wait4                   \
39308         write                   \
39309         send                    \
39310         sendmsg                 \
39311         sendto                  \
39312
39313 do
39314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39315 echo "$as_me:$LINENO: checking for $ac_func" >&5
39316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39317 if eval "test \"\${$as_ac_var+set}\" = set"; then
39318   echo $ECHO_N "(cached) $ECHO_C" >&6
39319 else
39320   cat >conftest.$ac_ext <<_ACEOF
39321 /* confdefs.h.  */
39322 _ACEOF
39323 cat confdefs.h >>conftest.$ac_ext
39324 cat >>conftest.$ac_ext <<_ACEOF
39325 /* end confdefs.h.  */
39326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39328 #define $ac_func innocuous_$ac_func
39329
39330 /* System header to define __stub macros and hopefully few prototypes,
39331     which can conflict with char $ac_func (); below.
39332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39333     <limits.h> exists even on freestanding compilers.  */
39334
39335 #ifdef __STDC__
39336 # include <limits.h>
39337 #else
39338 # include <assert.h>
39339 #endif
39340
39341 #undef $ac_func
39342
39343 /* Override any gcc2 internal prototype to avoid an error.  */
39344 #ifdef __cplusplus
39345 extern "C"
39346 {
39347 #endif
39348 /* We use char because int might match the return type of a gcc2
39349    builtin and then its argument prototype would still apply.  */
39350 char $ac_func ();
39351 /* The GNU C library defines this for functions which it implements
39352     to always fail with ENOSYS.  Some functions are actually named
39353     something starting with __ and the normal name is an alias.  */
39354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39355 choke me
39356 #else
39357 char (*f) () = $ac_func;
39358 #endif
39359 #ifdef __cplusplus
39360 }
39361 #endif
39362
39363 int
39364 main ()
39365 {
39366 return f != $ac_func;
39367   ;
39368   return 0;
39369 }
39370 _ACEOF
39371 rm -f conftest.$ac_objext conftest$ac_exeext
39372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39373   (eval $ac_link) 2>conftest.er1
39374   ac_status=$?
39375   grep -v '^ *+' conftest.er1 >conftest.err
39376   rm -f conftest.er1
39377   cat conftest.err >&5
39378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39379   (exit $ac_status); } &&
39380          { ac_try='test -z "$ac_c_werror_flag"
39381                          || test ! -s conftest.err'
39382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39383   (eval $ac_try) 2>&5
39384   ac_status=$?
39385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386   (exit $ac_status); }; } &&
39387          { ac_try='test -s conftest$ac_exeext'
39388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39389   (eval $ac_try) 2>&5
39390   ac_status=$?
39391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39392   (exit $ac_status); }; }; then
39393   eval "$as_ac_var=yes"
39394 else
39395   echo "$as_me: failed program was:" >&5
39396 sed 's/^/| /' conftest.$ac_ext >&5
39397
39398 eval "$as_ac_var=no"
39399 fi
39400 rm -f conftest.err conftest.$ac_objext \
39401       conftest$ac_exeext conftest.$ac_ext
39402 fi
39403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39405 if test `eval echo '${'$as_ac_var'}'` = yes; then
39406   cat >>confdefs.h <<_ACEOF
39407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39408 _ACEOF
39409
39410 fi
39411 done
39412
39413
39414
39415
39416 for ac_func in getopt getpeereid
39417 do
39418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39419 echo "$as_me:$LINENO: checking for $ac_func" >&5
39420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39421 if eval "test \"\${$as_ac_var+set}\" = set"; then
39422   echo $ECHO_N "(cached) $ECHO_C" >&6
39423 else
39424   cat >conftest.$ac_ext <<_ACEOF
39425 /* confdefs.h.  */
39426 _ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h.  */
39430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39432 #define $ac_func innocuous_$ac_func
39433
39434 /* System header to define __stub macros and hopefully few prototypes,
39435     which can conflict with char $ac_func (); below.
39436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39437     <limits.h> exists even on freestanding compilers.  */
39438
39439 #ifdef __STDC__
39440 # include <limits.h>
39441 #else
39442 # include <assert.h>
39443 #endif
39444
39445 #undef $ac_func
39446
39447 /* Override any gcc2 internal prototype to avoid an error.  */
39448 #ifdef __cplusplus
39449 extern "C"
39450 {
39451 #endif
39452 /* We use char because int might match the return type of a gcc2
39453    builtin and then its argument prototype would still apply.  */
39454 char $ac_func ();
39455 /* The GNU C library defines this for functions which it implements
39456     to always fail with ENOSYS.  Some functions are actually named
39457     something starting with __ and the normal name is an alias.  */
39458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39459 choke me
39460 #else
39461 char (*f) () = $ac_func;
39462 #endif
39463 #ifdef __cplusplus
39464 }
39465 #endif
39466
39467 int
39468 main ()
39469 {
39470 return f != $ac_func;
39471   ;
39472   return 0;
39473 }
39474 _ACEOF
39475 rm -f conftest.$ac_objext conftest$ac_exeext
39476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39477   (eval $ac_link) 2>conftest.er1
39478   ac_status=$?
39479   grep -v '^ *+' conftest.er1 >conftest.err
39480   rm -f conftest.er1
39481   cat conftest.err >&5
39482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483   (exit $ac_status); } &&
39484          { ac_try='test -z "$ac_c_werror_flag"
39485                          || test ! -s conftest.err'
39486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39487   (eval $ac_try) 2>&5
39488   ac_status=$?
39489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490   (exit $ac_status); }; } &&
39491          { ac_try='test -s conftest$ac_exeext'
39492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493   (eval $ac_try) 2>&5
39494   ac_status=$?
39495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496   (exit $ac_status); }; }; then
39497   eval "$as_ac_var=yes"
39498 else
39499   echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39501
39502 eval "$as_ac_var=no"
39503 fi
39504 rm -f conftest.err conftest.$ac_objext \
39505       conftest$ac_exeext conftest.$ac_ext
39506 fi
39507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39509 if test `eval echo '${'$as_ac_var'}'` = yes; then
39510   cat >>confdefs.h <<_ACEOF
39511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39512 _ACEOF
39513
39514 else
39515   case $LIBOBJS in
39516     "$ac_func.$ac_objext"   | \
39517   *" $ac_func.$ac_objext"   | \
39518     "$ac_func.$ac_objext "* | \
39519   *" $ac_func.$ac_objext "* ) ;;
39520   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39521 esac
39522
39523 fi
39524 done
39525
39526
39527
39528 if test "$ac_cv_func_getopt" != yes; then
39529         LIBSRCS="$LIBSRCS getopt.c"
39530 fi
39531
39532 if test "$ac_cv_func_getpeereid" != yes; then
39533
39534 for ac_func in getpeerucred
39535 do
39536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39537 echo "$as_me:$LINENO: checking for $ac_func" >&5
39538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39539 if eval "test \"\${$as_ac_var+set}\" = set"; then
39540   echo $ECHO_N "(cached) $ECHO_C" >&6
39541 else
39542   cat >conftest.$ac_ext <<_ACEOF
39543 /* confdefs.h.  */
39544 _ACEOF
39545 cat confdefs.h >>conftest.$ac_ext
39546 cat >>conftest.$ac_ext <<_ACEOF
39547 /* end confdefs.h.  */
39548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39550 #define $ac_func innocuous_$ac_func
39551
39552 /* System header to define __stub macros and hopefully few prototypes,
39553     which can conflict with char $ac_func (); below.
39554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39555     <limits.h> exists even on freestanding compilers.  */
39556
39557 #ifdef __STDC__
39558 # include <limits.h>
39559 #else
39560 # include <assert.h>
39561 #endif
39562
39563 #undef $ac_func
39564
39565 /* Override any gcc2 internal prototype to avoid an error.  */
39566 #ifdef __cplusplus
39567 extern "C"
39568 {
39569 #endif
39570 /* We use char because int might match the return type of a gcc2
39571    builtin and then its argument prototype would still apply.  */
39572 char $ac_func ();
39573 /* The GNU C library defines this for functions which it implements
39574     to always fail with ENOSYS.  Some functions are actually named
39575     something starting with __ and the normal name is an alias.  */
39576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39577 choke me
39578 #else
39579 char (*f) () = $ac_func;
39580 #endif
39581 #ifdef __cplusplus
39582 }
39583 #endif
39584
39585 int
39586 main ()
39587 {
39588 return f != $ac_func;
39589   ;
39590   return 0;
39591 }
39592 _ACEOF
39593 rm -f conftest.$ac_objext conftest$ac_exeext
39594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39595   (eval $ac_link) 2>conftest.er1
39596   ac_status=$?
39597   grep -v '^ *+' conftest.er1 >conftest.err
39598   rm -f conftest.er1
39599   cat conftest.err >&5
39600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601   (exit $ac_status); } &&
39602          { ac_try='test -z "$ac_c_werror_flag"
39603                          || test ! -s conftest.err'
39604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39605   (eval $ac_try) 2>&5
39606   ac_status=$?
39607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39608   (exit $ac_status); }; } &&
39609          { ac_try='test -s conftest$ac_exeext'
39610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39611   (eval $ac_try) 2>&5
39612   ac_status=$?
39613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39614   (exit $ac_status); }; }; then
39615   eval "$as_ac_var=yes"
39616 else
39617   echo "$as_me: failed program was:" >&5
39618 sed 's/^/| /' conftest.$ac_ext >&5
39619
39620 eval "$as_ac_var=no"
39621 fi
39622 rm -f conftest.err conftest.$ac_objext \
39623       conftest$ac_exeext conftest.$ac_ext
39624 fi
39625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39627 if test `eval echo '${'$as_ac_var'}'` = yes; then
39628   cat >>confdefs.h <<_ACEOF
39629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39630 _ACEOF
39631
39632 fi
39633 done
39634
39635         if test "$ac_cv_func_getpeerucred" != yes ; then
39636                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39637 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39638 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39639   echo $ECHO_N "(cached) $ECHO_C" >&6
39640 else
39641   cat >conftest.$ac_ext <<_ACEOF
39642 /* confdefs.h.  */
39643 _ACEOF
39644 cat confdefs.h >>conftest.$ac_ext
39645 cat >>conftest.$ac_ext <<_ACEOF
39646 /* end confdefs.h.  */
39647 $ac_includes_default
39648 #ifdef HAVE_SYS_SOCKET_H
39649 #include <sys/socket.h>
39650 #endif
39651
39652 int
39653 main ()
39654 {
39655 static struct msghdr ac_aggr;
39656 if (ac_aggr.msg_accrightslen)
39657 return 0;
39658   ;
39659   return 0;
39660 }
39661 _ACEOF
39662 rm -f conftest.$ac_objext
39663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39664   (eval $ac_compile) 2>conftest.er1
39665   ac_status=$?
39666   grep -v '^ *+' conftest.er1 >conftest.err
39667   rm -f conftest.er1
39668   cat conftest.err >&5
39669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670   (exit $ac_status); } &&
39671          { ac_try='test -z "$ac_c_werror_flag"
39672                          || test ! -s conftest.err'
39673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39674   (eval $ac_try) 2>&5
39675   ac_status=$?
39676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677   (exit $ac_status); }; } &&
39678          { ac_try='test -s conftest.$ac_objext'
39679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39680   (eval $ac_try) 2>&5
39681   ac_status=$?
39682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683   (exit $ac_status); }; }; then
39684   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39685 else
39686   echo "$as_me: failed program was:" >&5
39687 sed 's/^/| /' conftest.$ac_ext >&5
39688
39689 cat >conftest.$ac_ext <<_ACEOF
39690 /* confdefs.h.  */
39691 _ACEOF
39692 cat confdefs.h >>conftest.$ac_ext
39693 cat >>conftest.$ac_ext <<_ACEOF
39694 /* end confdefs.h.  */
39695 $ac_includes_default
39696 #ifdef HAVE_SYS_SOCKET_H
39697 #include <sys/socket.h>
39698 #endif
39699
39700 int
39701 main ()
39702 {
39703 static struct msghdr ac_aggr;
39704 if (sizeof ac_aggr.msg_accrightslen)
39705 return 0;
39706   ;
39707   return 0;
39708 }
39709 _ACEOF
39710 rm -f conftest.$ac_objext
39711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39712   (eval $ac_compile) 2>conftest.er1
39713   ac_status=$?
39714   grep -v '^ *+' conftest.er1 >conftest.err
39715   rm -f conftest.er1
39716   cat conftest.err >&5
39717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718   (exit $ac_status); } &&
39719          { ac_try='test -z "$ac_c_werror_flag"
39720                          || test ! -s conftest.err'
39721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39722   (eval $ac_try) 2>&5
39723   ac_status=$?
39724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725   (exit $ac_status); }; } &&
39726          { ac_try='test -s conftest.$ac_objext'
39727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39728   (eval $ac_try) 2>&5
39729   ac_status=$?
39730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731   (exit $ac_status); }; }; then
39732   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39733 else
39734   echo "$as_me: failed program was:" >&5
39735 sed 's/^/| /' conftest.$ac_ext >&5
39736
39737 ac_cv_member_struct_msghdr_msg_accrightslen=no
39738 fi
39739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39740 fi
39741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39742 fi
39743 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39744 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39745 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39746
39747 cat >>confdefs.h <<_ACEOF
39748 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39749 _ACEOF
39750
39751
39752 fi
39753
39754                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39755                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39756 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39757 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39758   echo $ECHO_N "(cached) $ECHO_C" >&6
39759 else
39760   cat >conftest.$ac_ext <<_ACEOF
39761 /* confdefs.h.  */
39762 _ACEOF
39763 cat confdefs.h >>conftest.$ac_ext
39764 cat >>conftest.$ac_ext <<_ACEOF
39765 /* end confdefs.h.  */
39766 $ac_includes_default
39767 #ifdef HAVE_SYS_SOCKET_H
39768 #include <sys/socket.h>
39769 #endif
39770
39771 int
39772 main ()
39773 {
39774 static struct msghdr ac_aggr;
39775 if (ac_aggr.msg_control)
39776 return 0;
39777   ;
39778   return 0;
39779 }
39780 _ACEOF
39781 rm -f conftest.$ac_objext
39782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39783   (eval $ac_compile) 2>conftest.er1
39784   ac_status=$?
39785   grep -v '^ *+' conftest.er1 >conftest.err
39786   rm -f conftest.er1
39787   cat conftest.err >&5
39788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39789   (exit $ac_status); } &&
39790          { ac_try='test -z "$ac_c_werror_flag"
39791                          || test ! -s conftest.err'
39792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39793   (eval $ac_try) 2>&5
39794   ac_status=$?
39795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39796   (exit $ac_status); }; } &&
39797          { ac_try='test -s conftest.$ac_objext'
39798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39799   (eval $ac_try) 2>&5
39800   ac_status=$?
39801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39802   (exit $ac_status); }; }; then
39803   ac_cv_member_struct_msghdr_msg_control=yes
39804 else
39805   echo "$as_me: failed program was:" >&5
39806 sed 's/^/| /' conftest.$ac_ext >&5
39807
39808 cat >conftest.$ac_ext <<_ACEOF
39809 /* confdefs.h.  */
39810 _ACEOF
39811 cat confdefs.h >>conftest.$ac_ext
39812 cat >>conftest.$ac_ext <<_ACEOF
39813 /* end confdefs.h.  */
39814 $ac_includes_default
39815 #ifdef HAVE_SYS_SOCKET_H
39816 #include <sys/socket.h>
39817 #endif
39818
39819 int
39820 main ()
39821 {
39822 static struct msghdr ac_aggr;
39823 if (sizeof ac_aggr.msg_control)
39824 return 0;
39825   ;
39826   return 0;
39827 }
39828 _ACEOF
39829 rm -f conftest.$ac_objext
39830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39831   (eval $ac_compile) 2>conftest.er1
39832   ac_status=$?
39833   grep -v '^ *+' conftest.er1 >conftest.err
39834   rm -f conftest.er1
39835   cat conftest.err >&5
39836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837   (exit $ac_status); } &&
39838          { ac_try='test -z "$ac_c_werror_flag"
39839                          || test ! -s conftest.err'
39840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39841   (eval $ac_try) 2>&5
39842   ac_status=$?
39843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844   (exit $ac_status); }; } &&
39845          { ac_try='test -s conftest.$ac_objext'
39846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39847   (eval $ac_try) 2>&5
39848   ac_status=$?
39849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850   (exit $ac_status); }; }; then
39851   ac_cv_member_struct_msghdr_msg_control=yes
39852 else
39853   echo "$as_me: failed program was:" >&5
39854 sed 's/^/| /' conftest.$ac_ext >&5
39855
39856 ac_cv_member_struct_msghdr_msg_control=no
39857 fi
39858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39859 fi
39860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39861 fi
39862 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39863 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39864 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39865
39866 cat >>confdefs.h <<_ACEOF
39867 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39868 _ACEOF
39869
39870
39871 fi
39872
39873                 fi
39874         fi
39875         LIBSRCS="$LIBSRCS getpeereid.c"
39876 fi
39877
39878 if test "$ac_cv_func_snprintf" != yes ||
39879    test "$ac_cv_func_vsnprintf" != yes; then
39880         if test "$ac_cv_func_snprintf" != yes; then
39881
39882 cat >>confdefs.h <<\_ACEOF
39883 #define snprintf ber_pvt_snprintf
39884 _ACEOF
39885
39886         fi
39887         if test "$ac_cv_func_vsnprintf" != yes; then
39888
39889 cat >>confdefs.h <<\_ACEOF
39890 #define vsnprintf ber_pvt_vsnprintf
39891 _ACEOF
39892
39893         fi
39894 fi
39895
39896
39897 if test "$ol_enable_slapi" != no ; then
39898
39899 for ac_header in ltdl.h
39900 do
39901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39903   echo "$as_me:$LINENO: checking for $ac_header" >&5
39904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39906   echo $ECHO_N "(cached) $ECHO_C" >&6
39907 fi
39908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39910 else
39911   # Is the header compilable?
39912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39914 cat >conftest.$ac_ext <<_ACEOF
39915 /* confdefs.h.  */
39916 _ACEOF
39917 cat confdefs.h >>conftest.$ac_ext
39918 cat >>conftest.$ac_ext <<_ACEOF
39919 /* end confdefs.h.  */
39920 $ac_includes_default
39921 #include <$ac_header>
39922 _ACEOF
39923 rm -f conftest.$ac_objext
39924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39925   (eval $ac_compile) 2>conftest.er1
39926   ac_status=$?
39927   grep -v '^ *+' conftest.er1 >conftest.err
39928   rm -f conftest.er1
39929   cat conftest.err >&5
39930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931   (exit $ac_status); } &&
39932          { ac_try='test -z "$ac_c_werror_flag"
39933                          || test ! -s conftest.err'
39934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935   (eval $ac_try) 2>&5
39936   ac_status=$?
39937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938   (exit $ac_status); }; } &&
39939          { ac_try='test -s conftest.$ac_objext'
39940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941   (eval $ac_try) 2>&5
39942   ac_status=$?
39943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944   (exit $ac_status); }; }; then
39945   ac_header_compiler=yes
39946 else
39947   echo "$as_me: failed program was:" >&5
39948 sed 's/^/| /' conftest.$ac_ext >&5
39949
39950 ac_header_compiler=no
39951 fi
39952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39954 echo "${ECHO_T}$ac_header_compiler" >&6
39955
39956 # Is the header present?
39957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39959 cat >conftest.$ac_ext <<_ACEOF
39960 /* confdefs.h.  */
39961 _ACEOF
39962 cat confdefs.h >>conftest.$ac_ext
39963 cat >>conftest.$ac_ext <<_ACEOF
39964 /* end confdefs.h.  */
39965 #include <$ac_header>
39966 _ACEOF
39967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39969   ac_status=$?
39970   grep -v '^ *+' conftest.er1 >conftest.err
39971   rm -f conftest.er1
39972   cat conftest.err >&5
39973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39974   (exit $ac_status); } >/dev/null; then
39975   if test -s conftest.err; then
39976     ac_cpp_err=$ac_c_preproc_warn_flag
39977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39978   else
39979     ac_cpp_err=
39980   fi
39981 else
39982   ac_cpp_err=yes
39983 fi
39984 if test -z "$ac_cpp_err"; then
39985   ac_header_preproc=yes
39986 else
39987   echo "$as_me: failed program was:" >&5
39988 sed 's/^/| /' conftest.$ac_ext >&5
39989
39990   ac_header_preproc=no
39991 fi
39992 rm -f conftest.err conftest.$ac_ext
39993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39994 echo "${ECHO_T}$ac_header_preproc" >&6
39995
39996 # So?  What about this header?
39997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39998   yes:no: )
39999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40003     ac_header_preproc=yes
40004     ;;
40005   no:yes:* )
40006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40018     (
40019       cat <<\_ASBOX
40020 ## --------------------------------------------- ##
40021 ## Report this to <http://www.openldap.org/its/> ##
40022 ## --------------------------------------------- ##
40023 _ASBOX
40024     ) |
40025       sed "s/^/$as_me: WARNING:     /" >&2
40026     ;;
40027 esac
40028 echo "$as_me:$LINENO: checking for $ac_header" >&5
40029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40031   echo $ECHO_N "(cached) $ECHO_C" >&6
40032 else
40033   eval "$as_ac_Header=\$ac_header_preproc"
40034 fi
40035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40037
40038 fi
40039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40040   cat >>confdefs.h <<_ACEOF
40041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40042 _ACEOF
40043
40044 fi
40045
40046 done
40047
40048
40049         if test $ac_cv_header_ltdl_h != yes ; then
40050                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40051 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40052    { (exit 1); exit 1; }; }
40053         fi
40054         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40055 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40056 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40057   echo $ECHO_N "(cached) $ECHO_C" >&6
40058 else
40059   ac_check_lib_save_LIBS=$LIBS
40060 LIBS="-lltdl  $LIBS"
40061 cat >conftest.$ac_ext <<_ACEOF
40062 /* confdefs.h.  */
40063 _ACEOF
40064 cat confdefs.h >>conftest.$ac_ext
40065 cat >>conftest.$ac_ext <<_ACEOF
40066 /* end confdefs.h.  */
40067
40068 /* Override any gcc2 internal prototype to avoid an error.  */
40069 #ifdef __cplusplus
40070 extern "C"
40071 #endif
40072 /* We use char because int might match the return type of a gcc2
40073    builtin and then its argument prototype would still apply.  */
40074 char lt_dlinit ();
40075 int
40076 main ()
40077 {
40078 lt_dlinit ();
40079   ;
40080   return 0;
40081 }
40082 _ACEOF
40083 rm -f conftest.$ac_objext conftest$ac_exeext
40084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40085   (eval $ac_link) 2>conftest.er1
40086   ac_status=$?
40087   grep -v '^ *+' conftest.er1 >conftest.err
40088   rm -f conftest.er1
40089   cat conftest.err >&5
40090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40091   (exit $ac_status); } &&
40092          { ac_try='test -z "$ac_c_werror_flag"
40093                          || test ! -s conftest.err'
40094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40095   (eval $ac_try) 2>&5
40096   ac_status=$?
40097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098   (exit $ac_status); }; } &&
40099          { ac_try='test -s conftest$ac_exeext'
40100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40101   (eval $ac_try) 2>&5
40102   ac_status=$?
40103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104   (exit $ac_status); }; }; then
40105   ac_cv_lib_ltdl_lt_dlinit=yes
40106 else
40107   echo "$as_me: failed program was:" >&5
40108 sed 's/^/| /' conftest.$ac_ext >&5
40109
40110 ac_cv_lib_ltdl_lt_dlinit=no
40111 fi
40112 rm -f conftest.err conftest.$ac_objext \
40113       conftest$ac_exeext conftest.$ac_ext
40114 LIBS=$ac_check_lib_save_LIBS
40115 fi
40116 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40117 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40118 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40119
40120                 SLAPI_LIBS=-lltdl
40121                 LIBSLAPI=libslapi.a
40122                 LIBSLAPITOOLS=../libslapi.a
40123
40124 cat >>confdefs.h <<\_ACEOF
40125 #define HAVE_LIBLTDL 1
40126 _ACEOF
40127
40128
40129 else
40130   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40131 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40132    { (exit 1); exit 1; }; }
40133 fi
40134
40135
40136
40137 cat >>confdefs.h <<\_ACEOF
40138 #define LDAP_SLAPI 1
40139 _ACEOF
40140
40141 fi
40142
40143 if test "$ol_enable_debug" != no ; then
40144         if test "$ol_enable_debug" = traditional; then
40145
40146 cat >>confdefs.h <<\_ACEOF
40147 #define OLD_DEBUG 1
40148 _ACEOF
40149
40150         fi
40151
40152 cat >>confdefs.h <<\_ACEOF
40153 #define LDAP_DEBUG 1
40154 _ACEOF
40155
40156 fi
40157 if test "$ol_enable_syslog" = yes ; then
40158
40159 cat >>confdefs.h <<\_ACEOF
40160 #define LDAP_SYSLOG 1
40161 _ACEOF
40162
40163 fi
40164 if test "$ol_link_kbind" != no ; then
40165
40166 cat >>confdefs.h <<\_ACEOF
40167 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
40168 _ACEOF
40169
40170 fi
40171 if test "$ol_enable_proctitle" != no ; then
40172
40173 cat >>confdefs.h <<\_ACEOF
40174 #define LDAP_PROCTITLE 1
40175 _ACEOF
40176
40177 fi
40178 if test "$ol_enable_referrals" != no ; then
40179
40180 cat >>confdefs.h <<\_ACEOF
40181 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40182 _ACEOF
40183
40184 fi
40185 if test "$ol_enable_local" != no; then
40186
40187 cat >>confdefs.h <<\_ACEOF
40188 #define LDAP_PF_LOCAL 1
40189 _ACEOF
40190
40191 fi
40192 if test "$ol_link_ipv6" != no; then
40193
40194 cat >>confdefs.h <<\_ACEOF
40195 #define LDAP_PF_INET6 1
40196 _ACEOF
40197
40198 fi
40199 if test "$ol_enable_cleartext" != no ; then
40200
40201 cat >>confdefs.h <<\_ACEOF
40202 #define SLAPD_CLEARTEXT 1
40203 _ACEOF
40204
40205 fi
40206 if test "$ol_enable_crypt" != no ; then
40207
40208 cat >>confdefs.h <<\_ACEOF
40209 #define SLAPD_CRYPT 1
40210 _ACEOF
40211
40212 fi
40213 if test "$ol_link_spasswd" != no ; then
40214
40215 cat >>confdefs.h <<\_ACEOF
40216 #define SLAPD_SPASSWD 1
40217 _ACEOF
40218
40219 fi
40220 if test "$ol_enable_rlookups" != no ; then
40221
40222 cat >>confdefs.h <<\_ACEOF
40223 #define SLAPD_RLOOKUPS 1
40224 _ACEOF
40225
40226 fi
40227 if test "$ol_enable_aci" != no ; then
40228         if test $ol_enable_dynacl = no ; then
40229                 ol_enable_dynacl=yes
40230                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40231 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40232         fi
40233         if test "$ol_enable_aci" = mod ; then
40234                 MFLAG=SLAPD_MOD_DYNAMIC
40235                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40236 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40237    { (exit 1); exit 1; }; }
40238         else
40239                 MFLAG=SLAPD_MOD_STATIC
40240         fi
40241         WITH_ACI_ENABLED=$ol_enable_aci
40242
40243 cat >>confdefs.h <<_ACEOF
40244 #define SLAPD_ACI_ENABLED $MFLAG
40245 _ACEOF
40246
40247 else
40248         WITH_ACI_ENABLED=no
40249 fi
40250 if test "$ol_enable_dynacl" != no ; then
40251
40252 cat >>confdefs.h <<\_ACEOF
40253 #define SLAP_DYNACL 1
40254 _ACEOF
40255
40256 fi
40257
40258 if test "$ol_link_modules" != no ; then
40259
40260 cat >>confdefs.h <<\_ACEOF
40261 #define SLAPD_MODULES 1
40262 _ACEOF
40263
40264         BUILD_SLAPD=yes
40265         SLAPD_MODULES_LDFLAGS="-dlopen self"
40266 fi
40267
40268
40269 cat >>confdefs.h <<\_ACEOF
40270 #define SLAPD_MOD_STATIC 1
40271 _ACEOF
40272
40273
40274 cat >>confdefs.h <<\_ACEOF
40275 #define SLAPD_MOD_DYNAMIC 2
40276 _ACEOF
40277
40278
40279 if test "$ol_enable_monitor" != no ; then
40280         BUILD_SLAPD=yes
40281         BUILD_MONITOR=$ol_enable_monitor
40282         if test "$ol_enable_monitor" = mod ; then
40283                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40284                 MFLAG=SLAPD_MOD_DYNAMIC
40285         else
40286                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40287                 MFLAG=SLAPD_MOD_STATIC
40288         fi
40289
40290 cat >>confdefs.h <<_ACEOF
40291 #define SLAPD_MONITOR $MFLAG
40292 _ACEOF
40293
40294 fi
40295
40296 if test "$ol_enable_bdb" != no ; then
40297         BUILD_SLAPD=yes
40298         BUILD_BDB=$ol_enable_bdb
40299         if test "$ol_enable_bdb" = mod ; then
40300                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40301                 MFLAG=SLAPD_MOD_DYNAMIC
40302         else
40303                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40304                 MFLAG=SLAPD_MOD_STATIC
40305         fi
40306
40307 cat >>confdefs.h <<_ACEOF
40308 #define SLAPD_BDB $MFLAG
40309 _ACEOF
40310
40311 fi
40312
40313 if test "$ol_enable_dnssrv" != no ; then
40314         BUILD_SLAPD=yes
40315         BUILD_DNSSRV=$ol_enable_dnssrv
40316         if test "$ol_enable_dnssrv" = mod ; then
40317                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40318                 MFLAG=SLAPD_MOD_DYNAMIC
40319         else
40320                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40321                 MFLAG=SLAPD_MOD_STATIC
40322         fi
40323
40324 cat >>confdefs.h <<_ACEOF
40325 #define SLAPD_DNSSRV $MFLAG
40326 _ACEOF
40327
40328 fi
40329
40330 if test "$ol_enable_hdb" != no ; then
40331         BUILD_SLAPD=yes
40332         BUILD_HDB=$ol_enable_hdb
40333         if test "$ol_enable_hdb" = mod ; then
40334                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40335                 MFLAG=SLAPD_MOD_DYNAMIC
40336         else
40337                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40338                 MFLAG=SLAPD_MOD_STATIC
40339         fi
40340
40341 cat >>confdefs.h <<_ACEOF
40342 #define SLAPD_HDB $MFLAG
40343 _ACEOF
40344
40345 fi
40346
40347 if test "$ol_enable_ldap" != no ; then
40348         BUILD_SLAPD=yes
40349         BUILD_LDAP=$ol_enable_ldap
40350         if test "$ol_enable_ldap" = mod ; then
40351                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40352                 MFLAG=SLAPD_MOD_DYNAMIC
40353         else
40354                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40355                 MFLAG=SLAPD_MOD_STATIC
40356         fi
40357
40358 cat >>confdefs.h <<_ACEOF
40359 #define SLAPD_LDAP $MFLAG
40360 _ACEOF
40361
40362 fi
40363
40364 if test "$ol_enable_meta" != no ; then
40365         BUILD_SLAPD=yes
40366         BUILD_META=$ol_enable_meta
40367         BUILD_REWRITE=yes
40368         if test "$ol_enable_meta" = mod ; then
40369                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40370                 MFLAG=SLAPD_MOD_DYNAMIC
40371         else
40372                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40373                 MFLAG=SLAPD_MOD_STATIC
40374         fi
40375
40376 cat >>confdefs.h <<_ACEOF
40377 #define SLAPD_META $MFLAG
40378 _ACEOF
40379
40380 fi
40381
40382 if test "$ol_enable_null" != no ; then
40383         BUILD_SLAPD=yes
40384         BUILD_NULL=$ol_enable_null
40385         if test "$ol_enable_null" = mod ; then
40386                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40387                 MFLAG=SLAPD_MOD_DYNAMIC
40388         else
40389                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40390                 MFLAG=SLAPD_MOD_STATIC
40391         fi
40392
40393 cat >>confdefs.h <<_ACEOF
40394 #define SLAPD_NULL $MFLAG
40395 _ACEOF
40396
40397 fi
40398
40399 if test "$ol_enable_passwd" != no ; then
40400         BUILD_SLAPD=yes
40401         BUILD_PASSWD=$ol_enable_passwd
40402         if test "$ol_enable_passwd" = mod ; then
40403                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40404                 MFLAG=SLAPD_MOD_DYNAMIC
40405         else
40406                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40407                 MFLAG=SLAPD_MOD_STATIC
40408         fi
40409
40410 cat >>confdefs.h <<_ACEOF
40411 #define SLAPD_PASSWD $MFLAG
40412 _ACEOF
40413
40414 fi
40415
40416 if test "$ol_link_perl" != no ; then
40417         BUILD_SLAPD=yes
40418         BUILD_PERL=$ol_enable_perl
40419         if test "$ol_enable_perl" = mod ; then
40420                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40421                 MFLAG=SLAPD_MOD_DYNAMIC
40422         else
40423                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40424                 MFLAG=SLAPD_MOD_STATIC
40425         fi
40426
40427 cat >>confdefs.h <<_ACEOF
40428 #define SLAPD_PERL $MFLAG
40429 _ACEOF
40430
40431 fi
40432
40433 if test "$ol_enable_relay" != no ; then
40434         BUILD_SLAPD=yes
40435         BUILD_RELAY=$ol_enable_relay
40436         if test "$ol_enable_relay" = mod ; then
40437                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40438                 MFLAG=SLAPD_MOD_DYNAMIC
40439         else
40440                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40441                 MFLAG=SLAPD_MOD_STATIC
40442         fi
40443
40444 cat >>confdefs.h <<_ACEOF
40445 #define SLAPD_RELAY $MFLAG
40446 _ACEOF
40447
40448 fi
40449
40450 if test "$ol_enable_shell" != no ; then
40451         if test "$ol_link_threads" != no ; then
40452                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40453 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40454         fi
40455         BUILD_SLAPD=yes
40456         BUILD_SHELL=$ol_enable_shell
40457         if test "$ol_enable_shell" = mod ; then
40458                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40459                 MFLAG=SLAPD_MOD_DYNAMIC
40460         else
40461                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40462                 MFLAG=SLAPD_MOD_STATIC
40463         fi
40464
40465 cat >>confdefs.h <<_ACEOF
40466 #define SLAPD_SHELL $MFLAG
40467 _ACEOF
40468
40469 fi
40470
40471 if test "$ol_link_sql" != no ; then
40472         BUILD_SLAPD=yes
40473         BUILD_SQL=$ol_enable_sql
40474         if test "$ol_enable_sql" = mod; then
40475                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40476                 MFLAG=SLAPD_MOD_DYNAMIC
40477         else
40478                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40479                 MFLAG=SLAPD_MOD_STATIC
40480         fi
40481
40482 cat >>confdefs.h <<_ACEOF
40483 #define SLAPD_SQL $MFLAG
40484 _ACEOF
40485
40486 fi
40487
40488 if test "$ol_enable_accesslog" != no ; then
40489         BUILD_ACCESSLOG=$ol_enable_accesslog
40490         if test "$ol_enable_accesslog" = mod ; then
40491                 MFLAG=SLAPD_MOD_DYNAMIC
40492                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40493         else
40494                 MFLAG=SLAPD_MOD_STATIC
40495                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40496         fi
40497
40498 cat >>confdefs.h <<_ACEOF
40499 #define SLAPD_OVER_ACCESSLOG $MFLAG
40500 _ACEOF
40501
40502 fi
40503
40504 if test "$ol_enable_auditlog" != no ; then
40505         BUILD_AUDITLOG=$ol_enable_auditlog
40506         if test "$ol_enable_auditlog" = mod ; then
40507                 MFLAG=SLAPD_MOD_DYNAMIC
40508                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40509         else
40510                 MFLAG=SLAPD_MOD_STATIC
40511                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40512         fi
40513
40514 cat >>confdefs.h <<_ACEOF
40515 #define SLAPD_OVER_AUDITLOG $MFLAG
40516 _ACEOF
40517
40518 fi
40519
40520 if test "$ol_enable_constraint" != no ; then
40521         BUILD_CONSTRAINT=$ol_enable_constraint
40522         if test "$ol_enable_constraint" = mod ; then
40523                 MFLAG=SLAPD_MOD_DYNAMIC
40524                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40525         else
40526                 MFLAG=SLAPD_MOD_STATIC
40527                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40528         fi
40529
40530 cat >>confdefs.h <<_ACEOF
40531 #define SLAPD_OVER_CONSTRAINT $MFLAG
40532 _ACEOF
40533
40534 fi
40535
40536 if test "$ol_enable_dds" != no ; then
40537         BUILD_DDS=$ol_enable_dds
40538         if test "$ol_enable_dds" = mod ; then
40539                 MFLAG=SLAPD_MOD_DYNAMIC
40540                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40541         else
40542                 MFLAG=SLAPD_MOD_STATIC
40543                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40544         fi
40545
40546 cat >>confdefs.h <<_ACEOF
40547 #define SLAPD_OVER_DDS $MFLAG
40548 _ACEOF
40549
40550 fi
40551
40552 if test "$ol_enable_denyop" != no ; then
40553         BUILD_DENYOP=$ol_enable_denyop
40554         if test "$ol_enable_denyop" = mod ; then
40555                 MFLAG=SLAPD_MOD_DYNAMIC
40556                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
40557         else
40558                 MFLAG=SLAPD_MOD_STATIC
40559                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
40560         fi
40561
40562 cat >>confdefs.h <<_ACEOF
40563 #define SLAPD_OVER_DENYOP $MFLAG
40564 _ACEOF
40565
40566 fi
40567
40568 if test "$ol_enable_dyngroup" != no ; then
40569         BUILD_DYNGROUP=$ol_enable_dyngroup
40570         if test "$ol_enable_dyngroup" = mod ; then
40571                 MFLAG=SLAPD_MOD_DYNAMIC
40572                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40573         else
40574                 MFLAG=SLAPD_MOD_STATIC
40575                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40576         fi
40577
40578 cat >>confdefs.h <<_ACEOF
40579 #define SLAPD_OVER_DYNGROUP $MFLAG
40580 _ACEOF
40581
40582 fi
40583
40584 if test "$ol_enable_dynlist" != no ; then
40585         BUILD_DYNLIST=$ol_enable_dynlist
40586         if test "$ol_enable_dynlist" = mod ; then
40587                 MFLAG=SLAPD_MOD_DYNAMIC
40588                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40589         else
40590                 MFLAG=SLAPD_MOD_STATIC
40591                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40592         fi
40593
40594 cat >>confdefs.h <<_ACEOF
40595 #define SLAPD_OVER_DYNLIST $MFLAG
40596 _ACEOF
40597
40598 fi
40599
40600 if test "$ol_enable_lastmod" != no ; then
40601         BUILD_LASTMOD=$ol_enable_lastmod
40602         if test "$ol_enable_lastmod" = mod ; then
40603                 MFLAG=SLAPD_MOD_DYNAMIC
40604                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
40605         else
40606                 MFLAG=SLAPD_MOD_STATIC
40607                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
40608         fi
40609
40610 cat >>confdefs.h <<_ACEOF
40611 #define SLAPD_OVER_LASTMOD $MFLAG
40612 _ACEOF
40613
40614 fi
40615
40616 if test "$ol_enable_ppolicy" != no ; then
40617         BUILD_PPOLICY=$ol_enable_ppolicy
40618         if test "$ol_enable_ppolicy" = mod ; then
40619                 MFLAG=SLAPD_MOD_DYNAMIC
40620                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40621         else
40622                 MFLAG=SLAPD_MOD_STATIC
40623                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40624         fi
40625
40626 cat >>confdefs.h <<_ACEOF
40627 #define SLAPD_OVER_PPOLICY $MFLAG
40628 _ACEOF
40629
40630 fi
40631
40632 if test "$ol_enable_proxycache" != no ; then
40633         BUILD_PROXYCACHE=$ol_enable_proxycache
40634         if test "$ol_enable_proxycache" = mod ; then
40635                 MFLAG=SLAPD_MOD_DYNAMIC
40636                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40637         else
40638                 MFLAG=SLAPD_MOD_STATIC
40639                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40640         fi
40641
40642 cat >>confdefs.h <<_ACEOF
40643 #define SLAPD_OVER_PROXYCACHE $MFLAG
40644 _ACEOF
40645
40646 fi
40647
40648 if test "$ol_enable_refint" != no ; then
40649         BUILD_REFINT=$ol_enable_refint
40650         if test "$ol_enable_refint" = mod ; then
40651                 MFLAG=SLAPD_MOD_DYNAMIC
40652                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40653         else
40654                 MFLAG=SLAPD_MOD_STATIC
40655                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40656         fi
40657
40658 cat >>confdefs.h <<_ACEOF
40659 #define SLAPD_OVER_REFINT $MFLAG
40660 _ACEOF
40661
40662 fi
40663
40664 if test "$ol_enable_retcode" != no ; then
40665         BUILD_RETCODE=$ol_enable_retcode
40666         if test "$ol_enable_retcode" = mod ; then
40667                 MFLAG=SLAPD_MOD_DYNAMIC
40668                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40669         else
40670                 MFLAG=SLAPD_MOD_STATIC
40671                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40672         fi
40673
40674 cat >>confdefs.h <<_ACEOF
40675 #define SLAPD_OVER_RETCODE $MFLAG
40676 _ACEOF
40677
40678 fi
40679
40680 if test "$ol_enable_rwm" != no ; then
40681         BUILD_REWRITE=yes
40682         BUILD_RWM=$ol_enable_rwm
40683         if test "$ol_enable_rwm" = mod ; then
40684                 MFLAG=SLAPD_MOD_DYNAMIC
40685                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40686         else
40687                 MFLAG=SLAPD_MOD_STATIC
40688                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40689         fi
40690
40691 cat >>confdefs.h <<_ACEOF
40692 #define SLAPD_OVER_RWM $MFLAG
40693 _ACEOF
40694
40695 fi
40696
40697 if test "$ol_enable_seqmod" != no ; then
40698         BUILD_SEQMOD=$ol_enable_seqmod
40699         if test "$ol_enable_seqmod" = mod ; then
40700                 MFLAG=SLAPD_MOD_DYNAMIC
40701                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40702         else
40703                 MFLAG=SLAPD_MOD_STATIC
40704                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40705         fi
40706
40707 cat >>confdefs.h <<_ACEOF
40708 #define SLAPD_OVER_SEQMOD $MFLAG
40709 _ACEOF
40710
40711 fi
40712
40713 if test "$ol_enable_syncprov" != no ; then
40714         BUILD_SYNCPROV=$ol_enable_syncprov
40715         if test "$ol_enable_syncprov" = mod ; then
40716                 MFLAG=SLAPD_MOD_DYNAMIC
40717                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40718         else
40719                 MFLAG=SLAPD_MOD_STATIC
40720                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40721         fi
40722
40723 cat >>confdefs.h <<_ACEOF
40724 #define SLAPD_OVER_SYNCPROV $MFLAG
40725 _ACEOF
40726
40727 fi
40728
40729 if test "$ol_enable_translucent" != no ; then
40730         BUILD_TRANSLUCENT=$ol_enable_translucent
40731         if test "$ol_enable_translucent" = mod ; then
40732                 MFLAG=SLAPD_MOD_DYNAMIC
40733                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40734         else
40735                 MFLAG=SLAPD_MOD_STATIC
40736                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40737         fi
40738
40739 cat >>confdefs.h <<_ACEOF
40740 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40741 _ACEOF
40742
40743 fi
40744
40745 if test "$ol_enable_unique" != no ; then
40746         BUILD_UNIQUE=$ol_enable_unique
40747         if test "$ol_enable_unique" = mod ; then
40748                 MFLAG=SLAPD_MOD_DYNAMIC
40749                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40750         else
40751                 MFLAG=SLAPD_MOD_STATIC
40752                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40753         fi
40754
40755 cat >>confdefs.h <<_ACEOF
40756 #define SLAPD_OVER_UNIQUE $MFLAG
40757 _ACEOF
40758
40759 fi
40760
40761 if test "$ol_enable_valsort" != no ; then
40762         BUILD_VALSORT=$ol_enable_valsort
40763         if test "$ol_enable_valsort" = mod ; then
40764                 MFLAG=SLAPD_MOD_DYNAMIC
40765                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40766         else
40767                 MFLAG=SLAPD_MOD_STATIC
40768                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40769         fi
40770
40771 cat >>confdefs.h <<_ACEOF
40772 #define SLAPD_OVER_VALSORT $MFLAG
40773 _ACEOF
40774
40775 fi
40776
40777 if test "$ol_enable_slurpd" != no &&
40778    test "$ol_link_threads" != no &&
40779    test $BUILD_SLAPD = yes ; then
40780         BUILD_SLURPD=yes
40781 fi
40782
40783 if test "$ol_enable_rewrite" != no ; then
40784
40785 cat >>confdefs.h <<\_ACEOF
40786 #define ENABLE_REWRITE 1
40787 _ACEOF
40788
40789         BUILD_REWRITE=yes
40790 fi
40791
40792 if test "$ol_enable_slapi" != no ; then
40793
40794 cat >>confdefs.h <<\_ACEOF
40795 #define ENABLE_SLAPI 1
40796 _ACEOF
40797
40798         BUILD_SLAPI=yes
40799         SLAPD_SLAPI_DEPEND=libslapi.a
40800 fi
40801
40802
40803
40804 if test "$ac_cv_mingw32" = yes ; then
40805         PLAT=NT
40806         SLAPD_MODULES_LDFLAGS=
40807 else
40808         PLAT=UNIX
40809 fi
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
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850
40851
40852
40853
40854
40855
40856
40857
40858
40859
40860
40861
40862
40863
40864
40865
40866
40867
40868
40869
40870
40871
40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895 # Check whether --with-xxinstall or --without-xxinstall was given.
40896 if test "${with_xxinstall+set}" = set; then
40897   withval="$with_xxinstall"
40898
40899 fi;
40900
40901
40902                                                                                                                                                                                                                                                                                                                                                                                                       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 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
40903
40904
40905           ac_config_commands="$ac_config_commands default"
40906
40907
40908
40909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40910 # Let make expand exec_prefix.
40911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40912
40913 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40914 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40915 # trailing colons and then remove the whole line if VPATH becomes empty
40916 # (actually we leave an empty line to preserve line numbers).
40917 if test "x$srcdir" = x.; then
40918   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40919 s/:*\$(srcdir):*/:/;
40920 s/:*\${srcdir}:*/:/;
40921 s/:*@srcdir@:*/:/;
40922 s/^\([^=]*=[     ]*\):*/\1/;
40923 s/:*$//;
40924 s/^[^=]*=[       ]*$//;
40925 }'
40926 fi
40927
40928 DEFS=-DHAVE_CONFIG_H
40929
40930 ac_libobjs=
40931 ac_ltlibobjs=
40932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40933   # 1. Remove the extension, and $U if already installed.
40934   ac_i=`echo "$ac_i" |
40935          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40936   # 2. Add them.
40937   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40938   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40939 done
40940 LIBOBJS=$ac_libobjs
40941
40942 LTLIBOBJS=$ac_ltlibobjs
40943
40944
40945 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40946   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40947 Usually this means the macro was only invoked conditionally." >&5
40948 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40949 Usually this means the macro was only invoked conditionally." >&2;}
40950    { (exit 1); exit 1; }; }
40951 fi
40952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40953   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40954 Usually this means the macro was only invoked conditionally." >&5
40955 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40956 Usually this means the macro was only invoked conditionally." >&2;}
40957    { (exit 1); exit 1; }; }
40958 fi
40959 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40960   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40961 Usually this means the macro was only invoked conditionally." >&5
40962 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40963 Usually this means the macro was only invoked conditionally." >&2;}
40964    { (exit 1); exit 1; }; }
40965 fi
40966
40967 : ${CONFIG_STATUS=./config.status}
40968 ac_clean_files_save=$ac_clean_files
40969 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40970 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40971 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40972 cat >$CONFIG_STATUS <<_ACEOF
40973 #! $SHELL
40974 # Generated by $as_me.
40975 # Run this file to recreate the current configuration.
40976 # Compiler output produced by configure, useful for debugging
40977 # configure, is in config.log if it exists.
40978
40979 debug=false
40980 ac_cs_recheck=false
40981 ac_cs_silent=false
40982 SHELL=\${CONFIG_SHELL-$SHELL}
40983 _ACEOF
40984
40985 cat >>$CONFIG_STATUS <<\_ACEOF
40986 ## --------------------- ##
40987 ## M4sh Initialization.  ##
40988 ## --------------------- ##
40989
40990 # Be Bourne compatible
40991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40992   emulate sh
40993   NULLCMD=:
40994   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40995   # is contrary to our usage.  Disable this feature.
40996   alias -g '${1+"$@"}'='"$@"'
40997 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40998   set -o posix
40999 fi
41000 DUALCASE=1; export DUALCASE # for MKS sh
41001
41002 # Support unset when possible.
41003 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41004   as_unset=unset
41005 else
41006   as_unset=false
41007 fi
41008
41009
41010 # Work around bugs in pre-3.0 UWIN ksh.
41011 $as_unset ENV MAIL MAILPATH
41012 PS1='$ '
41013 PS2='> '
41014 PS4='+ '
41015
41016 # NLS nuisances.
41017 for as_var in \
41018   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41019   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41020   LC_TELEPHONE LC_TIME
41021 do
41022   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41023     eval $as_var=C; export $as_var
41024   else
41025     $as_unset $as_var
41026   fi
41027 done
41028
41029 # Required to use basename.
41030 if expr a : '\(a\)' >/dev/null 2>&1; then
41031   as_expr=expr
41032 else
41033   as_expr=false
41034 fi
41035
41036 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41037   as_basename=basename
41038 else
41039   as_basename=false
41040 fi
41041
41042
41043 # Name of the executable.
41044 as_me=`$as_basename "$0" ||
41045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41046          X"$0" : 'X\(//\)$' \| \
41047          X"$0" : 'X\(/\)$' \| \
41048          .     : '\(.\)' 2>/dev/null ||
41049 echo X/"$0" |
41050     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41051           /^X\/\(\/\/\)$/{ s//\1/; q; }
41052           /^X\/\(\/\).*/{ s//\1/; q; }
41053           s/.*/./; q'`
41054
41055
41056 # PATH needs CR, and LINENO needs CR and PATH.
41057 # Avoid depending upon Character Ranges.
41058 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41059 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41060 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41061 as_cr_digits='0123456789'
41062 as_cr_alnum=$as_cr_Letters$as_cr_digits
41063
41064 # The user is always right.
41065 if test "${PATH_SEPARATOR+set}" != set; then
41066   echo "#! /bin/sh" >conf$$.sh
41067   echo  "exit 0"   >>conf$$.sh
41068   chmod +x conf$$.sh
41069   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41070     PATH_SEPARATOR=';'
41071   else
41072     PATH_SEPARATOR=:
41073   fi
41074   rm -f conf$$.sh
41075 fi
41076
41077
41078   as_lineno_1=$LINENO
41079   as_lineno_2=$LINENO
41080   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41081   test "x$as_lineno_1" != "x$as_lineno_2" &&
41082   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
41083   # Find who we are.  Look in the path if we contain no path at all
41084   # relative or not.
41085   case $0 in
41086     *[\\/]* ) as_myself=$0 ;;
41087     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41088 for as_dir in $PATH
41089 do
41090   IFS=$as_save_IFS
41091   test -z "$as_dir" && as_dir=.
41092   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41093 done
41094
41095        ;;
41096   esac
41097   # We did not find ourselves, most probably we were run as `sh COMMAND'
41098   # in which case we are not to be found in the path.
41099   if test "x$as_myself" = x; then
41100     as_myself=$0
41101   fi
41102   if test ! -f "$as_myself"; then
41103     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41104 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41105    { (exit 1); exit 1; }; }
41106   fi
41107   case $CONFIG_SHELL in
41108   '')
41109     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41110 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41111 do
41112   IFS=$as_save_IFS
41113   test -z "$as_dir" && as_dir=.
41114   for as_base in sh bash ksh sh5; do
41115          case $as_dir in
41116          /*)
41117            if ("$as_dir/$as_base" -c '
41118   as_lineno_1=$LINENO
41119   as_lineno_2=$LINENO
41120   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41121   test "x$as_lineno_1" != "x$as_lineno_2" &&
41122   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
41123              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41124              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41125              CONFIG_SHELL=$as_dir/$as_base
41126              export CONFIG_SHELL
41127              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41128            fi;;
41129          esac
41130        done
41131 done
41132 ;;
41133   esac
41134
41135   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41136   # uniformly replaced by the line number.  The first 'sed' inserts a
41137   # line-number line before each line; the second 'sed' does the real
41138   # work.  The second script uses 'N' to pair each line-number line
41139   # with the numbered line, and appends trailing '-' during
41140   # substitution so that $LINENO is not a special case at line end.
41141   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41142   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41143   sed '=' <$as_myself |
41144     sed '
41145       N
41146       s,$,-,
41147       : loop
41148       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41149       t loop
41150       s,-$,,
41151       s,^['$as_cr_digits']*\n,,
41152     ' >$as_me.lineno &&
41153   chmod +x $as_me.lineno ||
41154     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41155 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41156    { (exit 1); exit 1; }; }
41157
41158   # Don't try to exec as it changes $[0], causing all sort of problems
41159   # (the dirname of $[0] is not the place where we might find the
41160   # original and so on.  Autoconf is especially sensible to this).
41161   . ./$as_me.lineno
41162   # Exit status is that of the last command.
41163   exit
41164 }
41165
41166
41167 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41168   *c*,-n*) ECHO_N= ECHO_C='
41169 ' ECHO_T='      ' ;;
41170   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41171   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41172 esac
41173
41174 if expr a : '\(a\)' >/dev/null 2>&1; then
41175   as_expr=expr
41176 else
41177   as_expr=false
41178 fi
41179
41180 rm -f conf$$ conf$$.exe conf$$.file
41181 echo >conf$$.file
41182 if ln -s conf$$.file conf$$ 2>/dev/null; then
41183   # We could just check for DJGPP; but this test a) works b) is more generic
41184   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41185   if test -f conf$$.exe; then
41186     # Don't use ln at all; we don't have any links
41187     as_ln_s='cp -p'
41188   else
41189     as_ln_s='ln -s'
41190   fi
41191 elif ln conf$$.file conf$$ 2>/dev/null; then
41192   as_ln_s=ln
41193 else
41194   as_ln_s='cp -p'
41195 fi
41196 rm -f conf$$ conf$$.exe conf$$.file
41197
41198 if mkdir -p . 2>/dev/null; then
41199   as_mkdir_p=:
41200 else
41201   test -d ./-p && rmdir ./-p
41202   as_mkdir_p=false
41203 fi
41204
41205 as_executable_p="test -f"
41206
41207 # Sed expression to map a string onto a valid CPP name.
41208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41209
41210 # Sed expression to map a string onto a valid variable name.
41211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41212
41213
41214 # IFS
41215 # We need space, tab and new line, in precisely that order.
41216 as_nl='
41217 '
41218 IFS="   $as_nl"
41219
41220 # CDPATH.
41221 $as_unset CDPATH
41222
41223 exec 6>&1
41224
41225 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41226 # report actual input values of CONFIG_FILES etc. instead of their
41227 # values after options handling.  Logging --version etc. is OK.
41228 exec 5>>config.log
41229 {
41230   echo
41231   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41232 ## Running $as_me. ##
41233 _ASBOX
41234 } >&5
41235 cat >&5 <<_CSEOF
41236
41237 This file was extended by $as_me, which was
41238 generated by GNU Autoconf 2.59.  Invocation command line was
41239
41240   CONFIG_FILES    = $CONFIG_FILES
41241   CONFIG_HEADERS  = $CONFIG_HEADERS
41242   CONFIG_LINKS    = $CONFIG_LINKS
41243   CONFIG_COMMANDS = $CONFIG_COMMANDS
41244   $ $0 $@
41245
41246 _CSEOF
41247 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41248 echo >&5
41249 _ACEOF
41250
41251 # Files that config.status was made for.
41252 if test -n "$ac_config_files"; then
41253   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41254 fi
41255
41256 if test -n "$ac_config_headers"; then
41257   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41258 fi
41259
41260 if test -n "$ac_config_links"; then
41261   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41262 fi
41263
41264 if test -n "$ac_config_commands"; then
41265   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41266 fi
41267
41268 cat >>$CONFIG_STATUS <<\_ACEOF
41269
41270 ac_cs_usage="\
41271 \`$as_me' instantiates files from templates according to the
41272 current configuration.
41273
41274 Usage: $0 [OPTIONS] [FILE]...
41275
41276   -h, --help       print this help, then exit
41277   -V, --version    print version number, then exit
41278   -q, --quiet      do not print progress messages
41279   -d, --debug      don't remove temporary files
41280       --recheck    update $as_me by reconfiguring in the same conditions
41281   --file=FILE[:TEMPLATE]
41282                    instantiate the configuration file FILE
41283   --header=FILE[:TEMPLATE]
41284                    instantiate the configuration header FILE
41285
41286 Configuration files:
41287 $config_files
41288
41289 Configuration headers:
41290 $config_headers
41291
41292 Configuration commands:
41293 $config_commands
41294
41295 Report bugs to <bug-autoconf@gnu.org>."
41296 _ACEOF
41297
41298 cat >>$CONFIG_STATUS <<_ACEOF
41299 ac_cs_version="\\
41300 config.status
41301 configured by $0, generated by GNU Autoconf 2.59,
41302   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41303
41304 Copyright (C) 2003 Free Software Foundation, Inc.
41305 This config.status script is free software; the Free Software Foundation
41306 gives unlimited permission to copy, distribute and modify it."
41307 srcdir=$srcdir
41308 INSTALL="$INSTALL"
41309 _ACEOF
41310
41311 cat >>$CONFIG_STATUS <<\_ACEOF
41312 # If no file are specified by the user, then we need to provide default
41313 # value.  By we need to know if files were specified by the user.
41314 ac_need_defaults=:
41315 while test $# != 0
41316 do
41317   case $1 in
41318   --*=*)
41319     ac_option=`expr "x$1" : 'x\([^=]*\)='`
41320     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41321     ac_shift=:
41322     ;;
41323   -*)
41324     ac_option=$1
41325     ac_optarg=$2
41326     ac_shift=shift
41327     ;;
41328   *) # This is not an option, so the user has probably given explicit
41329      # arguments.
41330      ac_option=$1
41331      ac_need_defaults=false;;
41332   esac
41333
41334   case $ac_option in
41335   # Handling of the options.
41336 _ACEOF
41337 cat >>$CONFIG_STATUS <<\_ACEOF
41338   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41339     ac_cs_recheck=: ;;
41340   --version | --vers* | -V )
41341     echo "$ac_cs_version"; exit 0 ;;
41342   --he | --h)
41343     # Conflict between --help and --header
41344     { { echo "$as_me:$LINENO: error: ambiguous option: $1
41345 Try \`$0 --help' for more information." >&5
41346 echo "$as_me: error: ambiguous option: $1
41347 Try \`$0 --help' for more information." >&2;}
41348    { (exit 1); exit 1; }; };;
41349   --help | --hel | -h )
41350     echo "$ac_cs_usage"; exit 0 ;;
41351   --debug | --d* | -d )
41352     debug=: ;;
41353   --file | --fil | --fi | --f )
41354     $ac_shift
41355     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41356     ac_need_defaults=false;;
41357   --header | --heade | --head | --hea )
41358     $ac_shift
41359     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41360     ac_need_defaults=false;;
41361   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41362   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41363     ac_cs_silent=: ;;
41364
41365   # This is an error.
41366   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41367 Try \`$0 --help' for more information." >&5
41368 echo "$as_me: error: unrecognized option: $1
41369 Try \`$0 --help' for more information." >&2;}
41370    { (exit 1); exit 1; }; } ;;
41371
41372   *) ac_config_targets="$ac_config_targets $1" ;;
41373
41374   esac
41375   shift
41376 done
41377
41378 ac_configure_extra_args=
41379
41380 if $ac_cs_silent; then
41381   exec 6>/dev/null
41382   ac_configure_extra_args="$ac_configure_extra_args --silent"
41383 fi
41384
41385 _ACEOF
41386 cat >>$CONFIG_STATUS <<_ACEOF
41387 if \$ac_cs_recheck; then
41388   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41389   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41390 fi
41391
41392 _ACEOF
41393
41394 cat >>$CONFIG_STATUS <<_ACEOF
41395 #
41396 # INIT-COMMANDS section.
41397 #
41398
41399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41400
41401 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41402 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41403
41404
41405 _ACEOF
41406
41407
41408
41409 cat >>$CONFIG_STATUS <<\_ACEOF
41410 for ac_config_target in $ac_config_targets
41411 do
41412   case "$ac_config_target" in
41413   # Handling of arguments.
41414   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41415   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41416   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41417   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41418   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41419   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41420   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41421   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41422   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41423   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41424   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41425   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41426   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41427   "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" ;;
41428   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41429   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41430   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41431   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41432   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41433   "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" ;;
41434   "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" ;;
41435   "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" ;;
41436   "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" ;;
41437   "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" ;;
41438   "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" ;;
41439   "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" ;;
41440   "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" ;;
41441   "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" ;;
41442   "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" ;;
41443   "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" ;;
41444   "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" ;;
41445   "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" ;;
41446   "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" ;;
41447   "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" ;;
41448   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41449   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
41450   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41451   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41452   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41453   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41454   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41455   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41456   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41457   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41458   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41459 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41460    { (exit 1); exit 1; }; };;
41461   esac
41462 done
41463
41464 # If the user did not use the arguments to specify the items to instantiate,
41465 # then the envvar interface is used.  Set only those that are not.
41466 # We use the long form for the default assignment because of an extremely
41467 # bizarre bug on SunOS 4.1.3.
41468 if $ac_need_defaults; then
41469   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41470   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41471   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41472 fi
41473
41474 # Have a temporary directory for convenience.  Make it in the build tree
41475 # simply because there is no reason to put it here, and in addition,
41476 # creating and moving files from /tmp can sometimes cause problems.
41477 # Create a temporary directory, and hook for its removal unless debugging.
41478 $debug ||
41479 {
41480   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41481   trap '{ (exit 1); exit 1; }' 1 2 13 15
41482 }
41483
41484 # Create a (secure) tmp directory for tmp files.
41485
41486 {
41487   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41488   test -n "$tmp" && test -d "$tmp"
41489 }  ||
41490 {
41491   tmp=./confstat$$-$RANDOM
41492   (umask 077 && mkdir $tmp)
41493 } ||
41494 {
41495    echo "$me: cannot create a temporary directory in ." >&2
41496    { (exit 1); exit 1; }
41497 }
41498
41499 _ACEOF
41500
41501 cat >>$CONFIG_STATUS <<_ACEOF
41502
41503 #
41504 # CONFIG_FILES section.
41505 #
41506
41507 # No need to generate the scripts if there are no CONFIG_FILES.
41508 # This happens for instance when ./config.status config.h
41509 if test -n "\$CONFIG_FILES"; then
41510   # Protect against being on the right side of a sed subst in config.status.
41511   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41512    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41513 s,@SHELL@,$SHELL,;t t
41514 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41515 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41516 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41517 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41518 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41519 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41520 s,@exec_prefix@,$exec_prefix,;t t
41521 s,@prefix@,$prefix,;t t
41522 s,@program_transform_name@,$program_transform_name,;t t
41523 s,@bindir@,$bindir,;t t
41524 s,@sbindir@,$sbindir,;t t
41525 s,@libexecdir@,$libexecdir,;t t
41526 s,@datadir@,$datadir,;t t
41527 s,@sysconfdir@,$sysconfdir,;t t
41528 s,@sharedstatedir@,$sharedstatedir,;t t
41529 s,@localstatedir@,$localstatedir,;t t
41530 s,@libdir@,$libdir,;t t
41531 s,@includedir@,$includedir,;t t
41532 s,@oldincludedir@,$oldincludedir,;t t
41533 s,@infodir@,$infodir,;t t
41534 s,@mandir@,$mandir,;t t
41535 s,@build_alias@,$build_alias,;t t
41536 s,@host_alias@,$host_alias,;t t
41537 s,@target_alias@,$target_alias,;t t
41538 s,@DEFS@,$DEFS,;t t
41539 s,@ECHO_C@,$ECHO_C,;t t
41540 s,@ECHO_N@,$ECHO_N,;t t
41541 s,@ECHO_T@,$ECHO_T,;t t
41542 s,@LIBS@,$LIBS,;t t
41543 s,@build@,$build,;t t
41544 s,@build_cpu@,$build_cpu,;t t
41545 s,@build_vendor@,$build_vendor,;t t
41546 s,@build_os@,$build_os,;t t
41547 s,@host@,$host,;t t
41548 s,@host_cpu@,$host_cpu,;t t
41549 s,@host_vendor@,$host_vendor,;t t
41550 s,@host_os@,$host_os,;t t
41551 s,@target@,$target,;t t
41552 s,@target_cpu@,$target_cpu,;t t
41553 s,@target_vendor@,$target_vendor,;t t
41554 s,@target_os@,$target_os,;t t
41555 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41556 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41557 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41558 s,@CYGPATH_W@,$CYGPATH_W,;t t
41559 s,@PACKAGE@,$PACKAGE,;t t
41560 s,@VERSION@,$VERSION,;t t
41561 s,@ACLOCAL@,$ACLOCAL,;t t
41562 s,@AUTOCONF@,$AUTOCONF,;t t
41563 s,@AUTOMAKE@,$AUTOMAKE,;t t
41564 s,@AUTOHEADER@,$AUTOHEADER,;t t
41565 s,@MAKEINFO@,$MAKEINFO,;t t
41566 s,@install_sh@,$install_sh,;t t
41567 s,@STRIP@,$STRIP,;t t
41568 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41569 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41570 s,@mkdir_p@,$mkdir_p,;t t
41571 s,@AWK@,$AWK,;t t
41572 s,@SET_MAKE@,$SET_MAKE,;t t
41573 s,@am__leading_dot@,$am__leading_dot,;t t
41574 s,@AMTAR@,$AMTAR,;t t
41575 s,@am__tar@,$am__tar,;t t
41576 s,@am__untar@,$am__untar,;t t
41577 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41578 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41579 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41580 s,@top_builddir@,$top_builddir,;t t
41581 s,@ldap_subdir@,$ldap_subdir,;t t
41582 s,@CC@,$CC,;t t
41583 s,@AR@,$AR,;t t
41584 s,@CFLAGS@,$CFLAGS,;t t
41585 s,@LDFLAGS@,$LDFLAGS,;t t
41586 s,@CPPFLAGS@,$CPPFLAGS,;t t
41587 s,@ac_ct_CC@,$ac_ct_CC,;t t
41588 s,@EXEEXT@,$EXEEXT,;t t
41589 s,@OBJEXT@,$OBJEXT,;t t
41590 s,@DEPDIR@,$DEPDIR,;t t
41591 s,@am__include@,$am__include,;t t
41592 s,@am__quote@,$am__quote,;t t
41593 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41594 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41595 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41596 s,@CCDEPMODE@,$CCDEPMODE,;t t
41597 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41598 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41599 s,@EGREP@,$EGREP,;t t
41600 s,@LN_S@,$LN_S,;t t
41601 s,@ECHO@,$ECHO,;t t
41602 s,@ac_ct_AR@,$ac_ct_AR,;t t
41603 s,@RANLIB@,$RANLIB,;t t
41604 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41605 s,@DLLTOOL@,$DLLTOOL,;t t
41606 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41607 s,@AS@,$AS,;t t
41608 s,@ac_ct_AS@,$ac_ct_AS,;t t
41609 s,@OBJDUMP@,$OBJDUMP,;t t
41610 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41611 s,@CPP@,$CPP,;t t
41612 s,@LIBTOOL@,$LIBTOOL,;t t
41613 s,@PERLBIN@,$PERLBIN,;t t
41614 s,@OL_MKDEP@,$OL_MKDEP,;t t
41615 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41616 s,@LTSTATIC@,$LTSTATIC,;t t
41617 s,@LIBOBJS@,$LIBOBJS,;t t
41618 s,@LIBSRCS@,$LIBSRCS,;t t
41619 s,@PLAT@,$PLAT,;t t
41620 s,@WITH_SASL@,$WITH_SASL,;t t
41621 s,@WITH_TLS@,$WITH_TLS,;t t
41622 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41623 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41624 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41625 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41626 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41627 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41628 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41629 s,@BUILD_BDB@,$BUILD_BDB,;t t
41630 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41631 s,@BUILD_HDB@,$BUILD_HDB,;t t
41632 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41633 s,@BUILD_META@,$BUILD_META,;t t
41634 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41635 s,@BUILD_NULL@,$BUILD_NULL,;t t
41636 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41637 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41638 s,@BUILD_PERL@,$BUILD_PERL,;t t
41639 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41640 s,@BUILD_SQL@,$BUILD_SQL,;t t
41641 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41642 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41643 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41644 s,@BUILD_DDS@,$BUILD_DDS,;t t
41645 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41646 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41647 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41648 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41649 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41650 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41651 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41652 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41653 s,@BUILD_RWM@,$BUILD_RWM,;t t
41654 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41655 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41656 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41657 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41658 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41659 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41660 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41661 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41662 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41663 s,@BDB_LIBS@,$BDB_LIBS,;t t
41664 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41665 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41666 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41667 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41668 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41669 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41670 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41671 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41672 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41673 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41674 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41675 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41676 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41677 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41678 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41679 s,@SASL_LIBS@,$SASL_LIBS,;t t
41680 s,@TLS_LIBS@,$TLS_LIBS,;t t
41681 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41682 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41683 s,@LIBSLAPI@,$LIBSLAPI,;t t
41684 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41685 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41686 s,@ICU_LIBS@,$ICU_LIBS,;t t
41687 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41688 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41689 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41690 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41691 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41692 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41693 CEOF
41694
41695 _ACEOF
41696
41697   cat >>$CONFIG_STATUS <<\_ACEOF
41698   # Split the substitutions into bite-sized pieces for seds with
41699   # small command number limits, like on Digital OSF/1 and HP-UX.
41700   ac_max_sed_lines=48
41701   ac_sed_frag=1 # Number of current file.
41702   ac_beg=1 # First line for current file.
41703   ac_end=$ac_max_sed_lines # Line after last line for current file.
41704   ac_more_lines=:
41705   ac_sed_cmds=
41706   while $ac_more_lines; do
41707     if test $ac_beg -gt 1; then
41708       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41709     else
41710       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41711     fi
41712     if test ! -s $tmp/subs.frag; then
41713       ac_more_lines=false
41714     else
41715       # The purpose of the label and of the branching condition is to
41716       # speed up the sed processing (if there are no `@' at all, there
41717       # is no need to browse any of the substitutions).
41718       # These are the two extra sed commands mentioned above.
41719       (echo ':t
41720   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41721       if test -z "$ac_sed_cmds"; then
41722         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41723       else
41724         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41725       fi
41726       ac_sed_frag=`expr $ac_sed_frag + 1`
41727       ac_beg=$ac_end
41728       ac_end=`expr $ac_end + $ac_max_sed_lines`
41729     fi
41730   done
41731   if test -z "$ac_sed_cmds"; then
41732     ac_sed_cmds=cat
41733   fi
41734 fi # test -n "$CONFIG_FILES"
41735
41736 _ACEOF
41737 cat >>$CONFIG_STATUS <<\_ACEOF
41738 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41739   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41740   case $ac_file in
41741   - | *:- | *:-:* ) # input from stdin
41742         cat >$tmp/stdin
41743         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41744         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41745   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41746         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41747   * )   ac_file_in=$ac_file.in ;;
41748   esac
41749
41750   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41751   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41753          X"$ac_file" : 'X\(//\)[^/]' \| \
41754          X"$ac_file" : 'X\(//\)$' \| \
41755          X"$ac_file" : 'X\(/\)' \| \
41756          .     : '\(.\)' 2>/dev/null ||
41757 echo X"$ac_file" |
41758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41759           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41760           /^X\(\/\/\)$/{ s//\1/; q; }
41761           /^X\(\/\).*/{ s//\1/; q; }
41762           s/.*/./; q'`
41763   { if $as_mkdir_p; then
41764     mkdir -p "$ac_dir"
41765   else
41766     as_dir="$ac_dir"
41767     as_dirs=
41768     while test ! -d "$as_dir"; do
41769       as_dirs="$as_dir $as_dirs"
41770       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41772          X"$as_dir" : 'X\(//\)[^/]' \| \
41773          X"$as_dir" : 'X\(//\)$' \| \
41774          X"$as_dir" : 'X\(/\)' \| \
41775          .     : '\(.\)' 2>/dev/null ||
41776 echo X"$as_dir" |
41777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41778           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41779           /^X\(\/\/\)$/{ s//\1/; q; }
41780           /^X\(\/\).*/{ s//\1/; q; }
41781           s/.*/./; q'`
41782     done
41783     test ! -n "$as_dirs" || mkdir $as_dirs
41784   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41786    { (exit 1); exit 1; }; }; }
41787
41788   ac_builddir=.
41789
41790 if test "$ac_dir" != .; then
41791   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41792   # A "../" for each directory in $ac_dir_suffix.
41793   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41794 else
41795   ac_dir_suffix= ac_top_builddir=
41796 fi
41797
41798 case $srcdir in
41799   .)  # No --srcdir option.  We are building in place.
41800     ac_srcdir=.
41801     if test -z "$ac_top_builddir"; then
41802        ac_top_srcdir=.
41803     else
41804        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41805     fi ;;
41806   [\\/]* | ?:[\\/]* )  # Absolute path.
41807     ac_srcdir=$srcdir$ac_dir_suffix;
41808     ac_top_srcdir=$srcdir ;;
41809   *) # Relative path.
41810     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41811     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41812 esac
41813
41814 # Do not use `cd foo && pwd` to compute absolute paths, because
41815 # the directories may not exist.
41816 case `pwd` in
41817 .) ac_abs_builddir="$ac_dir";;
41818 *)
41819   case "$ac_dir" in
41820   .) ac_abs_builddir=`pwd`;;
41821   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41822   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41823   esac;;
41824 esac
41825 case $ac_abs_builddir in
41826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41827 *)
41828   case ${ac_top_builddir}. in
41829   .) ac_abs_top_builddir=$ac_abs_builddir;;
41830   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41831   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41832   esac;;
41833 esac
41834 case $ac_abs_builddir in
41835 .) ac_abs_srcdir=$ac_srcdir;;
41836 *)
41837   case $ac_srcdir in
41838   .) ac_abs_srcdir=$ac_abs_builddir;;
41839   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41840   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41841   esac;;
41842 esac
41843 case $ac_abs_builddir in
41844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41845 *)
41846   case $ac_top_srcdir in
41847   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41848   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41849   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41850   esac;;
41851 esac
41852
41853
41854   case $INSTALL in
41855   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41856   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41857   esac
41858
41859   if test x"$ac_file" != x-; then
41860     { echo "$as_me:$LINENO: creating $ac_file" >&5
41861 echo "$as_me: creating $ac_file" >&6;}
41862     rm -f "$ac_file"
41863   fi
41864   # Let's still pretend it is `configure' which instantiates (i.e., don't
41865   # use $as_me), people would be surprised to read:
41866   #    /* config.h.  Generated by config.status.  */
41867   if test x"$ac_file" = x-; then
41868     configure_input=
41869   else
41870     configure_input="$ac_file.  "
41871   fi
41872   configure_input=$configure_input"Generated from `echo $ac_file_in |
41873                                      sed 's,.*/,,'` by configure."
41874
41875   # First look for the input files in the build tree, otherwise in the
41876   # src tree.
41877   ac_file_inputs=`IFS=:
41878     for f in $ac_file_in; do
41879       case $f in
41880       -) echo $tmp/stdin ;;
41881       [\\/$]*)
41882          # Absolute (can't be DOS-style, as IFS=:)
41883          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41884 echo "$as_me: error: cannot find input file: $f" >&2;}
41885    { (exit 1); exit 1; }; }
41886          echo "$f";;
41887       *) # Relative
41888          if test -f "$f"; then
41889            # Build tree
41890            echo "$f"
41891          elif test -f "$srcdir/$f"; then
41892            # Source tree
41893            echo "$srcdir/$f"
41894          else
41895            # /dev/null tree
41896            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41897 echo "$as_me: error: cannot find input file: $f" >&2;}
41898    { (exit 1); exit 1; }; }
41899          fi;;
41900       esac
41901     done` || { (exit 1); exit 1; }
41902 _ACEOF
41903 cat >>$CONFIG_STATUS <<_ACEOF
41904   sed "$ac_vpsub
41905 $extrasub
41906 _ACEOF
41907 cat >>$CONFIG_STATUS <<\_ACEOF
41908 :t
41909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41910 s,@configure_input@,$configure_input,;t t
41911 s,@srcdir@,$ac_srcdir,;t t
41912 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41913 s,@top_srcdir@,$ac_top_srcdir,;t t
41914 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41915 s,@builddir@,$ac_builddir,;t t
41916 s,@abs_builddir@,$ac_abs_builddir,;t t
41917 s,@top_builddir@,$ac_top_builddir,;t t
41918 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41919 s,@INSTALL@,$ac_INSTALL,;t t
41920 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41921   rm -f $tmp/stdin
41922   if test x"$ac_file" != x-; then
41923     mv $tmp/out $ac_file
41924   else
41925     cat $tmp/out
41926     rm -f $tmp/out
41927   fi
41928
41929 done
41930 _ACEOF
41931 cat >>$CONFIG_STATUS <<\_ACEOF
41932
41933 #
41934 # CONFIG_HEADER section.
41935 #
41936
41937 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41938 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41939 #
41940 # ac_d sets the value in "#define NAME VALUE" lines.
41941 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
41942 ac_dB='[         ].*$,\1#\2'
41943 ac_dC=' '
41944 ac_dD=',;t'
41945 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41946 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41947 ac_uB='$,\1#\2define\3'
41948 ac_uC=' '
41949 ac_uD=',;t'
41950
41951 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41952   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41953   case $ac_file in
41954   - | *:- | *:-:* ) # input from stdin
41955         cat >$tmp/stdin
41956         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41957         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41958   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41959         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41960   * )   ac_file_in=$ac_file.in ;;
41961   esac
41962
41963   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41964 echo "$as_me: creating $ac_file" >&6;}
41965
41966   # First look for the input files in the build tree, otherwise in the
41967   # src tree.
41968   ac_file_inputs=`IFS=:
41969     for f in $ac_file_in; do
41970       case $f in
41971       -) echo $tmp/stdin ;;
41972       [\\/$]*)
41973          # Absolute (can't be DOS-style, as IFS=:)
41974          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41975 echo "$as_me: error: cannot find input file: $f" >&2;}
41976    { (exit 1); exit 1; }; }
41977          # Do quote $f, to prevent DOS paths from being IFS'd.
41978          echo "$f";;
41979       *) # Relative
41980          if test -f "$f"; then
41981            # Build tree
41982            echo "$f"
41983          elif test -f "$srcdir/$f"; then
41984            # Source tree
41985            echo "$srcdir/$f"
41986          else
41987            # /dev/null tree
41988            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41989 echo "$as_me: error: cannot find input file: $f" >&2;}
41990    { (exit 1); exit 1; }; }
41991          fi;;
41992       esac
41993     done` || { (exit 1); exit 1; }
41994   # Remove the trailing spaces.
41995   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
41996
41997 _ACEOF
41998
41999 # Transform confdefs.h into two sed scripts, `conftest.defines' and
42000 # `conftest.undefs', that substitutes the proper values into
42001 # config.h.in to produce config.h.  The first handles `#define'
42002 # templates, and the second `#undef' templates.
42003 # And first: Protect against being on the right side of a sed subst in
42004 # config.status.  Protect against being in an unquoted here document
42005 # in config.status.
42006 rm -f conftest.defines conftest.undefs
42007 # Using a here document instead of a string reduces the quoting nightmare.
42008 # Putting comments in sed scripts is not portable.
42009 #
42010 # `end' is used to avoid that the second main sed command (meant for
42011 # 0-ary CPP macros) applies to n-ary macro definitions.
42012 # See the Autoconf documentation for `clear'.
42013 cat >confdef2sed.sed <<\_ACEOF
42014 s/[\\&,]/\\&/g
42015 s,[\\$`],\\&,g
42016 t clear
42017 : clear
42018 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42019 t end
42020 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42021 : end
42022 _ACEOF
42023 # If some macros were called several times there might be several times
42024 # the same #defines, which is useless.  Nevertheless, we may not want to
42025 # sort them, since we want the *last* AC-DEFINE to be honored.
42026 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42027 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42028 rm -f confdef2sed.sed
42029
42030 # This sed command replaces #undef with comments.  This is necessary, for
42031 # example, in the case of _POSIX_SOURCE, which is predefined and required
42032 # on some systems where configure will not decide to define it.
42033 cat >>conftest.undefs <<\_ACEOF
42034 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42035 _ACEOF
42036
42037 # Break up conftest.defines because some shells have a limit on the size
42038 # of here documents, and old seds have small limits too (100 cmds).
42039 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42040 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42041 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42042 echo '  :' >>$CONFIG_STATUS
42043 rm -f conftest.tail
42044 while grep . conftest.defines >/dev/null
42045 do
42046   # Write a limited-size here document to $tmp/defines.sed.
42047   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42048   # Speed up: don't consider the non `#define' lines.
42049   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
42050   # Work around the forget-to-reset-the-flag bug.
42051   echo 't clr' >>$CONFIG_STATUS
42052   echo ': clr' >>$CONFIG_STATUS
42053   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42054   echo 'CEOF
42055   sed -f $tmp/defines.sed $tmp/in >$tmp/out
42056   rm -f $tmp/in
42057   mv $tmp/out $tmp/in
42058 ' >>$CONFIG_STATUS
42059   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42060   rm -f conftest.defines
42061   mv conftest.tail conftest.defines
42062 done
42063 rm -f conftest.defines
42064 echo '  fi # grep' >>$CONFIG_STATUS
42065 echo >>$CONFIG_STATUS
42066
42067 # Break up conftest.undefs because some shells have a limit on the size
42068 # of here documents, and old seds have small limits too (100 cmds).
42069 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
42070 rm -f conftest.tail
42071 while grep . conftest.undefs >/dev/null
42072 do
42073   # Write a limited-size here document to $tmp/undefs.sed.
42074   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42075   # Speed up: don't consider the non `#undef'
42076   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
42077   # Work around the forget-to-reset-the-flag bug.
42078   echo 't clr' >>$CONFIG_STATUS
42079   echo ': clr' >>$CONFIG_STATUS
42080   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42081   echo 'CEOF
42082   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42083   rm -f $tmp/in
42084   mv $tmp/out $tmp/in
42085 ' >>$CONFIG_STATUS
42086   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42087   rm -f conftest.undefs
42088   mv conftest.tail conftest.undefs
42089 done
42090 rm -f conftest.undefs
42091
42092 cat >>$CONFIG_STATUS <<\_ACEOF
42093   # Let's still pretend it is `configure' which instantiates (i.e., don't
42094   # use $as_me), people would be surprised to read:
42095   #    /* config.h.  Generated by config.status.  */
42096   if test x"$ac_file" = x-; then
42097     echo "/* Generated by configure.  */" >$tmp/config.h
42098   else
42099     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
42100   fi
42101   cat $tmp/in >>$tmp/config.h
42102   rm -f $tmp/in
42103   if test x"$ac_file" != x-; then
42104     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42105       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42106 echo "$as_me: $ac_file is unchanged" >&6;}
42107     else
42108       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42110          X"$ac_file" : 'X\(//\)[^/]' \| \
42111          X"$ac_file" : 'X\(//\)$' \| \
42112          X"$ac_file" : 'X\(/\)' \| \
42113          .     : '\(.\)' 2>/dev/null ||
42114 echo X"$ac_file" |
42115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42116           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42117           /^X\(\/\/\)$/{ s//\1/; q; }
42118           /^X\(\/\).*/{ s//\1/; q; }
42119           s/.*/./; q'`
42120       { if $as_mkdir_p; then
42121     mkdir -p "$ac_dir"
42122   else
42123     as_dir="$ac_dir"
42124     as_dirs=
42125     while test ! -d "$as_dir"; do
42126       as_dirs="$as_dir $as_dirs"
42127       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42129          X"$as_dir" : 'X\(//\)[^/]' \| \
42130          X"$as_dir" : 'X\(//\)$' \| \
42131          X"$as_dir" : 'X\(/\)' \| \
42132          .     : '\(.\)' 2>/dev/null ||
42133 echo X"$as_dir" |
42134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42135           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42136           /^X\(\/\/\)$/{ s//\1/; q; }
42137           /^X\(\/\).*/{ s//\1/; q; }
42138           s/.*/./; q'`
42139     done
42140     test ! -n "$as_dirs" || mkdir $as_dirs
42141   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42143    { (exit 1); exit 1; }; }; }
42144
42145       rm -f $ac_file
42146       mv $tmp/config.h $ac_file
42147     fi
42148   else
42149     cat $tmp/config.h
42150     rm -f $tmp/config.h
42151   fi
42152 # Compute $ac_file's index in $config_headers.
42153 _am_stamp_count=1
42154 for _am_header in $config_headers :; do
42155   case $_am_header in
42156     $ac_file | $ac_file:* )
42157       break ;;
42158     * )
42159       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42160   esac
42161 done
42162 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42163 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42164          X$ac_file : 'X\(//\)[^/]' \| \
42165          X$ac_file : 'X\(//\)$' \| \
42166          X$ac_file : 'X\(/\)' \| \
42167          .     : '\(.\)' 2>/dev/null ||
42168 echo X$ac_file |
42169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42170           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42171           /^X\(\/\/\)$/{ s//\1/; q; }
42172           /^X\(\/\).*/{ s//\1/; q; }
42173           s/.*/./; q'`/stamp-h$_am_stamp_count
42174 done
42175 _ACEOF
42176 cat >>$CONFIG_STATUS <<\_ACEOF
42177
42178 #
42179 # CONFIG_COMMANDS section.
42180 #
42181 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42182   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42183   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42184   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42185 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42186          X"$ac_dest" : 'X\(//\)[^/]' \| \
42187          X"$ac_dest" : 'X\(//\)$' \| \
42188          X"$ac_dest" : 'X\(/\)' \| \
42189          .     : '\(.\)' 2>/dev/null ||
42190 echo X"$ac_dest" |
42191     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42192           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42193           /^X\(\/\/\)$/{ s//\1/; q; }
42194           /^X\(\/\).*/{ s//\1/; q; }
42195           s/.*/./; q'`
42196   { if $as_mkdir_p; then
42197     mkdir -p "$ac_dir"
42198   else
42199     as_dir="$ac_dir"
42200     as_dirs=
42201     while test ! -d "$as_dir"; do
42202       as_dirs="$as_dir $as_dirs"
42203       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42205          X"$as_dir" : 'X\(//\)[^/]' \| \
42206          X"$as_dir" : 'X\(//\)$' \| \
42207          X"$as_dir" : 'X\(/\)' \| \
42208          .     : '\(.\)' 2>/dev/null ||
42209 echo X"$as_dir" |
42210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42211           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42212           /^X\(\/\/\)$/{ s//\1/; q; }
42213           /^X\(\/\).*/{ s//\1/; q; }
42214           s/.*/./; q'`
42215     done
42216     test ! -n "$as_dirs" || mkdir $as_dirs
42217   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42219    { (exit 1); exit 1; }; }; }
42220
42221   ac_builddir=.
42222
42223 if test "$ac_dir" != .; then
42224   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42225   # A "../" for each directory in $ac_dir_suffix.
42226   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42227 else
42228   ac_dir_suffix= ac_top_builddir=
42229 fi
42230
42231 case $srcdir in
42232   .)  # No --srcdir option.  We are building in place.
42233     ac_srcdir=.
42234     if test -z "$ac_top_builddir"; then
42235        ac_top_srcdir=.
42236     else
42237        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42238     fi ;;
42239   [\\/]* | ?:[\\/]* )  # Absolute path.
42240     ac_srcdir=$srcdir$ac_dir_suffix;
42241     ac_top_srcdir=$srcdir ;;
42242   *) # Relative path.
42243     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42244     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42245 esac
42246
42247 # Do not use `cd foo && pwd` to compute absolute paths, because
42248 # the directories may not exist.
42249 case `pwd` in
42250 .) ac_abs_builddir="$ac_dir";;
42251 *)
42252   case "$ac_dir" in
42253   .) ac_abs_builddir=`pwd`;;
42254   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42255   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42256   esac;;
42257 esac
42258 case $ac_abs_builddir in
42259 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42260 *)
42261   case ${ac_top_builddir}. in
42262   .) ac_abs_top_builddir=$ac_abs_builddir;;
42263   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42264   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42265   esac;;
42266 esac
42267 case $ac_abs_builddir in
42268 .) ac_abs_srcdir=$ac_srcdir;;
42269 *)
42270   case $ac_srcdir in
42271   .) ac_abs_srcdir=$ac_abs_builddir;;
42272   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42273   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42274   esac;;
42275 esac
42276 case $ac_abs_builddir in
42277 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42278 *)
42279   case $ac_top_srcdir in
42280   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42281   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42282   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42283   esac;;
42284 esac
42285
42286
42287   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42288 echo "$as_me: executing $ac_dest commands" >&6;}
42289   case $ac_dest in
42290     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42291   # Strip MF so we end up with the name of the file.
42292   mf=`echo "$mf" | sed -e 's/:.*$//'`
42293   # Check whether this is an Automake generated Makefile or not.
42294   # We used to match only the files named `Makefile.in', but
42295   # some people rename them; so instead we look at the file content.
42296   # Grep'ing the first line is not enough: some people post-process
42297   # each Makefile.in and add a new line on top of each file to say so.
42298   # So let's grep whole file.
42299   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42300     dirpart=`(dirname "$mf") 2>/dev/null ||
42301 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42302          X"$mf" : 'X\(//\)[^/]' \| \
42303          X"$mf" : 'X\(//\)$' \| \
42304          X"$mf" : 'X\(/\)' \| \
42305          .     : '\(.\)' 2>/dev/null ||
42306 echo X"$mf" |
42307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42308           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42309           /^X\(\/\/\)$/{ s//\1/; q; }
42310           /^X\(\/\).*/{ s//\1/; q; }
42311           s/.*/./; q'`
42312   else
42313     continue
42314   fi
42315   # Extract the definition of DEPDIR, am__include, and am__quote
42316   # from the Makefile without running `make'.
42317   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42318   test -z "$DEPDIR" && continue
42319   am__include=`sed -n 's/^am__include = //p' < "$mf"`
42320   test -z "am__include" && continue
42321   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42322   # When using ansi2knr, U may be empty or an underscore; expand it
42323   U=`sed -n 's/^U = //p' < "$mf"`
42324   # Find all dependency output files, they are included files with
42325   # $(DEPDIR) in their names.  We invoke sed twice because it is the
42326   # simplest approach to changing $(DEPDIR) to its actual value in the
42327   # expansion.
42328   for file in `sed -n "
42329     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42330        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42331     # Make sure the directory exists.
42332     test -f "$dirpart/$file" && continue
42333     fdir=`(dirname "$file") 2>/dev/null ||
42334 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42335          X"$file" : 'X\(//\)[^/]' \| \
42336          X"$file" : 'X\(//\)$' \| \
42337          X"$file" : 'X\(/\)' \| \
42338          .     : '\(.\)' 2>/dev/null ||
42339 echo X"$file" |
42340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42341           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42342           /^X\(\/\/\)$/{ s//\1/; q; }
42343           /^X\(\/\).*/{ s//\1/; q; }
42344           s/.*/./; q'`
42345     { if $as_mkdir_p; then
42346     mkdir -p $dirpart/$fdir
42347   else
42348     as_dir=$dirpart/$fdir
42349     as_dirs=
42350     while test ! -d "$as_dir"; do
42351       as_dirs="$as_dir $as_dirs"
42352       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42354          X"$as_dir" : 'X\(//\)[^/]' \| \
42355          X"$as_dir" : 'X\(//\)$' \| \
42356          X"$as_dir" : 'X\(/\)' \| \
42357          .     : '\(.\)' 2>/dev/null ||
42358 echo X"$as_dir" |
42359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42360           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42361           /^X\(\/\/\)$/{ s//\1/; q; }
42362           /^X\(\/\).*/{ s//\1/; q; }
42363           s/.*/./; q'`
42364     done
42365     test ! -n "$as_dirs" || mkdir $as_dirs
42366   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42367 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42368    { (exit 1); exit 1; }; }; }
42369
42370     # echo "creating $dirpart/$file"
42371     echo '# dummy' > "$dirpart/$file"
42372   done
42373 done
42374  ;;
42375     default )
42376 chmod +x tests/run
42377 date > stamp-h
42378 BACKENDSC="servers/slapd/backends.c"
42379 echo "Making $BACKENDSC"
42380 rm -f $BACKENDSC
42381 cat > $BACKENDSC << ENDX
42382 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42383  *
42384  * Copyright 1998-2006 The OpenLDAP Foundation.
42385  * All rights reserved.
42386  *
42387  * Redistribution and use in source and binary forms, with or without
42388  * modification, are permitted only as authorized by the OpenLDAP
42389  * Public License.
42390  *
42391  * A copy of this license is available in the file LICENSE in the
42392  * top-level directory of the distribution or, alternatively, at
42393  * <http://www.OpenLDAP.org/license.html>.
42394  */
42395 /* This file is automatically generated by configure; please do not edit. */
42396
42397 #include "portable.h"
42398 #include "slap.h"
42399
42400 ENDX
42401 if test "${STATIC_BACKENDS}"; then
42402         for b in config ${STATIC_BACKENDS}; do
42403                 bb=`echo "${b}" | sed -e 's/back-//'`
42404                 cat >> $BACKENDSC << ENDX
42405 extern BI_init ${bb}_back_initialize;
42406 ENDX
42407         done
42408
42409         cat >> $BACKENDSC << ENDX
42410
42411 BackendInfo slap_binfo[] = {
42412 ENDX
42413
42414         for b in config ${STATIC_BACKENDS}; do
42415                 bb=`echo "${b}" | sed -e 's/back-//'`
42416                 echo "    Add ${bb} ..."
42417                 cat >> $BACKENDSC << ENDX
42418         { "${bb}", ${bb}_back_initialize },
42419 ENDX
42420         done
42421
42422         cat >> $BACKENDSC << ENDX
42423         { NULL, NULL },
42424 };
42425
42426 /* end of generated file */
42427 ENDX
42428 fi
42429 OVERLAYSC="servers/slapd/overlays/statover.c"
42430 echo "Making $OVERLAYSC"
42431 rm -f $OVERLAYSC
42432 cat > $OVERLAYSC << ENDX
42433 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42434  *
42435  * Copyright 1998-2006 The OpenLDAP Foundation.
42436  * All rights reserved.
42437  *
42438  * Redistribution and use in source and binary forms, with or without
42439  * modification, are permitted only as authorized by the OpenLDAP
42440  * Public License.
42441  *
42442  * A copy of this license is available in the file LICENSE in the
42443  * top-level directory of the distribution or, alternatively, at
42444  * <http://www.OpenLDAP.org/license.html>.
42445  */
42446 /* This file is automatically generated by configure; please do not edit. */
42447
42448 #include "portable.h"
42449 #include "slap.h"
42450
42451 ENDX
42452 if test "${STATIC_OVERLAYS}"; then
42453         for o in ${STATIC_OVERLAYS}; do
42454                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42455                 cat >> $OVERLAYSC << ENDX
42456 extern OV_init ${oo}_initialize;
42457 ENDX
42458         done
42459 fi
42460
42461 cat >> $OVERLAYSC << ENDX
42462
42463 OverlayInit slap_oinfo[] = {
42464 ENDX
42465
42466 if test "${STATIC_OVERLAYS}"; then
42467         for o in ${STATIC_OVERLAYS}; do
42468                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42469                 echo "    Add ${oo} ..."
42470                 cat >> $OVERLAYSC << ENDX
42471         { "${oo}", ${oo}_initialize },
42472 ENDX
42473         done
42474 fi
42475
42476         cat >> $OVERLAYSC << ENDX
42477         { NULL, NULL },
42478 };
42479
42480 /* end of generated file */
42481 ENDX
42482
42483 echo Please run \"make depend\" to build dependencies
42484  ;;
42485   esac
42486 done
42487 _ACEOF
42488
42489 cat >>$CONFIG_STATUS <<\_ACEOF
42490
42491 { (exit 0); exit 0; }
42492 _ACEOF
42493 chmod +x $CONFIG_STATUS
42494 ac_clean_files=$ac_clean_files_save
42495
42496
42497 # configure is writing to config.log, and then calls config.status.
42498 # config.status does its own redirection, appending to config.log.
42499 # Unfortunately, on DOS this fails, as config.log is still kept open
42500 # by configure, so config.status won't be able to write to it; its
42501 # output is simply discarded.  So we exec the FD to /dev/null,
42502 # effectively closing config.log, so it can be properly (re)opened and
42503 # appended to by config.status.  When coming back to configure, we
42504 # need to make the FD available again.
42505 if test "$no_create" != yes; then
42506   ac_cs_success=:
42507   ac_config_status_args=
42508   test "$silent" = yes &&
42509     ac_config_status_args="$ac_config_status_args --quiet"
42510   exec 5>/dev/null
42511   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42512   exec 5>>config.log
42513   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42514   # would make configure fail if this is the last instruction.
42515   $ac_cs_success || { (exit 1); exit 1; }
42516 fi
42517