]> git.sur5r.net Git - openldap/blob - configure
ITS#5369
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.14 2008/09/17 22:54:33 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2008 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 MYSQL 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_NDB BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SOCK BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_COLLECT BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_MEMBEROF BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS SLAPD_NDB_LIBS SLAPD_NDB_INCS 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 GSSAPI_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-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1040     --enable-null         enable null backend no|yes|mod [no]
1041     --enable-passwd       enable passwd backend no|yes|mod [no]
1042     --enable-perl         enable perl backend no|yes|mod [no]
1043     --enable-relay        enable relay backend no|yes|mod [yes]
1044     --enable-shell        enable shell backend no|yes|mod [no]
1045     --enable-sock         enable sock backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1052     --enable-collect      Collect overlay no|yes|mod [no]
1053     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1054     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1055     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1056     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1057     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1058     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1059     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1060     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1061     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1062     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1063     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1064     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1065     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1066     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1067     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1068
1069 Library Generation & Linking Options
1070   --enable-static[=PKGS]
1071                           build static libraries [default=yes]
1072   --enable-shared[=PKGS]
1073                           build shared libraries [default=yes]
1074   --enable-fast-install[=PKGS]
1075                           optimize for fast installation [default=yes]
1076   --disable-dependency-tracking  speeds up one-time build
1077   --enable-dependency-tracking   do not reject slow dependency extractors
1078   --disable-libtool-lock  avoid locking (might break parallel builds)
1079
1080 Optional Packages:
1081   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1082   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1083   --with-subdir=DIR       change default subdirectory used for installs
1084   --with-cyrus-sasl       with Cyrus SASL support [auto]
1085   --with-fetch            with fetch(3) URL support [auto]
1086   --with-gssapi           with GSSAPI support [auto]
1087   --with-threads          with threads [auto]
1088   --with-tls              with TLS/SSL support auto|openssl|gnutls [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|odbc32|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-2008 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="" TN=""
1601 if test -t 1; then
1602         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1603         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1604 fi
1605
1606 OPENLDAP_CVS=""
1607 if test -d $ac_aux_dir/CVS; then
1608         OPENLDAP_CVS="(from CVS sources) "
1609 fi
1610
1611 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1612
1613 # Make sure we can run config.sub.
1614 $ac_config_sub sun4 >/dev/null 2>&1 ||
1615   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1616 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1617    { (exit 1); exit 1; }; }
1618
1619 echo "$as_me:$LINENO: checking build system type" >&5
1620 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1621 if test "${ac_cv_build+set}" = set; then
1622   echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624   ac_cv_build_alias=$build_alias
1625 test -z "$ac_cv_build_alias" &&
1626   ac_cv_build_alias=`$ac_config_guess`
1627 test -z "$ac_cv_build_alias" &&
1628   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1629 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1630    { (exit 1); exit 1; }; }
1631 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1632   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1634    { (exit 1); exit 1; }; }
1635
1636 fi
1637 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1638 echo "${ECHO_T}$ac_cv_build" >&6
1639 build=$ac_cv_build
1640 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645 echo "$as_me:$LINENO: checking host system type" >&5
1646 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1647 if test "${ac_cv_host+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   ac_cv_host_alias=$host_alias
1651 test -z "$ac_cv_host_alias" &&
1652   ac_cv_host_alias=$ac_cv_build_alias
1653 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1654   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1655 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1656    { (exit 1); exit 1; }; }
1657
1658 fi
1659 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1660 echo "${ECHO_T}$ac_cv_host" >&6
1661 host=$ac_cv_host
1662 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665
1666
1667 echo "$as_me:$LINENO: checking target system type" >&5
1668 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1669 if test "${ac_cv_target+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   ac_cv_target_alias=$target_alias
1673 test "x$ac_cv_target_alias" = "x" &&
1674   ac_cv_target_alias=$ac_cv_host_alias
1675 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1676   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1677 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1678    { (exit 1); exit 1; }; }
1679
1680 fi
1681 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1682 echo "${ECHO_T}$ac_cv_target" >&6
1683 target=$ac_cv_target
1684 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687
1688
1689 # The aliases save the names the user supplied, while $host etc.
1690 # will get canonicalized.
1691 test -n "$target_alias" &&
1692   test "$program_prefix$program_suffix$program_transform_name" = \
1693     NONENONEs,x,x, &&
1694   program_prefix=${target_alias}-
1695
1696 am__api_version="1.9"
1697 # Find a good install program.  We prefer a C program (faster),
1698 # so one script is as good as another.  But avoid the broken or
1699 # incompatible versions:
1700 # SysV /etc/install, /usr/sbin/install
1701 # SunOS /usr/etc/install
1702 # IRIX /sbin/install
1703 # AIX /bin/install
1704 # AmigaOS /C/install, which installs bootblocks on floppy discs
1705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1708 # OS/2's system install, which has a completely different semantic
1709 # ./install, which can be erroneously created by make from ./install.sh.
1710 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1711 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1712 if test -z "$INSTALL"; then
1713 if test "${ac_cv_path_install+set}" = set; then
1714   echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719   IFS=$as_save_IFS
1720   test -z "$as_dir" && as_dir=.
1721   # Account for people who put trailing slashes in PATH elements.
1722 case $as_dir/ in
1723   ./ | .// | /cC/* | \
1724   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1725   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1726   /usr/ucb/* ) ;;
1727   *)
1728     # OSF1 and SCO ODT 3.0 have their own names for install.
1729     # Don't use installbsd from OSF since it installs stuff as root
1730     # by default.
1731     for ac_prog in ginstall scoinst install; do
1732       for ac_exec_ext in '' $ac_executable_extensions; do
1733         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1734           if test $ac_prog = install &&
1735             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736             # AIX install.  It has an incompatible calling convention.
1737             :
1738           elif test $ac_prog = install &&
1739             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1740             # program-specific install script used by HP pwplus--don't use.
1741             :
1742           else
1743             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1744             break 3
1745           fi
1746         fi
1747       done
1748     done
1749     ;;
1750 esac
1751 done
1752
1753
1754 fi
1755   if test "${ac_cv_path_install+set}" = set; then
1756     INSTALL=$ac_cv_path_install
1757   else
1758     # As a last resort, use the slow shell script.  We don't cache a
1759     # path for INSTALL within a source directory, because that will
1760     # break other packages using the cache if that directory is
1761     # removed, or if the path is relative.
1762     INSTALL=$ac_install_sh
1763   fi
1764 fi
1765 echo "$as_me:$LINENO: result: $INSTALL" >&5
1766 echo "${ECHO_T}$INSTALL" >&6
1767
1768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1769 # It thinks the first close brace ends the variable substitution.
1770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771
1772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773
1774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775
1776 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1777 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1778 # Just in case
1779 sleep 1
1780 echo timestamp > conftest.file
1781 # Do `set' in a subshell so we don't clobber the current shell's
1782 # arguments.  Must try -L first in case configure is actually a
1783 # symlink; some systems play weird games with the mod time of symlinks
1784 # (eg FreeBSD returns the mod time of the symlink's containing
1785 # directory).
1786 if (
1787    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1788    if test "$*" = "X"; then
1789       # -L didn't work.
1790       set X `ls -t $srcdir/configure conftest.file`
1791    fi
1792    rm -f conftest.file
1793    if test "$*" != "X $srcdir/configure conftest.file" \
1794       && test "$*" != "X conftest.file $srcdir/configure"; then
1795
1796       # If neither matched, then we have a broken ls.  This can happen
1797       # if, for instance, CONFIG_SHELL is bash and it inherits a
1798       # broken ls alias from the environment.  This has actually
1799       # happened.  Such a system could not be considered "sane".
1800       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1801 alias in your environment" >&5
1802 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1803 alias in your environment" >&2;}
1804    { (exit 1); exit 1; }; }
1805    fi
1806
1807    test "$2" = conftest.file
1808    )
1809 then
1810    # Ok.
1811    :
1812 else
1813    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1814 Check your system clock" >&5
1815 echo "$as_me: error: newly created file is older than distributed files!
1816 Check your system clock" >&2;}
1817    { (exit 1); exit 1; }; }
1818 fi
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1821 test "$program_prefix" != NONE &&
1822   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1823 # Use a double $ so make ignores it.
1824 test "$program_suffix" != NONE &&
1825   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1826 # Double any \ or $.  echo might interpret backslashes.
1827 # By default was `s,x,x', remove it if useless.
1828 cat <<\_ACEOF >conftest.sed
1829 s/[\\$]/&&/g;s/;s,x,x,$//
1830 _ACEOF
1831 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1832 rm conftest.sed
1833
1834 # expand $ac_aux_dir to an absolute path
1835 am_aux_dir=`cd $ac_aux_dir && pwd`
1836
1837 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1838 # Use eval to expand $SHELL
1839 if eval "$MISSING --run true"; then
1840   am_missing_run="$MISSING --run "
1841 else
1842   am_missing_run=
1843   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1844 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1845 fi
1846
1847 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1848   # We used to keeping the `.' as first argument, in order to
1849   # allow $(mkdir_p) to be used without argument.  As in
1850   #   $(mkdir_p) $(somedir)
1851   # where $(somedir) is conditionally defined.  However this is wrong
1852   # for two reasons:
1853   #  1. if the package is installed by a user who cannot write `.'
1854   #     make install will fail,
1855   #  2. the above comment should most certainly read
1856   #     $(mkdir_p) $(DESTDIR)$(somedir)
1857   #     so it does not work when $(somedir) is undefined and
1858   #     $(DESTDIR) is not.
1859   #  To support the latter case, we have to write
1860   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1861   #  so the `.' trick is pointless.
1862   mkdir_p='mkdir -p --'
1863 else
1864   # On NextStep and OpenStep, the `mkdir' command does not
1865   # recognize any option.  It will interpret all options as
1866   # directories to create, and then abort because `.' already
1867   # exists.
1868   for d in ./-p ./--version;
1869   do
1870     test -d $d && rmdir $d
1871   done
1872   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1873   if test -f "$ac_aux_dir/mkinstalldirs"; then
1874     mkdir_p='$(mkinstalldirs)'
1875   else
1876     mkdir_p='$(install_sh) -d'
1877   fi
1878 fi
1879
1880 for ac_prog in gawk mawk nawk awk
1881 do
1882   # Extract the first word of "$ac_prog", so it can be a program name with args.
1883 set dummy $ac_prog; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_AWK+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   if test -n "$AWK"; then
1890   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   for ac_exec_ext in '' $ac_executable_extensions; do
1898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899     ac_cv_prog_AWK="$ac_prog"
1900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901     break 2
1902   fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 AWK=$ac_cv_prog_AWK
1909 if test -n "$AWK"; then
1910   echo "$as_me:$LINENO: result: $AWK" >&5
1911 echo "${ECHO_T}$AWK" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917   test -n "$AWK" && break
1918 done
1919
1920 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1921 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1922 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1923 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   cat >conftest.make <<\_ACEOF
1927 all:
1928         @echo 'ac_maketemp="$(MAKE)"'
1929 _ACEOF
1930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1931 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1932 if test -n "$ac_maketemp"; then
1933   eval ac_cv_prog_make_${ac_make}_set=yes
1934 else
1935   eval ac_cv_prog_make_${ac_make}_set=no
1936 fi
1937 rm -f conftest.make
1938 fi
1939 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1940   echo "$as_me:$LINENO: result: yes" >&5
1941 echo "${ECHO_T}yes" >&6
1942   SET_MAKE=
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946   SET_MAKE="MAKE=${MAKE-make}"
1947 fi
1948
1949 rm -rf .tst 2>/dev/null
1950 mkdir .tst 2>/dev/null
1951 if test -d .tst; then
1952   am__leading_dot=.
1953 else
1954   am__leading_dot=_
1955 fi
1956 rmdir .tst 2>/dev/null
1957
1958 # test to see if srcdir already configured
1959 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1960    test -f $srcdir/config.status; then
1961   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1962 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965
1966 # test whether we have cygpath
1967 if test -z "$CYGPATH_W"; then
1968   if (cygpath --version) >/dev/null 2>/dev/null; then
1969     CYGPATH_W='cygpath -w'
1970   else
1971     CYGPATH_W=echo
1972   fi
1973 fi
1974
1975
1976 # Define the identity of the package.
1977  PACKAGE=$OL_PACKAGE
1978  VERSION=$OL_VERSION
1979
1980
1981 # Some tools Automake needs.
1982
1983 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1984
1985
1986 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1987
1988
1989 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1990
1991
1992 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1993
1994
1995 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1996
1997 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1998
1999 # Installed binaries are usually stripped using `strip' when the user
2000 # run `make install-strip'.  However `strip' might not be the right
2001 # tool to use in cross-compilation environments, therefore Automake
2002 # will honor the `STRIP' environment variable to overrule this program.
2003 if test "$cross_compiling" != no; then
2004   if test -n "$ac_tool_prefix"; then
2005   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2006 set dummy ${ac_tool_prefix}strip; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_STRIP+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$STRIP"; then
2013   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028
2029 fi
2030 fi
2031 STRIP=$ac_cv_prog_STRIP
2032 if test -n "$STRIP"; then
2033   echo "$as_me:$LINENO: result: $STRIP" >&5
2034 echo "${ECHO_T}$STRIP" >&6
2035 else
2036   echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2038 fi
2039
2040 fi
2041 if test -z "$ac_cv_prog_STRIP"; then
2042   ac_ct_STRIP=$STRIP
2043   # Extract the first word of "strip", so it can be a program name with args.
2044 set dummy strip; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$ac_ct_STRIP"; then
2051   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060     ac_cv_prog_ac_ct_STRIP="strip"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066
2067   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2068 fi
2069 fi
2070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2071 if test -n "$ac_ct_STRIP"; then
2072   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2073 echo "${ECHO_T}$ac_ct_STRIP" >&6
2074 else
2075   echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2077 fi
2078
2079   STRIP=$ac_ct_STRIP
2080 else
2081   STRIP="$ac_cv_prog_STRIP"
2082 fi
2083
2084 fi
2085 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2086
2087 # We need awk for the "check" target.  The system "awk" is bad on
2088 # some platforms.
2089 # Always define AMTAR for backward compatibility.
2090
2091 AMTAR=${AMTAR-"${am_missing_run}tar"}
2092
2093 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2094
2095
2096
2097
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_PACKAGE "$PACKAGE"
2101 _ACEOF
2102
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define OPENLDAP_VERSION "$VERSION"
2106 _ACEOF
2107
2108
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION $OL_API_INC
2112 _ACEOF
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2117 _ACEOF
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2122 _ACEOF
2123
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2127 _ACEOF
2128
2129
2130 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2131
2132 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2133
2134 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2135
2136
2137
2138
2139
2140
2141
2142           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2143
2144           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2145
2146           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2147
2148
2149 echo "$as_me:$LINENO: checking configure arguments" >&5
2150 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2151
2152
2153 top_builddir=`pwd`
2154
2155 ldap_subdir="/openldap"
2156
2157
2158 # Check whether --with-subdir or --without-subdir was given.
2159 if test "${with_subdir+set}" = set; then
2160   withval="$with_subdir"
2161   case "$withval" in
2162         no) ldap_subdir=""
2163                 ;;
2164         yes)
2165                 ;;
2166         /*|\\*)
2167                 ldap_subdir="$withval"
2168                 ;;
2169         *)
2170                 ldap_subdir="/$withval"
2171                 ;;
2172 esac
2173
2174 fi;
2175
2176 # OpenLDAP --enable-debug
2177
2178         # Check whether --enable-debug or --disable-debug was given.
2179 if test "${enable_debug+set}" = set; then
2180   enableval="$enable_debug"
2181
2182         ol_arg=invalid
2183         for ol_val in no yes traditional ; do
2184                 if test "$enableval" = "$ol_val" ; then
2185                         ol_arg="$ol_val"
2186                 fi
2187         done
2188         if test "$ol_arg" = "invalid" ; then
2189                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2190 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2191    { (exit 1); exit 1; }; }
2192         fi
2193         ol_enable_debug="$ol_arg"
2194
2195 else
2196         ol_enable_debug=yes
2197 fi;
2198 # end --enable-debug
2199 # OpenLDAP --enable-dynamic
2200
2201         # Check whether --enable-dynamic or --disable-dynamic was given.
2202 if test "${enable_dynamic+set}" = set; then
2203   enableval="$enable_dynamic"
2204
2205         ol_arg=invalid
2206         for ol_val in auto yes no ; do
2207                 if test "$enableval" = "$ol_val" ; then
2208                         ol_arg="$ol_val"
2209                 fi
2210         done
2211         if test "$ol_arg" = "invalid" ; then
2212                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2213 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2214    { (exit 1); exit 1; }; }
2215         fi
2216         ol_enable_dynamic="$ol_arg"
2217
2218 else
2219         ol_enable_dynamic=no
2220 fi;
2221 # end --enable-dynamic
2222 # OpenLDAP --enable-syslog
2223
2224         # Check whether --enable-syslog or --disable-syslog was given.
2225 if test "${enable_syslog+set}" = set; then
2226   enableval="$enable_syslog"
2227
2228         ol_arg=invalid
2229         for ol_val in auto yes no ; do
2230                 if test "$enableval" = "$ol_val" ; then
2231                         ol_arg="$ol_val"
2232                 fi
2233         done
2234         if test "$ol_arg" = "invalid" ; then
2235                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2236 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2237    { (exit 1); exit 1; }; }
2238         fi
2239         ol_enable_syslog="$ol_arg"
2240
2241 else
2242         ol_enable_syslog=auto
2243 fi;
2244 # end --enable-syslog
2245 # OpenLDAP --enable-proctitle
2246
2247         # Check whether --enable-proctitle or --disable-proctitle was given.
2248 if test "${enable_proctitle+set}" = set; then
2249   enableval="$enable_proctitle"
2250
2251         ol_arg=invalid
2252         for ol_val in auto yes no ; do
2253                 if test "$enableval" = "$ol_val" ; then
2254                         ol_arg="$ol_val"
2255                 fi
2256         done
2257         if test "$ol_arg" = "invalid" ; then
2258                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2259 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2260    { (exit 1); exit 1; }; }
2261         fi
2262         ol_enable_proctitle="$ol_arg"
2263
2264 else
2265         ol_enable_proctitle=yes
2266 fi;
2267 # end --enable-proctitle
2268 ol_enable_referrals=${ol_enable_referrals-no}
2269 # OpenLDAP --enable-ipv6
2270
2271         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2272 if test "${enable_ipv6+set}" = set; then
2273   enableval="$enable_ipv6"
2274
2275         ol_arg=invalid
2276         for ol_val in auto yes no ; do
2277                 if test "$enableval" = "$ol_val" ; then
2278                         ol_arg="$ol_val"
2279                 fi
2280         done
2281         if test "$ol_arg" = "invalid" ; then
2282                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2284    { (exit 1); exit 1; }; }
2285         fi
2286         ol_enable_ipv6="$ol_arg"
2287
2288 else
2289         ol_enable_ipv6=auto
2290 fi;
2291 # end --enable-ipv6
2292 # OpenLDAP --enable-local
2293
2294         # Check whether --enable-local or --disable-local was given.
2295 if test "${enable_local+set}" = set; then
2296   enableval="$enable_local"
2297
2298         ol_arg=invalid
2299         for ol_val in auto yes no ; do
2300                 if test "$enableval" = "$ol_val" ; then
2301                         ol_arg="$ol_val"
2302                 fi
2303         done
2304         if test "$ol_arg" = "invalid" ; then
2305                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2306 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2307    { (exit 1); exit 1; }; }
2308         fi
2309         ol_enable_local="$ol_arg"
2310
2311 else
2312         ol_enable_local=auto
2313 fi;
2314 # end --enable-local
2315
2316 # OpenLDAP --with-cyrus_sasl
2317
2318 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2319 if test "${with_cyrus_sasl+set}" = set; then
2320   withval="$with_cyrus_sasl"
2321
2322         ol_arg=invalid
2323         for ol_val in auto yes no  ; do
2324                 if test "$withval" = "$ol_val" ; then
2325                         ol_arg="$ol_val"
2326                 fi
2327         done
2328         if test "$ol_arg" = "invalid" ; then
2329                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2330 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2331    { (exit 1); exit 1; }; }
2332         fi
2333         ol_with_cyrus_sasl="$ol_arg"
2334
2335 else
2336         ol_with_cyrus_sasl="auto"
2337 fi; # end --with-cyrus_sasl
2338
2339 # OpenLDAP --with-fetch
2340
2341 # Check whether --with-fetch or --without-fetch was given.
2342 if test "${with_fetch+set}" = set; then
2343   withval="$with_fetch"
2344
2345         ol_arg=invalid
2346         for ol_val in auto yes no  ; do
2347                 if test "$withval" = "$ol_val" ; then
2348                         ol_arg="$ol_val"
2349                 fi
2350         done
2351         if test "$ol_arg" = "invalid" ; then
2352                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2353 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2354    { (exit 1); exit 1; }; }
2355         fi
2356         ol_with_fetch="$ol_arg"
2357
2358 else
2359         ol_with_fetch="auto"
2360 fi; # end --with-fetch
2361
2362 # OpenLDAP --with-gssapi
2363
2364 # Check whether --with-gssapi or --without-gssapi was given.
2365 if test "${with_gssapi+set}" = set; then
2366   withval="$with_gssapi"
2367
2368         ol_arg=invalid
2369         for ol_val in auto yes no  ; do
2370                 if test "$withval" = "$ol_val" ; then
2371                         ol_arg="$ol_val"
2372                 fi
2373         done
2374         if test "$ol_arg" = "invalid" ; then
2375                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2376 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2377    { (exit 1); exit 1; }; }
2378         fi
2379         ol_with_gssapi="$ol_arg"
2380
2381 else
2382         ol_with_gssapi="auto"
2383 fi; # end --with-gssapi
2384
2385 # OpenLDAP --with-threads
2386
2387 # Check whether --with-threads or --without-threads was given.
2388 if test "${with_threads+set}" = set; then
2389   withval="$with_threads"
2390
2391         ol_arg=invalid
2392         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2393                 if test "$withval" = "$ol_val" ; then
2394                         ol_arg="$ol_val"
2395                 fi
2396         done
2397         if test "$ol_arg" = "invalid" ; then
2398                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2399 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2400    { (exit 1); exit 1; }; }
2401         fi
2402         ol_with_threads="$ol_arg"
2403
2404 else
2405         ol_with_threads="auto"
2406 fi; # end --with-threads
2407
2408 # OpenLDAP --with-tls
2409
2410 # Check whether --with-tls or --without-tls was given.
2411 if test "${with_tls+set}" = set; then
2412   withval="$with_tls"
2413
2414         ol_arg=invalid
2415         for ol_val in auto openssl gnutls yes no  ; do
2416                 if test "$withval" = "$ol_val" ; then
2417                         ol_arg="$ol_val"
2418                 fi
2419         done
2420         if test "$ol_arg" = "invalid" ; then
2421                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2422 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2423    { (exit 1); exit 1; }; }
2424         fi
2425         ol_with_tls="$ol_arg"
2426
2427 else
2428         ol_with_tls="auto"
2429 fi; # end --with-tls
2430
2431 # OpenLDAP --with-yielding_select
2432
2433 # Check whether --with-yielding_select or --without-yielding_select was given.
2434 if test "${with_yielding_select+set}" = set; then
2435   withval="$with_yielding_select"
2436
2437         ol_arg=invalid
2438         for ol_val in auto yes no manual  ; do
2439                 if test "$withval" = "$ol_val" ; then
2440                         ol_arg="$ol_val"
2441                 fi
2442         done
2443         if test "$ol_arg" = "invalid" ; then
2444                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2445 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2446    { (exit 1); exit 1; }; }
2447         fi
2448         ol_with_yielding_select="$ol_arg"
2449
2450 else
2451         ol_with_yielding_select="auto"
2452 fi; # end --with-yielding_select
2453
2454 # OpenLDAP --with-mp
2455
2456 # Check whether --with-mp or --without-mp was given.
2457 if test "${with_mp+set}" = set; then
2458   withval="$with_mp"
2459
2460         ol_arg=invalid
2461         for ol_val in auto longlong long bignum gmp yes no ; do
2462                 if test "$withval" = "$ol_val" ; then
2463                         ol_arg="$ol_val"
2464                 fi
2465         done
2466         if test "$ol_arg" = "invalid" ; then
2467                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2468 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2469    { (exit 1); exit 1; }; }
2470         fi
2471         ol_with_mp="$ol_arg"
2472
2473 else
2474         ol_with_mp="auto"
2475 fi; # end --with-mp
2476
2477 # OpenLDAP --with-odbc
2478
2479 # Check whether --with-odbc or --without-odbc was given.
2480 if test "${with_odbc+set}" = set; then
2481   withval="$with_odbc"
2482
2483         ol_arg=invalid
2484         for ol_val in auto iodbc unixodbc odbc32  ; do
2485                 if test "$withval" = "$ol_val" ; then
2486                         ol_arg="$ol_val"
2487                 fi
2488         done
2489         if test "$ol_arg" = "invalid" ; then
2490                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2491 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2492    { (exit 1); exit 1; }; }
2493         fi
2494         ol_with_odbc="$ol_arg"
2495
2496 else
2497         ol_with_odbc="auto"
2498 fi; # end --with-odbc
2499
2500
2501
2502 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2503 if test "${enable_xxslapdoptions+set}" = set; then
2504   enableval="$enable_xxslapdoptions"
2505
2506 fi;
2507 # OpenLDAP --enable-slapd
2508
2509         # Check whether --enable-slapd or --disable-slapd was given.
2510 if test "${enable_slapd+set}" = set; then
2511   enableval="$enable_slapd"
2512
2513         ol_arg=invalid
2514         for ol_val in auto yes no ; do
2515                 if test "$enableval" = "$ol_val" ; then
2516                         ol_arg="$ol_val"
2517                 fi
2518         done
2519         if test "$ol_arg" = "invalid" ; then
2520                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2521 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2522    { (exit 1); exit 1; }; }
2523         fi
2524         ol_enable_slapd="$ol_arg"
2525
2526 else
2527         ol_enable_slapd=yes
2528 fi;
2529 # end --enable-slapd
2530 # OpenLDAP --enable-dynacl
2531
2532         # Check whether --enable-dynacl or --disable-dynacl was given.
2533 if test "${enable_dynacl+set}" = set; then
2534   enableval="$enable_dynacl"
2535
2536         ol_arg=invalid
2537         for ol_val in auto yes no ; do
2538                 if test "$enableval" = "$ol_val" ; then
2539                         ol_arg="$ol_val"
2540                 fi
2541         done
2542         if test "$ol_arg" = "invalid" ; then
2543                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2544 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2545    { (exit 1); exit 1; }; }
2546         fi
2547         ol_enable_dynacl="$ol_arg"
2548
2549 else
2550         ol_enable_dynacl=no
2551 fi;
2552 # end --enable-dynacl
2553 # OpenLDAP --enable-aci
2554
2555         # Check whether --enable-aci or --disable-aci was given.
2556 if test "${enable_aci+set}" = set; then
2557   enableval="$enable_aci"
2558
2559         ol_arg=invalid
2560         for ol_val in no yes mod ; do
2561                 if test "$enableval" = "$ol_val" ; then
2562                         ol_arg="$ol_val"
2563                 fi
2564         done
2565         if test "$ol_arg" = "invalid" ; then
2566                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2567 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2568    { (exit 1); exit 1; }; }
2569         fi
2570         ol_enable_aci="$ol_arg"
2571
2572 else
2573         ol_enable_aci=no
2574 fi;
2575 # end --enable-aci
2576 # OpenLDAP --enable-cleartext
2577
2578         # Check whether --enable-cleartext or --disable-cleartext was given.
2579 if test "${enable_cleartext+set}" = set; then
2580   enableval="$enable_cleartext"
2581
2582         ol_arg=invalid
2583         for ol_val in auto yes no ; do
2584                 if test "$enableval" = "$ol_val" ; then
2585                         ol_arg="$ol_val"
2586                 fi
2587         done
2588         if test "$ol_arg" = "invalid" ; then
2589                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2590 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2591    { (exit 1); exit 1; }; }
2592         fi
2593         ol_enable_cleartext="$ol_arg"
2594
2595 else
2596         ol_enable_cleartext=yes
2597 fi;
2598 # end --enable-cleartext
2599 # OpenLDAP --enable-crypt
2600
2601         # Check whether --enable-crypt or --disable-crypt was given.
2602 if test "${enable_crypt+set}" = set; then
2603   enableval="$enable_crypt"
2604
2605         ol_arg=invalid
2606         for ol_val in auto yes no ; do
2607                 if test "$enableval" = "$ol_val" ; then
2608                         ol_arg="$ol_val"
2609                 fi
2610         done
2611         if test "$ol_arg" = "invalid" ; then
2612                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2613 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2614    { (exit 1); exit 1; }; }
2615         fi
2616         ol_enable_crypt="$ol_arg"
2617
2618 else
2619         ol_enable_crypt=no
2620 fi;
2621 # end --enable-crypt
2622 # OpenLDAP --enable-lmpasswd
2623
2624         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2625 if test "${enable_lmpasswd+set}" = set; then
2626   enableval="$enable_lmpasswd"
2627
2628         ol_arg=invalid
2629         for ol_val in auto yes no ; do
2630                 if test "$enableval" = "$ol_val" ; then
2631                         ol_arg="$ol_val"
2632                 fi
2633         done
2634         if test "$ol_arg" = "invalid" ; then
2635                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2636 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2637    { (exit 1); exit 1; }; }
2638         fi
2639         ol_enable_lmpasswd="$ol_arg"
2640
2641 else
2642         ol_enable_lmpasswd=no
2643 fi;
2644 # end --enable-lmpasswd
2645 # OpenLDAP --enable-spasswd
2646
2647         # Check whether --enable-spasswd or --disable-spasswd was given.
2648 if test "${enable_spasswd+set}" = set; then
2649   enableval="$enable_spasswd"
2650
2651         ol_arg=invalid
2652         for ol_val in auto yes no ; do
2653                 if test "$enableval" = "$ol_val" ; then
2654                         ol_arg="$ol_val"
2655                 fi
2656         done
2657         if test "$ol_arg" = "invalid" ; then
2658                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2660    { (exit 1); exit 1; }; }
2661         fi
2662         ol_enable_spasswd="$ol_arg"
2663
2664 else
2665         ol_enable_spasswd=no
2666 fi;
2667 # end --enable-spasswd
2668 # OpenLDAP --enable-modules
2669
2670         # Check whether --enable-modules or --disable-modules was given.
2671 if test "${enable_modules+set}" = set; then
2672   enableval="$enable_modules"
2673
2674         ol_arg=invalid
2675         for ol_val in auto yes no ; do
2676                 if test "$enableval" = "$ol_val" ; then
2677                         ol_arg="$ol_val"
2678                 fi
2679         done
2680         if test "$ol_arg" = "invalid" ; then
2681                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2682 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2683    { (exit 1); exit 1; }; }
2684         fi
2685         ol_enable_modules="$ol_arg"
2686
2687 else
2688         ol_enable_modules=no
2689 fi;
2690 # end --enable-modules
2691 # OpenLDAP --enable-rewrite
2692
2693         # Check whether --enable-rewrite or --disable-rewrite was given.
2694 if test "${enable_rewrite+set}" = set; then
2695   enableval="$enable_rewrite"
2696
2697         ol_arg=invalid
2698         for ol_val in auto yes no ; do
2699                 if test "$enableval" = "$ol_val" ; then
2700                         ol_arg="$ol_val"
2701                 fi
2702         done
2703         if test "$ol_arg" = "invalid" ; then
2704                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2705 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2706    { (exit 1); exit 1; }; }
2707         fi
2708         ol_enable_rewrite="$ol_arg"
2709
2710 else
2711         ol_enable_rewrite=auto
2712 fi;
2713 # end --enable-rewrite
2714 # OpenLDAP --enable-rlookups
2715
2716         # Check whether --enable-rlookups or --disable-rlookups was given.
2717 if test "${enable_rlookups+set}" = set; then
2718   enableval="$enable_rlookups"
2719
2720         ol_arg=invalid
2721         for ol_val in auto yes no ; do
2722                 if test "$enableval" = "$ol_val" ; then
2723                         ol_arg="$ol_val"
2724                 fi
2725         done
2726         if test "$ol_arg" = "invalid" ; then
2727                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2728 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2729    { (exit 1); exit 1; }; }
2730         fi
2731         ol_enable_rlookups="$ol_arg"
2732
2733 else
2734         ol_enable_rlookups=no
2735 fi;
2736 # end --enable-rlookups
2737 # OpenLDAP --enable-slapi
2738
2739         # Check whether --enable-slapi or --disable-slapi was given.
2740 if test "${enable_slapi+set}" = set; then
2741   enableval="$enable_slapi"
2742
2743         ol_arg=invalid
2744         for ol_val in auto yes no ; do
2745                 if test "$enableval" = "$ol_val" ; then
2746                         ol_arg="$ol_val"
2747                 fi
2748         done
2749         if test "$ol_arg" = "invalid" ; then
2750                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2751 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2752    { (exit 1); exit 1; }; }
2753         fi
2754         ol_enable_slapi="$ol_arg"
2755
2756 else
2757         ol_enable_slapi=no
2758 fi;
2759 # end --enable-slapi
2760 # OpenLDAP --enable-slp
2761
2762         # Check whether --enable-slp or --disable-slp was given.
2763 if test "${enable_slp+set}" = set; then
2764   enableval="$enable_slp"
2765
2766         ol_arg=invalid
2767         for ol_val in auto yes no ; do
2768                 if test "$enableval" = "$ol_val" ; then
2769                         ol_arg="$ol_val"
2770                 fi
2771         done
2772         if test "$ol_arg" = "invalid" ; then
2773                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2774 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2775    { (exit 1); exit 1; }; }
2776         fi
2777         ol_enable_slp="$ol_arg"
2778
2779 else
2780         ol_enable_slp=no
2781 fi;
2782 # end --enable-slp
2783 # OpenLDAP --enable-wrappers
2784
2785         # Check whether --enable-wrappers or --disable-wrappers was given.
2786 if test "${enable_wrappers+set}" = set; then
2787   enableval="$enable_wrappers"
2788
2789         ol_arg=invalid
2790         for ol_val in auto yes no ; do
2791                 if test "$enableval" = "$ol_val" ; then
2792                         ol_arg="$ol_val"
2793                 fi
2794         done
2795         if test "$ol_arg" = "invalid" ; then
2796                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2797 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2798    { (exit 1); exit 1; }; }
2799         fi
2800         ol_enable_wrappers="$ol_arg"
2801
2802 else
2803         ol_enable_wrappers=no
2804 fi;
2805 # end --enable-wrappers
2806
2807 Backends="bdb \
2808         dnssrv \
2809         hdb \
2810         ldap \
2811         meta \
2812         monitor \
2813         ndb \
2814         null \
2815         passwd \
2816         perl \
2817         relay \
2818         shell \
2819         sock \
2820         sql"
2821
2822 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2823 if test "${enable_xxslapbackends+set}" = set; then
2824   enableval="$enable_xxslapbackends"
2825
2826 fi;
2827
2828 # OpenLDAP --enable-backends
2829
2830         # Check whether --enable-backends or --disable-backends was given.
2831 if test "${enable_backends+set}" = set; then
2832   enableval="$enable_backends"
2833
2834         ol_arg=invalid
2835         for ol_val in no yes mod ; do
2836                 if test "$enableval" = "$ol_val" ; then
2837                         ol_arg="$ol_val"
2838                 fi
2839         done
2840         if test "$ol_arg" = "invalid" ; then
2841                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2842 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2843    { (exit 1); exit 1; }; }
2844         fi
2845         ol_enable_backends="$ol_arg"
2846
2847 fi;
2848 # end --enable-backends
2849 # OpenLDAP --enable-bdb
2850
2851         # Check whether --enable-bdb or --disable-bdb was given.
2852 if test "${enable_bdb+set}" = set; then
2853   enableval="$enable_bdb"
2854
2855         ol_arg=invalid
2856         for ol_val in no yes mod ; do
2857                 if test "$enableval" = "$ol_val" ; then
2858                         ol_arg="$ol_val"
2859                 fi
2860         done
2861         if test "$ol_arg" = "invalid" ; then
2862                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2863 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2864    { (exit 1); exit 1; }; }
2865         fi
2866         ol_enable_bdb="$ol_arg"
2867
2868 else
2869         ol_enable_bdb=${ol_enable_backends:-yes}
2870 fi;
2871 # end --enable-bdb
2872 # OpenLDAP --enable-dnssrv
2873
2874         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2875 if test "${enable_dnssrv+set}" = set; then
2876   enableval="$enable_dnssrv"
2877
2878         ol_arg=invalid
2879         for ol_val in no yes mod ; do
2880                 if test "$enableval" = "$ol_val" ; then
2881                         ol_arg="$ol_val"
2882                 fi
2883         done
2884         if test "$ol_arg" = "invalid" ; then
2885                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2886 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2887    { (exit 1); exit 1; }; }
2888         fi
2889         ol_enable_dnssrv="$ol_arg"
2890
2891 else
2892         ol_enable_dnssrv=${ol_enable_backends:-no}
2893 fi;
2894 # end --enable-dnssrv
2895 # OpenLDAP --enable-hdb
2896
2897         # Check whether --enable-hdb or --disable-hdb was given.
2898 if test "${enable_hdb+set}" = set; then
2899   enableval="$enable_hdb"
2900
2901         ol_arg=invalid
2902         for ol_val in no yes mod ; do
2903                 if test "$enableval" = "$ol_val" ; then
2904                         ol_arg="$ol_val"
2905                 fi
2906         done
2907         if test "$ol_arg" = "invalid" ; then
2908                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2909 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2910    { (exit 1); exit 1; }; }
2911         fi
2912         ol_enable_hdb="$ol_arg"
2913
2914 else
2915         ol_enable_hdb=${ol_enable_backends:-yes}
2916 fi;
2917 # end --enable-hdb
2918 # OpenLDAP --enable-ldap
2919
2920         # Check whether --enable-ldap or --disable-ldap was given.
2921 if test "${enable_ldap+set}" = set; then
2922   enableval="$enable_ldap"
2923
2924         ol_arg=invalid
2925         for ol_val in no yes mod ; do
2926                 if test "$enableval" = "$ol_val" ; then
2927                         ol_arg="$ol_val"
2928                 fi
2929         done
2930         if test "$ol_arg" = "invalid" ; then
2931                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2932 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2933    { (exit 1); exit 1; }; }
2934         fi
2935         ol_enable_ldap="$ol_arg"
2936
2937 else
2938         ol_enable_ldap=${ol_enable_backends:-no}
2939 fi;
2940 # end --enable-ldap
2941 # OpenLDAP --enable-meta
2942
2943         # Check whether --enable-meta or --disable-meta was given.
2944 if test "${enable_meta+set}" = set; then
2945   enableval="$enable_meta"
2946
2947         ol_arg=invalid
2948         for ol_val in no yes mod ; do
2949                 if test "$enableval" = "$ol_val" ; then
2950                         ol_arg="$ol_val"
2951                 fi
2952         done
2953         if test "$ol_arg" = "invalid" ; then
2954                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2955 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2956    { (exit 1); exit 1; }; }
2957         fi
2958         ol_enable_meta="$ol_arg"
2959
2960 else
2961         ol_enable_meta=${ol_enable_backends:-no}
2962 fi;
2963 # end --enable-meta
2964 # OpenLDAP --enable-monitor
2965
2966         # Check whether --enable-monitor or --disable-monitor was given.
2967 if test "${enable_monitor+set}" = set; then
2968   enableval="$enable_monitor"
2969
2970         ol_arg=invalid
2971         for ol_val in no yes mod ; do
2972                 if test "$enableval" = "$ol_val" ; then
2973                         ol_arg="$ol_val"
2974                 fi
2975         done
2976         if test "$ol_arg" = "invalid" ; then
2977                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2978 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2979    { (exit 1); exit 1; }; }
2980         fi
2981         ol_enable_monitor="$ol_arg"
2982
2983 else
2984         ol_enable_monitor=${ol_enable_backends:-yes}
2985 fi;
2986 # end --enable-monitor
2987 # OpenLDAP --enable-ndb
2988
2989         # Check whether --enable-ndb or --disable-ndb was given.
2990 if test "${enable_ndb+set}" = set; then
2991   enableval="$enable_ndb"
2992
2993         ol_arg=invalid
2994         for ol_val in no yes mod ; do
2995                 if test "$enableval" = "$ol_val" ; then
2996                         ol_arg="$ol_val"
2997                 fi
2998         done
2999         if test "$ol_arg" = "invalid" ; then
3000                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3001 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3002    { (exit 1); exit 1; }; }
3003         fi
3004         ol_enable_ndb="$ol_arg"
3005
3006 else
3007         ol_enable_ndb=${ol_enable_backends:-no}
3008 fi;
3009 # end --enable-ndb
3010 # OpenLDAP --enable-null
3011
3012         # Check whether --enable-null or --disable-null was given.
3013 if test "${enable_null+set}" = set; then
3014   enableval="$enable_null"
3015
3016         ol_arg=invalid
3017         for ol_val in no yes mod ; do
3018                 if test "$enableval" = "$ol_val" ; then
3019                         ol_arg="$ol_val"
3020                 fi
3021         done
3022         if test "$ol_arg" = "invalid" ; then
3023                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3024 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3025    { (exit 1); exit 1; }; }
3026         fi
3027         ol_enable_null="$ol_arg"
3028
3029 else
3030         ol_enable_null=${ol_enable_backends:-no}
3031 fi;
3032 # end --enable-null
3033 # OpenLDAP --enable-passwd
3034
3035         # Check whether --enable-passwd or --disable-passwd was given.
3036 if test "${enable_passwd+set}" = set; then
3037   enableval="$enable_passwd"
3038
3039         ol_arg=invalid
3040         for ol_val in no yes mod ; do
3041                 if test "$enableval" = "$ol_val" ; then
3042                         ol_arg="$ol_val"
3043                 fi
3044         done
3045         if test "$ol_arg" = "invalid" ; then
3046                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3047 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3048    { (exit 1); exit 1; }; }
3049         fi
3050         ol_enable_passwd="$ol_arg"
3051
3052 else
3053         ol_enable_passwd=${ol_enable_backends:-no}
3054 fi;
3055 # end --enable-passwd
3056 # OpenLDAP --enable-perl
3057
3058         # Check whether --enable-perl or --disable-perl was given.
3059 if test "${enable_perl+set}" = set; then
3060   enableval="$enable_perl"
3061
3062         ol_arg=invalid
3063         for ol_val in no yes mod ; do
3064                 if test "$enableval" = "$ol_val" ; then
3065                         ol_arg="$ol_val"
3066                 fi
3067         done
3068         if test "$ol_arg" = "invalid" ; then
3069                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3070 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3071    { (exit 1); exit 1; }; }
3072         fi
3073         ol_enable_perl="$ol_arg"
3074
3075 else
3076         ol_enable_perl=${ol_enable_backends:-no}
3077 fi;
3078 # end --enable-perl
3079 # OpenLDAP --enable-relay
3080
3081         # Check whether --enable-relay or --disable-relay was given.
3082 if test "${enable_relay+set}" = set; then
3083   enableval="$enable_relay"
3084
3085         ol_arg=invalid
3086         for ol_val in no yes mod ; do
3087                 if test "$enableval" = "$ol_val" ; then
3088                         ol_arg="$ol_val"
3089                 fi
3090         done
3091         if test "$ol_arg" = "invalid" ; then
3092                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3093 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3094    { (exit 1); exit 1; }; }
3095         fi
3096         ol_enable_relay="$ol_arg"
3097
3098 else
3099         ol_enable_relay=${ol_enable_backends:-yes}
3100 fi;
3101 # end --enable-relay
3102 # OpenLDAP --enable-shell
3103
3104         # Check whether --enable-shell or --disable-shell was given.
3105 if test "${enable_shell+set}" = set; then
3106   enableval="$enable_shell"
3107
3108         ol_arg=invalid
3109         for ol_val in no yes mod ; do
3110                 if test "$enableval" = "$ol_val" ; then
3111                         ol_arg="$ol_val"
3112                 fi
3113         done
3114         if test "$ol_arg" = "invalid" ; then
3115                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3116 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3117    { (exit 1); exit 1; }; }
3118         fi
3119         ol_enable_shell="$ol_arg"
3120
3121 else
3122         ol_enable_shell=${ol_enable_backends:-no}
3123 fi;
3124 # end --enable-shell
3125 # OpenLDAP --enable-sock
3126
3127         # Check whether --enable-sock or --disable-sock was given.
3128 if test "${enable_sock+set}" = set; then
3129   enableval="$enable_sock"
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-sock" >&5
3139 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3140    { (exit 1); exit 1; }; }
3141         fi
3142         ol_enable_sock="$ol_arg"
3143
3144 else
3145         ol_enable_sock=${ol_enable_backends:-no}
3146 fi;
3147 # end --enable-sock
3148 # OpenLDAP --enable-sql
3149
3150         # Check whether --enable-sql or --disable-sql was given.
3151 if test "${enable_sql+set}" = set; then
3152   enableval="$enable_sql"
3153
3154         ol_arg=invalid
3155         for ol_val in no yes mod ; do
3156                 if test "$enableval" = "$ol_val" ; then
3157                         ol_arg="$ol_val"
3158                 fi
3159         done
3160         if test "$ol_arg" = "invalid" ; then
3161                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3162 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3163    { (exit 1); exit 1; }; }
3164         fi
3165         ol_enable_sql="$ol_arg"
3166
3167 else
3168         ol_enable_sql=${ol_enable_backends:-no}
3169 fi;
3170 # end --enable-sql
3171
3172 Overlays="accesslog \
3173         auditlog \
3174         collect \
3175         constraint \
3176         dds \
3177         dyngroup \
3178         dynlist \
3179         memberof \
3180         ppolicy \
3181         proxycache \
3182         refint \
3183         retcode \
3184         rwm \
3185         seqmod \
3186         syncprov \
3187         translucent \
3188         unique \
3189         valsort"
3190
3191 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3192 if test "${enable_xxslapoverlays+set}" = set; then
3193   enableval="$enable_xxslapoverlays"
3194
3195 fi;
3196
3197 # OpenLDAP --enable-overlays
3198
3199         # Check whether --enable-overlays or --disable-overlays was given.
3200 if test "${enable_overlays+set}" = set; then
3201   enableval="$enable_overlays"
3202
3203         ol_arg=invalid
3204         for ol_val in no yes mod ; do
3205                 if test "$enableval" = "$ol_val" ; then
3206                         ol_arg="$ol_val"
3207                 fi
3208         done
3209         if test "$ol_arg" = "invalid" ; then
3210                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3211 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3212    { (exit 1); exit 1; }; }
3213         fi
3214         ol_enable_overlays="$ol_arg"
3215
3216 fi;
3217 # end --enable-overlays
3218 # OpenLDAP --enable-accesslog
3219
3220         # Check whether --enable-accesslog or --disable-accesslog was given.
3221 if test "${enable_accesslog+set}" = set; then
3222   enableval="$enable_accesslog"
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-accesslog" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3233    { (exit 1); exit 1; }; }
3234         fi
3235         ol_enable_accesslog="$ol_arg"
3236
3237 else
3238         ol_enable_accesslog=${ol_enable_overlays:-no}
3239 fi;
3240 # end --enable-accesslog
3241
3242 # OpenLDAP --enable-auditlog
3243
3244         # Check whether --enable-auditlog or --disable-auditlog was given.
3245 if test "${enable_auditlog+set}" = set; then
3246   enableval="$enable_auditlog"
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-auditlog" >&5
3256 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3257    { (exit 1); exit 1; }; }
3258         fi
3259         ol_enable_auditlog="$ol_arg"
3260
3261 else
3262         ol_enable_auditlog=${ol_enable_overlays:-no}
3263 fi;
3264 # end --enable-auditlog
3265
3266 # OpenLDAP --enable-collect
3267
3268         # Check whether --enable-collect or --disable-collect was given.
3269 if test "${enable_collect+set}" = set; then
3270   enableval="$enable_collect"
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-collect" >&5
3280 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3281    { (exit 1); exit 1; }; }
3282         fi
3283         ol_enable_collect="$ol_arg"
3284
3285 else
3286         ol_enable_collect=${ol_enable_overlays:-no}
3287 fi;
3288 # end --enable-collect
3289
3290 # OpenLDAP --enable-constraint
3291
3292         # Check whether --enable-constraint or --disable-constraint was given.
3293 if test "${enable_constraint+set}" = set; then
3294   enableval="$enable_constraint"
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-constraint" >&5
3304 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3305    { (exit 1); exit 1; }; }
3306         fi
3307         ol_enable_constraint="$ol_arg"
3308
3309 else
3310         ol_enable_constraint=${ol_enable_overlays:-no}
3311 fi;
3312 # end --enable-constraint
3313
3314 # OpenLDAP --enable-dds
3315
3316         # Check whether --enable-dds or --disable-dds was given.
3317 if test "${enable_dds+set}" = set; then
3318   enableval="$enable_dds"
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-dds" >&5
3328 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3329    { (exit 1); exit 1; }; }
3330         fi
3331         ol_enable_dds="$ol_arg"
3332
3333 else
3334         ol_enable_dds=${ol_enable_overlays:-no}
3335 fi;
3336 # end --enable-dds
3337
3338 # OpenLDAP --enable-dyngroup
3339
3340         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3341 if test "${enable_dyngroup+set}" = set; then
3342   enableval="$enable_dyngroup"
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-dyngroup" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3353    { (exit 1); exit 1; }; }
3354         fi
3355         ol_enable_dyngroup="$ol_arg"
3356
3357 else
3358         ol_enable_dyngroup=${ol_enable_overlays:-no}
3359 fi;
3360 # end --enable-dyngroup
3361
3362 # OpenLDAP --enable-dynlist
3363
3364         # Check whether --enable-dynlist or --disable-dynlist was given.
3365 if test "${enable_dynlist+set}" = set; then
3366   enableval="$enable_dynlist"
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-dynlist" >&5
3376 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3377    { (exit 1); exit 1; }; }
3378         fi
3379         ol_enable_dynlist="$ol_arg"
3380
3381 else
3382         ol_enable_dynlist=${ol_enable_overlays:-no}
3383 fi;
3384 # end --enable-dynlist
3385
3386 # OpenLDAP --enable-memberof
3387
3388         # Check whether --enable-memberof or --disable-memberof was given.
3389 if test "${enable_memberof+set}" = set; then
3390   enableval="$enable_memberof"
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-memberof" >&5
3400 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3401    { (exit 1); exit 1; }; }
3402         fi
3403         ol_enable_memberof="$ol_arg"
3404
3405 else
3406         ol_enable_memberof=${ol_enable_overlays:-no}
3407 fi;
3408 # end --enable-memberof
3409
3410 # OpenLDAP --enable-ppolicy
3411
3412         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3413 if test "${enable_ppolicy+set}" = set; then
3414   enableval="$enable_ppolicy"
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-ppolicy" >&5
3424 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3425    { (exit 1); exit 1; }; }
3426         fi
3427         ol_enable_ppolicy="$ol_arg"
3428
3429 else
3430         ol_enable_ppolicy=${ol_enable_overlays:-no}
3431 fi;
3432 # end --enable-ppolicy
3433
3434 # OpenLDAP --enable-proxycache
3435
3436         # Check whether --enable-proxycache or --disable-proxycache was given.
3437 if test "${enable_proxycache+set}" = set; then
3438   enableval="$enable_proxycache"
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-proxycache" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3449    { (exit 1); exit 1; }; }
3450         fi
3451         ol_enable_proxycache="$ol_arg"
3452
3453 else
3454         ol_enable_proxycache=${ol_enable_overlays:-no}
3455 fi;
3456 # end --enable-proxycache
3457
3458 # OpenLDAP --enable-refint
3459
3460         # Check whether --enable-refint or --disable-refint was given.
3461 if test "${enable_refint+set}" = set; then
3462   enableval="$enable_refint"
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-refint" >&5
3472 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3473    { (exit 1); exit 1; }; }
3474         fi
3475         ol_enable_refint="$ol_arg"
3476
3477 else
3478         ol_enable_refint=${ol_enable_overlays:-no}
3479 fi;
3480 # end --enable-refint
3481
3482 # OpenLDAP --enable-retcode
3483
3484         # Check whether --enable-retcode or --disable-retcode was given.
3485 if test "${enable_retcode+set}" = set; then
3486   enableval="$enable_retcode"
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-retcode" >&5
3496 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3497    { (exit 1); exit 1; }; }
3498         fi
3499         ol_enable_retcode="$ol_arg"
3500
3501 else
3502         ol_enable_retcode=${ol_enable_overlays:-no}
3503 fi;
3504 # end --enable-retcode
3505
3506 # OpenLDAP --enable-rwm
3507
3508         # Check whether --enable-rwm or --disable-rwm was given.
3509 if test "${enable_rwm+set}" = set; then
3510   enableval="$enable_rwm"
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-rwm" >&5
3520 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3521    { (exit 1); exit 1; }; }
3522         fi
3523         ol_enable_rwm="$ol_arg"
3524
3525 else
3526         ol_enable_rwm=${ol_enable_overlays:-no}
3527 fi;
3528 # end --enable-rwm
3529
3530 # OpenLDAP --enable-seqmod
3531
3532         # Check whether --enable-seqmod or --disable-seqmod was given.
3533 if test "${enable_seqmod+set}" = set; then
3534   enableval="$enable_seqmod"
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-seqmod" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3545    { (exit 1); exit 1; }; }
3546         fi
3547         ol_enable_seqmod="$ol_arg"
3548
3549 else
3550         ol_enable_seqmod=${ol_enable_overlays:-yes}
3551 fi;
3552 # end --enable-seqmod
3553
3554 # OpenLDAP --enable-syncprov
3555
3556         # Check whether --enable-syncprov or --disable-syncprov was given.
3557 if test "${enable_syncprov+set}" = set; then
3558   enableval="$enable_syncprov"
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-syncprov" >&5
3568 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3569    { (exit 1); exit 1; }; }
3570         fi
3571         ol_enable_syncprov="$ol_arg"
3572
3573 else
3574         ol_enable_syncprov=${ol_enable_overlays:-yes}
3575 fi;
3576 # end --enable-syncprov
3577
3578 # OpenLDAP --enable-translucent
3579
3580         # Check whether --enable-translucent or --disable-translucent was given.
3581 if test "${enable_translucent+set}" = set; then
3582   enableval="$enable_translucent"
3583
3584         ol_arg=invalid
3585         for ol_val in no yes mod ; do
3586                 if test "$enableval" = "$ol_val" ; then
3587                         ol_arg="$ol_val"
3588                 fi
3589         done
3590         if test "$ol_arg" = "invalid" ; then
3591                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3593    { (exit 1); exit 1; }; }
3594         fi
3595         ol_enable_translucent="$ol_arg"
3596
3597 else
3598         ol_enable_translucent=${ol_enable_overlays:-no}
3599 fi;
3600 # end --enable-translucent
3601
3602 # OpenLDAP --enable-unique
3603
3604         # Check whether --enable-unique or --disable-unique was given.
3605 if test "${enable_unique+set}" = set; then
3606   enableval="$enable_unique"
3607
3608         ol_arg=invalid
3609         for ol_val in no yes mod ; do
3610                 if test "$enableval" = "$ol_val" ; then
3611                         ol_arg="$ol_val"
3612                 fi
3613         done
3614         if test "$ol_arg" = "invalid" ; then
3615                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3616 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3617    { (exit 1); exit 1; }; }
3618         fi
3619         ol_enable_unique="$ol_arg"
3620
3621 else
3622         ol_enable_unique=${ol_enable_overlays:-no}
3623 fi;
3624 # end --enable-unique
3625
3626 # OpenLDAP --enable-valsort
3627
3628         # Check whether --enable-valsort or --disable-valsort was given.
3629 if test "${enable_valsort+set}" = set; then
3630   enableval="$enable_valsort"
3631
3632         ol_arg=invalid
3633         for ol_val in no yes mod ; do
3634                 if test "$enableval" = "$ol_val" ; then
3635                         ol_arg="$ol_val"
3636                 fi
3637         done
3638         if test "$ol_arg" = "invalid" ; then
3639                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3641    { (exit 1); exit 1; }; }
3642         fi
3643         ol_enable_valsort="$ol_arg"
3644
3645 else
3646         ol_enable_valsort=${ol_enable_overlays:-no}
3647 fi;
3648 # end --enable-valsort
3649
3650
3651 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3652 if test "${enable_xxliboptions+set}" = set; then
3653   enableval="$enable_xxliboptions"
3654
3655 fi;
3656 # Check whether --enable-static or --disable-static was given.
3657 if test "${enable_static+set}" = set; then
3658   enableval="$enable_static"
3659   p=${PACKAGE-default}
3660     case $enableval in
3661     yes) enable_static=yes ;;
3662     no) enable_static=no ;;
3663     *)
3664      enable_static=no
3665       # Look at the argument we got.  We use all the common list separators.
3666       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667       for pkg in $enableval; do
3668         IFS="$lt_save_ifs"
3669         if test "X$pkg" = "X$p"; then
3670           enable_static=yes
3671         fi
3672       done
3673       IFS="$lt_save_ifs"
3674       ;;
3675     esac
3676 else
3677   enable_static=yes
3678 fi;
3679
3680 # Check whether --enable-shared or --disable-shared was given.
3681 if test "${enable_shared+set}" = set; then
3682   enableval="$enable_shared"
3683   p=${PACKAGE-default}
3684     case $enableval in
3685     yes) enable_shared=yes ;;
3686     no) enable_shared=no ;;
3687     *)
3688       enable_shared=no
3689       # Look at the argument we got.  We use all the common list separators.
3690       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3691       for pkg in $enableval; do
3692         IFS="$lt_save_ifs"
3693         if test "X$pkg" = "X$p"; then
3694           enable_shared=yes
3695         fi
3696       done
3697       IFS="$lt_save_ifs"
3698       ;;
3699     esac
3700 else
3701   enable_shared=yes
3702 fi;
3703
3704
3705
3706 # validate options
3707 if test $ol_enable_slapd = no ; then
3708                 if test $ol_enable_slapi = yes ; then
3709                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3710 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3711         fi
3712         case "$ol_enable_backends" in yes | mod)
3713                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3715         esac
3716         for i in $Backends; do
3717                 eval "ol_tmp=\$ol_enable_$i"
3718                 if test $ol_tmp != no ; then
3719                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3720 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3721                         eval "ol_enable_$i=no"
3722                 fi
3723         done
3724         if test $ol_enable_modules = yes ; then
3725                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3726 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3727         fi
3728         if test $ol_enable_wrappers = yes ; then
3729                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3730 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3731         fi
3732         if test $ol_enable_rlookups = yes ; then
3733                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3734 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3735         fi
3736         if test $ol_enable_dynacl = yes ; then
3737                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3738 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3739         fi
3740         if test $ol_enable_aci != no ; then
3741                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3742 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3743         fi
3744         if test $ol_enable_rewrite = yes ; then
3745                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3746 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3747         fi
3748                 case "$ol_enable_overlays" in yes | mod)
3749                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3750 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3751         esac
3752         for i in $Overlays; do
3753                 eval "ol_tmp=\$ol_enable_$i"
3754                 if test $ol_tmp != no ; then
3755                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3756 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3757                         eval "ol_enable_$i=no"
3758                 fi
3759         done
3760
3761         # force settings to no
3762         ol_enable_slapi=no
3763
3764         ol_enable_backends=
3765         ol_enable_overlays=
3766         ol_enable_modules=no
3767         ol_enable_rlookups=no
3768         ol_enable_dynacl=no
3769         ol_enable_aci=no
3770         ol_enable_wrappers=no
3771
3772         ol_enable_rewrite=no
3773
3774 elif test $ol_enable_modules != yes &&
3775         test $ol_enable_bdb = no &&
3776         test $ol_enable_dnssrv = no &&
3777         test $ol_enable_hdb = no &&
3778         test $ol_enable_ldap = no &&
3779         test $ol_enable_meta = no &&
3780         test $ol_enable_monitor = no &&
3781         test $ol_enable_ndb = no &&
3782         test $ol_enable_null = no &&
3783         test $ol_enable_passwd = no &&
3784         test $ol_enable_perl = no &&
3785         test $ol_enable_relay = no &&
3786         test $ol_enable_shell = no &&
3787         test $ol_enable_sock = no &&
3788         test $ol_enable_sql = no ; then
3789
3790         if test $ol_enable_slapd = yes ; then
3791                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3792 echo "$as_me: error: slapd requires a backend" >&2;}
3793    { (exit 1); exit 1; }; }
3794         else
3795                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3796 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3797                 ol_enable_slapd=no
3798         fi
3799 fi
3800
3801 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3802         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3803 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3804    { (exit 1); exit 1; }; }
3805 fi
3806
3807 if test $ol_enable_lmpasswd = yes ; then
3808         if test $ol_with_tls = no ; then
3809                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3810 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3811    { (exit 1); exit 1; }; }
3812         fi
3813 fi
3814
3815 if test $ol_enable_spasswd = yes ; then
3816         if test $ol_with_cyrus_sasl = no ; then
3817                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3818 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3819    { (exit 1); exit 1; }; }
3820         fi
3821         ol_with_cyrus_sasl=yes
3822 fi
3823
3824 echo "$as_me:$LINENO: result: done" >&5
3825 echo "${ECHO_T}done" >&6
3826
3827 LDAP_LIBS=
3828 BDB_LIBS=
3829 SLAPD_NDB_LIBS=
3830 SLAPD_NDB_INCS=
3831 LTHREAD_LIBS=
3832 LUTIL_LIBS=
3833
3834 SLAPD_LIBS=
3835
3836 BUILD_SLAPD=no
3837
3838 BUILD_THREAD=no
3839
3840 BUILD_SLAPI=no
3841 SLAPD_SLAPI_DEPEND=
3842
3843 BUILD_BDB=no
3844 BUILD_DNSSRV=no
3845 BUILD_HDB=no
3846 BUILD_LDAP=no
3847 BUILD_META=no
3848 BUILD_MONITOR=no
3849 BUILD_NDB=no
3850 BUILD_NULL=no
3851 BUILD_PASSWD=no
3852 BUILD_PERL=no
3853 BUILD_RELAY=no
3854 BUILD_SHELL=no
3855 BUILD_SOCK=no
3856 BUILD_SQL=no
3857
3858 BUILD_ACCESSLOG=no
3859 BUILD_AUDITLOG=no
3860 BUILD_CONSTRAINT=no
3861 BUILD_DDS=no
3862 BUILD_DENYOP=no
3863 BUILD_DYNGROUP=no
3864 BUILD_DYNLIST=no
3865 BUILD_LASTMOD=no
3866 BUILD_MEMBEROF=no
3867 BUILD_PPOLICY=no
3868 BUILD_PROXYCACHE=no
3869 BUILD_REFINT=no
3870 BUILD_RETCODE=no
3871 BUILD_RWM=no
3872 BUILD_SEQMOD=no
3873 BUILD_SYNCPROV=no
3874 BUILD_TRANSLUCENT=no
3875 BUILD_UNIQUE=no
3876 BUILD_VALSORT=no
3877
3878 SLAPD_STATIC_OVERLAYS=
3879 SLAPD_DYNAMIC_OVERLAYS=
3880
3881 SLAPD_MODULES_LDFLAGS=
3882 SLAPD_MODULES_CPPFLAGS=
3883
3884 SLAPD_STATIC_BACKENDS=back-ldif
3885 SLAPD_DYNAMIC_BACKENDS=
3886
3887 SLAPD_PERL_LDFLAGS=
3888 MOD_PERL_LDFLAGS=
3889 PERL_CPPFLAGS=
3890
3891 SLAPD_SQL_LDFLAGS=
3892 SLAPD_SQL_LIBS=
3893 SLAPD_SQL_INCLUDES=
3894
3895 KRB4_LIBS=
3896 KRB5_LIBS=
3897 SASL_LIBS=
3898 GSSAPI_LIBS=
3899 TLS_LIBS=
3900 MODULES_LIBS=
3901 SLAPI_LIBS=
3902 LIBSLAPI=
3903 LIBSLAPITOOLS=
3904 AUTH_LIBS=
3905 ICU_LIBS=
3906
3907 SLAPD_SLP_LIBS=
3908 SLAPD_GMP_LIBS=
3909
3910
3911
3912 cat >>confdefs.h <<\_ACEOF
3913 #define HAVE_MKVERSION 1
3914 _ACEOF
3915
3916
3917
3918
3919 ol_aix_threads=no
3920 case "$target" in
3921 *-*-aix*)       if test -z "$CC" ; then
3922                 case "$ol_with_threads" in
3923                 auto | yes |  posix) ol_aix_threads=yes ;;
3924                 esac
3925         fi
3926 ;;
3927 esac
3928
3929 if test $ol_aix_threads = yes ; then
3930         if test -z "${CC}" ; then
3931                 for ac_prog in cc_r xlc_r cc
3932 do
3933   # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3937 if test "${ac_cv_prog_CC+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   if test -n "$CC"; then
3941   ac_cv_prog_CC="$CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948   for ac_exec_ext in '' $ac_executable_extensions; do
3949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950     ac_cv_prog_CC="$ac_prog"
3951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952     break 2
3953   fi
3954 done
3955 done
3956
3957 fi
3958 fi
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961   echo "$as_me:$LINENO: result: $CC" >&5
3962 echo "${ECHO_T}$CC" >&6
3963 else
3964   echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3966 fi
3967
3968   test -n "$CC" && break
3969 done
3970
3971
3972                 if test "$CC" = cc ; then
3973                                                 if test $ol_with_threads != auto ; then
3974                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3975 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3976    { (exit 1); exit 1; }; }
3977                         else
3978                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3979 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3980                         fi
3981                         ol_with_threads=no
3982                 fi
3983         fi
3984
3985         case ${CC} in cc_r | xlc_r)
3986                 ol_with_threads=posix
3987                 ol_cv_pthread_create=yes
3988                 ;;
3989         esac
3990 fi
3991
3992 if test -z "${CC}"; then
3993         for ac_prog in cc gcc
3994 do
3995   # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3999 if test "${ac_cv_prog_CC+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if test -n "$CC"; then
4003   ac_cv_prog_CC="$CC" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010   for ac_exec_ext in '' $ac_executable_extensions; do
4011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012     ac_cv_prog_CC="$ac_prog"
4013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014     break 2
4015   fi
4016 done
4017 done
4018
4019 fi
4020 fi
4021 CC=$ac_cv_prog_CC
4022 if test -n "$CC"; then
4023   echo "$as_me:$LINENO: result: $CC" >&5
4024 echo "${ECHO_T}$CC" >&6
4025 else
4026   echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4028 fi
4029
4030   test -n "$CC" && break
4031 done
4032 test -n "$CC" || CC="missing"
4033
4034
4035         if test "${CC}" = "missing" ; then
4036                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4037 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4038    { (exit 1); exit 1; }; }
4039         fi
4040 fi
4041
4042 if test -z "${AR}"; then
4043         for ac_prog in ar gar
4044 do
4045   # Extract the first word of "$ac_prog", so it can be a program name with args.
4046 set dummy $ac_prog; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_AR+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   if test -n "$AR"; then
4053   ac_cv_prog_AR="$AR" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060   for ac_exec_ext in '' $ac_executable_extensions; do
4061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062     ac_cv_prog_AR="$ac_prog"
4063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067 done
4068
4069 fi
4070 fi
4071 AR=$ac_cv_prog_AR
4072 if test -n "$AR"; then
4073   echo "$as_me:$LINENO: result: $AR" >&5
4074 echo "${ECHO_T}$AR" >&6
4075 else
4076   echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4078 fi
4079
4080   test -n "$AR" && break
4081 done
4082 test -n "$AR" || AR="missing"
4083
4084
4085         if test "${AR}" = "missing" ; then
4086                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4087 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4088    { (exit 1); exit 1; }; }
4089         fi
4090 fi
4091
4092
4093
4094
4095
4096 # Check whether --enable-fast-install or --disable-fast-install was given.
4097 if test "${enable_fast_install+set}" = set; then
4098   enableval="$enable_fast_install"
4099   p=${PACKAGE-default}
4100     case $enableval in
4101     yes) enable_fast_install=yes ;;
4102     no) enable_fast_install=no ;;
4103     *)
4104       enable_fast_install=no
4105       # Look at the argument we got.  We use all the common list separators.
4106       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4107       for pkg in $enableval; do
4108         IFS="$lt_save_ifs"
4109         if test "X$pkg" = "X$p"; then
4110           enable_fast_install=yes
4111         fi
4112       done
4113       IFS="$lt_save_ifs"
4114       ;;
4115     esac
4116 else
4117   enable_fast_install=yes
4118 fi;
4119
4120 DEPDIR="${am__leading_dot}deps"
4121
4122           ac_config_commands="$ac_config_commands depfiles"
4123
4124
4125 am_make=${MAKE-make}
4126 cat > confinc << 'END'
4127 am__doit:
4128         @echo done
4129 .PHONY: am__doit
4130 END
4131 # If we don't find an include directive, just comment out the code.
4132 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4133 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4134 am__include="#"
4135 am__quote=
4136 _am_result=none
4137 # First try GNU make style include.
4138 echo "include confinc" > confmf
4139 # We grep out `Entering directory' and `Leaving directory'
4140 # messages which can occur if `w' ends up in MAKEFLAGS.
4141 # In particular we don't look at `^make:' because GNU make might
4142 # be invoked under some other name (usually "gmake"), in which
4143 # case it prints its new name instead of `make'.
4144 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4145    am__include=include
4146    am__quote=
4147    _am_result=GNU
4148 fi
4149 # Now try BSD make style include.
4150 if test "$am__include" = "#"; then
4151    echo '.include "confinc"' > confmf
4152    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4153       am__include=.include
4154       am__quote="\""
4155       _am_result=BSD
4156    fi
4157 fi
4158
4159
4160 echo "$as_me:$LINENO: result: $_am_result" >&5
4161 echo "${ECHO_T}$_am_result" >&6
4162 rm -f confinc confmf
4163
4164 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4165 if test "${enable_dependency_tracking+set}" = set; then
4166   enableval="$enable_dependency_tracking"
4167
4168 fi;
4169 if test "x$enable_dependency_tracking" != xno; then
4170   am_depcomp="$ac_aux_dir/depcomp"
4171   AMDEPBACKSLASH='\'
4172 fi
4173
4174
4175 if test "x$enable_dependency_tracking" != xno; then
4176   AMDEP_TRUE=
4177   AMDEP_FALSE='#'
4178 else
4179   AMDEP_TRUE='#'
4180   AMDEP_FALSE=
4181 fi
4182
4183
4184
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 if test -n "$ac_tool_prefix"; then
4191   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4193 echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195 if test "${ac_cv_prog_CC+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   if test -n "$CC"; then
4199   ac_cv_prog_CC="$CC" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206   for ac_exec_ext in '' $ac_executable_extensions; do
4207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213 done
4214
4215 fi
4216 fi
4217 CC=$ac_cv_prog_CC
4218 if test -n "$CC"; then
4219   echo "$as_me:$LINENO: result: $CC" >&5
4220 echo "${ECHO_T}$CC" >&6
4221 else
4222   echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4224 fi
4225
4226 fi
4227 if test -z "$ac_cv_prog_CC"; then
4228   ac_ct_CC=$CC
4229   # Extract the first word of "gcc", so it can be a program name with args.
4230 set dummy gcc; ac_word=$2
4231 echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4234   echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236   if test -n "$ac_ct_CC"; then
4237   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244   for ac_exec_ext in '' $ac_executable_extensions; do
4245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246     ac_cv_prog_ac_ct_CC="gcc"
4247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248     break 2
4249   fi
4250 done
4251 done
4252
4253 fi
4254 fi
4255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4256 if test -n "$ac_ct_CC"; then
4257   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4258 echo "${ECHO_T}$ac_ct_CC" >&6
4259 else
4260   echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4262 fi
4263
4264   CC=$ac_ct_CC
4265 else
4266   CC="$ac_cv_prog_CC"
4267 fi
4268
4269 if test -z "$CC"; then
4270   if test -n "$ac_tool_prefix"; then
4271   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4272 set dummy ${ac_tool_prefix}cc; ac_word=$2
4273 echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4275 if test "${ac_cv_prog_CC+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   if test -n "$CC"; then
4279   ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286   for ac_exec_ext in '' $ac_executable_extensions; do
4287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288     ac_cv_prog_CC="${ac_tool_prefix}cc"
4289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293 done
4294
4295 fi
4296 fi
4297 CC=$ac_cv_prog_CC
4298 if test -n "$CC"; then
4299   echo "$as_me:$LINENO: result: $CC" >&5
4300 echo "${ECHO_T}$CC" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306 fi
4307 if test -z "$ac_cv_prog_CC"; then
4308   ac_ct_CC=$CC
4309   # Extract the first word of "cc", so it can be a program name with args.
4310 set dummy cc; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   if test -n "$ac_ct_CC"; then
4317   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324   for ac_exec_ext in '' $ac_executable_extensions; do
4325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326     ac_cv_prog_ac_ct_CC="cc"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332
4333 fi
4334 fi
4335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4336 if test -n "$ac_ct_CC"; then
4337   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4338 echo "${ECHO_T}$ac_ct_CC" >&6
4339 else
4340   echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6
4342 fi
4343
4344   CC=$ac_ct_CC
4345 else
4346   CC="$ac_cv_prog_CC"
4347 fi
4348
4349 fi
4350 if test -z "$CC"; then
4351   # Extract the first word of "cc", so it can be a program name with args.
4352 set dummy cc; ac_word=$2
4353 echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_prog_CC+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358   if test -n "$CC"; then
4359   ac_cv_prog_CC="$CC" # Let the user override the test.
4360 else
4361   ac_prog_rejected=no
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367   for ac_exec_ext in '' $ac_executable_extensions; do
4368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4370        ac_prog_rejected=yes
4371        continue
4372      fi
4373     ac_cv_prog_CC="cc"
4374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375     break 2
4376   fi
4377 done
4378 done
4379
4380 if test $ac_prog_rejected = yes; then
4381   # We found a bogon in the path, so make sure we never use it.
4382   set dummy $ac_cv_prog_CC
4383   shift
4384   if test $# != 0; then
4385     # We chose a different compiler from the bogus one.
4386     # However, it has the same basename, so the bogon will be chosen
4387     # first if we set CC to just the basename; use the full file name.
4388     shift
4389     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4390   fi
4391 fi
4392 fi
4393 fi
4394 CC=$ac_cv_prog_CC
4395 if test -n "$CC"; then
4396   echo "$as_me:$LINENO: result: $CC" >&5
4397 echo "${ECHO_T}$CC" >&6
4398 else
4399   echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6
4401 fi
4402
4403 fi
4404 if test -z "$CC"; then
4405   if test -n "$ac_tool_prefix"; then
4406   for ac_prog in cl
4407   do
4408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_CC+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   if test -n "$CC"; then
4416   ac_cv_prog_CC="$CC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431
4432 fi
4433 fi
4434 CC=$ac_cv_prog_CC
4435 if test -n "$CC"; then
4436   echo "$as_me:$LINENO: result: $CC" >&5
4437 echo "${ECHO_T}$CC" >&6
4438 else
4439   echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4441 fi
4442
4443     test -n "$CC" && break
4444   done
4445 fi
4446 if test -z "$CC"; then
4447   ac_ct_CC=$CC
4448   for ac_prog in cl
4449 do
4450   # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   if test -n "$ac_ct_CC"; then
4458   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463   IFS=$as_save_IFS
4464   test -z "$as_dir" && as_dir=.
4465   for ac_exec_ext in '' $ac_executable_extensions; do
4466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467     ac_cv_prog_ac_ct_CC="$ac_prog"
4468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469     break 2
4470   fi
4471 done
4472 done
4473
4474 fi
4475 fi
4476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4477 if test -n "$ac_ct_CC"; then
4478   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4479 echo "${ECHO_T}$ac_ct_CC" >&6
4480 else
4481   echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4483 fi
4484
4485   test -n "$ac_ct_CC" && break
4486 done
4487
4488   CC=$ac_ct_CC
4489 fi
4490
4491 fi
4492
4493
4494 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4495 See \`config.log' for more details." >&5
4496 echo "$as_me: error: no acceptable C compiler found in \$PATH
4497 See \`config.log' for more details." >&2;}
4498    { (exit 1); exit 1; }; }
4499
4500 # Provide some information about the compiler.
4501 echo "$as_me:$LINENO:" \
4502      "checking for C compiler version" >&5
4503 ac_compiler=`set X $ac_compile; echo $2`
4504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4505   (eval $ac_compiler --version </dev/null >&5) 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }
4509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4510   (eval $ac_compiler -v </dev/null >&5) 2>&5
4511   ac_status=$?
4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513   (exit $ac_status); }
4514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4515   (eval $ac_compiler -V </dev/null >&5) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); }
4519
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 ac_clean_files_save=$ac_clean_files
4536 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4537 # Try to create an executable without -o first, disregard a.out.
4538 # It will help us diagnose broken compilers, and finding out an intuition
4539 # of exeext.
4540 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4541 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4542 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4543 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4544   (eval $ac_link_default) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; then
4548   # Find the output, starting from the most likely.  This scheme is
4549 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4550 # resort.
4551
4552 # Be careful to initialize this variable, since it used to be cached.
4553 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4554 ac_cv_exeext=
4555 # b.out is created by i960 compilers.
4556 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4557 do
4558   test -f "$ac_file" || continue
4559   case $ac_file in
4560     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4561         ;;
4562     conftest.$ac_ext )
4563         # This is the source file.
4564         ;;
4565     [ab].out )
4566         # We found the default executable, but exeext='' is most
4567         # certainly right.
4568         break;;
4569     *.* )
4570         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4571         # FIXME: I believe we export ac_cv_exeext for Libtool,
4572         # but it would be cool to find out if it's true.  Does anybody
4573         # maintain Libtool? --akim.
4574         export ac_cv_exeext
4575         break;;
4576     * )
4577         break;;
4578   esac
4579 done
4580 else
4581   echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4585 See \`config.log' for more details." >&5
4586 echo "$as_me: error: C compiler cannot create executables
4587 See \`config.log' for more details." >&2;}
4588    { (exit 77); exit 77; }; }
4589 fi
4590
4591 ac_exeext=$ac_cv_exeext
4592 echo "$as_me:$LINENO: result: $ac_file" >&5
4593 echo "${ECHO_T}$ac_file" >&6
4594
4595 # Check the compiler produces executables we can run.  If not, either
4596 # the compiler is broken, or we cross compile.
4597 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4598 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4599 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4600 # If not cross compiling, check that we can run a simple program.
4601 if test "$cross_compiling" != yes; then
4602   if { ac_try='./$ac_file'
4603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604   (eval $ac_try) 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); }; }; then
4608     cross_compiling=no
4609   else
4610     if test "$cross_compiling" = maybe; then
4611         cross_compiling=yes
4612     else
4613         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4614 If you meant to cross compile, use \`--host'.
4615 See \`config.log' for more details." >&5
4616 echo "$as_me: error: cannot run C compiled programs.
4617 If you meant to cross compile, use \`--host'.
4618 See \`config.log' for more details." >&2;}
4619    { (exit 1); exit 1; }; }
4620     fi
4621   fi
4622 fi
4623 echo "$as_me:$LINENO: result: yes" >&5
4624 echo "${ECHO_T}yes" >&6
4625
4626 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4627 ac_clean_files=$ac_clean_files_save
4628 # Check the compiler produces executables we can run.  If not, either
4629 # the compiler is broken, or we cross compile.
4630 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4632 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4633 echo "${ECHO_T}$cross_compiling" >&6
4634
4635 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4636 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638   (eval $ac_link) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; then
4642   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4643 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4644 # work properly (i.e., refer to `conftest.exe'), while it won't with
4645 # `rm'.
4646 for ac_file in conftest.exe conftest conftest.*; do
4647   test -f "$ac_file" || continue
4648   case $ac_file in
4649     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4650     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4651           export ac_cv_exeext
4652           break;;
4653     * ) break;;
4654   esac
4655 done
4656 else
4657   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4660 See \`config.log' for more details." >&2;}
4661    { (exit 1); exit 1; }; }
4662 fi
4663
4664 rm -f conftest$ac_cv_exeext
4665 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4666 echo "${ECHO_T}$ac_cv_exeext" >&6
4667
4668 rm -f conftest.$ac_ext
4669 EXEEXT=$ac_cv_exeext
4670 ac_exeext=$EXEEXT
4671 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4672 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4673 if test "${ac_cv_objext+set}" = set; then
4674   echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676   cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h.  */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h.  */
4682
4683 int
4684 main ()
4685 {
4686
4687   ;
4688   return 0;
4689 }
4690 _ACEOF
4691 rm -f conftest.o conftest.obj
4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693   (eval $ac_compile) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; then
4697   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4698   case $ac_file in
4699     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4700     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4701        break;;
4702   esac
4703 done
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4711 See \`config.log' for more details." >&2;}
4712    { (exit 1); exit 1; }; }
4713 fi
4714
4715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4716 fi
4717 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4718 echo "${ECHO_T}$ac_cv_objext" >&6
4719 OBJEXT=$ac_cv_objext
4720 ac_objext=$OBJEXT
4721 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h.  */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h.  */
4732
4733 int
4734 main ()
4735 {
4736 #ifndef __GNUC__
4737        choke me
4738 #endif
4739
4740   ;
4741   return 0;
4742 }
4743 _ACEOF
4744 rm -f conftest.$ac_objext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746   (eval $ac_compile) 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } &&
4753          { ac_try='test -z "$ac_c_werror_flag"
4754                          || test ! -s conftest.err'
4755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756   (eval $ac_try) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; } &&
4760          { ac_try='test -s conftest.$ac_objext'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   ac_compiler_gnu=yes
4767 else
4768   echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 ac_compiler_gnu=no
4772 fi
4773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4775
4776 fi
4777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4779 GCC=`test $ac_compiler_gnu = yes && echo yes`
4780 ac_test_CFLAGS=${CFLAGS+set}
4781 ac_save_CFLAGS=$CFLAGS
4782 CFLAGS="-g"
4783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4785 if test "${ac_cv_prog_cc_g+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   cat >conftest.$ac_ext <<_ACEOF
4789 /* confdefs.h.  */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h.  */
4794
4795 int
4796 main ()
4797 {
4798
4799   ;
4800   return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805   (eval $ac_compile) 2>conftest.er1
4806   ac_status=$?
4807   grep -v '^ *+' conftest.er1 >conftest.err
4808   rm -f conftest.er1
4809   cat conftest.err >&5
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); } &&
4812          { ac_try='test -z "$ac_c_werror_flag"
4813                          || test ! -s conftest.err'
4814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815   (eval $ac_try) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); }; } &&
4819          { ac_try='test -s conftest.$ac_objext'
4820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821   (eval $ac_try) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; }; then
4825   ac_cv_prog_cc_g=yes
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 ac_cv_prog_cc_g=no
4831 fi
4832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 fi
4834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4836 if test "$ac_test_CFLAGS" = set; then
4837   CFLAGS=$ac_save_CFLAGS
4838 elif test $ac_cv_prog_cc_g = yes; then
4839   if test "$GCC" = yes; then
4840     CFLAGS="-g -O2"
4841   else
4842     CFLAGS="-g"
4843   fi
4844 else
4845   if test "$GCC" = yes; then
4846     CFLAGS="-O2"
4847   else
4848     CFLAGS=
4849   fi
4850 fi
4851 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4852 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4853 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   ac_cv_prog_cc_stdc=no
4857 ac_save_CC=$CC
4858 cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h.  */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h.  */
4864 #include <stdarg.h>
4865 #include <stdio.h>
4866 #include <sys/types.h>
4867 #include <sys/stat.h>
4868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4869 struct buf { int x; };
4870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871 static char *e (p, i)
4872      char **p;
4873      int i;
4874 {
4875   return p[i];
4876 }
4877 static char *f (char * (*g) (char **, int), char **p, ...)
4878 {
4879   char *s;
4880   va_list v;
4881   va_start (v,p);
4882   s = g (p, va_arg (v,int));
4883   va_end (v);
4884   return s;
4885 }
4886
4887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4888    function prototypes and stuff, but not '\xHH' hex character constants.
4889    These don't provoke an error unfortunately, instead are silently treated
4890    as 'x'.  The following induces an error, until -std1 is added to get
4891    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4892    array size at least.  It's necessary to write '\x00'==0 to get something
4893    that's true only with -std1.  */
4894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4895
4896 int test (int i, double x);
4897 struct s1 {int (*f) (int a);};
4898 struct s2 {int (*f) (double a);};
4899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4900 int argc;
4901 char **argv;
4902 int
4903 main ()
4904 {
4905 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4906   ;
4907   return 0;
4908 }
4909 _ACEOF
4910 # Don't try gcc -ansi; that turns off useful extensions and
4911 # breaks some systems' header files.
4912 # AIX                   -qlanglvl=ansi
4913 # Ultrix and OSF/1      -std1
4914 # HP-UX 10.20 and later -Ae
4915 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4916 # SVR4                  -Xc -D__EXTENSIONS__
4917 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4918 do
4919   CC="$ac_save_CC $ac_arg"
4920   rm -f conftest.$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922   (eval $ac_compile) 2>conftest.er1
4923   ac_status=$?
4924   grep -v '^ *+' conftest.er1 >conftest.err
4925   rm -f conftest.er1
4926   cat conftest.err >&5
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); } &&
4929          { ac_try='test -z "$ac_c_werror_flag"
4930                          || test ! -s conftest.err'
4931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932   (eval $ac_try) 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); }; } &&
4936          { ac_try='test -s conftest.$ac_objext'
4937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938   (eval $ac_try) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; }; then
4942   ac_cv_prog_cc_stdc=$ac_arg
4943 break
4944 else
4945   echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 fi
4949 rm -f conftest.err conftest.$ac_objext
4950 done
4951 rm -f conftest.$ac_ext conftest.$ac_objext
4952 CC=$ac_save_CC
4953
4954 fi
4955
4956 case "x$ac_cv_prog_cc_stdc" in
4957   x|xno)
4958     echo "$as_me:$LINENO: result: none needed" >&5
4959 echo "${ECHO_T}none needed" >&6 ;;
4960   *)
4961     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4962 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4963     CC="$CC $ac_cv_prog_cc_stdc" ;;
4964 esac
4965
4966 # Some people use a C++ compiler to compile C.  Since we use `exit',
4967 # in C++ we need to declare it.  In case someone uses the same compiler
4968 # for both compiling C and C++ we need to have the C++ compiler decide
4969 # the declaration of exit, since it's the most demanding environment.
4970 cat >conftest.$ac_ext <<_ACEOF
4971 #ifndef __cplusplus
4972   choke me
4973 #endif
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977   (eval $ac_compile) 2>conftest.er1
4978   ac_status=$?
4979   grep -v '^ *+' conftest.er1 >conftest.err
4980   rm -f conftest.er1
4981   cat conftest.err >&5
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); } &&
4984          { ac_try='test -z "$ac_c_werror_flag"
4985                          || test ! -s conftest.err'
4986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987   (eval $ac_try) 2>&5
4988   ac_status=$?
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); }; } &&
4991          { ac_try='test -s conftest.$ac_objext'
4992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993   (eval $ac_try) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; }; then
4997   for ac_declaration in \
4998    '' \
4999    'extern "C" void std::exit (int) throw (); using std::exit;' \
5000    'extern "C" void std::exit (int); using std::exit;' \
5001    'extern "C" void exit (int) throw ();' \
5002    'extern "C" void exit (int);' \
5003    'void exit (int);'
5004 do
5005   cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h.  */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h.  */
5011 $ac_declaration
5012 #include <stdlib.h>
5013 int
5014 main ()
5015 {
5016 exit (42);
5017   ;
5018   return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023   (eval $ac_compile) 2>conftest.er1
5024   ac_status=$?
5025   grep -v '^ *+' conftest.er1 >conftest.err
5026   rm -f conftest.er1
5027   cat conftest.err >&5
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); } &&
5030          { ac_try='test -z "$ac_c_werror_flag"
5031                          || test ! -s conftest.err'
5032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033   (eval $ac_try) 2>&5
5034   ac_status=$?
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); }; } &&
5037          { ac_try='test -s conftest.$ac_objext'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; }; then
5043   :
5044 else
5045   echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 continue
5049 fi
5050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5051   cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 $ac_declaration
5058 int
5059 main ()
5060 {
5061 exit (42);
5062   ;
5063   return 0;
5064 }
5065 _ACEOF
5066 rm -f conftest.$ac_objext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068   (eval $ac_compile) 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } &&
5075          { ac_try='test -z "$ac_c_werror_flag"
5076                          || test ! -s conftest.err'
5077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078   (eval $ac_try) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); }; } &&
5082          { ac_try='test -s conftest.$ac_objext'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; }; then
5088   break
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 fi
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 done
5096 rm -f conftest*
5097 if test -n "$ac_declaration"; then
5098   echo '#ifdef __cplusplus' >>confdefs.h
5099   echo $ac_declaration      >>confdefs.h
5100   echo '#endif'             >>confdefs.h
5101 fi
5102
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 fi
5108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5109 ac_ext=c
5110 ac_cpp='$CPP $CPPFLAGS'
5111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115 depcc="$CC"   am_compiler_list=
5116
5117 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5118 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5119 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5120   echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5123   # We make a subdir and do the tests there.  Otherwise we can end up
5124   # making bogus files that we don't know about and never remove.  For
5125   # instance it was reported that on HP-UX the gcc test will end up
5126   # making a dummy file named `D' -- because `-MD' means `put the output
5127   # in D'.
5128   mkdir conftest.dir
5129   # Copy depcomp to subdir because otherwise we won't find it if we're
5130   # using a relative directory.
5131   cp "$am_depcomp" conftest.dir
5132   cd conftest.dir
5133   # We will build objects and dependencies in a subdirectory because
5134   # it helps to detect inapplicable dependency modes.  For instance
5135   # both Tru64's cc and ICC support -MD to output dependencies as a
5136   # side effect of compilation, but ICC will put the dependencies in
5137   # the current directory while Tru64 will put them in the object
5138   # directory.
5139   mkdir sub
5140
5141   am_cv_CC_dependencies_compiler_type=none
5142   if test "$am_compiler_list" = ""; then
5143      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5144   fi
5145   for depmode in $am_compiler_list; do
5146     # Setup a source with many dependencies, because some compilers
5147     # like to wrap large dependency lists on column 80 (with \), and
5148     # we should not choose a depcomp mode which is confused by this.
5149     #
5150     # We need to recreate these files for each test, as the compiler may
5151     # overwrite some of them when testing with obscure command lines.
5152     # This happens at least with the AIX C compiler.
5153     : > sub/conftest.c
5154     for i in 1 2 3 4 5 6; do
5155       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5156       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5157       # Solaris 8's {/usr,}/bin/sh.
5158       touch sub/conftst$i.h
5159     done
5160     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5161
5162     case $depmode in
5163     nosideeffect)
5164       # after this tag, mechanisms are not by side-effect, so they'll
5165       # only be used when explicitly requested
5166       if test "x$enable_dependency_tracking" = xyes; then
5167         continue
5168       else
5169         break
5170       fi
5171       ;;
5172     none) break ;;
5173     esac
5174     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5175     # mode.  It turns out that the SunPro C++ compiler does not properly
5176     # handle `-M -o', and we need to detect this.
5177     if depmode=$depmode \
5178        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5179        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5180        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5181          >/dev/null 2>conftest.err &&
5182        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5183        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5184        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5185       # icc doesn't choke on unknown options, it will just issue warnings
5186       # or remarks (even with -Werror).  So we grep stderr for any message
5187       # that says an option was ignored or not supported.
5188       # When given -MP, icc 7.0 and 7.1 complain thusly:
5189       #   icc: Command line warning: ignoring option '-M'; no argument required
5190       # The diagnosis changed in icc 8.0:
5191       #   icc: Command line remark: option '-MP' not supported
5192       if (grep 'ignoring option' conftest.err ||
5193           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5194         am_cv_CC_dependencies_compiler_type=$depmode
5195         break
5196       fi
5197     fi
5198   done
5199
5200   cd ..
5201   rm -rf conftest.dir
5202 else
5203   am_cv_CC_dependencies_compiler_type=none
5204 fi
5205
5206 fi
5207 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5208 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5209 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5210
5211
5212
5213 if
5214   test "x$enable_dependency_tracking" != xno \
5215   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5216   am__fastdepCC_TRUE=
5217   am__fastdepCC_FALSE='#'
5218 else
5219   am__fastdepCC_TRUE='#'
5220   am__fastdepCC_FALSE=
5221 fi
5222
5223
5224 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5225 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5226 if test "${lt_cv_path_SED+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   # Loop through the user's path and test for sed and gsed.
5230 # Then use that list of sed's as ones to test for truncation.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for lt_ac_prog in sed gsed; do
5237     for ac_exec_ext in '' $ac_executable_extensions; do
5238       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5239         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5240       fi
5241     done
5242   done
5243 done
5244 lt_ac_max=0
5245 lt_ac_count=0
5246 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5247 # along with /bin/sed that truncates output.
5248 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5249   test ! -f $lt_ac_sed && continue
5250   cat /dev/null > conftest.in
5251   lt_ac_count=0
5252   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5253   # Check for GNU sed and select it if it is found.
5254   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5255     lt_cv_path_SED=$lt_ac_sed
5256     break
5257   fi
5258   while true; do
5259     cat conftest.in conftest.in >conftest.tmp
5260     mv conftest.tmp conftest.in
5261     cp conftest.in conftest.nl
5262     echo >>conftest.nl
5263     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5264     cmp -s conftest.out conftest.nl || break
5265     # 10000 chars as input seems more than enough
5266     test $lt_ac_count -gt 10 && break
5267     lt_ac_count=`expr $lt_ac_count + 1`
5268     if test $lt_ac_count -gt $lt_ac_max; then
5269       lt_ac_max=$lt_ac_count
5270       lt_cv_path_SED=$lt_ac_sed
5271     fi
5272   done
5273 done
5274
5275 fi
5276
5277 SED=$lt_cv_path_SED
5278 echo "$as_me:$LINENO: result: $SED" >&5
5279 echo "${ECHO_T}$SED" >&6
5280
5281 echo "$as_me:$LINENO: checking for egrep" >&5
5282 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5283 if test "${ac_cv_prog_egrep+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5287     then ac_cv_prog_egrep='grep -E'
5288     else ac_cv_prog_egrep='egrep'
5289     fi
5290 fi
5291 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5292 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5293  EGREP=$ac_cv_prog_egrep
5294
5295
5296
5297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5298 if test "${with_gnu_ld+set}" = set; then
5299   withval="$with_gnu_ld"
5300   test "$withval" = no || with_gnu_ld=yes
5301 else
5302   with_gnu_ld=no
5303 fi;
5304 ac_prog=ld
5305 if test "$GCC" = yes; then
5306   # Check if gcc -print-prog-name=ld gives a path.
5307   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5308 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5309   case $host in
5310   *-*-mingw*)
5311     # gcc leaves a trailing carriage return which upsets mingw
5312     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5313   *)
5314     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5315   esac
5316   case $ac_prog in
5317     # Accept absolute paths.
5318     [\\/]* | ?:[\\/]*)
5319       re_direlt='/[^/][^/]*/\.\./'
5320       # Canonicalize the pathname of ld
5321       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5322       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5323         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5324       done
5325       test -z "$LD" && LD="$ac_prog"
5326       ;;
5327   "")
5328     # If it fails, then pretend we aren't using GCC.
5329     ac_prog=ld
5330     ;;
5331   *)
5332     # If it is relative, then search for the first ld in PATH.
5333     with_gnu_ld=unknown
5334     ;;
5335   esac
5336 elif test "$with_gnu_ld" = yes; then
5337   echo "$as_me:$LINENO: checking for GNU ld" >&5
5338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5339 else
5340   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5342 fi
5343 if test "${lt_cv_path_LD+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   if test -z "$LD"; then
5347   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5348   for ac_dir in $PATH; do
5349     IFS="$lt_save_ifs"
5350     test -z "$ac_dir" && ac_dir=.
5351     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5352       lt_cv_path_LD="$ac_dir/$ac_prog"
5353       # Check to see if the program is GNU ld.  I'd rather use --version,
5354       # but apparently some variants of GNU ld only accept -v.
5355       # Break only if it was the GNU/non-GNU ld that we prefer.
5356       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5357       *GNU* | *'with BFD'*)
5358         test "$with_gnu_ld" != no && break
5359         ;;
5360       *)
5361         test "$with_gnu_ld" != yes && break
5362         ;;
5363       esac
5364     fi
5365   done
5366   IFS="$lt_save_ifs"
5367 else
5368   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5369 fi
5370 fi
5371
5372 LD="$lt_cv_path_LD"
5373 if test -n "$LD"; then
5374   echo "$as_me:$LINENO: result: $LD" >&5
5375 echo "${ECHO_T}$LD" >&6
5376 else
5377   echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5379 fi
5380 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5381 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5382    { (exit 1); exit 1; }; }
5383 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5384 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5385 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5389 case `$LD -v 2>&1 </dev/null` in
5390 *GNU* | *'with BFD'*)
5391   lt_cv_prog_gnu_ld=yes
5392   ;;
5393 *)
5394   lt_cv_prog_gnu_ld=no
5395   ;;
5396 esac
5397 fi
5398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5400 with_gnu_ld=$lt_cv_prog_gnu_ld
5401
5402
5403 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5404 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5405 if test "${lt_cv_ld_reload_flag+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   lt_cv_ld_reload_flag='-r'
5409 fi
5410 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5411 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5412 reload_flag=$lt_cv_ld_reload_flag
5413 case $reload_flag in
5414 "" | " "*) ;;
5415 *) reload_flag=" $reload_flag" ;;
5416 esac
5417 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5418 case $host_os in
5419   darwin*)
5420     if test "$GCC" = yes; then
5421       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5422     else
5423       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5424     fi
5425     ;;
5426 esac
5427
5428 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5429 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5430 if test "${lt_cv_path_NM+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   if test -n "$NM"; then
5434   # Let the user override the test.
5435   lt_cv_path_NM="$NM"
5436 else
5437   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5438   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5439     IFS="$lt_save_ifs"
5440     test -z "$ac_dir" && ac_dir=.
5441     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5442     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5443       # Check to see if the nm accepts a BSD-compat flag.
5444       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5445       #   nm: unknown option "B" ignored
5446       # Tru64's nm complains that /dev/null is an invalid object file
5447       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5448       */dev/null* | *'Invalid file or object type'*)
5449         lt_cv_path_NM="$tmp_nm -B"
5450         break
5451         ;;
5452       *)
5453         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5454         */dev/null*)
5455           lt_cv_path_NM="$tmp_nm -p"
5456           break
5457           ;;
5458         *)
5459           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5460           continue # so that we can try to find one that supports BSD flags
5461           ;;
5462         esac
5463       esac
5464     fi
5465   done
5466   IFS="$lt_save_ifs"
5467   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5468 fi
5469 fi
5470 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5471 echo "${ECHO_T}$lt_cv_path_NM" >&6
5472 NM="$lt_cv_path_NM"
5473
5474 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5475 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5476 LN_S=$as_ln_s
5477 if test "$LN_S" = "ln -s"; then
5478   echo "$as_me:$LINENO: result: yes" >&5
5479 echo "${ECHO_T}yes" >&6
5480 else
5481   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5482 echo "${ECHO_T}no, using $LN_S" >&6
5483 fi
5484
5485 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5486 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5487 if test "${lt_cv_deplibs_check_method+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   lt_cv_file_magic_cmd='$MAGIC_CMD'
5491 lt_cv_file_magic_test_file=
5492 lt_cv_deplibs_check_method='unknown'
5493 # Need to set the preceding variable on all platforms that support
5494 # interlibrary dependencies.
5495 # 'none' -- dependencies not supported.
5496 # `unknown' -- same as none, but documents that we really don't know.
5497 # 'pass_all' -- all dependencies passed with no checks.
5498 # 'test_compile' -- check by making test program.
5499 # 'file_magic [[regex]]' -- check by looking for files in library path
5500 # which responds to the $file_magic_cmd with a given extended regex.
5501 # If you have `file' or equivalent on your system and you're not sure
5502 # whether `pass_all' will *always* work, you probably want this one.
5503
5504 case $host_os in
5505 aix4* | aix5*)
5506   lt_cv_deplibs_check_method=pass_all
5507   ;;
5508
5509 beos*)
5510   lt_cv_deplibs_check_method=pass_all
5511   ;;
5512
5513 bsdi[45]*)
5514   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5515   lt_cv_file_magic_cmd='/usr/bin/file -L'
5516   lt_cv_file_magic_test_file=/shlib/libc.so
5517   ;;
5518
5519 cygwin*)
5520   # func_win32_libid is a shell function defined in ltmain.sh
5521   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5522   lt_cv_file_magic_cmd='func_win32_libid'
5523   ;;
5524
5525 mingw* | pw32*)
5526   # Base MSYS/MinGW do not provide the 'file' command needed by
5527   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5528   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5529   lt_cv_file_magic_cmd='$OBJDUMP -f'
5530   ;;
5531
5532 darwin* | rhapsody*)
5533   lt_cv_deplibs_check_method=pass_all
5534   ;;
5535
5536 freebsd* | kfreebsd*-gnu | dragonfly*)
5537   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5538     case $host_cpu in
5539     i*86 )
5540       # Not sure whether the presence of OpenBSD here was a mistake.
5541       # Let's accept both of them until this is cleared up.
5542       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5543       lt_cv_file_magic_cmd=/usr/bin/file
5544       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5545       ;;
5546     esac
5547   else
5548     lt_cv_deplibs_check_method=pass_all
5549   fi
5550   ;;
5551
5552 gnu*)
5553   lt_cv_deplibs_check_method=pass_all
5554   ;;
5555
5556 hpux10.20* | hpux11*)
5557   lt_cv_file_magic_cmd=/usr/bin/file
5558   case $host_cpu in
5559   ia64*)
5560     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5561     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5562     ;;
5563   hppa*64*)
5564     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]'
5565     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5566     ;;
5567   *)
5568     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5569     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5570     ;;
5571   esac
5572   ;;
5573
5574 irix5* | irix6* | nonstopux*)
5575   case $LD in
5576   *-32|*"-32 ") libmagic=32-bit;;
5577   *-n32|*"-n32 ") libmagic=N32;;
5578   *-64|*"-64 ") libmagic=64-bit;;
5579   *) libmagic=never-match;;
5580   esac
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583
5584 # This must be Linux ELF.
5585 linux*)
5586   lt_cv_deplibs_check_method=pass_all
5587   ;;
5588
5589 netbsd*)
5590   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5591     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5592   else
5593     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5594   fi
5595   ;;
5596
5597 newos6*)
5598   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5599   lt_cv_file_magic_cmd=/usr/bin/file
5600   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5601   ;;
5602
5603 nto-qnx*)
5604   lt_cv_deplibs_check_method=unknown
5605   ;;
5606
5607 openbsd*)
5608   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5609     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5610   else
5611     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5612   fi
5613   ;;
5614
5615 osf3* | osf4* | osf5*)
5616   lt_cv_deplibs_check_method=pass_all
5617   ;;
5618
5619 sco3.2v5*)
5620   lt_cv_deplibs_check_method=pass_all
5621   ;;
5622
5623 solaris*)
5624   lt_cv_deplibs_check_method=pass_all
5625   ;;
5626
5627 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5628   case $host_vendor in
5629   motorola)
5630     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]'
5631     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5632     ;;
5633   ncr)
5634     lt_cv_deplibs_check_method=pass_all
5635     ;;
5636   sequent)
5637     lt_cv_file_magic_cmd='/bin/file'
5638     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5639     ;;
5640   sni)
5641     lt_cv_file_magic_cmd='/bin/file'
5642     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5643     lt_cv_file_magic_test_file=/lib/libc.so
5644     ;;
5645   siemens)
5646     lt_cv_deplibs_check_method=pass_all
5647     ;;
5648   esac
5649   ;;
5650
5651 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654 esac
5655
5656 fi
5657 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5658 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5659 file_magic_cmd=$lt_cv_file_magic_cmd
5660 deplibs_check_method=$lt_cv_deplibs_check_method
5661 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5662
5663
5664
5665
5666 # If no C compiler was specified, use CC.
5667 LTCC=${LTCC-"$CC"}
5668
5669 # Allow CC to be a program name with arguments.
5670 compiler=$CC
5671
5672
5673 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5674 if test "${enable_libtool_lock+set}" = set; then
5675   enableval="$enable_libtool_lock"
5676
5677 fi;
5678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5679
5680 # Some flags need to be propagated to the compiler or linker for good
5681 # libtool support.
5682 case $host in
5683 ia64-*-hpux*)
5684   # Find out which ABI we are using.
5685   echo 'int i;' > conftest.$ac_ext
5686   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687   (eval $ac_compile) 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; then
5691     case `/usr/bin/file conftest.$ac_objext` in
5692     *ELF-32*)
5693       HPUX_IA64_MODE="32"
5694       ;;
5695     *ELF-64*)
5696       HPUX_IA64_MODE="64"
5697       ;;
5698     esac
5699   fi
5700   rm -rf conftest*
5701   ;;
5702 *-*-irix6*)
5703   # Find out which ABI we are using.
5704   echo '#line 5704 "configure"' > conftest.$ac_ext
5705   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706   (eval $ac_compile) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; then
5710    if test "$lt_cv_prog_gnu_ld" = yes; then
5711     case `/usr/bin/file conftest.$ac_objext` in
5712     *32-bit*)
5713       LD="${LD-ld} -melf32bsmip"
5714       ;;
5715     *N32*)
5716       LD="${LD-ld} -melf32bmipn32"
5717       ;;
5718     *64-bit*)
5719       LD="${LD-ld} -melf64bmip"
5720       ;;
5721     esac
5722    else
5723     case `/usr/bin/file conftest.$ac_objext` in
5724     *32-bit*)
5725       LD="${LD-ld} -32"
5726       ;;
5727     *N32*)
5728       LD="${LD-ld} -n32"
5729       ;;
5730     *64-bit*)
5731       LD="${LD-ld} -64"
5732       ;;
5733     esac
5734    fi
5735   fi
5736   rm -rf conftest*
5737   ;;
5738
5739 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5740   # Find out which ABI we are using.
5741   echo 'int i;' > conftest.$ac_ext
5742   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5743   (eval $ac_compile) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); }; then
5747     case `/usr/bin/file conftest.o` in
5748     *32-bit*)
5749       case $host in
5750         x86_64-*linux*)
5751           LD="${LD-ld} -m elf_i386"
5752           ;;
5753         ppc64-*linux*|powerpc64-*linux*)
5754           LD="${LD-ld} -m elf32ppclinux"
5755           ;;
5756         s390x-*linux*)
5757           LD="${LD-ld} -m elf_s390"
5758           ;;
5759         sparc64-*linux*)
5760           LD="${LD-ld} -m elf32_sparc"
5761           ;;
5762       esac
5763       ;;
5764     *64-bit*)
5765       case $host in
5766         x86_64-*linux*)
5767           LD="${LD-ld} -m elf_x86_64"
5768           ;;
5769         ppc*-*linux*|powerpc*-*linux*)
5770           LD="${LD-ld} -m elf64ppc"
5771           ;;
5772         s390*-*linux*)
5773           LD="${LD-ld} -m elf64_s390"
5774           ;;
5775         sparc*-*linux*)
5776           LD="${LD-ld} -m elf64_sparc"
5777           ;;
5778       esac
5779       ;;
5780     esac
5781   fi
5782   rm -rf conftest*
5783   ;;
5784
5785 *-*-sco3.2v5*)
5786   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5787   SAVE_CFLAGS="$CFLAGS"
5788   CFLAGS="$CFLAGS -belf"
5789   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5790 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5791 if test "${lt_cv_cc_needs_belf+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   ac_ext=c
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799
5800      cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806
5807 int
5808 main ()
5809 {
5810
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext conftest$ac_exeext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5817   (eval $ac_link) 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } &&
5824          { ac_try='test -z "$ac_c_werror_flag"
5825                          || test ! -s conftest.err'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; } &&
5831          { ac_try='test -s conftest$ac_exeext'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; }; then
5837   lt_cv_cc_needs_belf=yes
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 lt_cv_cc_needs_belf=no
5843 fi
5844 rm -f conftest.err conftest.$ac_objext \
5845       conftest$ac_exeext conftest.$ac_ext
5846      ac_ext=c
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5851
5852 fi
5853 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5854 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5855   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5856     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5857     CFLAGS="$SAVE_CFLAGS"
5858   fi
5859   ;;
5860 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5861   if test -n "$ac_tool_prefix"; then
5862   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5864 echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5866 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$DLLTOOL"; then
5870   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885
5886 fi
5887 fi
5888 DLLTOOL=$ac_cv_prog_DLLTOOL
5889 if test -n "$DLLTOOL"; then
5890   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5891 echo "${ECHO_T}$DLLTOOL" >&6
5892 else
5893   echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5895 fi
5896
5897 fi
5898 if test -z "$ac_cv_prog_DLLTOOL"; then
5899   ac_ct_DLLTOOL=$DLLTOOL
5900   # Extract the first word of "dlltool", so it can be a program name with args.
5901 set dummy dlltool; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   if test -n "$ac_ct_DLLTOOL"; then
5908   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_exec_ext in '' $ac_executable_extensions; do
5916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922 done
5923
5924   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5925 fi
5926 fi
5927 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5928 if test -n "$ac_ct_DLLTOOL"; then
5929   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5930 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5931 else
5932   echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5934 fi
5935
5936   DLLTOOL=$ac_ct_DLLTOOL
5937 else
5938   DLLTOOL="$ac_cv_prog_DLLTOOL"
5939 fi
5940
5941   if test -n "$ac_tool_prefix"; then
5942   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}as; ac_word=$2
5944 echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5946 if test "${ac_cv_prog_AS+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   if test -n "$AS"; then
5950   ac_cv_prog_AS="$AS" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957   for ac_exec_ext in '' $ac_executable_extensions; do
5958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959     ac_cv_prog_AS="${ac_tool_prefix}as"
5960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964 done
5965
5966 fi
5967 fi
5968 AS=$ac_cv_prog_AS
5969 if test -n "$AS"; then
5970   echo "$as_me:$LINENO: result: $AS" >&5
5971 echo "${ECHO_T}$AS" >&6
5972 else
5973   echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5975 fi
5976
5977 fi
5978 if test -z "$ac_cv_prog_AS"; then
5979   ac_ct_AS=$AS
5980   # Extract the first word of "as", so it can be a program name with args.
5981 set dummy as; ac_word=$2
5982 echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5984 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   if test -n "$ac_ct_AS"; then
5988   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_exec_ext in '' $ac_executable_extensions; do
5996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997     ac_cv_prog_ac_ct_AS="as"
5998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002 done
6003
6004   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6005 fi
6006 fi
6007 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6008 if test -n "$ac_ct_AS"; then
6009   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6010 echo "${ECHO_T}$ac_ct_AS" >&6
6011 else
6012   echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6
6014 fi
6015
6016   AS=$ac_ct_AS
6017 else
6018   AS="$ac_cv_prog_AS"
6019 fi
6020
6021   if test -n "$ac_tool_prefix"; then
6022   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6024 echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6026 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   if test -n "$OBJDUMP"; then
6030   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035   IFS=$as_save_IFS
6036   test -z "$as_dir" && as_dir=.
6037   for ac_exec_ext in '' $ac_executable_extensions; do
6038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041     break 2
6042   fi
6043 done
6044 done
6045
6046 fi
6047 fi
6048 OBJDUMP=$ac_cv_prog_OBJDUMP
6049 if test -n "$OBJDUMP"; then
6050   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6051 echo "${ECHO_T}$OBJDUMP" >&6
6052 else
6053   echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6055 fi
6056
6057 fi
6058 if test -z "$ac_cv_prog_OBJDUMP"; then
6059   ac_ct_OBJDUMP=$OBJDUMP
6060   # Extract the first word of "objdump", so it can be a program name with args.
6061 set dummy objdump; ac_word=$2
6062 echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6064 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6065   echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067   if test -n "$ac_ct_OBJDUMP"; then
6068   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073   IFS=$as_save_IFS
6074   test -z "$as_dir" && as_dir=.
6075   for ac_exec_ext in '' $ac_executable_extensions; do
6076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079     break 2
6080   fi
6081 done
6082 done
6083
6084   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6085 fi
6086 fi
6087 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6088 if test -n "$ac_ct_OBJDUMP"; then
6089   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6090 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6091 else
6092   echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6
6094 fi
6095
6096   OBJDUMP=$ac_ct_OBJDUMP
6097 else
6098   OBJDUMP="$ac_cv_prog_OBJDUMP"
6099 fi
6100
6101   ;;
6102
6103 esac
6104
6105 need_locks="$enable_libtool_lock"
6106
6107
6108 ac_ext=c
6109 ac_cpp='$CPP $CPPFLAGS'
6110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6113 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6114 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6115 # On Suns, sometimes $CPP names a directory.
6116 if test -n "$CPP" && test -d "$CPP"; then
6117   CPP=
6118 fi
6119 if test -z "$CPP"; then
6120   if test "${ac_cv_prog_CPP+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123       # Double quotes because CPP needs to be expanded
6124     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6125     do
6126       ac_preproc_ok=false
6127 for ac_c_preproc_warn_flag in '' yes
6128 do
6129   # Use a header file that comes with gcc, so configuring glibc
6130   # with a fresh cross-compiler works.
6131   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6132   # <limits.h> exists even on freestanding compilers.
6133   # On the NeXT, cc -E runs the code through the compiler's parser,
6134   # not just through cpp. "Syntax error" is here to catch this case.
6135   cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141 #ifdef __STDC__
6142 # include <limits.h>
6143 #else
6144 # include <assert.h>
6145 #endif
6146                      Syntax error
6147 _ACEOF
6148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150   ac_status=$?
6151   grep -v '^ *+' conftest.er1 >conftest.err
6152   rm -f conftest.er1
6153   cat conftest.err >&5
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); } >/dev/null; then
6156   if test -s conftest.err; then
6157     ac_cpp_err=$ac_c_preproc_warn_flag
6158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6159   else
6160     ac_cpp_err=
6161   fi
6162 else
6163   ac_cpp_err=yes
6164 fi
6165 if test -z "$ac_cpp_err"; then
6166   :
6167 else
6168   echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171   # Broken: fails on valid input.
6172 continue
6173 fi
6174 rm -f conftest.err conftest.$ac_ext
6175
6176   # OK, works on sane cases.  Now check whether non-existent headers
6177   # can be detected and how.
6178   cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h.  */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h.  */
6184 #include <ac_nonexistent.h>
6185 _ACEOF
6186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6188   ac_status=$?
6189   grep -v '^ *+' conftest.er1 >conftest.err
6190   rm -f conftest.er1
6191   cat conftest.err >&5
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } >/dev/null; then
6194   if test -s conftest.err; then
6195     ac_cpp_err=$ac_c_preproc_warn_flag
6196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6197   else
6198     ac_cpp_err=
6199   fi
6200 else
6201   ac_cpp_err=yes
6202 fi
6203 if test -z "$ac_cpp_err"; then
6204   # Broken: success on invalid input.
6205 continue
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210   # Passes both tests.
6211 ac_preproc_ok=:
6212 break
6213 fi
6214 rm -f conftest.err conftest.$ac_ext
6215
6216 done
6217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6218 rm -f conftest.err conftest.$ac_ext
6219 if $ac_preproc_ok; then
6220   break
6221 fi
6222
6223     done
6224     ac_cv_prog_CPP=$CPP
6225
6226 fi
6227   CPP=$ac_cv_prog_CPP
6228 else
6229   ac_cv_prog_CPP=$CPP
6230 fi
6231 echo "$as_me:$LINENO: result: $CPP" >&5
6232 echo "${ECHO_T}$CPP" >&6
6233 ac_preproc_ok=false
6234 for ac_c_preproc_warn_flag in '' yes
6235 do
6236   # Use a header file that comes with gcc, so configuring glibc
6237   # with a fresh cross-compiler works.
6238   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6239   # <limits.h> exists even on freestanding compilers.
6240   # On the NeXT, cc -E runs the code through the compiler's parser,
6241   # not just through cpp. "Syntax error" is here to catch this case.
6242   cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h.  */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h.  */
6248 #ifdef __STDC__
6249 # include <limits.h>
6250 #else
6251 # include <assert.h>
6252 #endif
6253                      Syntax error
6254 _ACEOF
6255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6257   ac_status=$?
6258   grep -v '^ *+' conftest.er1 >conftest.err
6259   rm -f conftest.er1
6260   cat conftest.err >&5
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); } >/dev/null; then
6263   if test -s conftest.err; then
6264     ac_cpp_err=$ac_c_preproc_warn_flag
6265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6266   else
6267     ac_cpp_err=
6268   fi
6269 else
6270   ac_cpp_err=yes
6271 fi
6272 if test -z "$ac_cpp_err"; then
6273   :
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278   # Broken: fails on valid input.
6279 continue
6280 fi
6281 rm -f conftest.err conftest.$ac_ext
6282
6283   # OK, works on sane cases.  Now check whether non-existent headers
6284   # can be detected and how.
6285   cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h.  */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h.  */
6291 #include <ac_nonexistent.h>
6292 _ACEOF
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6295   ac_status=$?
6296   grep -v '^ *+' conftest.er1 >conftest.err
6297   rm -f conftest.er1
6298   cat conftest.err >&5
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } >/dev/null; then
6301   if test -s conftest.err; then
6302     ac_cpp_err=$ac_c_preproc_warn_flag
6303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6304   else
6305     ac_cpp_err=
6306   fi
6307 else
6308   ac_cpp_err=yes
6309 fi
6310 if test -z "$ac_cpp_err"; then
6311   # Broken: success on invalid input.
6312 continue
6313 else
6314   echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317   # Passes both tests.
6318 ac_preproc_ok=:
6319 break
6320 fi
6321 rm -f conftest.err conftest.$ac_ext
6322
6323 done
6324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6325 rm -f conftest.err conftest.$ac_ext
6326 if $ac_preproc_ok; then
6327   :
6328 else
6329   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6330 See \`config.log' for more details." >&5
6331 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6332 See \`config.log' for more details." >&2;}
6333    { (exit 1); exit 1; }; }
6334 fi
6335
6336 ac_ext=c
6337 ac_cpp='$CPP $CPPFLAGS'
6338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341
6342
6343 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6344 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6345 if test "${ac_cv_header_stdc+set}" = set; then
6346   echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348   cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h.  */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h.  */
6354 #include <stdlib.h>
6355 #include <stdarg.h>
6356 #include <string.h>
6357 #include <float.h>
6358
6359 int
6360 main ()
6361 {
6362
6363   ;
6364   return 0;
6365 }
6366 _ACEOF
6367 rm -f conftest.$ac_objext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369   (eval $ac_compile) 2>conftest.er1
6370   ac_status=$?
6371   grep -v '^ *+' conftest.er1 >conftest.err
6372   rm -f conftest.er1
6373   cat conftest.err >&5
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } &&
6376          { ac_try='test -z "$ac_c_werror_flag"
6377                          || test ! -s conftest.err'
6378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379   (eval $ac_try) 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }; } &&
6383          { ac_try='test -s conftest.$ac_objext'
6384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385   (eval $ac_try) 2>&5
6386   ac_status=$?
6387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388   (exit $ac_status); }; }; then
6389   ac_cv_header_stdc=yes
6390 else
6391   echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6393
6394 ac_cv_header_stdc=no
6395 fi
6396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397
6398 if test $ac_cv_header_stdc = yes; then
6399   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6400   cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406 #include <string.h>
6407
6408 _ACEOF
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410   $EGREP "memchr" >/dev/null 2>&1; then
6411   :
6412 else
6413   ac_cv_header_stdc=no
6414 fi
6415 rm -f conftest*
6416
6417 fi
6418
6419 if test $ac_cv_header_stdc = yes; then
6420   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6421   cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427 #include <stdlib.h>
6428
6429 _ACEOF
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431   $EGREP "free" >/dev/null 2>&1; then
6432   :
6433 else
6434   ac_cv_header_stdc=no
6435 fi
6436 rm -f conftest*
6437
6438 fi
6439
6440 if test $ac_cv_header_stdc = yes; then
6441   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6442   if test "$cross_compiling" = yes; then
6443   :
6444 else
6445   cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h.  */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h.  */
6451 #include <ctype.h>
6452 #if ((' ' & 0x0FF) == 0x020)
6453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6455 #else
6456 # define ISLOWER(c) \
6457                    (('a' <= (c) && (c) <= 'i') \
6458                      || ('j' <= (c) && (c) <= 'r') \
6459                      || ('s' <= (c) && (c) <= 'z'))
6460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6461 #endif
6462
6463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6464 int
6465 main ()
6466 {
6467   int i;
6468   for (i = 0; i < 256; i++)
6469     if (XOR (islower (i), ISLOWER (i))
6470         || toupper (i) != TOUPPER (i))
6471       exit(2);
6472   exit (0);
6473 }
6474 _ACEOF
6475 rm -f conftest$ac_exeext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6477   (eval $ac_link) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482   (eval $ac_try) 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); }; }; then
6486   :
6487 else
6488   echo "$as_me: program exited with status $ac_status" >&5
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 ( exit $ac_status )
6493 ac_cv_header_stdc=no
6494 fi
6495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6496 fi
6497 fi
6498 fi
6499 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6500 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6501 if test $ac_cv_header_stdc = yes; then
6502
6503 cat >>confdefs.h <<\_ACEOF
6504 #define STDC_HEADERS 1
6505 _ACEOF
6506
6507 fi
6508
6509 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6520                   inttypes.h stdint.h unistd.h
6521 do
6522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6523 echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534 $ac_includes_default
6535
6536 #include <$ac_header>
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540   (eval $ac_compile) 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } &&
6547          { ac_try='test -z "$ac_c_werror_flag"
6548                          || test ! -s conftest.err'
6549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550   (eval $ac_try) 2>&5
6551   ac_status=$?
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); }; } &&
6554          { ac_try='test -s conftest.$ac_objext'
6555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556   (eval $ac_try) 2>&5
6557   ac_status=$?
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); }; }; then
6560   eval "$as_ac_Header=yes"
6561 else
6562   echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6564
6565 eval "$as_ac_Header=no"
6566 fi
6567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6568 fi
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6572   cat >>confdefs.h <<_ACEOF
6573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6574 _ACEOF
6575
6576 fi
6577
6578 done
6579
6580
6581
6582 for ac_header in dlfcn.h
6583 do
6584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586   echo "$as_me:$LINENO: checking for $ac_header" >&5
6587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 fi
6591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593 else
6594   # Is the header compilable?
6595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h.  */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h.  */
6603 $ac_includes_default
6604 #include <$ac_header>
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608   (eval $ac_compile) 2>conftest.er1
6609   ac_status=$?
6610   grep -v '^ *+' conftest.er1 >conftest.err
6611   rm -f conftest.er1
6612   cat conftest.err >&5
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } &&
6615          { ac_try='test -z "$ac_c_werror_flag"
6616                          || test ! -s conftest.err'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; } &&
6622          { ac_try='test -s conftest.$ac_objext'
6623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624   (eval $ac_try) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; }; then
6628   ac_header_compiler=yes
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 ac_header_compiler=no
6634 fi
6635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6637 echo "${ECHO_T}$ac_header_compiler" >&6
6638
6639 # Is the header present?
6640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6642 cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h.  */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h.  */
6648 #include <$ac_header>
6649 _ACEOF
6650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6652   ac_status=$?
6653   grep -v '^ *+' conftest.er1 >conftest.err
6654   rm -f conftest.er1
6655   cat conftest.err >&5
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); } >/dev/null; then
6658   if test -s conftest.err; then
6659     ac_cpp_err=$ac_c_preproc_warn_flag
6660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6661   else
6662     ac_cpp_err=
6663   fi
6664 else
6665   ac_cpp_err=yes
6666 fi
6667 if test -z "$ac_cpp_err"; then
6668   ac_header_preproc=yes
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673   ac_header_preproc=no
6674 fi
6675 rm -f conftest.err conftest.$ac_ext
6676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6677 echo "${ECHO_T}$ac_header_preproc" >&6
6678
6679 # So?  What about this header?
6680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6681   yes:no: )
6682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6686     ac_header_preproc=yes
6687     ;;
6688   no:yes:* )
6689     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6691     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6692 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6693     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6695     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6696 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6699     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6701     (
6702       cat <<\_ASBOX
6703 ## --------------------------------------------- ##
6704 ## Report this to <http://www.openldap.org/its/> ##
6705 ## --------------------------------------------- ##
6706 _ASBOX
6707     ) |
6708       sed "s/^/$as_me: WARNING:     /" >&2
6709     ;;
6710 esac
6711 echo "$as_me:$LINENO: checking for $ac_header" >&5
6712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6714   echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716   eval "$as_ac_Header=\$ac_header_preproc"
6717 fi
6718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6720
6721 fi
6722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6723   cat >>confdefs.h <<_ACEOF
6724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6725 _ACEOF
6726
6727 fi
6728
6729 done
6730
6731
6732 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6733
6734 # find the maximum length of command line arguments
6735 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6736 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6737 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740     i=0
6741   teststring="ABCD"
6742
6743   case $build_os in
6744   msdosdjgpp*)
6745     # On DJGPP, this test can blow up pretty badly due to problems in libc
6746     # (any single argument exceeding 2000 bytes causes a buffer overrun
6747     # during glob expansion).  Even if it were fixed, the result of this
6748     # check would be larger than it should be.
6749     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6750     ;;
6751
6752   gnu*)
6753     # Under GNU Hurd, this test is not required because there is
6754     # no limit to the length of command line arguments.
6755     # Libtool will interpret -1 as no limit whatsoever
6756     lt_cv_sys_max_cmd_len=-1;
6757     ;;
6758
6759   cygwin* | mingw*)
6760     # On Win9x/ME, this test blows up -- it succeeds, but takes
6761     # about 5 minutes as the teststring grows exponentially.
6762     # Worse, since 9x/ME are not pre-emptively multitasking,
6763     # you end up with a "frozen" computer, even though with patience
6764     # the test eventually succeeds (with a max line length of 256k).
6765     # Instead, let's just punt: use the minimum linelength reported by
6766     # all of the supported platforms: 8192 (on NT/2K/XP).
6767     lt_cv_sys_max_cmd_len=8192;
6768     ;;
6769
6770   amigaos*)
6771     # On AmigaOS with pdksh, this test takes hours, literally.
6772     # So we just punt and use a minimum line length of 8192.
6773     lt_cv_sys_max_cmd_len=8192;
6774     ;;
6775
6776   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6777     # This has been around since 386BSD, at least.  Likely further.
6778     if test -x /sbin/sysctl; then
6779       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6780     elif test -x /usr/sbin/sysctl; then
6781       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6782     else
6783       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6784     fi
6785     # And add a safety zone
6786     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6787     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6788     ;;
6789   osf*)
6790     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6791     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6792     # nice to cause kernel panics so lets avoid the loop below.
6793     # First set a reasonable default.
6794     lt_cv_sys_max_cmd_len=16384
6795     #
6796     if test -x /sbin/sysconfig; then
6797       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6798         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6799       esac
6800     fi
6801     ;;
6802   *)
6803     # If test is not a shell built-in, we'll probably end up computing a
6804     # maximum length that is only half of the actual maximum length, but
6805     # we can't tell.
6806     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6807     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6808                = "XX$teststring") >/dev/null 2>&1 &&
6809             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6810             lt_cv_sys_max_cmd_len=$new_result &&
6811             test $i != 17 # 1/2 MB should be enough
6812     do
6813       i=`expr $i + 1`
6814       teststring=$teststring$teststring
6815     done
6816     teststring=
6817     # Add a significant safety factor because C++ compilers can tack on massive
6818     # amounts of additional arguments before passing them to the linker.
6819     # It appears as though 1/2 is a usable value.
6820     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6821     ;;
6822   esac
6823
6824 fi
6825
6826 if test -n $lt_cv_sys_max_cmd_len ; then
6827   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6828 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6829 else
6830   echo "$as_me:$LINENO: result: none" >&5
6831 echo "${ECHO_T}none" >&6
6832 fi
6833
6834
6835
6836
6837 # Check for command to grab the raw symbol name followed by C symbol from nm.
6838 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6839 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6840 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6841   echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843
6844 # These are sane defaults that work on at least a few old systems.
6845 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6846
6847 # Character class describing NM global symbol codes.
6848 symcode='[BCDEGRST]'
6849
6850 # Regexp to match symbols that can be accessed directly from C.
6851 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6852
6853 # Transform an extracted symbol line into a proper C declaration
6854 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6855
6856 # Transform an extracted symbol line into symbol name and symbol address
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 # Define system-specific variables.
6860 case $host_os in
6861 aix*)
6862   symcode='[BCDT]'
6863   ;;
6864 cygwin* | mingw* | pw32*)
6865   symcode='[ABCDGISTW]'
6866   ;;
6867 hpux*) # Its linker distinguishes data from code symbols
6868   if test "$host_cpu" = ia64; then
6869     symcode='[ABCDEGRST]'
6870   fi
6871   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6872   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'"
6873   ;;
6874 linux*)
6875   if test "$host_cpu" = ia64; then
6876     symcode='[ABCDGIRSTW]'
6877     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6878     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'"
6879   fi
6880   ;;
6881 irix* | nonstopux*)
6882   symcode='[BCDEGRST]'
6883   ;;
6884 osf*)
6885   symcode='[BCDEGQRST]'
6886   ;;
6887 solaris* | sysv5*)
6888   symcode='[BDRT]'
6889   ;;
6890 sysv4)
6891   symcode='[DFNSTU]'
6892   ;;
6893 esac
6894
6895 # Handle CRLF in mingw tool chain
6896 opt_cr=
6897 case $build_os in
6898 mingw*)
6899   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6900   ;;
6901 esac
6902
6903 # If we're using GNU nm, then use its standard symbol codes.
6904 case `$NM -V 2>&1` in
6905 *GNU* | *'with BFD'*)
6906   symcode='[ABCDGIRSTW]' ;;
6907 esac
6908
6909 # Try without a prefix undercore, then with it.
6910 for ac_symprfx in "" "_"; do
6911
6912   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6913   symxfrm="\\1 $ac_symprfx\\2 \\2"
6914
6915   # Write the raw and C identifiers.
6916   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6917
6918   # Check to see that the pipe works correctly.
6919   pipe_works=no
6920
6921   rm -f conftest*
6922   cat > conftest.$ac_ext <<EOF
6923 #ifdef __cplusplus
6924 extern "C" {
6925 #endif
6926 char nm_test_var;
6927 void nm_test_func(){}
6928 #ifdef __cplusplus
6929 }
6930 #endif
6931 int main(){nm_test_var='a';nm_test_func();return(0);}
6932 EOF
6933
6934   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935   (eval $ac_compile) 2>&5
6936   ac_status=$?
6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938   (exit $ac_status); }; then
6939     # Now try to grab the symbols.
6940     nlist=conftest.nm
6941     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6942   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); } && test -s "$nlist"; then
6946       # Try sorting and uniquifying the output.
6947       if sort "$nlist" | uniq > "$nlist"T; then
6948         mv -f "$nlist"T "$nlist"
6949       else
6950         rm -f "$nlist"T
6951       fi
6952
6953       # Make sure that we snagged all the symbols we need.
6954       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6955         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6956           cat <<EOF > conftest.$ac_ext
6957 #ifdef __cplusplus
6958 extern "C" {
6959 #endif
6960
6961 EOF
6962           # Now generate the symbol file.
6963           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6964
6965           cat <<EOF >> conftest.$ac_ext
6966 #if defined (__STDC__) && __STDC__
6967 # define lt_ptr_t void *
6968 #else
6969 # define lt_ptr_t char *
6970 # define const
6971 #endif
6972
6973 /* The mapping between symbol names and symbols. */
6974 const struct {
6975   const char *name;
6976   lt_ptr_t address;
6977 }
6978 lt_preloaded_symbols[] =
6979 {
6980 EOF
6981           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6982           cat <<\EOF >> conftest.$ac_ext
6983   {0, (lt_ptr_t) 0}
6984 };
6985
6986 #ifdef __cplusplus
6987 }
6988 #endif
6989 EOF
6990           # Now try linking the two files.
6991           mv conftest.$ac_objext conftstm.$ac_objext
6992           lt_save_LIBS="$LIBS"
6993           lt_save_CFLAGS="$CFLAGS"
6994           LIBS="conftstm.$ac_objext"
6995           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6996           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997   (eval $ac_link) 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7001             pipe_works=yes
7002           fi
7003           LIBS="$lt_save_LIBS"
7004           CFLAGS="$lt_save_CFLAGS"
7005         else
7006           echo "cannot find nm_test_func in $nlist" >&5
7007         fi
7008       else
7009         echo "cannot find nm_test_var in $nlist" >&5
7010       fi
7011     else
7012       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7013     fi
7014   else
7015     echo "$progname: failed program was:" >&5
7016     cat conftest.$ac_ext >&5
7017   fi
7018   rm -f conftest* conftst*
7019
7020   # Do not use the global_symbol_pipe unless it works.
7021   if test "$pipe_works" = yes; then
7022     break
7023   else
7024     lt_cv_sys_global_symbol_pipe=
7025   fi
7026 done
7027
7028 fi
7029
7030 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7031   lt_cv_sys_global_symbol_to_cdecl=
7032 fi
7033 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7034   echo "$as_me:$LINENO: result: failed" >&5
7035 echo "${ECHO_T}failed" >&6
7036 else
7037   echo "$as_me:$LINENO: result: ok" >&5
7038 echo "${ECHO_T}ok" >&6
7039 fi
7040
7041 echo "$as_me:$LINENO: checking for objdir" >&5
7042 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7043 if test "${lt_cv_objdir+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   rm -f .libs 2>/dev/null
7047 mkdir .libs 2>/dev/null
7048 if test -d .libs; then
7049   lt_cv_objdir=.libs
7050 else
7051   # MS-DOS does not allow filenames that begin with a dot.
7052   lt_cv_objdir=_libs
7053 fi
7054 rmdir .libs 2>/dev/null
7055 fi
7056 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7057 echo "${ECHO_T}$lt_cv_objdir" >&6
7058 objdir=$lt_cv_objdir
7059
7060
7061
7062
7063
7064 case $host_os in
7065 aix3*)
7066   # AIX sometimes has problems with the GCC collect2 program.  For some
7067   # reason, if we set the COLLECT_NAMES environment variable, the problems
7068   # vanish in a puff of smoke.
7069   if test "X${COLLECT_NAMES+set}" != Xset; then
7070     COLLECT_NAMES=
7071     export COLLECT_NAMES
7072   fi
7073   ;;
7074 esac
7075
7076 # Sed substitution that helps us do robust quoting.  It backslashifies
7077 # metacharacters that are still active within double-quoted strings.
7078 Xsed='sed -e 1s/^X//'
7079 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7080
7081 # Same as above, but do not quote variable references.
7082 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7083
7084 # Sed substitution to delay expansion of an escaped shell variable in a
7085 # double_quote_subst'ed string.
7086 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7087
7088 # Sed substitution to avoid accidental globbing in evaled expressions
7089 no_glob_subst='s/\*/\\\*/g'
7090
7091 # Constants:
7092 rm="rm -f"
7093
7094 # Global variables:
7095 default_ofile=libtool
7096 can_build_shared=yes
7097
7098 # All known linkers require a `.a' archive for static linking (except MSVC,
7099 # which needs '.lib').
7100 libext=a
7101 ltmain="$ac_aux_dir/ltmain.sh"
7102 ofile="$default_ofile"
7103 with_gnu_ld="$lt_cv_prog_gnu_ld"
7104
7105 if test -n "$ac_tool_prefix"; then
7106   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7107 set dummy ${ac_tool_prefix}ar; ac_word=$2
7108 echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110 if test "${ac_cv_prog_AR+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   if test -n "$AR"; then
7114   ac_cv_prog_AR="$AR" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119   IFS=$as_save_IFS
7120   test -z "$as_dir" && as_dir=.
7121   for ac_exec_ext in '' $ac_executable_extensions; do
7122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123     ac_cv_prog_AR="${ac_tool_prefix}ar"
7124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125     break 2
7126   fi
7127 done
7128 done
7129
7130 fi
7131 fi
7132 AR=$ac_cv_prog_AR
7133 if test -n "$AR"; then
7134   echo "$as_me:$LINENO: result: $AR" >&5
7135 echo "${ECHO_T}$AR" >&6
7136 else
7137   echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6
7139 fi
7140
7141 fi
7142 if test -z "$ac_cv_prog_AR"; then
7143   ac_ct_AR=$AR
7144   # Extract the first word of "ar", so it can be a program name with args.
7145 set dummy ar; ac_word=$2
7146 echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   if test -n "$ac_ct_AR"; then
7152   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159   for ac_exec_ext in '' $ac_executable_extensions; do
7160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161     ac_cv_prog_ac_ct_AR="ar"
7162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166 done
7167
7168   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7169 fi
7170 fi
7171 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7172 if test -n "$ac_ct_AR"; then
7173   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7174 echo "${ECHO_T}$ac_ct_AR" >&6
7175 else
7176   echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7178 fi
7179
7180   AR=$ac_ct_AR
7181 else
7182   AR="$ac_cv_prog_AR"
7183 fi
7184
7185 if test -n "$ac_tool_prefix"; then
7186   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7188 echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190 if test "${ac_cv_prog_RANLIB+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   if test -n "$RANLIB"; then
7194   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201   for ac_exec_ext in '' $ac_executable_extensions; do
7202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208 done
7209
7210 fi
7211 fi
7212 RANLIB=$ac_cv_prog_RANLIB
7213 if test -n "$RANLIB"; then
7214   echo "$as_me:$LINENO: result: $RANLIB" >&5
7215 echo "${ECHO_T}$RANLIB" >&6
7216 else
7217   echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7219 fi
7220
7221 fi
7222 if test -z "$ac_cv_prog_RANLIB"; then
7223   ac_ct_RANLIB=$RANLIB
7224   # Extract the first word of "ranlib", so it can be a program name with args.
7225 set dummy ranlib; ac_word=$2
7226 echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   if test -n "$ac_ct_RANLIB"; then
7232   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   for ac_exec_ext in '' $ac_executable_extensions; do
7240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241     ac_cv_prog_ac_ct_RANLIB="ranlib"
7242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246 done
7247
7248   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7249 fi
7250 fi
7251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7252 if test -n "$ac_ct_RANLIB"; then
7253   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7255 else
7256   echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7258 fi
7259
7260   RANLIB=$ac_ct_RANLIB
7261 else
7262   RANLIB="$ac_cv_prog_RANLIB"
7263 fi
7264
7265 if test -n "$ac_tool_prefix"; then
7266   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7267 set dummy ${ac_tool_prefix}strip; ac_word=$2
7268 echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270 if test "${ac_cv_prog_STRIP+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   if test -n "$STRIP"; then
7274   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279   IFS=$as_save_IFS
7280   test -z "$as_dir" && as_dir=.
7281   for ac_exec_ext in '' $ac_executable_extensions; do
7282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285     break 2
7286   fi
7287 done
7288 done
7289
7290 fi
7291 fi
7292 STRIP=$ac_cv_prog_STRIP
7293 if test -n "$STRIP"; then
7294   echo "$as_me:$LINENO: result: $STRIP" >&5
7295 echo "${ECHO_T}$STRIP" >&6
7296 else
7297   echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7299 fi
7300
7301 fi
7302 if test -z "$ac_cv_prog_STRIP"; then
7303   ac_ct_STRIP=$STRIP
7304   # Extract the first word of "strip", so it can be a program name with args.
7305 set dummy strip; ac_word=$2
7306 echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   if test -n "$ac_ct_STRIP"; then
7312   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317   IFS=$as_save_IFS
7318   test -z "$as_dir" && as_dir=.
7319   for ac_exec_ext in '' $ac_executable_extensions; do
7320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321     ac_cv_prog_ac_ct_STRIP="strip"
7322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326 done
7327
7328   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7329 fi
7330 fi
7331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7332 if test -n "$ac_ct_STRIP"; then
7333   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7334 echo "${ECHO_T}$ac_ct_STRIP" >&6
7335 else
7336   echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7338 fi
7339
7340   STRIP=$ac_ct_STRIP
7341 else
7342   STRIP="$ac_cv_prog_STRIP"
7343 fi
7344
7345
7346 old_CC="$CC"
7347 old_CFLAGS="$CFLAGS"
7348
7349 # Set sane defaults for various variables
7350 test -z "$AR" && AR=ar
7351 test -z "$AR_FLAGS" && AR_FLAGS=cru
7352 test -z "$AS" && AS=as
7353 test -z "$CC" && CC=cc
7354 test -z "$LTCC" && LTCC=$CC
7355 test -z "$DLLTOOL" && DLLTOOL=dlltool
7356 test -z "$LD" && LD=ld
7357 test -z "$LN_S" && LN_S="ln -s"
7358 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7359 test -z "$NM" && NM=nm
7360 test -z "$SED" && SED=sed
7361 test -z "$OBJDUMP" && OBJDUMP=objdump
7362 test -z "$RANLIB" && RANLIB=:
7363 test -z "$STRIP" && STRIP=:
7364 test -z "$ac_objext" && ac_objext=o
7365
7366 # Determine commands to create old-style static archives.
7367 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7368 old_postinstall_cmds='chmod 644 $oldlib'
7369 old_postuninstall_cmds=
7370
7371 if test -n "$RANLIB"; then
7372   case $host_os in
7373   openbsd*)
7374     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7375     ;;
7376   *)
7377     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7378     ;;
7379   esac
7380   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7381 fi
7382
7383 for cc_temp in $compiler""; do
7384   case $cc_temp in
7385     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7386     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7387     \-*) ;;
7388     *) break;;
7389   esac
7390 done
7391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7392
7393
7394 # Only perform the check for file, if the check method requires it
7395 case $deplibs_check_method in
7396 file_magic*)
7397   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7398     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7399 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7400 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   case $MAGIC_CMD in
7404 [\\/*] |  ?:[\\/]*)
7405   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7406   ;;
7407 *)
7408   lt_save_MAGIC_CMD="$MAGIC_CMD"
7409   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7410   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7411   for ac_dir in $ac_dummy; do
7412     IFS="$lt_save_ifs"
7413     test -z "$ac_dir" && ac_dir=.
7414     if test -f $ac_dir/${ac_tool_prefix}file; then
7415       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7416       if test -n "$file_magic_test_file"; then
7417         case $deplibs_check_method in
7418         "file_magic "*)
7419           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7420           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7421           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7422             $EGREP "$file_magic_regex" > /dev/null; then
7423             :
7424           else
7425             cat <<EOF 1>&2
7426
7427 *** Warning: the command libtool uses to detect shared libraries,
7428 *** $file_magic_cmd, produces output that libtool cannot recognize.
7429 *** The result is that libtool may fail to recognize shared libraries
7430 *** as such.  This will affect the creation of libtool libraries that
7431 *** depend on shared libraries, but programs linked with such libtool
7432 *** libraries will work regardless of this problem.  Nevertheless, you
7433 *** may want to report the problem to your system manager and/or to
7434 *** bug-libtool@gnu.org
7435
7436 EOF
7437           fi ;;
7438         esac
7439       fi
7440       break
7441     fi
7442   done
7443   IFS="$lt_save_ifs"
7444   MAGIC_CMD="$lt_save_MAGIC_CMD"
7445   ;;
7446 esac
7447 fi
7448
7449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7450 if test -n "$MAGIC_CMD"; then
7451   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7452 echo "${ECHO_T}$MAGIC_CMD" >&6
7453 else
7454   echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6
7456 fi
7457
7458 if test -z "$lt_cv_path_MAGIC_CMD"; then
7459   if test -n "$ac_tool_prefix"; then
7460     echo "$as_me:$LINENO: checking for file" >&5
7461 echo $ECHO_N "checking for file... $ECHO_C" >&6
7462 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465   case $MAGIC_CMD in
7466 [\\/*] |  ?:[\\/]*)
7467   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7468   ;;
7469 *)
7470   lt_save_MAGIC_CMD="$MAGIC_CMD"
7471   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7472   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7473   for ac_dir in $ac_dummy; do
7474     IFS="$lt_save_ifs"
7475     test -z "$ac_dir" && ac_dir=.
7476     if test -f $ac_dir/file; then
7477       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7478       if test -n "$file_magic_test_file"; then
7479         case $deplibs_check_method in
7480         "file_magic "*)
7481           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7482           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7483           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7484             $EGREP "$file_magic_regex" > /dev/null; then
7485             :
7486           else
7487             cat <<EOF 1>&2
7488
7489 *** Warning: the command libtool uses to detect shared libraries,
7490 *** $file_magic_cmd, produces output that libtool cannot recognize.
7491 *** The result is that libtool may fail to recognize shared libraries
7492 *** as such.  This will affect the creation of libtool libraries that
7493 *** depend on shared libraries, but programs linked with such libtool
7494 *** libraries will work regardless of this problem.  Nevertheless, you
7495 *** may want to report the problem to your system manager and/or to
7496 *** bug-libtool@gnu.org
7497
7498 EOF
7499           fi ;;
7500         esac
7501       fi
7502       break
7503     fi
7504   done
7505   IFS="$lt_save_ifs"
7506   MAGIC_CMD="$lt_save_MAGIC_CMD"
7507   ;;
7508 esac
7509 fi
7510
7511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7512 if test -n "$MAGIC_CMD"; then
7513   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7514 echo "${ECHO_T}$MAGIC_CMD" >&6
7515 else
7516   echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7518 fi
7519
7520   else
7521     MAGIC_CMD=:
7522   fi
7523 fi
7524
7525   fi
7526   ;;
7527 esac
7528
7529 enable_dlopen=yes
7530 enable_win32_dll=yes
7531
7532 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7533 if test "${enable_libtool_lock+set}" = set; then
7534   enableval="$enable_libtool_lock"
7535
7536 fi;
7537 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7538
7539
7540 # Check whether --with-pic or --without-pic was given.
7541 if test "${with_pic+set}" = set; then
7542   withval="$with_pic"
7543   pic_mode="$withval"
7544 else
7545   pic_mode=default
7546 fi;
7547 test -z "$pic_mode" && pic_mode=default
7548
7549 # Use C for the default configuration in the libtool script
7550 tagname=
7551 lt_save_CC="$CC"
7552 ac_ext=c
7553 ac_cpp='$CPP $CPPFLAGS'
7554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7557
7558
7559 # Source file extension for C test sources.
7560 ac_ext=c
7561
7562 # Object file extension for compiled C test sources.
7563 objext=o
7564 objext=$objext
7565
7566 # Code to be used in simple compile tests
7567 lt_simple_compile_test_code="int some_variable = 0;\n"
7568
7569 # Code to be used in simple link tests
7570 lt_simple_link_test_code='int main(){return(0);}\n'
7571
7572
7573 # If no C compiler was specified, use CC.
7574 LTCC=${LTCC-"$CC"}
7575
7576 # Allow CC to be a program name with arguments.
7577 compiler=$CC
7578
7579
7580 # save warnings/boilerplate of simple test code
7581 ac_outfile=conftest.$ac_objext
7582 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7584 _lt_compiler_boilerplate=`cat conftest.err`
7585 $rm conftest*
7586
7587 ac_outfile=conftest.$ac_objext
7588 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7590 _lt_linker_boilerplate=`cat conftest.err`
7591 $rm conftest*
7592
7593
7594 #
7595 # Check for any special shared library compilation flags.
7596 #
7597 lt_prog_cc_shlib=
7598 if test "$GCC" = no; then
7599   case $host_os in
7600   sco3.2v5*)
7601     lt_prog_cc_shlib='-belf'
7602     ;;
7603   esac
7604 fi
7605 if test -n "$lt_prog_cc_shlib"; then
7606   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7607 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7608   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7609   else
7610     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7611 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7612     lt_cv_prog_cc_can_build_shared=no
7613   fi
7614 fi
7615
7616
7617 #
7618 # Check to make sure the static flag actually works.
7619 #
7620 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7621 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7622 if test "${lt_prog_compiler_static_works+set}" = set; then
7623   echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625   lt_prog_compiler_static_works=no
7626    save_LDFLAGS="$LDFLAGS"
7627    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7628    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7629    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7630      # The linker can only warn and ignore the option if not recognized
7631      # So say no if there are warnings
7632      if test -s conftest.err; then
7633        # Append any errors to the config.log.
7634        cat conftest.err 1>&5
7635        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7636        $SED '/^$/d' conftest.err >conftest.er2
7637        if diff conftest.exp conftest.er2 >/dev/null; then
7638          lt_prog_compiler_static_works=yes
7639        fi
7640      else
7641        lt_prog_compiler_static_works=yes
7642      fi
7643    fi
7644    $rm conftest*
7645    LDFLAGS="$save_LDFLAGS"
7646
7647 fi
7648 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7649 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7650
7651 if test x"$lt_prog_compiler_static_works" = xyes; then
7652     :
7653 else
7654     lt_prog_compiler_static=
7655 fi
7656
7657
7658
7659
7660 lt_prog_compiler_no_builtin_flag=
7661
7662 if test "$GCC" = yes; then
7663   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7664
7665
7666 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7667 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7668 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   lt_cv_prog_compiler_rtti_exceptions=no
7672   ac_outfile=conftest.$ac_objext
7673    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7674    lt_compiler_flag="-fno-rtti -fno-exceptions"
7675    # Insert the option either (1) after the last *FLAGS variable, or
7676    # (2) before a word containing "conftest.", or (3) at the end.
7677    # Note that $ac_compile itself does not contain backslashes and begins
7678    # with a dollar sign (not a hyphen), so the echo should work correctly.
7679    # The option is referenced via a variable to avoid confusing sed.
7680    lt_compile=`echo "$ac_compile" | $SED \
7681    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7682    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7683    -e 's:$: $lt_compiler_flag:'`
7684    (eval echo "\"\$as_me:7684: $lt_compile\"" >&5)
7685    (eval "$lt_compile" 2>conftest.err)
7686    ac_status=$?
7687    cat conftest.err >&5
7688    echo "$as_me:7688: \$? = $ac_status" >&5
7689    if (exit $ac_status) && test -s "$ac_outfile"; then
7690      # The compiler can only warn and ignore the option if not recognized
7691      # So say no if there are warnings other than the usual output.
7692      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7693      $SED '/^$/d' conftest.err >conftest.er2
7694      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7695        lt_cv_prog_compiler_rtti_exceptions=yes
7696      fi
7697    fi
7698    $rm conftest*
7699
7700 fi
7701 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7702 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7703
7704 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7705     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7706 else
7707     :
7708 fi
7709
7710 fi
7711
7712 lt_prog_compiler_wl=
7713 lt_prog_compiler_pic=
7714 lt_prog_compiler_static=
7715
7716 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7717 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7718
7719   if test "$GCC" = yes; then
7720     lt_prog_compiler_wl='-Wl,'
7721     lt_prog_compiler_static='-static'
7722
7723     case $host_os in
7724       aix*)
7725       # All AIX code is PIC.
7726       if test "$host_cpu" = ia64; then
7727         # AIX 5 now supports IA64 processor
7728         lt_prog_compiler_static='-Bstatic'
7729       fi
7730       ;;
7731
7732     amigaos*)
7733       # FIXME: we need at least 68020 code to build shared libraries, but
7734       # adding the `-m68020' flag to GCC prevents building anything better,
7735       # like `-m68040'.
7736       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7737       ;;
7738
7739     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7740       # PIC is the default for these OSes.
7741       ;;
7742
7743     mingw* | pw32* | os2*)
7744       # This hack is so that the source file can tell whether it is being
7745       # built for inclusion in a dll (and should export symbols for example).
7746       lt_prog_compiler_pic='-DDLL_EXPORT'
7747       ;;
7748
7749     darwin* | rhapsody*)
7750       # PIC is the default on this platform
7751       # Common symbols not allowed in MH_DYLIB files
7752       lt_prog_compiler_pic='-fno-common'
7753       ;;
7754
7755     msdosdjgpp*)
7756       # Just because we use GCC doesn't mean we suddenly get shared libraries
7757       # on systems that don't support them.
7758       lt_prog_compiler_can_build_shared=no
7759       enable_shared=no
7760       ;;
7761
7762     sysv4*MP*)
7763       if test -d /usr/nec; then
7764         lt_prog_compiler_pic=-Kconform_pic
7765       fi
7766       ;;
7767
7768     hpux*)
7769       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7770       # not for PA HP-UX.
7771       case $host_cpu in
7772       hppa*64*|ia64*)
7773         # +Z the default
7774         ;;
7775       *)
7776         lt_prog_compiler_pic='-fPIC'
7777         ;;
7778       esac
7779       ;;
7780
7781     *)
7782       lt_prog_compiler_pic='-fPIC'
7783       ;;
7784     esac
7785   else
7786     # PORTME Check for flag to pass linker flags through the system compiler.
7787     case $host_os in
7788     aix*)
7789       lt_prog_compiler_wl='-Wl,'
7790       if test "$host_cpu" = ia64; then
7791         # AIX 5 now supports IA64 processor
7792         lt_prog_compiler_static='-Bstatic'
7793       else
7794         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7795       fi
7796       ;;
7797       darwin*)
7798         # PIC is the default on this platform
7799         # Common symbols not allowed in MH_DYLIB files
7800        case $cc_basename in
7801          xlc*)
7802          lt_prog_compiler_pic='-qnocommon'
7803          lt_prog_compiler_wl='-Wl,'
7804          ;;
7805        esac
7806        ;;
7807
7808     mingw* | pw32* | os2*)
7809       # This hack is so that the source file can tell whether it is being
7810       # built for inclusion in a dll (and should export symbols for example).
7811       lt_prog_compiler_pic='-DDLL_EXPORT'
7812       ;;
7813
7814     hpux9* | hpux10* | hpux11*)
7815       lt_prog_compiler_wl='-Wl,'
7816       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7817       # not for PA HP-UX.
7818       case $host_cpu in
7819       hppa*64*|ia64*)
7820         # +Z the default
7821         ;;
7822       *)
7823         lt_prog_compiler_pic='+Z'
7824         ;;
7825       esac
7826       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7827       lt_prog_compiler_static='${wl}-a ${wl}archive'
7828       ;;
7829
7830     irix5* | irix6* | nonstopux*)
7831       lt_prog_compiler_wl='-Wl,'
7832       # PIC (with -KPIC) is the default.
7833       lt_prog_compiler_static='-non_shared'
7834       ;;
7835
7836     newsos6)
7837       lt_prog_compiler_pic='-KPIC'
7838       lt_prog_compiler_static='-Bstatic'
7839       ;;
7840
7841     linux*)
7842       case $cc_basename in
7843       icc* | ecc*)
7844         lt_prog_compiler_wl='-Wl,'
7845         lt_prog_compiler_pic='-KPIC'
7846         lt_prog_compiler_static='-static'
7847         ;;
7848       pgcc* | pgf77* | pgf90* | pgf95*)
7849         # Portland Group compilers (*not* the Pentium gcc compiler,
7850         # which looks to be a dead project)
7851         lt_prog_compiler_wl='-Wl,'
7852         lt_prog_compiler_pic='-fpic'
7853         lt_prog_compiler_static='-Bstatic'
7854         ;;
7855       ccc*)
7856         lt_prog_compiler_wl='-Wl,'
7857         # All Alpha code is PIC.
7858         lt_prog_compiler_static='-non_shared'
7859         ;;
7860       esac
7861       ;;
7862
7863     osf3* | osf4* | osf5*)
7864       lt_prog_compiler_wl='-Wl,'
7865       # All OSF/1 code is PIC.
7866       lt_prog_compiler_static='-non_shared'
7867       ;;
7868
7869     sco3.2v5*)
7870       lt_prog_compiler_pic='-Kpic'
7871       lt_prog_compiler_static='-dn'
7872       ;;
7873
7874     solaris*)
7875       lt_prog_compiler_pic='-KPIC'
7876       lt_prog_compiler_static='-Bstatic'
7877       case $cc_basename in
7878       f77* | f90* | f95*)
7879         lt_prog_compiler_wl='-Qoption ld ';;
7880       *)
7881         lt_prog_compiler_wl='-Wl,';;
7882       esac
7883       ;;
7884
7885     sunos4*)
7886       lt_prog_compiler_wl='-Qoption ld '
7887       lt_prog_compiler_pic='-PIC'
7888       lt_prog_compiler_static='-Bstatic'
7889       ;;
7890
7891     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7892       lt_prog_compiler_wl='-Wl,'
7893       lt_prog_compiler_pic='-KPIC'
7894       lt_prog_compiler_static='-Bstatic'
7895       ;;
7896
7897     sysv4*MP*)
7898       if test -d /usr/nec ;then
7899         lt_prog_compiler_pic='-Kconform_pic'
7900         lt_prog_compiler_static='-Bstatic'
7901       fi
7902       ;;
7903
7904     unicos*)
7905       lt_prog_compiler_wl='-Wl,'
7906       lt_prog_compiler_can_build_shared=no
7907       ;;
7908
7909     uts4*)
7910       lt_prog_compiler_pic='-pic'
7911       lt_prog_compiler_static='-Bstatic'
7912       ;;
7913
7914     *)
7915       lt_prog_compiler_can_build_shared=no
7916       ;;
7917     esac
7918   fi
7919
7920 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7921 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7922
7923 #
7924 # Check to make sure the PIC flag actually works.
7925 #
7926 if test -n "$lt_prog_compiler_pic"; then
7927
7928 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7929 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7930 if test "${lt_prog_compiler_pic_works+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   lt_prog_compiler_pic_works=no
7934   ac_outfile=conftest.$ac_objext
7935    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7936    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7937    # Insert the option either (1) after the last *FLAGS variable, or
7938    # (2) before a word containing "conftest.", or (3) at the end.
7939    # Note that $ac_compile itself does not contain backslashes and begins
7940    # with a dollar sign (not a hyphen), so the echo should work correctly.
7941    # The option is referenced via a variable to avoid confusing sed.
7942    lt_compile=`echo "$ac_compile" | $SED \
7943    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7944    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7945    -e 's:$: $lt_compiler_flag:'`
7946    (eval echo "\"\$as_me:7946: $lt_compile\"" >&5)
7947    (eval "$lt_compile" 2>conftest.err)
7948    ac_status=$?
7949    cat conftest.err >&5
7950    echo "$as_me:7950: \$? = $ac_status" >&5
7951    if (exit $ac_status) && test -s "$ac_outfile"; then
7952      # The compiler can only warn and ignore the option if not recognized
7953      # So say no if there are warnings other than the usual output.
7954      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7955      $SED '/^$/d' conftest.err >conftest.er2
7956      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7957        lt_prog_compiler_pic_works=yes
7958      fi
7959    fi
7960    $rm conftest*
7961
7962 fi
7963 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7964 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7965
7966 if test x"$lt_prog_compiler_pic_works" = xyes; then
7967     case $lt_prog_compiler_pic in
7968      "" | " "*) ;;
7969      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7970      esac
7971 else
7972     lt_prog_compiler_pic=
7973      lt_prog_compiler_can_build_shared=no
7974 fi
7975
7976 fi
7977 case $host_os in
7978   # For platforms which do not support PIC, -DPIC is meaningless:
7979   *djgpp*)
7980     lt_prog_compiler_pic=
7981     ;;
7982   *)
7983     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7984     ;;
7985 esac
7986
7987 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7988 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7989 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7990   echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992   lt_cv_prog_compiler_c_o=no
7993    $rm -r conftest 2>/dev/null
7994    mkdir conftest
7995    cd conftest
7996    mkdir out
7997    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7998
7999    lt_compiler_flag="-o out/conftest2.$ac_objext"
8000    # Insert the option either (1) after the last *FLAGS variable, or
8001    # (2) before a word containing "conftest.", or (3) at the end.
8002    # Note that $ac_compile itself does not contain backslashes and begins
8003    # with a dollar sign (not a hyphen), so the echo should work correctly.
8004    lt_compile=`echo "$ac_compile" | $SED \
8005    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8006    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8007    -e 's:$: $lt_compiler_flag:'`
8008    (eval echo "\"\$as_me:8008: $lt_compile\"" >&5)
8009    (eval "$lt_compile" 2>out/conftest.err)
8010    ac_status=$?
8011    cat out/conftest.err >&5
8012    echo "$as_me:8012: \$? = $ac_status" >&5
8013    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8014    then
8015      # The compiler can only warn and ignore the option if not recognized
8016      # So say no if there are warnings
8017      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8018      $SED '/^$/d' out/conftest.err >out/conftest.er2
8019      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8020        lt_cv_prog_compiler_c_o=yes
8021      fi
8022    fi
8023    chmod u+w . 2>&5
8024    $rm conftest*
8025    # SGI C++ compiler will create directory out/ii_files/ for
8026    # template instantiation
8027    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8028    $rm out/* && rmdir out
8029    cd ..
8030    rmdir conftest
8031    $rm conftest*
8032
8033 fi
8034 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8035 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8036
8037
8038 hard_links="nottested"
8039 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8040   # do not overwrite the value of need_locks provided by the user
8041   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8042 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8043   hard_links=yes
8044   $rm conftest*
8045   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8046   touch conftest.a
8047   ln conftest.a conftest.b 2>&5 || hard_links=no
8048   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8049   echo "$as_me:$LINENO: result: $hard_links" >&5
8050 echo "${ECHO_T}$hard_links" >&6
8051   if test "$hard_links" = no; then
8052     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8053 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8054     need_locks=warn
8055   fi
8056 else
8057   need_locks=no
8058 fi
8059
8060 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8061 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8062
8063   runpath_var=
8064   allow_undefined_flag=
8065   enable_shared_with_static_runtimes=no
8066   archive_cmds=
8067   archive_expsym_cmds=
8068   old_archive_From_new_cmds=
8069   old_archive_from_expsyms_cmds=
8070   export_dynamic_flag_spec=
8071   whole_archive_flag_spec=
8072   thread_safe_flag_spec=
8073   hardcode_libdir_flag_spec=
8074   hardcode_libdir_flag_spec_ld=
8075   hardcode_libdir_separator=
8076   hardcode_direct=no
8077   hardcode_minus_L=no
8078   hardcode_shlibpath_var=unsupported
8079   link_all_deplibs=unknown
8080   hardcode_automatic=no
8081   module_cmds=
8082   module_expsym_cmds=
8083   always_export_symbols=no
8084   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8085   # include_expsyms should be a list of space-separated symbols to be *always*
8086   # included in the symbol list
8087   include_expsyms=
8088   # exclude_expsyms can be an extended regexp of symbols to exclude
8089   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8090   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8091   # as well as any symbol that contains `d'.
8092   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8093   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8094   # platforms (ab)use it in PIC code, but their linkers get confused if
8095   # the symbol is explicitly referenced.  Since portable code cannot
8096   # rely on this symbol name, it's probably fine to never include it in
8097   # preloaded symbol tables.
8098   extract_expsyms_cmds=
8099   # Just being paranoid about ensuring that cc_basename is set.
8100   for cc_temp in $compiler""; do
8101   case $cc_temp in
8102     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8103     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8104     \-*) ;;
8105     *) break;;
8106   esac
8107 done
8108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8109
8110   case $host_os in
8111   cygwin* | mingw* | pw32*)
8112     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8113     # When not using gcc, we currently assume that we are using
8114     # Microsoft Visual C++.
8115     if test "$GCC" != yes; then
8116       with_gnu_ld=no
8117     fi
8118     ;;
8119   openbsd*)
8120     with_gnu_ld=no
8121     ;;
8122   esac
8123
8124   ld_shlibs=yes
8125   if test "$with_gnu_ld" = yes; then
8126     # If archive_cmds runs LD, not CC, wlarc should be empty
8127     wlarc='${wl}'
8128
8129     # Set some defaults for GNU ld with shared library support. These
8130     # are reset later if shared libraries are not supported. Putting them
8131     # here allows them to be overridden if necessary.
8132     runpath_var=LD_RUN_PATH
8133     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8134     export_dynamic_flag_spec='${wl}--export-dynamic'
8135     # ancient GNU ld didn't support --whole-archive et. al.
8136     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8137         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8138       else
8139         whole_archive_flag_spec=
8140     fi
8141     supports_anon_versioning=no
8142     case `$LD -v 2>/dev/null` in
8143       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8144       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8145       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8146       *\ 2.11.*) ;; # other 2.11 versions
8147       *) supports_anon_versioning=yes ;;
8148     esac
8149
8150     # See if GNU ld supports shared libraries.
8151     case $host_os in
8152     aix3* | aix4* | aix5*)
8153       # On AIX/PPC, the GNU linker is very broken
8154       if test "$host_cpu" != ia64; then
8155         ld_shlibs=no
8156         cat <<EOF 1>&2
8157
8158 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8159 *** to be unable to reliably create shared libraries on AIX.
8160 *** Therefore, libtool is disabling shared libraries support.  If you
8161 *** really care for shared libraries, you may want to modify your PATH
8162 *** so that a non-GNU linker is found, and then restart.
8163
8164 EOF
8165       fi
8166       ;;
8167
8168     amigaos*)
8169       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)'
8170       hardcode_libdir_flag_spec='-L$libdir'
8171       hardcode_minus_L=yes
8172
8173       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8174       # that the semantics of dynamic libraries on AmigaOS, at least up
8175       # to version 4, is to share data among multiple programs linked
8176       # with the same dynamic library.  Since this doesn't match the
8177       # behavior of shared libraries on other platforms, we can't use
8178       # them.
8179       ld_shlibs=no
8180       ;;
8181
8182     beos*)
8183       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8184         allow_undefined_flag=unsupported
8185         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8186         # support --undefined.  This deserves some investigation.  FIXME
8187         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188       else
8189         ld_shlibs=no
8190       fi
8191       ;;
8192
8193     cygwin* | mingw* | pw32*)
8194       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8195       # as there is no search path for DLLs.
8196       hardcode_libdir_flag_spec='-L$libdir'
8197       allow_undefined_flag=unsupported
8198       always_export_symbols=no
8199       enable_shared_with_static_runtimes=yes
8200       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8201
8202       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8203         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8204         # If the export-symbols file already is a .def file (1st line
8205         # is EXPORTS), use it as is; otherwise, prepend...
8206         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8207           cp $export_symbols $output_objdir/$soname.def;
8208         else
8209           echo EXPORTS > $output_objdir/$soname.def;
8210           cat $export_symbols >> $output_objdir/$soname.def;
8211         fi~
8212         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8213       else
8214         ld_shlibs=no
8215       fi
8216       ;;
8217
8218     linux*)
8219       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8220         tmp_addflag=
8221         case $cc_basename,$host_cpu in
8222         pgcc*)                          # Portland Group C compiler
8223           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'
8224           tmp_addflag=' $pic_flag'
8225           ;;
8226         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8227           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'
8228           tmp_addflag=' $pic_flag -Mnomain' ;;
8229         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8230           tmp_addflag=' -i_dynamic' ;;
8231         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8232           tmp_addflag=' -i_dynamic -nofor_main' ;;
8233         ifc* | ifort*)                  # Intel Fortran compiler
8234           tmp_addflag=' -nofor_main' ;;
8235         esac
8236         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237
8238         if test $supports_anon_versioning = yes; then
8239           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8240   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8241   $echo "local: *; };" >> $output_objdir/$libname.ver~
8242           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8243         fi
8244       else
8245         ld_shlibs=no
8246       fi
8247       ;;
8248
8249     netbsd*)
8250       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8251         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8252         wlarc=
8253       else
8254         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8256       fi
8257       ;;
8258
8259     solaris* | sysv5*)
8260       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8261         ld_shlibs=no
8262         cat <<EOF 1>&2
8263
8264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8265 *** create shared libraries on Solaris systems.  Therefore, libtool
8266 *** is disabling shared libraries support.  We urge you to upgrade GNU
8267 *** binutils to release 2.9.1 or newer.  Another option is to modify
8268 *** your PATH or compiler configuration so that the native linker is
8269 *** used, and then restart.
8270
8271 EOF
8272       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275       else
8276         ld_shlibs=no
8277       fi
8278       ;;
8279
8280     sunos4*)
8281       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8282       wlarc=
8283       hardcode_direct=yes
8284       hardcode_shlibpath_var=no
8285       ;;
8286
8287     *)
8288       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8289         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8291       else
8292         ld_shlibs=no
8293       fi
8294       ;;
8295     esac
8296
8297     if test "$ld_shlibs" = no; then
8298       runpath_var=
8299       hardcode_libdir_flag_spec=
8300       export_dynamic_flag_spec=
8301       whole_archive_flag_spec=
8302     fi
8303   else
8304     # PORTME fill in a description of your system's linker (not GNU ld)
8305     case $host_os in
8306     aix3*)
8307       allow_undefined_flag=unsupported
8308       always_export_symbols=yes
8309       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'
8310       # Note: this linker hardcodes the directories in LIBPATH if there
8311       # are no directories specified by -L.
8312       hardcode_minus_L=yes
8313       if test "$GCC" = yes && test -z "$link_static_flag"; then
8314         # Neither direct hardcoding nor static linking is supported with a
8315         # broken collect2.
8316         hardcode_direct=unsupported
8317       fi
8318       ;;
8319
8320     aix4* | aix5*)
8321       if test "$host_cpu" = ia64; then
8322         # On IA64, the linker does run time linking by default, so we don't
8323         # have to do anything special.
8324         aix_use_runtimelinking=no
8325         exp_sym_flag='-Bexport'
8326         no_entry_flag=""
8327       else
8328         # If we're using GNU nm, then we don't want the "-C" option.
8329         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8330         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8331           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'
8332         else
8333           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'
8334         fi
8335         aix_use_runtimelinking=no
8336
8337         # Test if we are trying to use run time linking or normal
8338         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8339         # need to do runtime linking.
8340         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8341           for ld_flag in $LDFLAGS; do
8342           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8343             aix_use_runtimelinking=yes
8344             break
8345           fi
8346           done
8347         esac
8348
8349         exp_sym_flag='-bexport'
8350         no_entry_flag='-bnoentry'
8351       fi
8352
8353       # When large executables or shared objects are built, AIX ld can
8354       # have problems creating the table of contents.  If linking a library
8355       # or program results in "error TOC overflow" add -mminimal-toc to
8356       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8357       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8358
8359       archive_cmds=''
8360       hardcode_direct=yes
8361       hardcode_libdir_separator=':'
8362       link_all_deplibs=yes
8363
8364       if test "$GCC" = yes; then
8365         case $host_os in aix4.[012]|aix4.[012].*)
8366         # We only want to do this on AIX 4.2 and lower, the check
8367         # below for broken collect2 doesn't work under 4.3+
8368           collect2name=`${CC} -print-prog-name=collect2`
8369           if test -f "$collect2name" && \
8370            strings "$collect2name" | grep resolve_lib_name >/dev/null
8371           then
8372           # We have reworked collect2
8373           hardcode_direct=yes
8374           else
8375           # We have old collect2
8376           hardcode_direct=unsupported
8377           # It fails to find uninstalled libraries when the uninstalled
8378           # path is not listed in the libpath.  Setting hardcode_minus_L
8379           # to unsupported forces relinking
8380           hardcode_minus_L=yes
8381           hardcode_libdir_flag_spec='-L$libdir'
8382           hardcode_libdir_separator=
8383           fi
8384         esac
8385         shared_flag='-shared'
8386         if test "$aix_use_runtimelinking" = yes; then
8387           shared_flag="$shared_flag "'${wl}-G'
8388         fi
8389       else
8390         # not using gcc
8391         if test "$host_cpu" = ia64; then
8392         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8393         # chokes on -Wl,-G. The following line is correct:
8394           shared_flag='-G'
8395         else
8396         if test "$aix_use_runtimelinking" = yes; then
8397             shared_flag='${wl}-G'
8398           else
8399             shared_flag='${wl}-bM:SRE'
8400         fi
8401         fi
8402       fi
8403
8404       # It seems that -bexpall does not export symbols beginning with
8405       # underscore (_), so it is better to generate a list of symbols to export.
8406       always_export_symbols=yes
8407       if test "$aix_use_runtimelinking" = yes; then
8408         # Warning - without using the other runtime loading flags (-brtl),
8409         # -berok will link without error, but may produce a broken library.
8410         allow_undefined_flag='-berok'
8411        # Determine the default libpath from the value encoded in an empty executable.
8412        cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418
8419 int
8420 main ()
8421 {
8422
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429   (eval $ac_link) 2>conftest.er1
8430   ac_status=$?
8431   grep -v '^ *+' conftest.er1 >conftest.err
8432   rm -f conftest.er1
8433   cat conftest.err >&5
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } &&
8436          { ac_try='test -z "$ac_c_werror_flag"
8437                          || test ! -s conftest.err'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; } &&
8443          { ac_try='test -s conftest$ac_exeext'
8444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445   (eval $ac_try) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449
8450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8451 }'`
8452 # Check for a 64-bit object if we didn't find anything.
8453 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; }
8454 }'`; fi
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459 fi
8460 rm -f conftest.err conftest.$ac_objext \
8461       conftest$ac_exeext conftest.$ac_ext
8462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8463
8464        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8465         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"
8466        else
8467         if test "$host_cpu" = ia64; then
8468           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8469           allow_undefined_flag="-z nodefs"
8470           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"
8471         else
8472          # Determine the default libpath from the value encoded in an empty executable.
8473          cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h.  */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h.  */
8479
8480 int
8481 main ()
8482 {
8483
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490   (eval $ac_link) 2>conftest.er1
8491   ac_status=$?
8492   grep -v '^ *+' conftest.er1 >conftest.err
8493   rm -f conftest.er1
8494   cat conftest.err >&5
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } &&
8497          { ac_try='test -z "$ac_c_werror_flag"
8498                          || test ! -s conftest.err'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; } &&
8504          { ac_try='test -s conftest$ac_exeext'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510
8511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8512 }'`
8513 # Check for a 64-bit object if we didn't find anything.
8514 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; }
8515 }'`; fi
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 fi
8521 rm -f conftest.err conftest.$ac_objext \
8522       conftest$ac_exeext conftest.$ac_ext
8523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8524
8525          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8526           # Warning - without using the other run time loading flags,
8527           # -berok will link without error, but may produce a broken library.
8528           no_undefined_flag=' ${wl}-bernotok'
8529           allow_undefined_flag=' ${wl}-berok'
8530           # -bexpall does not export symbols beginning with underscore (_)
8531           always_export_symbols=yes
8532           # Exported symbols can be pulled into shared objects from archives
8533           whole_archive_flag_spec=' '
8534           archive_cmds_need_lc=yes
8535           # This is similar to how AIX traditionally builds its shared libraries.
8536           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'
8537         fi
8538       fi
8539       ;;
8540
8541     amigaos*)
8542       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)'
8543       hardcode_libdir_flag_spec='-L$libdir'
8544       hardcode_minus_L=yes
8545       # see comment about different semantics on the GNU ld section
8546       ld_shlibs=no
8547       ;;
8548
8549     bsdi[45]*)
8550       export_dynamic_flag_spec=-rdynamic
8551       ;;
8552
8553     cygwin* | mingw* | pw32*)
8554       # When not using gcc, we currently assume that we are using
8555       # Microsoft Visual C++.
8556       # hardcode_libdir_flag_spec is actually meaningless, as there is
8557       # no search path for DLLs.
8558       hardcode_libdir_flag_spec=' '
8559       allow_undefined_flag=unsupported
8560       # Tell ltmain to make .lib files, not .a files.
8561       libext=lib
8562       # Tell ltmain to make .dll files, not .so files.
8563       shrext_cmds=".dll"
8564       # FIXME: Setting linknames here is a bad hack.
8565       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8566       # The linker will automatically build a .lib file if we build a DLL.
8567       old_archive_From_new_cmds='true'
8568       # FIXME: Should let the user specify the lib program.
8569       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8570       fix_srcfile_path='`cygpath -w "$srcfile"`'
8571       enable_shared_with_static_runtimes=yes
8572       ;;
8573
8574     darwin* | rhapsody*)
8575       case $host_os in
8576         rhapsody* | darwin1.[012])
8577          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8578          ;;
8579        *) # Darwin 1.3 on
8580          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8581            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8582          else
8583            case ${MACOSX_DEPLOYMENT_TARGET} in
8584              10.[012])
8585                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8586                ;;
8587              10.*)
8588                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8589                ;;
8590            esac
8591          fi
8592          ;;
8593       esac
8594       archive_cmds_need_lc=no
8595       hardcode_direct=no
8596       hardcode_automatic=yes
8597       hardcode_shlibpath_var=unsupported
8598       whole_archive_flag_spec=''
8599       link_all_deplibs=yes
8600     if test "$GCC" = yes ; then
8601         output_verbose_link_cmd='echo'
8602         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8603       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8604       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8605       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}'
8606       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}'
8607     else
8608       case $cc_basename in
8609         xlc*)
8610          output_verbose_link_cmd='echo'
8611          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8612          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8613           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8614          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}'
8615           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}'
8616           ;;
8617        *)
8618          ld_shlibs=no
8619           ;;
8620       esac
8621     fi
8622       ;;
8623
8624     dgux*)
8625       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8626       hardcode_libdir_flag_spec='-L$libdir'
8627       hardcode_shlibpath_var=no
8628       ;;
8629
8630     freebsd1*)
8631       ld_shlibs=no
8632       ;;
8633
8634     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8635     # support.  Future versions do this automatically, but an explicit c++rt0.o
8636     # does not break anything, and helps significantly (at the cost of a little
8637     # extra space).
8638     freebsd2.2*)
8639       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8640       hardcode_libdir_flag_spec='-R$libdir'
8641       hardcode_direct=yes
8642       hardcode_shlibpath_var=no
8643       ;;
8644
8645     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8646     freebsd2*)
8647       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8648       hardcode_direct=yes
8649       hardcode_minus_L=yes
8650       hardcode_shlibpath_var=no
8651       ;;
8652
8653     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8654     freebsd* | kfreebsd*-gnu | dragonfly*)
8655       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8656       hardcode_libdir_flag_spec='-R$libdir'
8657       hardcode_direct=yes
8658       hardcode_shlibpath_var=no
8659       ;;
8660
8661     hpux9*)
8662       if test "$GCC" = yes; then
8663         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'
8664       else
8665         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'
8666       fi
8667       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8668       hardcode_libdir_separator=:
8669       hardcode_direct=yes
8670
8671       # hardcode_minus_L: Not really in the search PATH,
8672       # but as the default location of the library.
8673       hardcode_minus_L=yes
8674       export_dynamic_flag_spec='${wl}-E'
8675       ;;
8676
8677     hpux10* | hpux11*)
8678       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8679         case $host_cpu in
8680         hppa*64*|ia64*)
8681           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8682           ;;
8683         *)
8684           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8685           ;;
8686         esac
8687       else
8688         case $host_cpu in
8689         hppa*64*|ia64*)
8690           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8691           ;;
8692         *)
8693           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8694           ;;
8695         esac
8696       fi
8697       if test "$with_gnu_ld" = no; then
8698         case $host_cpu in
8699         hppa*64*)
8700           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8701           hardcode_libdir_flag_spec_ld='+b $libdir'
8702           hardcode_libdir_separator=:
8703           hardcode_direct=no
8704           hardcode_shlibpath_var=no
8705           ;;
8706         ia64*)
8707           hardcode_libdir_flag_spec='-L$libdir'
8708           hardcode_direct=no
8709           hardcode_shlibpath_var=no
8710
8711           # hardcode_minus_L: Not really in the search PATH,
8712           # but as the default location of the library.
8713           hardcode_minus_L=yes
8714           ;;
8715         *)
8716           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8717           hardcode_libdir_separator=:
8718           hardcode_direct=yes
8719           export_dynamic_flag_spec='${wl}-E'
8720
8721           # hardcode_minus_L: Not really in the search PATH,
8722           # but as the default location of the library.
8723           hardcode_minus_L=yes
8724           ;;
8725         esac
8726       fi
8727       ;;
8728
8729     irix5* | irix6* | nonstopux*)
8730       if test "$GCC" = yes; then
8731         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'
8732       else
8733         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'
8734         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8735       fi
8736       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8737       hardcode_libdir_separator=:
8738       link_all_deplibs=yes
8739       ;;
8740
8741     netbsd*)
8742       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8743         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8744       else
8745         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8746       fi
8747       hardcode_libdir_flag_spec='-R$libdir'
8748       hardcode_direct=yes
8749       hardcode_shlibpath_var=no
8750       ;;
8751
8752     newsos6)
8753       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754       hardcode_direct=yes
8755       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756       hardcode_libdir_separator=:
8757       hardcode_shlibpath_var=no
8758       ;;
8759
8760     openbsd*)
8761       hardcode_direct=yes
8762       hardcode_shlibpath_var=no
8763       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8764         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8765         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8766         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8767         export_dynamic_flag_spec='${wl}-E'
8768       else
8769        case $host_os in
8770          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8771            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8772            hardcode_libdir_flag_spec='-R$libdir'
8773            ;;
8774          *)
8775            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8776            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8777            ;;
8778        esac
8779       fi
8780       ;;
8781
8782     os2*)
8783       hardcode_libdir_flag_spec='-L$libdir'
8784       hardcode_minus_L=yes
8785       allow_undefined_flag=unsupported
8786       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'
8787       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8788       ;;
8789
8790     osf3*)
8791       if test "$GCC" = yes; then
8792         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8793         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'
8794       else
8795         allow_undefined_flag=' -expect_unresolved \*'
8796         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'
8797       fi
8798       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8799       hardcode_libdir_separator=:
8800       ;;
8801
8802     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8803       if test "$GCC" = yes; then
8804         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8805         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'
8806         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8807       else
8808         allow_undefined_flag=' -expect_unresolved \*'
8809         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'
8810         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8811         $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'
8812
8813         # Both c and cxx compiler support -rpath directly
8814         hardcode_libdir_flag_spec='-rpath $libdir'
8815       fi
8816       hardcode_libdir_separator=:
8817       ;;
8818
8819     sco3.2v5*)
8820       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821       hardcode_shlibpath_var=no
8822       export_dynamic_flag_spec='${wl}-Bexport'
8823       runpath_var=LD_RUN_PATH
8824       hardcode_runpath_var=yes
8825       ;;
8826
8827     solaris*)
8828       no_undefined_flag=' -z text'
8829       if test "$GCC" = yes; then
8830         wlarc='${wl}'
8831         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8833           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8834       else
8835         wlarc=''
8836         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8838         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8839       fi
8840       hardcode_libdir_flag_spec='-R$libdir'
8841       hardcode_shlibpath_var=no
8842       case $host_os in
8843       solaris2.[0-5] | solaris2.[0-5].*) ;;
8844       *)
8845         # The compiler driver will combine linker options so we
8846         # cannot just pass the convience library names through
8847         # without $wl, iff we do not link with $LD.
8848         # Luckily, gcc supports the same syntax we need for Sun Studio.
8849         # Supported since Solaris 2.6 (maybe 2.5.1?)
8850         case $wlarc in
8851         '')
8852           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8853         *)
8854           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' ;;
8855         esac ;;
8856       esac
8857       link_all_deplibs=yes
8858       ;;
8859
8860     sunos4*)
8861       if test "x$host_vendor" = xsequent; then
8862         # Use $CC to link under sequent, because it throws in some extra .o
8863         # files that make .init and .fini sections work.
8864         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8865       else
8866         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8867       fi
8868       hardcode_libdir_flag_spec='-L$libdir'
8869       hardcode_direct=yes
8870       hardcode_minus_L=yes
8871       hardcode_shlibpath_var=no
8872       ;;
8873
8874     sysv4)
8875       case $host_vendor in
8876         sni)
8877           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878           hardcode_direct=yes # is this really true???
8879         ;;
8880         siemens)
8881           ## LD is ld it makes a PLAMLIB
8882           ## CC just makes a GrossModule.
8883           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8884           reload_cmds='$CC -r -o $output$reload_objs'
8885           hardcode_direct=no
8886         ;;
8887         motorola)
8888           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8890         ;;
8891       esac
8892       runpath_var='LD_RUN_PATH'
8893       hardcode_shlibpath_var=no
8894       ;;
8895
8896     sysv4.3*)
8897       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898       hardcode_shlibpath_var=no
8899       export_dynamic_flag_spec='-Bexport'
8900       ;;
8901
8902     sysv4*MP*)
8903       if test -d /usr/nec; then
8904         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905         hardcode_shlibpath_var=no
8906         runpath_var=LD_RUN_PATH
8907         hardcode_runpath_var=yes
8908         ld_shlibs=yes
8909       fi
8910       ;;
8911
8912     sysv4.2uw2*)
8913       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8914       hardcode_direct=yes
8915       hardcode_minus_L=no
8916       hardcode_shlibpath_var=no
8917       hardcode_runpath_var=yes
8918       runpath_var=LD_RUN_PATH
8919       ;;
8920
8921    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8922       no_undefined_flag='${wl}-z ${wl}text'
8923       if test "$GCC" = yes; then
8924         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8925       else
8926         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8927       fi
8928       runpath_var='LD_RUN_PATH'
8929       hardcode_shlibpath_var=no
8930       ;;
8931
8932     sysv5*)
8933       no_undefined_flag=' -z text'
8934       # $CC -shared without GNU ld will not create a library from C++
8935       # object files and a static libstdc++, better avoid it by now
8936       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8938                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8939       hardcode_libdir_flag_spec=
8940       hardcode_shlibpath_var=no
8941       runpath_var='LD_RUN_PATH'
8942       ;;
8943
8944     uts4*)
8945       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946       hardcode_libdir_flag_spec='-L$libdir'
8947       hardcode_shlibpath_var=no
8948       ;;
8949
8950     *)
8951       ld_shlibs=no
8952       ;;
8953     esac
8954   fi
8955
8956 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8957 echo "${ECHO_T}$ld_shlibs" >&6
8958 test "$ld_shlibs" = no && can_build_shared=no
8959
8960 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8961 if test "$GCC" = yes; then
8962   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8963 fi
8964
8965 #
8966 # Do we need to explicitly link libc?
8967 #
8968 case "x$archive_cmds_need_lc" in
8969 x|xyes)
8970   # Assume -lc should be added
8971   archive_cmds_need_lc=yes
8972
8973   if test "$enable_shared" = yes && test "$GCC" = yes; then
8974     case $archive_cmds in
8975     *'~'*)
8976       # FIXME: we may have to deal with multi-command sequences.
8977       ;;
8978     '$CC '*)
8979       # Test whether the compiler implicitly links with -lc since on some
8980       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8981       # to ld, don't add -lc before -lgcc.
8982       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8983 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8984       $rm conftest*
8985       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8986
8987       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988   (eval $ac_compile) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } 2>conftest.err; then
8992         soname=conftest
8993         lib=conftest
8994         libobjs=conftest.$ac_objext
8995         deplibs=
8996         wl=$lt_prog_compiler_wl
8997         compiler_flags=-v
8998         linker_flags=-v
8999         verstring=
9000         output_objdir=.
9001         libname=conftest
9002         lt_save_allow_undefined_flag=$allow_undefined_flag
9003         allow_undefined_flag=
9004         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9005   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }
9009         then
9010           archive_cmds_need_lc=no
9011         else
9012           archive_cmds_need_lc=yes
9013         fi
9014         allow_undefined_flag=$lt_save_allow_undefined_flag
9015       else
9016         cat conftest.err 1>&5
9017       fi
9018       $rm conftest*
9019       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9020 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9021       ;;
9022     esac
9023   fi
9024   ;;
9025 esac
9026
9027 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9028 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9029 library_names_spec=
9030 libname_spec='lib$name'
9031 soname_spec=
9032 shrext_cmds=".so"
9033 postinstall_cmds=
9034 postuninstall_cmds=
9035 finish_cmds=
9036 finish_eval=
9037 shlibpath_var=
9038 shlibpath_overrides_runpath=unknown
9039 version_type=none
9040 dynamic_linker="$host_os ld.so"
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9042 if test "$GCC" = yes; then
9043   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9044   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9045     # if the path contains ";" then we assume it to be the separator
9046     # otherwise default to the standard path separator (i.e. ":") - it is
9047     # assumed that no part of a normal pathname contains ";" but that should
9048     # okay in the real world where ";" in dirpaths is itself problematic.
9049     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9050   else
9051     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9052   fi
9053 else
9054   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9055 fi
9056 need_lib_prefix=unknown
9057 hardcode_into_libs=no
9058
9059 # when you set need_version to no, make sure it does not cause -set_version
9060 # flags to be left without arguments
9061 need_version=unknown
9062
9063 case $host_os in
9064 aix3*)
9065   version_type=linux
9066   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9067   shlibpath_var=LIBPATH
9068
9069   # AIX 3 has no versioning support, so we append a major version to the name.
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   ;;
9072
9073 aix4* | aix5*)
9074   version_type=linux
9075   need_lib_prefix=no
9076   need_version=no
9077   hardcode_into_libs=yes
9078   if test "$host_cpu" = ia64; then
9079     # AIX 5 supports IA64
9080     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9081     shlibpath_var=LD_LIBRARY_PATH
9082   else
9083     # With GCC up to 2.95.x, collect2 would create an import file
9084     # for dependence libraries.  The import file would start with
9085     # the line `#! .'.  This would cause the generated library to
9086     # depend on `.', always an invalid library.  This was fixed in
9087     # development snapshots of GCC prior to 3.0.
9088     case $host_os in
9089       aix4 | aix4.[01] | aix4.[01].*)
9090       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9091            echo ' yes '
9092            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9093         :
9094       else
9095         can_build_shared=no
9096       fi
9097       ;;
9098     esac
9099     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9100     # soname into executable. Probably we can add versioning support to
9101     # collect2, so additional links can be useful in future.
9102     if test "$aix_use_runtimelinking" = yes; then
9103       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9104       # instead of lib<name>.a to let people know that these are not
9105       # typical AIX shared libraries.
9106       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107     else
9108       # We preserve .a as extension for shared libraries through AIX4.2
9109       # and later when we are not doing run time linking.
9110       library_names_spec='${libname}${release}.a $libname.a'
9111       soname_spec='${libname}${release}${shared_ext}$major'
9112     fi
9113     shlibpath_var=LIBPATH
9114   fi
9115   ;;
9116
9117 amigaos*)
9118   library_names_spec='$libname.ixlibrary $libname.a'
9119   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9120   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'
9121   ;;
9122
9123 beos*)
9124   library_names_spec='${libname}${shared_ext}'
9125   dynamic_linker="$host_os ld.so"
9126   shlibpath_var=LIBRARY_PATH
9127   ;;
9128
9129 bsdi[45]*)
9130   version_type=linux
9131   need_version=no
9132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133   soname_spec='${libname}${release}${shared_ext}$major'
9134   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9135   shlibpath_var=LD_LIBRARY_PATH
9136   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9137   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9138   # the default ld.so.conf also contains /usr/contrib/lib and
9139   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9140   # libtool to hard-code these into programs
9141   ;;
9142
9143 cygwin* | mingw* | pw32*)
9144   version_type=windows
9145   shrext_cmds=".dll"
9146   need_version=no
9147   need_lib_prefix=no
9148
9149   case $GCC,$host_os in
9150   yes,cygwin* | yes,mingw* | yes,pw32*)
9151     library_names_spec='$libname.dll.a'
9152     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9153     postinstall_cmds='base_file=`basename \${file}`~
9154       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9155       dldir=$destdir/`dirname \$dlpath`~
9156       test -d \$dldir || mkdir -p \$dldir~
9157       $install_prog $dir/$dlname \$dldir/$dlname~
9158       chmod a+x \$dldir/$dlname'
9159     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9160       dlpath=$dir/\$dldll~
9161        $rm \$dlpath'
9162     shlibpath_overrides_runpath=yes
9163
9164     case $host_os in
9165     cygwin*)
9166       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9167       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9168       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9169       ;;
9170     mingw*)
9171       # MinGW DLLs use traditional 'lib' prefix
9172       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9173       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9174       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9175         # It is most probably a Windows format PATH printed by
9176         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9177         # path with ; separators, and with drive letters. We can handle the
9178         # drive letters (cygwin fileutils understands them), so leave them,
9179         # especially as we might pass files found there to a mingw objdump,
9180         # which wouldn't understand a cygwinified path. Ahh.
9181         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9182       else
9183         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9184       fi
9185       ;;
9186     pw32*)
9187       # pw32 DLLs use 'pw' prefix rather than 'lib'
9188       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9189       ;;
9190     esac
9191     ;;
9192
9193   *)
9194     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9195     ;;
9196   esac
9197   dynamic_linker='Win32 ld.exe'
9198   # FIXME: first we should search . and the directory the executable is in
9199   shlibpath_var=PATH
9200   ;;
9201
9202 darwin* | rhapsody*)
9203   dynamic_linker="$host_os dyld"
9204   version_type=darwin
9205   need_lib_prefix=no
9206   need_version=no
9207   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9208   soname_spec='${libname}${release}${major}$shared_ext'
9209   shlibpath_overrides_runpath=yes
9210   shlibpath_var=DYLD_LIBRARY_PATH
9211   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9212   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9213   if test "$GCC" = yes; then
9214     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"`
9215   else
9216     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9217   fi
9218   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9219   ;;
9220
9221 dgux*)
9222   version_type=linux
9223   need_lib_prefix=no
9224   need_version=no
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9226   soname_spec='${libname}${release}${shared_ext}$major'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   ;;
9229
9230 freebsd1*)
9231   dynamic_linker=no
9232   ;;
9233
9234 kfreebsd*-gnu)
9235   version_type=linux
9236   need_lib_prefix=no
9237   need_version=no
9238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9239   soname_spec='${libname}${release}${shared_ext}$major'
9240   shlibpath_var=LD_LIBRARY_PATH
9241   shlibpath_overrides_runpath=no
9242   hardcode_into_libs=yes
9243   dynamic_linker='GNU ld.so'
9244   ;;
9245
9246 freebsd* | dragonfly*)
9247   # DragonFly does not have aout.  When/if they implement a new
9248   # versioning mechanism, adjust this.
9249   if test -x /usr/bin/objformat; then
9250     objformat=`/usr/bin/objformat`
9251   else
9252     case $host_os in
9253     freebsd[123]*) objformat=aout ;;
9254     *) objformat=elf ;;
9255     esac
9256   fi
9257   version_type=freebsd-$objformat
9258   case $version_type in
9259     freebsd-elf*)
9260       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9261       need_version=no
9262       need_lib_prefix=no
9263       ;;
9264     freebsd-*)
9265       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9266       need_version=yes
9267       ;;
9268   esac
9269   shlibpath_var=LD_LIBRARY_PATH
9270   case $host_os in
9271   freebsd2*)
9272     shlibpath_overrides_runpath=yes
9273     ;;
9274   freebsd3.[01]* | freebsdelf3.[01]*)
9275     shlibpath_overrides_runpath=yes
9276     hardcode_into_libs=yes
9277     ;;
9278   *) # from 3.2 on
9279     shlibpath_overrides_runpath=no
9280     hardcode_into_libs=yes
9281     ;;
9282   esac
9283   ;;
9284
9285 gnu*)
9286   version_type=linux
9287   need_lib_prefix=no
9288   need_version=no
9289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9290   soname_spec='${libname}${release}${shared_ext}$major'
9291   shlibpath_var=LD_LIBRARY_PATH
9292   hardcode_into_libs=yes
9293   ;;
9294
9295 hpux9* | hpux10* | hpux11*)
9296   # Give a soname corresponding to the major version so that dld.sl refuses to
9297   # link against other versions.
9298   version_type=sunos
9299   need_lib_prefix=no
9300   need_version=no
9301   case $host_cpu in
9302   ia64*)
9303     shrext_cmds='.so'
9304     hardcode_into_libs=yes
9305     dynamic_linker="$host_os dld.so"
9306     shlibpath_var=LD_LIBRARY_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     if test "X$HPUX_IA64_MODE" = X32; then
9311       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9312     else
9313       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9314     fi
9315     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9316     ;;
9317    hppa*64*)
9318      shrext_cmds='.sl'
9319      hardcode_into_libs=yes
9320      dynamic_linker="$host_os dld.sl"
9321      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9322      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9323      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324      soname_spec='${libname}${release}${shared_ext}$major'
9325      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9326      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9327      ;;
9328    *)
9329     shrext_cmds='.sl'
9330     dynamic_linker="$host_os dld.sl"
9331     shlibpath_var=SHLIB_PATH
9332     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334     soname_spec='${libname}${release}${shared_ext}$major'
9335     ;;
9336   esac
9337   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9338   postinstall_cmds='chmod 555 $lib'
9339   ;;
9340
9341 irix5* | irix6* | nonstopux*)
9342   case $host_os in
9343     nonstopux*) version_type=nonstopux ;;
9344     *)
9345         if test "$lt_cv_prog_gnu_ld" = yes; then
9346                 version_type=linux
9347         else
9348                 version_type=irix
9349         fi ;;
9350   esac
9351   need_lib_prefix=no
9352   need_version=no
9353   soname_spec='${libname}${release}${shared_ext}$major'
9354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9355   case $host_os in
9356   irix5* | nonstopux*)
9357     libsuff= shlibsuff=
9358     ;;
9359   *)
9360     case $LD in # libtool.m4 will add one of these switches to LD
9361     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9362       libsuff= shlibsuff= libmagic=32-bit;;
9363     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9364       libsuff=32 shlibsuff=N32 libmagic=N32;;
9365     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9366       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9367     *) libsuff= shlibsuff= libmagic=never-match;;
9368     esac
9369     ;;
9370   esac
9371   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9372   shlibpath_overrides_runpath=no
9373   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9374   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9375   hardcode_into_libs=yes
9376   ;;
9377
9378 # No shared lib support for Linux oldld, aout, or coff.
9379 linux*oldld* | linux*aout* | linux*coff*)
9380   dynamic_linker=no
9381   ;;
9382
9383 # This must be Linux ELF.
9384 linux*)
9385   version_type=linux
9386   need_lib_prefix=no
9387   need_version=no
9388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389   soname_spec='${libname}${release}${shared_ext}$major'
9390   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9391   shlibpath_var=LD_LIBRARY_PATH
9392   shlibpath_overrides_runpath=no
9393   # This implies no fast_install, which is unacceptable.
9394   # Some rework will be needed to allow for fast_install
9395   # before this can be enabled.
9396   hardcode_into_libs=yes
9397
9398   # Append ld.so.conf contents to the search path
9399   if test -f /etc/ld.so.conf; then
9400     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' ' '`
9401     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9402   fi
9403
9404   # We used to test for /lib/ld.so.1 and disable shared libraries on
9405   # powerpc, because MkLinux only supported shared libraries with the
9406   # GNU dynamic linker.  Since this was broken with cross compilers,
9407   # most powerpc-linux boxes support dynamic linking these days and
9408   # people can always --disable-shared, the test was removed, and we
9409   # assume the GNU/Linux dynamic linker is in use.
9410   dynamic_linker='GNU/Linux ld.so'
9411   ;;
9412
9413 knetbsd*-gnu)
9414   version_type=linux
9415   need_lib_prefix=no
9416   need_version=no
9417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9418   soname_spec='${libname}${release}${shared_ext}$major'
9419   shlibpath_var=LD_LIBRARY_PATH
9420   shlibpath_overrides_runpath=no
9421   hardcode_into_libs=yes
9422   dynamic_linker='GNU ld.so'
9423   ;;
9424
9425 netbsd*)
9426   version_type=sunos
9427   need_lib_prefix=no
9428   need_version=no
9429   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9431     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9432     dynamic_linker='NetBSD (a.out) ld.so'
9433   else
9434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9435     soname_spec='${libname}${release}${shared_ext}$major'
9436     dynamic_linker='NetBSD ld.elf_so'
9437   fi
9438   shlibpath_var=LD_LIBRARY_PATH
9439   shlibpath_overrides_runpath=yes
9440   hardcode_into_libs=yes
9441   ;;
9442
9443 newsos6)
9444   version_type=linux
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446   shlibpath_var=LD_LIBRARY_PATH
9447   shlibpath_overrides_runpath=yes
9448   ;;
9449
9450 nto-qnx*)
9451   version_type=linux
9452   need_lib_prefix=no
9453   need_version=no
9454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455   soname_spec='${libname}${release}${shared_ext}$major'
9456   shlibpath_var=LD_LIBRARY_PATH
9457   shlibpath_overrides_runpath=yes
9458   ;;
9459
9460 openbsd*)
9461   version_type=sunos
9462   need_lib_prefix=no
9463   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9464   case $host_os in
9465     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9466     *)                         need_version=no  ;;
9467   esac
9468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9469   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9470   shlibpath_var=LD_LIBRARY_PATH
9471   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9472     case $host_os in
9473       openbsd2.[89] | openbsd2.[89].*)
9474         shlibpath_overrides_runpath=no
9475         ;;
9476       *)
9477         shlibpath_overrides_runpath=yes
9478         ;;
9479       esac
9480   else
9481     shlibpath_overrides_runpath=yes
9482   fi
9483   ;;
9484
9485 os2*)
9486   libname_spec='$name'
9487   shrext_cmds=".dll"
9488   need_lib_prefix=no
9489   library_names_spec='$libname${shared_ext} $libname.a'
9490   dynamic_linker='OS/2 ld.exe'
9491   shlibpath_var=LIBPATH
9492   ;;
9493
9494 osf3* | osf4* | osf5*)
9495   version_type=osf
9496   need_lib_prefix=no
9497   need_version=no
9498   soname_spec='${libname}${release}${shared_ext}$major'
9499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500   shlibpath_var=LD_LIBRARY_PATH
9501   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9502   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9503   ;;
9504
9505 sco3.2v5*)
9506   version_type=osf
9507   soname_spec='${libname}${release}${shared_ext}$major'
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509   shlibpath_var=LD_LIBRARY_PATH
9510   ;;
9511
9512 solaris*)
9513   version_type=linux
9514   need_lib_prefix=no
9515   need_version=no
9516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517   soname_spec='${libname}${release}${shared_ext}$major'
9518   shlibpath_var=LD_LIBRARY_PATH
9519   shlibpath_overrides_runpath=yes
9520   hardcode_into_libs=yes
9521   # ldd complains unless libraries are executable
9522   postinstall_cmds='chmod +x $lib'
9523   ;;
9524
9525 sunos4*)
9526   version_type=sunos
9527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9528   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9529   shlibpath_var=LD_LIBRARY_PATH
9530   shlibpath_overrides_runpath=yes
9531   if test "$with_gnu_ld" = yes; then
9532     need_lib_prefix=no
9533   fi
9534   need_version=yes
9535   ;;
9536
9537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9538   version_type=linux
9539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540   soname_spec='${libname}${release}${shared_ext}$major'
9541   shlibpath_var=LD_LIBRARY_PATH
9542   case $host_vendor in
9543     sni)
9544       shlibpath_overrides_runpath=no
9545       need_lib_prefix=no
9546       export_dynamic_flag_spec='${wl}-Blargedynsym'
9547       runpath_var=LD_RUN_PATH
9548       ;;
9549     siemens)
9550       need_lib_prefix=no
9551       ;;
9552     motorola)
9553       need_lib_prefix=no
9554       need_version=no
9555       shlibpath_overrides_runpath=no
9556       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9557       ;;
9558   esac
9559   ;;
9560
9561 sysv4*MP*)
9562   if test -d /usr/nec ;then
9563     version_type=linux
9564     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9565     soname_spec='$libname${shared_ext}.$major'
9566     shlibpath_var=LD_LIBRARY_PATH
9567   fi
9568   ;;
9569
9570 uts4*)
9571   version_type=linux
9572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573   soname_spec='${libname}${release}${shared_ext}$major'
9574   shlibpath_var=LD_LIBRARY_PATH
9575   ;;
9576
9577 *)
9578   dynamic_linker=no
9579   ;;
9580 esac
9581 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9582 echo "${ECHO_T}$dynamic_linker" >&6
9583 test "$dynamic_linker" = no && can_build_shared=no
9584
9585 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9586 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9587 hardcode_action=
9588 if test -n "$hardcode_libdir_flag_spec" || \
9589    test -n "$runpath_var" || \
9590    test "X$hardcode_automatic" = "Xyes" ; then
9591
9592   # We can hardcode non-existant directories.
9593   if test "$hardcode_direct" != no &&
9594      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9595      # have to relink, otherwise we might link with an installed library
9596      # when we should be linking with a yet-to-be-installed one
9597      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9598      test "$hardcode_minus_L" != no; then
9599     # Linking always hardcodes the temporary library directory.
9600     hardcode_action=relink
9601   else
9602     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9603     hardcode_action=immediate
9604   fi
9605 else
9606   # We cannot hardcode anything, or else we can only hardcode existing
9607   # directories.
9608   hardcode_action=unsupported
9609 fi
9610 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9611 echo "${ECHO_T}$hardcode_action" >&6
9612
9613 if test "$hardcode_action" = relink; then
9614   # Fast installation is not supported
9615   enable_fast_install=no
9616 elif test "$shlibpath_overrides_runpath" = yes ||
9617      test "$enable_shared" = no; then
9618   # Fast installation is not necessary
9619   enable_fast_install=needless
9620 fi
9621
9622 striplib=
9623 old_striplib=
9624 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9625 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9626 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9627   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9628   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9629   echo "$as_me:$LINENO: result: yes" >&5
9630 echo "${ECHO_T}yes" >&6
9631 else
9632 # FIXME - insert some real tests, host_os isn't really good enough
9633   case $host_os in
9634    darwin*)
9635        if test -n "$STRIP" ; then
9636          striplib="$STRIP -x"
9637          echo "$as_me:$LINENO: result: yes" >&5
9638 echo "${ECHO_T}yes" >&6
9639        else
9640   echo "$as_me:$LINENO: result: no" >&5
9641 echo "${ECHO_T}no" >&6
9642 fi
9643        ;;
9644    *)
9645   echo "$as_me:$LINENO: result: no" >&5
9646 echo "${ECHO_T}no" >&6
9647     ;;
9648   esac
9649 fi
9650
9651 if test "x$enable_dlopen" != xyes; then
9652   enable_dlopen=unknown
9653   enable_dlopen_self=unknown
9654   enable_dlopen_self_static=unknown
9655 else
9656   lt_cv_dlopen=no
9657   lt_cv_dlopen_libs=
9658
9659   case $host_os in
9660   beos*)
9661     lt_cv_dlopen="load_add_on"
9662     lt_cv_dlopen_libs=
9663     lt_cv_dlopen_self=yes
9664     ;;
9665
9666   mingw* | pw32*)
9667     lt_cv_dlopen="LoadLibrary"
9668     lt_cv_dlopen_libs=
9669    ;;
9670
9671   cygwin*)
9672     lt_cv_dlopen="dlopen"
9673     lt_cv_dlopen_libs=
9674    ;;
9675
9676   darwin*)
9677   # if libdl is installed we need to link against it
9678     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   ac_check_lib_save_LIBS=$LIBS
9684 LIBS="-ldl  $LIBS"
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691
9692 /* Override any gcc2 internal prototype to avoid an error.  */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 /* We use char because int might match the return type of a gcc2
9697    builtin and then its argument prototype would still apply.  */
9698 char dlopen ();
9699 int
9700 main ()
9701 {
9702 dlopen ();
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709   (eval $ac_link) 2>conftest.er1
9710   ac_status=$?
9711   grep -v '^ *+' conftest.er1 >conftest.err
9712   rm -f conftest.er1
9713   cat conftest.err >&5
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } &&
9716          { ac_try='test -z "$ac_c_werror_flag"
9717                          || test ! -s conftest.err'
9718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719   (eval $ac_try) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); }; } &&
9723          { ac_try='test -s conftest$ac_exeext'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; }; then
9729   ac_cv_lib_dl_dlopen=yes
9730 else
9731   echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ac_cv_lib_dl_dlopen=no
9735 fi
9736 rm -f conftest.err conftest.$ac_objext \
9737       conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_lib_save_LIBS
9739 fi
9740 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9742 if test $ac_cv_lib_dl_dlopen = yes; then
9743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9744 else
9745
9746     lt_cv_dlopen="dyld"
9747     lt_cv_dlopen_libs=
9748     lt_cv_dlopen_self=yes
9749
9750 fi
9751
9752    ;;
9753
9754   *)
9755     echo "$as_me:$LINENO: checking for shl_load" >&5
9756 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9757 if test "${ac_cv_func_shl_load+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9768 #define shl_load innocuous_shl_load
9769
9770 /* System header to define __stub macros and hopefully few prototypes,
9771     which can conflict with char shl_load (); below.
9772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773     <limits.h> exists even on freestanding compilers.  */
9774
9775 #ifdef __STDC__
9776 # include <limits.h>
9777 #else
9778 # include <assert.h>
9779 #endif
9780
9781 #undef shl_load
9782
9783 /* Override any gcc2 internal prototype to avoid an error.  */
9784 #ifdef __cplusplus
9785 extern "C"
9786 {
9787 #endif
9788 /* We use char because int might match the return type of a gcc2
9789    builtin and then its argument prototype would still apply.  */
9790 char shl_load ();
9791 /* The GNU C library defines this for functions which it implements
9792     to always fail with ENOSYS.  Some functions are actually named
9793     something starting with __ and the normal name is an alias.  */
9794 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9795 choke me
9796 #else
9797 char (*f) () = shl_load;
9798 #endif
9799 #ifdef __cplusplus
9800 }
9801 #endif
9802
9803 int
9804 main ()
9805 {
9806 return f != shl_load;
9807   ;
9808   return 0;
9809 }
9810 _ACEOF
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9813   (eval $ac_link) 2>conftest.er1
9814   ac_status=$?
9815   grep -v '^ *+' conftest.er1 >conftest.err
9816   rm -f conftest.er1
9817   cat conftest.err >&5
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); } &&
9820          { ac_try='test -z "$ac_c_werror_flag"
9821                          || test ! -s conftest.err'
9822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823   (eval $ac_try) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; } &&
9827          { ac_try='test -s conftest$ac_exeext'
9828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829   (eval $ac_try) 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; }; then
9833   ac_cv_func_shl_load=yes
9834 else
9835   echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838 ac_cv_func_shl_load=no
9839 fi
9840 rm -f conftest.err conftest.$ac_objext \
9841       conftest$ac_exeext conftest.$ac_ext
9842 fi
9843 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9844 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9845 if test $ac_cv_func_shl_load = yes; then
9846   lt_cv_dlopen="shl_load"
9847 else
9848   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9849 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9850 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9851   echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853   ac_check_lib_save_LIBS=$LIBS
9854 LIBS="-ldld  $LIBS"
9855 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h.  */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h.  */
9861
9862 /* Override any gcc2 internal prototype to avoid an error.  */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 /* We use char because int might match the return type of a gcc2
9867    builtin and then its argument prototype would still apply.  */
9868 char shl_load ();
9869 int
9870 main ()
9871 {
9872 shl_load ();
9873   ;
9874   return 0;
9875 }
9876 _ACEOF
9877 rm -f conftest.$ac_objext conftest$ac_exeext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879   (eval $ac_link) 2>conftest.er1
9880   ac_status=$?
9881   grep -v '^ *+' conftest.er1 >conftest.err
9882   rm -f conftest.er1
9883   cat conftest.err >&5
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); } &&
9886          { ac_try='test -z "$ac_c_werror_flag"
9887                          || test ! -s conftest.err'
9888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889   (eval $ac_try) 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); }; } &&
9893          { ac_try='test -s conftest$ac_exeext'
9894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895   (eval $ac_try) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; }; then
9899   ac_cv_lib_dld_shl_load=yes
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 ac_cv_lib_dld_shl_load=no
9905 fi
9906 rm -f conftest.err conftest.$ac_objext \
9907       conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9909 fi
9910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9912 if test $ac_cv_lib_dld_shl_load = yes; then
9913   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9914 else
9915   echo "$as_me:$LINENO: checking for dlopen" >&5
9916 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9917 if test "${ac_cv_func_dlopen+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9928 #define dlopen innocuous_dlopen
9929
9930 /* System header to define __stub macros and hopefully few prototypes,
9931     which can conflict with char dlopen (); below.
9932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9933     <limits.h> exists even on freestanding compilers.  */
9934
9935 #ifdef __STDC__
9936 # include <limits.h>
9937 #else
9938 # include <assert.h>
9939 #endif
9940
9941 #undef dlopen
9942
9943 /* Override any gcc2 internal prototype to avoid an error.  */
9944 #ifdef __cplusplus
9945 extern "C"
9946 {
9947 #endif
9948 /* We use char because int might match the return type of a gcc2
9949    builtin and then its argument prototype would still apply.  */
9950 char dlopen ();
9951 /* The GNU C library defines this for functions which it implements
9952     to always fail with ENOSYS.  Some functions are actually named
9953     something starting with __ and the normal name is an alias.  */
9954 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9955 choke me
9956 #else
9957 char (*f) () = dlopen;
9958 #endif
9959 #ifdef __cplusplus
9960 }
9961 #endif
9962
9963 int
9964 main ()
9965 {
9966 return f != dlopen;
9967   ;
9968   return 0;
9969 }
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9973   (eval $ac_link) 2>conftest.er1
9974   ac_status=$?
9975   grep -v '^ *+' conftest.er1 >conftest.err
9976   rm -f conftest.er1
9977   cat conftest.err >&5
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } &&
9980          { ac_try='test -z "$ac_c_werror_flag"
9981                          || test ! -s conftest.err'
9982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983   (eval $ac_try) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; } &&
9987          { ac_try='test -s conftest$ac_exeext'
9988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989   (eval $ac_try) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; }; then
9993   ac_cv_func_dlopen=yes
9994 else
9995   echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9997
9998 ac_cv_func_dlopen=no
9999 fi
10000 rm -f conftest.err conftest.$ac_objext \
10001       conftest$ac_exeext conftest.$ac_ext
10002 fi
10003 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10004 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10005 if test $ac_cv_func_dlopen = yes; then
10006   lt_cv_dlopen="dlopen"
10007 else
10008   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10011   echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013   ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-ldl  $LIBS"
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10021
10022 /* Override any gcc2 internal prototype to avoid an error.  */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 /* We use char because int might match the return type of a gcc2
10027    builtin and then its argument prototype would still apply.  */
10028 char dlopen ();
10029 int
10030 main ()
10031 {
10032 dlopen ();
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039   (eval $ac_link) 2>conftest.er1
10040   ac_status=$?
10041   grep -v '^ *+' conftest.er1 >conftest.err
10042   rm -f conftest.er1
10043   cat conftest.err >&5
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } &&
10046          { ac_try='test -z "$ac_c_werror_flag"
10047                          || test ! -s conftest.err'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; } &&
10053          { ac_try='test -s conftest$ac_exeext'
10054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055   (eval $ac_try) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; }; then
10059   ac_cv_lib_dl_dlopen=yes
10060 else
10061   echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064 ac_cv_lib_dl_dlopen=no
10065 fi
10066 rm -f conftest.err conftest.$ac_objext \
10067       conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10069 fi
10070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10072 if test $ac_cv_lib_dl_dlopen = yes; then
10073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10074 else
10075   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10076 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10077 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-lsvld  $LIBS"
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088
10089 /* Override any gcc2 internal prototype to avoid an error.  */
10090 #ifdef __cplusplus
10091 extern "C"
10092 #endif
10093 /* We use char because int might match the return type of a gcc2
10094    builtin and then its argument prototype would still apply.  */
10095 char dlopen ();
10096 int
10097 main ()
10098 {
10099 dlopen ();
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106   (eval $ac_link) 2>conftest.er1
10107   ac_status=$?
10108   grep -v '^ *+' conftest.er1 >conftest.err
10109   rm -f conftest.er1
10110   cat conftest.err >&5
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } &&
10113          { ac_try='test -z "$ac_c_werror_flag"
10114                          || test ! -s conftest.err'
10115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116   (eval $ac_try) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; } &&
10120          { ac_try='test -s conftest$ac_exeext'
10121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122   (eval $ac_try) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_cv_lib_svld_dlopen=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131 ac_cv_lib_svld_dlopen=no
10132 fi
10133 rm -f conftest.err conftest.$ac_objext \
10134       conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10136 fi
10137 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10138 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10139 if test $ac_cv_lib_svld_dlopen = yes; then
10140   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10141 else
10142   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10143 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   ac_check_lib_save_LIBS=$LIBS
10148 LIBS="-ldld  $LIBS"
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155
10156 /* Override any gcc2 internal prototype to avoid an error.  */
10157 #ifdef __cplusplus
10158 extern "C"
10159 #endif
10160 /* We use char because int might match the return type of a gcc2
10161    builtin and then its argument prototype would still apply.  */
10162 char dld_link ();
10163 int
10164 main ()
10165 {
10166 dld_link ();
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173   (eval $ac_link) 2>conftest.er1
10174   ac_status=$?
10175   grep -v '^ *+' conftest.er1 >conftest.err
10176   rm -f conftest.er1
10177   cat conftest.err >&5
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); } &&
10180          { ac_try='test -z "$ac_c_werror_flag"
10181                          || test ! -s conftest.err'
10182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183   (eval $ac_try) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; } &&
10187          { ac_try='test -s conftest$ac_exeext'
10188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189   (eval $ac_try) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); }; }; then
10193   ac_cv_lib_dld_dld_link=yes
10194 else
10195   echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10197
10198 ac_cv_lib_dld_dld_link=no
10199 fi
10200 rm -f conftest.err conftest.$ac_objext \
10201       conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10203 fi
10204 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10205 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10206 if test $ac_cv_lib_dld_dld_link = yes; then
10207   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10208 fi
10209
10210
10211 fi
10212
10213
10214 fi
10215
10216
10217 fi
10218
10219
10220 fi
10221
10222
10223 fi
10224
10225     ;;
10226   esac
10227
10228   if test "x$lt_cv_dlopen" != xno; then
10229     enable_dlopen=yes
10230   else
10231     enable_dlopen=no
10232   fi
10233
10234   case $lt_cv_dlopen in
10235   dlopen)
10236     save_CPPFLAGS="$CPPFLAGS"
10237     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10238
10239     save_LDFLAGS="$LDFLAGS"
10240     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10241
10242     save_LIBS="$LIBS"
10243     LIBS="$lt_cv_dlopen_libs $LIBS"
10244
10245     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10246 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10247 if test "${lt_cv_dlopen_self+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250           if test "$cross_compiling" = yes; then :
10251   lt_cv_dlopen_self=cross
10252 else
10253   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10254   lt_status=$lt_dlunknown
10255   cat > conftest.$ac_ext <<EOF
10256 #line 10256 "configure"
10257 #include "confdefs.h"
10258
10259 #if HAVE_DLFCN_H
10260 #include <dlfcn.h>
10261 #endif
10262
10263 #include <stdio.h>
10264
10265 #ifdef RTLD_GLOBAL
10266 #  define LT_DLGLOBAL           RTLD_GLOBAL
10267 #else
10268 #  ifdef DL_GLOBAL
10269 #    define LT_DLGLOBAL         DL_GLOBAL
10270 #  else
10271 #    define LT_DLGLOBAL         0
10272 #  endif
10273 #endif
10274
10275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10276    find out it does not work in some platform. */
10277 #ifndef LT_DLLAZY_OR_NOW
10278 #  ifdef RTLD_LAZY
10279 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10280 #  else
10281 #    ifdef DL_LAZY
10282 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10283 #    else
10284 #      ifdef RTLD_NOW
10285 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10286 #      else
10287 #        ifdef DL_NOW
10288 #          define LT_DLLAZY_OR_NOW      DL_NOW
10289 #        else
10290 #          define LT_DLLAZY_OR_NOW      0
10291 #        endif
10292 #      endif
10293 #    endif
10294 #  endif
10295 #endif
10296
10297 #ifdef __cplusplus
10298 extern "C" void exit (int);
10299 #endif
10300
10301 void fnord() { int i=42;}
10302 int main ()
10303 {
10304   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10305   int status = $lt_dlunknown;
10306
10307   if (self)
10308     {
10309       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10310       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10311       /* dlclose (self); */
10312     }
10313
10314     exit (status);
10315 }
10316 EOF
10317   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318   (eval $ac_link) 2>&5
10319   ac_status=$?
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10322     (./conftest; exit; ) >&5 2>/dev/null
10323     lt_status=$?
10324     case x$lt_status in
10325       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10326       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10327       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10328     esac
10329   else :
10330     # compilation failed
10331     lt_cv_dlopen_self=no
10332   fi
10333 fi
10334 rm -fr conftest*
10335
10336
10337 fi
10338 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10339 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10340
10341     if test "x$lt_cv_dlopen_self" = xyes; then
10342       LDFLAGS="$LDFLAGS $link_static_flag"
10343       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10344 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10345 if test "${lt_cv_dlopen_self_static+set}" = set; then
10346   echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348           if test "$cross_compiling" = yes; then :
10349   lt_cv_dlopen_self_static=cross
10350 else
10351   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10352   lt_status=$lt_dlunknown
10353   cat > conftest.$ac_ext <<EOF
10354 #line 10354 "configure"
10355 #include "confdefs.h"
10356
10357 #if HAVE_DLFCN_H
10358 #include <dlfcn.h>
10359 #endif
10360
10361 #include <stdio.h>
10362
10363 #ifdef RTLD_GLOBAL
10364 #  define LT_DLGLOBAL           RTLD_GLOBAL
10365 #else
10366 #  ifdef DL_GLOBAL
10367 #    define LT_DLGLOBAL         DL_GLOBAL
10368 #  else
10369 #    define LT_DLGLOBAL         0
10370 #  endif
10371 #endif
10372
10373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10374    find out it does not work in some platform. */
10375 #ifndef LT_DLLAZY_OR_NOW
10376 #  ifdef RTLD_LAZY
10377 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10378 #  else
10379 #    ifdef DL_LAZY
10380 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10381 #    else
10382 #      ifdef RTLD_NOW
10383 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10384 #      else
10385 #        ifdef DL_NOW
10386 #          define LT_DLLAZY_OR_NOW      DL_NOW
10387 #        else
10388 #          define LT_DLLAZY_OR_NOW      0
10389 #        endif
10390 #      endif
10391 #    endif
10392 #  endif
10393 #endif
10394
10395 #ifdef __cplusplus
10396 extern "C" void exit (int);
10397 #endif
10398
10399 void fnord() { int i=42;}
10400 int main ()
10401 {
10402   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10403   int status = $lt_dlunknown;
10404
10405   if (self)
10406     {
10407       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10408       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10409       /* dlclose (self); */
10410     }
10411
10412     exit (status);
10413 }
10414 EOF
10415   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416   (eval $ac_link) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10420     (./conftest; exit; ) >&5 2>/dev/null
10421     lt_status=$?
10422     case x$lt_status in
10423       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10424       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10425       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10426     esac
10427   else :
10428     # compilation failed
10429     lt_cv_dlopen_self_static=no
10430   fi
10431 fi
10432 rm -fr conftest*
10433
10434
10435 fi
10436 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10437 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10438     fi
10439
10440     CPPFLAGS="$save_CPPFLAGS"
10441     LDFLAGS="$save_LDFLAGS"
10442     LIBS="$save_LIBS"
10443     ;;
10444   esac
10445
10446   case $lt_cv_dlopen_self in
10447   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10448   *) enable_dlopen_self=unknown ;;
10449   esac
10450
10451   case $lt_cv_dlopen_self_static in
10452   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10453   *) enable_dlopen_self_static=unknown ;;
10454   esac
10455 fi
10456
10457
10458 # Report which librarie types wil actually be built
10459 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10460 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10461 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10462 echo "${ECHO_T}$can_build_shared" >&6
10463
10464 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10465 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10466 test "$can_build_shared" = "no" && enable_shared=no
10467
10468 # On AIX, shared libraries and static libraries use the same namespace, and
10469 # are all built from PIC.
10470 case $host_os in
10471 aix3*)
10472   test "$enable_shared" = yes && enable_static=no
10473   if test -n "$RANLIB"; then
10474     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10475     postinstall_cmds='$RANLIB $lib'
10476   fi
10477   ;;
10478
10479 aix4* | aix5*)
10480   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10481     test "$enable_shared" = yes && enable_static=no
10482   fi
10483     ;;
10484 esac
10485 echo "$as_me:$LINENO: result: $enable_shared" >&5
10486 echo "${ECHO_T}$enable_shared" >&6
10487
10488 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10489 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10490 # Make sure either enable_shared or enable_static is yes.
10491 test "$enable_shared" = yes || enable_static=yes
10492 echo "$as_me:$LINENO: result: $enable_static" >&5
10493 echo "${ECHO_T}$enable_static" >&6
10494
10495 # The else clause should only fire when bootstrapping the
10496 # libtool distribution, otherwise you forgot to ship ltmain.sh
10497 # with your package, and you will get complaints that there are
10498 # no rules to generate ltmain.sh.
10499 if test -f "$ltmain"; then
10500   # See if we are running on zsh, and set the options which allow our commands through
10501   # without removal of \ escapes.
10502   if test -n "${ZSH_VERSION+set}" ; then
10503     setopt NO_GLOB_SUBST
10504   fi
10505   # Now quote all the things that may contain metacharacters while being
10506   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10507   # variables and quote the copies for generation of the libtool script.
10508   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10509     SED SHELL STRIP \
10510     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10511     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10512     deplibs_check_method reload_flag reload_cmds need_locks \
10513     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10514     lt_cv_sys_global_symbol_to_c_name_address \
10515     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10516     old_postinstall_cmds old_postuninstall_cmds \
10517     compiler \
10518     CC \
10519     LD \
10520     lt_prog_compiler_wl \
10521     lt_prog_compiler_pic \
10522     lt_prog_compiler_static \
10523     lt_prog_compiler_no_builtin_flag \
10524     export_dynamic_flag_spec \
10525     thread_safe_flag_spec \
10526     whole_archive_flag_spec \
10527     enable_shared_with_static_runtimes \
10528     old_archive_cmds \
10529     old_archive_from_new_cmds \
10530     predep_objects \
10531     postdep_objects \
10532     predeps \
10533     postdeps \
10534     compiler_lib_search_path \
10535     archive_cmds \
10536     archive_expsym_cmds \
10537     postinstall_cmds \
10538     postuninstall_cmds \
10539     old_archive_from_expsyms_cmds \
10540     allow_undefined_flag \
10541     no_undefined_flag \
10542     export_symbols_cmds \
10543     hardcode_libdir_flag_spec \
10544     hardcode_libdir_flag_spec_ld \
10545     hardcode_libdir_separator \
10546     hardcode_automatic \
10547     module_cmds \
10548     module_expsym_cmds \
10549     lt_cv_prog_compiler_c_o \
10550     exclude_expsyms \
10551     include_expsyms; do
10552
10553     case $var in
10554     old_archive_cmds | \
10555     old_archive_from_new_cmds | \
10556     archive_cmds | \
10557     archive_expsym_cmds | \
10558     module_cmds | \
10559     module_expsym_cmds | \
10560     old_archive_from_expsyms_cmds | \
10561     export_symbols_cmds | \
10562     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10563     postinstall_cmds | postuninstall_cmds | \
10564     old_postinstall_cmds | old_postuninstall_cmds | \
10565     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10566       # Double-quote double-evaled strings.
10567       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10568       ;;
10569     *)
10570       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10571       ;;
10572     esac
10573   done
10574
10575   case $lt_echo in
10576   *'\$0 --fallback-echo"')
10577     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10578     ;;
10579   esac
10580
10581 cfgfile="${ofile}T"
10582   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10583   $rm -f "$cfgfile"
10584   { echo "$as_me:$LINENO: creating $ofile" >&5
10585 echo "$as_me: creating $ofile" >&6;}
10586
10587   cat <<__EOF__ >> "$cfgfile"
10588 #! $SHELL
10589
10590 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10591 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10593 #
10594 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10595 # Free Software Foundation, Inc.
10596 #
10597 # This file is part of GNU Libtool:
10598 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10599 #
10600 # This program is free software; you can redistribute it and/or modify
10601 # it under the terms of the GNU General Public License as published by
10602 # the Free Software Foundation; either version 2 of the License, or
10603 # (at your option) any later version.
10604 #
10605 # This program is distributed in the hope that it will be useful, but
10606 # WITHOUT ANY WARRANTY; without even the implied warranty of
10607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10608 # General Public License for more details.
10609 #
10610 # You should have received a copy of the GNU General Public License
10611 # along with this program; if not, write to the Free Software
10612 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10613 #
10614 # As a special exception to the GNU General Public License, if you
10615 # distribute this file as part of a program that contains a
10616 # configuration script generated by Autoconf, you may include it under
10617 # the same distribution terms that you use for the rest of that program.
10618
10619 # A sed program that does not truncate output.
10620 SED=$lt_SED
10621
10622 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10623 Xsed="$SED -e 1s/^X//"
10624
10625 # The HP-UX ksh and POSIX shell print the target directory to stdout
10626 # if CDPATH is set.
10627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10628
10629 # The names of the tagged configurations supported by this script.
10630 available_tags=
10631
10632 # ### BEGIN LIBTOOL CONFIG
10633
10634 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10635
10636 # Shell to use when invoking shell scripts.
10637 SHELL=$lt_SHELL
10638
10639 # Whether or not to build shared libraries.
10640 build_libtool_libs=$enable_shared
10641
10642 # Whether or not to build static libraries.
10643 build_old_libs=$enable_static
10644
10645 # Whether or not to add -lc for building shared libraries.
10646 build_libtool_need_lc=$archive_cmds_need_lc
10647
10648 # Whether or not to disallow shared libs when runtime libs are static
10649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10650
10651 # Whether or not to optimize for fast installation.
10652 fast_install=$enable_fast_install
10653
10654 # The host system.
10655 host_alias=$host_alias
10656 host=$host
10657 host_os=$host_os
10658
10659 # The build system.
10660 build_alias=$build_alias
10661 build=$build
10662 build_os=$build_os
10663
10664 # An echo program that does not interpret backslashes.
10665 echo=$lt_echo
10666
10667 # The archiver.
10668 AR=$lt_AR
10669 AR_FLAGS=$lt_AR_FLAGS
10670
10671 # A C compiler.
10672 LTCC=$lt_LTCC
10673
10674 # A language-specific compiler.
10675 CC=$lt_compiler
10676
10677 # Is the compiler the GNU C compiler?
10678 with_gcc=$GCC
10679
10680 # An ERE matcher.
10681 EGREP=$lt_EGREP
10682
10683 # The linker used to build libraries.
10684 LD=$lt_LD
10685
10686 # Whether we need hard or soft links.
10687 LN_S=$lt_LN_S
10688
10689 # A BSD-compatible nm program.
10690 NM=$lt_NM
10691
10692 # A symbol stripping program
10693 STRIP=$lt_STRIP
10694
10695 # Used to examine libraries when file_magic_cmd begins "file"
10696 MAGIC_CMD=$MAGIC_CMD
10697
10698 # Used on cygwin: DLL creation program.
10699 DLLTOOL="$DLLTOOL"
10700
10701 # Used on cygwin: object dumper.
10702 OBJDUMP="$OBJDUMP"
10703
10704 # Used on cygwin: assembler.
10705 AS="$AS"
10706
10707 # The name of the directory that contains temporary libtool files.
10708 objdir=$objdir
10709
10710 # How to create reloadable object files.
10711 reload_flag=$lt_reload_flag
10712 reload_cmds=$lt_reload_cmds
10713
10714 # How to pass a linker flag through the compiler.
10715 wl=$lt_lt_prog_compiler_wl
10716
10717 # Object file suffix (normally "o").
10718 objext="$ac_objext"
10719
10720 # Old archive suffix (normally "a").
10721 libext="$libext"
10722
10723 # Shared library suffix (normally ".so").
10724 shrext_cmds='$shrext_cmds'
10725
10726 # Executable file suffix (normally "").
10727 exeext="$exeext"
10728
10729 # Additional compiler flags for building library objects.
10730 pic_flag=$lt_lt_prog_compiler_pic
10731 pic_mode=$pic_mode
10732
10733 # What is the maximum length of a command?
10734 max_cmd_len=$lt_cv_sys_max_cmd_len
10735
10736 # Does compiler simultaneously support -c and -o options?
10737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10738
10739 # Must we lock files when doing compilation?
10740 need_locks=$lt_need_locks
10741
10742 # Do we need the lib prefix for modules?
10743 need_lib_prefix=$need_lib_prefix
10744
10745 # Do we need a version for libraries?
10746 need_version=$need_version
10747
10748 # Whether dlopen is supported.
10749 dlopen_support=$enable_dlopen
10750
10751 # Whether dlopen of programs is supported.
10752 dlopen_self=$enable_dlopen_self
10753
10754 # Whether dlopen of statically linked programs is supported.
10755 dlopen_self_static=$enable_dlopen_self_static
10756
10757 # Compiler flag to prevent dynamic linking.
10758 link_static_flag=$lt_lt_prog_compiler_static
10759
10760 # Compiler flag to turn off builtin functions.
10761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10762
10763 # Compiler flag to allow reflexive dlopens.
10764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10765
10766 # Compiler flag to generate shared objects directly from archives.
10767 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10768
10769 # Compiler flag to generate thread-safe objects.
10770 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10771
10772 # Library versioning type.
10773 version_type=$version_type
10774
10775 # Format of library name prefix.
10776 libname_spec=$lt_libname_spec
10777
10778 # List of archive names.  First name is the real one, the rest are links.
10779 # The last name is the one that the linker finds with -lNAME.
10780 library_names_spec=$lt_library_names_spec
10781
10782 # The coded name of the library, if different from the real name.
10783 soname_spec=$lt_soname_spec
10784
10785 # Commands used to build and install an old-style archive.
10786 RANLIB=$lt_RANLIB
10787 old_archive_cmds=$lt_old_archive_cmds
10788 old_postinstall_cmds=$lt_old_postinstall_cmds
10789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10790
10791 # Create an old-style archive from a shared archive.
10792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10793
10794 # Create a temporary old-style archive to link instead of a shared archive.
10795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10796
10797 # Commands used to build and install a shared archive.
10798 archive_cmds=$lt_archive_cmds
10799 archive_expsym_cmds=$lt_archive_expsym_cmds
10800 postinstall_cmds=$lt_postinstall_cmds
10801 postuninstall_cmds=$lt_postuninstall_cmds
10802
10803 # Commands used to build a loadable module (assumed same as above if empty)
10804 module_cmds=$lt_module_cmds
10805 module_expsym_cmds=$lt_module_expsym_cmds
10806
10807 # Commands to strip libraries.
10808 old_striplib=$lt_old_striplib
10809 striplib=$lt_striplib
10810
10811 # Dependencies to place before the objects being linked to create a
10812 # shared library.
10813 predep_objects=$lt_predep_objects
10814
10815 # Dependencies to place after the objects being linked to create a
10816 # shared library.
10817 postdep_objects=$lt_postdep_objects
10818
10819 # Dependencies to place before the objects being linked to create a
10820 # shared library.
10821 predeps=$lt_predeps
10822
10823 # Dependencies to place after the objects being linked to create a
10824 # shared library.
10825 postdeps=$lt_postdeps
10826
10827 # The library search path used internally by the compiler when linking
10828 # a shared library.
10829 compiler_lib_search_path=$lt_compiler_lib_search_path
10830
10831 # Method to check whether dependent libraries are shared objects.
10832 deplibs_check_method=$lt_deplibs_check_method
10833
10834 # Command to use when deplibs_check_method == file_magic.
10835 file_magic_cmd=$lt_file_magic_cmd
10836
10837 # Flag that allows shared libraries with undefined symbols to be built.
10838 allow_undefined_flag=$lt_allow_undefined_flag
10839
10840 # Flag that forces no undefined symbols.
10841 no_undefined_flag=$lt_no_undefined_flag
10842
10843 # Commands used to finish a libtool library installation in a directory.
10844 finish_cmds=$lt_finish_cmds
10845
10846 # Same as above, but a single script fragment to be evaled but not shown.
10847 finish_eval=$lt_finish_eval
10848
10849 # Take the output of nm and produce a listing of raw symbols and C names.
10850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10851
10852 # Transform the output of nm in a proper C declaration
10853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10854
10855 # Transform the output of nm in a C name address pair
10856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10857
10858 # This is the shared library runtime path variable.
10859 runpath_var=$runpath_var
10860
10861 # This is the shared library path variable.
10862 shlibpath_var=$shlibpath_var
10863
10864 # Is shlibpath searched before the hard-coded library search path?
10865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10866
10867 # How to hardcode a shared library path into an executable.
10868 hardcode_action=$hardcode_action
10869
10870 # Whether we should hardcode library paths into libraries.
10871 hardcode_into_libs=$hardcode_into_libs
10872
10873 # Flag to hardcode \$libdir into a binary during linking.
10874 # This must work even if \$libdir does not exist.
10875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10876
10877 # If ld is used when linking, flag to hardcode \$libdir into
10878 # a binary during linking. This must work even if \$libdir does
10879 # not exist.
10880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10881
10882 # Whether we need a single -rpath flag with a separated argument.
10883 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10884
10885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10886 # resulting binary.
10887 hardcode_direct=$hardcode_direct
10888
10889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10890 # resulting binary.
10891 hardcode_minus_L=$hardcode_minus_L
10892
10893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10894 # the resulting binary.
10895 hardcode_shlibpath_var=$hardcode_shlibpath_var
10896
10897 # Set to yes if building a shared library automatically hardcodes DIR into the library
10898 # and all subsequent libraries and executables linked against it.
10899 hardcode_automatic=$hardcode_automatic
10900
10901 # Variables whose values should be saved in libtool wrapper scripts and
10902 # restored at relink time.
10903 variables_saved_for_relink="$variables_saved_for_relink"
10904
10905 # Whether libtool must link a program against all its dependency libraries.
10906 link_all_deplibs=$link_all_deplibs
10907
10908 # Compile-time system search path for libraries
10909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10910
10911 # Run-time system search path for libraries
10912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10913
10914 # Fix the shell variable \$srcfile for the compiler.
10915 fix_srcfile_path="$fix_srcfile_path"
10916
10917 # Set to yes if exported symbols are required.
10918 always_export_symbols=$always_export_symbols
10919
10920 # The commands to list exported symbols.
10921 export_symbols_cmds=$lt_export_symbols_cmds
10922
10923 # The commands to extract the exported symbol list from a shared archive.
10924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10925
10926 # Symbols that should not be listed in the preloaded symbols.
10927 exclude_expsyms=$lt_exclude_expsyms
10928
10929 # Symbols that must always be exported.
10930 include_expsyms=$lt_include_expsyms
10931
10932 # ### END LIBTOOL CONFIG
10933
10934 __EOF__
10935
10936
10937   case $host_os in
10938   aix3*)
10939     cat <<\EOF >> "$cfgfile"
10940
10941 # AIX sometimes has problems with the GCC collect2 program.  For some
10942 # reason, if we set the COLLECT_NAMES environment variable, the problems
10943 # vanish in a puff of smoke.
10944 if test "X${COLLECT_NAMES+set}" != Xset; then
10945   COLLECT_NAMES=
10946   export COLLECT_NAMES
10947 fi
10948 EOF
10949     ;;
10950   esac
10951
10952   # We use sed instead of cat because bash on DJGPP gets confused if
10953   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10954   # text mode, it properly converts lines to CR/LF.  This bash problem
10955   # is reportedly fixed, but why not run on old versions too?
10956   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10957
10958   mv -f "$cfgfile" "$ofile" || \
10959     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10960   chmod +x "$ofile"
10961
10962 else
10963   # If there is no Makefile yet, we rely on a make rule to execute
10964   # `config.status --recheck' to rerun these tests and create the
10965   # libtool script then.
10966   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10967   if test -f "$ltmain_in"; then
10968     test -f Makefile && make "$ltmain"
10969   fi
10970 fi
10971
10972
10973 ac_ext=c
10974 ac_cpp='$CPP $CPPFLAGS'
10975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10978
10979 CC="$lt_save_CC"
10980
10981
10982 # Check whether --with-tags or --without-tags was given.
10983 if test "${with_tags+set}" = set; then
10984   withval="$with_tags"
10985   tagnames="$withval"
10986 fi;
10987
10988 if test -f "$ltmain" && test -n "$tagnames"; then
10989   if test ! -f "${ofile}"; then
10990     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10991 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10992   fi
10993
10994   if test -z "$LTCC"; then
10995     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10996     if test -z "$LTCC"; then
10997       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10998 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10999     else
11000       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11001 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11002     fi
11003   fi
11004
11005   # Extract list of available tagged configurations in $ofile.
11006   # Note that this assumes the entire list is on one line.
11007   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11008
11009   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11010   for tagname in $tagnames; do
11011     IFS="$lt_save_ifs"
11012     # Check whether tagname contains only valid characters
11013     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11014     "") ;;
11015     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11016 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11017    { (exit 1); exit 1; }; }
11018         ;;
11019     esac
11020
11021     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11022     then
11023       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11024 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11025    { (exit 1); exit 1; }; }
11026     fi
11027
11028     # Update the list of available tags.
11029     if test -n "$tagname"; then
11030       echo appending configuration tag \"$tagname\" to $ofile
11031
11032       case $tagname in
11033       CXX)
11034         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11035             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11036             (test "X$CXX" != "Xg++"))) ; then
11037           :
11038         else
11039           tagname=""
11040         fi
11041         ;;
11042
11043       F77)
11044         if test -n "$F77" && test "X$F77" != "Xno"; then
11045           :
11046         else
11047           tagname=""
11048         fi
11049         ;;
11050
11051       GCJ)
11052         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11053           :
11054         else
11055           tagname=""
11056         fi
11057         ;;
11058
11059       RC)
11060
11061
11062
11063 # Source file extension for RC test sources.
11064 ac_ext=rc
11065
11066 # Object file extension for compiled RC test sources.
11067 objext=o
11068 objext_RC=$objext
11069
11070 # Code to be used in simple compile tests
11071 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11072
11073 # Code to be used in simple link tests
11074 lt_simple_link_test_code="$lt_simple_compile_test_code"
11075
11076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11077
11078 # If no C compiler was specified, use CC.
11079 LTCC=${LTCC-"$CC"}
11080
11081 # Allow CC to be a program name with arguments.
11082 compiler=$CC
11083
11084
11085 # save warnings/boilerplate of simple test code
11086 ac_outfile=conftest.$ac_objext
11087 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11088 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11089 _lt_compiler_boilerplate=`cat conftest.err`
11090 $rm conftest*
11091
11092 ac_outfile=conftest.$ac_objext
11093 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11094 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11095 _lt_linker_boilerplate=`cat conftest.err`
11096 $rm conftest*
11097
11098
11099 # Allow CC to be a program name with arguments.
11100 lt_save_CC="$CC"
11101 CC=${RC-"windres"}
11102 compiler=$CC
11103 compiler_RC=$CC
11104 for cc_temp in $compiler""; do
11105   case $cc_temp in
11106     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11107     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11108     \-*) ;;
11109     *) break;;
11110   esac
11111 done
11112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11113
11114 lt_cv_prog_compiler_c_o_RC=yes
11115
11116 # The else clause should only fire when bootstrapping the
11117 # libtool distribution, otherwise you forgot to ship ltmain.sh
11118 # with your package, and you will get complaints that there are
11119 # no rules to generate ltmain.sh.
11120 if test -f "$ltmain"; then
11121   # See if we are running on zsh, and set the options which allow our commands through
11122   # without removal of \ escapes.
11123   if test -n "${ZSH_VERSION+set}" ; then
11124     setopt NO_GLOB_SUBST
11125   fi
11126   # Now quote all the things that may contain metacharacters while being
11127   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11128   # variables and quote the copies for generation of the libtool script.
11129   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11130     SED SHELL STRIP \
11131     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11132     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11133     deplibs_check_method reload_flag reload_cmds need_locks \
11134     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11135     lt_cv_sys_global_symbol_to_c_name_address \
11136     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11137     old_postinstall_cmds old_postuninstall_cmds \
11138     compiler_RC \
11139     CC_RC \
11140     LD_RC \
11141     lt_prog_compiler_wl_RC \
11142     lt_prog_compiler_pic_RC \
11143     lt_prog_compiler_static_RC \
11144     lt_prog_compiler_no_builtin_flag_RC \
11145     export_dynamic_flag_spec_RC \
11146     thread_safe_flag_spec_RC \
11147     whole_archive_flag_spec_RC \
11148     enable_shared_with_static_runtimes_RC \
11149     old_archive_cmds_RC \
11150     old_archive_from_new_cmds_RC \
11151     predep_objects_RC \
11152     postdep_objects_RC \
11153     predeps_RC \
11154     postdeps_RC \
11155     compiler_lib_search_path_RC \
11156     archive_cmds_RC \
11157     archive_expsym_cmds_RC \
11158     postinstall_cmds_RC \
11159     postuninstall_cmds_RC \
11160     old_archive_from_expsyms_cmds_RC \
11161     allow_undefined_flag_RC \
11162     no_undefined_flag_RC \
11163     export_symbols_cmds_RC \
11164     hardcode_libdir_flag_spec_RC \
11165     hardcode_libdir_flag_spec_ld_RC \
11166     hardcode_libdir_separator_RC \
11167     hardcode_automatic_RC \
11168     module_cmds_RC \
11169     module_expsym_cmds_RC \
11170     lt_cv_prog_compiler_c_o_RC \
11171     exclude_expsyms_RC \
11172     include_expsyms_RC; do
11173
11174     case $var in
11175     old_archive_cmds_RC | \
11176     old_archive_from_new_cmds_RC | \
11177     archive_cmds_RC | \
11178     archive_expsym_cmds_RC | \
11179     module_cmds_RC | \
11180     module_expsym_cmds_RC | \
11181     old_archive_from_expsyms_cmds_RC | \
11182     export_symbols_cmds_RC | \
11183     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11184     postinstall_cmds | postuninstall_cmds | \
11185     old_postinstall_cmds | old_postuninstall_cmds | \
11186     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11187       # Double-quote double-evaled strings.
11188       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11189       ;;
11190     *)
11191       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11192       ;;
11193     esac
11194   done
11195
11196   case $lt_echo in
11197   *'\$0 --fallback-echo"')
11198     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11199     ;;
11200   esac
11201
11202 cfgfile="$ofile"
11203
11204   cat <<__EOF__ >> "$cfgfile"
11205 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11206
11207 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11208
11209 # Shell to use when invoking shell scripts.
11210 SHELL=$lt_SHELL
11211
11212 # Whether or not to build shared libraries.
11213 build_libtool_libs=$enable_shared
11214
11215 # Whether or not to build static libraries.
11216 build_old_libs=$enable_static
11217
11218 # Whether or not to add -lc for building shared libraries.
11219 build_libtool_need_lc=$archive_cmds_need_lc_RC
11220
11221 # Whether or not to disallow shared libs when runtime libs are static
11222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11223
11224 # Whether or not to optimize for fast installation.
11225 fast_install=$enable_fast_install
11226
11227 # The host system.
11228 host_alias=$host_alias
11229 host=$host
11230 host_os=$host_os
11231
11232 # The build system.
11233 build_alias=$build_alias
11234 build=$build
11235 build_os=$build_os
11236
11237 # An echo program that does not interpret backslashes.
11238 echo=$lt_echo
11239
11240 # The archiver.
11241 AR=$lt_AR
11242 AR_FLAGS=$lt_AR_FLAGS
11243
11244 # A C compiler.
11245 LTCC=$lt_LTCC
11246
11247 # A language-specific compiler.
11248 CC=$lt_compiler_RC
11249
11250 # Is the compiler the GNU C compiler?
11251 with_gcc=$GCC_RC
11252
11253 # An ERE matcher.
11254 EGREP=$lt_EGREP
11255
11256 # The linker used to build libraries.
11257 LD=$lt_LD_RC
11258
11259 # Whether we need hard or soft links.
11260 LN_S=$lt_LN_S
11261
11262 # A BSD-compatible nm program.
11263 NM=$lt_NM
11264
11265 # A symbol stripping program
11266 STRIP=$lt_STRIP
11267
11268 # Used to examine libraries when file_magic_cmd begins "file"
11269 MAGIC_CMD=$MAGIC_CMD
11270
11271 # Used on cygwin: DLL creation program.
11272 DLLTOOL="$DLLTOOL"
11273
11274 # Used on cygwin: object dumper.
11275 OBJDUMP="$OBJDUMP"
11276
11277 # Used on cygwin: assembler.
11278 AS="$AS"
11279
11280 # The name of the directory that contains temporary libtool files.
11281 objdir=$objdir
11282
11283 # How to create reloadable object files.
11284 reload_flag=$lt_reload_flag
11285 reload_cmds=$lt_reload_cmds
11286
11287 # How to pass a linker flag through the compiler.
11288 wl=$lt_lt_prog_compiler_wl_RC
11289
11290 # Object file suffix (normally "o").
11291 objext="$ac_objext"
11292
11293 # Old archive suffix (normally "a").
11294 libext="$libext"
11295
11296 # Shared library suffix (normally ".so").
11297 shrext_cmds='$shrext_cmds'
11298
11299 # Executable file suffix (normally "").
11300 exeext="$exeext"
11301
11302 # Additional compiler flags for building library objects.
11303 pic_flag=$lt_lt_prog_compiler_pic_RC
11304 pic_mode=$pic_mode
11305
11306 # What is the maximum length of a command?
11307 max_cmd_len=$lt_cv_sys_max_cmd_len
11308
11309 # Does compiler simultaneously support -c and -o options?
11310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11311
11312 # Must we lock files when doing compilation?
11313 need_locks=$lt_need_locks
11314
11315 # Do we need the lib prefix for modules?
11316 need_lib_prefix=$need_lib_prefix
11317
11318 # Do we need a version for libraries?
11319 need_version=$need_version
11320
11321 # Whether dlopen is supported.
11322 dlopen_support=$enable_dlopen
11323
11324 # Whether dlopen of programs is supported.
11325 dlopen_self=$enable_dlopen_self
11326
11327 # Whether dlopen of statically linked programs is supported.
11328 dlopen_self_static=$enable_dlopen_self_static
11329
11330 # Compiler flag to prevent dynamic linking.
11331 link_static_flag=$lt_lt_prog_compiler_static_RC
11332
11333 # Compiler flag to turn off builtin functions.
11334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11335
11336 # Compiler flag to allow reflexive dlopens.
11337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11338
11339 # Compiler flag to generate shared objects directly from archives.
11340 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11341
11342 # Compiler flag to generate thread-safe objects.
11343 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11344
11345 # Library versioning type.
11346 version_type=$version_type
11347
11348 # Format of library name prefix.
11349 libname_spec=$lt_libname_spec
11350
11351 # List of archive names.  First name is the real one, the rest are links.
11352 # The last name is the one that the linker finds with -lNAME.
11353 library_names_spec=$lt_library_names_spec
11354
11355 # The coded name of the library, if different from the real name.
11356 soname_spec=$lt_soname_spec
11357
11358 # Commands used to build and install an old-style archive.
11359 RANLIB=$lt_RANLIB
11360 old_archive_cmds=$lt_old_archive_cmds_RC
11361 old_postinstall_cmds=$lt_old_postinstall_cmds
11362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11363
11364 # Create an old-style archive from a shared archive.
11365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11366
11367 # Create a temporary old-style archive to link instead of a shared archive.
11368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11369
11370 # Commands used to build and install a shared archive.
11371 archive_cmds=$lt_archive_cmds_RC
11372 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11373 postinstall_cmds=$lt_postinstall_cmds
11374 postuninstall_cmds=$lt_postuninstall_cmds
11375
11376 # Commands used to build a loadable module (assumed same as above if empty)
11377 module_cmds=$lt_module_cmds_RC
11378 module_expsym_cmds=$lt_module_expsym_cmds_RC
11379
11380 # Commands to strip libraries.
11381 old_striplib=$lt_old_striplib
11382 striplib=$lt_striplib
11383
11384 # Dependencies to place before the objects being linked to create a
11385 # shared library.
11386 predep_objects=$lt_predep_objects_RC
11387
11388 # Dependencies to place after the objects being linked to create a
11389 # shared library.
11390 postdep_objects=$lt_postdep_objects_RC
11391
11392 # Dependencies to place before the objects being linked to create a
11393 # shared library.
11394 predeps=$lt_predeps_RC
11395
11396 # Dependencies to place after the objects being linked to create a
11397 # shared library.
11398 postdeps=$lt_postdeps_RC
11399
11400 # The library search path used internally by the compiler when linking
11401 # a shared library.
11402 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11403
11404 # Method to check whether dependent libraries are shared objects.
11405 deplibs_check_method=$lt_deplibs_check_method
11406
11407 # Command to use when deplibs_check_method == file_magic.
11408 file_magic_cmd=$lt_file_magic_cmd
11409
11410 # Flag that allows shared libraries with undefined symbols to be built.
11411 allow_undefined_flag=$lt_allow_undefined_flag_RC
11412
11413 # Flag that forces no undefined symbols.
11414 no_undefined_flag=$lt_no_undefined_flag_RC
11415
11416 # Commands used to finish a libtool library installation in a directory.
11417 finish_cmds=$lt_finish_cmds
11418
11419 # Same as above, but a single script fragment to be evaled but not shown.
11420 finish_eval=$lt_finish_eval
11421
11422 # Take the output of nm and produce a listing of raw symbols and C names.
11423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11424
11425 # Transform the output of nm in a proper C declaration
11426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11427
11428 # Transform the output of nm in a C name address pair
11429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11430
11431 # This is the shared library runtime path variable.
11432 runpath_var=$runpath_var
11433
11434 # This is the shared library path variable.
11435 shlibpath_var=$shlibpath_var
11436
11437 # Is shlibpath searched before the hard-coded library search path?
11438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11439
11440 # How to hardcode a shared library path into an executable.
11441 hardcode_action=$hardcode_action_RC
11442
11443 # Whether we should hardcode library paths into libraries.
11444 hardcode_into_libs=$hardcode_into_libs
11445
11446 # Flag to hardcode \$libdir into a binary during linking.
11447 # This must work even if \$libdir does not exist.
11448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11449
11450 # If ld is used when linking, flag to hardcode \$libdir into
11451 # a binary during linking. This must work even if \$libdir does
11452 # not exist.
11453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11454
11455 # Whether we need a single -rpath flag with a separated argument.
11456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11457
11458 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11459 # resulting binary.
11460 hardcode_direct=$hardcode_direct_RC
11461
11462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11463 # resulting binary.
11464 hardcode_minus_L=$hardcode_minus_L_RC
11465
11466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11467 # the resulting binary.
11468 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11469
11470 # Set to yes if building a shared library automatically hardcodes DIR into the library
11471 # and all subsequent libraries and executables linked against it.
11472 hardcode_automatic=$hardcode_automatic_RC
11473
11474 # Variables whose values should be saved in libtool wrapper scripts and
11475 # restored at relink time.
11476 variables_saved_for_relink="$variables_saved_for_relink"
11477
11478 # Whether libtool must link a program against all its dependency libraries.
11479 link_all_deplibs=$link_all_deplibs_RC
11480
11481 # Compile-time system search path for libraries
11482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11483
11484 # Run-time system search path for libraries
11485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11486
11487 # Fix the shell variable \$srcfile for the compiler.
11488 fix_srcfile_path="$fix_srcfile_path_RC"
11489
11490 # Set to yes if exported symbols are required.
11491 always_export_symbols=$always_export_symbols_RC
11492
11493 # The commands to list exported symbols.
11494 export_symbols_cmds=$lt_export_symbols_cmds_RC
11495
11496 # The commands to extract the exported symbol list from a shared archive.
11497 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11498
11499 # Symbols that should not be listed in the preloaded symbols.
11500 exclude_expsyms=$lt_exclude_expsyms_RC
11501
11502 # Symbols that must always be exported.
11503 include_expsyms=$lt_include_expsyms_RC
11504
11505 # ### END LIBTOOL TAG CONFIG: $tagname
11506
11507 __EOF__
11508
11509
11510 else
11511   # If there is no Makefile yet, we rely on a make rule to execute
11512   # `config.status --recheck' to rerun these tests and create the
11513   # libtool script then.
11514   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11515   if test -f "$ltmain_in"; then
11516     test -f Makefile && make "$ltmain"
11517   fi
11518 fi
11519
11520
11521 ac_ext=c
11522 ac_cpp='$CPP $CPPFLAGS'
11523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11526
11527 CC="$lt_save_CC"
11528
11529         ;;
11530
11531       *)
11532         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11533 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11534    { (exit 1); exit 1; }; }
11535         ;;
11536       esac
11537
11538       # Append the new tag name to the list of available tags.
11539       if test -n "$tagname" ; then
11540       available_tags="$available_tags $tagname"
11541     fi
11542     fi
11543   done
11544   IFS="$lt_save_ifs"
11545
11546   # Now substitute the updated list of available tags.
11547   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11548     mv "${ofile}T" "$ofile"
11549     chmod +x "$ofile"
11550   else
11551     rm -f "${ofile}T"
11552     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11553 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11554    { (exit 1); exit 1; }; }
11555   fi
11556 fi
11557
11558
11559
11560 # This can be used to rebuild libtool when needed
11561 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11562
11563 # Always use our own libtool.
11564 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11565
11566 # Prevent multiple expansion
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577 ol_link_perl=no
11578 if test $ol_enable_perl != no ; then
11579         # Extract the first word of "perl", so it can be a program name with args.
11580 set dummy perl; ac_word=$2
11581 echo "$as_me:$LINENO: checking for $ac_word" >&5
11582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11583 if test "${ac_cv_path_PERLBIN+set}" = set; then
11584   echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586   case $PERLBIN in
11587   [\\/]* | ?:[\\/]*)
11588   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11589   ;;
11590   *)
11591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11593 do
11594   IFS=$as_save_IFS
11595   test -z "$as_dir" && as_dir=.
11596   for ac_exec_ext in '' $ac_executable_extensions; do
11597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11600     break 2
11601   fi
11602 done
11603 done
11604
11605   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11606   ;;
11607 esac
11608 fi
11609 PERLBIN=$ac_cv_path_PERLBIN
11610
11611 if test -n "$PERLBIN"; then
11612   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11613 echo "${ECHO_T}$PERLBIN" >&6
11614 else
11615   echo "$as_me:$LINENO: result: no" >&5
11616 echo "${ECHO_T}no" >&6
11617 fi
11618
11619
11620         if test "no$PERLBIN" = "no" ; then
11621                 if test $ol_enable_perl = yes ; then
11622                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11623 echo "$as_me: error: could not locate perl" >&2;}
11624    { (exit 1); exit 1; }; }
11625                 fi
11626
11627         else
11628                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11629                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11630
11631                 if test x"$ol_enable_perl" = "xyes" ; then
11632                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11633                 else
11634                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11635                 fi
11636                                 ol_link_perl=yes
11637         fi
11638 fi
11639
11640 ac_ext=c
11641 ac_cpp='$CPP $CPPFLAGS'
11642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11645 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11647 # On Suns, sometimes $CPP names a directory.
11648 if test -n "$CPP" && test -d "$CPP"; then
11649   CPP=
11650 fi
11651 if test -z "$CPP"; then
11652   if test "${ac_cv_prog_CPP+set}" = set; then
11653   echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655       # Double quotes because CPP needs to be expanded
11656     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11657     do
11658       ac_preproc_ok=false
11659 for ac_c_preproc_warn_flag in '' yes
11660 do
11661   # Use a header file that comes with gcc, so configuring glibc
11662   # with a fresh cross-compiler works.
11663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11664   # <limits.h> exists even on freestanding compilers.
11665   # On the NeXT, cc -E runs the code through the compiler's parser,
11666   # not just through cpp. "Syntax error" is here to catch this case.
11667   cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h.  */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h.  */
11673 #ifdef __STDC__
11674 # include <limits.h>
11675 #else
11676 # include <assert.h>
11677 #endif
11678                      Syntax error
11679 _ACEOF
11680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11682   ac_status=$?
11683   grep -v '^ *+' conftest.er1 >conftest.err
11684   rm -f conftest.er1
11685   cat conftest.err >&5
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); } >/dev/null; then
11688   if test -s conftest.err; then
11689     ac_cpp_err=$ac_c_preproc_warn_flag
11690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11691   else
11692     ac_cpp_err=
11693   fi
11694 else
11695   ac_cpp_err=yes
11696 fi
11697 if test -z "$ac_cpp_err"; then
11698   :
11699 else
11700   echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703   # Broken: fails on valid input.
11704 continue
11705 fi
11706 rm -f conftest.err conftest.$ac_ext
11707
11708   # OK, works on sane cases.  Now check whether non-existent headers
11709   # can be detected and how.
11710   cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h.  */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h.  */
11716 #include <ac_nonexistent.h>
11717 _ACEOF
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11720   ac_status=$?
11721   grep -v '^ *+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } >/dev/null; then
11726   if test -s conftest.err; then
11727     ac_cpp_err=$ac_c_preproc_warn_flag
11728     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11729   else
11730     ac_cpp_err=
11731   fi
11732 else
11733   ac_cpp_err=yes
11734 fi
11735 if test -z "$ac_cpp_err"; then
11736   # Broken: success on invalid input.
11737 continue
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742   # Passes both tests.
11743 ac_preproc_ok=:
11744 break
11745 fi
11746 rm -f conftest.err conftest.$ac_ext
11747
11748 done
11749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11750 rm -f conftest.err conftest.$ac_ext
11751 if $ac_preproc_ok; then
11752   break
11753 fi
11754
11755     done
11756     ac_cv_prog_CPP=$CPP
11757
11758 fi
11759   CPP=$ac_cv_prog_CPP
11760 else
11761   ac_cv_prog_CPP=$CPP
11762 fi
11763 echo "$as_me:$LINENO: result: $CPP" >&5
11764 echo "${ECHO_T}$CPP" >&6
11765 ac_preproc_ok=false
11766 for ac_c_preproc_warn_flag in '' yes
11767 do
11768   # Use a header file that comes with gcc, so configuring glibc
11769   # with a fresh cross-compiler works.
11770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771   # <limits.h> exists even on freestanding compilers.
11772   # On the NeXT, cc -E runs the code through the compiler's parser,
11773   # not just through cpp. "Syntax error" is here to catch this case.
11774   cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h.  */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h.  */
11780 #ifdef __STDC__
11781 # include <limits.h>
11782 #else
11783 # include <assert.h>
11784 #endif
11785                      Syntax error
11786 _ACEOF
11787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11789   ac_status=$?
11790   grep -v '^ *+' conftest.er1 >conftest.err
11791   rm -f conftest.er1
11792   cat conftest.err >&5
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); } >/dev/null; then
11795   if test -s conftest.err; then
11796     ac_cpp_err=$ac_c_preproc_warn_flag
11797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11798   else
11799     ac_cpp_err=
11800   fi
11801 else
11802   ac_cpp_err=yes
11803 fi
11804 if test -z "$ac_cpp_err"; then
11805   :
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810   # Broken: fails on valid input.
11811 continue
11812 fi
11813 rm -f conftest.err conftest.$ac_ext
11814
11815   # OK, works on sane cases.  Now check whether non-existent headers
11816   # can be detected and how.
11817   cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823 #include <ac_nonexistent.h>
11824 _ACEOF
11825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } >/dev/null; then
11833   if test -s conftest.err; then
11834     ac_cpp_err=$ac_c_preproc_warn_flag
11835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11836   else
11837     ac_cpp_err=
11838   fi
11839 else
11840   ac_cpp_err=yes
11841 fi
11842 if test -z "$ac_cpp_err"; then
11843   # Broken: success on invalid input.
11844 continue
11845 else
11846   echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849   # Passes both tests.
11850 ac_preproc_ok=:
11851 break
11852 fi
11853 rm -f conftest.err conftest.$ac_ext
11854
11855 done
11856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11857 rm -f conftest.err conftest.$ac_ext
11858 if $ac_preproc_ok; then
11859   :
11860 else
11861   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11862 See \`config.log' for more details." >&5
11863 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11864 See \`config.log' for more details." >&2;}
11865    { (exit 1); exit 1; }; }
11866 fi
11867
11868 ac_ext=c
11869 ac_cpp='$CPP $CPPFLAGS'
11870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11873
11874
11875 case $host_os in
11876   *mingw32* ) ac_cv_mingw32=yes ;;
11877   *cygwin* ) ac_cv_cygwin=yes ;;
11878 esac
11879
11880
11881
11882
11883 cat >>confdefs.h <<_ACEOF
11884 #define EXEEXT "${EXEEXT}"
11885 _ACEOF
11886
11887
11888 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11889 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11890 if test "${ac_cv_lib_be_be_app+set}" = set; then
11891   echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893   ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-lbe -lroot -lnet $LIBS"
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h.  */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h.  */
11901
11902 /* Override any gcc2 internal prototype to avoid an error.  */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 /* We use char because int might match the return type of a gcc2
11907    builtin and then its argument prototype would still apply.  */
11908 char be_app ();
11909 int
11910 main ()
11911 {
11912 be_app ();
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919   (eval $ac_link) 2>conftest.er1
11920   ac_status=$?
11921   grep -v '^ *+' conftest.er1 >conftest.err
11922   rm -f conftest.er1
11923   cat conftest.err >&5
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } &&
11926          { ac_try='test -z "$ac_c_werror_flag"
11927                          || test ! -s conftest.err'
11928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929   (eval $ac_try) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; } &&
11933          { ac_try='test -s conftest$ac_exeext'
11934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935   (eval $ac_try) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; }; then
11939   ac_cv_lib_be_be_app=yes
11940 else
11941   echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11943
11944 ac_cv_lib_be_be_app=no
11945 fi
11946 rm -f conftest.err conftest.$ac_objext \
11947       conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11951 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11952 if test $ac_cv_lib_be_be_app = yes; then
11953   LIBS="$LIBS -lbe -lroot -lnet"
11954 else
11955   :
11956 fi
11957
11958
11959 ac_ext=c
11960 ac_cpp='$CPP $CPPFLAGS'
11961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11964 if test -n "$ac_tool_prefix"; then
11965   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11967 echo "$as_me:$LINENO: checking for $ac_word" >&5
11968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11969 if test "${ac_cv_prog_CC+set}" = set; then
11970   echo $ECHO_N "(cached) $ECHO_C" >&6
11971 else
11972   if test -n "$CC"; then
11973   ac_cv_prog_CC="$CC" # Let the user override the test.
11974 else
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH
11977 do
11978   IFS=$as_save_IFS
11979   test -z "$as_dir" && as_dir=.
11980   for ac_exec_ext in '' $ac_executable_extensions; do
11981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11982     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11984     break 2
11985   fi
11986 done
11987 done
11988
11989 fi
11990 fi
11991 CC=$ac_cv_prog_CC
11992 if test -n "$CC"; then
11993   echo "$as_me:$LINENO: result: $CC" >&5
11994 echo "${ECHO_T}$CC" >&6
11995 else
11996   echo "$as_me:$LINENO: result: no" >&5
11997 echo "${ECHO_T}no" >&6
11998 fi
11999
12000 fi
12001 if test -z "$ac_cv_prog_CC"; then
12002   ac_ct_CC=$CC
12003   # Extract the first word of "gcc", so it can be a program name with args.
12004 set dummy gcc; ac_word=$2
12005 echo "$as_me:$LINENO: checking for $ac_word" >&5
12006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   if test -n "$ac_ct_CC"; then
12011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016   IFS=$as_save_IFS
12017   test -z "$as_dir" && as_dir=.
12018   for ac_exec_ext in '' $ac_executable_extensions; do
12019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020     ac_cv_prog_ac_ct_CC="gcc"
12021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12022     break 2
12023   fi
12024 done
12025 done
12026
12027 fi
12028 fi
12029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12030 if test -n "$ac_ct_CC"; then
12031   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12032 echo "${ECHO_T}$ac_ct_CC" >&6
12033 else
12034   echo "$as_me:$LINENO: result: no" >&5
12035 echo "${ECHO_T}no" >&6
12036 fi
12037
12038   CC=$ac_ct_CC
12039 else
12040   CC="$ac_cv_prog_CC"
12041 fi
12042
12043 if test -z "$CC"; then
12044   if test -n "$ac_tool_prefix"; then
12045   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12046 set dummy ${ac_tool_prefix}cc; ac_word=$2
12047 echo "$as_me:$LINENO: checking for $ac_word" >&5
12048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12049 if test "${ac_cv_prog_CC+set}" = set; then
12050   echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052   if test -n "$CC"; then
12053   ac_cv_prog_CC="$CC" # Let the user override the test.
12054 else
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12057 do
12058   IFS=$as_save_IFS
12059   test -z "$as_dir" && as_dir=.
12060   for ac_exec_ext in '' $ac_executable_extensions; do
12061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062     ac_cv_prog_CC="${ac_tool_prefix}cc"
12063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12064     break 2
12065   fi
12066 done
12067 done
12068
12069 fi
12070 fi
12071 CC=$ac_cv_prog_CC
12072 if test -n "$CC"; then
12073   echo "$as_me:$LINENO: result: $CC" >&5
12074 echo "${ECHO_T}$CC" >&6
12075 else
12076   echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6
12078 fi
12079
12080 fi
12081 if test -z "$ac_cv_prog_CC"; then
12082   ac_ct_CC=$CC
12083   # Extract the first word of "cc", so it can be a program name with args.
12084 set dummy cc; ac_word=$2
12085 echo "$as_me:$LINENO: checking for $ac_word" >&5
12086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12088   echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090   if test -n "$ac_ct_CC"; then
12091   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12092 else
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12095 do
12096   IFS=$as_save_IFS
12097   test -z "$as_dir" && as_dir=.
12098   for ac_exec_ext in '' $ac_executable_extensions; do
12099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100     ac_cv_prog_ac_ct_CC="cc"
12101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12102     break 2
12103   fi
12104 done
12105 done
12106
12107 fi
12108 fi
12109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12110 if test -n "$ac_ct_CC"; then
12111   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12112 echo "${ECHO_T}$ac_ct_CC" >&6
12113 else
12114   echo "$as_me:$LINENO: result: no" >&5
12115 echo "${ECHO_T}no" >&6
12116 fi
12117
12118   CC=$ac_ct_CC
12119 else
12120   CC="$ac_cv_prog_CC"
12121 fi
12122
12123 fi
12124 if test -z "$CC"; then
12125   # Extract the first word of "cc", so it can be a program name with args.
12126 set dummy cc; ac_word=$2
12127 echo "$as_me:$LINENO: checking for $ac_word" >&5
12128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12129 if test "${ac_cv_prog_CC+set}" = set; then
12130   echo $ECHO_N "(cached) $ECHO_C" >&6
12131 else
12132   if test -n "$CC"; then
12133   ac_cv_prog_CC="$CC" # Let the user override the test.
12134 else
12135   ac_prog_rejected=no
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12138 do
12139   IFS=$as_save_IFS
12140   test -z "$as_dir" && as_dir=.
12141   for ac_exec_ext in '' $ac_executable_extensions; do
12142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12144        ac_prog_rejected=yes
12145        continue
12146      fi
12147     ac_cv_prog_CC="cc"
12148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12149     break 2
12150   fi
12151 done
12152 done
12153
12154 if test $ac_prog_rejected = yes; then
12155   # We found a bogon in the path, so make sure we never use it.
12156   set dummy $ac_cv_prog_CC
12157   shift
12158   if test $# != 0; then
12159     # We chose a different compiler from the bogus one.
12160     # However, it has the same basename, so the bogon will be chosen
12161     # first if we set CC to just the basename; use the full file name.
12162     shift
12163     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12164   fi
12165 fi
12166 fi
12167 fi
12168 CC=$ac_cv_prog_CC
12169 if test -n "$CC"; then
12170   echo "$as_me:$LINENO: result: $CC" >&5
12171 echo "${ECHO_T}$CC" >&6
12172 else
12173   echo "$as_me:$LINENO: result: no" >&5
12174 echo "${ECHO_T}no" >&6
12175 fi
12176
12177 fi
12178 if test -z "$CC"; then
12179   if test -n "$ac_tool_prefix"; then
12180   for ac_prog in cl
12181   do
12182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12184 echo "$as_me:$LINENO: checking for $ac_word" >&5
12185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12186 if test "${ac_cv_prog_CC+set}" = set; then
12187   echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189   if test -n "$CC"; then
12190   ac_cv_prog_CC="$CC" # Let the user override the test.
12191 else
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195   IFS=$as_save_IFS
12196   test -z "$as_dir" && as_dir=.
12197   for ac_exec_ext in '' $ac_executable_extensions; do
12198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12199     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12201     break 2
12202   fi
12203 done
12204 done
12205
12206 fi
12207 fi
12208 CC=$ac_cv_prog_CC
12209 if test -n "$CC"; then
12210   echo "$as_me:$LINENO: result: $CC" >&5
12211 echo "${ECHO_T}$CC" >&6
12212 else
12213   echo "$as_me:$LINENO: result: no" >&5
12214 echo "${ECHO_T}no" >&6
12215 fi
12216
12217     test -n "$CC" && break
12218   done
12219 fi
12220 if test -z "$CC"; then
12221   ac_ct_CC=$CC
12222   for ac_prog in cl
12223 do
12224   # Extract the first word of "$ac_prog", so it can be a program name with args.
12225 set dummy $ac_prog; ac_word=$2
12226 echo "$as_me:$LINENO: checking for $ac_word" >&5
12227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231   if test -n "$ac_ct_CC"; then
12232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12233 else
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12236 do
12237   IFS=$as_save_IFS
12238   test -z "$as_dir" && as_dir=.
12239   for ac_exec_ext in '' $ac_executable_extensions; do
12240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241     ac_cv_prog_ac_ct_CC="$ac_prog"
12242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12243     break 2
12244   fi
12245 done
12246 done
12247
12248 fi
12249 fi
12250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12251 if test -n "$ac_ct_CC"; then
12252   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12253 echo "${ECHO_T}$ac_ct_CC" >&6
12254 else
12255   echo "$as_me:$LINENO: result: no" >&5
12256 echo "${ECHO_T}no" >&6
12257 fi
12258
12259   test -n "$ac_ct_CC" && break
12260 done
12261
12262   CC=$ac_ct_CC
12263 fi
12264
12265 fi
12266
12267
12268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12269 See \`config.log' for more details." >&5
12270 echo "$as_me: error: no acceptable C compiler found in \$PATH
12271 See \`config.log' for more details." >&2;}
12272    { (exit 1); exit 1; }; }
12273
12274 # Provide some information about the compiler.
12275 echo "$as_me:$LINENO:" \
12276      "checking for C compiler version" >&5
12277 ac_compiler=`set X $ac_compile; echo $2`
12278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12279   (eval $ac_compiler --version </dev/null >&5) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); }
12283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12284   (eval $ac_compiler -v </dev/null >&5) 2>&5
12285   ac_status=$?
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); }
12288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12289   (eval $ac_compiler -V </dev/null >&5) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); }
12293
12294 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12295 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h.  */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h.  */
12305
12306 int
12307 main ()
12308 {
12309 #ifndef __GNUC__
12310        choke me
12311 #endif
12312
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12319   (eval $ac_compile) 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } &&
12326          { ac_try='test -z "$ac_c_werror_flag"
12327                          || test ! -s conftest.err'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest.$ac_objext'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; }; then
12339   ac_compiler_gnu=yes
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 ac_compiler_gnu=no
12345 fi
12346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12348
12349 fi
12350 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12351 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12352 GCC=`test $ac_compiler_gnu = yes && echo yes`
12353 ac_test_CFLAGS=${CFLAGS+set}
12354 ac_save_CFLAGS=$CFLAGS
12355 CFLAGS="-g"
12356 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12357 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12358 if test "${ac_cv_prog_cc_g+set}" = set; then
12359   echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361   cat >conftest.$ac_ext <<_ACEOF
12362 /* confdefs.h.  */
12363 _ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h.  */
12367
12368 int
12369 main ()
12370 {
12371
12372   ;
12373   return 0;
12374 }
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378   (eval $ac_compile) 2>conftest.er1
12379   ac_status=$?
12380   grep -v '^ *+' conftest.er1 >conftest.err
12381   rm -f conftest.er1
12382   cat conftest.err >&5
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); } &&
12385          { ac_try='test -z "$ac_c_werror_flag"
12386                          || test ! -s conftest.err'
12387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388   (eval $ac_try) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; } &&
12392          { ac_try='test -s conftest.$ac_objext'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; }; then
12398   ac_cv_prog_cc_g=yes
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_cv_prog_cc_g=no
12404 fi
12405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12406 fi
12407 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12408 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12409 if test "$ac_test_CFLAGS" = set; then
12410   CFLAGS=$ac_save_CFLAGS
12411 elif test $ac_cv_prog_cc_g = yes; then
12412   if test "$GCC" = yes; then
12413     CFLAGS="-g -O2"
12414   else
12415     CFLAGS="-g"
12416   fi
12417 else
12418   if test "$GCC" = yes; then
12419     CFLAGS="-O2"
12420   else
12421     CFLAGS=
12422   fi
12423 fi
12424 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12425 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12426 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12427   echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429   ac_cv_prog_cc_stdc=no
12430 ac_save_CC=$CC
12431 cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437 #include <stdarg.h>
12438 #include <stdio.h>
12439 #include <sys/types.h>
12440 #include <sys/stat.h>
12441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12442 struct buf { int x; };
12443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12444 static char *e (p, i)
12445      char **p;
12446      int i;
12447 {
12448   return p[i];
12449 }
12450 static char *f (char * (*g) (char **, int), char **p, ...)
12451 {
12452   char *s;
12453   va_list v;
12454   va_start (v,p);
12455   s = g (p, va_arg (v,int));
12456   va_end (v);
12457   return s;
12458 }
12459
12460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12461    function prototypes and stuff, but not '\xHH' hex character constants.
12462    These don't provoke an error unfortunately, instead are silently treated
12463    as 'x'.  The following induces an error, until -std1 is added to get
12464    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12465    array size at least.  It's necessary to write '\x00'==0 to get something
12466    that's true only with -std1.  */
12467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12468
12469 int test (int i, double x);
12470 struct s1 {int (*f) (int a);};
12471 struct s2 {int (*f) (double a);};
12472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12473 int argc;
12474 char **argv;
12475 int
12476 main ()
12477 {
12478 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12479   ;
12480   return 0;
12481 }
12482 _ACEOF
12483 # Don't try gcc -ansi; that turns off useful extensions and
12484 # breaks some systems' header files.
12485 # AIX                   -qlanglvl=ansi
12486 # Ultrix and OSF/1      -std1
12487 # HP-UX 10.20 and later -Ae
12488 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12489 # SVR4                  -Xc -D__EXTENSIONS__
12490 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12491 do
12492   CC="$ac_save_CC $ac_arg"
12493   rm -f conftest.$ac_objext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12495   (eval $ac_compile) 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } &&
12502          { ac_try='test -z "$ac_c_werror_flag"
12503                          || test ! -s conftest.err'
12504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505   (eval $ac_try) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); }; } &&
12509          { ac_try='test -s conftest.$ac_objext'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; }; then
12515   ac_cv_prog_cc_stdc=$ac_arg
12516 break
12517 else
12518   echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12520
12521 fi
12522 rm -f conftest.err conftest.$ac_objext
12523 done
12524 rm -f conftest.$ac_ext conftest.$ac_objext
12525 CC=$ac_save_CC
12526
12527 fi
12528
12529 case "x$ac_cv_prog_cc_stdc" in
12530   x|xno)
12531     echo "$as_me:$LINENO: result: none needed" >&5
12532 echo "${ECHO_T}none needed" >&6 ;;
12533   *)
12534     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12535 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12536     CC="$CC $ac_cv_prog_cc_stdc" ;;
12537 esac
12538
12539 # Some people use a C++ compiler to compile C.  Since we use `exit',
12540 # in C++ we need to declare it.  In case someone uses the same compiler
12541 # for both compiling C and C++ we need to have the C++ compiler decide
12542 # the declaration of exit, since it's the most demanding environment.
12543 cat >conftest.$ac_ext <<_ACEOF
12544 #ifndef __cplusplus
12545   choke me
12546 #endif
12547 _ACEOF
12548 rm -f conftest.$ac_objext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12550   (eval $ac_compile) 2>conftest.er1
12551   ac_status=$?
12552   grep -v '^ *+' conftest.er1 >conftest.err
12553   rm -f conftest.er1
12554   cat conftest.err >&5
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } &&
12557          { ac_try='test -z "$ac_c_werror_flag"
12558                          || test ! -s conftest.err'
12559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560   (eval $ac_try) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; } &&
12564          { ac_try='test -s conftest.$ac_objext'
12565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566   (eval $ac_try) 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); }; }; then
12570   for ac_declaration in \
12571    '' \
12572    'extern "C" void std::exit (int) throw (); using std::exit;' \
12573    'extern "C" void std::exit (int); using std::exit;' \
12574    'extern "C" void exit (int) throw ();' \
12575    'extern "C" void exit (int);' \
12576    'void exit (int);'
12577 do
12578   cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h.  */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h.  */
12584 $ac_declaration
12585 #include <stdlib.h>
12586 int
12587 main ()
12588 {
12589 exit (42);
12590   ;
12591   return 0;
12592 }
12593 _ACEOF
12594 rm -f conftest.$ac_objext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596   (eval $ac_compile) 2>conftest.er1
12597   ac_status=$?
12598   grep -v '^ *+' conftest.er1 >conftest.err
12599   rm -f conftest.er1
12600   cat conftest.err >&5
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); } &&
12603          { ac_try='test -z "$ac_c_werror_flag"
12604                          || test ! -s conftest.err'
12605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606   (eval $ac_try) 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; } &&
12610          { ac_try='test -s conftest.$ac_objext'
12611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612   (eval $ac_try) 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; }; then
12616   :
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 continue
12622 fi
12623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12624   cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h.  */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h.  */
12630 $ac_declaration
12631 int
12632 main ()
12633 {
12634 exit (42);
12635   ;
12636   return 0;
12637 }
12638 _ACEOF
12639 rm -f conftest.$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641   (eval $ac_compile) 2>conftest.er1
12642   ac_status=$?
12643   grep -v '^ *+' conftest.er1 >conftest.err
12644   rm -f conftest.er1
12645   cat conftest.err >&5
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } &&
12648          { ac_try='test -z "$ac_c_werror_flag"
12649                          || test ! -s conftest.err'
12650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651   (eval $ac_try) 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; } &&
12655          { ac_try='test -s conftest.$ac_objext'
12656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657   (eval $ac_try) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661   break
12662 else
12663   echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12665
12666 fi
12667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668 done
12669 rm -f conftest*
12670 if test -n "$ac_declaration"; then
12671   echo '#ifdef __cplusplus' >>confdefs.h
12672   echo $ac_declaration      >>confdefs.h
12673   echo '#endif'             >>confdefs.h
12674 fi
12675
12676 else
12677   echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 fi
12681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12682 ac_ext=c
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687
12688 depcc="$CC"   am_compiler_list=
12689
12690 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12691 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12692 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12696   # We make a subdir and do the tests there.  Otherwise we can end up
12697   # making bogus files that we don't know about and never remove.  For
12698   # instance it was reported that on HP-UX the gcc test will end up
12699   # making a dummy file named `D' -- because `-MD' means `put the output
12700   # in D'.
12701   mkdir conftest.dir
12702   # Copy depcomp to subdir because otherwise we won't find it if we're
12703   # using a relative directory.
12704   cp "$am_depcomp" conftest.dir
12705   cd conftest.dir
12706   # We will build objects and dependencies in a subdirectory because
12707   # it helps to detect inapplicable dependency modes.  For instance
12708   # both Tru64's cc and ICC support -MD to output dependencies as a
12709   # side effect of compilation, but ICC will put the dependencies in
12710   # the current directory while Tru64 will put them in the object
12711   # directory.
12712   mkdir sub
12713
12714   am_cv_CC_dependencies_compiler_type=none
12715   if test "$am_compiler_list" = ""; then
12716      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12717   fi
12718   for depmode in $am_compiler_list; do
12719     # Setup a source with many dependencies, because some compilers
12720     # like to wrap large dependency lists on column 80 (with \), and
12721     # we should not choose a depcomp mode which is confused by this.
12722     #
12723     # We need to recreate these files for each test, as the compiler may
12724     # overwrite some of them when testing with obscure command lines.
12725     # This happens at least with the AIX C compiler.
12726     : > sub/conftest.c
12727     for i in 1 2 3 4 5 6; do
12728       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12729       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12730       # Solaris 8's {/usr,}/bin/sh.
12731       touch sub/conftst$i.h
12732     done
12733     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12734
12735     case $depmode in
12736     nosideeffect)
12737       # after this tag, mechanisms are not by side-effect, so they'll
12738       # only be used when explicitly requested
12739       if test "x$enable_dependency_tracking" = xyes; then
12740         continue
12741       else
12742         break
12743       fi
12744       ;;
12745     none) break ;;
12746     esac
12747     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12748     # mode.  It turns out that the SunPro C++ compiler does not properly
12749     # handle `-M -o', and we need to detect this.
12750     if depmode=$depmode \
12751        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12752        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12753        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12754          >/dev/null 2>conftest.err &&
12755        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12756        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12757        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12758       # icc doesn't choke on unknown options, it will just issue warnings
12759       # or remarks (even with -Werror).  So we grep stderr for any message
12760       # that says an option was ignored or not supported.
12761       # When given -MP, icc 7.0 and 7.1 complain thusly:
12762       #   icc: Command line warning: ignoring option '-M'; no argument required
12763       # The diagnosis changed in icc 8.0:
12764       #   icc: Command line remark: option '-MP' not supported
12765       if (grep 'ignoring option' conftest.err ||
12766           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12767         am_cv_CC_dependencies_compiler_type=$depmode
12768         break
12769       fi
12770     fi
12771   done
12772
12773   cd ..
12774   rm -rf conftest.dir
12775 else
12776   am_cv_CC_dependencies_compiler_type=none
12777 fi
12778
12779 fi
12780 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12781 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12782 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12783
12784
12785
12786 if
12787   test "x$enable_dependency_tracking" != xno \
12788   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12789   am__fastdepCC_TRUE=
12790   am__fastdepCC_FALSE='#'
12791 else
12792   am__fastdepCC_TRUE='#'
12793   am__fastdepCC_FALSE=
12794 fi
12795
12796
12797 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12798         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12799 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12800    { (exit 1); exit 1; }; }
12801 fi
12802
12803 # test for make depend flag
12804 OL_MKDEP=
12805 OL_MKDEP_FLAGS=
12806 if test -z "${MKDEP}"; then
12807         OL_MKDEP="${CC-cc}"
12808         if test -z "${MKDEP_FLAGS}"; then
12809                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12810 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12811 if test "${ol_cv_mkdep+set}" = set; then
12812   echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814
12815                         ol_cv_mkdep=no
12816                         for flag in "-M" "-xM"; do
12817                                 cat > conftest.c <<EOF
12818  noCode;
12819 EOF
12820                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822   (eval $ac_try) 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; } \
12826                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12827                                 then
12828                                         if test ! -f conftest."${ac_object}" ; then
12829                                                 ol_cv_mkdep=$flag
12830                                                 OL_MKDEP_FLAGS="$flag"
12831                                                 break
12832                                         fi
12833                                 fi
12834                         done
12835                         rm -f conftest*
12836
12837 fi
12838 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12839 echo "${ECHO_T}$ol_cv_mkdep" >&6
12840                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12841         else
12842                 cc_cv_mkdep=yes
12843                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12844         fi
12845 else
12846         cc_cv_mkdep=yes
12847         OL_MKDEP="${MKDEP}"
12848         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12849 fi
12850
12851
12852
12853 if test "${ol_cv_mkdep}" = no ; then
12854         # this will soon become an error
12855         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12856 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12857 fi
12858
12859 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12860 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12861 if test "${ac_cv_lib_s_afopen+set}" = set; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864   ac_check_lib_save_LIBS=$LIBS
12865 LIBS="-ls  $LIBS"
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872
12873 /* Override any gcc2 internal prototype to avoid an error.  */
12874 #ifdef __cplusplus
12875 extern "C"
12876 #endif
12877 /* We use char because int might match the return type of a gcc2
12878    builtin and then its argument prototype would still apply.  */
12879 char afopen ();
12880 int
12881 main ()
12882 {
12883 afopen ();
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 rm -f conftest.$ac_objext conftest$ac_exeext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12890   (eval $ac_link) 2>conftest.er1
12891   ac_status=$?
12892   grep -v '^ *+' conftest.er1 >conftest.err
12893   rm -f conftest.er1
12894   cat conftest.err >&5
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); } &&
12897          { ac_try='test -z "$ac_c_werror_flag"
12898                          || test ! -s conftest.err'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906   (eval $ac_try) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   ac_cv_lib_s_afopen=yes
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915 ac_cv_lib_s_afopen=no
12916 fi
12917 rm -f conftest.err conftest.$ac_objext \
12918       conftest$ac_exeext conftest.$ac_ext
12919 LIBS=$ac_check_lib_save_LIBS
12920 fi
12921 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12922 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12923 if test $ac_cv_lib_s_afopen = yes; then
12924
12925         AUTH_LIBS=-ls
12926
12927 cat >>confdefs.h <<\_ACEOF
12928 #define HAVE_AIX_SECURITY 1
12929 _ACEOF
12930
12931
12932 fi
12933
12934
12935 case "$target" in
12936 *-ibm-openedition)
12937         ac_cv_func_getopt=no
12938
12939 cat >>confdefs.h <<\_ACEOF
12940 #define BOTH_STRINGS_H 1
12941 _ACEOF
12942
12943         ;;
12944 esac
12945
12946 ol_link_modules=no
12947 WITH_MODULES_ENABLED=no
12948 if test $ol_enable_modules != no ; then
12949
12950 for ac_header in ltdl.h
12951 do
12952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12954   echo "$as_me:$LINENO: checking for $ac_header" >&5
12955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12957   echo $ECHO_N "(cached) $ECHO_C" >&6
12958 fi
12959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12961 else
12962   # Is the header compilable?
12963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h.  */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h.  */
12971 $ac_includes_default
12972 #include <$ac_header>
12973 _ACEOF
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976   (eval $ac_compile) 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } &&
12983          { ac_try='test -z "$ac_c_werror_flag"
12984                          || test ! -s conftest.err'
12985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986   (eval $ac_try) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; } &&
12990          { ac_try='test -s conftest.$ac_objext'
12991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992   (eval $ac_try) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   ac_header_compiler=yes
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 ac_header_compiler=no
13002 fi
13003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13005 echo "${ECHO_T}$ac_header_compiler" >&6
13006
13007 # Is the header present?
13008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13010 cat >conftest.$ac_ext <<_ACEOF
13011 /* confdefs.h.  */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h.  */
13016 #include <$ac_header>
13017 _ACEOF
13018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13020   ac_status=$?
13021   grep -v '^ *+' conftest.er1 >conftest.err
13022   rm -f conftest.er1
13023   cat conftest.err >&5
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); } >/dev/null; then
13026   if test -s conftest.err; then
13027     ac_cpp_err=$ac_c_preproc_warn_flag
13028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13029   else
13030     ac_cpp_err=
13031   fi
13032 else
13033   ac_cpp_err=yes
13034 fi
13035 if test -z "$ac_cpp_err"; then
13036   ac_header_preproc=yes
13037 else
13038   echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13040
13041   ac_header_preproc=no
13042 fi
13043 rm -f conftest.err conftest.$ac_ext
13044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13045 echo "${ECHO_T}$ac_header_preproc" >&6
13046
13047 # So?  What about this header?
13048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13049   yes:no: )
13050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13054     ac_header_preproc=yes
13055     ;;
13056   no:yes:* )
13057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13069     (
13070       cat <<\_ASBOX
13071 ## --------------------------------------------- ##
13072 ## Report this to <http://www.openldap.org/its/> ##
13073 ## --------------------------------------------- ##
13074 _ASBOX
13075     ) |
13076       sed "s/^/$as_me: WARNING:     /" >&2
13077     ;;
13078 esac
13079 echo "$as_me:$LINENO: checking for $ac_header" >&5
13080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13082   echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084   eval "$as_ac_Header=\$ac_header_preproc"
13085 fi
13086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13088
13089 fi
13090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13091   cat >>confdefs.h <<_ACEOF
13092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13093 _ACEOF
13094
13095 fi
13096
13097 done
13098
13099
13100         if test $ac_cv_header_ltdl_h = no ; then
13101                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13102 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13103    { (exit 1); exit 1; }; }
13104         fi
13105
13106         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13107 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13108 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13109   echo $ECHO_N "(cached) $ECHO_C" >&6
13110 else
13111   ac_check_lib_save_LIBS=$LIBS
13112 LIBS="-lltdl  $LIBS"
13113 cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h.  */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h.  */
13119
13120 /* Override any gcc2 internal prototype to avoid an error.  */
13121 #ifdef __cplusplus
13122 extern "C"
13123 #endif
13124 /* We use char because int might match the return type of a gcc2
13125    builtin and then its argument prototype would still apply.  */
13126 char lt_dlinit ();
13127 int
13128 main ()
13129 {
13130 lt_dlinit ();
13131   ;
13132   return 0;
13133 }
13134 _ACEOF
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137   (eval $ac_link) 2>conftest.er1
13138   ac_status=$?
13139   grep -v '^ *+' conftest.er1 >conftest.err
13140   rm -f conftest.er1
13141   cat conftest.err >&5
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } &&
13144          { ac_try='test -z "$ac_c_werror_flag"
13145                          || test ! -s conftest.err'
13146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147   (eval $ac_try) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; } &&
13151          { ac_try='test -s conftest$ac_exeext'
13152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153   (eval $ac_try) 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; }; then
13157   ac_cv_lib_ltdl_lt_dlinit=yes
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 ac_cv_lib_ltdl_lt_dlinit=no
13163 fi
13164 rm -f conftest.err conftest.$ac_objext \
13165       conftest$ac_exeext conftest.$ac_ext
13166 LIBS=$ac_check_lib_save_LIBS
13167 fi
13168 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13169 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13170 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13171
13172                 MODULES_LIBS=-lltdl
13173
13174 cat >>confdefs.h <<\_ACEOF
13175 #define HAVE_LIBLTDL 1
13176 _ACEOF
13177
13178
13179 fi
13180
13181
13182         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13183                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13184 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13185    { (exit 1); exit 1; }; }
13186         fi
13187         ol_link_modules=yes
13188         WITH_MODULES_ENABLED=yes
13189
13190 else
13191         for i in $Backends; do
13192                 eval "ol_tmp=\$ol_enable_$i"
13193                 if test $ol_tmp = mod ; then
13194                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13195 echo "$as_me: WARNING: building static $i backend" >&2;}
13196                         eval "ol_enable_$i=yes"
13197                 fi
13198         done
13199         for i in $Overlays; do
13200                 eval "ol_tmp=\$ol_enable_$i"
13201                 if test $ol_tmp = mod ; then
13202                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13203 echo "$as_me: WARNING: building static $i overlay" >&2;}
13204                         eval "ol_enable_$i=yes"
13205                 fi
13206         done
13207 fi
13208
13209 # test for EBCDIC
13210 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13211 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13212 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13213   echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215
13216         cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222
13223 #if !('M' == 0xd4)
13224 #include <__ASCII__/generate_error.h>
13225 #endif
13226
13227 _ACEOF
13228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13230   ac_status=$?
13231   grep -v '^ *+' conftest.er1 >conftest.err
13232   rm -f conftest.er1
13233   cat conftest.err >&5
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } >/dev/null; then
13236   if test -s conftest.err; then
13237     ac_cpp_err=$ac_c_preproc_warn_flag
13238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13239   else
13240     ac_cpp_err=
13241   fi
13242 else
13243   ac_cpp_err=yes
13244 fi
13245 if test -z "$ac_cpp_err"; then
13246   ol_cv_cpp_ebcdic=yes
13247 else
13248   echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13250
13251   ol_cv_cpp_ebcdic=no
13252 fi
13253 rm -f conftest.err conftest.$ac_ext
13254 fi
13255 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13256 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13257 if test $ol_cv_cpp_ebcdic = yes ; then
13258
13259 cat >>confdefs.h <<\_ACEOF
13260 #define HAVE_EBCDIC 1
13261 _ACEOF
13262
13263 fi
13264
13265 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13266 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13267 if test "${ol_cv_header_stdc+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276 #include <stdlib.h>
13277 #include <stdarg.h>
13278 #include <string.h>
13279 #include <float.h>
13280 _ACEOF
13281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13283   ac_status=$?
13284   grep -v '^ *+' conftest.er1 >conftest.err
13285   rm -f conftest.er1
13286   cat conftest.err >&5
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } >/dev/null; then
13289   if test -s conftest.err; then
13290     ac_cpp_err=$ac_c_preproc_warn_flag
13291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13292   else
13293     ac_cpp_err=
13294   fi
13295 else
13296   ac_cpp_err=yes
13297 fi
13298 if test -z "$ac_cpp_err"; then
13299   ol_cv_header_stdc=yes
13300 else
13301   echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13303
13304   ol_cv_header_stdc=no
13305 fi
13306 rm -f conftest.err conftest.$ac_ext
13307
13308 if test $ol_cv_header_stdc = yes; then
13309   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13310 cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316 #include <string.h>
13317
13318 _ACEOF
13319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13320   $EGREP "memchr" >/dev/null 2>&1; then
13321   :
13322 else
13323   ol_cv_header_stdc=no
13324 fi
13325 rm -f conftest*
13326
13327 fi
13328
13329 if test $ol_cv_header_stdc = yes; then
13330   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13331 cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 #include <stdlib.h>
13338
13339 _ACEOF
13340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13341   $EGREP "free" >/dev/null 2>&1; then
13342   :
13343 else
13344   ol_cv_header_stdc=no
13345 fi
13346 rm -f conftest*
13347
13348 fi
13349
13350 if test $ol_cv_header_stdc = yes; then
13351   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13352 if test "$cross_compiling" = yes; then
13353   :
13354 else
13355   cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h.  */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h.  */
13361 #include <ctype.h>
13362 #ifndef HAVE_EBCDIC
13363 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13364 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13365 #else
13366 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13367                 || ('j' <= (c) && (c) <= 'r') \
13368                 || ('s' <= (c) && (c) <= 'z'))
13369 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13370 #endif
13371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13372 int main () { int i; for (i = 0; i < 256; i++)
13373 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13374 exit (0); }
13375
13376 _ACEOF
13377 rm -f conftest$ac_exeext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379   (eval $ac_link) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384   (eval $ac_try) 2>&5
13385   ac_status=$?
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); }; }; then
13388   :
13389 else
13390   echo "$as_me: program exited with status $ac_status" >&5
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394 ( exit $ac_status )
13395 ol_cv_header_stdc=no
13396 fi
13397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13398 fi
13399 fi
13400 fi
13401 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13402 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13403 if test $ol_cv_header_stdc = yes; then
13404   cat >>confdefs.h <<\_ACEOF
13405 #define STDC_HEADERS 1
13406 _ACEOF
13407
13408 fi
13409 ac_cv_header_stdc=disable
13410
13411
13412 if test $ol_cv_header_stdc != yes; then
13413         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13414 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13415 fi
13416
13417
13418
13419
13420
13421
13422 ac_header_dirent=no
13423 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13424   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13425 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13426 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436 #include <sys/types.h>
13437 #include <$ac_hdr>
13438
13439 int
13440 main ()
13441 {
13442 if ((DIR *) 0)
13443 return 0;
13444   ;
13445   return 0;
13446 }
13447 _ACEOF
13448 rm -f conftest.$ac_objext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450   (eval $ac_compile) 2>conftest.er1
13451   ac_status=$?
13452   grep -v '^ *+' conftest.er1 >conftest.err
13453   rm -f conftest.er1
13454   cat conftest.err >&5
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); } &&
13457          { ac_try='test -z "$ac_c_werror_flag"
13458                          || test ! -s conftest.err'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; } &&
13464          { ac_try='test -s conftest.$ac_objext'
13465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466   (eval $ac_try) 2>&5
13467   ac_status=$?
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); }; }; then
13470   eval "$as_ac_Header=yes"
13471 else
13472   echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475 eval "$as_ac_Header=no"
13476 fi
13477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13478 fi
13479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13482   cat >>confdefs.h <<_ACEOF
13483 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13484 _ACEOF
13485
13486 ac_header_dirent=$ac_hdr; break
13487 fi
13488
13489 done
13490 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13491 if test $ac_header_dirent = dirent.h; then
13492   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13493 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13494 if test "${ac_cv_search_opendir+set}" = set; then
13495   echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497   ac_func_search_save_LIBS=$LIBS
13498 ac_cv_search_opendir=no
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h.  */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h.  */
13505
13506 /* Override any gcc2 internal prototype to avoid an error.  */
13507 #ifdef __cplusplus
13508 extern "C"
13509 #endif
13510 /* We use char because int might match the return type of a gcc2
13511    builtin and then its argument prototype would still apply.  */
13512 char opendir ();
13513 int
13514 main ()
13515 {
13516 opendir ();
13517   ;
13518   return 0;
13519 }
13520 _ACEOF
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523   (eval $ac_link) 2>conftest.er1
13524   ac_status=$?
13525   grep -v '^ *+' conftest.er1 >conftest.err
13526   rm -f conftest.er1
13527   cat conftest.err >&5
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } &&
13530          { ac_try='test -z "$ac_c_werror_flag"
13531                          || test ! -s conftest.err'
13532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533   (eval $ac_try) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; } &&
13537          { ac_try='test -s conftest$ac_exeext'
13538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539   (eval $ac_try) 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; }; then
13543   ac_cv_search_opendir="none required"
13544 else
13545   echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13547
13548 fi
13549 rm -f conftest.err conftest.$ac_objext \
13550       conftest$ac_exeext conftest.$ac_ext
13551 if test "$ac_cv_search_opendir" = no; then
13552   for ac_lib in dir; do
13553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13554     cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560
13561 /* Override any gcc2 internal prototype to avoid an error.  */
13562 #ifdef __cplusplus
13563 extern "C"
13564 #endif
13565 /* We use char because int might match the return type of a gcc2
13566    builtin and then its argument prototype would still apply.  */
13567 char opendir ();
13568 int
13569 main ()
13570 {
13571 opendir ();
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578   (eval $ac_link) 2>conftest.er1
13579   ac_status=$?
13580   grep -v '^ *+' conftest.er1 >conftest.err
13581   rm -f conftest.er1
13582   cat conftest.err >&5
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } &&
13585          { ac_try='test -z "$ac_c_werror_flag"
13586                          || test ! -s conftest.err'
13587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588   (eval $ac_try) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); }; } &&
13592          { ac_try='test -s conftest$ac_exeext'
13593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594   (eval $ac_try) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }; then
13598   ac_cv_search_opendir="-l$ac_lib"
13599 break
13600 else
13601   echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13603
13604 fi
13605 rm -f conftest.err conftest.$ac_objext \
13606       conftest$ac_exeext conftest.$ac_ext
13607   done
13608 fi
13609 LIBS=$ac_func_search_save_LIBS
13610 fi
13611 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13612 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13613 if test "$ac_cv_search_opendir" != no; then
13614   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13615
13616 fi
13617
13618 else
13619   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13620 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13621 if test "${ac_cv_search_opendir+set}" = set; then
13622   echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624   ac_func_search_save_LIBS=$LIBS
13625 ac_cv_search_opendir=no
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h.  */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h.  */
13632
13633 /* Override any gcc2 internal prototype to avoid an error.  */
13634 #ifdef __cplusplus
13635 extern "C"
13636 #endif
13637 /* We use char because int might match the return type of a gcc2
13638    builtin and then its argument prototype would still apply.  */
13639 char opendir ();
13640 int
13641 main ()
13642 {
13643 opendir ();
13644   ;
13645   return 0;
13646 }
13647 _ACEOF
13648 rm -f conftest.$ac_objext conftest$ac_exeext
13649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13650   (eval $ac_link) 2>conftest.er1
13651   ac_status=$?
13652   grep -v '^ *+' conftest.er1 >conftest.err
13653   rm -f conftest.er1
13654   cat conftest.err >&5
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); } &&
13657          { ac_try='test -z "$ac_c_werror_flag"
13658                          || test ! -s conftest.err'
13659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660   (eval $ac_try) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }; } &&
13664          { ac_try='test -s conftest$ac_exeext'
13665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666   (eval $ac_try) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; }; then
13670   ac_cv_search_opendir="none required"
13671 else
13672   echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675 fi
13676 rm -f conftest.err conftest.$ac_objext \
13677       conftest$ac_exeext conftest.$ac_ext
13678 if test "$ac_cv_search_opendir" = no; then
13679   for ac_lib in x; do
13680     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13681     cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h.  */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h.  */
13687
13688 /* Override any gcc2 internal prototype to avoid an error.  */
13689 #ifdef __cplusplus
13690 extern "C"
13691 #endif
13692 /* We use char because int might match the return type of a gcc2
13693    builtin and then its argument prototype would still apply.  */
13694 char opendir ();
13695 int
13696 main ()
13697 {
13698 opendir ();
13699   ;
13700   return 0;
13701 }
13702 _ACEOF
13703 rm -f conftest.$ac_objext conftest$ac_exeext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13705   (eval $ac_link) 2>conftest.er1
13706   ac_status=$?
13707   grep -v '^ *+' conftest.er1 >conftest.err
13708   rm -f conftest.er1
13709   cat conftest.err >&5
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); } &&
13712          { ac_try='test -z "$ac_c_werror_flag"
13713                          || test ! -s conftest.err'
13714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715   (eval $ac_try) 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; } &&
13719          { ac_try='test -s conftest$ac_exeext'
13720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721   (eval $ac_try) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; }; then
13725   ac_cv_search_opendir="-l$ac_lib"
13726 break
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 fi
13732 rm -f conftest.err conftest.$ac_objext \
13733       conftest$ac_exeext conftest.$ac_ext
13734   done
13735 fi
13736 LIBS=$ac_func_search_save_LIBS
13737 fi
13738 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13739 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13740 if test "$ac_cv_search_opendir" != no; then
13741   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13742
13743 fi
13744
13745 fi
13746
13747 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13750   echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752   cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h.  */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h.  */
13758 #include <sys/types.h>
13759 #include <sys/wait.h>
13760 #ifndef WEXITSTATUS
13761 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13762 #endif
13763 #ifndef WIFEXITED
13764 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13765 #endif
13766
13767 int
13768 main ()
13769 {
13770   int s;
13771   wait (&s);
13772   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13773   ;
13774   return 0;
13775 }
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779   (eval $ac_compile) 2>conftest.er1
13780   ac_status=$?
13781   grep -v '^ *+' conftest.er1 >conftest.err
13782   rm -f conftest.er1
13783   cat conftest.err >&5
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); } &&
13786          { ac_try='test -z "$ac_c_werror_flag"
13787                          || test ! -s conftest.err'
13788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789   (eval $ac_try) 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; } &&
13793          { ac_try='test -s conftest.$ac_objext'
13794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795   (eval $ac_try) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; }; then
13799   ac_cv_header_sys_wait_h=yes
13800 else
13801   echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804 ac_cv_header_sys_wait_h=no
13805 fi
13806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807 fi
13808 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13809 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13810 if test $ac_cv_header_sys_wait_h = yes; then
13811
13812 cat >>confdefs.h <<\_ACEOF
13813 #define HAVE_SYS_WAIT_H 1
13814 _ACEOF
13815
13816 fi
13817
13818 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13819 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13820 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   cat >conftest.$ac_ext <<_ACEOF
13824 /* confdefs.h.  */
13825 _ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h.  */
13829 #include <sys/types.h>
13830 #include <termios.h>
13831 #ifdef TIOCGWINSZ
13832   yes
13833 #endif
13834
13835 _ACEOF
13836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13837   $EGREP "yes" >/dev/null 2>&1; then
13838   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13839 else
13840   ac_cv_sys_tiocgwinsz_in_termios_h=no
13841 fi
13842 rm -f conftest*
13843
13844 fi
13845 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13846 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13847
13848 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13849   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13850 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13851 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13852   echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854   cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h.  */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h.  */
13860 #include <sys/types.h>
13861 #include <sys/ioctl.h>
13862 #ifdef TIOCGWINSZ
13863   yes
13864 #endif
13865
13866 _ACEOF
13867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13868   $EGREP "yes" >/dev/null 2>&1; then
13869   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13870 else
13871   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13872 fi
13873 rm -f conftest*
13874
13875 fi
13876 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13877 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13878
13879   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13880
13881 cat >>confdefs.h <<\_ACEOF
13882 #define GWINSZ_IN_SYS_IOCTL 1
13883 _ACEOF
13884
13885   fi
13886 fi
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936 for ac_header in \
13937         arpa/inet.h             \
13938         arpa/nameser.h  \
13939         assert.h                \
13940         bits/types.h    \
13941         conio.h                 \
13942         crypt.h                 \
13943         direct.h                \
13944         errno.h                 \
13945         fcntl.h                 \
13946         filio.h                 \
13947         getopt.h                \
13948         grp.h                   \
13949         io.h                    \
13950         libutil.h               \
13951         limits.h                \
13952         locale.h                \
13953         malloc.h                \
13954         memory.h                \
13955         psap.h                  \
13956         pwd.h                   \
13957         process.h               \
13958         sgtty.h                 \
13959         shadow.h                \
13960         stddef.h                \
13961         string.h                \
13962         strings.h               \
13963         sysexits.h              \
13964         sys/file.h              \
13965         sys/filio.h             \
13966         sys/fstyp.h             \
13967         sys/errno.h             \
13968         sys/ioctl.h             \
13969         sys/param.h             \
13970         sys/privgrp.h   \
13971         sys/resource.h  \
13972         sys/select.h    \
13973         sys/socket.h    \
13974         sys/stat.h              \
13975         sys/syslog.h    \
13976         sys/time.h              \
13977         sys/types.h             \
13978         sys/uio.h               \
13979         sys/vmount.h    \
13980         syslog.h                \
13981         termios.h               \
13982         unistd.h                \
13983         utime.h                 \
13984
13985 do
13986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13988   echo "$as_me:$LINENO: checking for $ac_header" >&5
13989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991   echo $ECHO_N "(cached) $ECHO_C" >&6
13992 fi
13993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13995 else
13996   # Is the header compilable?
13997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13999 cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005 $ac_includes_default
14006 #include <$ac_header>
14007 _ACEOF
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010   (eval $ac_compile) 2>conftest.er1
14011   ac_status=$?
14012   grep -v '^ *+' conftest.er1 >conftest.err
14013   rm -f conftest.er1
14014   cat conftest.err >&5
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); } &&
14017          { ac_try='test -z "$ac_c_werror_flag"
14018                          || test ! -s conftest.err'
14019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020   (eval $ac_try) 2>&5
14021   ac_status=$?
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); }; } &&
14024          { ac_try='test -s conftest.$ac_objext'
14025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026   (eval $ac_try) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   ac_header_compiler=yes
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ac_header_compiler=no
14036 fi
14037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14039 echo "${ECHO_T}$ac_header_compiler" >&6
14040
14041 # Is the header present?
14042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 #include <$ac_header>
14051 _ACEOF
14052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14054   ac_status=$?
14055   grep -v '^ *+' conftest.er1 >conftest.err
14056   rm -f conftest.er1
14057   cat conftest.err >&5
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } >/dev/null; then
14060   if test -s conftest.err; then
14061     ac_cpp_err=$ac_c_preproc_warn_flag
14062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14063   else
14064     ac_cpp_err=
14065   fi
14066 else
14067   ac_cpp_err=yes
14068 fi
14069 if test -z "$ac_cpp_err"; then
14070   ac_header_preproc=yes
14071 else
14072   echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075   ac_header_preproc=no
14076 fi
14077 rm -f conftest.err conftest.$ac_ext
14078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14079 echo "${ECHO_T}$ac_header_preproc" >&6
14080
14081 # So?  What about this header?
14082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14083   yes:no: )
14084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14088     ac_header_preproc=yes
14089     ;;
14090   no:yes:* )
14091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14103     (
14104       cat <<\_ASBOX
14105 ## --------------------------------------------- ##
14106 ## Report this to <http://www.openldap.org/its/> ##
14107 ## --------------------------------------------- ##
14108 _ASBOX
14109     ) |
14110       sed "s/^/$as_me: WARNING:     /" >&2
14111     ;;
14112 esac
14113 echo "$as_me:$LINENO: checking for $ac_header" >&5
14114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118   eval "$as_ac_Header=\$ac_header_preproc"
14119 fi
14120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14122
14123 fi
14124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125   cat >>confdefs.h <<_ACEOF
14126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127 _ACEOF
14128
14129 fi
14130
14131 done
14132
14133
14134 if test "$ac_cv_mingw32" = yes ; then
14135
14136
14137 for ac_header in winsock.h winsock2.h
14138 do
14139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141   echo "$as_me:$LINENO: checking for $ac_header" >&5
14142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14144   echo $ECHO_N "(cached) $ECHO_C" >&6
14145 fi
14146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14148 else
14149   # Is the header compilable?
14150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h.  */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h.  */
14158 $ac_includes_default
14159 #include <$ac_header>
14160 _ACEOF
14161 rm -f conftest.$ac_objext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163   (eval $ac_compile) 2>conftest.er1
14164   ac_status=$?
14165   grep -v '^ *+' conftest.er1 >conftest.err
14166   rm -f conftest.er1
14167   cat conftest.err >&5
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } &&
14170          { ac_try='test -z "$ac_c_werror_flag"
14171                          || test ! -s conftest.err'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; } &&
14177          { ac_try='test -s conftest.$ac_objext'
14178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179   (eval $ac_try) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; }; then
14183   ac_header_compiler=yes
14184 else
14185   echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 ac_header_compiler=no
14189 fi
14190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14192 echo "${ECHO_T}$ac_header_compiler" >&6
14193
14194 # Is the header present?
14195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h.  */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h.  */
14203 #include <$ac_header>
14204 _ACEOF
14205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14207   ac_status=$?
14208   grep -v '^ *+' conftest.er1 >conftest.err
14209   rm -f conftest.er1
14210   cat conftest.err >&5
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } >/dev/null; then
14213   if test -s conftest.err; then
14214     ac_cpp_err=$ac_c_preproc_warn_flag
14215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14216   else
14217     ac_cpp_err=
14218   fi
14219 else
14220   ac_cpp_err=yes
14221 fi
14222 if test -z "$ac_cpp_err"; then
14223   ac_header_preproc=yes
14224 else
14225   echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228   ac_header_preproc=no
14229 fi
14230 rm -f conftest.err conftest.$ac_ext
14231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14232 echo "${ECHO_T}$ac_header_preproc" >&6
14233
14234 # So?  What about this header?
14235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14236   yes:no: )
14237     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14241     ac_header_preproc=yes
14242     ;;
14243   no:yes:* )
14244     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14246     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14247 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14248     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14250     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14251 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14254     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14256     (
14257       cat <<\_ASBOX
14258 ## --------------------------------------------- ##
14259 ## Report this to <http://www.openldap.org/its/> ##
14260 ## --------------------------------------------- ##
14261 _ASBOX
14262     ) |
14263       sed "s/^/$as_me: WARNING:     /" >&2
14264     ;;
14265 esac
14266 echo "$as_me:$LINENO: checking for $ac_header" >&5
14267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14269   echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271   eval "$as_ac_Header=\$ac_header_preproc"
14272 fi
14273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14275
14276 fi
14277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14278   cat >>confdefs.h <<_ACEOF
14279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14280 _ACEOF
14281
14282 fi
14283
14284 done
14285
14286 fi
14287
14288
14289 for ac_header in resolv.h
14290 do
14291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14292 echo "$as_me:$LINENO: checking for $ac_header" >&5
14293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295   echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297   cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h.  */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h.  */
14303 $ac_includes_default
14304 #include <netinet/in.h>
14305
14306
14307 #include <$ac_header>
14308 _ACEOF
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311   (eval $ac_compile) 2>conftest.er1
14312   ac_status=$?
14313   grep -v '^ *+' conftest.er1 >conftest.err
14314   rm -f conftest.er1
14315   cat conftest.err >&5
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -z "$ac_c_werror_flag"
14319                          || test ! -s conftest.err'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; } &&
14325          { ac_try='test -s conftest.$ac_objext'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; }; then
14331   eval "$as_ac_Header=yes"
14332 else
14333   echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 eval "$as_ac_Header=no"
14337 fi
14338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14339 fi
14340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14343   cat >>confdefs.h <<_ACEOF
14344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14345 _ACEOF
14346
14347 fi
14348
14349 done
14350
14351
14352
14353 for ac_header in netinet/tcp.h
14354 do
14355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14356 echo "$as_me:$LINENO: checking for $ac_header" >&5
14357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h.  */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h.  */
14367 $ac_includes_default
14368 #include <netinet/in.h>
14369
14370
14371 #include <$ac_header>
14372 _ACEOF
14373 rm -f conftest.$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375   (eval $ac_compile) 2>conftest.er1
14376   ac_status=$?
14377   grep -v '^ *+' conftest.er1 >conftest.err
14378   rm -f conftest.er1
14379   cat conftest.err >&5
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); } &&
14382          { ac_try='test -z "$ac_c_werror_flag"
14383                          || test ! -s conftest.err'
14384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385   (eval $ac_try) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; } &&
14389          { ac_try='test -s conftest.$ac_objext'
14390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391   (eval $ac_try) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; }; then
14395   eval "$as_ac_Header=yes"
14396 else
14397   echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400 eval "$as_ac_Header=no"
14401 fi
14402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14403 fi
14404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14407   cat >>confdefs.h <<_ACEOF
14408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14409 _ACEOF
14410
14411 fi
14412
14413 done
14414
14415
14416
14417 for ac_header in sys/ucred.h
14418 do
14419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14420 echo "$as_me:$LINENO: checking for $ac_header" >&5
14421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14423   echo $ECHO_N "(cached) $ECHO_C" >&6
14424 else
14425   cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431 $ac_includes_default
14432 #ifdef HAVE_SYS_PARAM_H
14433 #include <sys/param.h>
14434 #endif
14435
14436
14437 #include <$ac_header>
14438 _ACEOF
14439 rm -f conftest.$ac_objext
14440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14441   (eval $ac_compile) 2>conftest.er1
14442   ac_status=$?
14443   grep -v '^ *+' conftest.er1 >conftest.err
14444   rm -f conftest.er1
14445   cat conftest.err >&5
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); } &&
14448          { ac_try='test -z "$ac_c_werror_flag"
14449                          || test ! -s conftest.err'
14450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451   (eval $ac_try) 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; } &&
14455          { ac_try='test -s conftest.$ac_objext'
14456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457   (eval $ac_try) 2>&5
14458   ac_status=$?
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); }; }; then
14461   eval "$as_ac_Header=yes"
14462 else
14463   echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14465
14466 eval "$as_ac_Header=no"
14467 fi
14468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14469 fi
14470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14473   cat >>confdefs.h <<_ACEOF
14474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14475 _ACEOF
14476
14477 fi
14478
14479 done
14480
14481
14482
14483
14484
14485 for ac_func in sigaction sigset
14486 do
14487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14488 echo "$as_me:$LINENO: checking for $ac_func" >&5
14489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14490 if eval "test \"\${$as_ac_var+set}\" = set"; then
14491   echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493   cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14501 #define $ac_func innocuous_$ac_func
14502
14503 /* System header to define __stub macros and hopefully few prototypes,
14504     which can conflict with char $ac_func (); below.
14505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14506     <limits.h> exists even on freestanding compilers.  */
14507
14508 #ifdef __STDC__
14509 # include <limits.h>
14510 #else
14511 # include <assert.h>
14512 #endif
14513
14514 #undef $ac_func
14515
14516 /* Override any gcc2 internal prototype to avoid an error.  */
14517 #ifdef __cplusplus
14518 extern "C"
14519 {
14520 #endif
14521 /* We use char because int might match the return type of a gcc2
14522    builtin and then its argument prototype would still apply.  */
14523 char $ac_func ();
14524 /* The GNU C library defines this for functions which it implements
14525     to always fail with ENOSYS.  Some functions are actually named
14526     something starting with __ and the normal name is an alias.  */
14527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14528 choke me
14529 #else
14530 char (*f) () = $ac_func;
14531 #endif
14532 #ifdef __cplusplus
14533 }
14534 #endif
14535
14536 int
14537 main ()
14538 {
14539 return f != $ac_func;
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14546   (eval $ac_link) 2>conftest.er1
14547   ac_status=$?
14548   grep -v '^ *+' conftest.er1 >conftest.err
14549   rm -f conftest.er1
14550   cat conftest.err >&5
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } &&
14553          { ac_try='test -z "$ac_c_werror_flag"
14554                          || test ! -s conftest.err'
14555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556   (eval $ac_try) 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; } &&
14560          { ac_try='test -s conftest$ac_exeext'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   eval "$as_ac_var=yes"
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 eval "$as_ac_var=no"
14572 fi
14573 rm -f conftest.err conftest.$ac_objext \
14574       conftest$ac_exeext conftest.$ac_ext
14575 fi
14576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14578 if test `eval echo '${'$as_ac_var'}'` = yes; then
14579   cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14581 _ACEOF
14582
14583 fi
14584 done
14585
14586
14587 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14588
14589 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14590 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14591 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14592   echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14594   ac_check_lib_save_LIBS=$LIBS
14595 LIBS="-lV3  $LIBS"
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h.  */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h.  */
14602
14603 /* Override any gcc2 internal prototype to avoid an error.  */
14604 #ifdef __cplusplus
14605 extern "C"
14606 #endif
14607 /* We use char because int might match the return type of a gcc2
14608    builtin and then its argument prototype would still apply.  */
14609 char sigset ();
14610 int
14611 main ()
14612 {
14613 sigset ();
14614   ;
14615   return 0;
14616 }
14617 _ACEOF
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14620   (eval $ac_link) 2>conftest.er1
14621   ac_status=$?
14622   grep -v '^ *+' conftest.er1 >conftest.err
14623   rm -f conftest.er1
14624   cat conftest.err >&5
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } &&
14627          { ac_try='test -z "$ac_c_werror_flag"
14628                          || test ! -s conftest.err'
14629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630   (eval $ac_try) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; } &&
14634          { ac_try='test -s conftest$ac_exeext'
14635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636   (eval $ac_try) 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }; }; then
14640   ac_cv_lib_V3_sigset=yes
14641 else
14642   echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645 ac_cv_lib_V3_sigset=no
14646 fi
14647 rm -f conftest.err conftest.$ac_objext \
14648       conftest$ac_exeext conftest.$ac_ext
14649 LIBS=$ac_check_lib_save_LIBS
14650 fi
14651 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14652 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14653 if test $ac_cv_lib_V3_sigset = yes; then
14654   cat >>confdefs.h <<_ACEOF
14655 #define HAVE_LIBV3 1
14656 _ACEOF
14657
14658   LIBS="-lV3 $LIBS"
14659
14660 fi
14661
14662 fi
14663
14664 if test "$ac_cv_header_winsock_h" = yes; then
14665 echo "$as_me:$LINENO: checking for winsock" >&5
14666 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14667 if test "${ol_cv_winsock+set}" = set; then
14668   echo $ECHO_N "(cached) $ECHO_C" >&6
14669 else
14670   save_LIBS="$LIBS"
14671 for curlib in ws2_32 wsock32; do
14672         LIBS="$LIBS -l$curlib"
14673         cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679 #include <winsock.h>
14680
14681 int
14682 main ()
14683 {
14684
14685                         socket(0,0,0);
14686                         select(0,NULL,NULL,NULL,NULL);
14687                         closesocket(0);
14688                         gethostname(NULL,0);
14689
14690   ;
14691   return 0;
14692 }
14693 _ACEOF
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14696   (eval $ac_link) 2>conftest.er1
14697   ac_status=$?
14698   grep -v '^ *+' conftest.er1 >conftest.err
14699   rm -f conftest.er1
14700   cat conftest.err >&5
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); } &&
14703          { ac_try='test -z "$ac_c_werror_flag"
14704                          || test ! -s conftest.err'
14705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706   (eval $ac_try) 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); }; } &&
14710          { ac_try='test -s conftest$ac_exeext'
14711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712   (eval $ac_try) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; }; then
14716   ol_cv_winsock=yes
14717 else
14718   echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721 ol_cv_winsock=no
14722 fi
14723 rm -f conftest.err conftest.$ac_objext \
14724       conftest$ac_exeext conftest.$ac_ext
14725
14726         if test $ol_cv_winsock = yes; then
14727
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_WINSOCK 1
14730 _ACEOF
14731
14732                 ac_cv_func_socket=yes
14733                 ac_cv_func_select=yes
14734                 ac_cv_func_closesocket=yes
14735                 ac_cv_func_gethostname=yes
14736                 if test $curlib = ws2_32; then
14737                         ol_cv_winsock=winsock2
14738
14739 cat >>confdefs.h <<\_ACEOF
14740 #define HAVE_WINSOCK2 1
14741 _ACEOF
14742
14743                 fi
14744                 break
14745         fi
14746         LIBS="$save_LIBS"
14747 done
14748 fi
14749 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14750 echo "${ECHO_T}$ol_cv_winsock" >&6
14751 fi
14752
14753
14754 echo "$as_me:$LINENO: checking for socket" >&5
14755 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14756 if test "${ac_cv_func_socket+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   cat >conftest.$ac_ext <<_ACEOF
14760 /* confdefs.h.  */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h.  */
14765 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14767 #define socket innocuous_socket
14768
14769 /* System header to define __stub macros and hopefully few prototypes,
14770     which can conflict with char socket (); below.
14771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14772     <limits.h> exists even on freestanding compilers.  */
14773
14774 #ifdef __STDC__
14775 # include <limits.h>
14776 #else
14777 # include <assert.h>
14778 #endif
14779
14780 #undef socket
14781
14782 /* Override any gcc2 internal prototype to avoid an error.  */
14783 #ifdef __cplusplus
14784 extern "C"
14785 {
14786 #endif
14787 /* We use char because int might match the return type of a gcc2
14788    builtin and then its argument prototype would still apply.  */
14789 char socket ();
14790 /* The GNU C library defines this for functions which it implements
14791     to always fail with ENOSYS.  Some functions are actually named
14792     something starting with __ and the normal name is an alias.  */
14793 #if defined (__stub_socket) || defined (__stub___socket)
14794 choke me
14795 #else
14796 char (*f) () = socket;
14797 #endif
14798 #ifdef __cplusplus
14799 }
14800 #endif
14801
14802 int
14803 main ()
14804 {
14805 return f != socket;
14806   ;
14807   return 0;
14808 }
14809 _ACEOF
14810 rm -f conftest.$ac_objext conftest$ac_exeext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14812   (eval $ac_link) 2>conftest.er1
14813   ac_status=$?
14814   grep -v '^ *+' conftest.er1 >conftest.err
14815   rm -f conftest.er1
14816   cat conftest.err >&5
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } &&
14819          { ac_try='test -z "$ac_c_werror_flag"
14820                          || test ! -s conftest.err'
14821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822   (eval $ac_try) 2>&5
14823   ac_status=$?
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; } &&
14826          { ac_try='test -s conftest$ac_exeext'
14827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828   (eval $ac_try) 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; }; then
14832   ac_cv_func_socket=yes
14833 else
14834   echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14836
14837 ac_cv_func_socket=no
14838 fi
14839 rm -f conftest.err conftest.$ac_objext \
14840       conftest$ac_exeext conftest.$ac_ext
14841 fi
14842 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14843 echo "${ECHO_T}$ac_cv_func_socket" >&6
14844 if test $ac_cv_func_socket = yes; then
14845   :
14846 else
14847
14848
14849 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14850 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14851 if test "${ac_cv_lib_socket_main+set}" = set; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854   ac_check_lib_save_LIBS=$LIBS
14855 LIBS="-lsocket  $LIBS"
14856 cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h.  */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h.  */
14862
14863
14864 int
14865 main ()
14866 {
14867 main ();
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874   (eval $ac_link) 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } &&
14881          { ac_try='test -z "$ac_c_werror_flag"
14882                          || test ! -s conftest.err'
14883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884   (eval $ac_try) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; } &&
14888          { ac_try='test -s conftest$ac_exeext'
14889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890   (eval $ac_try) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; }; then
14894   ac_cv_lib_socket_main=yes
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899 ac_cv_lib_socket_main=no
14900 fi
14901 rm -f conftest.err conftest.$ac_objext \
14902       conftest$ac_exeext conftest.$ac_ext
14903 LIBS=$ac_check_lib_save_LIBS
14904 fi
14905 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14906 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14907 if test $ac_cv_lib_socket_main = yes; then
14908   cat >>confdefs.h <<_ACEOF
14909 #define HAVE_LIBSOCKET 1
14910 _ACEOF
14911
14912   LIBS="-lsocket $LIBS"
14913
14914 fi
14915
14916
14917 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14918 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14919 if test "${ac_cv_lib_net_main+set}" = set; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922   ac_check_lib_save_LIBS=$LIBS
14923 LIBS="-lnet  $LIBS"
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930
14931
14932 int
14933 main ()
14934 {
14935 main ();
14936   ;
14937   return 0;
14938 }
14939 _ACEOF
14940 rm -f conftest.$ac_objext conftest$ac_exeext
14941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14942   (eval $ac_link) 2>conftest.er1
14943   ac_status=$?
14944   grep -v '^ *+' conftest.er1 >conftest.err
14945   rm -f conftest.er1
14946   cat conftest.err >&5
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); } &&
14949          { ac_try='test -z "$ac_c_werror_flag"
14950                          || test ! -s conftest.err'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; } &&
14956          { ac_try='test -s conftest$ac_exeext'
14957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958   (eval $ac_try) 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; }; then
14962   ac_cv_lib_net_main=yes
14963 else
14964   echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14966
14967 ac_cv_lib_net_main=no
14968 fi
14969 rm -f conftest.err conftest.$ac_objext \
14970       conftest$ac_exeext conftest.$ac_ext
14971 LIBS=$ac_check_lib_save_LIBS
14972 fi
14973 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14974 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14975 if test $ac_cv_lib_net_main = yes; then
14976   cat >>confdefs.h <<_ACEOF
14977 #define HAVE_LIBNET 1
14978 _ACEOF
14979
14980   LIBS="-lnet $LIBS"
14981
14982 fi
14983
14984
14985 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14986 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14987 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14988   echo $ECHO_N "(cached) $ECHO_C" >&6
14989 else
14990   ac_check_lib_save_LIBS=$LIBS
14991 LIBS="-lnsl_s  $LIBS"
14992 cat >conftest.$ac_ext <<_ACEOF
14993 /* confdefs.h.  */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h.  */
14998
14999
15000 int
15001 main ()
15002 {
15003 main ();
15004   ;
15005   return 0;
15006 }
15007 _ACEOF
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15010   (eval $ac_link) 2>conftest.er1
15011   ac_status=$?
15012   grep -v '^ *+' conftest.er1 >conftest.err
15013   rm -f conftest.er1
15014   cat conftest.err >&5
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } &&
15017          { ac_try='test -z "$ac_c_werror_flag"
15018                          || test ! -s conftest.err'
15019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020   (eval $ac_try) 2>&5
15021   ac_status=$?
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); }; } &&
15024          { ac_try='test -s conftest$ac_exeext'
15025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026   (eval $ac_try) 2>&5
15027   ac_status=$?
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); }; }; then
15030   ac_cv_lib_nsl_s_main=yes
15031 else
15032   echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15034
15035 ac_cv_lib_nsl_s_main=no
15036 fi
15037 rm -f conftest.err conftest.$ac_objext \
15038       conftest$ac_exeext conftest.$ac_ext
15039 LIBS=$ac_check_lib_save_LIBS
15040 fi
15041 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15042 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15043 if test $ac_cv_lib_nsl_s_main = yes; then
15044   cat >>confdefs.h <<_ACEOF
15045 #define HAVE_LIBNSL_S 1
15046 _ACEOF
15047
15048   LIBS="-lnsl_s $LIBS"
15049
15050 fi
15051
15052
15053 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15054 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15055 if test "${ac_cv_lib_nsl_main+set}" = set; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   ac_check_lib_save_LIBS=$LIBS
15059 LIBS="-lnsl  $LIBS"
15060 cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h.  */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h.  */
15066
15067
15068 int
15069 main ()
15070 {
15071 main ();
15072   ;
15073   return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078   (eval $ac_link) 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_c_werror_flag"
15086                          || test ! -s conftest.err'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; } &&
15092          { ac_try='test -s conftest$ac_exeext'
15093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094   (eval $ac_try) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }; }; then
15098   ac_cv_lib_nsl_main=yes
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 ac_cv_lib_nsl_main=no
15104 fi
15105 rm -f conftest.err conftest.$ac_objext \
15106       conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15108 fi
15109 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15110 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15111 if test $ac_cv_lib_nsl_main = yes; then
15112   cat >>confdefs.h <<_ACEOF
15113 #define HAVE_LIBNSL 1
15114 _ACEOF
15115
15116   LIBS="-lnsl $LIBS"
15117
15118 fi
15119
15120
15121 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15122 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15123 if test "${ac_cv_lib_inet_socket+set}" = set; then
15124   echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126   ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-linet  $LIBS"
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134
15135 /* Override any gcc2 internal prototype to avoid an error.  */
15136 #ifdef __cplusplus
15137 extern "C"
15138 #endif
15139 /* We use char because int might match the return type of a gcc2
15140    builtin and then its argument prototype would still apply.  */
15141 char socket ();
15142 int
15143 main ()
15144 {
15145 socket ();
15146   ;
15147   return 0;
15148 }
15149 _ACEOF
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15152   (eval $ac_link) 2>conftest.er1
15153   ac_status=$?
15154   grep -v '^ *+' conftest.er1 >conftest.err
15155   rm -f conftest.er1
15156   cat conftest.err >&5
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } &&
15159          { ac_try='test -z "$ac_c_werror_flag"
15160                          || test ! -s conftest.err'
15161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162   (eval $ac_try) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; } &&
15166          { ac_try='test -s conftest$ac_exeext'
15167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168   (eval $ac_try) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; }; then
15172   ac_cv_lib_inet_socket=yes
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177 ac_cv_lib_inet_socket=no
15178 fi
15179 rm -f conftest.err conftest.$ac_objext \
15180       conftest$ac_exeext conftest.$ac_ext
15181 LIBS=$ac_check_lib_save_LIBS
15182 fi
15183 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15184 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15185 if test $ac_cv_lib_inet_socket = yes; then
15186   cat >>confdefs.h <<_ACEOF
15187 #define HAVE_LIBINET 1
15188 _ACEOF
15189
15190   LIBS="-linet $LIBS"
15191
15192 fi
15193
15194
15195 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15196 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15197 if test "${ac_cv_lib_gen_main+set}" = set; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   ac_check_lib_save_LIBS=$LIBS
15201 LIBS="-lgen  $LIBS"
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208
15209
15210 int
15211 main ()
15212 {
15213 main ();
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220   (eval $ac_link) 2>conftest.er1
15221   ac_status=$?
15222   grep -v '^ *+' conftest.er1 >conftest.err
15223   rm -f conftest.er1
15224   cat conftest.err >&5
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); } &&
15227          { ac_try='test -z "$ac_c_werror_flag"
15228                          || test ! -s conftest.err'
15229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230   (eval $ac_try) 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; } &&
15234          { ac_try='test -s conftest$ac_exeext'
15235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236   (eval $ac_try) 2>&5
15237   ac_status=$?
15238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); }; }; then
15240   ac_cv_lib_gen_main=yes
15241 else
15242   echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15244
15245 ac_cv_lib_gen_main=no
15246 fi
15247 rm -f conftest.err conftest.$ac_objext \
15248       conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15250 fi
15251 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15252 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15253 if test $ac_cv_lib_gen_main = yes; then
15254   cat >>confdefs.h <<_ACEOF
15255 #define HAVE_LIBGEN 1
15256 _ACEOF
15257
15258   LIBS="-lgen $LIBS"
15259
15260 fi
15261
15262
15263 fi
15264
15265
15266 echo "$as_me:$LINENO: checking for select" >&5
15267 echo $ECHO_N "checking for select... $ECHO_C" >&6
15268 if test "${ac_cv_func_select+set}" = set; then
15269   echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271   cat >conftest.$ac_ext <<_ACEOF
15272 /* confdefs.h.  */
15273 _ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h.  */
15277 /* Define select to an innocuous variant, in case <limits.h> declares select.
15278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15279 #define select innocuous_select
15280
15281 /* System header to define __stub macros and hopefully few prototypes,
15282     which can conflict with char select (); below.
15283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15284     <limits.h> exists even on freestanding compilers.  */
15285
15286 #ifdef __STDC__
15287 # include <limits.h>
15288 #else
15289 # include <assert.h>
15290 #endif
15291
15292 #undef select
15293
15294 /* Override any gcc2 internal prototype to avoid an error.  */
15295 #ifdef __cplusplus
15296 extern "C"
15297 {
15298 #endif
15299 /* We use char because int might match the return type of a gcc2
15300    builtin and then its argument prototype would still apply.  */
15301 char select ();
15302 /* The GNU C library defines this for functions which it implements
15303     to always fail with ENOSYS.  Some functions are actually named
15304     something starting with __ and the normal name is an alias.  */
15305 #if defined (__stub_select) || defined (__stub___select)
15306 choke me
15307 #else
15308 char (*f) () = select;
15309 #endif
15310 #ifdef __cplusplus
15311 }
15312 #endif
15313
15314 int
15315 main ()
15316 {
15317 return f != select;
15318   ;
15319   return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324   (eval $ac_link) 2>conftest.er1
15325   ac_status=$?
15326   grep -v '^ *+' conftest.er1 >conftest.err
15327   rm -f conftest.er1
15328   cat conftest.err >&5
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } &&
15331          { ac_try='test -z "$ac_c_werror_flag"
15332                          || test ! -s conftest.err'
15333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334   (eval $ac_try) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; } &&
15338          { ac_try='test -s conftest$ac_exeext'
15339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340   (eval $ac_try) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); }; }; then
15344   ac_cv_func_select=yes
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 ac_cv_func_select=no
15350 fi
15351 rm -f conftest.err conftest.$ac_objext \
15352       conftest$ac_exeext conftest.$ac_ext
15353 fi
15354 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15355 echo "${ECHO_T}$ac_cv_func_select" >&6
15356 if test $ac_cv_func_select = yes; then
15357   :
15358 else
15359   { { echo "$as_me:$LINENO: error: select() required." >&5
15360 echo "$as_me: error: select() required." >&2;}
15361    { (exit 1); exit 1; }; }
15362 fi
15363
15364
15365 if test "${ac_cv_header_winsock_h}" != yes; then
15366
15367
15368 for ac_header in sys/select.h sys/socket.h
15369 do
15370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15372   echo "$as_me:$LINENO: checking for $ac_header" >&5
15373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 fi
15377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15379 else
15380   # Is the header compilable?
15381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h.  */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h.  */
15389 $ac_includes_default
15390 #include <$ac_header>
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394   (eval $ac_compile) 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } &&
15401          { ac_try='test -z "$ac_c_werror_flag"
15402                          || test ! -s conftest.err'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; } &&
15408          { ac_try='test -s conftest.$ac_objext'
15409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410   (eval $ac_try) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414   ac_header_compiler=yes
15415 else
15416   echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 ac_header_compiler=no
15420 fi
15421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15423 echo "${ECHO_T}$ac_header_compiler" >&6
15424
15425 # Is the header present?
15426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h.  */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h.  */
15434 #include <$ac_header>
15435 _ACEOF
15436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15438   ac_status=$?
15439   grep -v '^ *+' conftest.er1 >conftest.err
15440   rm -f conftest.er1
15441   cat conftest.err >&5
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); } >/dev/null; then
15444   if test -s conftest.err; then
15445     ac_cpp_err=$ac_c_preproc_warn_flag
15446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15447   else
15448     ac_cpp_err=
15449   fi
15450 else
15451   ac_cpp_err=yes
15452 fi
15453 if test -z "$ac_cpp_err"; then
15454   ac_header_preproc=yes
15455 else
15456   echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459   ac_header_preproc=no
15460 fi
15461 rm -f conftest.err conftest.$ac_ext
15462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 echo "${ECHO_T}$ac_header_preproc" >&6
15464
15465 # So?  What about this header?
15466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467   yes:no: )
15468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15472     ac_header_preproc=yes
15473     ;;
15474   no:yes:* )
15475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15487     (
15488       cat <<\_ASBOX
15489 ## --------------------------------------------- ##
15490 ## Report this to <http://www.openldap.org/its/> ##
15491 ## --------------------------------------------- ##
15492 _ASBOX
15493     ) |
15494       sed "s/^/$as_me: WARNING:     /" >&2
15495     ;;
15496 esac
15497 echo "$as_me:$LINENO: checking for $ac_header" >&5
15498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15500   echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502   eval "$as_ac_Header=\$ac_header_preproc"
15503 fi
15504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15506
15507 fi
15508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15509   cat >>confdefs.h <<_ACEOF
15510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511 _ACEOF
15512
15513 fi
15514
15515 done
15516
15517 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15518 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15519 if test "${ac_cv_func_select_args+set}" = set; then
15520   echo $ECHO_N "(cached) $ECHO_C" >&6
15521 else
15522   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15523  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15524   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15525    cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 $ac_includes_default
15532 #if HAVE_SYS_SELECT_H
15533 # include <sys/select.h>
15534 #endif
15535 #if HAVE_SYS_SOCKET_H
15536 # include <sys/socket.h>
15537 #endif
15538
15539 int
15540 main ()
15541 {
15542 extern int select ($ac_arg1,
15543                                             $ac_arg234, $ac_arg234, $ac_arg234,
15544                                             $ac_arg5);
15545   ;
15546   return 0;
15547 }
15548 _ACEOF
15549 rm -f conftest.$ac_objext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15551   (eval $ac_compile) 2>conftest.er1
15552   ac_status=$?
15553   grep -v '^ *+' conftest.er1 >conftest.err
15554   rm -f conftest.er1
15555   cat conftest.err >&5
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } &&
15558          { ac_try='test -z "$ac_c_werror_flag"
15559                          || test ! -s conftest.err'
15560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561   (eval $ac_try) 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); }; } &&
15565          { ac_try='test -s conftest.$ac_objext'
15566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567   (eval $ac_try) 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); }; }; then
15571   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15572 else
15573   echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15575
15576 fi
15577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15578   done
15579  done
15580 done
15581 # Provide a safe default value.
15582 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15583
15584 fi
15585 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15586 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15587 ac_save_IFS=$IFS; IFS=','
15588 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15589 IFS=$ac_save_IFS
15590 shift
15591
15592 cat >>confdefs.h <<_ACEOF
15593 #define SELECT_TYPE_ARG1 $1
15594 _ACEOF
15595
15596
15597 cat >>confdefs.h <<_ACEOF
15598 #define SELECT_TYPE_ARG234 ($2)
15599 _ACEOF
15600
15601
15602 cat >>confdefs.h <<_ACEOF
15603 #define SELECT_TYPE_ARG5 ($3)
15604 _ACEOF
15605
15606 rm -f conftest*
15607
15608 fi
15609
15610
15611
15612 for ac_func in poll
15613 do
15614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15615 echo "$as_me:$LINENO: checking for $ac_func" >&5
15616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15617 if eval "test \"\${$as_ac_var+set}\" = set"; then
15618   echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620   cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h.  */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h.  */
15626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15628 #define $ac_func innocuous_$ac_func
15629
15630 /* System header to define __stub macros and hopefully few prototypes,
15631     which can conflict with char $ac_func (); below.
15632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15633     <limits.h> exists even on freestanding compilers.  */
15634
15635 #ifdef __STDC__
15636 # include <limits.h>
15637 #else
15638 # include <assert.h>
15639 #endif
15640
15641 #undef $ac_func
15642
15643 /* Override any gcc2 internal prototype to avoid an error.  */
15644 #ifdef __cplusplus
15645 extern "C"
15646 {
15647 #endif
15648 /* We use char because int might match the return type of a gcc2
15649    builtin and then its argument prototype would still apply.  */
15650 char $ac_func ();
15651 /* The GNU C library defines this for functions which it implements
15652     to always fail with ENOSYS.  Some functions are actually named
15653     something starting with __ and the normal name is an alias.  */
15654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15655 choke me
15656 #else
15657 char (*f) () = $ac_func;
15658 #endif
15659 #ifdef __cplusplus
15660 }
15661 #endif
15662
15663 int
15664 main ()
15665 {
15666 return f != $ac_func;
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673   (eval $ac_link) 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -z "$ac_c_werror_flag"
15681                          || test ! -s conftest.err'
15682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683   (eval $ac_try) 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; } &&
15687          { ac_try='test -s conftest$ac_exeext'
15688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689   (eval $ac_try) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; }; then
15693   eval "$as_ac_var=yes"
15694 else
15695   echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698 eval "$as_ac_var=no"
15699 fi
15700 rm -f conftest.err conftest.$ac_objext \
15701       conftest$ac_exeext conftest.$ac_ext
15702 fi
15703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15705 if test `eval echo '${'$as_ac_var'}'` = yes; then
15706   cat >>confdefs.h <<_ACEOF
15707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15708 _ACEOF
15709
15710 fi
15711 done
15712
15713 if test $ac_cv_func_poll = yes; then
15714
15715
15716 for ac_header in poll.h sys/poll.h
15717 do
15718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15720   echo "$as_me:$LINENO: checking for $ac_header" >&5
15721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15723   echo $ECHO_N "(cached) $ECHO_C" >&6
15724 fi
15725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15727 else
15728   # Is the header compilable?
15729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15731 cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h.  */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h.  */
15737 $ac_includes_default
15738 #include <$ac_header>
15739 _ACEOF
15740 rm -f conftest.$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742   (eval $ac_compile) 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } &&
15749          { ac_try='test -z "$ac_c_werror_flag"
15750                          || test ! -s conftest.err'
15751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752   (eval $ac_try) 2>&5
15753   ac_status=$?
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); }; } &&
15756          { ac_try='test -s conftest.$ac_objext'
15757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758   (eval $ac_try) 2>&5
15759   ac_status=$?
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); }; }; then
15762   ac_header_compiler=yes
15763 else
15764   echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15766
15767 ac_header_compiler=no
15768 fi
15769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15771 echo "${ECHO_T}$ac_header_compiler" >&6
15772
15773 # Is the header present?
15774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h.  */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h.  */
15782 #include <$ac_header>
15783 _ACEOF
15784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15785   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15786   ac_status=$?
15787   grep -v '^ *+' conftest.er1 >conftest.err
15788   rm -f conftest.er1
15789   cat conftest.err >&5
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } >/dev/null; then
15792   if test -s conftest.err; then
15793     ac_cpp_err=$ac_c_preproc_warn_flag
15794     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15795   else
15796     ac_cpp_err=
15797   fi
15798 else
15799   ac_cpp_err=yes
15800 fi
15801 if test -z "$ac_cpp_err"; then
15802   ac_header_preproc=yes
15803 else
15804   echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807   ac_header_preproc=no
15808 fi
15809 rm -f conftest.err conftest.$ac_ext
15810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15811 echo "${ECHO_T}$ac_header_preproc" >&6
15812
15813 # So?  What about this header?
15814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15815   yes:no: )
15816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15820     ac_header_preproc=yes
15821     ;;
15822   no:yes:* )
15823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15825     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15826 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15827     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15829     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15830 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15833     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15835     (
15836       cat <<\_ASBOX
15837 ## --------------------------------------------- ##
15838 ## Report this to <http://www.openldap.org/its/> ##
15839 ## --------------------------------------------- ##
15840 _ASBOX
15841     ) |
15842       sed "s/^/$as_me: WARNING:     /" >&2
15843     ;;
15844 esac
15845 echo "$as_me:$LINENO: checking for $ac_header" >&5
15846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15848   echo $ECHO_N "(cached) $ECHO_C" >&6
15849 else
15850   eval "$as_ac_Header=\$ac_header_preproc"
15851 fi
15852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15854
15855 fi
15856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15857   cat >>confdefs.h <<_ACEOF
15858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15859 _ACEOF
15860
15861 fi
15862
15863 done
15864
15865 fi
15866
15867
15868 for ac_header in sys/epoll.h
15869 do
15870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15872   echo "$as_me:$LINENO: checking for $ac_header" >&5
15873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15875   echo $ECHO_N "(cached) $ECHO_C" >&6
15876 fi
15877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15879 else
15880   # Is the header compilable?
15881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h.  */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h.  */
15889 $ac_includes_default
15890 #include <$ac_header>
15891 _ACEOF
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894   (eval $ac_compile) 2>conftest.er1
15895   ac_status=$?
15896   grep -v '^ *+' conftest.er1 >conftest.err
15897   rm -f conftest.er1
15898   cat conftest.err >&5
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); } &&
15901          { ac_try='test -z "$ac_c_werror_flag"
15902                          || test ! -s conftest.err'
15903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904   (eval $ac_try) 2>&5
15905   ac_status=$?
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); }; } &&
15908          { ac_try='test -s conftest.$ac_objext'
15909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910   (eval $ac_try) 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); }; }; then
15914   ac_header_compiler=yes
15915 else
15916   echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15918
15919 ac_header_compiler=no
15920 fi
15921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15923 echo "${ECHO_T}$ac_header_compiler" >&6
15924
15925 # Is the header present?
15926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h.  */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h.  */
15934 #include <$ac_header>
15935 _ACEOF
15936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } >/dev/null; then
15944   if test -s conftest.err; then
15945     ac_cpp_err=$ac_c_preproc_warn_flag
15946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15947   else
15948     ac_cpp_err=
15949   fi
15950 else
15951   ac_cpp_err=yes
15952 fi
15953 if test -z "$ac_cpp_err"; then
15954   ac_header_preproc=yes
15955 else
15956   echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959   ac_header_preproc=no
15960 fi
15961 rm -f conftest.err conftest.$ac_ext
15962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15963 echo "${ECHO_T}$ac_header_preproc" >&6
15964
15965 # So?  What about this header?
15966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15967   yes:no: )
15968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15972     ac_header_preproc=yes
15973     ;;
15974   no:yes:* )
15975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15978 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15979     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15981     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15982 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15985     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15987     (
15988       cat <<\_ASBOX
15989 ## --------------------------------------------- ##
15990 ## Report this to <http://www.openldap.org/its/> ##
15991 ## --------------------------------------------- ##
15992 _ASBOX
15993     ) |
15994       sed "s/^/$as_me: WARNING:     /" >&2
15995     ;;
15996 esac
15997 echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16000   echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002   eval "$as_ac_Header=\$ac_header_preproc"
16003 fi
16004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16006
16007 fi
16008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16009   cat >>confdefs.h <<_ACEOF
16010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16011 _ACEOF
16012
16013 fi
16014
16015 done
16016
16017 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16018         echo "$as_me:$LINENO: checking for epoll system call" >&5
16019 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16020         if test "$cross_compiling" = yes; then
16021   echo "$as_me:$LINENO: result: no" >&5
16022 echo "${ECHO_T}no" >&6
16023 else
16024   cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030 int main(int argc, char **argv)
16031 {
16032         int epfd = epoll_create(256);
16033         exit (epfd == -1 ? 1 : 0);
16034 }
16035 _ACEOF
16036 rm -f conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038   (eval $ac_link) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043   (eval $ac_try) 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; }; then
16047   echo "$as_me:$LINENO: result: yes" >&5
16048 echo "${ECHO_T}yes" >&6
16049
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_EPOLL 1
16052 _ACEOF
16053
16054 else
16055   echo "$as_me: program exited with status $ac_status" >&5
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16058
16059 ( exit $ac_status )
16060 echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6
16062 fi
16063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16064 fi
16065 fi
16066
16067
16068 for ac_header in sys/devpoll.h
16069 do
16070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16072   echo "$as_me:$LINENO: checking for $ac_header" >&5
16073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16075   echo $ECHO_N "(cached) $ECHO_C" >&6
16076 fi
16077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16079 else
16080   # Is the header compilable?
16081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16083 cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089 $ac_includes_default
16090 #include <$ac_header>
16091 _ACEOF
16092 rm -f conftest.$ac_objext
16093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16094   (eval $ac_compile) 2>conftest.er1
16095   ac_status=$?
16096   grep -v '^ *+' conftest.er1 >conftest.err
16097   rm -f conftest.er1
16098   cat conftest.err >&5
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); } &&
16101          { ac_try='test -z "$ac_c_werror_flag"
16102                          || test ! -s conftest.err'
16103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104   (eval $ac_try) 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); }; } &&
16108          { ac_try='test -s conftest.$ac_objext'
16109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110   (eval $ac_try) 2>&5
16111   ac_status=$?
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); }; }; then
16114   ac_header_compiler=yes
16115 else
16116   echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119 ac_header_compiler=no
16120 fi
16121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16123 echo "${ECHO_T}$ac_header_compiler" >&6
16124
16125 # Is the header present?
16126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16128 cat >conftest.$ac_ext <<_ACEOF
16129 /* confdefs.h.  */
16130 _ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h.  */
16134 #include <$ac_header>
16135 _ACEOF
16136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } >/dev/null; then
16144   if test -s conftest.err; then
16145     ac_cpp_err=$ac_c_preproc_warn_flag
16146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16147   else
16148     ac_cpp_err=
16149   fi
16150 else
16151   ac_cpp_err=yes
16152 fi
16153 if test -z "$ac_cpp_err"; then
16154   ac_header_preproc=yes
16155 else
16156   echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159   ac_header_preproc=no
16160 fi
16161 rm -f conftest.err conftest.$ac_ext
16162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16163 echo "${ECHO_T}$ac_header_preproc" >&6
16164
16165 # So?  What about this header?
16166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16167   yes:no: )
16168     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16172     ac_header_preproc=yes
16173     ;;
16174   no:yes:* )
16175     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16177     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16178 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16179     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16181     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16182 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16185     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16187     (
16188       cat <<\_ASBOX
16189 ## --------------------------------------------- ##
16190 ## Report this to <http://www.openldap.org/its/> ##
16191 ## --------------------------------------------- ##
16192 _ASBOX
16193     ) |
16194       sed "s/^/$as_me: WARNING:     /" >&2
16195     ;;
16196 esac
16197 echo "$as_me:$LINENO: checking for $ac_header" >&5
16198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202   eval "$as_ac_Header=\$ac_header_preproc"
16203 fi
16204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16206
16207 fi
16208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16209   cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16211 _ACEOF
16212
16213 fi
16214
16215 done
16216
16217 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16218                 -a "${ac_cv_header_poll_h}" = yes ; \
16219 then
16220         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16221 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16222         if test "$cross_compiling" = yes; then
16223   echo "$as_me:$LINENO: result: no" >&5
16224 echo "${ECHO_T}no" >&6
16225 else
16226   cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h.  */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h.  */
16232 int main(int argc, char **argv)
16233 {
16234         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16235         exit (devpollfd == -1 ? 1 : 0);
16236 }
16237 _ACEOF
16238 rm -f conftest$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240   (eval $ac_link) 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245   (eval $ac_try) 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; }; then
16249   echo "$as_me:$LINENO: result: yes" >&5
16250 echo "${ECHO_T}yes" >&6
16251
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_DEVPOLL 1
16254 _ACEOF
16255
16256 else
16257   echo "$as_me: program exited with status $ac_status" >&5
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16260
16261 ( exit $ac_status )
16262 echo "$as_me:$LINENO: result: no" >&5
16263 echo "${ECHO_T}no" >&6
16264 fi
16265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16266 fi
16267 fi
16268
16269 # strerror checks
16270 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16271 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16272 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275
16276         cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h.  */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h.  */
16282
16283 #include <stdio.h>
16284 #include <sys/types.h>
16285 #include <errno.h>
16286 #ifdef _WIN32
16287 #include <stdlib.h>
16288 #endif
16289 int
16290 main ()
16291 {
16292 char *c = (char *) *sys_errlist
16293   ;
16294   return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299   (eval $ac_compile) 2>conftest.er1
16300   ac_status=$?
16301   grep -v '^ *+' conftest.er1 >conftest.err
16302   rm -f conftest.er1
16303   cat conftest.err >&5
16304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305   (exit $ac_status); } &&
16306          { ac_try='test -z "$ac_c_werror_flag"
16307                          || test ! -s conftest.err'
16308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309   (eval $ac_try) 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; } &&
16313          { ac_try='test -s conftest.$ac_objext'
16314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315   (eval $ac_try) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; }; then
16319   ol_cv_dcl_sys_errlist=yes
16320         ol_cv_have_sys_errlist=yes
16321 else
16322   echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16324
16325 ol_cv_dcl_sys_errlist=no
16326 fi
16327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16328 fi
16329 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16330 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16331 #
16332 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16333 if test $ol_cv_dcl_sys_errlist = no ; then
16334
16335 cat >>confdefs.h <<\_ACEOF
16336 #define DECL_SYS_ERRLIST 1
16337 _ACEOF
16338
16339
16340         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16341 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16342 if test "${ol_cv_have_sys_errlist+set}" = set; then
16343   echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345
16346                 cat >conftest.$ac_ext <<_ACEOF
16347 /* confdefs.h.  */
16348 _ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h.  */
16352 #include <errno.h>
16353 int
16354 main ()
16355 {
16356 char *c = (char *) *sys_errlist
16357   ;
16358   return 0;
16359 }
16360 _ACEOF
16361 rm -f conftest.$ac_objext conftest$ac_exeext
16362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16363   (eval $ac_link) 2>conftest.er1
16364   ac_status=$?
16365   grep -v '^ *+' conftest.er1 >conftest.err
16366   rm -f conftest.er1
16367   cat conftest.err >&5
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); } &&
16370          { ac_try='test -z "$ac_c_werror_flag"
16371                          || test ! -s conftest.err'
16372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373   (eval $ac_try) 2>&5
16374   ac_status=$?
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); }; } &&
16377          { ac_try='test -s conftest$ac_exeext'
16378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379   (eval $ac_try) 2>&5
16380   ac_status=$?
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); }; }; then
16383   ol_cv_have_sys_errlist=yes
16384 else
16385   echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16387
16388 ol_cv_have_sys_errlist=no
16389 fi
16390 rm -f conftest.err conftest.$ac_objext \
16391       conftest$ac_exeext conftest.$ac_ext
16392 fi
16393 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16394 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16395 fi
16396 if test $ol_cv_have_sys_errlist = yes ; then
16397
16398 cat >>confdefs.h <<\_ACEOF
16399 #define HAVE_SYS_ERRLIST 1
16400 _ACEOF
16401
16402 fi
16403
16404
16405 for ac_func in strerror strerror_r
16406 do
16407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16408 echo "$as_me:$LINENO: checking for $ac_func" >&5
16409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16410 if eval "test \"\${$as_ac_var+set}\" = set"; then
16411   echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413   cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h.  */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h.  */
16419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16421 #define $ac_func innocuous_$ac_func
16422
16423 /* System header to define __stub macros and hopefully few prototypes,
16424     which can conflict with char $ac_func (); below.
16425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16426     <limits.h> exists even on freestanding compilers.  */
16427
16428 #ifdef __STDC__
16429 # include <limits.h>
16430 #else
16431 # include <assert.h>
16432 #endif
16433
16434 #undef $ac_func
16435
16436 /* Override any gcc2 internal prototype to avoid an error.  */
16437 #ifdef __cplusplus
16438 extern "C"
16439 {
16440 #endif
16441 /* We use char because int might match the return type of a gcc2
16442    builtin and then its argument prototype would still apply.  */
16443 char $ac_func ();
16444 /* The GNU C library defines this for functions which it implements
16445     to always fail with ENOSYS.  Some functions are actually named
16446     something starting with __ and the normal name is an alias.  */
16447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16448 choke me
16449 #else
16450 char (*f) () = $ac_func;
16451 #endif
16452 #ifdef __cplusplus
16453 }
16454 #endif
16455
16456 int
16457 main ()
16458 {
16459 return f != $ac_func;
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466   (eval $ac_link) 2>conftest.er1
16467   ac_status=$?
16468   grep -v '^ *+' conftest.er1 >conftest.err
16469   rm -f conftest.er1
16470   cat conftest.err >&5
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } &&
16473          { ac_try='test -z "$ac_c_werror_flag"
16474                          || test ! -s conftest.err'
16475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476   (eval $ac_try) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; } &&
16480          { ac_try='test -s conftest$ac_exeext'
16481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482   (eval $ac_try) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; }; then
16486   eval "$as_ac_var=yes"
16487 else
16488   echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16490
16491 eval "$as_ac_var=no"
16492 fi
16493 rm -f conftest.err conftest.$ac_objext \
16494       conftest$ac_exeext conftest.$ac_ext
16495 fi
16496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16498 if test `eval echo '${'$as_ac_var'}'` = yes; then
16499   cat >>confdefs.h <<_ACEOF
16500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16501 _ACEOF
16502
16503 fi
16504 done
16505
16506 ol_cv_func_strerror_r=no
16507 if test "${ac_cv_func_strerror_r}" = yes ; then
16508         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16509 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16510 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16511   echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513
16514         cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520 #include <string.h>
16521 _ACEOF
16522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16523   $EGREP "strerror_r" >/dev/null 2>&1; then
16524   ol_decl_strerror_r=yes
16525 else
16526   ol_decl_strerror_r=no
16527 fi
16528 rm -f conftest*
16529
16530         if test $ol_decl_strerror_r = yes ; then
16531                 cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h.  */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h.  */
16537 #include <string.h>
16538 int
16539 main ()
16540 {
16541    /* from autoconf 2.59 */
16542                                 char buf[100];
16543                                 char x = *strerror_r (0, buf, sizeof buf);
16544                                 char *p = strerror_r (0, buf, sizeof buf);
16545
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552   (eval $ac_compile) 2>conftest.er1
16553   ac_status=$?
16554   grep -v '^ *+' conftest.er1 >conftest.err
16555   rm -f conftest.er1
16556   cat conftest.err >&5
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } &&
16559          { ac_try='test -z "$ac_c_werror_flag"
16560                          || test ! -s conftest.err'
16561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562   (eval $ac_try) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; } &&
16566          { ac_try='test -s conftest.$ac_objext'
16567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568   (eval $ac_try) 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); }; }; then
16572   ol_cv_nonposix_strerror_r=yes
16573 else
16574   echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577 ol_cv_nonposix_strerror_r=no
16578 fi
16579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16580         else
16581                 if test "$cross_compiling" = yes; then
16582   ol_cv_nonposix_strerror=no
16583 else
16584   cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h.  */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h.  */
16590
16591                         main() {
16592                                 char buf[100];
16593                                 buf[0] = 0;
16594                                 strerror_r( 1, buf, sizeof buf );
16595                                 exit( buf[0] == 0 );
16596                         }
16597
16598 _ACEOF
16599 rm -f conftest$ac_exeext
16600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601   (eval $ac_link) 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606   (eval $ac_try) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ol_cv_nonposix_strerror_r=yes
16611 else
16612   echo "$as_me: program exited with status $ac_status" >&5
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616 ( exit $ac_status )
16617 ol_cv_nonposix_strerror=no
16618 fi
16619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16620 fi
16621         fi
16622
16623 fi
16624 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16625 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16626 if test $ol_cv_nonposix_strerror_r = yes ; then
16627
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_NONPOSIX_STRERROR_R 1
16630 _ACEOF
16631
16632 fi
16633
16634 elif test "${ac_cv_func_strerror}" = no ; then
16635         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16636 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16637 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640
16641         cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647
16648 #include <stdio.h>
16649 #include <sys/types.h>
16650 #include <errno.h>
16651 #ifdef _WIN32
16652 #include <stdlib.h>
16653 #endif
16654 int
16655 main ()
16656 {
16657 char *c = (char *) *sys_errlist
16658   ;
16659   return 0;
16660 }
16661 _ACEOF
16662 rm -f conftest.$ac_objext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16664   (eval $ac_compile) 2>conftest.er1
16665   ac_status=$?
16666   grep -v '^ *+' conftest.er1 >conftest.err
16667   rm -f conftest.er1
16668   cat conftest.err >&5
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); } &&
16671          { ac_try='test -z "$ac_c_werror_flag"
16672                          || test ! -s conftest.err'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; } &&
16678          { ac_try='test -s conftest.$ac_objext'
16679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680   (eval $ac_try) 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; }; then
16684   ol_cv_dcl_sys_errlist=yes
16685         ol_cv_have_sys_errlist=yes
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690 ol_cv_dcl_sys_errlist=no
16691 fi
16692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16693 fi
16694 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16695 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16696 #
16697 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16698 if test $ol_cv_dcl_sys_errlist = no ; then
16699
16700 cat >>confdefs.h <<\_ACEOF
16701 #define DECL_SYS_ERRLIST 1
16702 _ACEOF
16703
16704
16705         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16706 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16707 if test "${ol_cv_have_sys_errlist+set}" = set; then
16708   echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710
16711                 cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h.  */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h.  */
16717 #include <errno.h>
16718 int
16719 main ()
16720 {
16721 char *c = (char *) *sys_errlist
16722   ;
16723   return 0;
16724 }
16725 _ACEOF
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728   (eval $ac_link) 2>conftest.er1
16729   ac_status=$?
16730   grep -v '^ *+' conftest.er1 >conftest.err
16731   rm -f conftest.er1
16732   cat conftest.err >&5
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); } &&
16735          { ac_try='test -z "$ac_c_werror_flag"
16736                          || test ! -s conftest.err'
16737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738   (eval $ac_try) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); }; } &&
16742          { ac_try='test -s conftest$ac_exeext'
16743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744   (eval $ac_try) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; }; then
16748   ol_cv_have_sys_errlist=yes
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753 ol_cv_have_sys_errlist=no
16754 fi
16755 rm -f conftest.err conftest.$ac_objext \
16756       conftest$ac_exeext conftest.$ac_ext
16757 fi
16758 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16759 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16760 fi
16761 if test $ol_cv_have_sys_errlist = yes ; then
16762
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE_SYS_ERRLIST 1
16765 _ACEOF
16766
16767 fi
16768
16769 fi
16770
16771
16772
16773 for ac_header in regex.h
16774 do
16775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16776 echo "$as_me:$LINENO: checking for $ac_header" >&5
16777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16779   echo $ECHO_N "(cached) $ECHO_C" >&6
16780 else
16781   cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h.  */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h.  */
16787 $ac_includes_default
16788 #ifdef HAVE_SYS_TYPES_H
16789 #include <sys/types.h>
16790 #endif
16791
16792
16793 #include <$ac_header>
16794 _ACEOF
16795 rm -f conftest.$ac_objext
16796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16797   (eval $ac_compile) 2>conftest.er1
16798   ac_status=$?
16799   grep -v '^ *+' conftest.er1 >conftest.err
16800   rm -f conftest.er1
16801   cat conftest.err >&5
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); } &&
16804          { ac_try='test -z "$ac_c_werror_flag"
16805                          || test ! -s conftest.err'
16806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807   (eval $ac_try) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; } &&
16811          { ac_try='test -s conftest.$ac_objext'
16812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813   (eval $ac_try) 2>&5
16814   ac_status=$?
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); }; }; then
16817   eval "$as_ac_Header=yes"
16818 else
16819   echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16821
16822 eval "$as_ac_Header=no"
16823 fi
16824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16825 fi
16826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16829   cat >>confdefs.h <<_ACEOF
16830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16831 _ACEOF
16832
16833 fi
16834
16835 done
16836
16837
16838 if test "$ac_cv_header_regex_h" != yes ; then
16839         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16840 echo "$as_me: error: POSIX regex.h required." >&2;}
16841    { (exit 1); exit 1; }; }
16842 fi
16843 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16844 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16845 if test "${ac_cv_search_regfree+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848   ac_func_search_save_LIBS=$LIBS
16849 ac_cv_search_regfree=no
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856
16857 /* Override any gcc2 internal prototype to avoid an error.  */
16858 #ifdef __cplusplus
16859 extern "C"
16860 #endif
16861 /* We use char because int might match the return type of a gcc2
16862    builtin and then its argument prototype would still apply.  */
16863 char regfree ();
16864 int
16865 main ()
16866 {
16867 regfree ();
16868   ;
16869   return 0;
16870 }
16871 _ACEOF
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16874   (eval $ac_link) 2>conftest.er1
16875   ac_status=$?
16876   grep -v '^ *+' conftest.er1 >conftest.err
16877   rm -f conftest.er1
16878   cat conftest.err >&5
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); } &&
16881          { ac_try='test -z "$ac_c_werror_flag"
16882                          || test ! -s conftest.err'
16883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884   (eval $ac_try) 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; } &&
16888          { ac_try='test -s conftest$ac_exeext'
16889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890   (eval $ac_try) 2>&5
16891   ac_status=$?
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); }; }; then
16894   ac_cv_search_regfree="none required"
16895 else
16896   echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16898
16899 fi
16900 rm -f conftest.err conftest.$ac_objext \
16901       conftest$ac_exeext conftest.$ac_ext
16902 if test "$ac_cv_search_regfree" = no; then
16903   for ac_lib in regex gnuregex; do
16904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16905     cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911
16912 /* Override any gcc2 internal prototype to avoid an error.  */
16913 #ifdef __cplusplus
16914 extern "C"
16915 #endif
16916 /* We use char because int might match the return type of a gcc2
16917    builtin and then its argument prototype would still apply.  */
16918 char regfree ();
16919 int
16920 main ()
16921 {
16922 regfree ();
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929   (eval $ac_link) 2>conftest.er1
16930   ac_status=$?
16931   grep -v '^ *+' conftest.er1 >conftest.err
16932   rm -f conftest.er1
16933   cat conftest.err >&5
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -z "$ac_c_werror_flag"
16937                          || test ! -s conftest.err'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; } &&
16943          { ac_try='test -s conftest$ac_exeext'
16944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945   (eval $ac_try) 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; }; then
16949   ac_cv_search_regfree="-l$ac_lib"
16950 break
16951 else
16952   echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955 fi
16956 rm -f conftest.err conftest.$ac_objext \
16957       conftest$ac_exeext conftest.$ac_ext
16958   done
16959 fi
16960 LIBS=$ac_func_search_save_LIBS
16961 fi
16962 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16963 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16964 if test "$ac_cv_search_regfree" != no; then
16965   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16966   :
16967 else
16968   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16969 echo "$as_me: error: POSIX regex required." >&2;}
16970    { (exit 1); exit 1; }; }
16971 fi
16972
16973
16974
16975 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16976 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16977 if test "${ol_cv_c_posix_regex+set}" = set; then
16978   echo $ECHO_N "(cached) $ECHO_C" >&6
16979 else
16980
16981         if test "$cross_compiling" = yes; then
16982   ol_cv_c_posix_regex=cross
16983 else
16984   cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990
16991 #include <sys/types.h>
16992 #include <regex.h>
16993 static char *pattern, *string;
16994 main()
16995 {
16996         int rc;
16997         regex_t re;
16998
16999         pattern = "^A";
17000
17001         if(regcomp(&re, pattern, 0)) {
17002                 return -1;
17003         }
17004
17005         string = "ALL MATCH";
17006
17007         rc = regexec(&re, string, 0, (void*)0, 0);
17008
17009         regfree(&re);
17010
17011         return rc;
17012 }
17013 _ACEOF
17014 rm -f conftest$ac_exeext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17016   (eval $ac_link) 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021   (eval $ac_try) 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; }; then
17025   ol_cv_c_posix_regex=yes
17026 else
17027   echo "$as_me: program exited with status $ac_status" >&5
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031 ( exit $ac_status )
17032 ol_cv_c_posix_regex=no
17033 fi
17034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17035 fi
17036 fi
17037 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17038 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17039
17040 if test "$ol_cv_c_posix_regex" = no ; then
17041         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17042 echo "$as_me: error: broken POSIX regex!" >&2;}
17043    { (exit 1); exit 1; }; }
17044 fi
17045
17046
17047 have_uuid=no
17048
17049 for ac_header in sys/uuid.h
17050 do
17051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17053   echo "$as_me:$LINENO: checking for $ac_header" >&5
17054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17056   echo $ECHO_N "(cached) $ECHO_C" >&6
17057 fi
17058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17060 else
17061   # Is the header compilable?
17062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h.  */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h.  */
17070 $ac_includes_default
17071 #include <$ac_header>
17072 _ACEOF
17073 rm -f conftest.$ac_objext
17074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075   (eval $ac_compile) 2>conftest.er1
17076   ac_status=$?
17077   grep -v '^ *+' conftest.er1 >conftest.err
17078   rm -f conftest.er1
17079   cat conftest.err >&5
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); } &&
17082          { ac_try='test -z "$ac_c_werror_flag"
17083                          || test ! -s conftest.err'
17084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085   (eval $ac_try) 2>&5
17086   ac_status=$?
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); }; } &&
17089          { ac_try='test -s conftest.$ac_objext'
17090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091   (eval $ac_try) 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; }; then
17095   ac_header_compiler=yes
17096 else
17097   echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100 ac_header_compiler=no
17101 fi
17102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17104 echo "${ECHO_T}$ac_header_compiler" >&6
17105
17106 # Is the header present?
17107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17109 cat >conftest.$ac_ext <<_ACEOF
17110 /* confdefs.h.  */
17111 _ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h.  */
17115 #include <$ac_header>
17116 _ACEOF
17117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17119   ac_status=$?
17120   grep -v '^ *+' conftest.er1 >conftest.err
17121   rm -f conftest.er1
17122   cat conftest.err >&5
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); } >/dev/null; then
17125   if test -s conftest.err; then
17126     ac_cpp_err=$ac_c_preproc_warn_flag
17127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17128   else
17129     ac_cpp_err=
17130   fi
17131 else
17132   ac_cpp_err=yes
17133 fi
17134 if test -z "$ac_cpp_err"; then
17135   ac_header_preproc=yes
17136 else
17137   echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17139
17140   ac_header_preproc=no
17141 fi
17142 rm -f conftest.err conftest.$ac_ext
17143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17144 echo "${ECHO_T}$ac_header_preproc" >&6
17145
17146 # So?  What about this header?
17147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17148   yes:no: )
17149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17153     ac_header_preproc=yes
17154     ;;
17155   no:yes:* )
17156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17158     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17159 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17160     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17162     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17163 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17166     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17168     (
17169       cat <<\_ASBOX
17170 ## --------------------------------------------- ##
17171 ## Report this to <http://www.openldap.org/its/> ##
17172 ## --------------------------------------------- ##
17173 _ASBOX
17174     ) |
17175       sed "s/^/$as_me: WARNING:     /" >&2
17176     ;;
17177 esac
17178 echo "$as_me:$LINENO: checking for $ac_header" >&5
17179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17181   echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183   eval "$as_ac_Header=\$ac_header_preproc"
17184 fi
17185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17187
17188 fi
17189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17190   cat >>confdefs.h <<_ACEOF
17191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17192 _ACEOF
17193
17194 fi
17195
17196 done
17197
17198 if test $ac_cv_header_sys_uuid_h = yes ; then
17199         save_LIBS="$LIBS"
17200         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17201 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17202 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205   ac_func_search_save_LIBS=$LIBS
17206 ac_cv_search_uuid_to_str=no
17207 cat >conftest.$ac_ext <<_ACEOF
17208 /* confdefs.h.  */
17209 _ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h.  */
17213
17214 /* Override any gcc2 internal prototype to avoid an error.  */
17215 #ifdef __cplusplus
17216 extern "C"
17217 #endif
17218 /* We use char because int might match the return type of a gcc2
17219    builtin and then its argument prototype would still apply.  */
17220 char uuid_to_str ();
17221 int
17222 main ()
17223 {
17224 uuid_to_str ();
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17231   (eval $ac_link) 2>conftest.er1
17232   ac_status=$?
17233   grep -v '^ *+' conftest.er1 >conftest.err
17234   rm -f conftest.er1
17235   cat conftest.err >&5
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } &&
17238          { ac_try='test -z "$ac_c_werror_flag"
17239                          || test ! -s conftest.err'
17240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241   (eval $ac_try) 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; } &&
17245          { ac_try='test -s conftest$ac_exeext'
17246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247   (eval $ac_try) 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; }; then
17251   ac_cv_search_uuid_to_str="none required"
17252 else
17253   echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17255
17256 fi
17257 rm -f conftest.err conftest.$ac_objext \
17258       conftest$ac_exeext conftest.$ac_ext
17259 if test "$ac_cv_search_uuid_to_str" = no; then
17260   for ac_lib in uuid; do
17261     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17262     cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h.  */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h.  */
17268
17269 /* Override any gcc2 internal prototype to avoid an error.  */
17270 #ifdef __cplusplus
17271 extern "C"
17272 #endif
17273 /* We use char because int might match the return type of a gcc2
17274    builtin and then its argument prototype would still apply.  */
17275 char uuid_to_str ();
17276 int
17277 main ()
17278 {
17279 uuid_to_str ();
17280   ;
17281   return 0;
17282 }
17283 _ACEOF
17284 rm -f conftest.$ac_objext conftest$ac_exeext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286   (eval $ac_link) 2>conftest.er1
17287   ac_status=$?
17288   grep -v '^ *+' conftest.er1 >conftest.err
17289   rm -f conftest.er1
17290   cat conftest.err >&5
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); } &&
17293          { ac_try='test -z "$ac_c_werror_flag"
17294                          || test ! -s conftest.err'
17295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296   (eval $ac_try) 2>&5
17297   ac_status=$?
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); }; } &&
17300          { ac_try='test -s conftest$ac_exeext'
17301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302   (eval $ac_try) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; }; then
17306   ac_cv_search_uuid_to_str="-l$ac_lib"
17307 break
17308 else
17309   echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 fi
17313 rm -f conftest.err conftest.$ac_objext \
17314       conftest$ac_exeext conftest.$ac_ext
17315   done
17316 fi
17317 LIBS=$ac_func_search_save_LIBS
17318 fi
17319 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17320 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17321 if test "$ac_cv_search_uuid_to_str" != no; then
17322   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17323   have_uuid=yes
17324 else
17325   :
17326 fi
17327
17328         LIBS="$save_LIBS"
17329
17330         if test have_uuid = yes ; then
17331
17332 cat >>confdefs.h <<\_ACEOF
17333 #define HAVE_UUID_TO_STR 1
17334 _ACEOF
17335
17336
17337                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17338                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17339         fi
17340 fi
17341
17342 if test $have_uuid = no ; then
17343
17344 for ac_header in uuid/uuid.h
17345 do
17346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17348   echo "$as_me:$LINENO: checking for $ac_header" >&5
17349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 fi
17353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17355 else
17356   # Is the header compilable?
17357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365 $ac_includes_default
17366 #include <$ac_header>
17367 _ACEOF
17368 rm -f conftest.$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370   (eval $ac_compile) 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } &&
17377          { ac_try='test -z "$ac_c_werror_flag"
17378                          || test ! -s conftest.err'
17379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380   (eval $ac_try) 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; } &&
17384          { ac_try='test -s conftest.$ac_objext'
17385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386   (eval $ac_try) 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; }; then
17390   ac_header_compiler=yes
17391 else
17392   echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17394
17395 ac_header_compiler=no
17396 fi
17397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17399 echo "${ECHO_T}$ac_header_compiler" >&6
17400
17401 # Is the header present?
17402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17404 cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h.  */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h.  */
17410 #include <$ac_header>
17411 _ACEOF
17412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } >/dev/null; then
17420   if test -s conftest.err; then
17421     ac_cpp_err=$ac_c_preproc_warn_flag
17422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17423   else
17424     ac_cpp_err=
17425   fi
17426 else
17427   ac_cpp_err=yes
17428 fi
17429 if test -z "$ac_cpp_err"; then
17430   ac_header_preproc=yes
17431 else
17432   echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17434
17435   ac_header_preproc=no
17436 fi
17437 rm -f conftest.err conftest.$ac_ext
17438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17439 echo "${ECHO_T}$ac_header_preproc" >&6
17440
17441 # So?  What about this header?
17442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17443   yes:no: )
17444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17448     ac_header_preproc=yes
17449     ;;
17450   no:yes:* )
17451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17463     (
17464       cat <<\_ASBOX
17465 ## --------------------------------------------- ##
17466 ## Report this to <http://www.openldap.org/its/> ##
17467 ## --------------------------------------------- ##
17468 _ASBOX
17469     ) |
17470       sed "s/^/$as_me: WARNING:     /" >&2
17471     ;;
17472 esac
17473 echo "$as_me:$LINENO: checking for $ac_header" >&5
17474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17476   echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478   eval "$as_ac_Header=\$ac_header_preproc"
17479 fi
17480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17482
17483 fi
17484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17485   cat >>confdefs.h <<_ACEOF
17486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17487 _ACEOF
17488
17489 fi
17490
17491 done
17492
17493         if test $ac_cv_header_uuid_uuid_h = yes ; then
17494                 save_LIBS="$LIBS"
17495                 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17496 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17497 if test "${ac_cv_search_uuid_generate+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   ac_func_search_save_LIBS=$LIBS
17501 ac_cv_search_uuid_generate=no
17502 cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508
17509 /* Override any gcc2 internal prototype to avoid an error.  */
17510 #ifdef __cplusplus
17511 extern "C"
17512 #endif
17513 /* We use char because int might match the return type of a gcc2
17514    builtin and then its argument prototype would still apply.  */
17515 char uuid_generate ();
17516 int
17517 main ()
17518 {
17519 uuid_generate ();
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17526   (eval $ac_link) 2>conftest.er1
17527   ac_status=$?
17528   grep -v '^ *+' conftest.er1 >conftest.err
17529   rm -f conftest.er1
17530   cat conftest.err >&5
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); } &&
17533          { ac_try='test -z "$ac_c_werror_flag"
17534                          || test ! -s conftest.err'
17535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536   (eval $ac_try) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; } &&
17540          { ac_try='test -s conftest$ac_exeext'
17541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542   (eval $ac_try) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); }; }; then
17546   ac_cv_search_uuid_generate="none required"
17547 else
17548   echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551 fi
17552 rm -f conftest.err conftest.$ac_objext \
17553       conftest$ac_exeext conftest.$ac_ext
17554 if test "$ac_cv_search_uuid_generate" = no; then
17555   for ac_lib in uuid; do
17556     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17557     cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h.  */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h.  */
17563
17564 /* Override any gcc2 internal prototype to avoid an error.  */
17565 #ifdef __cplusplus
17566 extern "C"
17567 #endif
17568 /* We use char because int might match the return type of a gcc2
17569    builtin and then its argument prototype would still apply.  */
17570 char uuid_generate ();
17571 int
17572 main ()
17573 {
17574 uuid_generate ();
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17581   (eval $ac_link) 2>conftest.er1
17582   ac_status=$?
17583   grep -v '^ *+' conftest.er1 >conftest.err
17584   rm -f conftest.er1
17585   cat conftest.err >&5
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); } &&
17588          { ac_try='test -z "$ac_c_werror_flag"
17589                          || test ! -s conftest.err'
17590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591   (eval $ac_try) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; } &&
17595          { ac_try='test -s conftest$ac_exeext'
17596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597   (eval $ac_try) 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   ac_cv_search_uuid_generate="-l$ac_lib"
17602 break
17603 else
17604   echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 fi
17608 rm -f conftest.err conftest.$ac_objext \
17609       conftest$ac_exeext conftest.$ac_ext
17610   done
17611 fi
17612 LIBS=$ac_func_search_save_LIBS
17613 fi
17614 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17615 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17616 if test "$ac_cv_search_uuid_generate" != no; then
17617   test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17618   have_uuid=yes
17619 else
17620   :
17621 fi
17622
17623                 LIBS="$save_LIBS"
17624
17625                 if test have_uuid = yes ; then
17626
17627 cat >>confdefs.h <<\_ACEOF
17628 #define HAVE_UUID_GENERATE 1
17629 _ACEOF
17630
17631
17632                         test "$ac_cv_search_uuid_generate" = "none required" || \
17633                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17634                 fi
17635         fi
17636 fi
17637
17638 if test $have_uuid = no ; then
17639         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17640 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17641         save_LIBS="$LIBS"
17642         LIBS="$LIBS -lrpcrt4"
17643         cat >conftest.$ac_ext <<_ACEOF
17644 /* confdefs.h.  */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h.  */
17649
17650                 int __stdcall UuidCreate(void *);
17651                 int __stdcall UuidToStringA(void *,void **);
17652
17653 int
17654 main ()
17655 {
17656
17657                 UuidCreate(0);
17658                 UuidToStringA(0,0);
17659
17660   ;
17661   return 0;
17662 }
17663 _ACEOF
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666   (eval $ac_link) 2>conftest.er1
17667   ac_status=$?
17668   grep -v '^ *+' conftest.er1 >conftest.err
17669   rm -f conftest.er1
17670   cat conftest.err >&5
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } &&
17673          { ac_try='test -z "$ac_c_werror_flag"
17674                          || test ! -s conftest.err'
17675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676   (eval $ac_try) 2>&5
17677   ac_status=$?
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); }; } &&
17680          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17686   need_rpcrt=yes
17687 else
17688   echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691 need_rpcrt=no
17692 fi
17693 rm -f conftest.err conftest.$ac_objext \
17694       conftest$ac_exeext conftest.$ac_ext
17695         if test $need_rpcrt = yes; then
17696                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17697         fi
17698         LIBS="$save_LIBS"
17699         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17700 echo "${ECHO_T}$need_rpcrt" >&6
17701 fi
17702
17703 ol_cv_lib_resolver=no
17704 if test $ol_cv_lib_resolver = no ; then
17705         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17706 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17707 if test "${ol_cv_resolver_none+set}" = set; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710
17711         ol_RESOLVER_LIB=
17712         ol_LIBS=$LIBS
17713         LIBS="$ol_RESOLVER_LIB $LIBS"
17714
17715         cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721
17722 #ifdef HAVE_SYS_TYPES_H
17723 #       include <sys/types.h>
17724 #endif
17725 #include <netinet/in.h>
17726 #ifdef HAVE_ARPA_NAMESER_H
17727 #       include <arpa/nameser.h>
17728 #endif
17729 #ifdef HAVE_RESOLV_H
17730 #       include <resolv.h>
17731 #endif
17732
17733 int
17734 main ()
17735 {
17736 {
17737         int len, status;
17738         char *request = NULL;
17739         unsigned char reply[64*1024];
17740         unsigned char host[64*1024];
17741         unsigned char *p;
17742
17743 #ifdef NS_HFIXEDSZ
17744         /* Bind 8/9 interface */
17745         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17746 #else
17747         /* Bind 4 interface */
17748 # ifndef T_SRV
17749 #  define T_SRV 33
17750 # endif
17751         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17752 #endif
17753         p = reply;
17754 #ifdef NS_HFIXEDSZ
17755         /* Bind 8/9 interface */
17756         p += NS_HFIXEDSZ;
17757 #elif defined(HFIXEDSZ)
17758         /* Bind 4 interface w/ HFIXEDSZ */
17759         p += HFIXEDSZ;
17760 #else
17761         /* Bind 4 interface w/o HFIXEDSZ */
17762         p += sizeof(HEADER);
17763 #endif
17764         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17765 }
17766   ;
17767   return 0;
17768 }
17769 _ACEOF
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17772   (eval $ac_link) 2>conftest.er1
17773   ac_status=$?
17774   grep -v '^ *+' conftest.er1 >conftest.err
17775   rm -f conftest.er1
17776   cat conftest.err >&5
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); } &&
17779          { ac_try='test -z "$ac_c_werror_flag"
17780                          || test ! -s conftest.err'
17781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782   (eval $ac_try) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; } &&
17786          { ac_try='test -s conftest$ac_exeext'
17787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788   (eval $ac_try) 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); }; }; then
17792   ol_cv_resolver_none=yes
17793 else
17794   echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17796
17797 ol_cv_resolver_none=no
17798 fi
17799 rm -f conftest.err conftest.$ac_objext \
17800       conftest$ac_exeext conftest.$ac_ext
17801
17802         LIBS="$ol_LIBS"
17803
17804 fi
17805 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17806 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17807
17808         if test $ol_cv_resolver_none = yes ; then
17809                 ol_cv_lib_resolver=yes
17810         fi
17811 fi
17812
17813 if test $ol_cv_lib_resolver = no ; then
17814         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17815 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17816 if test "${ol_cv_resolver_resolv+set}" = set; then
17817   echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819
17820         ol_RESOLVER_LIB=-lresolv
17821         ol_LIBS=$LIBS
17822         LIBS="$ol_RESOLVER_LIB $LIBS"
17823
17824         cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h.  */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h.  */
17830
17831 #ifdef HAVE_SYS_TYPES_H
17832 #       include <sys/types.h>
17833 #endif
17834 #include <netinet/in.h>
17835 #ifdef HAVE_ARPA_NAMESER_H
17836 #       include <arpa/nameser.h>
17837 #endif
17838 #ifdef HAVE_RESOLV_H
17839 #       include <resolv.h>
17840 #endif
17841
17842 int
17843 main ()
17844 {
17845 {
17846         int len, status;
17847         char *request = NULL;
17848         unsigned char reply[64*1024];
17849         unsigned char host[64*1024];
17850         unsigned char *p;
17851
17852 #ifdef NS_HFIXEDSZ
17853         /* Bind 8/9 interface */
17854         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17855 #else
17856         /* Bind 4 interface */
17857 # ifndef T_SRV
17858 #  define T_SRV 33
17859 # endif
17860         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17861 #endif
17862         p = reply;
17863 #ifdef NS_HFIXEDSZ
17864         /* Bind 8/9 interface */
17865         p += NS_HFIXEDSZ;
17866 #elif defined(HFIXEDSZ)
17867         /* Bind 4 interface w/ HFIXEDSZ */
17868         p += HFIXEDSZ;
17869 #else
17870         /* Bind 4 interface w/o HFIXEDSZ */
17871         p += sizeof(HEADER);
17872 #endif
17873         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17874 }
17875   ;
17876   return 0;
17877 }
17878 _ACEOF
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17881   (eval $ac_link) 2>conftest.er1
17882   ac_status=$?
17883   grep -v '^ *+' conftest.er1 >conftest.err
17884   rm -f conftest.er1
17885   cat conftest.err >&5
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); } &&
17888          { ac_try='test -z "$ac_c_werror_flag"
17889                          || test ! -s conftest.err'
17890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891   (eval $ac_try) 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); }; } &&
17895          { ac_try='test -s conftest$ac_exeext'
17896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897   (eval $ac_try) 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; }; then
17901   ol_cv_resolver_resolv=yes
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 ol_cv_resolver_resolv=no
17907 fi
17908 rm -f conftest.err conftest.$ac_objext \
17909       conftest$ac_exeext conftest.$ac_ext
17910
17911         LIBS="$ol_LIBS"
17912
17913 fi
17914 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17915 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17916
17917         if test $ol_cv_resolver_resolv = yes ; then
17918                 ol_cv_lib_resolver=-lresolv
17919         fi
17920 fi
17921
17922 if test $ol_cv_lib_resolver = no ; then
17923         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17924 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17925 if test "${ol_cv_resolver_bind+set}" = set; then
17926   echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928
17929         ol_RESOLVER_LIB=-lbind
17930         ol_LIBS=$LIBS
17931         LIBS="$ol_RESOLVER_LIB $LIBS"
17932
17933         cat >conftest.$ac_ext <<_ACEOF
17934 /* confdefs.h.  */
17935 _ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h.  */
17939
17940 #ifdef HAVE_SYS_TYPES_H
17941 #       include <sys/types.h>
17942 #endif
17943 #include <netinet/in.h>
17944 #ifdef HAVE_ARPA_NAMESER_H
17945 #       include <arpa/nameser.h>
17946 #endif
17947 #ifdef HAVE_RESOLV_H
17948 #       include <resolv.h>
17949 #endif
17950
17951 int
17952 main ()
17953 {
17954 {
17955         int len, status;
17956         char *request = NULL;
17957         unsigned char reply[64*1024];
17958         unsigned char host[64*1024];
17959         unsigned char *p;
17960
17961 #ifdef NS_HFIXEDSZ
17962         /* Bind 8/9 interface */
17963         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17964 #else
17965         /* Bind 4 interface */
17966 # ifndef T_SRV
17967 #  define T_SRV 33
17968 # endif
17969         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17970 #endif
17971         p = reply;
17972 #ifdef NS_HFIXEDSZ
17973         /* Bind 8/9 interface */
17974         p += NS_HFIXEDSZ;
17975 #elif defined(HFIXEDSZ)
17976         /* Bind 4 interface w/ HFIXEDSZ */
17977         p += HFIXEDSZ;
17978 #else
17979         /* Bind 4 interface w/o HFIXEDSZ */
17980         p += sizeof(HEADER);
17981 #endif
17982         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17983 }
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17990   (eval $ac_link) 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } &&
17997          { ac_try='test -z "$ac_c_werror_flag"
17998                          || test ! -s conftest.err'
17999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000   (eval $ac_try) 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; } &&
18004          { ac_try='test -s conftest$ac_exeext'
18005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006   (eval $ac_try) 2>&5
18007   ac_status=$?
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); }; }; then
18010   ol_cv_resolver_bind=yes
18011 else
18012   echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015 ol_cv_resolver_bind=no
18016 fi
18017 rm -f conftest.err conftest.$ac_objext \
18018       conftest$ac_exeext conftest.$ac_ext
18019
18020         LIBS="$ol_LIBS"
18021
18022 fi
18023 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18024 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18025
18026         if test $ol_cv_resolver_bind = yes ; then
18027                 ol_cv_lib_resolver=-lbind
18028         fi
18029 fi
18030
18031
18032
18033 ol_link_dnssrv=no
18034 if test "$ol_cv_lib_resolver" != no ; then
18035
18036 cat >>confdefs.h <<\_ACEOF
18037 #define HAVE_RES_QUERY 1
18038 _ACEOF
18039
18040
18041         if test "$ol_enable_dnssrv" != no ; then
18042                 ol_link_dnssrv=yes
18043         fi
18044
18045         if test "$ol_cv_lib_resolver" != yes ; then
18046                 LIBS="$ol_cv_lib_resolver $LIBS"
18047         fi
18048 fi
18049
18050 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18051         if test "$ol_link_dnssrv" = no ; then
18052                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18053 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18054    { (exit 1); exit 1; }; }
18055         fi
18056 else
18057         ol_enable_dnssrv=no
18058 fi
18059
18060
18061 for ac_func in hstrerror
18062 do
18063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18064 echo "$as_me:$LINENO: checking for $ac_func" >&5
18065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18066 if eval "test \"\${$as_ac_var+set}\" = set"; then
18067   echo $ECHO_N "(cached) $ECHO_C" >&6
18068 else
18069   cat >conftest.$ac_ext <<_ACEOF
18070 /* confdefs.h.  */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h.  */
18075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18077 #define $ac_func innocuous_$ac_func
18078
18079 /* System header to define __stub macros and hopefully few prototypes,
18080     which can conflict with char $ac_func (); below.
18081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18082     <limits.h> exists even on freestanding compilers.  */
18083
18084 #ifdef __STDC__
18085 # include <limits.h>
18086 #else
18087 # include <assert.h>
18088 #endif
18089
18090 #undef $ac_func
18091
18092 /* Override any gcc2 internal prototype to avoid an error.  */
18093 #ifdef __cplusplus
18094 extern "C"
18095 {
18096 #endif
18097 /* We use char because int might match the return type of a gcc2
18098    builtin and then its argument prototype would still apply.  */
18099 char $ac_func ();
18100 /* The GNU C library defines this for functions which it implements
18101     to always fail with ENOSYS.  Some functions are actually named
18102     something starting with __ and the normal name is an alias.  */
18103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18104 choke me
18105 #else
18106 char (*f) () = $ac_func;
18107 #endif
18108 #ifdef __cplusplus
18109 }
18110 #endif
18111
18112 int
18113 main ()
18114 {
18115 return f != $ac_func;
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18122   (eval $ac_link) 2>conftest.er1
18123   ac_status=$?
18124   grep -v '^ *+' conftest.er1 >conftest.err
18125   rm -f conftest.er1
18126   cat conftest.err >&5
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); } &&
18129          { ac_try='test -z "$ac_c_werror_flag"
18130                          || test ! -s conftest.err'
18131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132   (eval $ac_try) 2>&5
18133   ac_status=$?
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); }; } &&
18136          { ac_try='test -s conftest$ac_exeext'
18137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138   (eval $ac_try) 2>&5
18139   ac_status=$?
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); }; }; then
18142   eval "$as_ac_var=yes"
18143 else
18144   echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18146
18147 eval "$as_ac_var=no"
18148 fi
18149 rm -f conftest.err conftest.$ac_objext \
18150       conftest$ac_exeext conftest.$ac_ext
18151 fi
18152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18154 if test `eval echo '${'$as_ac_var'}'` = yes; then
18155   cat >>confdefs.h <<_ACEOF
18156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18157 _ACEOF
18158
18159 fi
18160 done
18161
18162
18163
18164
18165
18166
18167 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18168 do
18169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18170 echo "$as_me:$LINENO: checking for $ac_func" >&5
18171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18172 if eval "test \"\${$as_ac_var+set}\" = set"; then
18173   echo $ECHO_N "(cached) $ECHO_C" >&6
18174 else
18175   cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h.  */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h.  */
18181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18183 #define $ac_func innocuous_$ac_func
18184
18185 /* System header to define __stub macros and hopefully few prototypes,
18186     which can conflict with char $ac_func (); below.
18187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18188     <limits.h> exists even on freestanding compilers.  */
18189
18190 #ifdef __STDC__
18191 # include <limits.h>
18192 #else
18193 # include <assert.h>
18194 #endif
18195
18196 #undef $ac_func
18197
18198 /* Override any gcc2 internal prototype to avoid an error.  */
18199 #ifdef __cplusplus
18200 extern "C"
18201 {
18202 #endif
18203 /* We use char because int might match the return type of a gcc2
18204    builtin and then its argument prototype would still apply.  */
18205 char $ac_func ();
18206 /* The GNU C library defines this for functions which it implements
18207     to always fail with ENOSYS.  Some functions are actually named
18208     something starting with __ and the normal name is an alias.  */
18209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18210 choke me
18211 #else
18212 char (*f) () = $ac_func;
18213 #endif
18214 #ifdef __cplusplus
18215 }
18216 #endif
18217
18218 int
18219 main ()
18220 {
18221 return f != $ac_func;
18222   ;
18223   return 0;
18224 }
18225 _ACEOF
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18228   (eval $ac_link) 2>conftest.er1
18229   ac_status=$?
18230   grep -v '^ *+' conftest.er1 >conftest.err
18231   rm -f conftest.er1
18232   cat conftest.err >&5
18233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } &&
18235          { ac_try='test -z "$ac_c_werror_flag"
18236                          || test ! -s conftest.err'
18237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238   (eval $ac_try) 2>&5
18239   ac_status=$?
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); }; } &&
18242          { ac_try='test -s conftest$ac_exeext'
18243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244   (eval $ac_try) 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; }; then
18248   eval "$as_ac_var=yes"
18249 else
18250   echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253 eval "$as_ac_var=no"
18254 fi
18255 rm -f conftest.err conftest.$ac_objext \
18256       conftest$ac_exeext conftest.$ac_ext
18257 fi
18258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18260 if test `eval echo '${'$as_ac_var'}'` = yes; then
18261   cat >>confdefs.h <<_ACEOF
18262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18263 _ACEOF
18264
18265 fi
18266 done
18267
18268
18269 ol_link_ipv6=no
18270 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18271         if test $ol_enable_ipv6 = yes ; then
18272                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18273 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18274    { (exit 1); exit 1; }; }
18275         fi
18276 elif test $ol_enable_ipv6 != no ; then
18277         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18278 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18279 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282
18283                 cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289
18290 #                       include <netinet/in.h>
18291 #                       ifdef INET6_ADDRSTRLEN
18292                                 __has_inet6_addrstrlen__;
18293 #                       endif
18294
18295 _ACEOF
18296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18297   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18298   ol_cv_inet6_addrstrlen=yes
18299 else
18300   ol_cv_inet6_addrstrlen=no
18301 fi
18302 rm -f conftest*
18303
18304 fi
18305 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18306 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18307
18308
18309         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18310 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18311 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18312   echo $ECHO_N "(cached) $ECHO_C" >&6
18313 else
18314
18315                 cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h.  */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h.  */
18321
18322 #include <sys/types.h>
18323 #include <sys/socket.h>
18324
18325 int
18326 main ()
18327 {
18328
18329                         struct sockaddr_storage ss;
18330
18331   ;
18332   return 0;
18333 }
18334 _ACEOF
18335 rm -f conftest.$ac_objext
18336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18337   (eval $ac_compile) 2>conftest.er1
18338   ac_status=$?
18339   grep -v '^ *+' conftest.er1 >conftest.err
18340   rm -f conftest.er1
18341   cat conftest.err >&5
18342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343   (exit $ac_status); } &&
18344          { ac_try='test -z "$ac_c_werror_flag"
18345                          || test ! -s conftest.err'
18346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347   (eval $ac_try) 2>&5
18348   ac_status=$?
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); }; } &&
18351          { ac_try='test -s conftest.$ac_objext'
18352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353   (eval $ac_try) 2>&5
18354   ac_status=$?
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); }; }; then
18357   ol_cv_struct_sockaddr_storage=yes
18358 else
18359   echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18361
18362 ol_cv_struct_sockaddr_storage=no
18363 fi
18364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18365 fi
18366 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18367 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18368
18369         if test $ol_cv_inet6_addrstrlen = yes &&
18370            test $ol_cv_struct_sockaddr_storage = yes ; then
18371                 ol_link_ipv6=yes
18372         elif test $ol_enable_ipv6 = yes &&
18373              test $ol_cv_inet6_addrstrlen = no ; then
18374                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18375 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18376    { (exit 1); exit 1; }; }
18377         elif test $ol_enable_ipv6 = yes &&
18378              test $ol_cv_struct_sockaddr_storage = no ; then
18379                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18380 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18381    { (exit 1); exit 1; }; }
18382         fi
18383 fi
18384
18385 if test $ol_enable_local != no ; then
18386
18387 for ac_header in sys/un.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
18537         if test $ol_enable_local = auto ; then
18538                 ol_enable_local=$ac_cv_header_sys_un_h
18539         elif test $ac_cv_header_sys_un_h = no ; then
18540                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18541 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18542    { (exit 1); exit 1; }; }
18543         fi
18544 fi
18545
18546 ol_link_gssapi=no
18547
18548 case $ol_with_gssapi in yes | auto)
18549
18550         ol_header_gssapi=no
18551
18552 for ac_header in gssapi/gssapi.h
18553 do
18554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18556   echo "$as_me:$LINENO: checking for $ac_header" >&5
18557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18559   echo $ECHO_N "(cached) $ECHO_C" >&6
18560 fi
18561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18563 else
18564   # Is the header compilable?
18565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18567 cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h.  */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h.  */
18573 $ac_includes_default
18574 #include <$ac_header>
18575 _ACEOF
18576 rm -f conftest.$ac_objext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18578   (eval $ac_compile) 2>conftest.er1
18579   ac_status=$?
18580   grep -v '^ *+' conftest.er1 >conftest.err
18581   rm -f conftest.er1
18582   cat conftest.err >&5
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); } &&
18585          { ac_try='test -z "$ac_c_werror_flag"
18586                          || test ! -s conftest.err'
18587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588   (eval $ac_try) 2>&5
18589   ac_status=$?
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); }; } &&
18592          { ac_try='test -s conftest.$ac_objext'
18593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594   (eval $ac_try) 2>&5
18595   ac_status=$?
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); }; }; then
18598   ac_header_compiler=yes
18599 else
18600   echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18602
18603 ac_header_compiler=no
18604 fi
18605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18607 echo "${ECHO_T}$ac_header_compiler" >&6
18608
18609 # Is the header present?
18610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18612 cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h.  */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h.  */
18618 #include <$ac_header>
18619 _ACEOF
18620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18621   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18622   ac_status=$?
18623   grep -v '^ *+' conftest.er1 >conftest.err
18624   rm -f conftest.er1
18625   cat conftest.err >&5
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); } >/dev/null; then
18628   if test -s conftest.err; then
18629     ac_cpp_err=$ac_c_preproc_warn_flag
18630     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18631   else
18632     ac_cpp_err=
18633   fi
18634 else
18635   ac_cpp_err=yes
18636 fi
18637 if test -z "$ac_cpp_err"; then
18638   ac_header_preproc=yes
18639 else
18640   echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643   ac_header_preproc=no
18644 fi
18645 rm -f conftest.err conftest.$ac_ext
18646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18647 echo "${ECHO_T}$ac_header_preproc" >&6
18648
18649 # So?  What about this header?
18650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18651   yes:no: )
18652     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18656     ac_header_preproc=yes
18657     ;;
18658   no:yes:* )
18659     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18661     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18662 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18663     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18665     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18666 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18669     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18671     (
18672       cat <<\_ASBOX
18673 ## --------------------------------------------- ##
18674 ## Report this to <http://www.openldap.org/its/> ##
18675 ## --------------------------------------------- ##
18676 _ASBOX
18677     ) |
18678       sed "s/^/$as_me: WARNING:     /" >&2
18679     ;;
18680 esac
18681 echo "$as_me:$LINENO: checking for $ac_header" >&5
18682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18684   echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686   eval "$as_ac_Header=\$ac_header_preproc"
18687 fi
18688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18690
18691 fi
18692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18693   cat >>confdefs.h <<_ACEOF
18694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18695 _ACEOF
18696
18697 fi
18698
18699 done
18700
18701         if test $ac_cv_header_gssapi_gssapi_h = yes ; then
18702                 ol_header_gssapi=yes
18703         else
18704
18705 for ac_header in gssapi.h
18706 do
18707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18709   echo "$as_me:$LINENO: checking for $ac_header" >&5
18710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18712   echo $ECHO_N "(cached) $ECHO_C" >&6
18713 fi
18714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18716 else
18717   # Is the header compilable?
18718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18720 cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h.  */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h.  */
18726 $ac_includes_default
18727 #include <$ac_header>
18728 _ACEOF
18729 rm -f conftest.$ac_objext
18730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18731   (eval $ac_compile) 2>conftest.er1
18732   ac_status=$?
18733   grep -v '^ *+' conftest.er1 >conftest.err
18734   rm -f conftest.er1
18735   cat conftest.err >&5
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); } &&
18738          { ac_try='test -z "$ac_c_werror_flag"
18739                          || test ! -s conftest.err'
18740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741   (eval $ac_try) 2>&5
18742   ac_status=$?
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); }; } &&
18745          { ac_try='test -s conftest.$ac_objext'
18746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747   (eval $ac_try) 2>&5
18748   ac_status=$?
18749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750   (exit $ac_status); }; }; then
18751   ac_header_compiler=yes
18752 else
18753   echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18755
18756 ac_header_compiler=no
18757 fi
18758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18760 echo "${ECHO_T}$ac_header_compiler" >&6
18761
18762 # Is the header present?
18763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18765 cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h.  */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h.  */
18771 #include <$ac_header>
18772 _ACEOF
18773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18775   ac_status=$?
18776   grep -v '^ *+' conftest.er1 >conftest.err
18777   rm -f conftest.er1
18778   cat conftest.err >&5
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } >/dev/null; then
18781   if test -s conftest.err; then
18782     ac_cpp_err=$ac_c_preproc_warn_flag
18783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18784   else
18785     ac_cpp_err=
18786   fi
18787 else
18788   ac_cpp_err=yes
18789 fi
18790 if test -z "$ac_cpp_err"; then
18791   ac_header_preproc=yes
18792 else
18793   echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796   ac_header_preproc=no
18797 fi
18798 rm -f conftest.err conftest.$ac_ext
18799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18800 echo "${ECHO_T}$ac_header_preproc" >&6
18801
18802 # So?  What about this header?
18803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18804   yes:no: )
18805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18809     ac_header_preproc=yes
18810     ;;
18811   no:yes:* )
18812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18824     (
18825       cat <<\_ASBOX
18826 ## --------------------------------------------- ##
18827 ## Report this to <http://www.openldap.org/its/> ##
18828 ## --------------------------------------------- ##
18829 _ASBOX
18830     ) |
18831       sed "s/^/$as_me: WARNING:     /" >&2
18832     ;;
18833 esac
18834 echo "$as_me:$LINENO: checking for $ac_header" >&5
18835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18837   echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839   eval "$as_ac_Header=\$ac_header_preproc"
18840 fi
18841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18843
18844 fi
18845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18846   cat >>confdefs.h <<_ACEOF
18847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18848 _ACEOF
18849
18850 fi
18851
18852 done
18853
18854                 if test $ac_cv_header_gssapi_h = yes ; then
18855                         ol_header_gssapi=yes
18856                 fi
18857
18858                                                                 saveLIBS="$LIBS"
18859                 LIBS="$LIBS $GSSAPI_LIBS"
18860
18861 for ac_func in gss_oid_to_str
18862 do
18863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18864 echo "$as_me:$LINENO: checking for $ac_func" >&5
18865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18866 if eval "test \"\${$as_ac_var+set}\" = set"; then
18867   echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869   cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18877 #define $ac_func innocuous_$ac_func
18878
18879 /* System header to define __stub macros and hopefully few prototypes,
18880     which can conflict with char $ac_func (); below.
18881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18882     <limits.h> exists even on freestanding compilers.  */
18883
18884 #ifdef __STDC__
18885 # include <limits.h>
18886 #else
18887 # include <assert.h>
18888 #endif
18889
18890 #undef $ac_func
18891
18892 /* Override any gcc2 internal prototype to avoid an error.  */
18893 #ifdef __cplusplus
18894 extern "C"
18895 {
18896 #endif
18897 /* We use char because int might match the return type of a gcc2
18898    builtin and then its argument prototype would still apply.  */
18899 char $ac_func ();
18900 /* The GNU C library defines this for functions which it implements
18901     to always fail with ENOSYS.  Some functions are actually named
18902     something starting with __ and the normal name is an alias.  */
18903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18904 choke me
18905 #else
18906 char (*f) () = $ac_func;
18907 #endif
18908 #ifdef __cplusplus
18909 }
18910 #endif
18911
18912 int
18913 main ()
18914 {
18915 return f != $ac_func;
18916   ;
18917   return 0;
18918 }
18919 _ACEOF
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18922   (eval $ac_link) 2>conftest.er1
18923   ac_status=$?
18924   grep -v '^ *+' conftest.er1 >conftest.err
18925   rm -f conftest.er1
18926   cat conftest.err >&5
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } &&
18929          { ac_try='test -z "$ac_c_werror_flag"
18930                          || test ! -s conftest.err'
18931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932   (eval $ac_try) 2>&5
18933   ac_status=$?
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); }; } &&
18936          { ac_try='test -s conftest$ac_exeext'
18937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938   (eval $ac_try) 2>&5
18939   ac_status=$?
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); }; }; then
18942   eval "$as_ac_var=yes"
18943 else
18944   echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18946
18947 eval "$as_ac_var=no"
18948 fi
18949 rm -f conftest.err conftest.$ac_objext \
18950       conftest$ac_exeext conftest.$ac_ext
18951 fi
18952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18954 if test `eval echo '${'$as_ac_var'}'` = yes; then
18955   cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18957 _ACEOF
18958
18959 fi
18960 done
18961
18962                 LIBS="$saveLIBS"
18963         fi
18964
18965         if test $ol_header_gssapi = yes ; then
18966                                                 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
18967 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6
18968 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
18969   echo $ECHO_N "(cached) $ECHO_C" >&6
18970 else
18971   ac_check_lib_save_LIBS=$LIBS
18972 LIBS="-lgssapi  $LIBS"
18973 cat >conftest.$ac_ext <<_ACEOF
18974 /* confdefs.h.  */
18975 _ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h.  */
18979
18980 /* Override any gcc2 internal prototype to avoid an error.  */
18981 #ifdef __cplusplus
18982 extern "C"
18983 #endif
18984 /* We use char because int might match the return type of a gcc2
18985    builtin and then its argument prototype would still apply.  */
18986 char gss_wrap ();
18987 int
18988 main ()
18989 {
18990 gss_wrap ();
18991   ;
18992   return 0;
18993 }
18994 _ACEOF
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18997   (eval $ac_link) 2>conftest.er1
18998   ac_status=$?
18999   grep -v '^ *+' conftest.er1 >conftest.err
19000   rm -f conftest.er1
19001   cat conftest.err >&5
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); } &&
19004          { ac_try='test -z "$ac_c_werror_flag"
19005                          || test ! -s conftest.err'
19006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007   (eval $ac_try) 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); }; } &&
19011          { ac_try='test -s conftest$ac_exeext'
19012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013   (eval $ac_try) 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); }; }; then
19017   ac_cv_lib_gssapi_gss_wrap=yes
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022 ac_cv_lib_gssapi_gss_wrap=no
19023 fi
19024 rm -f conftest.err conftest.$ac_objext \
19025       conftest$ac_exeext conftest.$ac_ext
19026 LIBS=$ac_check_lib_save_LIBS
19027 fi
19028 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19029 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6
19030 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19031   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19032 else
19033   ol_link_gssapi=no
19034 fi
19035
19036                 if test $ol_link_gssapi != yes ; then
19037                         echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19038 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6
19039 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19040   echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042   ac_check_lib_save_LIBS=$LIBS
19043 LIBS="-lgssapi_krb5  $LIBS"
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h.  */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h.  */
19050
19051 /* Override any gcc2 internal prototype to avoid an error.  */
19052 #ifdef __cplusplus
19053 extern "C"
19054 #endif
19055 /* We use char because int might match the return type of a gcc2
19056    builtin and then its argument prototype would still apply.  */
19057 char gss_wrap ();
19058 int
19059 main ()
19060 {
19061 gss_wrap ();
19062   ;
19063   return 0;
19064 }
19065 _ACEOF
19066 rm -f conftest.$ac_objext conftest$ac_exeext
19067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19068   (eval $ac_link) 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } &&
19075          { ac_try='test -z "$ac_c_werror_flag"
19076                          || test ! -s conftest.err'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; } &&
19082          { ac_try='test -s conftest$ac_exeext'
19083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084   (eval $ac_try) 2>&5
19085   ac_status=$?
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); }; }; then
19088   ac_cv_lib_gssapi_krb5_gss_wrap=yes
19089 else
19090   echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19092
19093 ac_cv_lib_gssapi_krb5_gss_wrap=no
19094 fi
19095 rm -f conftest.err conftest.$ac_objext \
19096       conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19098 fi
19099 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19100 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6
19101 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19102   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19103 else
19104   ol_link_gssapi=no
19105 fi
19106
19107                 fi
19108         fi
19109
19110         ;;
19111 esac
19112
19113 WITH_GSSAPI=no
19114 if test $ol_link_gssapi = yes; then
19115
19116 cat >>confdefs.h <<\_ACEOF
19117 #define HAVE_GSSAPI 1
19118 _ACEOF
19119
19120         WITH_GSSAPI=yes
19121 elif test $ol_with_gssapi = auto ; then
19122         { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19123 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19124         { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19125 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19126 elif test $ol_with_gssapi = yes ; then
19127         { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19128 echo "$as_me: error: GSSAPI detection failed" >&2;}
19129    { (exit 1); exit 1; }; }
19130 fi
19131
19132
19133 if test $ol_with_tls = yes ; then
19134         ol_with_tls=auto
19135 fi
19136
19137 ol_link_tls=no
19138 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19139
19140 for ac_header in openssl/ssl.h
19141 do
19142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19144   echo "$as_me:$LINENO: checking for $ac_header" >&5
19145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19147   echo $ECHO_N "(cached) $ECHO_C" >&6
19148 fi
19149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19151 else
19152   # Is the header compilable?
19153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19155 cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161 $ac_includes_default
19162 #include <$ac_header>
19163 _ACEOF
19164 rm -f conftest.$ac_objext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19166   (eval $ac_compile) 2>conftest.er1
19167   ac_status=$?
19168   grep -v '^ *+' conftest.er1 >conftest.err
19169   rm -f conftest.er1
19170   cat conftest.err >&5
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); } &&
19173          { ac_try='test -z "$ac_c_werror_flag"
19174                          || test ! -s conftest.err'
19175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176   (eval $ac_try) 2>&5
19177   ac_status=$?
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); }; } &&
19180          { ac_try='test -s conftest.$ac_objext'
19181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182   (eval $ac_try) 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); }; }; then
19186   ac_header_compiler=yes
19187 else
19188   echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19190
19191 ac_header_compiler=no
19192 fi
19193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19195 echo "${ECHO_T}$ac_header_compiler" >&6
19196
19197 # Is the header present?
19198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19200 cat >conftest.$ac_ext <<_ACEOF
19201 /* confdefs.h.  */
19202 _ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h.  */
19206 #include <$ac_header>
19207 _ACEOF
19208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19209   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19210   ac_status=$?
19211   grep -v '^ *+' conftest.er1 >conftest.err
19212   rm -f conftest.er1
19213   cat conftest.err >&5
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); } >/dev/null; then
19216   if test -s conftest.err; then
19217     ac_cpp_err=$ac_c_preproc_warn_flag
19218     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19219   else
19220     ac_cpp_err=
19221   fi
19222 else
19223   ac_cpp_err=yes
19224 fi
19225 if test -z "$ac_cpp_err"; then
19226   ac_header_preproc=yes
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231   ac_header_preproc=no
19232 fi
19233 rm -f conftest.err conftest.$ac_ext
19234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19235 echo "${ECHO_T}$ac_header_preproc" >&6
19236
19237 # So?  What about this header?
19238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19239   yes:no: )
19240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19244     ac_header_preproc=yes
19245     ;;
19246   no:yes:* )
19247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19259     (
19260       cat <<\_ASBOX
19261 ## --------------------------------------------- ##
19262 ## Report this to <http://www.openldap.org/its/> ##
19263 ## --------------------------------------------- ##
19264 _ASBOX
19265     ) |
19266       sed "s/^/$as_me: WARNING:     /" >&2
19267     ;;
19268 esac
19269 echo "$as_me:$LINENO: checking for $ac_header" >&5
19270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19272   echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274   eval "$as_ac_Header=\$ac_header_preproc"
19275 fi
19276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19278
19279 fi
19280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19281   cat >>confdefs.h <<_ACEOF
19282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19283 _ACEOF
19284
19285 fi
19286
19287 done
19288
19289
19290         if test $ac_cv_header_openssl_ssl_h = yes ; then
19291                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19292 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19293 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19294   echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296   ac_check_lib_save_LIBS=$LIBS
19297 LIBS="-lssl -lcrypto $LIBS"
19298 cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h.  */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h.  */
19304
19305 /* Override any gcc2 internal prototype to avoid an error.  */
19306 #ifdef __cplusplus
19307 extern "C"
19308 #endif
19309 /* We use char because int might match the return type of a gcc2
19310    builtin and then its argument prototype would still apply.  */
19311 char SSL_library_init ();
19312 int
19313 main ()
19314 {
19315 SSL_library_init ();
19316   ;
19317   return 0;
19318 }
19319 _ACEOF
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322   (eval $ac_link) 2>conftest.er1
19323   ac_status=$?
19324   grep -v '^ *+' conftest.er1 >conftest.err
19325   rm -f conftest.er1
19326   cat conftest.err >&5
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } &&
19329          { ac_try='test -z "$ac_c_werror_flag"
19330                          || test ! -s conftest.err'
19331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332   (eval $ac_try) 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; } &&
19336          { ac_try='test -s conftest$ac_exeext'
19337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338   (eval $ac_try) 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; }; then
19342   ac_cv_lib_ssl_SSL_library_init=yes
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347 ac_cv_lib_ssl_SSL_library_init=no
19348 fi
19349 rm -f conftest.err conftest.$ac_objext \
19350       conftest$ac_exeext conftest.$ac_ext
19351 LIBS=$ac_check_lib_save_LIBS
19352 fi
19353 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19354 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19355 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19356   have_openssl=yes
19357                         need_rsaref=no
19358 else
19359   have_openssl=no
19360 fi
19361
19362
19363                 if test $have_openssl = no ; then
19364                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19365 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19366 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19367   echo $ECHO_N "(cached) $ECHO_C" >&6
19368 else
19369   ac_check_lib_save_LIBS=$LIBS
19370 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h.  */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h.  */
19377
19378 /* Override any gcc2 internal prototype to avoid an error.  */
19379 #ifdef __cplusplus
19380 extern "C"
19381 #endif
19382 /* We use char because int might match the return type of a gcc2
19383    builtin and then its argument prototype would still apply.  */
19384 char ssl3_accept ();
19385 int
19386 main ()
19387 {
19388 ssl3_accept ();
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 rm -f conftest.$ac_objext conftest$ac_exeext
19394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19395   (eval $ac_link) 2>conftest.er1
19396   ac_status=$?
19397   grep -v '^ *+' conftest.er1 >conftest.err
19398   rm -f conftest.er1
19399   cat conftest.err >&5
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); } &&
19402          { ac_try='test -z "$ac_c_werror_flag"
19403                          || test ! -s conftest.err'
19404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405   (eval $ac_try) 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; } &&
19409          { ac_try='test -s conftest$ac_exeext'
19410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411   (eval $ac_try) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); }; }; then
19415   ac_cv_lib_ssl_ssl3_accept=yes
19416 else
19417   echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19419
19420 ac_cv_lib_ssl_ssl3_accept=no
19421 fi
19422 rm -f conftest.err conftest.$ac_objext \
19423       conftest$ac_exeext conftest.$ac_ext
19424 LIBS=$ac_check_lib_save_LIBS
19425 fi
19426 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19427 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19428 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19429   have_openssl=yes
19430                                 need_rsaref=yes
19431 else
19432   have_openssl=no
19433 fi
19434
19435                 fi
19436
19437                 if test $have_openssl = yes ; then
19438                         ol_with_tls=openssl
19439                         ol_link_tls=yes
19440
19441
19442 cat >>confdefs.h <<\_ACEOF
19443 #define HAVE_OPENSSL 1
19444 _ACEOF
19445
19446
19447                         if test $need_rsaref = yes; then
19448
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_RSAREF 1
19451 _ACEOF
19452
19453
19454                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19455                         else
19456                                 TLS_LIBS="-lssl -lcrypto"
19457                         fi
19458
19459                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19460 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19461 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19462   echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464
19465                 cat >conftest.$ac_ext <<_ACEOF
19466 /* confdefs.h.  */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h.  */
19471
19472 #ifdef HAVE_OPENSSL_SSL_H
19473 #include <openssl/ssl.h>
19474 #endif
19475
19476 /* Require 0.9.7d+ */
19477 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19478         char *__ssl_compat = "0.9.7d";
19479 #endif
19480
19481 _ACEOF
19482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19483   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19484   ol_cv_ssl_crl_compat=yes
19485 else
19486   ol_cv_ssl_crl_compat=no
19487 fi
19488 rm -f conftest*
19489
19490 fi
19491 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19492 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19493
19494                         if test $ol_cv_ssl_crl_compat = yes ; then
19495
19496 cat >>confdefs.h <<\_ACEOF
19497 #define HAVE_OPENSSL_CRL 1
19498 _ACEOF
19499
19500                         fi
19501                 fi
19502         fi
19503 fi
19504
19505 if test $ol_link_tls = no ; then
19506         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19507
19508 for ac_header in gnutls/gnutls.h
19509 do
19510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19512   echo "$as_me:$LINENO: checking for $ac_header" >&5
19513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19515   echo $ECHO_N "(cached) $ECHO_C" >&6
19516 fi
19517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19519 else
19520   # Is the header compilable?
19521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 $ac_includes_default
19530 #include <$ac_header>
19531 _ACEOF
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534   (eval $ac_compile) 2>conftest.er1
19535   ac_status=$?
19536   grep -v '^ *+' conftest.er1 >conftest.err
19537   rm -f conftest.er1
19538   cat conftest.err >&5
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } &&
19541          { ac_try='test -z "$ac_c_werror_flag"
19542                          || test ! -s conftest.err'
19543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544   (eval $ac_try) 2>&5
19545   ac_status=$?
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); }; } &&
19548          { ac_try='test -s conftest.$ac_objext'
19549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550   (eval $ac_try) 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; }; then
19554   ac_header_compiler=yes
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559 ac_header_compiler=no
19560 fi
19561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19563 echo "${ECHO_T}$ac_header_compiler" >&6
19564
19565 # Is the header present?
19566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19568 cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h.  */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h.  */
19574 #include <$ac_header>
19575 _ACEOF
19576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19578   ac_status=$?
19579   grep -v '^ *+' conftest.er1 >conftest.err
19580   rm -f conftest.er1
19581   cat conftest.err >&5
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); } >/dev/null; then
19584   if test -s conftest.err; then
19585     ac_cpp_err=$ac_c_preproc_warn_flag
19586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19587   else
19588     ac_cpp_err=
19589   fi
19590 else
19591   ac_cpp_err=yes
19592 fi
19593 if test -z "$ac_cpp_err"; then
19594   ac_header_preproc=yes
19595 else
19596   echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19598
19599   ac_header_preproc=no
19600 fi
19601 rm -f conftest.err conftest.$ac_ext
19602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19603 echo "${ECHO_T}$ac_header_preproc" >&6
19604
19605 # So?  What about this header?
19606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19607   yes:no: )
19608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19612     ac_header_preproc=yes
19613     ;;
19614   no:yes:* )
19615     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19617     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19618 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19619     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19621     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19622 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19625     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19627     (
19628       cat <<\_ASBOX
19629 ## --------------------------------------------- ##
19630 ## Report this to <http://www.openldap.org/its/> ##
19631 ## --------------------------------------------- ##
19632 _ASBOX
19633     ) |
19634       sed "s/^/$as_me: WARNING:     /" >&2
19635     ;;
19636 esac
19637 echo "$as_me:$LINENO: checking for $ac_header" >&5
19638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19640   echo $ECHO_N "(cached) $ECHO_C" >&6
19641 else
19642   eval "$as_ac_Header=\$ac_header_preproc"
19643 fi
19644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19646
19647 fi
19648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19649   cat >>confdefs.h <<_ACEOF
19650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19651 _ACEOF
19652
19653 fi
19654
19655 done
19656
19657
19658                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19659                         echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19660 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19661 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664   ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lgnutls  $LIBS"
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672
19673 /* Override any gcc2 internal prototype to avoid an error.  */
19674 #ifdef __cplusplus
19675 extern "C"
19676 #endif
19677 /* We use char because int might match the return type of a gcc2
19678    builtin and then its argument prototype would still apply.  */
19679 char gnutls_init ();
19680 int
19681 main ()
19682 {
19683 gnutls_init ();
19684   ;
19685   return 0;
19686 }
19687 _ACEOF
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19690   (eval $ac_link) 2>conftest.er1
19691   ac_status=$?
19692   grep -v '^ *+' conftest.er1 >conftest.err
19693   rm -f conftest.er1
19694   cat conftest.err >&5
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); } &&
19697          { ac_try='test -z "$ac_c_werror_flag"
19698                          || test ! -s conftest.err'
19699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700   (eval $ac_try) 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); }; } &&
19704          { ac_try='test -s conftest$ac_exeext'
19705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706   (eval $ac_try) 2>&5
19707   ac_status=$?
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); }; }; then
19710   ac_cv_lib_gnutls_gnutls_init=yes
19711 else
19712   echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19714
19715 ac_cv_lib_gnutls_gnutls_init=no
19716 fi
19717 rm -f conftest.err conftest.$ac_objext \
19718       conftest$ac_exeext conftest.$ac_ext
19719 LIBS=$ac_check_lib_save_LIBS
19720 fi
19721 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19722 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19723 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19724   have_gnutls=yes
19725 else
19726   have_gnutls=no
19727 fi
19728
19729
19730                         if test $have_gnutls = yes ; then
19731                                 ol_with_tls=gnutls
19732                                 ol_link_tls=yes
19733
19734                                 TLS_LIBS="-lgnutls"
19735
19736
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_GNUTLS 1
19739 _ACEOF
19740
19741                         fi
19742                 fi
19743         fi
19744 fi
19745
19746 WITH_TLS=no
19747 if test $ol_link_tls = yes ; then
19748
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_TLS 1
19751 _ACEOF
19752
19753         WITH_TLS=yes
19754 elif test $ol_with_tls = auto ; then
19755         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19756 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19757         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19758 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19759 elif test $ol_with_tls != no ; then
19760         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19761 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19762    { (exit 1); exit 1; }; }
19763 else
19764         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19765 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19766 fi
19767
19768 if test $ol_enable_lmpasswd != no; then
19769         if test $ol_link_tls != yes ; then
19770                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19771 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19772    { (exit 1); exit 1; }; }
19773         fi
19774
19775
19776 cat >>confdefs.h <<\_ACEOF
19777 #define SLAPD_LMHASH 1
19778 _ACEOF
19779
19780 fi
19781
19782 ol_link_threads=no
19783
19784 case $ol_with_threads in auto | yes | nt)
19785
19786
19787         echo "$as_me:$LINENO: checking for _beginthread" >&5
19788 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19789 if test "${ac_cv_func__beginthread+set}" = set; then
19790   echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792   cat >conftest.$ac_ext <<_ACEOF
19793 /* confdefs.h.  */
19794 _ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h.  */
19798 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19800 #define _beginthread innocuous__beginthread
19801
19802 /* System header to define __stub macros and hopefully few prototypes,
19803     which can conflict with char _beginthread (); below.
19804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19805     <limits.h> exists even on freestanding compilers.  */
19806
19807 #ifdef __STDC__
19808 # include <limits.h>
19809 #else
19810 # include <assert.h>
19811 #endif
19812
19813 #undef _beginthread
19814
19815 /* Override any gcc2 internal prototype to avoid an error.  */
19816 #ifdef __cplusplus
19817 extern "C"
19818 {
19819 #endif
19820 /* We use char because int might match the return type of a gcc2
19821    builtin and then its argument prototype would still apply.  */
19822 char _beginthread ();
19823 /* The GNU C library defines this for functions which it implements
19824     to always fail with ENOSYS.  Some functions are actually named
19825     something starting with __ and the normal name is an alias.  */
19826 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19827 choke me
19828 #else
19829 char (*f) () = _beginthread;
19830 #endif
19831 #ifdef __cplusplus
19832 }
19833 #endif
19834
19835 int
19836 main ()
19837 {
19838 return f != _beginthread;
19839   ;
19840   return 0;
19841 }
19842 _ACEOF
19843 rm -f conftest.$ac_objext conftest$ac_exeext
19844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19845   (eval $ac_link) 2>conftest.er1
19846   ac_status=$?
19847   grep -v '^ *+' conftest.er1 >conftest.err
19848   rm -f conftest.er1
19849   cat conftest.err >&5
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } &&
19852          { ac_try='test -z "$ac_c_werror_flag"
19853                          || test ! -s conftest.err'
19854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855   (eval $ac_try) 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; } &&
19859          { ac_try='test -s conftest$ac_exeext'
19860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861   (eval $ac_try) 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); }; }; then
19865   ac_cv_func__beginthread=yes
19866 else
19867   echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 ac_cv_func__beginthread=no
19871 fi
19872 rm -f conftest.err conftest.$ac_objext \
19873       conftest$ac_exeext conftest.$ac_ext
19874 fi
19875 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19876 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19877
19878
19879         if test $ac_cv_func__beginthread = yes ; then
19880
19881 cat >>confdefs.h <<\_ACEOF
19882 #define HAVE_NT_THREADS 1
19883 _ACEOF
19884
19885                 ol_cv_nt_threads=yes
19886         fi
19887
19888
19889         if test "$ol_cv_nt_threads" = yes ; then
19890                 ol_link_threads=nt
19891                 ol_with_threads=found
19892                 ol_with_yielding_select=yes
19893
19894
19895 cat >>confdefs.h <<\_ACEOF
19896 #define HAVE_NT_SERVICE_MANAGER 1
19897 _ACEOF
19898
19899
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_NT_EVENT_LOG 1
19902 _ACEOF
19903
19904         fi
19905
19906         if test $ol_with_threads = nt ; then
19907                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19908 echo "$as_me: error: could not locate NT Threads" >&2;}
19909    { (exit 1); exit 1; }; }
19910         fi
19911         ;;
19912 esac
19913
19914 case $ol_with_threads in auto | yes | posix)
19915
19916
19917 for ac_header in pthread.h
19918 do
19919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19921   echo "$as_me:$LINENO: checking for $ac_header" >&5
19922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19924   echo $ECHO_N "(cached) $ECHO_C" >&6
19925 fi
19926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19928 else
19929   # Is the header compilable?
19930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19932 cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938 $ac_includes_default
19939 #include <$ac_header>
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19943   (eval $ac_compile) 2>conftest.er1
19944   ac_status=$?
19945   grep -v '^ *+' conftest.er1 >conftest.err
19946   rm -f conftest.er1
19947   cat conftest.err >&5
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); } &&
19950          { ac_try='test -z "$ac_c_werror_flag"
19951                          || test ! -s conftest.err'
19952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953   (eval $ac_try) 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; } &&
19957          { ac_try='test -s conftest.$ac_objext'
19958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959   (eval $ac_try) 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); }; }; then
19963   ac_header_compiler=yes
19964 else
19965   echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968 ac_header_compiler=no
19969 fi
19970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19972 echo "${ECHO_T}$ac_header_compiler" >&6
19973
19974 # Is the header present?
19975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h.  */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h.  */
19983 #include <$ac_header>
19984 _ACEOF
19985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19987   ac_status=$?
19988   grep -v '^ *+' conftest.er1 >conftest.err
19989   rm -f conftest.er1
19990   cat conftest.err >&5
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); } >/dev/null; then
19993   if test -s conftest.err; then
19994     ac_cpp_err=$ac_c_preproc_warn_flag
19995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19996   else
19997     ac_cpp_err=
19998   fi
19999 else
20000   ac_cpp_err=yes
20001 fi
20002 if test -z "$ac_cpp_err"; then
20003   ac_header_preproc=yes
20004 else
20005   echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008   ac_header_preproc=no
20009 fi
20010 rm -f conftest.err conftest.$ac_ext
20011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20012 echo "${ECHO_T}$ac_header_preproc" >&6
20013
20014 # So?  What about this header?
20015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20016   yes:no: )
20017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20021     ac_header_preproc=yes
20022     ;;
20023   no:yes:* )
20024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20036     (
20037       cat <<\_ASBOX
20038 ## --------------------------------------------- ##
20039 ## Report this to <http://www.openldap.org/its/> ##
20040 ## --------------------------------------------- ##
20041 _ASBOX
20042     ) |
20043       sed "s/^/$as_me: WARNING:     /" >&2
20044     ;;
20045 esac
20046 echo "$as_me:$LINENO: checking for $ac_header" >&5
20047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20049   echo $ECHO_N "(cached) $ECHO_C" >&6
20050 else
20051   eval "$as_ac_Header=\$ac_header_preproc"
20052 fi
20053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20055
20056 fi
20057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20058   cat >>confdefs.h <<_ACEOF
20059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20060 _ACEOF
20061
20062 fi
20063
20064 done
20065
20066
20067         if test $ac_cv_header_pthread_h = yes ; then
20068                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20069 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20070 if test "${ol_cv_pthread_version+set}" = set; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073
20074         cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h.  */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h.  */
20080
20081 #               include <pthread.h>
20082
20083 int
20084 main ()
20085 {
20086
20087                 int i = PTHREAD_CREATE_JOINABLE;
20088
20089   ;
20090   return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095   (eval $ac_compile) 2>conftest.er1
20096   ac_status=$?
20097   grep -v '^ *+' conftest.er1 >conftest.err
20098   rm -f conftest.er1
20099   cat conftest.err >&5
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } &&
20102          { ac_try='test -z "$ac_c_werror_flag"
20103                          || test ! -s conftest.err'
20104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105   (eval $ac_try) 2>&5
20106   ac_status=$?
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); }; } &&
20109          { ac_try='test -s conftest.$ac_objext'
20110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111   (eval $ac_try) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); }; }; then
20115
20116         cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h.  */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h.  */
20122 #include <pthread.h>
20123
20124 _ACEOF
20125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20126   $EGREP "pthread_detach" >/dev/null 2>&1; then
20127   ol_cv_pthread_version=10
20128 else
20129   ol_cv_pthread_version=8
20130 fi
20131 rm -f conftest*
20132
20133 else
20134   echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20136
20137
20138         cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144
20145 #               include <pthread.h>
20146 #               ifdef PTHREAD_CREATE_UNDETACHED
20147                 draft7
20148 #               endif
20149
20150 _ACEOF
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152   $EGREP "draft7" >/dev/null 2>&1; then
20153   ol_cv_pthread_version=7
20154 else
20155
20156         cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162 #include <pthread.h>
20163
20164 _ACEOF
20165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20166   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20167   ol_cv_pthread_version=6
20168 else
20169
20170         cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h.  */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h.  */
20176
20177 #               include <pthread.h>
20178 #ifdef          PTHREAD_MUTEX_INITIALIZER
20179                 draft5
20180 #endif
20181
20182 _ACEOF
20183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20184   $EGREP "draft5" >/dev/null 2>&1; then
20185   ol_cv_pthread_version=5
20186 else
20187   ol_cv_pthread_version=4
20188 fi
20189 rm -f conftest*
20190
20191 fi
20192 rm -f conftest*
20193
20194 fi
20195 rm -f conftest*
20196
20197 fi
20198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20199
20200 fi
20201 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20202 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20203
20204
20205                 if test $ol_cv_pthread_version != 0 ; then
20206
20207 cat >>confdefs.h <<_ACEOF
20208 #define HAVE_PTHREADS $ol_cv_pthread_version
20209 _ACEOF
20210
20211                 else
20212                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20213 echo "$as_me: error: unknown pthread version" >&2;}
20214    { (exit 1); exit 1; }; }
20215                 fi
20216
20217                 # consider threads found
20218                 ol_with_threads=found
20219
20220
20221         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20222 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20223 if test "${ol_cv_header_linux_threads+set}" = set; then
20224   echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226   cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h.  */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h.  */
20232 #include <pthread.h>
20233 _ACEOF
20234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20235   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20236   ol_cv_header_linux_threads=yes
20237 else
20238   ol_cv_header_linux_threads=no
20239 fi
20240 rm -f conftest*
20241
20242
20243 fi
20244 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20245 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20246         if test $ol_cv_header_linux_threads = yes; then
20247
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_LINUX_THREADS 1
20250 _ACEOF
20251
20252         fi
20253
20254
20255         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20256 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20257 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20258   echo $ECHO_N "(cached) $ECHO_C" >&6
20259 else
20260   cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h.  */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h.  */
20266 #include <pthread.h>
20267 #ifdef _POSIX_THREAD_IS_GNU_PTH
20268         __gnu_pth__;
20269 #endif
20270
20271 _ACEOF
20272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20273   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20274   ol_cv_header_gnu_pth_pthread_h=yes
20275 else
20276   ol_cv_header_gnu_pth_pthread_h=no
20277 fi
20278 rm -f conftest*
20279
20280
20281 fi
20282 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20283 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20284
20285
20286                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20287
20288 for ac_header in sched.h
20289 do
20290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20292   echo "$as_me:$LINENO: checking for $ac_header" >&5
20293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20295   echo $ECHO_N "(cached) $ECHO_C" >&6
20296 fi
20297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20299 else
20300   # Is the header compilable?
20301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h.  */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h.  */
20309 $ac_includes_default
20310 #include <$ac_header>
20311 _ACEOF
20312 rm -f conftest.$ac_objext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314   (eval $ac_compile) 2>conftest.er1
20315   ac_status=$?
20316   grep -v '^ *+' conftest.er1 >conftest.err
20317   rm -f conftest.er1
20318   cat conftest.err >&5
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } &&
20321          { ac_try='test -z "$ac_c_werror_flag"
20322                          || test ! -s conftest.err'
20323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324   (eval $ac_try) 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); }; } &&
20328          { ac_try='test -s conftest.$ac_objext'
20329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330   (eval $ac_try) 2>&5
20331   ac_status=$?
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); }; }; then
20334   ac_header_compiler=yes
20335 else
20336   echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20338
20339 ac_header_compiler=no
20340 fi
20341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20343 echo "${ECHO_T}$ac_header_compiler" >&6
20344
20345 # Is the header present?
20346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h.  */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h.  */
20354 #include <$ac_header>
20355 _ACEOF
20356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20358   ac_status=$?
20359   grep -v '^ *+' conftest.er1 >conftest.err
20360   rm -f conftest.er1
20361   cat conftest.err >&5
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); } >/dev/null; then
20364   if test -s conftest.err; then
20365     ac_cpp_err=$ac_c_preproc_warn_flag
20366     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20367   else
20368     ac_cpp_err=
20369   fi
20370 else
20371   ac_cpp_err=yes
20372 fi
20373 if test -z "$ac_cpp_err"; then
20374   ac_header_preproc=yes
20375 else
20376   echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379   ac_header_preproc=no
20380 fi
20381 rm -f conftest.err conftest.$ac_ext
20382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20383 echo "${ECHO_T}$ac_header_preproc" >&6
20384
20385 # So?  What about this header?
20386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20387   yes:no: )
20388     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20392     ac_header_preproc=yes
20393     ;;
20394   no:yes:* )
20395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20397     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20398 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20399     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20401     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20402 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20405     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20407     (
20408       cat <<\_ASBOX
20409 ## --------------------------------------------- ##
20410 ## Report this to <http://www.openldap.org/its/> ##
20411 ## --------------------------------------------- ##
20412 _ASBOX
20413     ) |
20414       sed "s/^/$as_me: WARNING:     /" >&2
20415     ;;
20416 esac
20417 echo "$as_me:$LINENO: checking for $ac_header" >&5
20418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20420   echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422   eval "$as_ac_Header=\$ac_header_preproc"
20423 fi
20424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20426
20427 fi
20428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20429   cat >>confdefs.h <<_ACEOF
20430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20431 _ACEOF
20432
20433 fi
20434
20435 done
20436
20437                 fi
20438
20439
20440                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20441 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20442 if test "${ol_cv_pthread_create+set}" = set; then
20443   echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445
20446                         if test "$cross_compiling" = yes; then
20447   cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h.  */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h.  */
20453
20454 /* pthread test headers */
20455 #include <pthread.h>
20456 #if HAVE_PTHREADS < 7
20457 #include <errno.h>
20458 #endif
20459 #ifndef NULL
20460 #define NULL (void*)0
20461 #endif
20462
20463 static void *task(p)
20464         void *p;
20465 {
20466         return (void *) (p == NULL);
20467 }
20468
20469 int
20470 main ()
20471 {
20472
20473         /* pthread test function */
20474 #ifndef PTHREAD_CREATE_DETACHED
20475 #define PTHREAD_CREATE_DETACHED 1
20476 #endif
20477         pthread_t t;
20478         int status;
20479         int detach = PTHREAD_CREATE_DETACHED;
20480
20481 #if HAVE_PTHREADS > 4
20482         /* Final pthreads */
20483         pthread_attr_t attr;
20484
20485         status = pthread_attr_init(&attr);
20486         if( status ) return status;
20487
20488 #if HAVE_PTHREADS < 7
20489         status = pthread_attr_setdetachstate(&attr, &detach);
20490         if( status < 0 ) status = errno;
20491 #else
20492         status = pthread_attr_setdetachstate(&attr, detach);
20493 #endif
20494         if( status ) return status;
20495         status = pthread_create( &t, &attr, task, NULL );
20496 #if HAVE_PTHREADS < 7
20497         if( status < 0 ) status = errno;
20498 #endif
20499         if( status ) return status;
20500 #else
20501         /* Draft 4 pthreads */
20502         status = pthread_create( &t, pthread_attr_default, task, NULL );
20503         if( status ) return errno;
20504
20505         /* give thread a chance to complete */
20506         /* it should remain joinable and hence detachable */
20507         sleep( 1 );
20508
20509         status = pthread_detach( &t );
20510         if( status ) return errno;
20511 #endif
20512
20513 #ifdef HAVE_LINUX_THREADS
20514         pthread_kill_other_threads_np();
20515 #endif
20516
20517         return 0;
20518
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 rm -f conftest.$ac_objext conftest$ac_exeext
20524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20525   (eval $ac_link) 2>conftest.er1
20526   ac_status=$?
20527   grep -v '^ *+' conftest.er1 >conftest.err
20528   rm -f conftest.er1
20529   cat conftest.err >&5
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } &&
20532          { ac_try='test -z "$ac_c_werror_flag"
20533                          || test ! -s conftest.err'
20534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20535   (eval $ac_try) 2>&5
20536   ac_status=$?
20537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); }; } &&
20539          { ac_try='test -s conftest$ac_exeext'
20540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541   (eval $ac_try) 2>&5
20542   ac_status=$?
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); }; }; then
20545   ol_cv_pthread_create=yes
20546 else
20547   echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20549
20550 ol_cv_pthread_create=no
20551 fi
20552 rm -f conftest.err conftest.$ac_objext \
20553       conftest$ac_exeext conftest.$ac_ext
20554 else
20555   cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h.  */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h.  */
20561
20562 /* pthread test headers */
20563 #include <pthread.h>
20564 #if HAVE_PTHREADS < 7
20565 #include <errno.h>
20566 #endif
20567 #ifndef NULL
20568 #define NULL (void*)0
20569 #endif
20570
20571 static void *task(p)
20572         void *p;
20573 {
20574         return (void *) (p == NULL);
20575 }
20576
20577
20578 int main(argc, argv)
20579         int argc;
20580         char **argv;
20581 {
20582
20583         /* pthread test function */
20584 #ifndef PTHREAD_CREATE_DETACHED
20585 #define PTHREAD_CREATE_DETACHED 1
20586 #endif
20587         pthread_t t;
20588         int status;
20589         int detach = PTHREAD_CREATE_DETACHED;
20590
20591 #if HAVE_PTHREADS > 4
20592         /* Final pthreads */
20593         pthread_attr_t attr;
20594
20595         status = pthread_attr_init(&attr);
20596         if( status ) return status;
20597
20598 #if HAVE_PTHREADS < 7
20599         status = pthread_attr_setdetachstate(&attr, &detach);
20600         if( status < 0 ) status = errno;
20601 #else
20602         status = pthread_attr_setdetachstate(&attr, detach);
20603 #endif
20604         if( status ) return status;
20605         status = pthread_create( &t, &attr, task, NULL );
20606 #if HAVE_PTHREADS < 7
20607         if( status < 0 ) status = errno;
20608 #endif
20609         if( status ) return status;
20610 #else
20611         /* Draft 4 pthreads */
20612         status = pthread_create( &t, pthread_attr_default, task, NULL );
20613         if( status ) return errno;
20614
20615         /* give thread a chance to complete */
20616         /* it should remain joinable and hence detachable */
20617         sleep( 1 );
20618
20619         status = pthread_detach( &t );
20620         if( status ) return errno;
20621 #endif
20622
20623 #ifdef HAVE_LINUX_THREADS
20624         pthread_kill_other_threads_np();
20625 #endif
20626
20627         return 0;
20628
20629 }
20630
20631 _ACEOF
20632 rm -f conftest$ac_exeext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20634   (eval $ac_link) 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639   (eval $ac_try) 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); }; }; then
20643   ol_cv_pthread_create=yes
20644 else
20645   echo "$as_me: program exited with status $ac_status" >&5
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 ( exit $ac_status )
20650 ol_cv_pthread_create=no
20651 fi
20652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20653 fi
20654 fi
20655 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20656 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20657
20658                 if test $ol_cv_pthread_create != no ; then
20659                         ol_link_threads=posix
20660                         ol_link_pthreads=""
20661                 fi
20662
20663                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20664 if test "$ol_link_threads" = no ; then
20665         # try -kthread
20666         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20667 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20668 if test "${ol_cv_pthread_kthread+set}" = set; then
20669   echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671
20672                 # save the flags
20673                 ol_LIBS="$LIBS"
20674                 LIBS="-kthread $LIBS"
20675
20676                 if test "$cross_compiling" = yes; then
20677   cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683
20684 /* pthread test headers */
20685 #include <pthread.h>
20686 #if HAVE_PTHREADS < 7
20687 #include <errno.h>
20688 #endif
20689 #ifndef NULL
20690 #define NULL (void*)0
20691 #endif
20692
20693 static void *task(p)
20694         void *p;
20695 {
20696         return (void *) (p == NULL);
20697 }
20698
20699 int
20700 main ()
20701 {
20702
20703         /* pthread test function */
20704 #ifndef PTHREAD_CREATE_DETACHED
20705 #define PTHREAD_CREATE_DETACHED 1
20706 #endif
20707         pthread_t t;
20708         int status;
20709         int detach = PTHREAD_CREATE_DETACHED;
20710
20711 #if HAVE_PTHREADS > 4
20712         /* Final pthreads */
20713         pthread_attr_t attr;
20714
20715         status = pthread_attr_init(&attr);
20716         if( status ) return status;
20717
20718 #if HAVE_PTHREADS < 7
20719         status = pthread_attr_setdetachstate(&attr, &detach);
20720         if( status < 0 ) status = errno;
20721 #else
20722         status = pthread_attr_setdetachstate(&attr, detach);
20723 #endif
20724         if( status ) return status;
20725         status = pthread_create( &t, &attr, task, NULL );
20726 #if HAVE_PTHREADS < 7
20727         if( status < 0 ) status = errno;
20728 #endif
20729         if( status ) return status;
20730 #else
20731         /* Draft 4 pthreads */
20732         status = pthread_create( &t, pthread_attr_default, task, NULL );
20733         if( status ) return errno;
20734
20735         /* give thread a chance to complete */
20736         /* it should remain joinable and hence detachable */
20737         sleep( 1 );
20738
20739         status = pthread_detach( &t );
20740         if( status ) return errno;
20741 #endif
20742
20743 #ifdef HAVE_LINUX_THREADS
20744         pthread_kill_other_threads_np();
20745 #endif
20746
20747         return 0;
20748
20749   ;
20750   return 0;
20751 }
20752 _ACEOF
20753 rm -f conftest.$ac_objext conftest$ac_exeext
20754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20755   (eval $ac_link) 2>conftest.er1
20756   ac_status=$?
20757   grep -v '^ *+' conftest.er1 >conftest.err
20758   rm -f conftest.er1
20759   cat conftest.err >&5
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); } &&
20762          { ac_try='test -z "$ac_c_werror_flag"
20763                          || test ! -s conftest.err'
20764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765   (eval $ac_try) 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); }; } &&
20769          { ac_try='test -s conftest$ac_exeext'
20770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771   (eval $ac_try) 2>&5
20772   ac_status=$?
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); }; }; then
20775   ol_cv_pthread_kthread=yes
20776 else
20777   echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780 ol_cv_pthread_kthread=no
20781 fi
20782 rm -f conftest.err conftest.$ac_objext \
20783       conftest$ac_exeext conftest.$ac_ext
20784 else
20785   cat >conftest.$ac_ext <<_ACEOF
20786 /* confdefs.h.  */
20787 _ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h.  */
20791
20792 /* pthread test headers */
20793 #include <pthread.h>
20794 #if HAVE_PTHREADS < 7
20795 #include <errno.h>
20796 #endif
20797 #ifndef NULL
20798 #define NULL (void*)0
20799 #endif
20800
20801 static void *task(p)
20802         void *p;
20803 {
20804         return (void *) (p == NULL);
20805 }
20806
20807
20808 int main(argc, argv)
20809         int argc;
20810         char **argv;
20811 {
20812
20813         /* pthread test function */
20814 #ifndef PTHREAD_CREATE_DETACHED
20815 #define PTHREAD_CREATE_DETACHED 1
20816 #endif
20817         pthread_t t;
20818         int status;
20819         int detach = PTHREAD_CREATE_DETACHED;
20820
20821 #if HAVE_PTHREADS > 4
20822         /* Final pthreads */
20823         pthread_attr_t attr;
20824
20825         status = pthread_attr_init(&attr);
20826         if( status ) return status;
20827
20828 #if HAVE_PTHREADS < 7
20829         status = pthread_attr_setdetachstate(&attr, &detach);
20830         if( status < 0 ) status = errno;
20831 #else
20832         status = pthread_attr_setdetachstate(&attr, detach);
20833 #endif
20834         if( status ) return status;
20835         status = pthread_create( &t, &attr, task, NULL );
20836 #if HAVE_PTHREADS < 7
20837         if( status < 0 ) status = errno;
20838 #endif
20839         if( status ) return status;
20840 #else
20841         /* Draft 4 pthreads */
20842         status = pthread_create( &t, pthread_attr_default, task, NULL );
20843         if( status ) return errno;
20844
20845         /* give thread a chance to complete */
20846         /* it should remain joinable and hence detachable */
20847         sleep( 1 );
20848
20849         status = pthread_detach( &t );
20850         if( status ) return errno;
20851 #endif
20852
20853 #ifdef HAVE_LINUX_THREADS
20854         pthread_kill_other_threads_np();
20855 #endif
20856
20857         return 0;
20858
20859 }
20860
20861 _ACEOF
20862 rm -f conftest$ac_exeext
20863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20864   (eval $ac_link) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869   (eval $ac_try) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); }; }; then
20873   ol_cv_pthread_kthread=yes
20874 else
20875   echo "$as_me: program exited with status $ac_status" >&5
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ( exit $ac_status )
20880 ol_cv_pthread_kthread=no
20881 fi
20882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20883 fi
20884
20885                 # restore the LIBS
20886                 LIBS="$ol_LIBS"
20887
20888 fi
20889 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20890 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20891
20892         if test $ol_cv_pthread_kthread = yes ; then
20893                 ol_link_pthreads="-kthread"
20894                 ol_link_threads=posix
20895         fi
20896 fi
20897
20898                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20899 if test "$ol_link_threads" = no ; then
20900         # try -pthread
20901         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20902 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20903 if test "${ol_cv_pthread_pthread+set}" = set; then
20904   echo $ECHO_N "(cached) $ECHO_C" >&6
20905 else
20906
20907                 # save the flags
20908                 ol_LIBS="$LIBS"
20909                 LIBS="-pthread $LIBS"
20910
20911                 if test "$cross_compiling" = yes; then
20912   cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h.  */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h.  */
20918
20919 /* pthread test headers */
20920 #include <pthread.h>
20921 #if HAVE_PTHREADS < 7
20922 #include <errno.h>
20923 #endif
20924 #ifndef NULL
20925 #define NULL (void*)0
20926 #endif
20927
20928 static void *task(p)
20929         void *p;
20930 {
20931         return (void *) (p == NULL);
20932 }
20933
20934 int
20935 main ()
20936 {
20937
20938         /* pthread test function */
20939 #ifndef PTHREAD_CREATE_DETACHED
20940 #define PTHREAD_CREATE_DETACHED 1
20941 #endif
20942         pthread_t t;
20943         int status;
20944         int detach = PTHREAD_CREATE_DETACHED;
20945
20946 #if HAVE_PTHREADS > 4
20947         /* Final pthreads */
20948         pthread_attr_t attr;
20949
20950         status = pthread_attr_init(&attr);
20951         if( status ) return status;
20952
20953 #if HAVE_PTHREADS < 7
20954         status = pthread_attr_setdetachstate(&attr, &detach);
20955         if( status < 0 ) status = errno;
20956 #else
20957         status = pthread_attr_setdetachstate(&attr, detach);
20958 #endif
20959         if( status ) return status;
20960         status = pthread_create( &t, &attr, task, NULL );
20961 #if HAVE_PTHREADS < 7
20962         if( status < 0 ) status = errno;
20963 #endif
20964         if( status ) return status;
20965 #else
20966         /* Draft 4 pthreads */
20967         status = pthread_create( &t, pthread_attr_default, task, NULL );
20968         if( status ) return errno;
20969
20970         /* give thread a chance to complete */
20971         /* it should remain joinable and hence detachable */
20972         sleep( 1 );
20973
20974         status = pthread_detach( &t );
20975         if( status ) return errno;
20976 #endif
20977
20978 #ifdef HAVE_LINUX_THREADS
20979         pthread_kill_other_threads_np();
20980 #endif
20981
20982         return 0;
20983
20984   ;
20985   return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20990   (eval $ac_link) 2>conftest.er1
20991   ac_status=$?
20992   grep -v '^ *+' conftest.er1 >conftest.err
20993   rm -f conftest.er1
20994   cat conftest.err >&5
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); } &&
20997          { ac_try='test -z "$ac_c_werror_flag"
20998                          || test ! -s conftest.err'
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); }; } &&
21004          { ac_try='test -s conftest$ac_exeext'
21005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006   (eval $ac_try) 2>&5
21007   ac_status=$?
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); }; }; then
21010   ol_cv_pthread_pthread=yes
21011 else
21012   echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015 ol_cv_pthread_pthread=no
21016 fi
21017 rm -f conftest.err conftest.$ac_objext \
21018       conftest$ac_exeext conftest.$ac_ext
21019 else
21020   cat >conftest.$ac_ext <<_ACEOF
21021 /* confdefs.h.  */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h.  */
21026
21027 /* pthread test headers */
21028 #include <pthread.h>
21029 #if HAVE_PTHREADS < 7
21030 #include <errno.h>
21031 #endif
21032 #ifndef NULL
21033 #define NULL (void*)0
21034 #endif
21035
21036 static void *task(p)
21037         void *p;
21038 {
21039         return (void *) (p == NULL);
21040 }
21041
21042
21043 int main(argc, argv)
21044         int argc;
21045         char **argv;
21046 {
21047
21048         /* pthread test function */
21049 #ifndef PTHREAD_CREATE_DETACHED
21050 #define PTHREAD_CREATE_DETACHED 1
21051 #endif
21052         pthread_t t;
21053         int status;
21054         int detach = PTHREAD_CREATE_DETACHED;
21055
21056 #if HAVE_PTHREADS > 4
21057         /* Final pthreads */
21058         pthread_attr_t attr;
21059
21060         status = pthread_attr_init(&attr);
21061         if( status ) return status;
21062
21063 #if HAVE_PTHREADS < 7
21064         status = pthread_attr_setdetachstate(&attr, &detach);
21065         if( status < 0 ) status = errno;
21066 #else
21067         status = pthread_attr_setdetachstate(&attr, detach);
21068 #endif
21069         if( status ) return status;
21070         status = pthread_create( &t, &attr, task, NULL );
21071 #if HAVE_PTHREADS < 7
21072         if( status < 0 ) status = errno;
21073 #endif
21074         if( status ) return status;
21075 #else
21076         /* Draft 4 pthreads */
21077         status = pthread_create( &t, pthread_attr_default, task, NULL );
21078         if( status ) return errno;
21079
21080         /* give thread a chance to complete */
21081         /* it should remain joinable and hence detachable */
21082         sleep( 1 );
21083
21084         status = pthread_detach( &t );
21085         if( status ) return errno;
21086 #endif
21087
21088 #ifdef HAVE_LINUX_THREADS
21089         pthread_kill_other_threads_np();
21090 #endif
21091
21092         return 0;
21093
21094 }
21095
21096 _ACEOF
21097 rm -f conftest$ac_exeext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099   (eval $ac_link) 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104   (eval $ac_try) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; }; then
21108   ol_cv_pthread_pthread=yes
21109 else
21110   echo "$as_me: program exited with status $ac_status" >&5
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114 ( exit $ac_status )
21115 ol_cv_pthread_pthread=no
21116 fi
21117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21118 fi
21119
21120                 # restore the LIBS
21121                 LIBS="$ol_LIBS"
21122
21123 fi
21124 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21125 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21126
21127         if test $ol_cv_pthread_pthread = yes ; then
21128                 ol_link_pthreads="-pthread"
21129                 ol_link_threads=posix
21130         fi
21131 fi
21132
21133                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21134 if test "$ol_link_threads" = no ; then
21135         # try -pthreads
21136         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21137 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21138 if test "${ol_cv_pthread_pthreads+set}" = set; then
21139   echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141
21142                 # save the flags
21143                 ol_LIBS="$LIBS"
21144                 LIBS="-pthreads $LIBS"
21145
21146                 if test "$cross_compiling" = yes; then
21147   cat >conftest.$ac_ext <<_ACEOF
21148 /* confdefs.h.  */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h.  */
21153
21154 /* pthread test headers */
21155 #include <pthread.h>
21156 #if HAVE_PTHREADS < 7
21157 #include <errno.h>
21158 #endif
21159 #ifndef NULL
21160 #define NULL (void*)0
21161 #endif
21162
21163 static void *task(p)
21164         void *p;
21165 {
21166         return (void *) (p == NULL);
21167 }
21168
21169 int
21170 main ()
21171 {
21172
21173         /* pthread test function */
21174 #ifndef PTHREAD_CREATE_DETACHED
21175 #define PTHREAD_CREATE_DETACHED 1
21176 #endif
21177         pthread_t t;
21178         int status;
21179         int detach = PTHREAD_CREATE_DETACHED;
21180
21181 #if HAVE_PTHREADS > 4
21182         /* Final pthreads */
21183         pthread_attr_t attr;
21184
21185         status = pthread_attr_init(&attr);
21186         if( status ) return status;
21187
21188 #if HAVE_PTHREADS < 7
21189         status = pthread_attr_setdetachstate(&attr, &detach);
21190         if( status < 0 ) status = errno;
21191 #else
21192         status = pthread_attr_setdetachstate(&attr, detach);
21193 #endif
21194         if( status ) return status;
21195         status = pthread_create( &t, &attr, task, NULL );
21196 #if HAVE_PTHREADS < 7
21197         if( status < 0 ) status = errno;
21198 #endif
21199         if( status ) return status;
21200 #else
21201         /* Draft 4 pthreads */
21202         status = pthread_create( &t, pthread_attr_default, task, NULL );
21203         if( status ) return errno;
21204
21205         /* give thread a chance to complete */
21206         /* it should remain joinable and hence detachable */
21207         sleep( 1 );
21208
21209         status = pthread_detach( &t );
21210         if( status ) return errno;
21211 #endif
21212
21213 #ifdef HAVE_LINUX_THREADS
21214         pthread_kill_other_threads_np();
21215 #endif
21216
21217         return 0;
21218
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21225   (eval $ac_link) 2>conftest.er1
21226   ac_status=$?
21227   grep -v '^ *+' conftest.er1 >conftest.err
21228   rm -f conftest.er1
21229   cat conftest.err >&5
21230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231   (exit $ac_status); } &&
21232          { ac_try='test -z "$ac_c_werror_flag"
21233                          || test ! -s conftest.err'
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); }; } &&
21239          { ac_try='test -s conftest$ac_exeext'
21240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241   (eval $ac_try) 2>&5
21242   ac_status=$?
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); }; }; then
21245   ol_cv_pthread_pthreads=yes
21246 else
21247   echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 ol_cv_pthread_pthreads=no
21251 fi
21252 rm -f conftest.err conftest.$ac_objext \
21253       conftest$ac_exeext conftest.$ac_ext
21254 else
21255   cat >conftest.$ac_ext <<_ACEOF
21256 /* confdefs.h.  */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h.  */
21261
21262 /* pthread test headers */
21263 #include <pthread.h>
21264 #if HAVE_PTHREADS < 7
21265 #include <errno.h>
21266 #endif
21267 #ifndef NULL
21268 #define NULL (void*)0
21269 #endif
21270
21271 static void *task(p)
21272         void *p;
21273 {
21274         return (void *) (p == NULL);
21275 }
21276
21277
21278 int main(argc, argv)
21279         int argc;
21280         char **argv;
21281 {
21282
21283         /* pthread test function */
21284 #ifndef PTHREAD_CREATE_DETACHED
21285 #define PTHREAD_CREATE_DETACHED 1
21286 #endif
21287         pthread_t t;
21288         int status;
21289         int detach = PTHREAD_CREATE_DETACHED;
21290
21291 #if HAVE_PTHREADS > 4
21292         /* Final pthreads */
21293         pthread_attr_t attr;
21294
21295         status = pthread_attr_init(&attr);
21296         if( status ) return status;
21297
21298 #if HAVE_PTHREADS < 7
21299         status = pthread_attr_setdetachstate(&attr, &detach);
21300         if( status < 0 ) status = errno;
21301 #else
21302         status = pthread_attr_setdetachstate(&attr, detach);
21303 #endif
21304         if( status ) return status;
21305         status = pthread_create( &t, &attr, task, NULL );
21306 #if HAVE_PTHREADS < 7
21307         if( status < 0 ) status = errno;
21308 #endif
21309         if( status ) return status;
21310 #else
21311         /* Draft 4 pthreads */
21312         status = pthread_create( &t, pthread_attr_default, task, NULL );
21313         if( status ) return errno;
21314
21315         /* give thread a chance to complete */
21316         /* it should remain joinable and hence detachable */
21317         sleep( 1 );
21318
21319         status = pthread_detach( &t );
21320         if( status ) return errno;
21321 #endif
21322
21323 #ifdef HAVE_LINUX_THREADS
21324         pthread_kill_other_threads_np();
21325 #endif
21326
21327         return 0;
21328
21329 }
21330
21331 _ACEOF
21332 rm -f conftest$ac_exeext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334   (eval $ac_link) 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339   (eval $ac_try) 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); }; }; then
21343   ol_cv_pthread_pthreads=yes
21344 else
21345   echo "$as_me: program exited with status $ac_status" >&5
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349 ( exit $ac_status )
21350 ol_cv_pthread_pthreads=no
21351 fi
21352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21353 fi
21354
21355                 # restore the LIBS
21356                 LIBS="$ol_LIBS"
21357
21358 fi
21359 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21360 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21361
21362         if test $ol_cv_pthread_pthreads = yes ; then
21363                 ol_link_pthreads="-pthreads"
21364                 ol_link_threads=posix
21365         fi
21366 fi
21367
21368                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21369 if test "$ol_link_threads" = no ; then
21370         # try -mthreads
21371         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21372 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21373 if test "${ol_cv_pthread_mthreads+set}" = set; then
21374   echo $ECHO_N "(cached) $ECHO_C" >&6
21375 else
21376
21377                 # save the flags
21378                 ol_LIBS="$LIBS"
21379                 LIBS="-mthreads $LIBS"
21380
21381                 if test "$cross_compiling" = yes; then
21382   cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388
21389 /* pthread test headers */
21390 #include <pthread.h>
21391 #if HAVE_PTHREADS < 7
21392 #include <errno.h>
21393 #endif
21394 #ifndef NULL
21395 #define NULL (void*)0
21396 #endif
21397
21398 static void *task(p)
21399         void *p;
21400 {
21401         return (void *) (p == NULL);
21402 }
21403
21404 int
21405 main ()
21406 {
21407
21408         /* pthread test function */
21409 #ifndef PTHREAD_CREATE_DETACHED
21410 #define PTHREAD_CREATE_DETACHED 1
21411 #endif
21412         pthread_t t;
21413         int status;
21414         int detach = PTHREAD_CREATE_DETACHED;
21415
21416 #if HAVE_PTHREADS > 4
21417         /* Final pthreads */
21418         pthread_attr_t attr;
21419
21420         status = pthread_attr_init(&attr);
21421         if( status ) return status;
21422
21423 #if HAVE_PTHREADS < 7
21424         status = pthread_attr_setdetachstate(&attr, &detach);
21425         if( status < 0 ) status = errno;
21426 #else
21427         status = pthread_attr_setdetachstate(&attr, detach);
21428 #endif
21429         if( status ) return status;
21430         status = pthread_create( &t, &attr, task, NULL );
21431 #if HAVE_PTHREADS < 7
21432         if( status < 0 ) status = errno;
21433 #endif
21434         if( status ) return status;
21435 #else
21436         /* Draft 4 pthreads */
21437         status = pthread_create( &t, pthread_attr_default, task, NULL );
21438         if( status ) return errno;
21439
21440         /* give thread a chance to complete */
21441         /* it should remain joinable and hence detachable */
21442         sleep( 1 );
21443
21444         status = pthread_detach( &t );
21445         if( status ) return errno;
21446 #endif
21447
21448 #ifdef HAVE_LINUX_THREADS
21449         pthread_kill_other_threads_np();
21450 #endif
21451
21452         return 0;
21453
21454   ;
21455   return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest.$ac_objext conftest$ac_exeext
21459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21460   (eval $ac_link) 2>conftest.er1
21461   ac_status=$?
21462   grep -v '^ *+' conftest.er1 >conftest.err
21463   rm -f conftest.er1
21464   cat conftest.err >&5
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); } &&
21467          { ac_try='test -z "$ac_c_werror_flag"
21468                          || test ! -s conftest.err'
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); }; } &&
21474          { ac_try='test -s conftest$ac_exeext'
21475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476   (eval $ac_try) 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); }; }; then
21480   ol_cv_pthread_mthreads=yes
21481 else
21482   echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 ol_cv_pthread_mthreads=no
21486 fi
21487 rm -f conftest.err conftest.$ac_objext \
21488       conftest$ac_exeext conftest.$ac_ext
21489 else
21490   cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h.  */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h.  */
21496
21497 /* pthread test headers */
21498 #include <pthread.h>
21499 #if HAVE_PTHREADS < 7
21500 #include <errno.h>
21501 #endif
21502 #ifndef NULL
21503 #define NULL (void*)0
21504 #endif
21505
21506 static void *task(p)
21507         void *p;
21508 {
21509         return (void *) (p == NULL);
21510 }
21511
21512
21513 int main(argc, argv)
21514         int argc;
21515         char **argv;
21516 {
21517
21518         /* pthread test function */
21519 #ifndef PTHREAD_CREATE_DETACHED
21520 #define PTHREAD_CREATE_DETACHED 1
21521 #endif
21522         pthread_t t;
21523         int status;
21524         int detach = PTHREAD_CREATE_DETACHED;
21525
21526 #if HAVE_PTHREADS > 4
21527         /* Final pthreads */
21528         pthread_attr_t attr;
21529
21530         status = pthread_attr_init(&attr);
21531         if( status ) return status;
21532
21533 #if HAVE_PTHREADS < 7
21534         status = pthread_attr_setdetachstate(&attr, &detach);
21535         if( status < 0 ) status = errno;
21536 #else
21537         status = pthread_attr_setdetachstate(&attr, detach);
21538 #endif
21539         if( status ) return status;
21540         status = pthread_create( &t, &attr, task, NULL );
21541 #if HAVE_PTHREADS < 7
21542         if( status < 0 ) status = errno;
21543 #endif
21544         if( status ) return status;
21545 #else
21546         /* Draft 4 pthreads */
21547         status = pthread_create( &t, pthread_attr_default, task, NULL );
21548         if( status ) return errno;
21549
21550         /* give thread a chance to complete */
21551         /* it should remain joinable and hence detachable */
21552         sleep( 1 );
21553
21554         status = pthread_detach( &t );
21555         if( status ) return errno;
21556 #endif
21557
21558 #ifdef HAVE_LINUX_THREADS
21559         pthread_kill_other_threads_np();
21560 #endif
21561
21562         return 0;
21563
21564 }
21565
21566 _ACEOF
21567 rm -f conftest$ac_exeext
21568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21569   (eval $ac_link) 2>&5
21570   ac_status=$?
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574   (eval $ac_try) 2>&5
21575   ac_status=$?
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); }; }; then
21578   ol_cv_pthread_mthreads=yes
21579 else
21580   echo "$as_me: program exited with status $ac_status" >&5
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 ( exit $ac_status )
21585 ol_cv_pthread_mthreads=no
21586 fi
21587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21588 fi
21589
21590                 # restore the LIBS
21591                 LIBS="$ol_LIBS"
21592
21593 fi
21594 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21595 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21596
21597         if test $ol_cv_pthread_mthreads = yes ; then
21598                 ol_link_pthreads="-mthreads"
21599                 ol_link_threads=posix
21600         fi
21601 fi
21602
21603                 # Pthread try link: -thread (ol_cv_pthread_thread)
21604 if test "$ol_link_threads" = no ; then
21605         # try -thread
21606         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21607 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21608 if test "${ol_cv_pthread_thread+set}" = set; then
21609   echo $ECHO_N "(cached) $ECHO_C" >&6
21610 else
21611
21612                 # save the flags
21613                 ol_LIBS="$LIBS"
21614                 LIBS="-thread $LIBS"
21615
21616                 if test "$cross_compiling" = yes; then
21617   cat >conftest.$ac_ext <<_ACEOF
21618 /* confdefs.h.  */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h.  */
21623
21624 /* pthread test headers */
21625 #include <pthread.h>
21626 #if HAVE_PTHREADS < 7
21627 #include <errno.h>
21628 #endif
21629 #ifndef NULL
21630 #define NULL (void*)0
21631 #endif
21632
21633 static void *task(p)
21634         void *p;
21635 {
21636         return (void *) (p == NULL);
21637 }
21638
21639 int
21640 main ()
21641 {
21642
21643         /* pthread test function */
21644 #ifndef PTHREAD_CREATE_DETACHED
21645 #define PTHREAD_CREATE_DETACHED 1
21646 #endif
21647         pthread_t t;
21648         int status;
21649         int detach = PTHREAD_CREATE_DETACHED;
21650
21651 #if HAVE_PTHREADS > 4
21652         /* Final pthreads */
21653         pthread_attr_t attr;
21654
21655         status = pthread_attr_init(&attr);
21656         if( status ) return status;
21657
21658 #if HAVE_PTHREADS < 7
21659         status = pthread_attr_setdetachstate(&attr, &detach);
21660         if( status < 0 ) status = errno;
21661 #else
21662         status = pthread_attr_setdetachstate(&attr, detach);
21663 #endif
21664         if( status ) return status;
21665         status = pthread_create( &t, &attr, task, NULL );
21666 #if HAVE_PTHREADS < 7
21667         if( status < 0 ) status = errno;
21668 #endif
21669         if( status ) return status;
21670 #else
21671         /* Draft 4 pthreads */
21672         status = pthread_create( &t, pthread_attr_default, task, NULL );
21673         if( status ) return errno;
21674
21675         /* give thread a chance to complete */
21676         /* it should remain joinable and hence detachable */
21677         sleep( 1 );
21678
21679         status = pthread_detach( &t );
21680         if( status ) return errno;
21681 #endif
21682
21683 #ifdef HAVE_LINUX_THREADS
21684         pthread_kill_other_threads_np();
21685 #endif
21686
21687         return 0;
21688
21689   ;
21690   return 0;
21691 }
21692 _ACEOF
21693 rm -f conftest.$ac_objext conftest$ac_exeext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21695   (eval $ac_link) 2>conftest.er1
21696   ac_status=$?
21697   grep -v '^ *+' conftest.er1 >conftest.err
21698   rm -f conftest.er1
21699   cat conftest.err >&5
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); } &&
21702          { ac_try='test -z "$ac_c_werror_flag"
21703                          || test ! -s conftest.err'
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); }; } &&
21709          { ac_try='test -s conftest$ac_exeext'
21710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711   (eval $ac_try) 2>&5
21712   ac_status=$?
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); }; }; then
21715   ol_cv_pthread_thread=yes
21716 else
21717   echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21719
21720 ol_cv_pthread_thread=no
21721 fi
21722 rm -f conftest.err conftest.$ac_objext \
21723       conftest$ac_exeext conftest.$ac_ext
21724 else
21725   cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731
21732 /* pthread test headers */
21733 #include <pthread.h>
21734 #if HAVE_PTHREADS < 7
21735 #include <errno.h>
21736 #endif
21737 #ifndef NULL
21738 #define NULL (void*)0
21739 #endif
21740
21741 static void *task(p)
21742         void *p;
21743 {
21744         return (void *) (p == NULL);
21745 }
21746
21747
21748 int main(argc, argv)
21749         int argc;
21750         char **argv;
21751 {
21752
21753         /* pthread test function */
21754 #ifndef PTHREAD_CREATE_DETACHED
21755 #define PTHREAD_CREATE_DETACHED 1
21756 #endif
21757         pthread_t t;
21758         int status;
21759         int detach = PTHREAD_CREATE_DETACHED;
21760
21761 #if HAVE_PTHREADS > 4
21762         /* Final pthreads */
21763         pthread_attr_t attr;
21764
21765         status = pthread_attr_init(&attr);
21766         if( status ) return status;
21767
21768 #if HAVE_PTHREADS < 7
21769         status = pthread_attr_setdetachstate(&attr, &detach);
21770         if( status < 0 ) status = errno;
21771 #else
21772         status = pthread_attr_setdetachstate(&attr, detach);
21773 #endif
21774         if( status ) return status;
21775         status = pthread_create( &t, &attr, task, NULL );
21776 #if HAVE_PTHREADS < 7
21777         if( status < 0 ) status = errno;
21778 #endif
21779         if( status ) return status;
21780 #else
21781         /* Draft 4 pthreads */
21782         status = pthread_create( &t, pthread_attr_default, task, NULL );
21783         if( status ) return errno;
21784
21785         /* give thread a chance to complete */
21786         /* it should remain joinable and hence detachable */
21787         sleep( 1 );
21788
21789         status = pthread_detach( &t );
21790         if( status ) return errno;
21791 #endif
21792
21793 #ifdef HAVE_LINUX_THREADS
21794         pthread_kill_other_threads_np();
21795 #endif
21796
21797         return 0;
21798
21799 }
21800
21801 _ACEOF
21802 rm -f conftest$ac_exeext
21803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21804   (eval $ac_link) 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809   (eval $ac_try) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); }; }; then
21813   ol_cv_pthread_thread=yes
21814 else
21815   echo "$as_me: program exited with status $ac_status" >&5
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21818
21819 ( exit $ac_status )
21820 ol_cv_pthread_thread=no
21821 fi
21822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21823 fi
21824
21825                 # restore the LIBS
21826                 LIBS="$ol_LIBS"
21827
21828 fi
21829 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21830 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21831
21832         if test $ol_cv_pthread_thread = yes ; then
21833                 ol_link_pthreads="-thread"
21834                 ol_link_threads=posix
21835         fi
21836 fi
21837
21838
21839                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21840 if test "$ol_link_threads" = no ; then
21841         # try -lpthread -lmach -lexc -lc_r
21842         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21843 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21844 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21845   echo $ECHO_N "(cached) $ECHO_C" >&6
21846 else
21847
21848                 # save the flags
21849                 ol_LIBS="$LIBS"
21850                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21851
21852                 if test "$cross_compiling" = yes; then
21853   cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h.  */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h.  */
21859
21860 /* pthread test headers */
21861 #include <pthread.h>
21862 #if HAVE_PTHREADS < 7
21863 #include <errno.h>
21864 #endif
21865 #ifndef NULL
21866 #define NULL (void*)0
21867 #endif
21868
21869 static void *task(p)
21870         void *p;
21871 {
21872         return (void *) (p == NULL);
21873 }
21874
21875 int
21876 main ()
21877 {
21878
21879         /* pthread test function */
21880 #ifndef PTHREAD_CREATE_DETACHED
21881 #define PTHREAD_CREATE_DETACHED 1
21882 #endif
21883         pthread_t t;
21884         int status;
21885         int detach = PTHREAD_CREATE_DETACHED;
21886
21887 #if HAVE_PTHREADS > 4
21888         /* Final pthreads */
21889         pthread_attr_t attr;
21890
21891         status = pthread_attr_init(&attr);
21892         if( status ) return status;
21893
21894 #if HAVE_PTHREADS < 7
21895         status = pthread_attr_setdetachstate(&attr, &detach);
21896         if( status < 0 ) status = errno;
21897 #else
21898         status = pthread_attr_setdetachstate(&attr, detach);
21899 #endif
21900         if( status ) return status;
21901         status = pthread_create( &t, &attr, task, NULL );
21902 #if HAVE_PTHREADS < 7
21903         if( status < 0 ) status = errno;
21904 #endif
21905         if( status ) return status;
21906 #else
21907         /* Draft 4 pthreads */
21908         status = pthread_create( &t, pthread_attr_default, task, NULL );
21909         if( status ) return errno;
21910
21911         /* give thread a chance to complete */
21912         /* it should remain joinable and hence detachable */
21913         sleep( 1 );
21914
21915         status = pthread_detach( &t );
21916         if( status ) return errno;
21917 #endif
21918
21919 #ifdef HAVE_LINUX_THREADS
21920         pthread_kill_other_threads_np();
21921 #endif
21922
21923         return 0;
21924
21925   ;
21926   return 0;
21927 }
21928 _ACEOF
21929 rm -f conftest.$ac_objext conftest$ac_exeext
21930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21931   (eval $ac_link) 2>conftest.er1
21932   ac_status=$?
21933   grep -v '^ *+' conftest.er1 >conftest.err
21934   rm -f conftest.er1
21935   cat conftest.err >&5
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); } &&
21938          { ac_try='test -z "$ac_c_werror_flag"
21939                          || test ! -s conftest.err'
21940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941   (eval $ac_try) 2>&5
21942   ac_status=$?
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); }; } &&
21945          { ac_try='test -s conftest$ac_exeext'
21946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947   (eval $ac_try) 2>&5
21948   ac_status=$?
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); }; }; then
21951   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21952 else
21953   echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21955
21956 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21957 fi
21958 rm -f conftest.err conftest.$ac_objext \
21959       conftest$ac_exeext conftest.$ac_ext
21960 else
21961   cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967
21968 /* pthread test headers */
21969 #include <pthread.h>
21970 #if HAVE_PTHREADS < 7
21971 #include <errno.h>
21972 #endif
21973 #ifndef NULL
21974 #define NULL (void*)0
21975 #endif
21976
21977 static void *task(p)
21978         void *p;
21979 {
21980         return (void *) (p == NULL);
21981 }
21982
21983
21984 int main(argc, argv)
21985         int argc;
21986         char **argv;
21987 {
21988
21989         /* pthread test function */
21990 #ifndef PTHREAD_CREATE_DETACHED
21991 #define PTHREAD_CREATE_DETACHED 1
21992 #endif
21993         pthread_t t;
21994         int status;
21995         int detach = PTHREAD_CREATE_DETACHED;
21996
21997 #if HAVE_PTHREADS > 4
21998         /* Final pthreads */
21999         pthread_attr_t attr;
22000
22001         status = pthread_attr_init(&attr);
22002         if( status ) return status;
22003
22004 #if HAVE_PTHREADS < 7
22005         status = pthread_attr_setdetachstate(&attr, &detach);
22006         if( status < 0 ) status = errno;
22007 #else
22008         status = pthread_attr_setdetachstate(&attr, detach);
22009 #endif
22010         if( status ) return status;
22011         status = pthread_create( &t, &attr, task, NULL );
22012 #if HAVE_PTHREADS < 7
22013         if( status < 0 ) status = errno;
22014 #endif
22015         if( status ) return status;
22016 #else
22017         /* Draft 4 pthreads */
22018         status = pthread_create( &t, pthread_attr_default, task, NULL );
22019         if( status ) return errno;
22020
22021         /* give thread a chance to complete */
22022         /* it should remain joinable and hence detachable */
22023         sleep( 1 );
22024
22025         status = pthread_detach( &t );
22026         if( status ) return errno;
22027 #endif
22028
22029 #ifdef HAVE_LINUX_THREADS
22030         pthread_kill_other_threads_np();
22031 #endif
22032
22033         return 0;
22034
22035 }
22036
22037 _ACEOF
22038 rm -f conftest$ac_exeext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22040   (eval $ac_link) 2>&5
22041   ac_status=$?
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045   (eval $ac_try) 2>&5
22046   ac_status=$?
22047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048   (exit $ac_status); }; }; then
22049   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22050 else
22051   echo "$as_me: program exited with status $ac_status" >&5
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055 ( exit $ac_status )
22056 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22057 fi
22058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22059 fi
22060
22061                 # restore the LIBS
22062                 LIBS="$ol_LIBS"
22063
22064 fi
22065 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22066 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22067
22068         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22069                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22070                 ol_link_threads=posix
22071         fi
22072 fi
22073
22074                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22075 if test "$ol_link_threads" = no ; then
22076         # try -lpthread -lmach -lexc
22077         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22078 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22079 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22080   echo $ECHO_N "(cached) $ECHO_C" >&6
22081 else
22082
22083                 # save the flags
22084                 ol_LIBS="$LIBS"
22085                 LIBS="-lpthread -lmach -lexc $LIBS"
22086
22087                 if test "$cross_compiling" = yes; then
22088   cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h.  */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h.  */
22094
22095 /* pthread test headers */
22096 #include <pthread.h>
22097 #if HAVE_PTHREADS < 7
22098 #include <errno.h>
22099 #endif
22100 #ifndef NULL
22101 #define NULL (void*)0
22102 #endif
22103
22104 static void *task(p)
22105         void *p;
22106 {
22107         return (void *) (p == NULL);
22108 }
22109
22110 int
22111 main ()
22112 {
22113
22114         /* pthread test function */
22115 #ifndef PTHREAD_CREATE_DETACHED
22116 #define PTHREAD_CREATE_DETACHED 1
22117 #endif
22118         pthread_t t;
22119         int status;
22120         int detach = PTHREAD_CREATE_DETACHED;
22121
22122 #if HAVE_PTHREADS > 4
22123         /* Final pthreads */
22124         pthread_attr_t attr;
22125
22126         status = pthread_attr_init(&attr);
22127         if( status ) return status;
22128
22129 #if HAVE_PTHREADS < 7
22130         status = pthread_attr_setdetachstate(&attr, &detach);
22131         if( status < 0 ) status = errno;
22132 #else
22133         status = pthread_attr_setdetachstate(&attr, detach);
22134 #endif
22135         if( status ) return status;
22136         status = pthread_create( &t, &attr, task, NULL );
22137 #if HAVE_PTHREADS < 7
22138         if( status < 0 ) status = errno;
22139 #endif
22140         if( status ) return status;
22141 #else
22142         /* Draft 4 pthreads */
22143         status = pthread_create( &t, pthread_attr_default, task, NULL );
22144         if( status ) return errno;
22145
22146         /* give thread a chance to complete */
22147         /* it should remain joinable and hence detachable */
22148         sleep( 1 );
22149
22150         status = pthread_detach( &t );
22151         if( status ) return errno;
22152 #endif
22153
22154 #ifdef HAVE_LINUX_THREADS
22155         pthread_kill_other_threads_np();
22156 #endif
22157
22158         return 0;
22159
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext conftest$ac_exeext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166   (eval $ac_link) 2>conftest.er1
22167   ac_status=$?
22168   grep -v '^ *+' conftest.er1 >conftest.err
22169   rm -f conftest.er1
22170   cat conftest.err >&5
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } &&
22173          { ac_try='test -z "$ac_c_werror_flag"
22174                          || test ! -s conftest.err'
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); }; } &&
22180          { ac_try='test -s conftest$ac_exeext'
22181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182   (eval $ac_try) 2>&5
22183   ac_status=$?
22184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185   (exit $ac_status); }; }; then
22186   ol_cv_pthread_lpthread_lmach_lexc=yes
22187 else
22188   echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22190
22191 ol_cv_pthread_lpthread_lmach_lexc=no
22192 fi
22193 rm -f conftest.err conftest.$ac_objext \
22194       conftest$ac_exeext conftest.$ac_ext
22195 else
22196   cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h.  */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h.  */
22202
22203 /* pthread test headers */
22204 #include <pthread.h>
22205 #if HAVE_PTHREADS < 7
22206 #include <errno.h>
22207 #endif
22208 #ifndef NULL
22209 #define NULL (void*)0
22210 #endif
22211
22212 static void *task(p)
22213         void *p;
22214 {
22215         return (void *) (p == NULL);
22216 }
22217
22218
22219 int main(argc, argv)
22220         int argc;
22221         char **argv;
22222 {
22223
22224         /* pthread test function */
22225 #ifndef PTHREAD_CREATE_DETACHED
22226 #define PTHREAD_CREATE_DETACHED 1
22227 #endif
22228         pthread_t t;
22229         int status;
22230         int detach = PTHREAD_CREATE_DETACHED;
22231
22232 #if HAVE_PTHREADS > 4
22233         /* Final pthreads */
22234         pthread_attr_t attr;
22235
22236         status = pthread_attr_init(&attr);
22237         if( status ) return status;
22238
22239 #if HAVE_PTHREADS < 7
22240         status = pthread_attr_setdetachstate(&attr, &detach);
22241         if( status < 0 ) status = errno;
22242 #else
22243         status = pthread_attr_setdetachstate(&attr, detach);
22244 #endif
22245         if( status ) return status;
22246         status = pthread_create( &t, &attr, task, NULL );
22247 #if HAVE_PTHREADS < 7
22248         if( status < 0 ) status = errno;
22249 #endif
22250         if( status ) return status;
22251 #else
22252         /* Draft 4 pthreads */
22253         status = pthread_create( &t, pthread_attr_default, task, NULL );
22254         if( status ) return errno;
22255
22256         /* give thread a chance to complete */
22257         /* it should remain joinable and hence detachable */
22258         sleep( 1 );
22259
22260         status = pthread_detach( &t );
22261         if( status ) return errno;
22262 #endif
22263
22264 #ifdef HAVE_LINUX_THREADS
22265         pthread_kill_other_threads_np();
22266 #endif
22267
22268         return 0;
22269
22270 }
22271
22272 _ACEOF
22273 rm -f conftest$ac_exeext
22274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22275   (eval $ac_link) 2>&5
22276   ac_status=$?
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280   (eval $ac_try) 2>&5
22281   ac_status=$?
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); }; }; then
22284   ol_cv_pthread_lpthread_lmach_lexc=yes
22285 else
22286   echo "$as_me: program exited with status $ac_status" >&5
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22289
22290 ( exit $ac_status )
22291 ol_cv_pthread_lpthread_lmach_lexc=no
22292 fi
22293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22294 fi
22295
22296                 # restore the LIBS
22297                 LIBS="$ol_LIBS"
22298
22299 fi
22300 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22301 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22302
22303         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22304                 ol_link_pthreads="-lpthread -lmach -lexc"
22305                 ol_link_threads=posix
22306         fi
22307 fi
22308
22309
22310                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22311 if test "$ol_link_threads" = no ; then
22312         # try -lpthread -Wl,-woff,85
22313         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22314 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22315 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22316   echo $ECHO_N "(cached) $ECHO_C" >&6
22317 else
22318
22319                 # save the flags
22320                 ol_LIBS="$LIBS"
22321                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22322
22323                 if test "$cross_compiling" = yes; then
22324   cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h.  */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h.  */
22330
22331 /* pthread test headers */
22332 #include <pthread.h>
22333 #if HAVE_PTHREADS < 7
22334 #include <errno.h>
22335 #endif
22336 #ifndef NULL
22337 #define NULL (void*)0
22338 #endif
22339
22340 static void *task(p)
22341         void *p;
22342 {
22343         return (void *) (p == NULL);
22344 }
22345
22346 int
22347 main ()
22348 {
22349
22350         /* pthread test function */
22351 #ifndef PTHREAD_CREATE_DETACHED
22352 #define PTHREAD_CREATE_DETACHED 1
22353 #endif
22354         pthread_t t;
22355         int status;
22356         int detach = PTHREAD_CREATE_DETACHED;
22357
22358 #if HAVE_PTHREADS > 4
22359         /* Final pthreads */
22360         pthread_attr_t attr;
22361
22362         status = pthread_attr_init(&attr);
22363         if( status ) return status;
22364
22365 #if HAVE_PTHREADS < 7
22366         status = pthread_attr_setdetachstate(&attr, &detach);
22367         if( status < 0 ) status = errno;
22368 #else
22369         status = pthread_attr_setdetachstate(&attr, detach);
22370 #endif
22371         if( status ) return status;
22372         status = pthread_create( &t, &attr, task, NULL );
22373 #if HAVE_PTHREADS < 7
22374         if( status < 0 ) status = errno;
22375 #endif
22376         if( status ) return status;
22377 #else
22378         /* Draft 4 pthreads */
22379         status = pthread_create( &t, pthread_attr_default, task, NULL );
22380         if( status ) return errno;
22381
22382         /* give thread a chance to complete */
22383         /* it should remain joinable and hence detachable */
22384         sleep( 1 );
22385
22386         status = pthread_detach( &t );
22387         if( status ) return errno;
22388 #endif
22389
22390 #ifdef HAVE_LINUX_THREADS
22391         pthread_kill_other_threads_np();
22392 #endif
22393
22394         return 0;
22395
22396   ;
22397   return 0;
22398 }
22399 _ACEOF
22400 rm -f conftest.$ac_objext conftest$ac_exeext
22401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22402   (eval $ac_link) 2>conftest.er1
22403   ac_status=$?
22404   grep -v '^ *+' conftest.er1 >conftest.err
22405   rm -f conftest.er1
22406   cat conftest.err >&5
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); } &&
22409          { ac_try='test -z "$ac_c_werror_flag"
22410                          || test ! -s conftest.err'
22411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412   (eval $ac_try) 2>&5
22413   ac_status=$?
22414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415   (exit $ac_status); }; } &&
22416          { ac_try='test -s conftest$ac_exeext'
22417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22418   (eval $ac_try) 2>&5
22419   ac_status=$?
22420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421   (exit $ac_status); }; }; then
22422   ol_cv_pthread_lib_lpthread_woff=yes
22423 else
22424   echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22426
22427 ol_cv_pthread_lib_lpthread_woff=no
22428 fi
22429 rm -f conftest.err conftest.$ac_objext \
22430       conftest$ac_exeext conftest.$ac_ext
22431 else
22432   cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h.  */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h.  */
22438
22439 /* pthread test headers */
22440 #include <pthread.h>
22441 #if HAVE_PTHREADS < 7
22442 #include <errno.h>
22443 #endif
22444 #ifndef NULL
22445 #define NULL (void*)0
22446 #endif
22447
22448 static void *task(p)
22449         void *p;
22450 {
22451         return (void *) (p == NULL);
22452 }
22453
22454
22455 int main(argc, argv)
22456         int argc;
22457         char **argv;
22458 {
22459
22460         /* pthread test function */
22461 #ifndef PTHREAD_CREATE_DETACHED
22462 #define PTHREAD_CREATE_DETACHED 1
22463 #endif
22464         pthread_t t;
22465         int status;
22466         int detach = PTHREAD_CREATE_DETACHED;
22467
22468 #if HAVE_PTHREADS > 4
22469         /* Final pthreads */
22470         pthread_attr_t attr;
22471
22472         status = pthread_attr_init(&attr);
22473         if( status ) return status;
22474
22475 #if HAVE_PTHREADS < 7
22476         status = pthread_attr_setdetachstate(&attr, &detach);
22477         if( status < 0 ) status = errno;
22478 #else
22479         status = pthread_attr_setdetachstate(&attr, detach);
22480 #endif
22481         if( status ) return status;
22482         status = pthread_create( &t, &attr, task, NULL );
22483 #if HAVE_PTHREADS < 7
22484         if( status < 0 ) status = errno;
22485 #endif
22486         if( status ) return status;
22487 #else
22488         /* Draft 4 pthreads */
22489         status = pthread_create( &t, pthread_attr_default, task, NULL );
22490         if( status ) return errno;
22491
22492         /* give thread a chance to complete */
22493         /* it should remain joinable and hence detachable */
22494         sleep( 1 );
22495
22496         status = pthread_detach( &t );
22497         if( status ) return errno;
22498 #endif
22499
22500 #ifdef HAVE_LINUX_THREADS
22501         pthread_kill_other_threads_np();
22502 #endif
22503
22504         return 0;
22505
22506 }
22507
22508 _ACEOF
22509 rm -f conftest$ac_exeext
22510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22511   (eval $ac_link) 2>&5
22512   ac_status=$?
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516   (eval $ac_try) 2>&5
22517   ac_status=$?
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); }; }; then
22520   ol_cv_pthread_lib_lpthread_woff=yes
22521 else
22522   echo "$as_me: program exited with status $ac_status" >&5
22523 echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22525
22526 ( exit $ac_status )
22527 ol_cv_pthread_lib_lpthread_woff=no
22528 fi
22529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22530 fi
22531
22532                 # restore the LIBS
22533                 LIBS="$ol_LIBS"
22534
22535 fi
22536 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22537 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22538
22539         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22540                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22541                 ol_link_threads=posix
22542         fi
22543 fi
22544
22545
22546                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22547 if test "$ol_link_threads" = no ; then
22548         # try -lpthread
22549         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22550 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22551 if test "${ol_cv_pthread_lpthread+set}" = set; then
22552   echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554
22555                 # save the flags
22556                 ol_LIBS="$LIBS"
22557                 LIBS="-lpthread $LIBS"
22558
22559                 if test "$cross_compiling" = yes; then
22560   cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h.  */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h.  */
22566
22567 /* pthread test headers */
22568 #include <pthread.h>
22569 #if HAVE_PTHREADS < 7
22570 #include <errno.h>
22571 #endif
22572 #ifndef NULL
22573 #define NULL (void*)0
22574 #endif
22575
22576 static void *task(p)
22577         void *p;
22578 {
22579         return (void *) (p == NULL);
22580 }
22581
22582 int
22583 main ()
22584 {
22585
22586         /* pthread test function */
22587 #ifndef PTHREAD_CREATE_DETACHED
22588 #define PTHREAD_CREATE_DETACHED 1
22589 #endif
22590         pthread_t t;
22591         int status;
22592         int detach = PTHREAD_CREATE_DETACHED;
22593
22594 #if HAVE_PTHREADS > 4
22595         /* Final pthreads */
22596         pthread_attr_t attr;
22597
22598         status = pthread_attr_init(&attr);
22599         if( status ) return status;
22600
22601 #if HAVE_PTHREADS < 7
22602         status = pthread_attr_setdetachstate(&attr, &detach);
22603         if( status < 0 ) status = errno;
22604 #else
22605         status = pthread_attr_setdetachstate(&attr, detach);
22606 #endif
22607         if( status ) return status;
22608         status = pthread_create( &t, &attr, task, NULL );
22609 #if HAVE_PTHREADS < 7
22610         if( status < 0 ) status = errno;
22611 #endif
22612         if( status ) return status;
22613 #else
22614         /* Draft 4 pthreads */
22615         status = pthread_create( &t, pthread_attr_default, task, NULL );
22616         if( status ) return errno;
22617
22618         /* give thread a chance to complete */
22619         /* it should remain joinable and hence detachable */
22620         sleep( 1 );
22621
22622         status = pthread_detach( &t );
22623         if( status ) return errno;
22624 #endif
22625
22626 #ifdef HAVE_LINUX_THREADS
22627         pthread_kill_other_threads_np();
22628 #endif
22629
22630         return 0;
22631
22632   ;
22633   return 0;
22634 }
22635 _ACEOF
22636 rm -f conftest.$ac_objext conftest$ac_exeext
22637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22638   (eval $ac_link) 2>conftest.er1
22639   ac_status=$?
22640   grep -v '^ *+' conftest.er1 >conftest.err
22641   rm -f conftest.er1
22642   cat conftest.err >&5
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); } &&
22645          { ac_try='test -z "$ac_c_werror_flag"
22646                          || test ! -s conftest.err'
22647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648   (eval $ac_try) 2>&5
22649   ac_status=$?
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); }; } &&
22652          { ac_try='test -s conftest$ac_exeext'
22653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654   (eval $ac_try) 2>&5
22655   ac_status=$?
22656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657   (exit $ac_status); }; }; then
22658   ol_cv_pthread_lpthread=yes
22659 else
22660   echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22662
22663 ol_cv_pthread_lpthread=no
22664 fi
22665 rm -f conftest.err conftest.$ac_objext \
22666       conftest$ac_exeext conftest.$ac_ext
22667 else
22668   cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h.  */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h.  */
22674
22675 /* pthread test headers */
22676 #include <pthread.h>
22677 #if HAVE_PTHREADS < 7
22678 #include <errno.h>
22679 #endif
22680 #ifndef NULL
22681 #define NULL (void*)0
22682 #endif
22683
22684 static void *task(p)
22685         void *p;
22686 {
22687         return (void *) (p == NULL);
22688 }
22689
22690
22691 int main(argc, argv)
22692         int argc;
22693         char **argv;
22694 {
22695
22696         /* pthread test function */
22697 #ifndef PTHREAD_CREATE_DETACHED
22698 #define PTHREAD_CREATE_DETACHED 1
22699 #endif
22700         pthread_t t;
22701         int status;
22702         int detach = PTHREAD_CREATE_DETACHED;
22703
22704 #if HAVE_PTHREADS > 4
22705         /* Final pthreads */
22706         pthread_attr_t attr;
22707
22708         status = pthread_attr_init(&attr);
22709         if( status ) return status;
22710
22711 #if HAVE_PTHREADS < 7
22712         status = pthread_attr_setdetachstate(&attr, &detach);
22713         if( status < 0 ) status = errno;
22714 #else
22715         status = pthread_attr_setdetachstate(&attr, detach);
22716 #endif
22717         if( status ) return status;
22718         status = pthread_create( &t, &attr, task, NULL );
22719 #if HAVE_PTHREADS < 7
22720         if( status < 0 ) status = errno;
22721 #endif
22722         if( status ) return status;
22723 #else
22724         /* Draft 4 pthreads */
22725         status = pthread_create( &t, pthread_attr_default, task, NULL );
22726         if( status ) return errno;
22727
22728         /* give thread a chance to complete */
22729         /* it should remain joinable and hence detachable */
22730         sleep( 1 );
22731
22732         status = pthread_detach( &t );
22733         if( status ) return errno;
22734 #endif
22735
22736 #ifdef HAVE_LINUX_THREADS
22737         pthread_kill_other_threads_np();
22738 #endif
22739
22740         return 0;
22741
22742 }
22743
22744 _ACEOF
22745 rm -f conftest$ac_exeext
22746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22747   (eval $ac_link) 2>&5
22748   ac_status=$?
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752   (eval $ac_try) 2>&5
22753   ac_status=$?
22754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755   (exit $ac_status); }; }; then
22756   ol_cv_pthread_lpthread=yes
22757 else
22758   echo "$as_me: program exited with status $ac_status" >&5
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762 ( exit $ac_status )
22763 ol_cv_pthread_lpthread=no
22764 fi
22765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22766 fi
22767
22768                 # restore the LIBS
22769                 LIBS="$ol_LIBS"
22770
22771 fi
22772 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22773 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22774
22775         if test $ol_cv_pthread_lpthread = yes ; then
22776                 ol_link_pthreads="-lpthread"
22777                 ol_link_threads=posix
22778         fi
22779 fi
22780
22781                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22782 if test "$ol_link_threads" = no ; then
22783         # try -lc_r
22784         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22785 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22786 if test "${ol_cv_pthread_lc_r+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789
22790                 # save the flags
22791                 ol_LIBS="$LIBS"
22792                 LIBS="-lc_r $LIBS"
22793
22794                 if test "$cross_compiling" = yes; then
22795   cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801
22802 /* pthread test headers */
22803 #include <pthread.h>
22804 #if HAVE_PTHREADS < 7
22805 #include <errno.h>
22806 #endif
22807 #ifndef NULL
22808 #define NULL (void*)0
22809 #endif
22810
22811 static void *task(p)
22812         void *p;
22813 {
22814         return (void *) (p == NULL);
22815 }
22816
22817 int
22818 main ()
22819 {
22820
22821         /* pthread test function */
22822 #ifndef PTHREAD_CREATE_DETACHED
22823 #define PTHREAD_CREATE_DETACHED 1
22824 #endif
22825         pthread_t t;
22826         int status;
22827         int detach = PTHREAD_CREATE_DETACHED;
22828
22829 #if HAVE_PTHREADS > 4
22830         /* Final pthreads */
22831         pthread_attr_t attr;
22832
22833         status = pthread_attr_init(&attr);
22834         if( status ) return status;
22835
22836 #if HAVE_PTHREADS < 7
22837         status = pthread_attr_setdetachstate(&attr, &detach);
22838         if( status < 0 ) status = errno;
22839 #else
22840         status = pthread_attr_setdetachstate(&attr, detach);
22841 #endif
22842         if( status ) return status;
22843         status = pthread_create( &t, &attr, task, NULL );
22844 #if HAVE_PTHREADS < 7
22845         if( status < 0 ) status = errno;
22846 #endif
22847         if( status ) return status;
22848 #else
22849         /* Draft 4 pthreads */
22850         status = pthread_create( &t, pthread_attr_default, task, NULL );
22851         if( status ) return errno;
22852
22853         /* give thread a chance to complete */
22854         /* it should remain joinable and hence detachable */
22855         sleep( 1 );
22856
22857         status = pthread_detach( &t );
22858         if( status ) return errno;
22859 #endif
22860
22861 #ifdef HAVE_LINUX_THREADS
22862         pthread_kill_other_threads_np();
22863 #endif
22864
22865         return 0;
22866
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext conftest$ac_exeext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22873   (eval $ac_link) 2>conftest.er1
22874   ac_status=$?
22875   grep -v '^ *+' conftest.er1 >conftest.err
22876   rm -f conftest.er1
22877   cat conftest.err >&5
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); } &&
22880          { ac_try='test -z "$ac_c_werror_flag"
22881                          || test ! -s conftest.err'
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); }; } &&
22887          { ac_try='test -s conftest$ac_exeext'
22888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889   (eval $ac_try) 2>&5
22890   ac_status=$?
22891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); }; }; then
22893   ol_cv_pthread_lc_r=yes
22894 else
22895   echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898 ol_cv_pthread_lc_r=no
22899 fi
22900 rm -f conftest.err conftest.$ac_objext \
22901       conftest$ac_exeext conftest.$ac_ext
22902 else
22903   cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h.  */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h.  */
22909
22910 /* pthread test headers */
22911 #include <pthread.h>
22912 #if HAVE_PTHREADS < 7
22913 #include <errno.h>
22914 #endif
22915 #ifndef NULL
22916 #define NULL (void*)0
22917 #endif
22918
22919 static void *task(p)
22920         void *p;
22921 {
22922         return (void *) (p == NULL);
22923 }
22924
22925
22926 int main(argc, argv)
22927         int argc;
22928         char **argv;
22929 {
22930
22931         /* pthread test function */
22932 #ifndef PTHREAD_CREATE_DETACHED
22933 #define PTHREAD_CREATE_DETACHED 1
22934 #endif
22935         pthread_t t;
22936         int status;
22937         int detach = PTHREAD_CREATE_DETACHED;
22938
22939 #if HAVE_PTHREADS > 4
22940         /* Final pthreads */
22941         pthread_attr_t attr;
22942
22943         status = pthread_attr_init(&attr);
22944         if( status ) return status;
22945
22946 #if HAVE_PTHREADS < 7
22947         status = pthread_attr_setdetachstate(&attr, &detach);
22948         if( status < 0 ) status = errno;
22949 #else
22950         status = pthread_attr_setdetachstate(&attr, detach);
22951 #endif
22952         if( status ) return status;
22953         status = pthread_create( &t, &attr, task, NULL );
22954 #if HAVE_PTHREADS < 7
22955         if( status < 0 ) status = errno;
22956 #endif
22957         if( status ) return status;
22958 #else
22959         /* Draft 4 pthreads */
22960         status = pthread_create( &t, pthread_attr_default, task, NULL );
22961         if( status ) return errno;
22962
22963         /* give thread a chance to complete */
22964         /* it should remain joinable and hence detachable */
22965         sleep( 1 );
22966
22967         status = pthread_detach( &t );
22968         if( status ) return errno;
22969 #endif
22970
22971 #ifdef HAVE_LINUX_THREADS
22972         pthread_kill_other_threads_np();
22973 #endif
22974
22975         return 0;
22976
22977 }
22978
22979 _ACEOF
22980 rm -f conftest$ac_exeext
22981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22982   (eval $ac_link) 2>&5
22983   ac_status=$?
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987   (eval $ac_try) 2>&5
22988   ac_status=$?
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); }; }; then
22991   ol_cv_pthread_lc_r=yes
22992 else
22993   echo "$as_me: program exited with status $ac_status" >&5
22994 echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22996
22997 ( exit $ac_status )
22998 ol_cv_pthread_lc_r=no
22999 fi
23000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23001 fi
23002
23003                 # restore the LIBS
23004                 LIBS="$ol_LIBS"
23005
23006 fi
23007 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23008 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23009
23010         if test $ol_cv_pthread_lc_r = yes ; then
23011                 ol_link_pthreads="-lc_r"
23012                 ol_link_threads=posix
23013         fi
23014 fi
23015
23016
23017                 # Pthread try link: -threads (ol_cv_pthread_threads)
23018 if test "$ol_link_threads" = no ; then
23019         # try -threads
23020         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23021 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23022 if test "${ol_cv_pthread_threads+set}" = set; then
23023   echo $ECHO_N "(cached) $ECHO_C" >&6
23024 else
23025
23026                 # save the flags
23027                 ol_LIBS="$LIBS"
23028                 LIBS="-threads $LIBS"
23029
23030                 if test "$cross_compiling" = yes; then
23031   cat >conftest.$ac_ext <<_ACEOF
23032 /* confdefs.h.  */
23033 _ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h.  */
23037
23038 /* pthread test headers */
23039 #include <pthread.h>
23040 #if HAVE_PTHREADS < 7
23041 #include <errno.h>
23042 #endif
23043 #ifndef NULL
23044 #define NULL (void*)0
23045 #endif
23046
23047 static void *task(p)
23048         void *p;
23049 {
23050         return (void *) (p == NULL);
23051 }
23052
23053 int
23054 main ()
23055 {
23056
23057         /* pthread test function */
23058 #ifndef PTHREAD_CREATE_DETACHED
23059 #define PTHREAD_CREATE_DETACHED 1
23060 #endif
23061         pthread_t t;
23062         int status;
23063         int detach = PTHREAD_CREATE_DETACHED;
23064
23065 #if HAVE_PTHREADS > 4
23066         /* Final pthreads */
23067         pthread_attr_t attr;
23068
23069         status = pthread_attr_init(&attr);
23070         if( status ) return status;
23071
23072 #if HAVE_PTHREADS < 7
23073         status = pthread_attr_setdetachstate(&attr, &detach);
23074         if( status < 0 ) status = errno;
23075 #else
23076         status = pthread_attr_setdetachstate(&attr, detach);
23077 #endif
23078         if( status ) return status;
23079         status = pthread_create( &t, &attr, task, NULL );
23080 #if HAVE_PTHREADS < 7
23081         if( status < 0 ) status = errno;
23082 #endif
23083         if( status ) return status;
23084 #else
23085         /* Draft 4 pthreads */
23086         status = pthread_create( &t, pthread_attr_default, task, NULL );
23087         if( status ) return errno;
23088
23089         /* give thread a chance to complete */
23090         /* it should remain joinable and hence detachable */
23091         sleep( 1 );
23092
23093         status = pthread_detach( &t );
23094         if( status ) return errno;
23095 #endif
23096
23097 #ifdef HAVE_LINUX_THREADS
23098         pthread_kill_other_threads_np();
23099 #endif
23100
23101         return 0;
23102
23103   ;
23104   return 0;
23105 }
23106 _ACEOF
23107 rm -f conftest.$ac_objext conftest$ac_exeext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109   (eval $ac_link) 2>conftest.er1
23110   ac_status=$?
23111   grep -v '^ *+' conftest.er1 >conftest.err
23112   rm -f conftest.er1
23113   cat conftest.err >&5
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); } &&
23116          { ac_try='test -z "$ac_c_werror_flag"
23117                          || test ! -s conftest.err'
23118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119   (eval $ac_try) 2>&5
23120   ac_status=$?
23121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122   (exit $ac_status); }; } &&
23123          { ac_try='test -s conftest$ac_exeext'
23124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125   (eval $ac_try) 2>&5
23126   ac_status=$?
23127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128   (exit $ac_status); }; }; then
23129   ol_cv_pthread_threads=yes
23130 else
23131   echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23133
23134 ol_cv_pthread_threads=no
23135 fi
23136 rm -f conftest.err conftest.$ac_objext \
23137       conftest$ac_exeext conftest.$ac_ext
23138 else
23139   cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145
23146 /* pthread test headers */
23147 #include <pthread.h>
23148 #if HAVE_PTHREADS < 7
23149 #include <errno.h>
23150 #endif
23151 #ifndef NULL
23152 #define NULL (void*)0
23153 #endif
23154
23155 static void *task(p)
23156         void *p;
23157 {
23158         return (void *) (p == NULL);
23159 }
23160
23161
23162 int main(argc, argv)
23163         int argc;
23164         char **argv;
23165 {
23166
23167         /* pthread test function */
23168 #ifndef PTHREAD_CREATE_DETACHED
23169 #define PTHREAD_CREATE_DETACHED 1
23170 #endif
23171         pthread_t t;
23172         int status;
23173         int detach = PTHREAD_CREATE_DETACHED;
23174
23175 #if HAVE_PTHREADS > 4
23176         /* Final pthreads */
23177         pthread_attr_t attr;
23178
23179         status = pthread_attr_init(&attr);
23180         if( status ) return status;
23181
23182 #if HAVE_PTHREADS < 7
23183         status = pthread_attr_setdetachstate(&attr, &detach);
23184         if( status < 0 ) status = errno;
23185 #else
23186         status = pthread_attr_setdetachstate(&attr, detach);
23187 #endif
23188         if( status ) return status;
23189         status = pthread_create( &t, &attr, task, NULL );
23190 #if HAVE_PTHREADS < 7
23191         if( status < 0 ) status = errno;
23192 #endif
23193         if( status ) return status;
23194 #else
23195         /* Draft 4 pthreads */
23196         status = pthread_create( &t, pthread_attr_default, task, NULL );
23197         if( status ) return errno;
23198
23199         /* give thread a chance to complete */
23200         /* it should remain joinable and hence detachable */
23201         sleep( 1 );
23202
23203         status = pthread_detach( &t );
23204         if( status ) return errno;
23205 #endif
23206
23207 #ifdef HAVE_LINUX_THREADS
23208         pthread_kill_other_threads_np();
23209 #endif
23210
23211         return 0;
23212
23213 }
23214
23215 _ACEOF
23216 rm -f conftest$ac_exeext
23217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23218   (eval $ac_link) 2>&5
23219   ac_status=$?
23220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223   (eval $ac_try) 2>&5
23224   ac_status=$?
23225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226   (exit $ac_status); }; }; then
23227   ol_cv_pthread_threads=yes
23228 else
23229   echo "$as_me: program exited with status $ac_status" >&5
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 ( exit $ac_status )
23234 ol_cv_pthread_threads=no
23235 fi
23236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23237 fi
23238
23239                 # restore the LIBS
23240                 LIBS="$ol_LIBS"
23241
23242 fi
23243 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23244 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23245
23246         if test $ol_cv_pthread_threads = yes ; then
23247                 ol_link_pthreads="-threads"
23248                 ol_link_threads=posix
23249         fi
23250 fi
23251
23252
23253                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23254 if test "$ol_link_threads" = no ; then
23255         # try -lpthreads -lmach -lexc -lc_r
23256         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23257 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23258 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23259   echo $ECHO_N "(cached) $ECHO_C" >&6
23260 else
23261
23262                 # save the flags
23263                 ol_LIBS="$LIBS"
23264                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23265
23266                 if test "$cross_compiling" = yes; then
23267   cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h.  */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h.  */
23273
23274 /* pthread test headers */
23275 #include <pthread.h>
23276 #if HAVE_PTHREADS < 7
23277 #include <errno.h>
23278 #endif
23279 #ifndef NULL
23280 #define NULL (void*)0
23281 #endif
23282
23283 static void *task(p)
23284         void *p;
23285 {
23286         return (void *) (p == NULL);
23287 }
23288
23289 int
23290 main ()
23291 {
23292
23293         /* pthread test function */
23294 #ifndef PTHREAD_CREATE_DETACHED
23295 #define PTHREAD_CREATE_DETACHED 1
23296 #endif
23297         pthread_t t;
23298         int status;
23299         int detach = PTHREAD_CREATE_DETACHED;
23300
23301 #if HAVE_PTHREADS > 4
23302         /* Final pthreads */
23303         pthread_attr_t attr;
23304
23305         status = pthread_attr_init(&attr);
23306         if( status ) return status;
23307
23308 #if HAVE_PTHREADS < 7
23309         status = pthread_attr_setdetachstate(&attr, &detach);
23310         if( status < 0 ) status = errno;
23311 #else
23312         status = pthread_attr_setdetachstate(&attr, detach);
23313 #endif
23314         if( status ) return status;
23315         status = pthread_create( &t, &attr, task, NULL );
23316 #if HAVE_PTHREADS < 7
23317         if( status < 0 ) status = errno;
23318 #endif
23319         if( status ) return status;
23320 #else
23321         /* Draft 4 pthreads */
23322         status = pthread_create( &t, pthread_attr_default, task, NULL );
23323         if( status ) return errno;
23324
23325         /* give thread a chance to complete */
23326         /* it should remain joinable and hence detachable */
23327         sleep( 1 );
23328
23329         status = pthread_detach( &t );
23330         if( status ) return errno;
23331 #endif
23332
23333 #ifdef HAVE_LINUX_THREADS
23334         pthread_kill_other_threads_np();
23335 #endif
23336
23337         return 0;
23338
23339   ;
23340   return 0;
23341 }
23342 _ACEOF
23343 rm -f conftest.$ac_objext conftest$ac_exeext
23344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23345   (eval $ac_link) 2>conftest.er1
23346   ac_status=$?
23347   grep -v '^ *+' conftest.er1 >conftest.err
23348   rm -f conftest.er1
23349   cat conftest.err >&5
23350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351   (exit $ac_status); } &&
23352          { ac_try='test -z "$ac_c_werror_flag"
23353                          || test ! -s conftest.err'
23354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23355   (eval $ac_try) 2>&5
23356   ac_status=$?
23357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); }; } &&
23359          { ac_try='test -s conftest$ac_exeext'
23360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361   (eval $ac_try) 2>&5
23362   ac_status=$?
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); }; }; then
23365   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23366 else
23367   echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23369
23370 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23371 fi
23372 rm -f conftest.err conftest.$ac_objext \
23373       conftest$ac_exeext conftest.$ac_ext
23374 else
23375   cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381
23382 /* pthread test headers */
23383 #include <pthread.h>
23384 #if HAVE_PTHREADS < 7
23385 #include <errno.h>
23386 #endif
23387 #ifndef NULL
23388 #define NULL (void*)0
23389 #endif
23390
23391 static void *task(p)
23392         void *p;
23393 {
23394         return (void *) (p == NULL);
23395 }
23396
23397
23398 int main(argc, argv)
23399         int argc;
23400         char **argv;
23401 {
23402
23403         /* pthread test function */
23404 #ifndef PTHREAD_CREATE_DETACHED
23405 #define PTHREAD_CREATE_DETACHED 1
23406 #endif
23407         pthread_t t;
23408         int status;
23409         int detach = PTHREAD_CREATE_DETACHED;
23410
23411 #if HAVE_PTHREADS > 4
23412         /* Final pthreads */
23413         pthread_attr_t attr;
23414
23415         status = pthread_attr_init(&attr);
23416         if( status ) return status;
23417
23418 #if HAVE_PTHREADS < 7
23419         status = pthread_attr_setdetachstate(&attr, &detach);
23420         if( status < 0 ) status = errno;
23421 #else
23422         status = pthread_attr_setdetachstate(&attr, detach);
23423 #endif
23424         if( status ) return status;
23425         status = pthread_create( &t, &attr, task, NULL );
23426 #if HAVE_PTHREADS < 7
23427         if( status < 0 ) status = errno;
23428 #endif
23429         if( status ) return status;
23430 #else
23431         /* Draft 4 pthreads */
23432         status = pthread_create( &t, pthread_attr_default, task, NULL );
23433         if( status ) return errno;
23434
23435         /* give thread a chance to complete */
23436         /* it should remain joinable and hence detachable */
23437         sleep( 1 );
23438
23439         status = pthread_detach( &t );
23440         if( status ) return errno;
23441 #endif
23442
23443 #ifdef HAVE_LINUX_THREADS
23444         pthread_kill_other_threads_np();
23445 #endif
23446
23447         return 0;
23448
23449 }
23450
23451 _ACEOF
23452 rm -f conftest$ac_exeext
23453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23454   (eval $ac_link) 2>&5
23455   ac_status=$?
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459   (eval $ac_try) 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); }; }; then
23463   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23464 else
23465   echo "$as_me: program exited with status $ac_status" >&5
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23468
23469 ( exit $ac_status )
23470 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23471 fi
23472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23473 fi
23474
23475                 # restore the LIBS
23476                 LIBS="$ol_LIBS"
23477
23478 fi
23479 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23480 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23481
23482         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23483                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23484                 ol_link_threads=posix
23485         fi
23486 fi
23487
23488                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23489 if test "$ol_link_threads" = no ; then
23490         # try -lpthreads -lmach -lexc
23491         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23492 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23493 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23494   echo $ECHO_N "(cached) $ECHO_C" >&6
23495 else
23496
23497                 # save the flags
23498                 ol_LIBS="$LIBS"
23499                 LIBS="-lpthreads -lmach -lexc $LIBS"
23500
23501                 if test "$cross_compiling" = yes; then
23502   cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h.  */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h.  */
23508
23509 /* pthread test headers */
23510 #include <pthread.h>
23511 #if HAVE_PTHREADS < 7
23512 #include <errno.h>
23513 #endif
23514 #ifndef NULL
23515 #define NULL (void*)0
23516 #endif
23517
23518 static void *task(p)
23519         void *p;
23520 {
23521         return (void *) (p == NULL);
23522 }
23523
23524 int
23525 main ()
23526 {
23527
23528         /* pthread test function */
23529 #ifndef PTHREAD_CREATE_DETACHED
23530 #define PTHREAD_CREATE_DETACHED 1
23531 #endif
23532         pthread_t t;
23533         int status;
23534         int detach = PTHREAD_CREATE_DETACHED;
23535
23536 #if HAVE_PTHREADS > 4
23537         /* Final pthreads */
23538         pthread_attr_t attr;
23539
23540         status = pthread_attr_init(&attr);
23541         if( status ) return status;
23542
23543 #if HAVE_PTHREADS < 7
23544         status = pthread_attr_setdetachstate(&attr, &detach);
23545         if( status < 0 ) status = errno;
23546 #else
23547         status = pthread_attr_setdetachstate(&attr, detach);
23548 #endif
23549         if( status ) return status;
23550         status = pthread_create( &t, &attr, task, NULL );
23551 #if HAVE_PTHREADS < 7
23552         if( status < 0 ) status = errno;
23553 #endif
23554         if( status ) return status;
23555 #else
23556         /* Draft 4 pthreads */
23557         status = pthread_create( &t, pthread_attr_default, task, NULL );
23558         if( status ) return errno;
23559
23560         /* give thread a chance to complete */
23561         /* it should remain joinable and hence detachable */
23562         sleep( 1 );
23563
23564         status = pthread_detach( &t );
23565         if( status ) return errno;
23566 #endif
23567
23568 #ifdef HAVE_LINUX_THREADS
23569         pthread_kill_other_threads_np();
23570 #endif
23571
23572         return 0;
23573
23574   ;
23575   return 0;
23576 }
23577 _ACEOF
23578 rm -f conftest.$ac_objext conftest$ac_exeext
23579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23580   (eval $ac_link) 2>conftest.er1
23581   ac_status=$?
23582   grep -v '^ *+' conftest.er1 >conftest.err
23583   rm -f conftest.er1
23584   cat conftest.err >&5
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } &&
23587          { ac_try='test -z "$ac_c_werror_flag"
23588                          || test ! -s conftest.err'
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); }; } &&
23594          { ac_try='test -s conftest$ac_exeext'
23595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596   (eval $ac_try) 2>&5
23597   ac_status=$?
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); }; }; then
23600   ol_cv_pthread_lpthreads_lmach_lexc=yes
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605 ol_cv_pthread_lpthreads_lmach_lexc=no
23606 fi
23607 rm -f conftest.err conftest.$ac_objext \
23608       conftest$ac_exeext conftest.$ac_ext
23609 else
23610   cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616
23617 /* pthread test headers */
23618 #include <pthread.h>
23619 #if HAVE_PTHREADS < 7
23620 #include <errno.h>
23621 #endif
23622 #ifndef NULL
23623 #define NULL (void*)0
23624 #endif
23625
23626 static void *task(p)
23627         void *p;
23628 {
23629         return (void *) (p == NULL);
23630 }
23631
23632
23633 int main(argc, argv)
23634         int argc;
23635         char **argv;
23636 {
23637
23638         /* pthread test function */
23639 #ifndef PTHREAD_CREATE_DETACHED
23640 #define PTHREAD_CREATE_DETACHED 1
23641 #endif
23642         pthread_t t;
23643         int status;
23644         int detach = PTHREAD_CREATE_DETACHED;
23645
23646 #if HAVE_PTHREADS > 4
23647         /* Final pthreads */
23648         pthread_attr_t attr;
23649
23650         status = pthread_attr_init(&attr);
23651         if( status ) return status;
23652
23653 #if HAVE_PTHREADS < 7
23654         status = pthread_attr_setdetachstate(&attr, &detach);
23655         if( status < 0 ) status = errno;
23656 #else
23657         status = pthread_attr_setdetachstate(&attr, detach);
23658 #endif
23659         if( status ) return status;
23660         status = pthread_create( &t, &attr, task, NULL );
23661 #if HAVE_PTHREADS < 7
23662         if( status < 0 ) status = errno;
23663 #endif
23664         if( status ) return status;
23665 #else
23666         /* Draft 4 pthreads */
23667         status = pthread_create( &t, pthread_attr_default, task, NULL );
23668         if( status ) return errno;
23669
23670         /* give thread a chance to complete */
23671         /* it should remain joinable and hence detachable */
23672         sleep( 1 );
23673
23674         status = pthread_detach( &t );
23675         if( status ) return errno;
23676 #endif
23677
23678 #ifdef HAVE_LINUX_THREADS
23679         pthread_kill_other_threads_np();
23680 #endif
23681
23682         return 0;
23683
23684 }
23685
23686 _ACEOF
23687 rm -f conftest$ac_exeext
23688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23689   (eval $ac_link) 2>&5
23690   ac_status=$?
23691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694   (eval $ac_try) 2>&5
23695   ac_status=$?
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); }; }; then
23698   ol_cv_pthread_lpthreads_lmach_lexc=yes
23699 else
23700   echo "$as_me: program exited with status $ac_status" >&5
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23703
23704 ( exit $ac_status )
23705 ol_cv_pthread_lpthreads_lmach_lexc=no
23706 fi
23707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23708 fi
23709
23710                 # restore the LIBS
23711                 LIBS="$ol_LIBS"
23712
23713 fi
23714 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23715 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23716
23717         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23718                 ol_link_pthreads="-lpthreads -lmach -lexc"
23719                 ol_link_threads=posix
23720         fi
23721 fi
23722
23723                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23724 if test "$ol_link_threads" = no ; then
23725         # try -lpthreads -lexc
23726         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23727 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23728 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23729   echo $ECHO_N "(cached) $ECHO_C" >&6
23730 else
23731
23732                 # save the flags
23733                 ol_LIBS="$LIBS"
23734                 LIBS="-lpthreads -lexc $LIBS"
23735
23736                 if test "$cross_compiling" = yes; then
23737   cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h.  */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h.  */
23743
23744 /* pthread test headers */
23745 #include <pthread.h>
23746 #if HAVE_PTHREADS < 7
23747 #include <errno.h>
23748 #endif
23749 #ifndef NULL
23750 #define NULL (void*)0
23751 #endif
23752
23753 static void *task(p)
23754         void *p;
23755 {
23756         return (void *) (p == NULL);
23757 }
23758
23759 int
23760 main ()
23761 {
23762
23763         /* pthread test function */
23764 #ifndef PTHREAD_CREATE_DETACHED
23765 #define PTHREAD_CREATE_DETACHED 1
23766 #endif
23767         pthread_t t;
23768         int status;
23769         int detach = PTHREAD_CREATE_DETACHED;
23770
23771 #if HAVE_PTHREADS > 4
23772         /* Final pthreads */
23773         pthread_attr_t attr;
23774
23775         status = pthread_attr_init(&attr);
23776         if( status ) return status;
23777
23778 #if HAVE_PTHREADS < 7
23779         status = pthread_attr_setdetachstate(&attr, &detach);
23780         if( status < 0 ) status = errno;
23781 #else
23782         status = pthread_attr_setdetachstate(&attr, detach);
23783 #endif
23784         if( status ) return status;
23785         status = pthread_create( &t, &attr, task, NULL );
23786 #if HAVE_PTHREADS < 7
23787         if( status < 0 ) status = errno;
23788 #endif
23789         if( status ) return status;
23790 #else
23791         /* Draft 4 pthreads */
23792         status = pthread_create( &t, pthread_attr_default, task, NULL );
23793         if( status ) return errno;
23794
23795         /* give thread a chance to complete */
23796         /* it should remain joinable and hence detachable */
23797         sleep( 1 );
23798
23799         status = pthread_detach( &t );
23800         if( status ) return errno;
23801 #endif
23802
23803 #ifdef HAVE_LINUX_THREADS
23804         pthread_kill_other_threads_np();
23805 #endif
23806
23807         return 0;
23808
23809   ;
23810   return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext conftest$ac_exeext
23814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23815   (eval $ac_link) 2>conftest.er1
23816   ac_status=$?
23817   grep -v '^ *+' conftest.er1 >conftest.err
23818   rm -f conftest.er1
23819   cat conftest.err >&5
23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821   (exit $ac_status); } &&
23822          { ac_try='test -z "$ac_c_werror_flag"
23823                          || test ! -s conftest.err'
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); }; } &&
23829          { ac_try='test -s conftest$ac_exeext'
23830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831   (eval $ac_try) 2>&5
23832   ac_status=$?
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); }; }; then
23835   ol_cv_pthread_lpthreads_lexc=yes
23836 else
23837   echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840 ol_cv_pthread_lpthreads_lexc=no
23841 fi
23842 rm -f conftest.err conftest.$ac_objext \
23843       conftest$ac_exeext conftest.$ac_ext
23844 else
23845   cat >conftest.$ac_ext <<_ACEOF
23846 /* confdefs.h.  */
23847 _ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h.  */
23851
23852 /* pthread test headers */
23853 #include <pthread.h>
23854 #if HAVE_PTHREADS < 7
23855 #include <errno.h>
23856 #endif
23857 #ifndef NULL
23858 #define NULL (void*)0
23859 #endif
23860
23861 static void *task(p)
23862         void *p;
23863 {
23864         return (void *) (p == NULL);
23865 }
23866
23867
23868 int main(argc, argv)
23869         int argc;
23870         char **argv;
23871 {
23872
23873         /* pthread test function */
23874 #ifndef PTHREAD_CREATE_DETACHED
23875 #define PTHREAD_CREATE_DETACHED 1
23876 #endif
23877         pthread_t t;
23878         int status;
23879         int detach = PTHREAD_CREATE_DETACHED;
23880
23881 #if HAVE_PTHREADS > 4
23882         /* Final pthreads */
23883         pthread_attr_t attr;
23884
23885         status = pthread_attr_init(&attr);
23886         if( status ) return status;
23887
23888 #if HAVE_PTHREADS < 7
23889         status = pthread_attr_setdetachstate(&attr, &detach);
23890         if( status < 0 ) status = errno;
23891 #else
23892         status = pthread_attr_setdetachstate(&attr, detach);
23893 #endif
23894         if( status ) return status;
23895         status = pthread_create( &t, &attr, task, NULL );
23896 #if HAVE_PTHREADS < 7
23897         if( status < 0 ) status = errno;
23898 #endif
23899         if( status ) return status;
23900 #else
23901         /* Draft 4 pthreads */
23902         status = pthread_create( &t, pthread_attr_default, task, NULL );
23903         if( status ) return errno;
23904
23905         /* give thread a chance to complete */
23906         /* it should remain joinable and hence detachable */
23907         sleep( 1 );
23908
23909         status = pthread_detach( &t );
23910         if( status ) return errno;
23911 #endif
23912
23913 #ifdef HAVE_LINUX_THREADS
23914         pthread_kill_other_threads_np();
23915 #endif
23916
23917         return 0;
23918
23919 }
23920
23921 _ACEOF
23922 rm -f conftest$ac_exeext
23923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23924   (eval $ac_link) 2>&5
23925   ac_status=$?
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929   (eval $ac_try) 2>&5
23930   ac_status=$?
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); }; }; then
23933   ol_cv_pthread_lpthreads_lexc=yes
23934 else
23935   echo "$as_me: program exited with status $ac_status" >&5
23936 echo "$as_me: failed program was:" >&5
23937 sed 's/^/| /' conftest.$ac_ext >&5
23938
23939 ( exit $ac_status )
23940 ol_cv_pthread_lpthreads_lexc=no
23941 fi
23942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23943 fi
23944
23945                 # restore the LIBS
23946                 LIBS="$ol_LIBS"
23947
23948 fi
23949 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23950 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23951
23952         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23953                 ol_link_pthreads="-lpthreads -lexc"
23954                 ol_link_threads=posix
23955         fi
23956 fi
23957
23958
23959                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23960 if test "$ol_link_threads" = no ; then
23961         # try -lpthreads
23962         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23963 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23964 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23965   echo $ECHO_N "(cached) $ECHO_C" >&6
23966 else
23967
23968                 # save the flags
23969                 ol_LIBS="$LIBS"
23970                 LIBS="-lpthreads $LIBS"
23971
23972                 if test "$cross_compiling" = yes; then
23973   cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h.  */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h.  */
23979
23980 /* pthread test headers */
23981 #include <pthread.h>
23982 #if HAVE_PTHREADS < 7
23983 #include <errno.h>
23984 #endif
23985 #ifndef NULL
23986 #define NULL (void*)0
23987 #endif
23988
23989 static void *task(p)
23990         void *p;
23991 {
23992         return (void *) (p == NULL);
23993 }
23994
23995 int
23996 main ()
23997 {
23998
23999         /* pthread test function */
24000 #ifndef PTHREAD_CREATE_DETACHED
24001 #define PTHREAD_CREATE_DETACHED 1
24002 #endif
24003         pthread_t t;
24004         int status;
24005         int detach = PTHREAD_CREATE_DETACHED;
24006
24007 #if HAVE_PTHREADS > 4
24008         /* Final pthreads */
24009         pthread_attr_t attr;
24010
24011         status = pthread_attr_init(&attr);
24012         if( status ) return status;
24013
24014 #if HAVE_PTHREADS < 7
24015         status = pthread_attr_setdetachstate(&attr, &detach);
24016         if( status < 0 ) status = errno;
24017 #else
24018         status = pthread_attr_setdetachstate(&attr, detach);
24019 #endif
24020         if( status ) return status;
24021         status = pthread_create( &t, &attr, task, NULL );
24022 #if HAVE_PTHREADS < 7
24023         if( status < 0 ) status = errno;
24024 #endif
24025         if( status ) return status;
24026 #else
24027         /* Draft 4 pthreads */
24028         status = pthread_create( &t, pthread_attr_default, task, NULL );
24029         if( status ) return errno;
24030
24031         /* give thread a chance to complete */
24032         /* it should remain joinable and hence detachable */
24033         sleep( 1 );
24034
24035         status = pthread_detach( &t );
24036         if( status ) return errno;
24037 #endif
24038
24039 #ifdef HAVE_LINUX_THREADS
24040         pthread_kill_other_threads_np();
24041 #endif
24042
24043         return 0;
24044
24045   ;
24046   return 0;
24047 }
24048 _ACEOF
24049 rm -f conftest.$ac_objext conftest$ac_exeext
24050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24051   (eval $ac_link) 2>conftest.er1
24052   ac_status=$?
24053   grep -v '^ *+' conftest.er1 >conftest.err
24054   rm -f conftest.er1
24055   cat conftest.err >&5
24056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057   (exit $ac_status); } &&
24058          { ac_try='test -z "$ac_c_werror_flag"
24059                          || test ! -s conftest.err'
24060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24061   (eval $ac_try) 2>&5
24062   ac_status=$?
24063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064   (exit $ac_status); }; } &&
24065          { ac_try='test -s conftest$ac_exeext'
24066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067   (eval $ac_try) 2>&5
24068   ac_status=$?
24069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070   (exit $ac_status); }; }; then
24071   ol_cv_pthread_lib_lpthreads=yes
24072 else
24073   echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24075
24076 ol_cv_pthread_lib_lpthreads=no
24077 fi
24078 rm -f conftest.err conftest.$ac_objext \
24079       conftest$ac_exeext conftest.$ac_ext
24080 else
24081   cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h.  */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h.  */
24087
24088 /* pthread test headers */
24089 #include <pthread.h>
24090 #if HAVE_PTHREADS < 7
24091 #include <errno.h>
24092 #endif
24093 #ifndef NULL
24094 #define NULL (void*)0
24095 #endif
24096
24097 static void *task(p)
24098         void *p;
24099 {
24100         return (void *) (p == NULL);
24101 }
24102
24103
24104 int main(argc, argv)
24105         int argc;
24106         char **argv;
24107 {
24108
24109         /* pthread test function */
24110 #ifndef PTHREAD_CREATE_DETACHED
24111 #define PTHREAD_CREATE_DETACHED 1
24112 #endif
24113         pthread_t t;
24114         int status;
24115         int detach = PTHREAD_CREATE_DETACHED;
24116
24117 #if HAVE_PTHREADS > 4
24118         /* Final pthreads */
24119         pthread_attr_t attr;
24120
24121         status = pthread_attr_init(&attr);
24122         if( status ) return status;
24123
24124 #if HAVE_PTHREADS < 7
24125         status = pthread_attr_setdetachstate(&attr, &detach);
24126         if( status < 0 ) status = errno;
24127 #else
24128         status = pthread_attr_setdetachstate(&attr, detach);
24129 #endif
24130         if( status ) return status;
24131         status = pthread_create( &t, &attr, task, NULL );
24132 #if HAVE_PTHREADS < 7
24133         if( status < 0 ) status = errno;
24134 #endif
24135         if( status ) return status;
24136 #else
24137         /* Draft 4 pthreads */
24138         status = pthread_create( &t, pthread_attr_default, task, NULL );
24139         if( status ) return errno;
24140
24141         /* give thread a chance to complete */
24142         /* it should remain joinable and hence detachable */
24143         sleep( 1 );
24144
24145         status = pthread_detach( &t );
24146         if( status ) return errno;
24147 #endif
24148
24149 #ifdef HAVE_LINUX_THREADS
24150         pthread_kill_other_threads_np();
24151 #endif
24152
24153         return 0;
24154
24155 }
24156
24157 _ACEOF
24158 rm -f conftest$ac_exeext
24159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24160   (eval $ac_link) 2>&5
24161   ac_status=$?
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165   (eval $ac_try) 2>&5
24166   ac_status=$?
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); }; }; then
24169   ol_cv_pthread_lib_lpthreads=yes
24170 else
24171   echo "$as_me: program exited with status $ac_status" >&5
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24174
24175 ( exit $ac_status )
24176 ol_cv_pthread_lib_lpthreads=no
24177 fi
24178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24179 fi
24180
24181                 # restore the LIBS
24182                 LIBS="$ol_LIBS"
24183
24184 fi
24185 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24186 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24187
24188         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24189                 ol_link_pthreads="-lpthreads"
24190                 ol_link_threads=posix
24191         fi
24192 fi
24193
24194
24195                 if test $ol_link_threads != no ; then
24196                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24197
24198                                                 save_CPPFLAGS="$CPPFLAGS"
24199                         save_LIBS="$LIBS"
24200                         LIBS="$LTHREAD_LIBS $LIBS"
24201
24202
24203
24204
24205 for ac_func in sched_yield pthread_yield thr_yield
24206 do
24207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24208 echo "$as_me:$LINENO: checking for $ac_func" >&5
24209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24210 if eval "test \"\${$as_ac_var+set}\" = set"; then
24211   echo $ECHO_N "(cached) $ECHO_C" >&6
24212 else
24213   cat >conftest.$ac_ext <<_ACEOF
24214 /* confdefs.h.  */
24215 _ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h.  */
24219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24221 #define $ac_func innocuous_$ac_func
24222
24223 /* System header to define __stub macros and hopefully few prototypes,
24224     which can conflict with char $ac_func (); below.
24225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24226     <limits.h> exists even on freestanding compilers.  */
24227
24228 #ifdef __STDC__
24229 # include <limits.h>
24230 #else
24231 # include <assert.h>
24232 #endif
24233
24234 #undef $ac_func
24235
24236 /* Override any gcc2 internal prototype to avoid an error.  */
24237 #ifdef __cplusplus
24238 extern "C"
24239 {
24240 #endif
24241 /* We use char because int might match the return type of a gcc2
24242    builtin and then its argument prototype would still apply.  */
24243 char $ac_func ();
24244 /* The GNU C library defines this for functions which it implements
24245     to always fail with ENOSYS.  Some functions are actually named
24246     something starting with __ and the normal name is an alias.  */
24247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24248 choke me
24249 #else
24250 char (*f) () = $ac_func;
24251 #endif
24252 #ifdef __cplusplus
24253 }
24254 #endif
24255
24256 int
24257 main ()
24258 {
24259 return f != $ac_func;
24260   ;
24261   return 0;
24262 }
24263 _ACEOF
24264 rm -f conftest.$ac_objext conftest$ac_exeext
24265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24266   (eval $ac_link) 2>conftest.er1
24267   ac_status=$?
24268   grep -v '^ *+' conftest.er1 >conftest.err
24269   rm -f conftest.er1
24270   cat conftest.err >&5
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); } &&
24273          { ac_try='test -z "$ac_c_werror_flag"
24274                          || test ! -s conftest.err'
24275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276   (eval $ac_try) 2>&5
24277   ac_status=$?
24278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279   (exit $ac_status); }; } &&
24280          { ac_try='test -s conftest$ac_exeext'
24281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24282   (eval $ac_try) 2>&5
24283   ac_status=$?
24284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285   (exit $ac_status); }; }; then
24286   eval "$as_ac_var=yes"
24287 else
24288   echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24290
24291 eval "$as_ac_var=no"
24292 fi
24293 rm -f conftest.err conftest.$ac_objext \
24294       conftest$ac_exeext conftest.$ac_ext
24295 fi
24296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24298 if test `eval echo '${'$as_ac_var'}'` = yes; then
24299   cat >>confdefs.h <<_ACEOF
24300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24301 _ACEOF
24302
24303 fi
24304 done
24305
24306
24307                         if test $ac_cv_func_sched_yield = no &&
24308                            test $ac_cv_func_pthread_yield = no &&
24309                            test $ac_cv_func_thr_yield = no ; then
24310                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24311 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24312 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24313   echo $ECHO_N "(cached) $ECHO_C" >&6
24314 else
24315   ac_check_lib_save_LIBS=$LIBS
24316 LIBS="-lrt  $LIBS"
24317 cat >conftest.$ac_ext <<_ACEOF
24318 /* confdefs.h.  */
24319 _ACEOF
24320 cat confdefs.h >>conftest.$ac_ext
24321 cat >>conftest.$ac_ext <<_ACEOF
24322 /* end confdefs.h.  */
24323
24324 /* Override any gcc2 internal prototype to avoid an error.  */
24325 #ifdef __cplusplus
24326 extern "C"
24327 #endif
24328 /* We use char because int might match the return type of a gcc2
24329    builtin and then its argument prototype would still apply.  */
24330 char sched_yield ();
24331 int
24332 main ()
24333 {
24334 sched_yield ();
24335   ;
24336   return 0;
24337 }
24338 _ACEOF
24339 rm -f conftest.$ac_objext conftest$ac_exeext
24340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24341   (eval $ac_link) 2>conftest.er1
24342   ac_status=$?
24343   grep -v '^ *+' conftest.er1 >conftest.err
24344   rm -f conftest.er1
24345   cat conftest.err >&5
24346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347   (exit $ac_status); } &&
24348          { ac_try='test -z "$ac_c_werror_flag"
24349                          || test ! -s conftest.err'
24350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24351   (eval $ac_try) 2>&5
24352   ac_status=$?
24353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354   (exit $ac_status); }; } &&
24355          { ac_try='test -s conftest$ac_exeext'
24356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24357   (eval $ac_try) 2>&5
24358   ac_status=$?
24359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360   (exit $ac_status); }; }; then
24361   ac_cv_lib_rt_sched_yield=yes
24362 else
24363   echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24365
24366 ac_cv_lib_rt_sched_yield=no
24367 fi
24368 rm -f conftest.err conftest.$ac_objext \
24369       conftest$ac_exeext conftest.$ac_ext
24370 LIBS=$ac_check_lib_save_LIBS
24371 fi
24372 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24373 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24374 if test $ac_cv_lib_rt_sched_yield = yes; then
24375   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24376
24377 cat >>confdefs.h <<\_ACEOF
24378 #define HAVE_SCHED_YIELD 1
24379 _ACEOF
24380
24381                                         ac_cv_func_sched_yield=yes
24382 else
24383   ac_cv_func_sched_yield=no
24384 fi
24385
24386                         fi
24387                         if test $ac_cv_func_sched_yield = no &&
24388                            test $ac_cv_func_pthread_yield = no &&
24389                            test "$ac_cv_func_thr_yield" = no ; then
24390                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24391 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24392                         fi
24393
24394
24395 for ac_func in pthread_kill
24396 do
24397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24398 echo "$as_me:$LINENO: checking for $ac_func" >&5
24399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24400 if eval "test \"\${$as_ac_var+set}\" = set"; then
24401   echo $ECHO_N "(cached) $ECHO_C" >&6
24402 else
24403   cat >conftest.$ac_ext <<_ACEOF
24404 /* confdefs.h.  */
24405 _ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h.  */
24409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24411 #define $ac_func innocuous_$ac_func
24412
24413 /* System header to define __stub macros and hopefully few prototypes,
24414     which can conflict with char $ac_func (); below.
24415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24416     <limits.h> exists even on freestanding compilers.  */
24417
24418 #ifdef __STDC__
24419 # include <limits.h>
24420 #else
24421 # include <assert.h>
24422 #endif
24423
24424 #undef $ac_func
24425
24426 /* Override any gcc2 internal prototype to avoid an error.  */
24427 #ifdef __cplusplus
24428 extern "C"
24429 {
24430 #endif
24431 /* We use char because int might match the return type of a gcc2
24432    builtin and then its argument prototype would still apply.  */
24433 char $ac_func ();
24434 /* The GNU C library defines this for functions which it implements
24435     to always fail with ENOSYS.  Some functions are actually named
24436     something starting with __ and the normal name is an alias.  */
24437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24438 choke me
24439 #else
24440 char (*f) () = $ac_func;
24441 #endif
24442 #ifdef __cplusplus
24443 }
24444 #endif
24445
24446 int
24447 main ()
24448 {
24449 return f != $ac_func;
24450   ;
24451   return 0;
24452 }
24453 _ACEOF
24454 rm -f conftest.$ac_objext conftest$ac_exeext
24455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24456   (eval $ac_link) 2>conftest.er1
24457   ac_status=$?
24458   grep -v '^ *+' conftest.er1 >conftest.err
24459   rm -f conftest.er1
24460   cat conftest.err >&5
24461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462   (exit $ac_status); } &&
24463          { ac_try='test -z "$ac_c_werror_flag"
24464                          || test ! -s conftest.err'
24465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466   (eval $ac_try) 2>&5
24467   ac_status=$?
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); }; } &&
24470          { ac_try='test -s conftest$ac_exeext'
24471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472   (eval $ac_try) 2>&5
24473   ac_status=$?
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); }; }; then
24476   eval "$as_ac_var=yes"
24477 else
24478   echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24480
24481 eval "$as_ac_var=no"
24482 fi
24483 rm -f conftest.err conftest.$ac_objext \
24484       conftest$ac_exeext conftest.$ac_ext
24485 fi
24486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24488 if test `eval echo '${'$as_ac_var'}'` = yes; then
24489   cat >>confdefs.h <<_ACEOF
24490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24491 _ACEOF
24492
24493 fi
24494 done
24495
24496
24497                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24498 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
24499 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24500   echo $ECHO_N "(cached) $ECHO_C" >&6
24501 else
24502
24503                                                                 cat >conftest.$ac_ext <<_ACEOF
24504 /* confdefs.h.  */
24505 _ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h.  */
24509
24510 #include <pthread.h>
24511 pthread_rwlock_t rwlock;
24512
24513 int
24514 main ()
24515 {
24516 pthread_rwlock_destroy(&rwlock);
24517   ;
24518   return 0;
24519 }
24520 _ACEOF
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24523   (eval $ac_link) 2>conftest.er1
24524   ac_status=$?
24525   grep -v '^ *+' conftest.er1 >conftest.err
24526   rm -f conftest.er1
24527   cat conftest.err >&5
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); } &&
24530          { ac_try='test -z "$ac_c_werror_flag"
24531                          || test ! -s conftest.err'
24532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533   (eval $ac_try) 2>&5
24534   ac_status=$?
24535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536   (exit $ac_status); }; } &&
24537          { ac_try='test -s conftest$ac_exeext'
24538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539   (eval $ac_try) 2>&5
24540   ac_status=$?
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); }; }; then
24543   ol_cv_func_pthread_rwlock_destroy=yes
24544 else
24545   echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.$ac_ext >&5
24547
24548 ol_cv_func_pthread_rwlock_destroy=no
24549 fi
24550 rm -f conftest.err conftest.$ac_objext \
24551       conftest$ac_exeext conftest.$ac_ext
24552
24553 fi
24554 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24555 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
24556                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24557
24558 cat >>confdefs.h <<\_ACEOF
24559 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24560 _ACEOF
24561
24562                         fi
24563
24564                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24565 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24566 if test "${ol_cv_func_pthread_detach+set}" = set; then
24567   echo $ECHO_N "(cached) $ECHO_C" >&6
24568 else
24569
24570                                                                 cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h.  */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h.  */
24576
24577 #include <pthread.h>
24578 #ifndef NULL
24579 #define NULL (void*)0
24580 #endif
24581
24582 int
24583 main ()
24584 {
24585 pthread_detach(NULL);
24586   ;
24587   return 0;
24588 }
24589 _ACEOF
24590 rm -f conftest.$ac_objext conftest$ac_exeext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24592   (eval $ac_link) 2>conftest.er1
24593   ac_status=$?
24594   grep -v '^ *+' conftest.er1 >conftest.err
24595   rm -f conftest.er1
24596   cat conftest.err >&5
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } &&
24599          { ac_try='test -z "$ac_c_werror_flag"
24600                          || test ! -s conftest.err'
24601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602   (eval $ac_try) 2>&5
24603   ac_status=$?
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); }; } &&
24606          { ac_try='test -s conftest$ac_exeext'
24607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); }; }; then
24612   ol_cv_func_pthread_detach=yes
24613 else
24614   echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617 ol_cv_func_pthread_detach=no
24618 fi
24619 rm -f conftest.err conftest.$ac_objext \
24620       conftest$ac_exeext conftest.$ac_ext
24621
24622 fi
24623 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24624 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24625
24626                         if test $ol_cv_func_pthread_detach = no ; then
24627                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24628 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24629    { (exit 1); exit 1; }; }
24630                         fi
24631
24632
24633 cat >>confdefs.h <<\_ACEOF
24634 #define HAVE_PTHREAD_DETACH 1
24635 _ACEOF
24636
24637
24638
24639
24640
24641
24642 for ac_func in \
24643                                 pthread_setconcurrency \
24644                                 pthread_getconcurrency \
24645                                 thr_setconcurrency \
24646                                 thr_getconcurrency \
24647
24648 do
24649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24650 echo "$as_me:$LINENO: checking for $ac_func" >&5
24651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24652 if eval "test \"\${$as_ac_var+set}\" = set"; then
24653   echo $ECHO_N "(cached) $ECHO_C" >&6
24654 else
24655   cat >conftest.$ac_ext <<_ACEOF
24656 /* confdefs.h.  */
24657 _ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h.  */
24661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24663 #define $ac_func innocuous_$ac_func
24664
24665 /* System header to define __stub macros and hopefully few prototypes,
24666     which can conflict with char $ac_func (); below.
24667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24668     <limits.h> exists even on freestanding compilers.  */
24669
24670 #ifdef __STDC__
24671 # include <limits.h>
24672 #else
24673 # include <assert.h>
24674 #endif
24675
24676 #undef $ac_func
24677
24678 /* Override any gcc2 internal prototype to avoid an error.  */
24679 #ifdef __cplusplus
24680 extern "C"
24681 {
24682 #endif
24683 /* We use char because int might match the return type of a gcc2
24684    builtin and then its argument prototype would still apply.  */
24685 char $ac_func ();
24686 /* The GNU C library defines this for functions which it implements
24687     to always fail with ENOSYS.  Some functions are actually named
24688     something starting with __ and the normal name is an alias.  */
24689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24690 choke me
24691 #else
24692 char (*f) () = $ac_func;
24693 #endif
24694 #ifdef __cplusplus
24695 }
24696 #endif
24697
24698 int
24699 main ()
24700 {
24701 return f != $ac_func;
24702   ;
24703   return 0;
24704 }
24705 _ACEOF
24706 rm -f conftest.$ac_objext conftest$ac_exeext
24707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24708   (eval $ac_link) 2>conftest.er1
24709   ac_status=$?
24710   grep -v '^ *+' conftest.er1 >conftest.err
24711   rm -f conftest.er1
24712   cat conftest.err >&5
24713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); } &&
24715          { ac_try='test -z "$ac_c_werror_flag"
24716                          || test ! -s conftest.err'
24717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718   (eval $ac_try) 2>&5
24719   ac_status=$?
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); }; } &&
24722          { ac_try='test -s conftest$ac_exeext'
24723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724   (eval $ac_try) 2>&5
24725   ac_status=$?
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); }; }; then
24728   eval "$as_ac_var=yes"
24729 else
24730   echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24732
24733 eval "$as_ac_var=no"
24734 fi
24735 rm -f conftest.err conftest.$ac_objext \
24736       conftest$ac_exeext conftest.$ac_ext
24737 fi
24738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24740 if test `eval echo '${'$as_ac_var'}'` = yes; then
24741   cat >>confdefs.h <<_ACEOF
24742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24743 _ACEOF
24744
24745 fi
24746 done
24747
24748
24749
24750
24751 for ac_func in pthread_kill_other_threads_np
24752 do
24753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24754 echo "$as_me:$LINENO: checking for $ac_func" >&5
24755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24756 if eval "test \"\${$as_ac_var+set}\" = set"; then
24757   echo $ECHO_N "(cached) $ECHO_C" >&6
24758 else
24759   cat >conftest.$ac_ext <<_ACEOF
24760 /* confdefs.h.  */
24761 _ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h.  */
24765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24767 #define $ac_func innocuous_$ac_func
24768
24769 /* System header to define __stub macros and hopefully few prototypes,
24770     which can conflict with char $ac_func (); below.
24771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24772     <limits.h> exists even on freestanding compilers.  */
24773
24774 #ifdef __STDC__
24775 # include <limits.h>
24776 #else
24777 # include <assert.h>
24778 #endif
24779
24780 #undef $ac_func
24781
24782 /* Override any gcc2 internal prototype to avoid an error.  */
24783 #ifdef __cplusplus
24784 extern "C"
24785 {
24786 #endif
24787 /* We use char because int might match the return type of a gcc2
24788    builtin and then its argument prototype would still apply.  */
24789 char $ac_func ();
24790 /* The GNU C library defines this for functions which it implements
24791     to always fail with ENOSYS.  Some functions are actually named
24792     something starting with __ and the normal name is an alias.  */
24793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24794 choke me
24795 #else
24796 char (*f) () = $ac_func;
24797 #endif
24798 #ifdef __cplusplus
24799 }
24800 #endif
24801
24802 int
24803 main ()
24804 {
24805 return f != $ac_func;
24806   ;
24807   return 0;
24808 }
24809 _ACEOF
24810 rm -f conftest.$ac_objext conftest$ac_exeext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24812   (eval $ac_link) 2>conftest.er1
24813   ac_status=$?
24814   grep -v '^ *+' conftest.er1 >conftest.err
24815   rm -f conftest.er1
24816   cat conftest.err >&5
24817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818   (exit $ac_status); } &&
24819          { ac_try='test -z "$ac_c_werror_flag"
24820                          || test ! -s conftest.err'
24821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24822   (eval $ac_try) 2>&5
24823   ac_status=$?
24824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825   (exit $ac_status); }; } &&
24826          { ac_try='test -s conftest$ac_exeext'
24827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24828   (eval $ac_try) 2>&5
24829   ac_status=$?
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); }; }; then
24832   eval "$as_ac_var=yes"
24833 else
24834   echo "$as_me: failed program was:" >&5
24835 sed 's/^/| /' conftest.$ac_ext >&5
24836
24837 eval "$as_ac_var=no"
24838 fi
24839 rm -f conftest.err conftest.$ac_objext \
24840       conftest$ac_exeext conftest.$ac_ext
24841 fi
24842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24844 if test `eval echo '${'$as_ac_var'}'` = yes; then
24845   cat >>confdefs.h <<_ACEOF
24846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24847 _ACEOF
24848
24849 fi
24850 done
24851
24852         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24853 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24854 if test "${ol_cv_sys_linux_threads+set}" = set; then
24855   echo $ECHO_N "(cached) $ECHO_C" >&6
24856 else
24857   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24858 fi
24859 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24860 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24861
24862
24863
24864
24865         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24866 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24867 if test "${ol_cv_linux_threads+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870
24871                 if test $ol_cv_header_linux_threads = yes &&
24872                    test $ol_cv_sys_linux_threads = yes; then
24873                         ol_cv_linux_threads=yes
24874                 elif test $ol_cv_header_linux_threads = no &&
24875                      test $ol_cv_sys_linux_threads = no; then
24876                         ol_cv_linux_threads=no
24877                 else
24878                         ol_cv_linux_threads=error
24879                 fi
24880
24881 fi
24882 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24883 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24884
24885
24886                         if test $ol_cv_linux_threads = error; then
24887                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24888 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24889    { (exit 1); exit 1; }; };
24890                         fi
24891
24892                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24893 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24894 if test "${ol_cv_pthread_create_works+set}" = set; then
24895   echo $ECHO_N "(cached) $ECHO_C" >&6
24896 else
24897
24898                         if test "$cross_compiling" = yes; then
24899                                 ol_cv_pthread_create_works=yes
24900 else
24901   cat >conftest.$ac_ext <<_ACEOF
24902 /* confdefs.h.  */
24903 _ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h.  */
24907
24908 /* pthread test headers */
24909 #include <pthread.h>
24910 #if HAVE_PTHREADS < 7
24911 #include <errno.h>
24912 #endif
24913 #ifndef NULL
24914 #define NULL (void*)0
24915 #endif
24916
24917 static void *task(p)
24918         void *p;
24919 {
24920         return (void *) (p == NULL);
24921 }
24922
24923
24924 int main(argc, argv)
24925         int argc;
24926         char **argv;
24927 {
24928
24929         /* pthread test function */
24930 #ifndef PTHREAD_CREATE_DETACHED
24931 #define PTHREAD_CREATE_DETACHED 1
24932 #endif
24933         pthread_t t;
24934         int status;
24935         int detach = PTHREAD_CREATE_DETACHED;
24936
24937 #if HAVE_PTHREADS > 4
24938         /* Final pthreads */
24939         pthread_attr_t attr;
24940
24941         status = pthread_attr_init(&attr);
24942         if( status ) return status;
24943
24944 #if HAVE_PTHREADS < 7
24945         status = pthread_attr_setdetachstate(&attr, &detach);
24946         if( status < 0 ) status = errno;
24947 #else
24948         status = pthread_attr_setdetachstate(&attr, detach);
24949 #endif
24950         if( status ) return status;
24951         status = pthread_create( &t, &attr, task, NULL );
24952 #if HAVE_PTHREADS < 7
24953         if( status < 0 ) status = errno;
24954 #endif
24955         if( status ) return status;
24956 #else
24957         /* Draft 4 pthreads */
24958         status = pthread_create( &t, pthread_attr_default, task, NULL );
24959         if( status ) return errno;
24960
24961         /* give thread a chance to complete */
24962         /* it should remain joinable and hence detachable */
24963         sleep( 1 );
24964
24965         status = pthread_detach( &t );
24966         if( status ) return errno;
24967 #endif
24968
24969 #ifdef HAVE_LINUX_THREADS
24970         pthread_kill_other_threads_np();
24971 #endif
24972
24973         return 0;
24974
24975 }
24976
24977 _ACEOF
24978 rm -f conftest$ac_exeext
24979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24980   (eval $ac_link) 2>&5
24981   ac_status=$?
24982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985   (eval $ac_try) 2>&5
24986   ac_status=$?
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); }; }; then
24989   ol_cv_pthread_create_works=yes
24990 else
24991   echo "$as_me: program exited with status $ac_status" >&5
24992 echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24994
24995 ( exit $ac_status )
24996 ol_cv_pthread_create_works=no
24997 fi
24998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24999 fi
25000 fi
25001 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25002 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25003
25004                         if test $ol_cv_pthread_create_works = no ; then
25005                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25006 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25007    { (exit 1); exit 1; }; }
25008                         fi
25009
25010                         ol_replace_broken_yield=no
25011
25012                         if test $ol_replace_broken_yield = yes ; then
25013
25014 cat >>confdefs.h <<\_ACEOF
25015 #define REPLACE_BROKEN_YIELD 1
25016 _ACEOF
25017
25018                         fi
25019
25020                                                 if test $ol_with_yielding_select = auto ; then
25021                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25022 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25023 if test "${ol_cv_pthread_select_yields+set}" = set; then
25024   echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026
25027                                 if test "$cross_compiling" = yes; then
25028   ol_cv_pthread_select_yields=cross
25029 else
25030   cat >conftest.$ac_ext <<_ACEOF
25031 /* confdefs.h.  */
25032 _ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h.  */
25036
25037 #include <sys/types.h>
25038 #include <sys/time.h>
25039 #include <unistd.h>
25040 #include <pthread.h>
25041 #ifndef NULL
25042 #define NULL (void*) 0
25043 #endif
25044
25045 static int fildes[2];
25046
25047 static void *task(p)
25048         void *p;
25049 {
25050         int i;
25051         struct timeval tv;
25052
25053         fd_set rfds;
25054
25055         tv.tv_sec=10;
25056         tv.tv_usec=0;
25057
25058         FD_ZERO(&rfds);
25059         FD_SET(fildes[0], &rfds);
25060
25061         /* we're not interested in any fds */
25062         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25063
25064         if(i < 0) {
25065                 perror("select");
25066                 exit(10);
25067         }
25068
25069         exit(0); /* if we exit here, the select blocked the whole process */
25070 }
25071
25072 int main(argc, argv)
25073         int argc;
25074         char **argv;
25075 {
25076         pthread_t t;
25077
25078         /* create a pipe to select */
25079         if(pipe(&fildes[0])) {
25080                 perror("select");
25081                 exit(1);
25082         }
25083
25084 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25085         (void) pthread_setconcurrency(2);
25086 #else
25087 #ifdef HAVE_THR_SETCONCURRENCY
25088         /* Set Solaris LWP concurrency to 2 */
25089         thr_setconcurrency(2);
25090 #endif
25091 #endif
25092
25093 #if HAVE_PTHREADS < 6
25094         pthread_create(&t, pthread_attr_default, task, NULL);
25095 #else
25096         pthread_create(&t, NULL, task, NULL);
25097 #endif
25098
25099         /* make sure task runs first */
25100 #ifdef HAVE_THR_YIELD
25101         thr_yield();
25102 #elif defined( HAVE_SCHED_YIELD )
25103         sched_yield();
25104 #elif defined( HAVE_PTHREAD_YIELD )
25105         pthread_yield();
25106 #endif
25107
25108         exit(2);
25109 }
25110 _ACEOF
25111 rm -f conftest$ac_exeext
25112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25113   (eval $ac_link) 2>&5
25114   ac_status=$?
25115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118   (eval $ac_try) 2>&5
25119   ac_status=$?
25120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121   (exit $ac_status); }; }; then
25122   ol_cv_pthread_select_yields=no
25123 else
25124   echo "$as_me: program exited with status $ac_status" >&5
25125 echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25127
25128 ( exit $ac_status )
25129 ol_cv_pthread_select_yields=yes
25130 fi
25131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25132 fi
25133 fi
25134 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25135 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25136
25137                                 if test $ol_cv_pthread_select_yields = cross ; then
25138                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25139 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25140    { (exit 1); exit 1; }; }
25141                                 fi
25142
25143                                 if test $ol_cv_pthread_select_yields = yes ; then
25144                                         ol_with_yielding_select=yes
25145                                 fi
25146                         fi
25147
25148                                                 CPPFLAGS="$save_CPPFLAGS"
25149                         LIBS="$save_LIBS"
25150                 else
25151                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25152 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25153    { (exit 1); exit 1; }; }
25154                 fi
25155         fi
25156
25157         if test $ol_with_threads = posix ; then
25158                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25159 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25160    { (exit 1); exit 1; }; }
25161         fi
25162         ;;
25163 esac
25164
25165 case $ol_with_threads in auto | yes | mach)
25166
25167
25168
25169 for ac_header in mach/cthreads.h cthreads.h
25170 do
25171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25173   echo "$as_me:$LINENO: checking for $ac_header" >&5
25174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25176   echo $ECHO_N "(cached) $ECHO_C" >&6
25177 fi
25178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25180 else
25181   # Is the header compilable?
25182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25184 cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190 $ac_includes_default
25191 #include <$ac_header>
25192 _ACEOF
25193 rm -f conftest.$ac_objext
25194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25195   (eval $ac_compile) 2>conftest.er1
25196   ac_status=$?
25197   grep -v '^ *+' conftest.er1 >conftest.err
25198   rm -f conftest.er1
25199   cat conftest.err >&5
25200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201   (exit $ac_status); } &&
25202          { ac_try='test -z "$ac_c_werror_flag"
25203                          || test ! -s conftest.err'
25204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205   (eval $ac_try) 2>&5
25206   ac_status=$?
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); }; } &&
25209          { ac_try='test -s conftest.$ac_objext'
25210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211   (eval $ac_try) 2>&5
25212   ac_status=$?
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); }; }; then
25215   ac_header_compiler=yes
25216 else
25217   echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25219
25220 ac_header_compiler=no
25221 fi
25222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25224 echo "${ECHO_T}$ac_header_compiler" >&6
25225
25226 # Is the header present?
25227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25229 cat >conftest.$ac_ext <<_ACEOF
25230 /* confdefs.h.  */
25231 _ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h.  */
25235 #include <$ac_header>
25236 _ACEOF
25237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25239   ac_status=$?
25240   grep -v '^ *+' conftest.er1 >conftest.err
25241   rm -f conftest.er1
25242   cat conftest.err >&5
25243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244   (exit $ac_status); } >/dev/null; then
25245   if test -s conftest.err; then
25246     ac_cpp_err=$ac_c_preproc_warn_flag
25247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25248   else
25249     ac_cpp_err=
25250   fi
25251 else
25252   ac_cpp_err=yes
25253 fi
25254 if test -z "$ac_cpp_err"; then
25255   ac_header_preproc=yes
25256 else
25257   echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25259
25260   ac_header_preproc=no
25261 fi
25262 rm -f conftest.err conftest.$ac_ext
25263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25264 echo "${ECHO_T}$ac_header_preproc" >&6
25265
25266 # So?  What about this header?
25267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25268   yes:no: )
25269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25273     ac_header_preproc=yes
25274     ;;
25275   no:yes:* )
25276     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25278     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25279 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25280     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25282     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25283 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25286     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25288     (
25289       cat <<\_ASBOX
25290 ## --------------------------------------------- ##
25291 ## Report this to <http://www.openldap.org/its/> ##
25292 ## --------------------------------------------- ##
25293 _ASBOX
25294     ) |
25295       sed "s/^/$as_me: WARNING:     /" >&2
25296     ;;
25297 esac
25298 echo "$as_me:$LINENO: checking for $ac_header" >&5
25299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25301   echo $ECHO_N "(cached) $ECHO_C" >&6
25302 else
25303   eval "$as_ac_Header=\$ac_header_preproc"
25304 fi
25305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25307
25308 fi
25309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25310   cat >>confdefs.h <<_ACEOF
25311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25312 _ACEOF
25313
25314 fi
25315
25316 done
25317
25318         if test $ac_cv_header_mach_cthreads_h = yes ; then
25319                 ol_with_threads=found
25320
25321                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25322 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25323 if test "${ac_cv_func_cthread_fork+set}" = set; then
25324   echo $ECHO_N "(cached) $ECHO_C" >&6
25325 else
25326   cat >conftest.$ac_ext <<_ACEOF
25327 /* confdefs.h.  */
25328 _ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h.  */
25332 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25334 #define cthread_fork innocuous_cthread_fork
25335
25336 /* System header to define __stub macros and hopefully few prototypes,
25337     which can conflict with char cthread_fork (); below.
25338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25339     <limits.h> exists even on freestanding compilers.  */
25340
25341 #ifdef __STDC__
25342 # include <limits.h>
25343 #else
25344 # include <assert.h>
25345 #endif
25346
25347 #undef cthread_fork
25348
25349 /* Override any gcc2 internal prototype to avoid an error.  */
25350 #ifdef __cplusplus
25351 extern "C"
25352 {
25353 #endif
25354 /* We use char because int might match the return type of a gcc2
25355    builtin and then its argument prototype would still apply.  */
25356 char cthread_fork ();
25357 /* The GNU C library defines this for functions which it implements
25358     to always fail with ENOSYS.  Some functions are actually named
25359     something starting with __ and the normal name is an alias.  */
25360 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25361 choke me
25362 #else
25363 char (*f) () = cthread_fork;
25364 #endif
25365 #ifdef __cplusplus
25366 }
25367 #endif
25368
25369 int
25370 main ()
25371 {
25372 return f != cthread_fork;
25373   ;
25374   return 0;
25375 }
25376 _ACEOF
25377 rm -f conftest.$ac_objext conftest$ac_exeext
25378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25379   (eval $ac_link) 2>conftest.er1
25380   ac_status=$?
25381   grep -v '^ *+' conftest.er1 >conftest.err
25382   rm -f conftest.er1
25383   cat conftest.err >&5
25384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385   (exit $ac_status); } &&
25386          { ac_try='test -z "$ac_c_werror_flag"
25387                          || test ! -s conftest.err'
25388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389   (eval $ac_try) 2>&5
25390   ac_status=$?
25391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392   (exit $ac_status); }; } &&
25393          { ac_try='test -s conftest$ac_exeext'
25394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395   (eval $ac_try) 2>&5
25396   ac_status=$?
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); }; }; then
25399   ac_cv_func_cthread_fork=yes
25400 else
25401   echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25403
25404 ac_cv_func_cthread_fork=no
25405 fi
25406 rm -f conftest.err conftest.$ac_objext \
25407       conftest$ac_exeext conftest.$ac_ext
25408 fi
25409 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25410 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25411 if test $ac_cv_func_cthread_fork = yes; then
25412   ol_link_threads=yes
25413 fi
25414
25415
25416                 if test $ol_link_threads = no ; then
25417                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25418 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25419 if test "${ol_cv_cthread_all_load+set}" = set; then
25420   echo $ECHO_N "(cached) $ECHO_C" >&6
25421 else
25422
25423                                                                 save_LIBS="$LIBS"
25424                                 LIBS="-all_load $LIBS"
25425                                 cat >conftest.$ac_ext <<_ACEOF
25426 /* confdefs.h.  */
25427 _ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h.  */
25431 #include <mach/cthreads.h>
25432 int
25433 main ()
25434 {
25435
25436                                         cthread_fork((void *)0, (void *)0);
25437
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   ol_cv_cthread_all_load=yes
25465 else
25466   echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25468
25469 ol_cv_cthread_all_load=no
25470 fi
25471 rm -f conftest.err conftest.$ac_objext \
25472       conftest$ac_exeext conftest.$ac_ext
25473                                                                 LIBS="$save_LIBS"
25474
25475 fi
25476 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25477 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25478
25479                         if test $ol_cv_cthread_all_load = yes ; then
25480                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25481                                 ol_link_threads=mach
25482                                 ol_with_threads=found
25483                         fi
25484                 fi
25485
25486         elif test $ac_cv_header_cthreads_h = yes ; then
25487
25488                 ol_with_threads=found
25489
25490                                 save_LIBS="$LIBS"
25491                 LIBS="$LIBS -lthreads"
25492                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25493 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25494 if test "${ac_cv_func_cthread_fork+set}" = set; then
25495   echo $ECHO_N "(cached) $ECHO_C" >&6
25496 else
25497   cat >conftest.$ac_ext <<_ACEOF
25498 /* confdefs.h.  */
25499 _ACEOF
25500 cat confdefs.h >>conftest.$ac_ext
25501 cat >>conftest.$ac_ext <<_ACEOF
25502 /* end confdefs.h.  */
25503 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25505 #define cthread_fork innocuous_cthread_fork
25506
25507 /* System header to define __stub macros and hopefully few prototypes,
25508     which can conflict with char cthread_fork (); below.
25509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25510     <limits.h> exists even on freestanding compilers.  */
25511
25512 #ifdef __STDC__
25513 # include <limits.h>
25514 #else
25515 # include <assert.h>
25516 #endif
25517
25518 #undef cthread_fork
25519
25520 /* Override any gcc2 internal prototype to avoid an error.  */
25521 #ifdef __cplusplus
25522 extern "C"
25523 {
25524 #endif
25525 /* We use char because int might match the return type of a gcc2
25526    builtin and then its argument prototype would still apply.  */
25527 char cthread_fork ();
25528 /* The GNU C library defines this for functions which it implements
25529     to always fail with ENOSYS.  Some functions are actually named
25530     something starting with __ and the normal name is an alias.  */
25531 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25532 choke me
25533 #else
25534 char (*f) () = cthread_fork;
25535 #endif
25536 #ifdef __cplusplus
25537 }
25538 #endif
25539
25540 int
25541 main ()
25542 {
25543 return f != cthread_fork;
25544   ;
25545   return 0;
25546 }
25547 _ACEOF
25548 rm -f conftest.$ac_objext conftest$ac_exeext
25549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25550   (eval $ac_link) 2>conftest.er1
25551   ac_status=$?
25552   grep -v '^ *+' conftest.er1 >conftest.err
25553   rm -f conftest.er1
25554   cat conftest.err >&5
25555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556   (exit $ac_status); } &&
25557          { ac_try='test -z "$ac_c_werror_flag"
25558                          || test ! -s conftest.err'
25559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560   (eval $ac_try) 2>&5
25561   ac_status=$?
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); }; } &&
25564          { ac_try='test -s conftest$ac_exeext'
25565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566   (eval $ac_try) 2>&5
25567   ac_status=$?
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); }; }; then
25570   ac_cv_func_cthread_fork=yes
25571 else
25572   echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25574
25575 ac_cv_func_cthread_fork=no
25576 fi
25577 rm -f conftest.err conftest.$ac_objext \
25578       conftest$ac_exeext conftest.$ac_ext
25579 fi
25580 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25581 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25582 if test $ac_cv_func_cthread_fork = yes; then
25583   ol_link_threads=yes
25584 fi
25585
25586                 LIBS="$save_LIBS"
25587
25588                 if test $ol_link_threads = yes ; then
25589                         LTHREAD_LIBS="-lthreads"
25590                         ol_link_threads=mach
25591                         ol_with_threads=found
25592                 else
25593                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25594 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25595    { (exit 1); exit 1; }; }
25596                 fi
25597
25598         elif test $ol_with_threads = mach ; then
25599                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25600 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25601    { (exit 1); exit 1; }; }
25602         fi
25603
25604         if test $ol_link_threads = mach ; then
25605
25606 cat >>confdefs.h <<\_ACEOF
25607 #define HAVE_MACH_CTHREADS 1
25608 _ACEOF
25609
25610         elif test $ol_with_threads = found ; then
25611                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25612 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25613    { (exit 1); exit 1; }; }
25614         fi
25615         ;;
25616 esac
25617
25618 case $ol_with_threads in auto | yes | pth)
25619
25620
25621 for ac_header in pth.h
25622 do
25623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25625   echo "$as_me:$LINENO: checking for $ac_header" >&5
25626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25628   echo $ECHO_N "(cached) $ECHO_C" >&6
25629 fi
25630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25632 else
25633   # Is the header compilable?
25634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25636 cat >conftest.$ac_ext <<_ACEOF
25637 /* confdefs.h.  */
25638 _ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h.  */
25642 $ac_includes_default
25643 #include <$ac_header>
25644 _ACEOF
25645 rm -f conftest.$ac_objext
25646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25647   (eval $ac_compile) 2>conftest.er1
25648   ac_status=$?
25649   grep -v '^ *+' conftest.er1 >conftest.err
25650   rm -f conftest.er1
25651   cat conftest.err >&5
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); } &&
25654          { ac_try='test -z "$ac_c_werror_flag"
25655                          || test ! -s conftest.err'
25656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657   (eval $ac_try) 2>&5
25658   ac_status=$?
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); }; } &&
25661          { ac_try='test -s conftest.$ac_objext'
25662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663   (eval $ac_try) 2>&5
25664   ac_status=$?
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); }; }; then
25667   ac_header_compiler=yes
25668 else
25669   echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25671
25672 ac_header_compiler=no
25673 fi
25674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25676 echo "${ECHO_T}$ac_header_compiler" >&6
25677
25678 # Is the header present?
25679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25681 cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h.  */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h.  */
25687 #include <$ac_header>
25688 _ACEOF
25689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25691   ac_status=$?
25692   grep -v '^ *+' conftest.er1 >conftest.err
25693   rm -f conftest.er1
25694   cat conftest.err >&5
25695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696   (exit $ac_status); } >/dev/null; then
25697   if test -s conftest.err; then
25698     ac_cpp_err=$ac_c_preproc_warn_flag
25699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25700   else
25701     ac_cpp_err=
25702   fi
25703 else
25704   ac_cpp_err=yes
25705 fi
25706 if test -z "$ac_cpp_err"; then
25707   ac_header_preproc=yes
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712   ac_header_preproc=no
25713 fi
25714 rm -f conftest.err conftest.$ac_ext
25715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25716 echo "${ECHO_T}$ac_header_preproc" >&6
25717
25718 # So?  What about this header?
25719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25720   yes:no: )
25721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25725     ac_header_preproc=yes
25726     ;;
25727   no:yes:* )
25728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25730     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25731 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25732     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25734     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25735 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25738     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25740     (
25741       cat <<\_ASBOX
25742 ## --------------------------------------------- ##
25743 ## Report this to <http://www.openldap.org/its/> ##
25744 ## --------------------------------------------- ##
25745 _ASBOX
25746     ) |
25747       sed "s/^/$as_me: WARNING:     /" >&2
25748     ;;
25749 esac
25750 echo "$as_me:$LINENO: checking for $ac_header" >&5
25751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25753   echo $ECHO_N "(cached) $ECHO_C" >&6
25754 else
25755   eval "$as_ac_Header=\$ac_header_preproc"
25756 fi
25757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25759
25760 fi
25761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25762   cat >>confdefs.h <<_ACEOF
25763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25764 _ACEOF
25765
25766 fi
25767
25768 done
25769
25770
25771         if test $ac_cv_header_pth_h = yes ; then
25772                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25773 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25774 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25775   echo $ECHO_N "(cached) $ECHO_C" >&6
25776 else
25777   ac_check_lib_save_LIBS=$LIBS
25778 LIBS="-lpth  $LIBS"
25779 cat >conftest.$ac_ext <<_ACEOF
25780 /* confdefs.h.  */
25781 _ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h.  */
25785
25786 /* Override any gcc2 internal prototype to avoid an error.  */
25787 #ifdef __cplusplus
25788 extern "C"
25789 #endif
25790 /* We use char because int might match the return type of a gcc2
25791    builtin and then its argument prototype would still apply.  */
25792 char pth_version ();
25793 int
25794 main ()
25795 {
25796 pth_version ();
25797   ;
25798   return 0;
25799 }
25800 _ACEOF
25801 rm -f conftest.$ac_objext conftest$ac_exeext
25802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25803   (eval $ac_link) 2>conftest.er1
25804   ac_status=$?
25805   grep -v '^ *+' conftest.er1 >conftest.err
25806   rm -f conftest.er1
25807   cat conftest.err >&5
25808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809   (exit $ac_status); } &&
25810          { ac_try='test -z "$ac_c_werror_flag"
25811                          || test ! -s conftest.err'
25812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813   (eval $ac_try) 2>&5
25814   ac_status=$?
25815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816   (exit $ac_status); }; } &&
25817          { ac_try='test -s conftest$ac_exeext'
25818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819   (eval $ac_try) 2>&5
25820   ac_status=$?
25821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822   (exit $ac_status); }; }; then
25823   ac_cv_lib_pth_pth_version=yes
25824 else
25825   echo "$as_me: failed program was:" >&5
25826 sed 's/^/| /' conftest.$ac_ext >&5
25827
25828 ac_cv_lib_pth_pth_version=no
25829 fi
25830 rm -f conftest.err conftest.$ac_objext \
25831       conftest$ac_exeext conftest.$ac_ext
25832 LIBS=$ac_check_lib_save_LIBS
25833 fi
25834 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25835 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25836 if test $ac_cv_lib_pth_pth_version = yes; then
25837   have_pth=yes
25838 else
25839   have_pth=no
25840 fi
25841
25842
25843                 if test $have_pth = yes ; then
25844
25845 cat >>confdefs.h <<\_ACEOF
25846 #define HAVE_GNU_PTH 1
25847 _ACEOF
25848
25849                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25850                         ol_link_threads=pth
25851                         ol_with_threads=found
25852
25853                         if test $ol_with_yielding_select = auto ; then
25854                                 ol_with_yielding_select=yes
25855                         fi
25856                 fi
25857         fi
25858         ;;
25859 esac
25860
25861 case $ol_with_threads in auto | yes | lwp)
25862
25863
25864
25865 for ac_header in thread.h synch.h
25866 do
25867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25869   echo "$as_me:$LINENO: checking for $ac_header" >&5
25870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25872   echo $ECHO_N "(cached) $ECHO_C" >&6
25873 fi
25874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25876 else
25877   # Is the header compilable?
25878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25880 cat >conftest.$ac_ext <<_ACEOF
25881 /* confdefs.h.  */
25882 _ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h.  */
25886 $ac_includes_default
25887 #include <$ac_header>
25888 _ACEOF
25889 rm -f conftest.$ac_objext
25890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25891   (eval $ac_compile) 2>conftest.er1
25892   ac_status=$?
25893   grep -v '^ *+' conftest.er1 >conftest.err
25894   rm -f conftest.er1
25895   cat conftest.err >&5
25896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897   (exit $ac_status); } &&
25898          { ac_try='test -z "$ac_c_werror_flag"
25899                          || test ! -s conftest.err'
25900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901   (eval $ac_try) 2>&5
25902   ac_status=$?
25903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904   (exit $ac_status); }; } &&
25905          { ac_try='test -s conftest.$ac_objext'
25906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907   (eval $ac_try) 2>&5
25908   ac_status=$?
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); }; }; then
25911   ac_header_compiler=yes
25912 else
25913   echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25915
25916 ac_header_compiler=no
25917 fi
25918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25920 echo "${ECHO_T}$ac_header_compiler" >&6
25921
25922 # Is the header present?
25923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25925 cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h.  */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h.  */
25931 #include <$ac_header>
25932 _ACEOF
25933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25935   ac_status=$?
25936   grep -v '^ *+' conftest.er1 >conftest.err
25937   rm -f conftest.er1
25938   cat conftest.err >&5
25939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940   (exit $ac_status); } >/dev/null; then
25941   if test -s conftest.err; then
25942     ac_cpp_err=$ac_c_preproc_warn_flag
25943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25944   else
25945     ac_cpp_err=
25946   fi
25947 else
25948   ac_cpp_err=yes
25949 fi
25950 if test -z "$ac_cpp_err"; then
25951   ac_header_preproc=yes
25952 else
25953   echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25955
25956   ac_header_preproc=no
25957 fi
25958 rm -f conftest.err conftest.$ac_ext
25959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25960 echo "${ECHO_T}$ac_header_preproc" >&6
25961
25962 # So?  What about this header?
25963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25964   yes:no: )
25965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25969     ac_header_preproc=yes
25970     ;;
25971   no:yes:* )
25972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25984     (
25985       cat <<\_ASBOX
25986 ## --------------------------------------------- ##
25987 ## Report this to <http://www.openldap.org/its/> ##
25988 ## --------------------------------------------- ##
25989 _ASBOX
25990     ) |
25991       sed "s/^/$as_me: WARNING:     /" >&2
25992     ;;
25993 esac
25994 echo "$as_me:$LINENO: checking for $ac_header" >&5
25995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25997   echo $ECHO_N "(cached) $ECHO_C" >&6
25998 else
25999   eval "$as_ac_Header=\$ac_header_preproc"
26000 fi
26001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26003
26004 fi
26005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26006   cat >>confdefs.h <<_ACEOF
26007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26008 _ACEOF
26009
26010 fi
26011
26012 done
26013
26014         if test $ac_cv_header_thread_h = yes &&
26015            test $ac_cv_header_synch_h = yes ; then
26016                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26017 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26018 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26019   echo $ECHO_N "(cached) $ECHO_C" >&6
26020 else
26021   ac_check_lib_save_LIBS=$LIBS
26022 LIBS="-lthread  $LIBS"
26023 cat >conftest.$ac_ext <<_ACEOF
26024 /* confdefs.h.  */
26025 _ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h.  */
26029
26030 /* Override any gcc2 internal prototype to avoid an error.  */
26031 #ifdef __cplusplus
26032 extern "C"
26033 #endif
26034 /* We use char because int might match the return type of a gcc2
26035    builtin and then its argument prototype would still apply.  */
26036 char thr_create ();
26037 int
26038 main ()
26039 {
26040 thr_create ();
26041   ;
26042   return 0;
26043 }
26044 _ACEOF
26045 rm -f conftest.$ac_objext conftest$ac_exeext
26046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26047   (eval $ac_link) 2>conftest.er1
26048   ac_status=$?
26049   grep -v '^ *+' conftest.er1 >conftest.err
26050   rm -f conftest.er1
26051   cat conftest.err >&5
26052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053   (exit $ac_status); } &&
26054          { ac_try='test -z "$ac_c_werror_flag"
26055                          || test ! -s conftest.err'
26056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26057   (eval $ac_try) 2>&5
26058   ac_status=$?
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); }; } &&
26061          { ac_try='test -s conftest$ac_exeext'
26062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063   (eval $ac_try) 2>&5
26064   ac_status=$?
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); }; }; then
26067   ac_cv_lib_thread_thr_create=yes
26068 else
26069   echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26071
26072 ac_cv_lib_thread_thr_create=no
26073 fi
26074 rm -f conftest.err conftest.$ac_objext \
26075       conftest$ac_exeext conftest.$ac_ext
26076 LIBS=$ac_check_lib_save_LIBS
26077 fi
26078 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26079 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26080 if test $ac_cv_lib_thread_thr_create = yes; then
26081   have_thr=yes
26082 else
26083   have_thr=no
26084 fi
26085
26086
26087                 if test $have_thr = yes ; then
26088
26089 cat >>confdefs.h <<\_ACEOF
26090 #define HAVE_THR 1
26091 _ACEOF
26092
26093                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26094                         ol_link_threads=thr
26095
26096                         if test $ol_with_yielding_select = auto ; then
26097                                 ol_with_yielding_select=yes
26098                         fi
26099
26100
26101
26102 for ac_func in \
26103                                 thr_setconcurrency \
26104                                 thr_getconcurrency \
26105
26106 do
26107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26108 echo "$as_me:$LINENO: checking for $ac_func" >&5
26109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26110 if eval "test \"\${$as_ac_var+set}\" = set"; then
26111   echo $ECHO_N "(cached) $ECHO_C" >&6
26112 else
26113   cat >conftest.$ac_ext <<_ACEOF
26114 /* confdefs.h.  */
26115 _ACEOF
26116 cat confdefs.h >>conftest.$ac_ext
26117 cat >>conftest.$ac_ext <<_ACEOF
26118 /* end confdefs.h.  */
26119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26121 #define $ac_func innocuous_$ac_func
26122
26123 /* System header to define __stub macros and hopefully few prototypes,
26124     which can conflict with char $ac_func (); below.
26125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26126     <limits.h> exists even on freestanding compilers.  */
26127
26128 #ifdef __STDC__
26129 # include <limits.h>
26130 #else
26131 # include <assert.h>
26132 #endif
26133
26134 #undef $ac_func
26135
26136 /* Override any gcc2 internal prototype to avoid an error.  */
26137 #ifdef __cplusplus
26138 extern "C"
26139 {
26140 #endif
26141 /* We use char because int might match the return type of a gcc2
26142    builtin and then its argument prototype would still apply.  */
26143 char $ac_func ();
26144 /* The GNU C library defines this for functions which it implements
26145     to always fail with ENOSYS.  Some functions are actually named
26146     something starting with __ and the normal name is an alias.  */
26147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26148 choke me
26149 #else
26150 char (*f) () = $ac_func;
26151 #endif
26152 #ifdef __cplusplus
26153 }
26154 #endif
26155
26156 int
26157 main ()
26158 {
26159 return f != $ac_func;
26160   ;
26161   return 0;
26162 }
26163 _ACEOF
26164 rm -f conftest.$ac_objext conftest$ac_exeext
26165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26166   (eval $ac_link) 2>conftest.er1
26167   ac_status=$?
26168   grep -v '^ *+' conftest.er1 >conftest.err
26169   rm -f conftest.er1
26170   cat conftest.err >&5
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); } &&
26173          { ac_try='test -z "$ac_c_werror_flag"
26174                          || test ! -s conftest.err'
26175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176   (eval $ac_try) 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); }; } &&
26180          { ac_try='test -s conftest$ac_exeext'
26181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182   (eval $ac_try) 2>&5
26183   ac_status=$?
26184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185   (exit $ac_status); }; }; then
26186   eval "$as_ac_var=yes"
26187 else
26188   echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191 eval "$as_ac_var=no"
26192 fi
26193 rm -f conftest.err conftest.$ac_objext \
26194       conftest$ac_exeext conftest.$ac_ext
26195 fi
26196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26198 if test `eval echo '${'$as_ac_var'}'` = yes; then
26199   cat >>confdefs.h <<_ACEOF
26200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26201 _ACEOF
26202
26203 fi
26204 done
26205
26206                 fi
26207         fi
26208
26209
26210 for ac_header in lwp/lwp.h
26211 do
26212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26214   echo "$as_me:$LINENO: checking for $ac_header" >&5
26215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26217   echo $ECHO_N "(cached) $ECHO_C" >&6
26218 fi
26219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26221 else
26222   # Is the header compilable?
26223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26225 cat >conftest.$ac_ext <<_ACEOF
26226 /* confdefs.h.  */
26227 _ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h.  */
26231 $ac_includes_default
26232 #include <$ac_header>
26233 _ACEOF
26234 rm -f conftest.$ac_objext
26235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26236   (eval $ac_compile) 2>conftest.er1
26237   ac_status=$?
26238   grep -v '^ *+' conftest.er1 >conftest.err
26239   rm -f conftest.er1
26240   cat conftest.err >&5
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); } &&
26243          { ac_try='test -z "$ac_c_werror_flag"
26244                          || test ! -s conftest.err'
26245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246   (eval $ac_try) 2>&5
26247   ac_status=$?
26248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249   (exit $ac_status); }; } &&
26250          { ac_try='test -s conftest.$ac_objext'
26251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252   (eval $ac_try) 2>&5
26253   ac_status=$?
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); }; }; then
26256   ac_header_compiler=yes
26257 else
26258   echo "$as_me: failed program was:" >&5
26259 sed 's/^/| /' conftest.$ac_ext >&5
26260
26261 ac_header_compiler=no
26262 fi
26263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26265 echo "${ECHO_T}$ac_header_compiler" >&6
26266
26267 # Is the header present?
26268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26270 cat >conftest.$ac_ext <<_ACEOF
26271 /* confdefs.h.  */
26272 _ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h.  */
26276 #include <$ac_header>
26277 _ACEOF
26278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26280   ac_status=$?
26281   grep -v '^ *+' conftest.er1 >conftest.err
26282   rm -f conftest.er1
26283   cat conftest.err >&5
26284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285   (exit $ac_status); } >/dev/null; then
26286   if test -s conftest.err; then
26287     ac_cpp_err=$ac_c_preproc_warn_flag
26288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26289   else
26290     ac_cpp_err=
26291   fi
26292 else
26293   ac_cpp_err=yes
26294 fi
26295 if test -z "$ac_cpp_err"; then
26296   ac_header_preproc=yes
26297 else
26298   echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26300
26301   ac_header_preproc=no
26302 fi
26303 rm -f conftest.err conftest.$ac_ext
26304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26305 echo "${ECHO_T}$ac_header_preproc" >&6
26306
26307 # So?  What about this header?
26308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26309   yes:no: )
26310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26314     ac_header_preproc=yes
26315     ;;
26316   no:yes:* )
26317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26329     (
26330       cat <<\_ASBOX
26331 ## --------------------------------------------- ##
26332 ## Report this to <http://www.openldap.org/its/> ##
26333 ## --------------------------------------------- ##
26334 _ASBOX
26335     ) |
26336       sed "s/^/$as_me: WARNING:     /" >&2
26337     ;;
26338 esac
26339 echo "$as_me:$LINENO: checking for $ac_header" >&5
26340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26342   echo $ECHO_N "(cached) $ECHO_C" >&6
26343 else
26344   eval "$as_ac_Header=\$ac_header_preproc"
26345 fi
26346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26348
26349 fi
26350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26351   cat >>confdefs.h <<_ACEOF
26352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26353 _ACEOF
26354
26355 fi
26356
26357 done
26358
26359         if test $ac_cv_header_lwp_lwp_h = yes ; then
26360                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26361 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26362 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26363   echo $ECHO_N "(cached) $ECHO_C" >&6
26364 else
26365   ac_check_lib_save_LIBS=$LIBS
26366 LIBS="-llwp  $LIBS"
26367 cat >conftest.$ac_ext <<_ACEOF
26368 /* confdefs.h.  */
26369 _ACEOF
26370 cat confdefs.h >>conftest.$ac_ext
26371 cat >>conftest.$ac_ext <<_ACEOF
26372 /* end confdefs.h.  */
26373
26374 /* Override any gcc2 internal prototype to avoid an error.  */
26375 #ifdef __cplusplus
26376 extern "C"
26377 #endif
26378 /* We use char because int might match the return type of a gcc2
26379    builtin and then its argument prototype would still apply.  */
26380 char lwp_create ();
26381 int
26382 main ()
26383 {
26384 lwp_create ();
26385   ;
26386   return 0;
26387 }
26388 _ACEOF
26389 rm -f conftest.$ac_objext conftest$ac_exeext
26390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26391   (eval $ac_link) 2>conftest.er1
26392   ac_status=$?
26393   grep -v '^ *+' conftest.er1 >conftest.err
26394   rm -f conftest.er1
26395   cat conftest.err >&5
26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397   (exit $ac_status); } &&
26398          { ac_try='test -z "$ac_c_werror_flag"
26399                          || test ! -s conftest.err'
26400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401   (eval $ac_try) 2>&5
26402   ac_status=$?
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); }; } &&
26405          { ac_try='test -s conftest$ac_exeext'
26406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407   (eval $ac_try) 2>&5
26408   ac_status=$?
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); }; }; then
26411   ac_cv_lib_lwp_lwp_create=yes
26412 else
26413   echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26415
26416 ac_cv_lib_lwp_lwp_create=no
26417 fi
26418 rm -f conftest.err conftest.$ac_objext \
26419       conftest$ac_exeext conftest.$ac_ext
26420 LIBS=$ac_check_lib_save_LIBS
26421 fi
26422 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26423 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26424 if test $ac_cv_lib_lwp_lwp_create = yes; then
26425   have_lwp=yes
26426 else
26427   have_lwp=no
26428 fi
26429
26430
26431                 if test $have_lwp = yes ; then
26432
26433 cat >>confdefs.h <<\_ACEOF
26434 #define HAVE_LWP 1
26435 _ACEOF
26436
26437                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26438                         ol_link_threads=lwp
26439
26440                         if test $ol_with_yielding_select = auto ; then
26441                                 ol_with_yielding_select=no
26442                         fi
26443                 fi
26444         fi
26445         ;;
26446 esac
26447
26448 if test $ol_with_yielding_select = yes ; then
26449
26450 cat >>confdefs.h <<\_ACEOF
26451 #define HAVE_YIELDING_SELECT 1
26452 _ACEOF
26453
26454 fi
26455
26456 if test $ol_with_threads = manual ; then
26457                 ol_link_threads=yes
26458
26459         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26460 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26461
26462
26463
26464 for ac_header in pthread.h sched.h
26465 do
26466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26468   echo "$as_me:$LINENO: checking for $ac_header" >&5
26469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26471   echo $ECHO_N "(cached) $ECHO_C" >&6
26472 fi
26473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26475 else
26476   # Is the header compilable?
26477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26479 cat >conftest.$ac_ext <<_ACEOF
26480 /* confdefs.h.  */
26481 _ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h.  */
26485 $ac_includes_default
26486 #include <$ac_header>
26487 _ACEOF
26488 rm -f conftest.$ac_objext
26489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26490   (eval $ac_compile) 2>conftest.er1
26491   ac_status=$?
26492   grep -v '^ *+' conftest.er1 >conftest.err
26493   rm -f conftest.er1
26494   cat conftest.err >&5
26495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496   (exit $ac_status); } &&
26497          { ac_try='test -z "$ac_c_werror_flag"
26498                          || test ! -s conftest.err'
26499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500   (eval $ac_try) 2>&5
26501   ac_status=$?
26502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503   (exit $ac_status); }; } &&
26504          { ac_try='test -s conftest.$ac_objext'
26505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506   (eval $ac_try) 2>&5
26507   ac_status=$?
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); }; }; then
26510   ac_header_compiler=yes
26511 else
26512   echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26514
26515 ac_header_compiler=no
26516 fi
26517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26519 echo "${ECHO_T}$ac_header_compiler" >&6
26520
26521 # Is the header present?
26522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26524 cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h.  */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h.  */
26530 #include <$ac_header>
26531 _ACEOF
26532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26534   ac_status=$?
26535   grep -v '^ *+' conftest.er1 >conftest.err
26536   rm -f conftest.er1
26537   cat conftest.err >&5
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); } >/dev/null; then
26540   if test -s conftest.err; then
26541     ac_cpp_err=$ac_c_preproc_warn_flag
26542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26543   else
26544     ac_cpp_err=
26545   fi
26546 else
26547   ac_cpp_err=yes
26548 fi
26549 if test -z "$ac_cpp_err"; then
26550   ac_header_preproc=yes
26551 else
26552   echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26554
26555   ac_header_preproc=no
26556 fi
26557 rm -f conftest.err conftest.$ac_ext
26558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26559 echo "${ECHO_T}$ac_header_preproc" >&6
26560
26561 # So?  What about this header?
26562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26563   yes:no: )
26564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26568     ac_header_preproc=yes
26569     ;;
26570   no:yes:* )
26571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26583     (
26584       cat <<\_ASBOX
26585 ## --------------------------------------------- ##
26586 ## Report this to <http://www.openldap.org/its/> ##
26587 ## --------------------------------------------- ##
26588 _ASBOX
26589     ) |
26590       sed "s/^/$as_me: WARNING:     /" >&2
26591     ;;
26592 esac
26593 echo "$as_me:$LINENO: checking for $ac_header" >&5
26594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26596   echo $ECHO_N "(cached) $ECHO_C" >&6
26597 else
26598   eval "$as_ac_Header=\$ac_header_preproc"
26599 fi
26600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26602
26603 fi
26604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26605   cat >>confdefs.h <<_ACEOF
26606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26607 _ACEOF
26608
26609 fi
26610
26611 done
26612
26613
26614
26615 for ac_func in sched_yield pthread_yield
26616 do
26617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26618 echo "$as_me:$LINENO: checking for $ac_func" >&5
26619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26620 if eval "test \"\${$as_ac_var+set}\" = set"; then
26621   echo $ECHO_N "(cached) $ECHO_C" >&6
26622 else
26623   cat >conftest.$ac_ext <<_ACEOF
26624 /* confdefs.h.  */
26625 _ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h.  */
26629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26631 #define $ac_func innocuous_$ac_func
26632
26633 /* System header to define __stub macros and hopefully few prototypes,
26634     which can conflict with char $ac_func (); below.
26635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26636     <limits.h> exists even on freestanding compilers.  */
26637
26638 #ifdef __STDC__
26639 # include <limits.h>
26640 #else
26641 # include <assert.h>
26642 #endif
26643
26644 #undef $ac_func
26645
26646 /* Override any gcc2 internal prototype to avoid an error.  */
26647 #ifdef __cplusplus
26648 extern "C"
26649 {
26650 #endif
26651 /* We use char because int might match the return type of a gcc2
26652    builtin and then its argument prototype would still apply.  */
26653 char $ac_func ();
26654 /* The GNU C library defines this for functions which it implements
26655     to always fail with ENOSYS.  Some functions are actually named
26656     something starting with __ and the normal name is an alias.  */
26657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26658 choke me
26659 #else
26660 char (*f) () = $ac_func;
26661 #endif
26662 #ifdef __cplusplus
26663 }
26664 #endif
26665
26666 int
26667 main ()
26668 {
26669 return f != $ac_func;
26670   ;
26671   return 0;
26672 }
26673 _ACEOF
26674 rm -f conftest.$ac_objext conftest$ac_exeext
26675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26676   (eval $ac_link) 2>conftest.er1
26677   ac_status=$?
26678   grep -v '^ *+' conftest.er1 >conftest.err
26679   rm -f conftest.er1
26680   cat conftest.err >&5
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); } &&
26683          { ac_try='test -z "$ac_c_werror_flag"
26684                          || test ! -s conftest.err'
26685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686   (eval $ac_try) 2>&5
26687   ac_status=$?
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); }; } &&
26690          { ac_try='test -s conftest$ac_exeext'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; }; then
26696   eval "$as_ac_var=yes"
26697 else
26698   echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 eval "$as_ac_var=no"
26702 fi
26703 rm -f conftest.err conftest.$ac_objext \
26704       conftest$ac_exeext conftest.$ac_ext
26705 fi
26706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26708 if test `eval echo '${'$as_ac_var'}'` = yes; then
26709   cat >>confdefs.h <<_ACEOF
26710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26711 _ACEOF
26712
26713 fi
26714 done
26715
26716
26717         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26718 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26719 if test "${ol_cv_header_linux_threads+set}" = set; then
26720   echo $ECHO_N "(cached) $ECHO_C" >&6
26721 else
26722   cat >conftest.$ac_ext <<_ACEOF
26723 /* confdefs.h.  */
26724 _ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h.  */
26728 #include <pthread.h>
26729 _ACEOF
26730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26731   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26732   ol_cv_header_linux_threads=yes
26733 else
26734   ol_cv_header_linux_threads=no
26735 fi
26736 rm -f conftest*
26737
26738
26739 fi
26740 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26741 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26742         if test $ol_cv_header_linux_threads = yes; then
26743
26744 cat >>confdefs.h <<\_ACEOF
26745 #define HAVE_LINUX_THREADS 1
26746 _ACEOF
26747
26748         fi
26749
26750
26751
26752 for ac_header in mach/cthreads.h
26753 do
26754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26756   echo "$as_me:$LINENO: checking for $ac_header" >&5
26757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26759   echo $ECHO_N "(cached) $ECHO_C" >&6
26760 fi
26761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26763 else
26764   # Is the header compilable?
26765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26767 cat >conftest.$ac_ext <<_ACEOF
26768 /* confdefs.h.  */
26769 _ACEOF
26770 cat confdefs.h >>conftest.$ac_ext
26771 cat >>conftest.$ac_ext <<_ACEOF
26772 /* end confdefs.h.  */
26773 $ac_includes_default
26774 #include <$ac_header>
26775 _ACEOF
26776 rm -f conftest.$ac_objext
26777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26778   (eval $ac_compile) 2>conftest.er1
26779   ac_status=$?
26780   grep -v '^ *+' conftest.er1 >conftest.err
26781   rm -f conftest.er1
26782   cat conftest.err >&5
26783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784   (exit $ac_status); } &&
26785          { ac_try='test -z "$ac_c_werror_flag"
26786                          || test ! -s conftest.err'
26787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788   (eval $ac_try) 2>&5
26789   ac_status=$?
26790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791   (exit $ac_status); }; } &&
26792          { ac_try='test -s conftest.$ac_objext'
26793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794   (eval $ac_try) 2>&5
26795   ac_status=$?
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); }; }; then
26798   ac_header_compiler=yes
26799 else
26800   echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26802
26803 ac_header_compiler=no
26804 fi
26805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26807 echo "${ECHO_T}$ac_header_compiler" >&6
26808
26809 # Is the header present?
26810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26812 cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818 #include <$ac_header>
26819 _ACEOF
26820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26822   ac_status=$?
26823   grep -v '^ *+' conftest.er1 >conftest.err
26824   rm -f conftest.er1
26825   cat conftest.err >&5
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } >/dev/null; then
26828   if test -s conftest.err; then
26829     ac_cpp_err=$ac_c_preproc_warn_flag
26830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26831   else
26832     ac_cpp_err=
26833   fi
26834 else
26835   ac_cpp_err=yes
26836 fi
26837 if test -z "$ac_cpp_err"; then
26838   ac_header_preproc=yes
26839 else
26840   echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26842
26843   ac_header_preproc=no
26844 fi
26845 rm -f conftest.err conftest.$ac_ext
26846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26847 echo "${ECHO_T}$ac_header_preproc" >&6
26848
26849 # So?  What about this header?
26850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26851   yes:no: )
26852     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26856     ac_header_preproc=yes
26857     ;;
26858   no:yes:* )
26859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26861     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26862 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26863     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26865     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26866 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26869     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26871     (
26872       cat <<\_ASBOX
26873 ## --------------------------------------------- ##
26874 ## Report this to <http://www.openldap.org/its/> ##
26875 ## --------------------------------------------- ##
26876 _ASBOX
26877     ) |
26878       sed "s/^/$as_me: WARNING:     /" >&2
26879     ;;
26880 esac
26881 echo "$as_me:$LINENO: checking for $ac_header" >&5
26882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26884   echo $ECHO_N "(cached) $ECHO_C" >&6
26885 else
26886   eval "$as_ac_Header=\$ac_header_preproc"
26887 fi
26888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26890
26891 fi
26892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26893   cat >>confdefs.h <<_ACEOF
26894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26895 _ACEOF
26896
26897 fi
26898
26899 done
26900
26901
26902 for ac_header in lwp/lwp.h
26903 do
26904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906   echo "$as_me:$LINENO: checking for $ac_header" >&5
26907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26909   echo $ECHO_N "(cached) $ECHO_C" >&6
26910 fi
26911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26913 else
26914   # Is the header compilable?
26915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26917 cat >conftest.$ac_ext <<_ACEOF
26918 /* confdefs.h.  */
26919 _ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h.  */
26923 $ac_includes_default
26924 #include <$ac_header>
26925 _ACEOF
26926 rm -f conftest.$ac_objext
26927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26928   (eval $ac_compile) 2>conftest.er1
26929   ac_status=$?
26930   grep -v '^ *+' conftest.er1 >conftest.err
26931   rm -f conftest.er1
26932   cat conftest.err >&5
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); } &&
26935          { ac_try='test -z "$ac_c_werror_flag"
26936                          || test ! -s conftest.err'
26937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938   (eval $ac_try) 2>&5
26939   ac_status=$?
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); }; } &&
26942          { ac_try='test -s conftest.$ac_objext'
26943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944   (eval $ac_try) 2>&5
26945   ac_status=$?
26946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); }; }; then
26948   ac_header_compiler=yes
26949 else
26950   echo "$as_me: failed program was:" >&5
26951 sed 's/^/| /' conftest.$ac_ext >&5
26952
26953 ac_header_compiler=no
26954 fi
26955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26957 echo "${ECHO_T}$ac_header_compiler" >&6
26958
26959 # Is the header present?
26960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26962 cat >conftest.$ac_ext <<_ACEOF
26963 /* confdefs.h.  */
26964 _ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h.  */
26968 #include <$ac_header>
26969 _ACEOF
26970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26971   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26972   ac_status=$?
26973   grep -v '^ *+' conftest.er1 >conftest.err
26974   rm -f conftest.er1
26975   cat conftest.err >&5
26976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977   (exit $ac_status); } >/dev/null; then
26978   if test -s conftest.err; then
26979     ac_cpp_err=$ac_c_preproc_warn_flag
26980     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26981   else
26982     ac_cpp_err=
26983   fi
26984 else
26985   ac_cpp_err=yes
26986 fi
26987 if test -z "$ac_cpp_err"; then
26988   ac_header_preproc=yes
26989 else
26990   echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26992
26993   ac_header_preproc=no
26994 fi
26995 rm -f conftest.err conftest.$ac_ext
26996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26997 echo "${ECHO_T}$ac_header_preproc" >&6
26998
26999 # So?  What about this header?
27000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27001   yes:no: )
27002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27006     ac_header_preproc=yes
27007     ;;
27008   no:yes:* )
27009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27021     (
27022       cat <<\_ASBOX
27023 ## --------------------------------------------- ##
27024 ## Report this to <http://www.openldap.org/its/> ##
27025 ## --------------------------------------------- ##
27026 _ASBOX
27027     ) |
27028       sed "s/^/$as_me: WARNING:     /" >&2
27029     ;;
27030 esac
27031 echo "$as_me:$LINENO: checking for $ac_header" >&5
27032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27034   echo $ECHO_N "(cached) $ECHO_C" >&6
27035 else
27036   eval "$as_ac_Header=\$ac_header_preproc"
27037 fi
27038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27040
27041 fi
27042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27043   cat >>confdefs.h <<_ACEOF
27044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27045 _ACEOF
27046
27047 fi
27048
27049 done
27050
27051
27052
27053 for ac_header in thread.h synch.h
27054 do
27055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27057   echo "$as_me:$LINENO: checking for $ac_header" >&5
27058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27060   echo $ECHO_N "(cached) $ECHO_C" >&6
27061 fi
27062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27064 else
27065   # Is the header compilable?
27066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27068 cat >conftest.$ac_ext <<_ACEOF
27069 /* confdefs.h.  */
27070 _ACEOF
27071 cat confdefs.h >>conftest.$ac_ext
27072 cat >>conftest.$ac_ext <<_ACEOF
27073 /* end confdefs.h.  */
27074 $ac_includes_default
27075 #include <$ac_header>
27076 _ACEOF
27077 rm -f conftest.$ac_objext
27078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27079   (eval $ac_compile) 2>conftest.er1
27080   ac_status=$?
27081   grep -v '^ *+' conftest.er1 >conftest.err
27082   rm -f conftest.er1
27083   cat conftest.err >&5
27084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); } &&
27086          { ac_try='test -z "$ac_c_werror_flag"
27087                          || test ! -s conftest.err'
27088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089   (eval $ac_try) 2>&5
27090   ac_status=$?
27091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); }; } &&
27093          { ac_try='test -s conftest.$ac_objext'
27094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095   (eval $ac_try) 2>&5
27096   ac_status=$?
27097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098   (exit $ac_status); }; }; then
27099   ac_header_compiler=yes
27100 else
27101   echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27103
27104 ac_header_compiler=no
27105 fi
27106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27108 echo "${ECHO_T}$ac_header_compiler" >&6
27109
27110 # Is the header present?
27111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27113 cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h.  */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h.  */
27119 #include <$ac_header>
27120 _ACEOF
27121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27123   ac_status=$?
27124   grep -v '^ *+' conftest.er1 >conftest.err
27125   rm -f conftest.er1
27126   cat conftest.err >&5
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); } >/dev/null; then
27129   if test -s conftest.err; then
27130     ac_cpp_err=$ac_c_preproc_warn_flag
27131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27132   else
27133     ac_cpp_err=
27134   fi
27135 else
27136   ac_cpp_err=yes
27137 fi
27138 if test -z "$ac_cpp_err"; then
27139   ac_header_preproc=yes
27140 else
27141   echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27143
27144   ac_header_preproc=no
27145 fi
27146 rm -f conftest.err conftest.$ac_ext
27147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27148 echo "${ECHO_T}$ac_header_preproc" >&6
27149
27150 # So?  What about this header?
27151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27152   yes:no: )
27153     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27157     ac_header_preproc=yes
27158     ;;
27159   no:yes:* )
27160     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27162     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27163 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27164     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27166     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27167 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27170     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27172     (
27173       cat <<\_ASBOX
27174 ## --------------------------------------------- ##
27175 ## Report this to <http://www.openldap.org/its/> ##
27176 ## --------------------------------------------- ##
27177 _ASBOX
27178     ) |
27179       sed "s/^/$as_me: WARNING:     /" >&2
27180     ;;
27181 esac
27182 echo "$as_me:$LINENO: checking for $ac_header" >&5
27183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27185   echo $ECHO_N "(cached) $ECHO_C" >&6
27186 else
27187   eval "$as_ac_Header=\$ac_header_preproc"
27188 fi
27189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27191
27192 fi
27193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27194   cat >>confdefs.h <<_ACEOF
27195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27196 _ACEOF
27197
27198 fi
27199
27200 done
27201
27202 fi
27203
27204 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27205                         cat >>confdefs.h <<\_ACEOF
27206 #define REENTRANT 1
27207 _ACEOF
27208
27209         cat >>confdefs.h <<\_ACEOF
27210 #define _REENTRANT 1
27211 _ACEOF
27212
27213         cat >>confdefs.h <<\_ACEOF
27214 #define THREAD_SAFE 1
27215 _ACEOF
27216
27217         cat >>confdefs.h <<\_ACEOF
27218 #define _THREAD_SAFE 1
27219 _ACEOF
27220
27221         cat >>confdefs.h <<\_ACEOF
27222 #define THREADSAFE 1
27223 _ACEOF
27224
27225         cat >>confdefs.h <<\_ACEOF
27226 #define _THREADSAFE 1
27227 _ACEOF
27228
27229         cat >>confdefs.h <<\_ACEOF
27230 #define _SGI_MP_SOURCE 1
27231 _ACEOF
27232
27233
27234                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27235 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27236 if test "${ol_cv_errno_thread_specific+set}" = set; then
27237   echo $ECHO_N "(cached) $ECHO_C" >&6
27238 else
27239
27240                 cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h.  */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h.  */
27246 #include <errno.h>
27247 int
27248 main ()
27249 {
27250 errno = 0;
27251   ;
27252   return 0;
27253 }
27254 _ACEOF
27255 rm -f conftest.$ac_objext conftest$ac_exeext
27256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27257   (eval $ac_link) 2>conftest.er1
27258   ac_status=$?
27259   grep -v '^ *+' conftest.er1 >conftest.err
27260   rm -f conftest.er1
27261   cat conftest.err >&5
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); } &&
27264          { ac_try='test -z "$ac_c_werror_flag"
27265                          || test ! -s conftest.err'
27266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27267   (eval $ac_try) 2>&5
27268   ac_status=$?
27269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270   (exit $ac_status); }; } &&
27271          { ac_try='test -s conftest$ac_exeext'
27272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27273   (eval $ac_try) 2>&5
27274   ac_status=$?
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); }; }; then
27277   ol_cv_errno_thread_specific=yes
27278 else
27279   echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27281
27282 ol_cv_errno_thread_specific=no
27283 fi
27284 rm -f conftest.err conftest.$ac_objext \
27285       conftest$ac_exeext conftest.$ac_ext
27286
27287 fi
27288 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27289 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27290
27291                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27292 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27293 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27294   echo $ECHO_N "(cached) $ECHO_C" >&6
27295 else
27296
27297                 cat >conftest.$ac_ext <<_ACEOF
27298 /* confdefs.h.  */
27299 _ACEOF
27300 cat confdefs.h >>conftest.$ac_ext
27301 cat >>conftest.$ac_ext <<_ACEOF
27302 /* end confdefs.h.  */
27303 #include <netdb.h>
27304 int
27305 main ()
27306 {
27307 h_errno = 0;
27308   ;
27309   return 0;
27310 }
27311 _ACEOF
27312 rm -f conftest.$ac_objext conftest$ac_exeext
27313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27314   (eval $ac_link) 2>conftest.er1
27315   ac_status=$?
27316   grep -v '^ *+' conftest.er1 >conftest.err
27317   rm -f conftest.er1
27318   cat conftest.err >&5
27319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320   (exit $ac_status); } &&
27321          { ac_try='test -z "$ac_c_werror_flag"
27322                          || test ! -s conftest.err'
27323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324   (eval $ac_try) 2>&5
27325   ac_status=$?
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); }; } &&
27328          { ac_try='test -s conftest$ac_exeext'
27329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27330   (eval $ac_try) 2>&5
27331   ac_status=$?
27332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333   (exit $ac_status); }; }; then
27334   ol_cv_h_errno_thread_specific=yes
27335 else
27336   echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27338
27339 ol_cv_h_errno_thread_specific=no
27340 fi
27341 rm -f conftest.err conftest.$ac_objext \
27342       conftest$ac_exeext conftest.$ac_ext
27343
27344 fi
27345 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27346 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27347
27348         if test $ol_cv_errno_thread_specific != yes ||
27349            test $ol_cv_h_errno_thread_specific != yes ; then
27350                 LIBS="$LTHREAD_LIBS $LIBS"
27351                 LTHREAD_LIBS=""
27352         fi
27353
27354 fi
27355
27356 if test $ol_link_threads = no ; then
27357         if test $ol_with_threads = yes ; then
27358                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27359 echo "$as_me: error: no suitable thread support" >&2;}
27360    { (exit 1); exit 1; }; }
27361         fi
27362
27363         if test $ol_with_threads = auto ; then
27364                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27365 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27366                 ol_with_threads=no
27367         fi
27368
27369
27370 cat >>confdefs.h <<\_ACEOF
27371 #define NO_THREADS 1
27372 _ACEOF
27373
27374         LTHREAD_LIBS=""
27375         BUILD_THREAD=no
27376 else
27377         BUILD_THREAD=yes
27378 fi
27379
27380 if test $ol_link_threads != no ; then
27381
27382 cat >>confdefs.h <<\_ACEOF
27383 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27384 _ACEOF
27385
27386 fi
27387
27388
27389
27390
27391 for ac_func in \
27392         ctime_r                 \
27393         gethostbyname_r gethostbyaddr_r \
27394
27395 do
27396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27397 echo "$as_me:$LINENO: checking for $ac_func" >&5
27398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27399 if eval "test \"\${$as_ac_var+set}\" = set"; then
27400   echo $ECHO_N "(cached) $ECHO_C" >&6
27401 else
27402   cat >conftest.$ac_ext <<_ACEOF
27403 /* confdefs.h.  */
27404 _ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h.  */
27408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27410 #define $ac_func innocuous_$ac_func
27411
27412 /* System header to define __stub macros and hopefully few prototypes,
27413     which can conflict with char $ac_func (); below.
27414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27415     <limits.h> exists even on freestanding compilers.  */
27416
27417 #ifdef __STDC__
27418 # include <limits.h>
27419 #else
27420 # include <assert.h>
27421 #endif
27422
27423 #undef $ac_func
27424
27425 /* Override any gcc2 internal prototype to avoid an error.  */
27426 #ifdef __cplusplus
27427 extern "C"
27428 {
27429 #endif
27430 /* We use char because int might match the return type of a gcc2
27431    builtin and then its argument prototype would still apply.  */
27432 char $ac_func ();
27433 /* The GNU C library defines this for functions which it implements
27434     to always fail with ENOSYS.  Some functions are actually named
27435     something starting with __ and the normal name is an alias.  */
27436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27437 choke me
27438 #else
27439 char (*f) () = $ac_func;
27440 #endif
27441 #ifdef __cplusplus
27442 }
27443 #endif
27444
27445 int
27446 main ()
27447 {
27448 return f != $ac_func;
27449   ;
27450   return 0;
27451 }
27452 _ACEOF
27453 rm -f conftest.$ac_objext conftest$ac_exeext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27455   (eval $ac_link) 2>conftest.er1
27456   ac_status=$?
27457   grep -v '^ *+' conftest.er1 >conftest.err
27458   rm -f conftest.er1
27459   cat conftest.err >&5
27460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461   (exit $ac_status); } &&
27462          { ac_try='test -z "$ac_c_werror_flag"
27463                          || test ! -s conftest.err'
27464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465   (eval $ac_try) 2>&5
27466   ac_status=$?
27467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468   (exit $ac_status); }; } &&
27469          { ac_try='test -s conftest$ac_exeext'
27470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471   (eval $ac_try) 2>&5
27472   ac_status=$?
27473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); }; }; then
27475   eval "$as_ac_var=yes"
27476 else
27477   echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27479
27480 eval "$as_ac_var=no"
27481 fi
27482 rm -f conftest.err conftest.$ac_objext \
27483       conftest$ac_exeext conftest.$ac_ext
27484 fi
27485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27487 if test `eval echo '${'$as_ac_var'}'` = yes; then
27488   cat >>confdefs.h <<_ACEOF
27489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27490 _ACEOF
27491
27492 fi
27493 done
27494
27495
27496 if test "$ac_cv_func_ctime_r" = no ; then
27497         ol_cv_func_ctime_r_nargs=0
27498 else
27499         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27500 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27501 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27502   echo $ECHO_N "(cached) $ECHO_C" >&6
27503 else
27504   cat >conftest.$ac_ext <<_ACEOF
27505 /* confdefs.h.  */
27506 _ACEOF
27507 cat confdefs.h >>conftest.$ac_ext
27508 cat >>conftest.$ac_ext <<_ACEOF
27509 /* end confdefs.h.  */
27510 #include <time.h>
27511 int
27512 main ()
27513 {
27514 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27515   ;
27516   return 0;
27517 }
27518 _ACEOF
27519 rm -f conftest.$ac_objext
27520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27521   (eval $ac_compile) 2>conftest.er1
27522   ac_status=$?
27523   grep -v '^ *+' conftest.er1 >conftest.err
27524   rm -f conftest.er1
27525   cat conftest.err >&5
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); } &&
27528          { ac_try='test -z "$ac_c_werror_flag"
27529                          || test ! -s conftest.err'
27530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531   (eval $ac_try) 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; } &&
27535          { ac_try='test -s conftest.$ac_objext'
27536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537   (eval $ac_try) 2>&5
27538   ac_status=$?
27539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540   (exit $ac_status); }; }; then
27541   ol_cv_func_ctime_r_nargs3=yes
27542 else
27543   echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27545
27546 ol_cv_func_ctime_r_nargs3=no
27547 fi
27548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27549
27550         cat >conftest.$ac_ext <<_ACEOF
27551 /* confdefs.h.  */
27552 _ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h.  */
27556 #include <time.h>
27557 int
27558 main ()
27559 {
27560 time_t ti; char *buffer; ctime_r(&ti,buffer);
27561   ;
27562   return 0;
27563 }
27564 _ACEOF
27565 rm -f conftest.$ac_objext
27566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27567   (eval $ac_compile) 2>conftest.er1
27568   ac_status=$?
27569   grep -v '^ *+' conftest.er1 >conftest.err
27570   rm -f conftest.er1
27571   cat conftest.err >&5
27572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573   (exit $ac_status); } &&
27574          { ac_try='test -z "$ac_c_werror_flag"
27575                          || test ! -s conftest.err'
27576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27577   (eval $ac_try) 2>&5
27578   ac_status=$?
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); }; } &&
27581          { ac_try='test -s conftest.$ac_objext'
27582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27583   (eval $ac_try) 2>&5
27584   ac_status=$?
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); }; }; then
27587   ol_cv_func_ctime_r_nargs2=yes
27588 else
27589   echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27591
27592 ol_cv_func_ctime_r_nargs2=no
27593 fi
27594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27595
27596         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27597            test $ol_cv_func_ctime_r_nargs2 = no ; then
27598
27599                 ol_cv_func_ctime_r_nargs=3
27600
27601         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27602              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27603
27604                 ol_cv_func_ctime_r_nargs=2
27605
27606         else
27607                 ol_cv_func_ctime_r_nargs=0
27608         fi
27609
27610 fi
27611 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27612 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27613
27614   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27615
27616 cat >>confdefs.h <<_ACEOF
27617 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27618 _ACEOF
27619
27620   fi
27621
27622 fi
27623
27624 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27625         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27626 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27627 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27628   echo $ECHO_N "(cached) $ECHO_C" >&6
27629 else
27630   cat >conftest.$ac_ext <<_ACEOF
27631 /* confdefs.h.  */
27632 _ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h.  */
27636 #include <sys/types.h>
27637 #include <sys/socket.h>
27638 #include <netinet/in.h>
27639 #include <netdb.h>
27640 #define BUFSIZE (sizeof(struct hostent)+10)
27641 int
27642 main ()
27643 {
27644 struct hostent hent; char buffer[BUFSIZE];
27645                 int bufsize=BUFSIZE;int h_errno;
27646                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27647                         buffer, bufsize, &h_errno);
27648   ;
27649   return 0;
27650 }
27651 _ACEOF
27652 rm -f conftest.$ac_objext
27653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27654   (eval $ac_compile) 2>conftest.er1
27655   ac_status=$?
27656   grep -v '^ *+' conftest.er1 >conftest.err
27657   rm -f conftest.er1
27658   cat conftest.err >&5
27659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); } &&
27661          { ac_try='test -z "$ac_c_werror_flag"
27662                          || test ! -s conftest.err'
27663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664   (eval $ac_try) 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; } &&
27668          { ac_try='test -s conftest.$ac_objext'
27669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670   (eval $ac_try) 2>&5
27671   ac_status=$?
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); }; }; then
27674   ol_cv_func_gethostbyname_r_nargs5=yes
27675 else
27676   echo "$as_me: failed program was:" >&5
27677 sed 's/^/| /' conftest.$ac_ext >&5
27678
27679 ol_cv_func_gethostbyname_r_nargs5=no
27680 fi
27681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27682
27683         cat >conftest.$ac_ext <<_ACEOF
27684 /* confdefs.h.  */
27685 _ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h.  */
27689 #include <sys/types.h>
27690 #include <sys/socket.h>
27691 #include <netinet/in.h>
27692 #include <netdb.h>
27693 #define BUFSIZE (sizeof(struct hostent)+10)
27694 int
27695 main ()
27696 {
27697 struct hostent hent;struct hostent *rhent;
27698                 char buffer[BUFSIZE];
27699                 int bufsize=BUFSIZE;int h_errno;
27700                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27701                         &rhent, &h_errno);
27702   ;
27703   return 0;
27704 }
27705 _ACEOF
27706 rm -f conftest.$ac_objext
27707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27708   (eval $ac_compile) 2>conftest.er1
27709   ac_status=$?
27710   grep -v '^ *+' conftest.er1 >conftest.err
27711   rm -f conftest.er1
27712   cat conftest.err >&5
27713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714   (exit $ac_status); } &&
27715          { ac_try='test -z "$ac_c_werror_flag"
27716                          || test ! -s conftest.err'
27717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718   (eval $ac_try) 2>&5
27719   ac_status=$?
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); }; } &&
27722          { ac_try='test -s conftest.$ac_objext'
27723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724   (eval $ac_try) 2>&5
27725   ac_status=$?
27726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727   (exit $ac_status); }; }; then
27728   ol_cv_func_gethostbyname_r_nargs6=yes
27729 else
27730   echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27732
27733 ol_cv_func_gethostbyname_r_nargs6=no
27734 fi
27735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27736
27737         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27738            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27739
27740                 ol_cv_func_gethostbyname_r_nargs=5
27741
27742         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27743              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27744
27745                 ol_cv_func_gethostbyname_r_nargs=6
27746
27747         else
27748                 ol_cv_func_gethostbyname_r_nargs=0
27749         fi
27750
27751 fi
27752 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27753 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27754   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27755
27756 cat >>confdefs.h <<_ACEOF
27757 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27758 _ACEOF
27759
27760   fi
27761
27762 else
27763         ol_cv_func_gethostbyname_r_nargs=0
27764 fi
27765
27766 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27767         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27768 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27769 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27770   echo $ECHO_N "(cached) $ECHO_C" >&6
27771 else
27772   cat >conftest.$ac_ext <<_ACEOF
27773 /* confdefs.h.  */
27774 _ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h.  */
27778 #include <sys/types.h>
27779 #include <sys/socket.h>
27780 #include <netinet/in.h>
27781 #include <netdb.h>
27782 #define BUFSIZE (sizeof(struct hostent)+10)
27783 int
27784 main ()
27785 {
27786 struct hostent hent; char buffer[BUFSIZE];
27787             struct in_addr add;
27788             size_t alen=sizeof(struct in_addr);
27789             int bufsize=BUFSIZE;int h_errno;
27790                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27791                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27792   ;
27793   return 0;
27794 }
27795 _ACEOF
27796 rm -f conftest.$ac_objext
27797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27798   (eval $ac_compile) 2>conftest.er1
27799   ac_status=$?
27800   grep -v '^ *+' conftest.er1 >conftest.err
27801   rm -f conftest.er1
27802   cat conftest.err >&5
27803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804   (exit $ac_status); } &&
27805          { ac_try='test -z "$ac_c_werror_flag"
27806                          || test ! -s conftest.err'
27807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808   (eval $ac_try) 2>&5
27809   ac_status=$?
27810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811   (exit $ac_status); }; } &&
27812          { ac_try='test -s conftest.$ac_objext'
27813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814   (eval $ac_try) 2>&5
27815   ac_status=$?
27816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817   (exit $ac_status); }; }; then
27818   ol_cv_func_gethostbyaddr_r_nargs7=yes
27819 else
27820   echo "$as_me: failed program was:" >&5
27821 sed 's/^/| /' conftest.$ac_ext >&5
27822
27823 ol_cv_func_gethostbyaddr_r_nargs7=no
27824 fi
27825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27826
27827         cat >conftest.$ac_ext <<_ACEOF
27828 /* confdefs.h.  */
27829 _ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h.  */
27833 #include <sys/types.h>
27834 #include <sys/socket.h>
27835 #include <netinet/in.h>
27836 #include <netdb.h>
27837 #define BUFSIZE (sizeof(struct hostent)+10)
27838 int
27839 main ()
27840 {
27841 struct hostent hent;
27842                 struct hostent *rhent; char buffer[BUFSIZE];
27843                 struct in_addr add;
27844                 size_t alen=sizeof(struct in_addr);
27845                 int bufsize=BUFSIZE;int h_errno;
27846                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27847                         alen, AF_INET, &hent, buffer, bufsize,
27848                         &rhent, &h_errno);
27849   ;
27850   return 0;
27851 }
27852 _ACEOF
27853 rm -f conftest.$ac_objext
27854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27855   (eval $ac_compile) 2>conftest.er1
27856   ac_status=$?
27857   grep -v '^ *+' conftest.er1 >conftest.err
27858   rm -f conftest.er1
27859   cat conftest.err >&5
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); } &&
27862          { ac_try='test -z "$ac_c_werror_flag"
27863                          || test ! -s conftest.err'
27864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27865   (eval $ac_try) 2>&5
27866   ac_status=$?
27867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868   (exit $ac_status); }; } &&
27869          { ac_try='test -s conftest.$ac_objext'
27870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871   (eval $ac_try) 2>&5
27872   ac_status=$?
27873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874   (exit $ac_status); }; }; then
27875   ol_cv_func_gethostbyaddr_r_nargs8=yes
27876 else
27877   echo "$as_me: failed program was:" >&5
27878 sed 's/^/| /' conftest.$ac_ext >&5
27879
27880 ol_cv_func_gethostbyaddr_r_nargs8=no
27881 fi
27882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27883
27884         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27885            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27886
27887                 ol_cv_func_gethostbyaddr_r_nargs=7
27888
27889         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27890              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27891
27892                 ol_cv_func_gethostbyaddr_r_nargs=8
27893
27894         else
27895                 ol_cv_func_gethostbyaddr_r_nargs=0
27896         fi
27897
27898 fi
27899 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27900 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27901   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27902
27903 cat >>confdefs.h <<_ACEOF
27904 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27905 _ACEOF
27906
27907   fi
27908
27909 else
27910         ol_cv_func_gethostbyaddr_r_nargs=0
27911 fi
27912
27913 ol_link_bdb=no
27914
27915 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27916         ol_cv_berkeley_db=no
27917
27918 for ac_header in db.h
27919 do
27920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27922   echo "$as_me:$LINENO: checking for $ac_header" >&5
27923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27925   echo $ECHO_N "(cached) $ECHO_C" >&6
27926 fi
27927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27929 else
27930   # Is the header compilable?
27931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27933 cat >conftest.$ac_ext <<_ACEOF
27934 /* confdefs.h.  */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h.  */
27939 $ac_includes_default
27940 #include <$ac_header>
27941 _ACEOF
27942 rm -f conftest.$ac_objext
27943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27944   (eval $ac_compile) 2>conftest.er1
27945   ac_status=$?
27946   grep -v '^ *+' conftest.er1 >conftest.err
27947   rm -f conftest.er1
27948   cat conftest.err >&5
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); } &&
27951          { ac_try='test -z "$ac_c_werror_flag"
27952                          || test ! -s conftest.err'
27953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954   (eval $ac_try) 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); }; } &&
27958          { ac_try='test -s conftest.$ac_objext'
27959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960   (eval $ac_try) 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; }; then
27964   ac_header_compiler=yes
27965 else
27966   echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27968
27969 ac_header_compiler=no
27970 fi
27971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27973 echo "${ECHO_T}$ac_header_compiler" >&6
27974
27975 # Is the header present?
27976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27978 cat >conftest.$ac_ext <<_ACEOF
27979 /* confdefs.h.  */
27980 _ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h.  */
27984 #include <$ac_header>
27985 _ACEOF
27986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27988   ac_status=$?
27989   grep -v '^ *+' conftest.er1 >conftest.err
27990   rm -f conftest.er1
27991   cat conftest.err >&5
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); } >/dev/null; then
27994   if test -s conftest.err; then
27995     ac_cpp_err=$ac_c_preproc_warn_flag
27996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27997   else
27998     ac_cpp_err=
27999   fi
28000 else
28001   ac_cpp_err=yes
28002 fi
28003 if test -z "$ac_cpp_err"; then
28004   ac_header_preproc=yes
28005 else
28006   echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28008
28009   ac_header_preproc=no
28010 fi
28011 rm -f conftest.err conftest.$ac_ext
28012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28013 echo "${ECHO_T}$ac_header_preproc" >&6
28014
28015 # So?  What about this header?
28016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28017   yes:no: )
28018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28022     ac_header_preproc=yes
28023     ;;
28024   no:yes:* )
28025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28037     (
28038       cat <<\_ASBOX
28039 ## --------------------------------------------- ##
28040 ## Report this to <http://www.openldap.org/its/> ##
28041 ## --------------------------------------------- ##
28042 _ASBOX
28043     ) |
28044       sed "s/^/$as_me: WARNING:     /" >&2
28045     ;;
28046 esac
28047 echo "$as_me:$LINENO: checking for $ac_header" >&5
28048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28050   echo $ECHO_N "(cached) $ECHO_C" >&6
28051 else
28052   eval "$as_ac_Header=\$ac_header_preproc"
28053 fi
28054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28056
28057 fi
28058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28059   cat >>confdefs.h <<_ACEOF
28060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28061 _ACEOF
28062
28063 fi
28064
28065 done
28066
28067 if test $ac_cv_header_db_h = yes; then
28068         echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28069 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
28070 if test "${ol_cv_bdb_major+set}" = set; then
28071   echo $ECHO_N "(cached) $ECHO_C" >&6
28072 else
28073
28074         cat >conftest.$ac_ext <<_ACEOF
28075
28076 #include <db.h>
28077 #ifndef DB_VERSION_MAJOR
28078 #       define DB_VERSION_MAJOR 1
28079 #endif
28080 __db_version DB_VERSION_MAJOR
28081
28082 _ACEOF
28083         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28084         ol_cv_bdb_major=${3}
28085
28086 fi
28087 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28088 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28089 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28090         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28091 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28092    { (exit 1); exit 1; }; } ;;
28093 esac
28094
28095 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28096 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
28097 if test "${ol_cv_bdb_minor+set}" = set; then
28098   echo $ECHO_N "(cached) $ECHO_C" >&6
28099 else
28100
28101         cat >conftest.$ac_ext <<_ACEOF
28102
28103 #include <db.h>
28104 #ifndef DB_VERSION_MINOR
28105 #       define DB_VERSION_MINOR 0
28106 #endif
28107 __db_version DB_VERSION_MINOR
28108
28109 _ACEOF
28110         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28111         ol_cv_bdb_minor=${3}
28112
28113 fi
28114 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28115 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28116 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28117         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28118 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28119    { (exit 1); exit 1; }; } ;;
28120 esac
28121
28122         echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28123 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
28124 if test "${ol_cv_bdb_compat+set}" = set; then
28125   echo $ECHO_N "(cached) $ECHO_C" >&6
28126 else
28127
28128         cat >conftest.$ac_ext <<_ACEOF
28129 /* confdefs.h.  */
28130 _ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h.  */
28134
28135 #include <db.h>
28136
28137  /* this check could be improved */
28138 #ifndef DB_VERSION_MAJOR
28139 #       define DB_VERSION_MAJOR 1
28140 #endif
28141 #ifndef DB_VERSION_MINOR
28142 #       define DB_VERSION_MINOR 0
28143 #endif
28144
28145 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28146
28147 /* require 4.4 or later */
28148 #if DB_VERSION_MM >= 0x0404
28149         __db_version_compat
28150 #endif
28151
28152 _ACEOF
28153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28154   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28155   ol_cv_bdb_compat=yes
28156 else
28157   ol_cv_bdb_compat=no
28158 fi
28159 rm -f conftest*
28160
28161 fi
28162 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28163 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
28164
28165
28166         if test $ol_cv_bdb_compat != yes ; then
28167                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28168 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28169    { (exit 1); exit 1; }; }
28170         fi
28171
28172         ol_cv_lib_db=no
28173
28174 if test $ol_cv_bdb_major = 4 ; then
28175         if test $ol_cv_lib_db = no ; then
28176         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28177 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
28178 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28179   echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181
28182         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28183         ol_LIBS=$LIBS
28184         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28185
28186         cat >conftest.$ac_ext <<_ACEOF
28187 /* confdefs.h.  */
28188 _ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h.  */
28192
28193 #ifdef HAVE_DB_185_H
28194 # include <db_185.h>
28195 #else
28196 # include <db.h>
28197 #endif
28198
28199 #ifndef DB_VERSION_MAJOR
28200 # define DB_VERSION_MAJOR 1
28201 #endif
28202
28203 #ifndef NULL
28204 #define NULL ((void*)0)
28205 #endif
28206
28207 int
28208 main ()
28209 {
28210
28211 #if DB_VERSION_MAJOR > 2
28212         db_env_create( NULL, 0 );
28213 #elif DB_VERSION_MAJOR > 1
28214         db_appexit( NULL );
28215 #else
28216         (void) dbopen( NULL, 0, 0, 0, NULL);
28217 #endif
28218
28219   ;
28220   return 0;
28221 }
28222 _ACEOF
28223 rm -f conftest.$ac_objext conftest$ac_exeext
28224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28225   (eval $ac_link) 2>conftest.er1
28226   ac_status=$?
28227   grep -v '^ *+' conftest.er1 >conftest.err
28228   rm -f conftest.er1
28229   cat conftest.err >&5
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); } &&
28232          { ac_try='test -z "$ac_c_werror_flag"
28233                          || test ! -s conftest.err'
28234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235   (eval $ac_try) 2>&5
28236   ac_status=$?
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); }; } &&
28239          { ac_try='test -s conftest$ac_exeext'
28240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241   (eval $ac_try) 2>&5
28242   ac_status=$?
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); }; }; then
28245   ol_cv_db_db_4_dot_m=yes
28246 else
28247   echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28249
28250 ol_cv_db_db_4_dot_m=no
28251 fi
28252 rm -f conftest.err conftest.$ac_objext \
28253       conftest$ac_exeext conftest.$ac_ext
28254
28255         LIBS="$ol_LIBS"
28256
28257 fi
28258 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28259 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
28260
28261         if test $ol_cv_db_db_4_dot_m = yes ; then
28262                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28263         fi
28264 fi
28265
28266         if test $ol_cv_lib_db = no ; then
28267         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28268 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
28269 if test "${ol_cv_db_db4m+set}" = set; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272
28273         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28274         ol_LIBS=$LIBS
28275         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28276
28277         cat >conftest.$ac_ext <<_ACEOF
28278 /* confdefs.h.  */
28279 _ACEOF
28280 cat confdefs.h >>conftest.$ac_ext
28281 cat >>conftest.$ac_ext <<_ACEOF
28282 /* end confdefs.h.  */
28283
28284 #ifdef HAVE_DB_185_H
28285 # include <db_185.h>
28286 #else
28287 # include <db.h>
28288 #endif
28289
28290 #ifndef DB_VERSION_MAJOR
28291 # define DB_VERSION_MAJOR 1
28292 #endif
28293
28294 #ifndef NULL
28295 #define NULL ((void*)0)
28296 #endif
28297
28298 int
28299 main ()
28300 {
28301
28302 #if DB_VERSION_MAJOR > 2
28303         db_env_create( NULL, 0 );
28304 #elif DB_VERSION_MAJOR > 1
28305         db_appexit( NULL );
28306 #else
28307         (void) dbopen( NULL, 0, 0, 0, NULL);
28308 #endif
28309
28310   ;
28311   return 0;
28312 }
28313 _ACEOF
28314 rm -f conftest.$ac_objext conftest$ac_exeext
28315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28316   (eval $ac_link) 2>conftest.er1
28317   ac_status=$?
28318   grep -v '^ *+' conftest.er1 >conftest.err
28319   rm -f conftest.er1
28320   cat conftest.err >&5
28321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); } &&
28323          { ac_try='test -z "$ac_c_werror_flag"
28324                          || test ! -s conftest.err'
28325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326   (eval $ac_try) 2>&5
28327   ac_status=$?
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); }; } &&
28330          { ac_try='test -s conftest$ac_exeext'
28331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332   (eval $ac_try) 2>&5
28333   ac_status=$?
28334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335   (exit $ac_status); }; }; then
28336   ol_cv_db_db4m=yes
28337 else
28338   echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28340
28341 ol_cv_db_db4m=no
28342 fi
28343 rm -f conftest.err conftest.$ac_objext \
28344       conftest$ac_exeext conftest.$ac_ext
28345
28346         LIBS="$ol_LIBS"
28347
28348 fi
28349 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28350 echo "${ECHO_T}$ol_cv_db_db4m" >&6
28351
28352         if test $ol_cv_db_db4m = yes ; then
28353                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28354         fi
28355 fi
28356
28357         if test $ol_cv_lib_db = no ; then
28358         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28359 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
28360 if test "${ol_cv_db_db_4m+set}" = set; then
28361   echo $ECHO_N "(cached) $ECHO_C" >&6
28362 else
28363
28364         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28365         ol_LIBS=$LIBS
28366         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28367
28368         cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h.  */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h.  */
28374
28375 #ifdef HAVE_DB_185_H
28376 # include <db_185.h>
28377 #else
28378 # include <db.h>
28379 #endif
28380
28381 #ifndef DB_VERSION_MAJOR
28382 # define DB_VERSION_MAJOR 1
28383 #endif
28384
28385 #ifndef NULL
28386 #define NULL ((void*)0)
28387 #endif
28388
28389 int
28390 main ()
28391 {
28392
28393 #if DB_VERSION_MAJOR > 2
28394         db_env_create( NULL, 0 );
28395 #elif DB_VERSION_MAJOR > 1
28396         db_appexit( NULL );
28397 #else
28398         (void) dbopen( NULL, 0, 0, 0, NULL);
28399 #endif
28400
28401   ;
28402   return 0;
28403 }
28404 _ACEOF
28405 rm -f conftest.$ac_objext conftest$ac_exeext
28406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28407   (eval $ac_link) 2>conftest.er1
28408   ac_status=$?
28409   grep -v '^ *+' conftest.er1 >conftest.err
28410   rm -f conftest.er1
28411   cat conftest.err >&5
28412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413   (exit $ac_status); } &&
28414          { ac_try='test -z "$ac_c_werror_flag"
28415                          || test ! -s conftest.err'
28416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417   (eval $ac_try) 2>&5
28418   ac_status=$?
28419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); }; } &&
28421          { ac_try='test -s conftest$ac_exeext'
28422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423   (eval $ac_try) 2>&5
28424   ac_status=$?
28425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426   (exit $ac_status); }; }; then
28427   ol_cv_db_db_4m=yes
28428 else
28429   echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28431
28432 ol_cv_db_db_4m=no
28433 fi
28434 rm -f conftest.err conftest.$ac_objext \
28435       conftest$ac_exeext conftest.$ac_ext
28436
28437         LIBS="$ol_LIBS"
28438
28439 fi
28440 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28441 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
28442
28443         if test $ol_cv_db_db_4m = yes ; then
28444                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28445         fi
28446 fi
28447
28448         if test $ol_cv_lib_db = no ; then
28449         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28450 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
28451 if test "${ol_cv_db_db_4_m+set}" = set; then
28452   echo $ECHO_N "(cached) $ECHO_C" >&6
28453 else
28454
28455         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28456         ol_LIBS=$LIBS
28457         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28458
28459         cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465
28466 #ifdef HAVE_DB_185_H
28467 # include <db_185.h>
28468 #else
28469 # include <db.h>
28470 #endif
28471
28472 #ifndef DB_VERSION_MAJOR
28473 # define DB_VERSION_MAJOR 1
28474 #endif
28475
28476 #ifndef NULL
28477 #define NULL ((void*)0)
28478 #endif
28479
28480 int
28481 main ()
28482 {
28483
28484 #if DB_VERSION_MAJOR > 2
28485         db_env_create( NULL, 0 );
28486 #elif DB_VERSION_MAJOR > 1
28487         db_appexit( NULL );
28488 #else
28489         (void) dbopen( NULL, 0, 0, 0, NULL);
28490 #endif
28491
28492   ;
28493   return 0;
28494 }
28495 _ACEOF
28496 rm -f conftest.$ac_objext conftest$ac_exeext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28498   (eval $ac_link) 2>conftest.er1
28499   ac_status=$?
28500   grep -v '^ *+' conftest.er1 >conftest.err
28501   rm -f conftest.er1
28502   cat conftest.err >&5
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); } &&
28505          { ac_try='test -z "$ac_c_werror_flag"
28506                          || test ! -s conftest.err'
28507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508   (eval $ac_try) 2>&5
28509   ac_status=$?
28510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511   (exit $ac_status); }; } &&
28512          { ac_try='test -s conftest$ac_exeext'
28513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514   (eval $ac_try) 2>&5
28515   ac_status=$?
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); }; }; then
28518   ol_cv_db_db_4_m=yes
28519 else
28520   echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28522
28523 ol_cv_db_db_4_m=no
28524 fi
28525 rm -f conftest.err conftest.$ac_objext \
28526       conftest$ac_exeext conftest.$ac_ext
28527
28528         LIBS="$ol_LIBS"
28529
28530 fi
28531 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28532 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
28533
28534         if test $ol_cv_db_db_4_m = yes ; then
28535                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28536         fi
28537 fi
28538
28539         if test $ol_cv_lib_db = no ; then
28540         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28541 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28542 if test "${ol_cv_db_db_4+set}" = set; then
28543   echo $ECHO_N "(cached) $ECHO_C" >&6
28544 else
28545
28546         ol_DB_LIB=-ldb-4
28547         ol_LIBS=$LIBS
28548         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28549
28550         cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h.  */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h.  */
28556
28557 #ifdef HAVE_DB_185_H
28558 # include <db_185.h>
28559 #else
28560 # include <db.h>
28561 #endif
28562
28563 #ifndef DB_VERSION_MAJOR
28564 # define DB_VERSION_MAJOR 1
28565 #endif
28566
28567 #ifndef NULL
28568 #define NULL ((void*)0)
28569 #endif
28570
28571 int
28572 main ()
28573 {
28574
28575 #if DB_VERSION_MAJOR > 2
28576         db_env_create( NULL, 0 );
28577 #elif DB_VERSION_MAJOR > 1
28578         db_appexit( NULL );
28579 #else
28580         (void) dbopen( NULL, 0, 0, 0, NULL);
28581 #endif
28582
28583   ;
28584   return 0;
28585 }
28586 _ACEOF
28587 rm -f conftest.$ac_objext conftest$ac_exeext
28588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28589   (eval $ac_link) 2>conftest.er1
28590   ac_status=$?
28591   grep -v '^ *+' conftest.er1 >conftest.err
28592   rm -f conftest.er1
28593   cat conftest.err >&5
28594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595   (exit $ac_status); } &&
28596          { ac_try='test -z "$ac_c_werror_flag"
28597                          || test ! -s conftest.err'
28598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599   (eval $ac_try) 2>&5
28600   ac_status=$?
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); }; } &&
28603          { ac_try='test -s conftest$ac_exeext'
28604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605   (eval $ac_try) 2>&5
28606   ac_status=$?
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); }; }; then
28609   ol_cv_db_db_4=yes
28610 else
28611   echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28613
28614 ol_cv_db_db_4=no
28615 fi
28616 rm -f conftest.err conftest.$ac_objext \
28617       conftest$ac_exeext conftest.$ac_ext
28618
28619         LIBS="$ol_LIBS"
28620
28621 fi
28622 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28623 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28624
28625         if test $ol_cv_db_db_4 = yes ; then
28626                 ol_cv_lib_db=-ldb-4
28627         fi
28628 fi
28629
28630         if test $ol_cv_lib_db = no ; then
28631         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28632 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28633 if test "${ol_cv_db_db4+set}" = set; then
28634   echo $ECHO_N "(cached) $ECHO_C" >&6
28635 else
28636
28637         ol_DB_LIB=-ldb4
28638         ol_LIBS=$LIBS
28639         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28640
28641         cat >conftest.$ac_ext <<_ACEOF
28642 /* confdefs.h.  */
28643 _ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h.  */
28647
28648 #ifdef HAVE_DB_185_H
28649 # include <db_185.h>
28650 #else
28651 # include <db.h>
28652 #endif
28653
28654 #ifndef DB_VERSION_MAJOR
28655 # define DB_VERSION_MAJOR 1
28656 #endif
28657
28658 #ifndef NULL
28659 #define NULL ((void*)0)
28660 #endif
28661
28662 int
28663 main ()
28664 {
28665
28666 #if DB_VERSION_MAJOR > 2
28667         db_env_create( NULL, 0 );
28668 #elif DB_VERSION_MAJOR > 1
28669         db_appexit( NULL );
28670 #else
28671         (void) dbopen( NULL, 0, 0, 0, NULL);
28672 #endif
28673
28674   ;
28675   return 0;
28676 }
28677 _ACEOF
28678 rm -f conftest.$ac_objext conftest$ac_exeext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28680   (eval $ac_link) 2>conftest.er1
28681   ac_status=$?
28682   grep -v '^ *+' conftest.er1 >conftest.err
28683   rm -f conftest.er1
28684   cat conftest.err >&5
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } &&
28687          { ac_try='test -z "$ac_c_werror_flag"
28688                          || test ! -s conftest.err'
28689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690   (eval $ac_try) 2>&5
28691   ac_status=$?
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); }; } &&
28694          { ac_try='test -s conftest$ac_exeext'
28695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696   (eval $ac_try) 2>&5
28697   ac_status=$?
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); }; }; then
28700   ol_cv_db_db4=yes
28701 else
28702   echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705 ol_cv_db_db4=no
28706 fi
28707 rm -f conftest.err conftest.$ac_objext \
28708       conftest$ac_exeext conftest.$ac_ext
28709
28710         LIBS="$ol_LIBS"
28711
28712 fi
28713 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28714 echo "${ECHO_T}$ol_cv_db_db4" >&6
28715
28716         if test $ol_cv_db_db4 = yes ; then
28717                 ol_cv_lib_db=-ldb4
28718         fi
28719 fi
28720
28721         if test $ol_cv_lib_db = no ; then
28722         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28723 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
28724 if test "${ol_cv_db_db+set}" = set; then
28725   echo $ECHO_N "(cached) $ECHO_C" >&6
28726 else
28727
28728         ol_DB_LIB=-ldb
28729         ol_LIBS=$LIBS
28730         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28731
28732         cat >conftest.$ac_ext <<_ACEOF
28733 /* confdefs.h.  */
28734 _ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h.  */
28738
28739 #ifdef HAVE_DB_185_H
28740 # include <db_185.h>
28741 #else
28742 # include <db.h>
28743 #endif
28744
28745 #ifndef DB_VERSION_MAJOR
28746 # define DB_VERSION_MAJOR 1
28747 #endif
28748
28749 #ifndef NULL
28750 #define NULL ((void*)0)
28751 #endif
28752
28753 int
28754 main ()
28755 {
28756
28757 #if DB_VERSION_MAJOR > 2
28758         db_env_create( NULL, 0 );
28759 #elif DB_VERSION_MAJOR > 1
28760         db_appexit( NULL );
28761 #else
28762         (void) dbopen( NULL, 0, 0, 0, NULL);
28763 #endif
28764
28765   ;
28766   return 0;
28767 }
28768 _ACEOF
28769 rm -f conftest.$ac_objext conftest$ac_exeext
28770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28771   (eval $ac_link) 2>conftest.er1
28772   ac_status=$?
28773   grep -v '^ *+' conftest.er1 >conftest.err
28774   rm -f conftest.er1
28775   cat conftest.err >&5
28776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777   (exit $ac_status); } &&
28778          { ac_try='test -z "$ac_c_werror_flag"
28779                          || test ! -s conftest.err'
28780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781   (eval $ac_try) 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; } &&
28785          { ac_try='test -s conftest$ac_exeext'
28786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787   (eval $ac_try) 2>&5
28788   ac_status=$?
28789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790   (exit $ac_status); }; }; then
28791   ol_cv_db_db=yes
28792 else
28793   echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28795
28796 ol_cv_db_db=no
28797 fi
28798 rm -f conftest.err conftest.$ac_objext \
28799       conftest$ac_exeext conftest.$ac_ext
28800
28801         LIBS="$ol_LIBS"
28802
28803 fi
28804 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28805 echo "${ECHO_T}$ol_cv_db_db" >&6
28806
28807         if test $ol_cv_db_db = yes ; then
28808                 ol_cv_lib_db=-ldb
28809         fi
28810 fi
28811
28812 fi
28813 if test $ol_cv_lib_db = no ; then
28814         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28815 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
28816 if test "${ol_cv_db_none+set}" = set; then
28817   echo $ECHO_N "(cached) $ECHO_C" >&6
28818 else
28819
28820         ol_DB_LIB=
28821         ol_LIBS=$LIBS
28822         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28823
28824         cat >conftest.$ac_ext <<_ACEOF
28825 /* confdefs.h.  */
28826 _ACEOF
28827 cat confdefs.h >>conftest.$ac_ext
28828 cat >>conftest.$ac_ext <<_ACEOF
28829 /* end confdefs.h.  */
28830
28831 #ifdef HAVE_DB_185_H
28832 # include <db_185.h>
28833 #else
28834 # include <db.h>
28835 #endif
28836
28837 #ifndef DB_VERSION_MAJOR
28838 # define DB_VERSION_MAJOR 1
28839 #endif
28840
28841 #ifndef NULL
28842 #define NULL ((void*)0)
28843 #endif
28844
28845 int
28846 main ()
28847 {
28848
28849 #if DB_VERSION_MAJOR > 2
28850         db_env_create( NULL, 0 );
28851 #elif DB_VERSION_MAJOR > 1
28852         db_appexit( NULL );
28853 #else
28854         (void) dbopen( NULL, 0, 0, 0, NULL);
28855 #endif
28856
28857   ;
28858   return 0;
28859 }
28860 _ACEOF
28861 rm -f conftest.$ac_objext conftest$ac_exeext
28862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28863   (eval $ac_link) 2>conftest.er1
28864   ac_status=$?
28865   grep -v '^ *+' conftest.er1 >conftest.err
28866   rm -f conftest.er1
28867   cat conftest.err >&5
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); } &&
28870          { ac_try='test -z "$ac_c_werror_flag"
28871                          || test ! -s conftest.err'
28872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873   (eval $ac_try) 2>&5
28874   ac_status=$?
28875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876   (exit $ac_status); }; } &&
28877          { ac_try='test -s conftest$ac_exeext'
28878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28879   (eval $ac_try) 2>&5
28880   ac_status=$?
28881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882   (exit $ac_status); }; }; then
28883   ol_cv_db_none=yes
28884 else
28885   echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28887
28888 ol_cv_db_none=no
28889 fi
28890 rm -f conftest.err conftest.$ac_objext \
28891       conftest$ac_exeext conftest.$ac_ext
28892
28893         LIBS="$ol_LIBS"
28894
28895 fi
28896 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28897 echo "${ECHO_T}$ol_cv_db_none" >&6
28898
28899         if test $ol_cv_db_none = yes ; then
28900                 ol_cv_lib_db=yes
28901         fi
28902 fi
28903
28904
28905         if test "$ol_cv_lib_db" != no ; then
28906                 ol_cv_berkeley_db=yes
28907                 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28908 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
28909 if test "${ol_cv_berkeley_db_version+set}" = set; then
28910   echo $ECHO_N "(cached) $ECHO_C" >&6
28911 else
28912
28913         ol_LIBS="$LIBS"
28914         LIBS="$LTHREAD_LIBS $LIBS"
28915         if test $ol_cv_lib_db != yes ; then
28916                 LIBS="$ol_cv_lib_db $LIBS"
28917         fi
28918
28919         if test "$cross_compiling" = yes; then
28920   ol_cv_berkeley_db_version=cross
28921 else
28922   cat >conftest.$ac_ext <<_ACEOF
28923 /* confdefs.h.  */
28924 _ACEOF
28925 cat confdefs.h >>conftest.$ac_ext
28926 cat >>conftest.$ac_ext <<_ACEOF
28927 /* end confdefs.h.  */
28928
28929 #ifdef HAVE_DB_185_H
28930         choke me;
28931 #else
28932 #include <db.h>
28933 #endif
28934 #ifndef DB_VERSION_MAJOR
28935 # define DB_VERSION_MAJOR 1
28936 #endif
28937 #ifndef NULL
28938 #define NULL ((void *)0)
28939 #endif
28940 main()
28941 {
28942 #if DB_VERSION_MAJOR > 1
28943         char *version;
28944         int major, minor, patch;
28945
28946         version = db_version( &major, &minor, &patch );
28947
28948         if( major != DB_VERSION_MAJOR ||
28949                 minor != DB_VERSION_MINOR ||
28950                 patch != DB_VERSION_PATCH )
28951         {
28952                 printf("Berkeley DB version mismatch\n"
28953                         "\theader: %s\n\tlibrary: %s\n",
28954                         DB_VERSION_STRING, version);
28955                 return 1;
28956         }
28957 #endif
28958
28959         return 0;
28960 }
28961 _ACEOF
28962 rm -f conftest$ac_exeext
28963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28964   (eval $ac_link) 2>&5
28965   ac_status=$?
28966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28969   (eval $ac_try) 2>&5
28970   ac_status=$?
28971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972   (exit $ac_status); }; }; then
28973   ol_cv_berkeley_db_version=yes
28974 else
28975   echo "$as_me: program exited with status $ac_status" >&5
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28978
28979 ( exit $ac_status )
28980 ol_cv_berkeley_db_version=no
28981 fi
28982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28983 fi
28984
28985         LIBS="$ol_LIBS"
28986
28987 fi
28988 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28989 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
28990
28991         if test $ol_cv_berkeley_db_version = no ; then
28992                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28993 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28994    { (exit 1); exit 1; }; }
28995         fi
28996
28997                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28998 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
28999 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29000   echo $ECHO_N "(cached) $ECHO_C" >&6
29001 else
29002
29003         ol_LIBS="$LIBS"
29004         LIBS="$LTHREAD_LIBS $LIBS"
29005         if test $ol_cv_lib_db != yes ; then
29006                 LIBS="$ol_cv_lib_db $LIBS"
29007         fi
29008
29009         if test "$cross_compiling" = yes; then
29010   ol_cv_berkeley_db_thread=cross
29011 else
29012   cat >conftest.$ac_ext <<_ACEOF
29013 /* confdefs.h.  */
29014 _ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h.  */
29018
29019 #ifdef HAVE_DB_185_H
29020         choke me;
29021 #else
29022 #include <db.h>
29023 #endif
29024 #ifndef NULL
29025 #define NULL ((void *)0)
29026 #endif
29027 main()
29028 {
29029         int rc;
29030         u_int32_t flags = DB_CREATE |
29031 #ifdef DB_PRIVATE
29032                 DB_PRIVATE |
29033 #endif
29034                 DB_THREAD;
29035
29036 #if DB_VERSION_MAJOR > 2
29037         DB_ENV *env = NULL;
29038
29039         rc = db_env_create( &env, 0 );
29040
29041         flags |= DB_INIT_MPOOL;
29042 #ifdef DB_MPOOL_PRIVATE
29043         flags |= DB_MPOOL_PRIVATE;
29044 #endif
29045
29046         if( rc ) {
29047                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29048                 return rc;
29049         }
29050
29051 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29052         rc = (env->open)( env, NULL, flags, 0 );
29053 #else
29054         rc = (env->open)( env, NULL, NULL, flags, 0 );
29055 #endif
29056
29057         if ( rc == 0 ) {
29058                 rc = env->close( env, 0 );
29059         }
29060
29061         if( rc ) {
29062                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29063                 return rc;
29064         }
29065
29066 #else
29067         DB_ENV env;
29068         memset( &env, '\0', sizeof(env) );
29069
29070         rc = db_appinit( NULL, NULL, &env, flags );
29071
29072         if( rc == 0 ) {
29073                 db_appexit( &env );
29074         }
29075
29076         unlink("__db_mpool.share");
29077         unlink("__db_lock.share");
29078 #endif
29079
29080         return rc;
29081 }
29082 _ACEOF
29083 rm -f conftest$ac_exeext
29084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29085   (eval $ac_link) 2>&5
29086   ac_status=$?
29087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090   (eval $ac_try) 2>&5
29091   ac_status=$?
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); }; }; then
29094   ol_cv_berkeley_db_thread=yes
29095 else
29096   echo "$as_me: program exited with status $ac_status" >&5
29097 echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29099
29100 ( exit $ac_status )
29101 ol_cv_berkeley_db_thread=no
29102 fi
29103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29104 fi
29105
29106         LIBS="$ol_LIBS"
29107
29108 fi
29109 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29110 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
29111
29112         if test $ol_cv_berkeley_db_thread != no ; then
29113
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_BERKELEY_DB_THREAD 1
29116 _ACEOF
29117
29118         fi
29119
29120         fi
29121 fi
29122
29123
29124         if test $ol_cv_berkeley_db = no ; then
29125                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29126 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29127    { (exit 1); exit 1; }; }
29128         fi
29129
29130
29131 cat >>confdefs.h <<\_ACEOF
29132 #define HAVE_BERKELEY_DB 1
29133 _ACEOF
29134
29135
29136                         if test $ol_cv_lib_db != yes ; then
29137                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29138         fi
29139
29140         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29141
29142         ol_link_bdb=yes
29143 fi
29144
29145
29146 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29147         BUILD_LIBS_DYNAMIC=shared
29148
29149 cat >>confdefs.h <<\_ACEOF
29150 #define LDAP_LIBS_DYNAMIC 1
29151 _ACEOF
29152
29153         LTSTATIC=""
29154 else
29155         BUILD_LIBS_DYNAMIC=static
29156         LTSTATIC="-static"
29157 fi
29158
29159 if test $ol_enable_wrappers != no ; then
29160
29161 for ac_header in tcpd.h
29162 do
29163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29165   echo "$as_me:$LINENO: checking for $ac_header" >&5
29166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29168   echo $ECHO_N "(cached) $ECHO_C" >&6
29169 fi
29170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29172 else
29173   # Is the header compilable?
29174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29176 cat >conftest.$ac_ext <<_ACEOF
29177 /* confdefs.h.  */
29178 _ACEOF
29179 cat confdefs.h >>conftest.$ac_ext
29180 cat >>conftest.$ac_ext <<_ACEOF
29181 /* end confdefs.h.  */
29182 $ac_includes_default
29183 #include <$ac_header>
29184 _ACEOF
29185 rm -f conftest.$ac_objext
29186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29187   (eval $ac_compile) 2>conftest.er1
29188   ac_status=$?
29189   grep -v '^ *+' conftest.er1 >conftest.err
29190   rm -f conftest.er1
29191   cat conftest.err >&5
29192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); } &&
29194          { ac_try='test -z "$ac_c_werror_flag"
29195                          || test ! -s conftest.err'
29196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197   (eval $ac_try) 2>&5
29198   ac_status=$?
29199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200   (exit $ac_status); }; } &&
29201          { ac_try='test -s conftest.$ac_objext'
29202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29203   (eval $ac_try) 2>&5
29204   ac_status=$?
29205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206   (exit $ac_status); }; }; then
29207   ac_header_compiler=yes
29208 else
29209   echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.$ac_ext >&5
29211
29212 ac_header_compiler=no
29213 fi
29214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29216 echo "${ECHO_T}$ac_header_compiler" >&6
29217
29218 # Is the header present?
29219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29221 cat >conftest.$ac_ext <<_ACEOF
29222 /* confdefs.h.  */
29223 _ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h.  */
29227 #include <$ac_header>
29228 _ACEOF
29229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29231   ac_status=$?
29232   grep -v '^ *+' conftest.er1 >conftest.err
29233   rm -f conftest.er1
29234   cat conftest.err >&5
29235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236   (exit $ac_status); } >/dev/null; then
29237   if test -s conftest.err; then
29238     ac_cpp_err=$ac_c_preproc_warn_flag
29239     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29240   else
29241     ac_cpp_err=
29242   fi
29243 else
29244   ac_cpp_err=yes
29245 fi
29246 if test -z "$ac_cpp_err"; then
29247   ac_header_preproc=yes
29248 else
29249   echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29251
29252   ac_header_preproc=no
29253 fi
29254 rm -f conftest.err conftest.$ac_ext
29255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29256 echo "${ECHO_T}$ac_header_preproc" >&6
29257
29258 # So?  What about this header?
29259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29260   yes:no: )
29261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29265     ac_header_preproc=yes
29266     ;;
29267   no:yes:* )
29268     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29270     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29271 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29272     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29274     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29275 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29278     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29280     (
29281       cat <<\_ASBOX
29282 ## --------------------------------------------- ##
29283 ## Report this to <http://www.openldap.org/its/> ##
29284 ## --------------------------------------------- ##
29285 _ASBOX
29286     ) |
29287       sed "s/^/$as_me: WARNING:     /" >&2
29288     ;;
29289 esac
29290 echo "$as_me:$LINENO: checking for $ac_header" >&5
29291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29293   echo $ECHO_N "(cached) $ECHO_C" >&6
29294 else
29295   eval "$as_ac_Header=\$ac_header_preproc"
29296 fi
29297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29299
29300 fi
29301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29302   cat >>confdefs.h <<_ACEOF
29303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29304 _ACEOF
29305
29306                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29307 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
29308                 save_LIBS="$LIBS"
29309                 LIBS="$LIBS -lwrap"
29310                 cat >conftest.$ac_ext <<_ACEOF
29311 /* confdefs.h.  */
29312 _ACEOF
29313 cat confdefs.h >>conftest.$ac_ext
29314 cat >>conftest.$ac_ext <<_ACEOF
29315 /* end confdefs.h.  */
29316
29317 #include <tcpd.h>
29318 int allow_severity = 0;
29319 int deny_severity  = 0;
29320
29321 struct request_info *req;
29322
29323 int
29324 main ()
29325 {
29326
29327 hosts_access(req)
29328
29329   ;
29330   return 0;
29331 }
29332 _ACEOF
29333 rm -f conftest.$ac_objext conftest$ac_exeext
29334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29335   (eval $ac_link) 2>conftest.er1
29336   ac_status=$?
29337   grep -v '^ *+' conftest.er1 >conftest.err
29338   rm -f conftest.er1
29339   cat conftest.err >&5
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); } &&
29342          { ac_try='test -z "$ac_c_werror_flag"
29343                          || test ! -s conftest.err'
29344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29345   (eval $ac_try) 2>&5
29346   ac_status=$?
29347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348   (exit $ac_status); }; } &&
29349          { ac_try='test -s conftest$ac_exeext'
29350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29351   (eval $ac_try) 2>&5
29352   ac_status=$?
29353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354   (exit $ac_status); }; }; then
29355   echo "$as_me:$LINENO: result: -lwrap" >&5
29356 echo "${ECHO_T}-lwrap" >&6
29357                 have_wrappers=yes
29358                 LIBS="$save_LIBS"
29359 else
29360   echo "$as_me: failed program was:" >&5
29361 sed 's/^/| /' conftest.$ac_ext >&5
29362
29363
29364                                 LIBS="$LIBS -lnsl"
29365                 cat >conftest.$ac_ext <<_ACEOF
29366 /* confdefs.h.  */
29367 _ACEOF
29368 cat confdefs.h >>conftest.$ac_ext
29369 cat >>conftest.$ac_ext <<_ACEOF
29370 /* end confdefs.h.  */
29371
29372 #include <tcpd.h>
29373 int allow_severity = 0;
29374 int deny_severity  = 0;
29375
29376 struct request_info *req;
29377
29378 int
29379 main ()
29380 {
29381
29382 hosts_access(req)
29383
29384   ;
29385   return 0;
29386 }
29387 _ACEOF
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29390   (eval $ac_link) 2>conftest.er1
29391   ac_status=$?
29392   grep -v '^ *+' conftest.er1 >conftest.err
29393   rm -f conftest.er1
29394   cat conftest.err >&5
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); } &&
29397          { ac_try='test -z "$ac_c_werror_flag"
29398                          || test ! -s conftest.err'
29399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400   (eval $ac_try) 2>&5
29401   ac_status=$?
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); }; } &&
29404          { ac_try='test -s conftest$ac_exeext'
29405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406   (eval $ac_try) 2>&5
29407   ac_status=$?
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); }; }; then
29410   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29411 echo "${ECHO_T}-lwrap -lnsl" >&6
29412                 have_wrappers=yes
29413                 LIBS="$save_LIBS -lnsl"
29414 else
29415   echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29417
29418
29419                 echo "$as_me:$LINENO: result: no" >&5
29420 echo "${ECHO_T}no" >&6
29421                 have_wrappers=no
29422                 LIBS=$save_LIBS
29423 fi
29424 rm -f conftest.err conftest.$ac_objext \
29425       conftest$ac_exeext conftest.$ac_ext
29426 fi
29427 rm -f conftest.err conftest.$ac_objext \
29428       conftest$ac_exeext conftest.$ac_ext
29429 else
29430   have_wrappers=no
29431 fi
29432
29433 done
29434
29435
29436         if test $have_wrappers = yes ; then
29437
29438 cat >>confdefs.h <<\_ACEOF
29439 #define HAVE_TCPD 1
29440 _ACEOF
29441
29442                 WRAP_LIBS="-lwrap"
29443         elif test $ol_enable_wrappers = yes ; then
29444                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29445 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29446    { (exit 1); exit 1; }; }
29447         else
29448                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29449 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29450                 WRAP_LIBS=""
29451         fi
29452 fi
29453
29454 if test $ol_enable_syslog != no ; then
29455         echo "$as_me:$LINENO: checking for openlog" >&5
29456 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
29457 if test "${ac_cv_func_openlog+set}" = set; then
29458   echo $ECHO_N "(cached) $ECHO_C" >&6
29459 else
29460   cat >conftest.$ac_ext <<_ACEOF
29461 /* confdefs.h.  */
29462 _ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h.  */
29466 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29468 #define openlog innocuous_openlog
29469
29470 /* System header to define __stub macros and hopefully few prototypes,
29471     which can conflict with char openlog (); below.
29472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29473     <limits.h> exists even on freestanding compilers.  */
29474
29475 #ifdef __STDC__
29476 # include <limits.h>
29477 #else
29478 # include <assert.h>
29479 #endif
29480
29481 #undef openlog
29482
29483 /* Override any gcc2 internal prototype to avoid an error.  */
29484 #ifdef __cplusplus
29485 extern "C"
29486 {
29487 #endif
29488 /* We use char because int might match the return type of a gcc2
29489    builtin and then its argument prototype would still apply.  */
29490 char openlog ();
29491 /* The GNU C library defines this for functions which it implements
29492     to always fail with ENOSYS.  Some functions are actually named
29493     something starting with __ and the normal name is an alias.  */
29494 #if defined (__stub_openlog) || defined (__stub___openlog)
29495 choke me
29496 #else
29497 char (*f) () = openlog;
29498 #endif
29499 #ifdef __cplusplus
29500 }
29501 #endif
29502
29503 int
29504 main ()
29505 {
29506 return f != openlog;
29507   ;
29508   return 0;
29509 }
29510 _ACEOF
29511 rm -f conftest.$ac_objext conftest$ac_exeext
29512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29513   (eval $ac_link) 2>conftest.er1
29514   ac_status=$?
29515   grep -v '^ *+' conftest.er1 >conftest.err
29516   rm -f conftest.er1
29517   cat conftest.err >&5
29518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519   (exit $ac_status); } &&
29520          { ac_try='test -z "$ac_c_werror_flag"
29521                          || test ! -s conftest.err'
29522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29523   (eval $ac_try) 2>&5
29524   ac_status=$?
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); }; } &&
29527          { ac_try='test -s conftest$ac_exeext'
29528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529   (eval $ac_try) 2>&5
29530   ac_status=$?
29531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532   (exit $ac_status); }; }; then
29533   ac_cv_func_openlog=yes
29534 else
29535   echo "$as_me: failed program was:" >&5
29536 sed 's/^/| /' conftest.$ac_ext >&5
29537
29538 ac_cv_func_openlog=no
29539 fi
29540 rm -f conftest.err conftest.$ac_objext \
29541       conftest$ac_exeext conftest.$ac_ext
29542 fi
29543 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29544 echo "${ECHO_T}$ac_cv_func_openlog" >&6
29545
29546         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29547                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29548 echo "$as_me: error: could not find syslog" >&2;}
29549    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29550         fi
29551         ol_enable_syslog=$ac_cv_func_openlog
29552 fi
29553
29554 ol_link_sql=no
29555 if test $ol_enable_sql != no ; then
29556
29557
29558 for ac_header in sql.h sqlext.h
29559 do
29560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29562   echo "$as_me:$LINENO: checking for $ac_header" >&5
29563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29565   echo $ECHO_N "(cached) $ECHO_C" >&6
29566 fi
29567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29569 else
29570   # Is the header compilable?
29571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29573 cat >conftest.$ac_ext <<_ACEOF
29574 /* confdefs.h.  */
29575 _ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h.  */
29579 $ac_includes_default
29580 #include <$ac_header>
29581 _ACEOF
29582 rm -f conftest.$ac_objext
29583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29584   (eval $ac_compile) 2>conftest.er1
29585   ac_status=$?
29586   grep -v '^ *+' conftest.er1 >conftest.err
29587   rm -f conftest.er1
29588   cat conftest.err >&5
29589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590   (exit $ac_status); } &&
29591          { ac_try='test -z "$ac_c_werror_flag"
29592                          || test ! -s conftest.err'
29593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594   (eval $ac_try) 2>&5
29595   ac_status=$?
29596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597   (exit $ac_status); }; } &&
29598          { ac_try='test -s conftest.$ac_objext'
29599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29600   (eval $ac_try) 2>&5
29601   ac_status=$?
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); }; }; then
29604   ac_header_compiler=yes
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609 ac_header_compiler=no
29610 fi
29611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29613 echo "${ECHO_T}$ac_header_compiler" >&6
29614
29615 # Is the header present?
29616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29618 cat >conftest.$ac_ext <<_ACEOF
29619 /* confdefs.h.  */
29620 _ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h.  */
29624 #include <$ac_header>
29625 _ACEOF
29626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29628   ac_status=$?
29629   grep -v '^ *+' conftest.er1 >conftest.err
29630   rm -f conftest.er1
29631   cat conftest.err >&5
29632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633   (exit $ac_status); } >/dev/null; then
29634   if test -s conftest.err; then
29635     ac_cpp_err=$ac_c_preproc_warn_flag
29636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29637   else
29638     ac_cpp_err=
29639   fi
29640 else
29641   ac_cpp_err=yes
29642 fi
29643 if test -z "$ac_cpp_err"; then
29644   ac_header_preproc=yes
29645 else
29646   echo "$as_me: failed program was:" >&5
29647 sed 's/^/| /' conftest.$ac_ext >&5
29648
29649   ac_header_preproc=no
29650 fi
29651 rm -f conftest.err conftest.$ac_ext
29652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29653 echo "${ECHO_T}$ac_header_preproc" >&6
29654
29655 # So?  What about this header?
29656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29657   yes:no: )
29658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29662     ac_header_preproc=yes
29663     ;;
29664   no:yes:* )
29665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29677     (
29678       cat <<\_ASBOX
29679 ## --------------------------------------------- ##
29680 ## Report this to <http://www.openldap.org/its/> ##
29681 ## --------------------------------------------- ##
29682 _ASBOX
29683     ) |
29684       sed "s/^/$as_me: WARNING:     /" >&2
29685     ;;
29686 esac
29687 echo "$as_me:$LINENO: checking for $ac_header" >&5
29688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29690   echo $ECHO_N "(cached) $ECHO_C" >&6
29691 else
29692   eval "$as_ac_Header=\$ac_header_preproc"
29693 fi
29694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29696
29697 fi
29698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29699   cat >>confdefs.h <<_ACEOF
29700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29701 _ACEOF
29702
29703 else
29704
29705                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29706 echo "$as_me: error: could not locate SQL headers" >&2;}
29707    { (exit 1); exit 1; }; }
29708
29709 fi
29710
29711 done
29712
29713
29714         sql_LIBS="$LIBS"
29715         LIBS="$LTHREAD_LIBS"
29716
29717         if test $ol_with_odbc = auto ; then
29718                 ol_with_odbc="iodbc unixodbc odbc32"
29719         fi
29720
29721         for odbc in $ol_with_odbc ; do
29722                 if test $ol_link_sql = no ; then
29723                         case $odbc in
29724                         iodbc)
29725                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29726 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
29727 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29728   echo $ECHO_N "(cached) $ECHO_C" >&6
29729 else
29730   ac_check_lib_save_LIBS=$LIBS
29731 LIBS="-liodbc  $LIBS"
29732 cat >conftest.$ac_ext <<_ACEOF
29733 /* confdefs.h.  */
29734 _ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h.  */
29738
29739 /* Override any gcc2 internal prototype to avoid an error.  */
29740 #ifdef __cplusplus
29741 extern "C"
29742 #endif
29743 /* We use char because int might match the return type of a gcc2
29744    builtin and then its argument prototype would still apply.  */
29745 char SQLDriverConnect ();
29746 int
29747 main ()
29748 {
29749 SQLDriverConnect ();
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 rm -f conftest.$ac_objext conftest$ac_exeext
29755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29756   (eval $ac_link) 2>conftest.er1
29757   ac_status=$?
29758   grep -v '^ *+' conftest.er1 >conftest.err
29759   rm -f conftest.er1
29760   cat conftest.err >&5
29761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762   (exit $ac_status); } &&
29763          { ac_try='test -z "$ac_c_werror_flag"
29764                          || test ! -s conftest.err'
29765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766   (eval $ac_try) 2>&5
29767   ac_status=$?
29768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769   (exit $ac_status); }; } &&
29770          { ac_try='test -s conftest$ac_exeext'
29771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772   (eval $ac_try) 2>&5
29773   ac_status=$?
29774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775   (exit $ac_status); }; }; then
29776   ac_cv_lib_iodbc_SQLDriverConnect=yes
29777 else
29778   echo "$as_me: failed program was:" >&5
29779 sed 's/^/| /' conftest.$ac_ext >&5
29780
29781 ac_cv_lib_iodbc_SQLDriverConnect=no
29782 fi
29783 rm -f conftest.err conftest.$ac_objext \
29784       conftest$ac_exeext conftest.$ac_ext
29785 LIBS=$ac_check_lib_save_LIBS
29786 fi
29787 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29788 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
29789 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29790   have_iodbc=yes
29791 else
29792   have_iodbc=no
29793 fi
29794
29795                                 if test $have_iodbc = yes ; then
29796                                         ol_link_sql="-liodbc"
29797                                 fi
29798                                 ;;
29799
29800                         unixodbc)
29801                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29802 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
29803 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29804   echo $ECHO_N "(cached) $ECHO_C" >&6
29805 else
29806   ac_check_lib_save_LIBS=$LIBS
29807 LIBS="-lodbc  $LIBS"
29808 cat >conftest.$ac_ext <<_ACEOF
29809 /* confdefs.h.  */
29810 _ACEOF
29811 cat confdefs.h >>conftest.$ac_ext
29812 cat >>conftest.$ac_ext <<_ACEOF
29813 /* end confdefs.h.  */
29814
29815 /* Override any gcc2 internal prototype to avoid an error.  */
29816 #ifdef __cplusplus
29817 extern "C"
29818 #endif
29819 /* We use char because int might match the return type of a gcc2
29820    builtin and then its argument prototype would still apply.  */
29821 char SQLDriverConnect ();
29822 int
29823 main ()
29824 {
29825 SQLDriverConnect ();
29826   ;
29827   return 0;
29828 }
29829 _ACEOF
29830 rm -f conftest.$ac_objext conftest$ac_exeext
29831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29832   (eval $ac_link) 2>conftest.er1
29833   ac_status=$?
29834   grep -v '^ *+' conftest.er1 >conftest.err
29835   rm -f conftest.er1
29836   cat conftest.err >&5
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); } &&
29839          { ac_try='test -z "$ac_c_werror_flag"
29840                          || test ! -s conftest.err'
29841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842   (eval $ac_try) 2>&5
29843   ac_status=$?
29844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845   (exit $ac_status); }; } &&
29846          { ac_try='test -s conftest$ac_exeext'
29847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848   (eval $ac_try) 2>&5
29849   ac_status=$?
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); }; }; then
29852   ac_cv_lib_odbc_SQLDriverConnect=yes
29853 else
29854   echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29856
29857 ac_cv_lib_odbc_SQLDriverConnect=no
29858 fi
29859 rm -f conftest.err conftest.$ac_objext \
29860       conftest$ac_exeext conftest.$ac_ext
29861 LIBS=$ac_check_lib_save_LIBS
29862 fi
29863 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29864 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
29865 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29866   have_odbc=yes
29867 else
29868   have_odbc=no
29869 fi
29870
29871                                 if test $have_odbc = yes ; then
29872                                         ol_link_sql="-lodbc"
29873                                 fi
29874                                 ;;
29875
29876                         odbc32)
29877                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29878 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
29879 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29880   echo $ECHO_N "(cached) $ECHO_C" >&6
29881 else
29882   ac_check_lib_save_LIBS=$LIBS
29883 LIBS="-lodbc32  $LIBS"
29884 cat >conftest.$ac_ext <<_ACEOF
29885 /* confdefs.h.  */
29886 _ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h.  */
29890
29891 /* Override any gcc2 internal prototype to avoid an error.  */
29892 #ifdef __cplusplus
29893 extern "C"
29894 #endif
29895 /* We use char because int might match the return type of a gcc2
29896    builtin and then its argument prototype would still apply.  */
29897 char SQLDriverConnect ();
29898 int
29899 main ()
29900 {
29901 SQLDriverConnect ();
29902   ;
29903   return 0;
29904 }
29905 _ACEOF
29906 rm -f conftest.$ac_objext conftest$ac_exeext
29907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29908   (eval $ac_link) 2>conftest.er1
29909   ac_status=$?
29910   grep -v '^ *+' conftest.er1 >conftest.err
29911   rm -f conftest.er1
29912   cat conftest.err >&5
29913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914   (exit $ac_status); } &&
29915          { ac_try='test -z "$ac_c_werror_flag"
29916                          || test ! -s conftest.err'
29917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918   (eval $ac_try) 2>&5
29919   ac_status=$?
29920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921   (exit $ac_status); }; } &&
29922          { ac_try='test -s conftest$ac_exeext'
29923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924   (eval $ac_try) 2>&5
29925   ac_status=$?
29926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927   (exit $ac_status); }; }; then
29928   ac_cv_lib_odbc32_SQLDriverConnect=yes
29929 else
29930   echo "$as_me: failed program was:" >&5
29931 sed 's/^/| /' conftest.$ac_ext >&5
29932
29933 ac_cv_lib_odbc32_SQLDriverConnect=no
29934 fi
29935 rm -f conftest.err conftest.$ac_objext \
29936       conftest$ac_exeext conftest.$ac_ext
29937 LIBS=$ac_check_lib_save_LIBS
29938 fi
29939 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29940 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
29941 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29942   have_odbc32=yes
29943 else
29944   have_odbc32=no
29945 fi
29946
29947                                 if test $have_odbc32 = yes ; then
29948                                         ol_link_sql="-lodbc32"
29949                                 fi
29950                                 ;;
29951
29952                         *)
29953                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29954 echo "$as_me: error: unknown ODBC library" >&2;}
29955    { (exit 1); exit 1; }; }
29956                                 ;;
29957                         esac
29958                 fi
29959         done
29960
29961         LIBS="$sql_LIBS"
29962
29963         if test $ol_link_sql != no ; then
29964                 SLAPD_SQL_LIBS="$ol_link_sql"
29965
29966         elif test $ol_enable_sql != auto ; then
29967                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29968 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29969    { (exit 1); exit 1; }; }
29970         fi
29971 fi
29972
29973 ol_link_ndb=no
29974 if test $ol_enable_ndb != no ; then
29975         # Extract the first word of "mysql_config", so it can be a program name with args.
29976 set dummy mysql_config; ac_word=$2
29977 echo "$as_me:$LINENO: checking for $ac_word" >&5
29978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29979 if test "${ac_cv_prog_MYSQL+set}" = set; then
29980   echo $ECHO_N "(cached) $ECHO_C" >&6
29981 else
29982   if test -n "$MYSQL"; then
29983   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29984 else
29985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29986 for as_dir in $PATH
29987 do
29988   IFS=$as_save_IFS
29989   test -z "$as_dir" && as_dir=.
29990   for ac_exec_ext in '' $ac_executable_extensions; do
29991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29992     ac_cv_prog_MYSQL="yes"
29993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29994     break 2
29995   fi
29996 done
29997 done
29998
29999 fi
30000 fi
30001 MYSQL=$ac_cv_prog_MYSQL
30002 if test -n "$MYSQL"; then
30003   echo "$as_me:$LINENO: result: $MYSQL" >&5
30004 echo "${ECHO_T}$MYSQL" >&6
30005 else
30006   echo "$as_me:$LINENO: result: no" >&5
30007 echo "${ECHO_T}no" >&6
30008 fi
30009
30010         if test "$MYSQL" != yes ; then
30011                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30012 echo "$as_me: error: could not locate mysql_config" >&2;}
30013    { (exit 1); exit 1; }; }
30014         fi
30015
30016         SQL_INC=`mysql_config --include`
30017         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30018
30019         save_CPPFLAGS="$CPPFLAGS"
30020         CPPFLAGS="$SLAPD_NDB_INCS"
30021         echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30022 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
30023         cat >conftest.$ac_ext <<_ACEOF
30024 /* confdefs.h.  */
30025 _ACEOF
30026 cat confdefs.h >>conftest.$ac_ext
30027 cat >>conftest.$ac_ext <<_ACEOF
30028 /* end confdefs.h.  */
30029 #include <NdbApi.hpp>
30030 _ACEOF
30031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30033   ac_status=$?
30034   grep -v '^ *+' conftest.er1 >conftest.err
30035   rm -f conftest.er1
30036   cat conftest.err >&5
30037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038   (exit $ac_status); } >/dev/null; then
30039   if test -s conftest.err; then
30040     ac_cpp_err=$ac_c_preproc_warn_flag
30041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30042   else
30043     ac_cpp_err=
30044   fi
30045 else
30046   ac_cpp_err=yes
30047 fi
30048 if test -z "$ac_cpp_err"; then
30049   echo "$as_me:$LINENO: result: yes" >&5
30050 echo "${ECHO_T}yes" >&6
30051 else
30052   echo "$as_me: failed program was:" >&5
30053 sed 's/^/| /' conftest.$ac_ext >&5
30054
30055   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30056 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30057    { (exit 1); exit 1; }; }
30058
30059 fi
30060 rm -f conftest.err conftest.$ac_ext
30061         CPPFLAGS="$save_CPPFLAGS"
30062
30063         SQL_LIB=`mysql_config --libs_r`
30064         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30065
30066         save_LDFLAGS="$LDFLAGS"
30067         save_LIBS="$LIBS"
30068         LDFLAGS="$SQL_LIB"
30069         echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30070 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
30071 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30072   echo $ECHO_N "(cached) $ECHO_C" >&6
30073 else
30074   ac_check_lib_save_LIBS=$LIBS
30075 LIBS="-lndbclient -lstdc++ $LIBS"
30076 cat >conftest.$ac_ext <<_ACEOF
30077 /* confdefs.h.  */
30078 _ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h.  */
30082
30083 /* Override any gcc2 internal prototype to avoid an error.  */
30084 #ifdef __cplusplus
30085 extern "C"
30086 #endif
30087 /* We use char because int might match the return type of a gcc2
30088    builtin and then its argument prototype would still apply.  */
30089 char ndb_init ();
30090 int
30091 main ()
30092 {
30093 ndb_init ();
30094   ;
30095   return 0;
30096 }
30097 _ACEOF
30098 rm -f conftest.$ac_objext conftest$ac_exeext
30099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30100   (eval $ac_link) 2>conftest.er1
30101   ac_status=$?
30102   grep -v '^ *+' conftest.er1 >conftest.err
30103   rm -f conftest.er1
30104   cat conftest.err >&5
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); } &&
30107          { ac_try='test -z "$ac_c_werror_flag"
30108                          || test ! -s conftest.err'
30109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110   (eval $ac_try) 2>&5
30111   ac_status=$?
30112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113   (exit $ac_status); }; } &&
30114          { ac_try='test -s conftest$ac_exeext'
30115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116   (eval $ac_try) 2>&5
30117   ac_status=$?
30118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119   (exit $ac_status); }; }; then
30120   ac_cv_lib_ndbclient_ndb_init=yes
30121 else
30122   echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30124
30125 ac_cv_lib_ndbclient_ndb_init=no
30126 fi
30127 rm -f conftest.err conftest.$ac_objext \
30128       conftest$ac_exeext conftest.$ac_ext
30129 LIBS=$ac_check_lib_save_LIBS
30130 fi
30131 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30132 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
30133 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30134   : ok
30135 else
30136
30137                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30138 echo "$as_me: error: could not locate ndbclient library" >&2;}
30139    { (exit 1); exit 1; }; }
30140
30141 fi
30142
30143         LIBS="$save_LIBS"
30144         LDFLAGS="$save_LDFLAGS"
30145
30146         if test "$ol_enable_ndb" = yes ; then
30147                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30148         fi
30149 fi
30150
30151 ol_icu=no
30152
30153 for ac_header in unicode/utypes.h
30154 do
30155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30157   echo "$as_me:$LINENO: checking for $ac_header" >&5
30158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30160   echo $ECHO_N "(cached) $ECHO_C" >&6
30161 fi
30162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30164 else
30165   # Is the header compilable?
30166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30168 cat >conftest.$ac_ext <<_ACEOF
30169 /* confdefs.h.  */
30170 _ACEOF
30171 cat confdefs.h >>conftest.$ac_ext
30172 cat >>conftest.$ac_ext <<_ACEOF
30173 /* end confdefs.h.  */
30174 $ac_includes_default
30175 #include <$ac_header>
30176 _ACEOF
30177 rm -f conftest.$ac_objext
30178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30179   (eval $ac_compile) 2>conftest.er1
30180   ac_status=$?
30181   grep -v '^ *+' conftest.er1 >conftest.err
30182   rm -f conftest.er1
30183   cat conftest.err >&5
30184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185   (exit $ac_status); } &&
30186          { ac_try='test -z "$ac_c_werror_flag"
30187                          || test ! -s conftest.err'
30188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30189   (eval $ac_try) 2>&5
30190   ac_status=$?
30191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192   (exit $ac_status); }; } &&
30193          { ac_try='test -s conftest.$ac_objext'
30194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30195   (eval $ac_try) 2>&5
30196   ac_status=$?
30197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198   (exit $ac_status); }; }; then
30199   ac_header_compiler=yes
30200 else
30201   echo "$as_me: failed program was:" >&5
30202 sed 's/^/| /' conftest.$ac_ext >&5
30203
30204 ac_header_compiler=no
30205 fi
30206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30208 echo "${ECHO_T}$ac_header_compiler" >&6
30209
30210 # Is the header present?
30211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30213 cat >conftest.$ac_ext <<_ACEOF
30214 /* confdefs.h.  */
30215 _ACEOF
30216 cat confdefs.h >>conftest.$ac_ext
30217 cat >>conftest.$ac_ext <<_ACEOF
30218 /* end confdefs.h.  */
30219 #include <$ac_header>
30220 _ACEOF
30221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30223   ac_status=$?
30224   grep -v '^ *+' conftest.er1 >conftest.err
30225   rm -f conftest.er1
30226   cat conftest.err >&5
30227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228   (exit $ac_status); } >/dev/null; then
30229   if test -s conftest.err; then
30230     ac_cpp_err=$ac_c_preproc_warn_flag
30231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30232   else
30233     ac_cpp_err=
30234   fi
30235 else
30236   ac_cpp_err=yes
30237 fi
30238 if test -z "$ac_cpp_err"; then
30239   ac_header_preproc=yes
30240 else
30241   echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30243
30244   ac_header_preproc=no
30245 fi
30246 rm -f conftest.err conftest.$ac_ext
30247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30248 echo "${ECHO_T}$ac_header_preproc" >&6
30249
30250 # So?  What about this header?
30251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30252   yes:no: )
30253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30257     ac_header_preproc=yes
30258     ;;
30259   no:yes:* )
30260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30272     (
30273       cat <<\_ASBOX
30274 ## --------------------------------------------- ##
30275 ## Report this to <http://www.openldap.org/its/> ##
30276 ## --------------------------------------------- ##
30277 _ASBOX
30278     ) |
30279       sed "s/^/$as_me: WARNING:     /" >&2
30280     ;;
30281 esac
30282 echo "$as_me:$LINENO: checking for $ac_header" >&5
30283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30285   echo $ECHO_N "(cached) $ECHO_C" >&6
30286 else
30287   eval "$as_ac_Header=\$ac_header_preproc"
30288 fi
30289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30291
30292 fi
30293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30294   cat >>confdefs.h <<_ACEOF
30295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30296 _ACEOF
30297
30298 fi
30299
30300 done
30301
30302 if test $ac_cv_header_unicode_utypes_h = yes ; then
30303                 OL_ICULIBS="-licuuc -licudata"
30304
30305         echo "$as_me:$LINENO: checking for ICU libraries" >&5
30306 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
30307 if test "${ol_cv_lib_icu+set}" = set; then
30308   echo $ECHO_N "(cached) $ECHO_C" >&6
30309 else
30310
30311                 ol_LIBS="$LIBS"
30312                 LIBS="$OL_ICULIBS $LIBS"
30313                 cat >conftest.$ac_ext <<_ACEOF
30314 /* confdefs.h.  */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h.  */
30319
30320 #include <unicode/utypes.h>
30321
30322 int
30323 main ()
30324 {
30325
30326 (void) u_errorName(0);
30327
30328   ;
30329   return 0;
30330 }
30331 _ACEOF
30332 rm -f conftest.$ac_objext conftest$ac_exeext
30333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30334   (eval $ac_link) 2>conftest.er1
30335   ac_status=$?
30336   grep -v '^ *+' conftest.er1 >conftest.err
30337   rm -f conftest.er1
30338   cat conftest.err >&5
30339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340   (exit $ac_status); } &&
30341          { ac_try='test -z "$ac_c_werror_flag"
30342                          || test ! -s conftest.err'
30343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344   (eval $ac_try) 2>&5
30345   ac_status=$?
30346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347   (exit $ac_status); }; } &&
30348          { ac_try='test -s conftest$ac_exeext'
30349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30350   (eval $ac_try) 2>&5
30351   ac_status=$?
30352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353   (exit $ac_status); }; }; then
30354   ol_cv_lib_icu=yes
30355 else
30356   echo "$as_me: failed program was:" >&5
30357 sed 's/^/| /' conftest.$ac_ext >&5
30358
30359 ol_cv_lib_icu=no
30360 fi
30361 rm -f conftest.err conftest.$ac_objext \
30362       conftest$ac_exeext conftest.$ac_ext
30363                 LIBS="$ol_LIBS"
30364
30365 fi
30366 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30367 echo "${ECHO_T}$ol_cv_lib_icu" >&6
30368
30369         if test $ol_cv_lib_icu != no ; then
30370                 ol_icu="$OL_ICULIBS"
30371
30372 cat >>confdefs.h <<\_ACEOF
30373 #define HAVE_ICU 1
30374 _ACEOF
30375
30376         fi
30377 fi
30378
30379 if test "$ol_icu" = no ; then
30380         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30381 echo "$as_me: WARNING: ICU not available" >&2;}
30382 else
30383         ICU_LIBS="$ol_icu"
30384 fi
30385 WITH_SASL=no
30386 ol_link_sasl=no
30387 ol_link_spasswd=no
30388 if test $ol_with_cyrus_sasl != no ; then
30389
30390
30391 for ac_header in sasl/sasl.h sasl.h
30392 do
30393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30395   echo "$as_me:$LINENO: checking for $ac_header" >&5
30396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30398   echo $ECHO_N "(cached) $ECHO_C" >&6
30399 fi
30400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30402 else
30403   # Is the header compilable?
30404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30406 cat >conftest.$ac_ext <<_ACEOF
30407 /* confdefs.h.  */
30408 _ACEOF
30409 cat confdefs.h >>conftest.$ac_ext
30410 cat >>conftest.$ac_ext <<_ACEOF
30411 /* end confdefs.h.  */
30412 $ac_includes_default
30413 #include <$ac_header>
30414 _ACEOF
30415 rm -f conftest.$ac_objext
30416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30417   (eval $ac_compile) 2>conftest.er1
30418   ac_status=$?
30419   grep -v '^ *+' conftest.er1 >conftest.err
30420   rm -f conftest.er1
30421   cat conftest.err >&5
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); } &&
30424          { ac_try='test -z "$ac_c_werror_flag"
30425                          || test ! -s conftest.err'
30426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427   (eval $ac_try) 2>&5
30428   ac_status=$?
30429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430   (exit $ac_status); }; } &&
30431          { ac_try='test -s conftest.$ac_objext'
30432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433   (eval $ac_try) 2>&5
30434   ac_status=$?
30435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436   (exit $ac_status); }; }; then
30437   ac_header_compiler=yes
30438 else
30439   echo "$as_me: failed program was:" >&5
30440 sed 's/^/| /' conftest.$ac_ext >&5
30441
30442 ac_header_compiler=no
30443 fi
30444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30446 echo "${ECHO_T}$ac_header_compiler" >&6
30447
30448 # Is the header present?
30449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30451 cat >conftest.$ac_ext <<_ACEOF
30452 /* confdefs.h.  */
30453 _ACEOF
30454 cat confdefs.h >>conftest.$ac_ext
30455 cat >>conftest.$ac_ext <<_ACEOF
30456 /* end confdefs.h.  */
30457 #include <$ac_header>
30458 _ACEOF
30459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30461   ac_status=$?
30462   grep -v '^ *+' conftest.er1 >conftest.err
30463   rm -f conftest.er1
30464   cat conftest.err >&5
30465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466   (exit $ac_status); } >/dev/null; then
30467   if test -s conftest.err; then
30468     ac_cpp_err=$ac_c_preproc_warn_flag
30469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30470   else
30471     ac_cpp_err=
30472   fi
30473 else
30474   ac_cpp_err=yes
30475 fi
30476 if test -z "$ac_cpp_err"; then
30477   ac_header_preproc=yes
30478 else
30479   echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30481
30482   ac_header_preproc=no
30483 fi
30484 rm -f conftest.err conftest.$ac_ext
30485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30486 echo "${ECHO_T}$ac_header_preproc" >&6
30487
30488 # So?  What about this header?
30489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30490   yes:no: )
30491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30495     ac_header_preproc=yes
30496     ;;
30497   no:yes:* )
30498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30510     (
30511       cat <<\_ASBOX
30512 ## --------------------------------------------- ##
30513 ## Report this to <http://www.openldap.org/its/> ##
30514 ## --------------------------------------------- ##
30515 _ASBOX
30516     ) |
30517       sed "s/^/$as_me: WARNING:     /" >&2
30518     ;;
30519 esac
30520 echo "$as_me:$LINENO: checking for $ac_header" >&5
30521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30523   echo $ECHO_N "(cached) $ECHO_C" >&6
30524 else
30525   eval "$as_ac_Header=\$ac_header_preproc"
30526 fi
30527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30529
30530 fi
30531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30532   cat >>confdefs.h <<_ACEOF
30533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30534 _ACEOF
30535
30536 fi
30537
30538 done
30539
30540
30541         if test $ac_cv_header_sasl_sasl_h = yes ||
30542            test $ac_cv_header_sasl_h = yes; then
30543                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30544 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
30545 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30546   echo $ECHO_N "(cached) $ECHO_C" >&6
30547 else
30548   ac_check_lib_save_LIBS=$LIBS
30549 LIBS="-lsasl2  $LIBS"
30550 cat >conftest.$ac_ext <<_ACEOF
30551 /* confdefs.h.  */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h.  */
30556
30557 /* Override any gcc2 internal prototype to avoid an error.  */
30558 #ifdef __cplusplus
30559 extern "C"
30560 #endif
30561 /* We use char because int might match the return type of a gcc2
30562    builtin and then its argument prototype would still apply.  */
30563 char sasl_client_init ();
30564 int
30565 main ()
30566 {
30567 sasl_client_init ();
30568   ;
30569   return 0;
30570 }
30571 _ACEOF
30572 rm -f conftest.$ac_objext conftest$ac_exeext
30573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30574   (eval $ac_link) 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } &&
30581          { ac_try='test -z "$ac_c_werror_flag"
30582                          || test ! -s conftest.err'
30583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584   (eval $ac_try) 2>&5
30585   ac_status=$?
30586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587   (exit $ac_status); }; } &&
30588          { ac_try='test -s conftest$ac_exeext'
30589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590   (eval $ac_try) 2>&5
30591   ac_status=$?
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); }; }; then
30594   ac_cv_lib_sasl2_sasl_client_init=yes
30595 else
30596   echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30598
30599 ac_cv_lib_sasl2_sasl_client_init=no
30600 fi
30601 rm -f conftest.err conftest.$ac_objext \
30602       conftest$ac_exeext conftest.$ac_ext
30603 LIBS=$ac_check_lib_save_LIBS
30604 fi
30605 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30606 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
30607 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30608   ol_link_sasl="-lsasl2"
30609 else
30610   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30611 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
30612 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30613   echo $ECHO_N "(cached) $ECHO_C" >&6
30614 else
30615   ac_check_lib_save_LIBS=$LIBS
30616 LIBS="-lsasl  $LIBS"
30617 cat >conftest.$ac_ext <<_ACEOF
30618 /* confdefs.h.  */
30619 _ACEOF
30620 cat confdefs.h >>conftest.$ac_ext
30621 cat >>conftest.$ac_ext <<_ACEOF
30622 /* end confdefs.h.  */
30623
30624 /* Override any gcc2 internal prototype to avoid an error.  */
30625 #ifdef __cplusplus
30626 extern "C"
30627 #endif
30628 /* We use char because int might match the return type of a gcc2
30629    builtin and then its argument prototype would still apply.  */
30630 char sasl_client_init ();
30631 int
30632 main ()
30633 {
30634 sasl_client_init ();
30635   ;
30636   return 0;
30637 }
30638 _ACEOF
30639 rm -f conftest.$ac_objext conftest$ac_exeext
30640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30641   (eval $ac_link) 2>conftest.er1
30642   ac_status=$?
30643   grep -v '^ *+' conftest.er1 >conftest.err
30644   rm -f conftest.er1
30645   cat conftest.err >&5
30646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647   (exit $ac_status); } &&
30648          { ac_try='test -z "$ac_c_werror_flag"
30649                          || test ! -s conftest.err'
30650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651   (eval $ac_try) 2>&5
30652   ac_status=$?
30653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654   (exit $ac_status); }; } &&
30655          { ac_try='test -s conftest$ac_exeext'
30656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657   (eval $ac_try) 2>&5
30658   ac_status=$?
30659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660   (exit $ac_status); }; }; then
30661   ac_cv_lib_sasl_sasl_client_init=yes
30662 else
30663   echo "$as_me: failed program was:" >&5
30664 sed 's/^/| /' conftest.$ac_ext >&5
30665
30666 ac_cv_lib_sasl_sasl_client_init=no
30667 fi
30668 rm -f conftest.err conftest.$ac_objext \
30669       conftest$ac_exeext conftest.$ac_ext
30670 LIBS=$ac_check_lib_save_LIBS
30671 fi
30672 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30673 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
30674 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30675   ol_link_sasl="-lsasl"
30676 fi
30677
30678 fi
30679
30680         fi
30681
30682         if test $ol_link_sasl = no ; then
30683                 if test $ol_with_cyrus_sasl != auto ; then
30684                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30685 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30686    { (exit 1); exit 1; }; }
30687                 else
30688                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30689 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30690                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30691 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30692                         if test $ol_link_tls = no ; then
30693                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30694 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30695                         fi
30696                 fi
30697         else
30698                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30699 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
30700 if test "${ol_cv_sasl_compat+set}" = set; then
30701   echo $ECHO_N "(cached) $ECHO_C" >&6
30702 else
30703
30704         cat >conftest.$ac_ext <<_ACEOF
30705 /* confdefs.h.  */
30706 _ACEOF
30707 cat confdefs.h >>conftest.$ac_ext
30708 cat >>conftest.$ac_ext <<_ACEOF
30709 /* end confdefs.h.  */
30710
30711 #ifdef HAVE_SASL_SASL_H
30712 #include <sasl/sasl.h>
30713 #else
30714 #include <sasl.h>
30715 #endif
30716
30717 /* Require 2.1.15+ */
30718 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30719         char *__sasl_compat = "2.2+ or better okay (we guess)";
30720 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30721         && SASL_VERSION_STEP >=15
30722         char *__sasl_compat = "2.1.15+ or better okay";
30723 #endif
30724
30725 _ACEOF
30726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30727   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30728   ol_cv_sasl_compat=yes
30729 else
30730   ol_cv_sasl_compat=no
30731 fi
30732 rm -f conftest*
30733
30734 fi
30735 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30736 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
30737
30738                 if test $ol_cv_sasl_compat = no ; then
30739                         ol_link_sasl=no
30740                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30741 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30742    { (exit 1); exit 1; }; }
30743                 fi
30744
30745
30746 cat >>confdefs.h <<\_ACEOF
30747 #define HAVE_CYRUS_SASL 1
30748 _ACEOF
30749
30750                 SASL_LIBS="$ol_link_sasl"
30751                 if test $ol_enable_spasswd != no ; then
30752                         ol_link_spasswd=yes
30753                 fi
30754
30755                 ac_save_LIBS="$LIBS"
30756                 LIBS="$LIBS $ol_link_sasl"
30757                 echo "$as_me:$LINENO: checking for sasl_version" >&5
30758 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
30759 if test "${ac_cv_func_sasl_version+set}" = set; then
30760   echo $ECHO_N "(cached) $ECHO_C" >&6
30761 else
30762   cat >conftest.$ac_ext <<_ACEOF
30763 /* confdefs.h.  */
30764 _ACEOF
30765 cat confdefs.h >>conftest.$ac_ext
30766 cat >>conftest.$ac_ext <<_ACEOF
30767 /* end confdefs.h.  */
30768 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30770 #define sasl_version innocuous_sasl_version
30771
30772 /* System header to define __stub macros and hopefully few prototypes,
30773     which can conflict with char sasl_version (); below.
30774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30775     <limits.h> exists even on freestanding compilers.  */
30776
30777 #ifdef __STDC__
30778 # include <limits.h>
30779 #else
30780 # include <assert.h>
30781 #endif
30782
30783 #undef sasl_version
30784
30785 /* Override any gcc2 internal prototype to avoid an error.  */
30786 #ifdef __cplusplus
30787 extern "C"
30788 {
30789 #endif
30790 /* We use char because int might match the return type of a gcc2
30791    builtin and then its argument prototype would still apply.  */
30792 char sasl_version ();
30793 /* The GNU C library defines this for functions which it implements
30794     to always fail with ENOSYS.  Some functions are actually named
30795     something starting with __ and the normal name is an alias.  */
30796 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
30797 choke me
30798 #else
30799 char (*f) () = sasl_version;
30800 #endif
30801 #ifdef __cplusplus
30802 }
30803 #endif
30804
30805 int
30806 main ()
30807 {
30808 return f != sasl_version;
30809   ;
30810   return 0;
30811 }
30812 _ACEOF
30813 rm -f conftest.$ac_objext conftest$ac_exeext
30814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30815   (eval $ac_link) 2>conftest.er1
30816   ac_status=$?
30817   grep -v '^ *+' conftest.er1 >conftest.err
30818   rm -f conftest.er1
30819   cat conftest.err >&5
30820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821   (exit $ac_status); } &&
30822          { ac_try='test -z "$ac_c_werror_flag"
30823                          || test ! -s conftest.err'
30824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30825   (eval $ac_try) 2>&5
30826   ac_status=$?
30827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828   (exit $ac_status); }; } &&
30829          { ac_try='test -s conftest$ac_exeext'
30830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30831   (eval $ac_try) 2>&5
30832   ac_status=$?
30833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834   (exit $ac_status); }; }; then
30835   ac_cv_func_sasl_version=yes
30836 else
30837   echo "$as_me: failed program was:" >&5
30838 sed 's/^/| /' conftest.$ac_ext >&5
30839
30840 ac_cv_func_sasl_version=no
30841 fi
30842 rm -f conftest.err conftest.$ac_objext \
30843       conftest$ac_exeext conftest.$ac_ext
30844 fi
30845 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30846 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
30847 if test $ac_cv_func_sasl_version = yes; then
30848
30849 cat >>confdefs.h <<\_ACEOF
30850 #define HAVE_SASL_VERSION 1
30851 _ACEOF
30852
30853 fi
30854
30855                 LIBS="$ac_save_LIBS"
30856
30857                 WITH_SASL=yes
30858         fi
30859
30860 else
30861         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30862 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30863         if test $ol_link_tls = no ; then
30864                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30865 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30866         fi
30867 fi
30868
30869 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30870         dev=no
30871         if test -r /dev/urandom ; then
30872                 dev="/dev/urandom";
30873         elif test -r /idev/urandom ; then
30874                 dev="/idev/urandom";
30875         elif test -r /dev/srandom ; then
30876                 dev="/dev/srandom";
30877         elif test -r /dev/random ; then
30878                 dev="/dev/random";
30879         elif test -r /idev/random ; then
30880                 dev="/idev/random";
30881         fi
30882
30883         if test $dev != no ; then
30884
30885 cat >>confdefs.h <<_ACEOF
30886 #define URANDOM_DEVICE "$dev"
30887 _ACEOF
30888
30889         fi
30890 fi
30891
30892 ol_link_fetch=no
30893 if test $ol_with_fetch != no ; then
30894         ol_LIBS=$LIBS
30895 LIBS="-lfetch -lcom_err $LIBS"
30896 echo "$as_me:$LINENO: checking fetch(3) library" >&5
30897 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
30898 if test "${ol_cv_lib_fetch+set}" = set; then
30899   echo $ECHO_N "(cached) $ECHO_C" >&6
30900 else
30901
30902         cat >conftest.$ac_ext <<_ACEOF
30903 /* confdefs.h.  */
30904 _ACEOF
30905 cat confdefs.h >>conftest.$ac_ext
30906 cat >>conftest.$ac_ext <<_ACEOF
30907 /* end confdefs.h.  */
30908
30909 #include <sys/param.h>
30910 #include <stdio.h>
30911 #include <fetch.h>
30912 int
30913 main ()
30914 {
30915 struct url *u = fetchParseURL("file:///");
30916   ;
30917   return 0;
30918 }
30919 _ACEOF
30920 rm -f conftest.$ac_objext conftest$ac_exeext
30921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30922   (eval $ac_link) 2>conftest.er1
30923   ac_status=$?
30924   grep -v '^ *+' conftest.er1 >conftest.err
30925   rm -f conftest.er1
30926   cat conftest.err >&5
30927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928   (exit $ac_status); } &&
30929          { ac_try='test -z "$ac_c_werror_flag"
30930                          || test ! -s conftest.err'
30931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30932   (eval $ac_try) 2>&5
30933   ac_status=$?
30934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935   (exit $ac_status); }; } &&
30936          { ac_try='test -s conftest$ac_exeext'
30937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30938   (eval $ac_try) 2>&5
30939   ac_status=$?
30940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941   (exit $ac_status); }; }; then
30942   ol_cv_lib_fetch=yes
30943 else
30944   echo "$as_me: failed program was:" >&5
30945 sed 's/^/| /' conftest.$ac_ext >&5
30946
30947 ol_cv_lib_fetch=no
30948 fi
30949 rm -f conftest.err conftest.$ac_objext \
30950       conftest$ac_exeext conftest.$ac_ext
30951 fi
30952 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30953 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
30954 LIBS=$ol_LIBS
30955 if test $ol_cv_lib_fetch != no ; then
30956         ol_link_fetch="-lfetch -lcom_err"
30957
30958 cat >>confdefs.h <<\_ACEOF
30959 #define HAVE_FETCH 1
30960 _ACEOF
30961
30962 fi
30963
30964
30965         if test $ol_cv_lib_fetch != no ; then
30966                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30967                 ol_link_fetch=freebsd
30968
30969         elif test $ol_with_fetch != auto ; then
30970                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30971 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30972    { (exit 1); exit 1; }; }
30973         fi
30974 fi
30975
30976 if test $ol_enable_crypt != no ; then
30977         save_LIBS="$LIBS"
30978         LIBS="$TLS_LIBS $LIBS"
30979
30980         echo "$as_me:$LINENO: checking for crypt" >&5
30981 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
30982 if test "${ac_cv_func_crypt+set}" = set; then
30983   echo $ECHO_N "(cached) $ECHO_C" >&6
30984 else
30985   cat >conftest.$ac_ext <<_ACEOF
30986 /* confdefs.h.  */
30987 _ACEOF
30988 cat confdefs.h >>conftest.$ac_ext
30989 cat >>conftest.$ac_ext <<_ACEOF
30990 /* end confdefs.h.  */
30991 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30993 #define crypt innocuous_crypt
30994
30995 /* System header to define __stub macros and hopefully few prototypes,
30996     which can conflict with char crypt (); below.
30997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30998     <limits.h> exists even on freestanding compilers.  */
30999
31000 #ifdef __STDC__
31001 # include <limits.h>
31002 #else
31003 # include <assert.h>
31004 #endif
31005
31006 #undef crypt
31007
31008 /* Override any gcc2 internal prototype to avoid an error.  */
31009 #ifdef __cplusplus
31010 extern "C"
31011 {
31012 #endif
31013 /* We use char because int might match the return type of a gcc2
31014    builtin and then its argument prototype would still apply.  */
31015 char crypt ();
31016 /* The GNU C library defines this for functions which it implements
31017     to always fail with ENOSYS.  Some functions are actually named
31018     something starting with __ and the normal name is an alias.  */
31019 #if defined (__stub_crypt) || defined (__stub___crypt)
31020 choke me
31021 #else
31022 char (*f) () = crypt;
31023 #endif
31024 #ifdef __cplusplus
31025 }
31026 #endif
31027
31028 int
31029 main ()
31030 {
31031 return f != crypt;
31032   ;
31033   return 0;
31034 }
31035 _ACEOF
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31038   (eval $ac_link) 2>conftest.er1
31039   ac_status=$?
31040   grep -v '^ *+' conftest.er1 >conftest.err
31041   rm -f conftest.er1
31042   cat conftest.err >&5
31043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044   (exit $ac_status); } &&
31045          { ac_try='test -z "$ac_c_werror_flag"
31046                          || test ! -s conftest.err'
31047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31048   (eval $ac_try) 2>&5
31049   ac_status=$?
31050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051   (exit $ac_status); }; } &&
31052          { ac_try='test -s conftest$ac_exeext'
31053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054   (eval $ac_try) 2>&5
31055   ac_status=$?
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); }; }; then
31058   ac_cv_func_crypt=yes
31059 else
31060   echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31062
31063 ac_cv_func_crypt=no
31064 fi
31065 rm -f conftest.err conftest.$ac_objext \
31066       conftest$ac_exeext conftest.$ac_ext
31067 fi
31068 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31069 echo "${ECHO_T}$ac_cv_func_crypt" >&6
31070 if test $ac_cv_func_crypt = yes; then
31071   have_crypt=yes
31072 else
31073
31074                 LIBS="$save_LIBS"
31075                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31076 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
31077 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31078   echo $ECHO_N "(cached) $ECHO_C" >&6
31079 else
31080   ac_check_lib_save_LIBS=$LIBS
31081 LIBS="-lcrypt  $LIBS"
31082 cat >conftest.$ac_ext <<_ACEOF
31083 /* confdefs.h.  */
31084 _ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h.  */
31088
31089 /* Override any gcc2 internal prototype to avoid an error.  */
31090 #ifdef __cplusplus
31091 extern "C"
31092 #endif
31093 /* We use char because int might match the return type of a gcc2
31094    builtin and then its argument prototype would still apply.  */
31095 char crypt ();
31096 int
31097 main ()
31098 {
31099 crypt ();
31100   ;
31101   return 0;
31102 }
31103 _ACEOF
31104 rm -f conftest.$ac_objext conftest$ac_exeext
31105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31106   (eval $ac_link) 2>conftest.er1
31107   ac_status=$?
31108   grep -v '^ *+' conftest.er1 >conftest.err
31109   rm -f conftest.er1
31110   cat conftest.err >&5
31111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112   (exit $ac_status); } &&
31113          { ac_try='test -z "$ac_c_werror_flag"
31114                          || test ! -s conftest.err'
31115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31116   (eval $ac_try) 2>&5
31117   ac_status=$?
31118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119   (exit $ac_status); }; } &&
31120          { ac_try='test -s conftest$ac_exeext'
31121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31122   (eval $ac_try) 2>&5
31123   ac_status=$?
31124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125   (exit $ac_status); }; }; then
31126   ac_cv_lib_crypt_crypt=yes
31127 else
31128   echo "$as_me: failed program was:" >&5
31129 sed 's/^/| /' conftest.$ac_ext >&5
31130
31131 ac_cv_lib_crypt_crypt=no
31132 fi
31133 rm -f conftest.err conftest.$ac_objext \
31134       conftest$ac_exeext conftest.$ac_ext
31135 LIBS=$ac_check_lib_save_LIBS
31136 fi
31137 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31138 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
31139 if test $ac_cv_lib_crypt_crypt = yes; then
31140   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31141                         have_crypt=yes
31142 else
31143   have_crypt=no
31144 fi
31145
31146 fi
31147
31148
31149         LIBS="$save_LIBS"
31150
31151         if test $have_crypt = yes ; then
31152
31153 cat >>confdefs.h <<\_ACEOF
31154 #define HAVE_CRYPT 1
31155 _ACEOF
31156
31157         else
31158                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31159 echo "$as_me: WARNING: could not find crypt" >&2;}
31160                 if test $ol_enable_crypt = yes ; then
31161                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31162 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31163    { (exit 1); exit 1; }; }
31164                 fi
31165
31166                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31167 echo "$as_me: WARNING: disabling crypt support" >&2;}
31168                 ol_enable_crypt=no
31169         fi
31170 fi
31171
31172 if test $ol_enable_proctitle != no ; then
31173         echo "$as_me:$LINENO: checking for setproctitle" >&5
31174 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
31175 if test "${ac_cv_func_setproctitle+set}" = set; then
31176   echo $ECHO_N "(cached) $ECHO_C" >&6
31177 else
31178   cat >conftest.$ac_ext <<_ACEOF
31179 /* confdefs.h.  */
31180 _ACEOF
31181 cat confdefs.h >>conftest.$ac_ext
31182 cat >>conftest.$ac_ext <<_ACEOF
31183 /* end confdefs.h.  */
31184 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31186 #define setproctitle innocuous_setproctitle
31187
31188 /* System header to define __stub macros and hopefully few prototypes,
31189     which can conflict with char setproctitle (); below.
31190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31191     <limits.h> exists even on freestanding compilers.  */
31192
31193 #ifdef __STDC__
31194 # include <limits.h>
31195 #else
31196 # include <assert.h>
31197 #endif
31198
31199 #undef setproctitle
31200
31201 /* Override any gcc2 internal prototype to avoid an error.  */
31202 #ifdef __cplusplus
31203 extern "C"
31204 {
31205 #endif
31206 /* We use char because int might match the return type of a gcc2
31207    builtin and then its argument prototype would still apply.  */
31208 char setproctitle ();
31209 /* The GNU C library defines this for functions which it implements
31210     to always fail with ENOSYS.  Some functions are actually named
31211     something starting with __ and the normal name is an alias.  */
31212 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
31213 choke me
31214 #else
31215 char (*f) () = setproctitle;
31216 #endif
31217 #ifdef __cplusplus
31218 }
31219 #endif
31220
31221 int
31222 main ()
31223 {
31224 return f != setproctitle;
31225   ;
31226   return 0;
31227 }
31228 _ACEOF
31229 rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31231   (eval $ac_link) 2>conftest.er1
31232   ac_status=$?
31233   grep -v '^ *+' conftest.er1 >conftest.err
31234   rm -f conftest.er1
31235   cat conftest.err >&5
31236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237   (exit $ac_status); } &&
31238          { ac_try='test -z "$ac_c_werror_flag"
31239                          || test ! -s conftest.err'
31240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241   (eval $ac_try) 2>&5
31242   ac_status=$?
31243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244   (exit $ac_status); }; } &&
31245          { ac_try='test -s conftest$ac_exeext'
31246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31247   (eval $ac_try) 2>&5
31248   ac_status=$?
31249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250   (exit $ac_status); }; }; then
31251   ac_cv_func_setproctitle=yes
31252 else
31253   echo "$as_me: failed program was:" >&5
31254 sed 's/^/| /' conftest.$ac_ext >&5
31255
31256 ac_cv_func_setproctitle=no
31257 fi
31258 rm -f conftest.err conftest.$ac_objext \
31259       conftest$ac_exeext conftest.$ac_ext
31260 fi
31261 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31262 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
31263 if test $ac_cv_func_setproctitle = yes; then
31264   have_setproctitle=yes
31265 else
31266
31267                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31268 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
31269 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31270   echo $ECHO_N "(cached) $ECHO_C" >&6
31271 else
31272   ac_check_lib_save_LIBS=$LIBS
31273 LIBS="-lutil  $LIBS"
31274 cat >conftest.$ac_ext <<_ACEOF
31275 /* confdefs.h.  */
31276 _ACEOF
31277 cat confdefs.h >>conftest.$ac_ext
31278 cat >>conftest.$ac_ext <<_ACEOF
31279 /* end confdefs.h.  */
31280
31281 /* Override any gcc2 internal prototype to avoid an error.  */
31282 #ifdef __cplusplus
31283 extern "C"
31284 #endif
31285 /* We use char because int might match the return type of a gcc2
31286    builtin and then its argument prototype would still apply.  */
31287 char setproctitle ();
31288 int
31289 main ()
31290 {
31291 setproctitle ();
31292   ;
31293   return 0;
31294 }
31295 _ACEOF
31296 rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31298   (eval $ac_link) 2>conftest.er1
31299   ac_status=$?
31300   grep -v '^ *+' conftest.er1 >conftest.err
31301   rm -f conftest.er1
31302   cat conftest.err >&5
31303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304   (exit $ac_status); } &&
31305          { ac_try='test -z "$ac_c_werror_flag"
31306                          || test ! -s conftest.err'
31307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308   (eval $ac_try) 2>&5
31309   ac_status=$?
31310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311   (exit $ac_status); }; } &&
31312          { ac_try='test -s conftest$ac_exeext'
31313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314   (eval $ac_try) 2>&5
31315   ac_status=$?
31316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317   (exit $ac_status); }; }; then
31318   ac_cv_lib_util_setproctitle=yes
31319 else
31320   echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31322
31323 ac_cv_lib_util_setproctitle=no
31324 fi
31325 rm -f conftest.err conftest.$ac_objext \
31326       conftest$ac_exeext conftest.$ac_ext
31327 LIBS=$ac_check_lib_save_LIBS
31328 fi
31329 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31330 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
31331 if test $ac_cv_lib_util_setproctitle = yes; then
31332   have_setproctitle=yes
31333                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31334 else
31335   have_setproctitle=no
31336                         case $LIBOBJS in
31337     "setproctitle.$ac_objext"   | \
31338   *" setproctitle.$ac_objext"   | \
31339     "setproctitle.$ac_objext "* | \
31340   *" setproctitle.$ac_objext "* ) ;;
31341   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
31342 esac
31343
31344                         LIBSRCS="$LIBSRCS setproctitle.c"
31345 fi
31346
31347 fi
31348
31349
31350         if test $have_setproctitle = yes ; then
31351
31352 cat >>confdefs.h <<\_ACEOF
31353 #define HAVE_SETPROCTITLE 1
31354 _ACEOF
31355
31356         fi
31357 fi
31358
31359 if test $ol_enable_slp != no ; then
31360
31361 for ac_header in slp.h
31362 do
31363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31365   echo "$as_me:$LINENO: checking for $ac_header" >&5
31366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31368   echo $ECHO_N "(cached) $ECHO_C" >&6
31369 fi
31370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31372 else
31373   # Is the header compilable?
31374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31376 cat >conftest.$ac_ext <<_ACEOF
31377 /* confdefs.h.  */
31378 _ACEOF
31379 cat confdefs.h >>conftest.$ac_ext
31380 cat >>conftest.$ac_ext <<_ACEOF
31381 /* end confdefs.h.  */
31382 $ac_includes_default
31383 #include <$ac_header>
31384 _ACEOF
31385 rm -f conftest.$ac_objext
31386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31387   (eval $ac_compile) 2>conftest.er1
31388   ac_status=$?
31389   grep -v '^ *+' conftest.er1 >conftest.err
31390   rm -f conftest.er1
31391   cat conftest.err >&5
31392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393   (exit $ac_status); } &&
31394          { ac_try='test -z "$ac_c_werror_flag"
31395                          || test ! -s conftest.err'
31396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31397   (eval $ac_try) 2>&5
31398   ac_status=$?
31399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400   (exit $ac_status); }; } &&
31401          { ac_try='test -s conftest.$ac_objext'
31402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31403   (eval $ac_try) 2>&5
31404   ac_status=$?
31405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406   (exit $ac_status); }; }; then
31407   ac_header_compiler=yes
31408 else
31409   echo "$as_me: failed program was:" >&5
31410 sed 's/^/| /' conftest.$ac_ext >&5
31411
31412 ac_header_compiler=no
31413 fi
31414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31416 echo "${ECHO_T}$ac_header_compiler" >&6
31417
31418 # Is the header present?
31419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31421 cat >conftest.$ac_ext <<_ACEOF
31422 /* confdefs.h.  */
31423 _ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h.  */
31427 #include <$ac_header>
31428 _ACEOF
31429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31431   ac_status=$?
31432   grep -v '^ *+' conftest.er1 >conftest.err
31433   rm -f conftest.er1
31434   cat conftest.err >&5
31435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436   (exit $ac_status); } >/dev/null; then
31437   if test -s conftest.err; then
31438     ac_cpp_err=$ac_c_preproc_warn_flag
31439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31440   else
31441     ac_cpp_err=
31442   fi
31443 else
31444   ac_cpp_err=yes
31445 fi
31446 if test -z "$ac_cpp_err"; then
31447   ac_header_preproc=yes
31448 else
31449   echo "$as_me: failed program was:" >&5
31450 sed 's/^/| /' conftest.$ac_ext >&5
31451
31452   ac_header_preproc=no
31453 fi
31454 rm -f conftest.err conftest.$ac_ext
31455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31456 echo "${ECHO_T}$ac_header_preproc" >&6
31457
31458 # So?  What about this header?
31459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31460   yes:no: )
31461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31465     ac_header_preproc=yes
31466     ;;
31467   no:yes:* )
31468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31470     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31471 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31472     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31474     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31475 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31478     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31480     (
31481       cat <<\_ASBOX
31482 ## --------------------------------------------- ##
31483 ## Report this to <http://www.openldap.org/its/> ##
31484 ## --------------------------------------------- ##
31485 _ASBOX
31486     ) |
31487       sed "s/^/$as_me: WARNING:     /" >&2
31488     ;;
31489 esac
31490 echo "$as_me:$LINENO: checking for $ac_header" >&5
31491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31493   echo $ECHO_N "(cached) $ECHO_C" >&6
31494 else
31495   eval "$as_ac_Header=\$ac_header_preproc"
31496 fi
31497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31499
31500 fi
31501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31502   cat >>confdefs.h <<_ACEOF
31503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31504 _ACEOF
31505
31506 fi
31507
31508 done
31509
31510
31511         if test $ac_cv_header_slp_h = yes ; then
31512                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31513 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
31514 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31515   echo $ECHO_N "(cached) $ECHO_C" >&6
31516 else
31517   ac_check_lib_save_LIBS=$LIBS
31518 LIBS="-lslp  $LIBS"
31519 cat >conftest.$ac_ext <<_ACEOF
31520 /* confdefs.h.  */
31521 _ACEOF
31522 cat confdefs.h >>conftest.$ac_ext
31523 cat >>conftest.$ac_ext <<_ACEOF
31524 /* end confdefs.h.  */
31525
31526 /* Override any gcc2 internal prototype to avoid an error.  */
31527 #ifdef __cplusplus
31528 extern "C"
31529 #endif
31530 /* We use char because int might match the return type of a gcc2
31531    builtin and then its argument prototype would still apply.  */
31532 char SLPOpen ();
31533 int
31534 main ()
31535 {
31536 SLPOpen ();
31537   ;
31538   return 0;
31539 }
31540 _ACEOF
31541 rm -f conftest.$ac_objext conftest$ac_exeext
31542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31543   (eval $ac_link) 2>conftest.er1
31544   ac_status=$?
31545   grep -v '^ *+' conftest.er1 >conftest.err
31546   rm -f conftest.er1
31547   cat conftest.err >&5
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); } &&
31550          { ac_try='test -z "$ac_c_werror_flag"
31551                          || test ! -s conftest.err'
31552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553   (eval $ac_try) 2>&5
31554   ac_status=$?
31555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556   (exit $ac_status); }; } &&
31557          { ac_try='test -s conftest$ac_exeext'
31558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31559   (eval $ac_try) 2>&5
31560   ac_status=$?
31561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562   (exit $ac_status); }; }; then
31563   ac_cv_lib_slp_SLPOpen=yes
31564 else
31565   echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31567
31568 ac_cv_lib_slp_SLPOpen=no
31569 fi
31570 rm -f conftest.err conftest.$ac_objext \
31571       conftest$ac_exeext conftest.$ac_ext
31572 LIBS=$ac_check_lib_save_LIBS
31573 fi
31574 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31575 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
31576 if test $ac_cv_lib_slp_SLPOpen = yes; then
31577   have_slp=yes
31578 else
31579   have_slp=no
31580 fi
31581
31582                 if test $have_slp = yes ; then
31583
31584 cat >>confdefs.h <<\_ACEOF
31585 #define HAVE_SLP 1
31586 _ACEOF
31587
31588                         SLAPD_SLP_LIBS=-lslp
31589                 fi
31590
31591         elif test $ol_enable_slp = yes ; then
31592                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31593 echo "$as_me: error: SLP not found" >&2;}
31594    { (exit 1); exit 1; }; }
31595         fi
31596 fi
31597
31598
31599 echo "$as_me:$LINENO: checking for mode_t" >&5
31600 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31601 if test "${ac_cv_type_mode_t+set}" = set; then
31602   echo $ECHO_N "(cached) $ECHO_C" >&6
31603 else
31604   cat >conftest.$ac_ext <<_ACEOF
31605 /* confdefs.h.  */
31606 _ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h.  */
31610 $ac_includes_default
31611 int
31612 main ()
31613 {
31614 if ((mode_t *) 0)
31615   return 0;
31616 if (sizeof (mode_t))
31617   return 0;
31618   ;
31619   return 0;
31620 }
31621 _ACEOF
31622 rm -f conftest.$ac_objext
31623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31624   (eval $ac_compile) 2>conftest.er1
31625   ac_status=$?
31626   grep -v '^ *+' conftest.er1 >conftest.err
31627   rm -f conftest.er1
31628   cat conftest.err >&5
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); } &&
31631          { ac_try='test -z "$ac_c_werror_flag"
31632                          || test ! -s conftest.err'
31633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634   (eval $ac_try) 2>&5
31635   ac_status=$?
31636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637   (exit $ac_status); }; } &&
31638          { ac_try='test -s conftest.$ac_objext'
31639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640   (eval $ac_try) 2>&5
31641   ac_status=$?
31642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643   (exit $ac_status); }; }; then
31644   ac_cv_type_mode_t=yes
31645 else
31646   echo "$as_me: failed program was:" >&5
31647 sed 's/^/| /' conftest.$ac_ext >&5
31648
31649 ac_cv_type_mode_t=no
31650 fi
31651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31652 fi
31653 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31654 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31655 if test $ac_cv_type_mode_t = yes; then
31656   :
31657 else
31658
31659 cat >>confdefs.h <<_ACEOF
31660 #define mode_t int
31661 _ACEOF
31662
31663 fi
31664
31665 echo "$as_me:$LINENO: checking for off_t" >&5
31666 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31667 if test "${ac_cv_type_off_t+set}" = set; then
31668   echo $ECHO_N "(cached) $ECHO_C" >&6
31669 else
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 int
31678 main ()
31679 {
31680 if ((off_t *) 0)
31681   return 0;
31682 if (sizeof (off_t))
31683   return 0;
31684   ;
31685   return 0;
31686 }
31687 _ACEOF
31688 rm -f conftest.$ac_objext
31689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31690   (eval $ac_compile) 2>conftest.er1
31691   ac_status=$?
31692   grep -v '^ *+' conftest.er1 >conftest.err
31693   rm -f conftest.er1
31694   cat conftest.err >&5
31695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696   (exit $ac_status); } &&
31697          { ac_try='test -z "$ac_c_werror_flag"
31698                          || test ! -s conftest.err'
31699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31700   (eval $ac_try) 2>&5
31701   ac_status=$?
31702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703   (exit $ac_status); }; } &&
31704          { ac_try='test -s conftest.$ac_objext'
31705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31706   (eval $ac_try) 2>&5
31707   ac_status=$?
31708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709   (exit $ac_status); }; }; then
31710   ac_cv_type_off_t=yes
31711 else
31712   echo "$as_me: failed program was:" >&5
31713 sed 's/^/| /' conftest.$ac_ext >&5
31714
31715 ac_cv_type_off_t=no
31716 fi
31717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31718 fi
31719 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31720 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31721 if test $ac_cv_type_off_t = yes; then
31722   :
31723 else
31724
31725 cat >>confdefs.h <<_ACEOF
31726 #define off_t long
31727 _ACEOF
31728
31729 fi
31730
31731 echo "$as_me:$LINENO: checking for pid_t" >&5
31732 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31733 if test "${ac_cv_type_pid_t+set}" = set; then
31734   echo $ECHO_N "(cached) $ECHO_C" >&6
31735 else
31736   cat >conftest.$ac_ext <<_ACEOF
31737 /* confdefs.h.  */
31738 _ACEOF
31739 cat confdefs.h >>conftest.$ac_ext
31740 cat >>conftest.$ac_ext <<_ACEOF
31741 /* end confdefs.h.  */
31742 $ac_includes_default
31743 int
31744 main ()
31745 {
31746 if ((pid_t *) 0)
31747   return 0;
31748 if (sizeof (pid_t))
31749   return 0;
31750   ;
31751   return 0;
31752 }
31753 _ACEOF
31754 rm -f conftest.$ac_objext
31755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31756   (eval $ac_compile) 2>conftest.er1
31757   ac_status=$?
31758   grep -v '^ *+' conftest.er1 >conftest.err
31759   rm -f conftest.er1
31760   cat conftest.err >&5
31761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); } &&
31763          { ac_try='test -z "$ac_c_werror_flag"
31764                          || test ! -s conftest.err'
31765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766   (eval $ac_try) 2>&5
31767   ac_status=$?
31768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769   (exit $ac_status); }; } &&
31770          { ac_try='test -s conftest.$ac_objext'
31771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772   (eval $ac_try) 2>&5
31773   ac_status=$?
31774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775   (exit $ac_status); }; }; then
31776   ac_cv_type_pid_t=yes
31777 else
31778   echo "$as_me: failed program was:" >&5
31779 sed 's/^/| /' conftest.$ac_ext >&5
31780
31781 ac_cv_type_pid_t=no
31782 fi
31783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31784 fi
31785 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31786 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31787 if test $ac_cv_type_pid_t = yes; then
31788   :
31789 else
31790
31791 cat >>confdefs.h <<_ACEOF
31792 #define pid_t int
31793 _ACEOF
31794
31795 fi
31796
31797 echo "$as_me:$LINENO: checking for ssize_t" >&5
31798 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31799 if test "${ac_cv_type_ssize_t+set}" = set; then
31800   echo $ECHO_N "(cached) $ECHO_C" >&6
31801 else
31802   cat >conftest.$ac_ext <<_ACEOF
31803 /* confdefs.h.  */
31804 _ACEOF
31805 cat confdefs.h >>conftest.$ac_ext
31806 cat >>conftest.$ac_ext <<_ACEOF
31807 /* end confdefs.h.  */
31808 $ac_includes_default
31809 int
31810 main ()
31811 {
31812 if ((ssize_t *) 0)
31813   return 0;
31814 if (sizeof (ssize_t))
31815   return 0;
31816   ;
31817   return 0;
31818 }
31819 _ACEOF
31820 rm -f conftest.$ac_objext
31821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31822   (eval $ac_compile) 2>conftest.er1
31823   ac_status=$?
31824   grep -v '^ *+' conftest.er1 >conftest.err
31825   rm -f conftest.er1
31826   cat conftest.err >&5
31827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828   (exit $ac_status); } &&
31829          { ac_try='test -z "$ac_c_werror_flag"
31830                          || test ! -s conftest.err'
31831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31832   (eval $ac_try) 2>&5
31833   ac_status=$?
31834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835   (exit $ac_status); }; } &&
31836          { ac_try='test -s conftest.$ac_objext'
31837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31838   (eval $ac_try) 2>&5
31839   ac_status=$?
31840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841   (exit $ac_status); }; }; then
31842   ac_cv_type_ssize_t=yes
31843 else
31844   echo "$as_me: failed program was:" >&5
31845 sed 's/^/| /' conftest.$ac_ext >&5
31846
31847 ac_cv_type_ssize_t=no
31848 fi
31849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31850 fi
31851 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31852 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31853 if test $ac_cv_type_ssize_t = yes; then
31854   :
31855 else
31856
31857 cat >>confdefs.h <<_ACEOF
31858 #define ssize_t signed int
31859 _ACEOF
31860
31861 fi
31862
31863 echo "$as_me:$LINENO: checking for caddr_t" >&5
31864 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
31865 if test "${ac_cv_type_caddr_t+set}" = set; then
31866   echo $ECHO_N "(cached) $ECHO_C" >&6
31867 else
31868   cat >conftest.$ac_ext <<_ACEOF
31869 /* confdefs.h.  */
31870 _ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h.  */
31874 $ac_includes_default
31875 int
31876 main ()
31877 {
31878 if ((caddr_t *) 0)
31879   return 0;
31880 if (sizeof (caddr_t))
31881   return 0;
31882   ;
31883   return 0;
31884 }
31885 _ACEOF
31886 rm -f conftest.$ac_objext
31887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31888   (eval $ac_compile) 2>conftest.er1
31889   ac_status=$?
31890   grep -v '^ *+' conftest.er1 >conftest.err
31891   rm -f conftest.er1
31892   cat conftest.err >&5
31893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894   (exit $ac_status); } &&
31895          { ac_try='test -z "$ac_c_werror_flag"
31896                          || test ! -s conftest.err'
31897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898   (eval $ac_try) 2>&5
31899   ac_status=$?
31900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901   (exit $ac_status); }; } &&
31902          { ac_try='test -s conftest.$ac_objext'
31903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31904   (eval $ac_try) 2>&5
31905   ac_status=$?
31906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907   (exit $ac_status); }; }; then
31908   ac_cv_type_caddr_t=yes
31909 else
31910   echo "$as_me: failed program was:" >&5
31911 sed 's/^/| /' conftest.$ac_ext >&5
31912
31913 ac_cv_type_caddr_t=no
31914 fi
31915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31916 fi
31917 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31918 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
31919 if test $ac_cv_type_caddr_t = yes; then
31920   :
31921 else
31922
31923 cat >>confdefs.h <<_ACEOF
31924 #define caddr_t char *
31925 _ACEOF
31926
31927 fi
31928
31929 echo "$as_me:$LINENO: checking for size_t" >&5
31930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31931 if test "${ac_cv_type_size_t+set}" = set; then
31932   echo $ECHO_N "(cached) $ECHO_C" >&6
31933 else
31934   cat >conftest.$ac_ext <<_ACEOF
31935 /* confdefs.h.  */
31936 _ACEOF
31937 cat confdefs.h >>conftest.$ac_ext
31938 cat >>conftest.$ac_ext <<_ACEOF
31939 /* end confdefs.h.  */
31940 $ac_includes_default
31941 int
31942 main ()
31943 {
31944 if ((size_t *) 0)
31945   return 0;
31946 if (sizeof (size_t))
31947   return 0;
31948   ;
31949   return 0;
31950 }
31951 _ACEOF
31952 rm -f conftest.$ac_objext
31953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31954   (eval $ac_compile) 2>conftest.er1
31955   ac_status=$?
31956   grep -v '^ *+' conftest.er1 >conftest.err
31957   rm -f conftest.er1
31958   cat conftest.err >&5
31959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960   (exit $ac_status); } &&
31961          { ac_try='test -z "$ac_c_werror_flag"
31962                          || test ! -s conftest.err'
31963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31964   (eval $ac_try) 2>&5
31965   ac_status=$?
31966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967   (exit $ac_status); }; } &&
31968          { ac_try='test -s conftest.$ac_objext'
31969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31970   (eval $ac_try) 2>&5
31971   ac_status=$?
31972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973   (exit $ac_status); }; }; then
31974   ac_cv_type_size_t=yes
31975 else
31976   echo "$as_me: failed program was:" >&5
31977 sed 's/^/| /' conftest.$ac_ext >&5
31978
31979 ac_cv_type_size_t=no
31980 fi
31981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31982 fi
31983 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31984 echo "${ECHO_T}$ac_cv_type_size_t" >&6
31985 if test $ac_cv_type_size_t = yes; then
31986   :
31987 else
31988
31989 cat >>confdefs.h <<_ACEOF
31990 #define size_t unsigned
31991 _ACEOF
31992
31993 fi
31994
31995
31996 echo "$as_me:$LINENO: checking for long long" >&5
31997 echo $ECHO_N "checking for long long... $ECHO_C" >&6
31998 if test "${ac_cv_type_long_long+set}" = set; then
31999   echo $ECHO_N "(cached) $ECHO_C" >&6
32000 else
32001   cat >conftest.$ac_ext <<_ACEOF
32002 /* confdefs.h.  */
32003 _ACEOF
32004 cat confdefs.h >>conftest.$ac_ext
32005 cat >>conftest.$ac_ext <<_ACEOF
32006 /* end confdefs.h.  */
32007 $ac_includes_default
32008 int
32009 main ()
32010 {
32011 if ((long long *) 0)
32012   return 0;
32013 if (sizeof (long long))
32014   return 0;
32015   ;
32016   return 0;
32017 }
32018 _ACEOF
32019 rm -f conftest.$ac_objext
32020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32021   (eval $ac_compile) 2>conftest.er1
32022   ac_status=$?
32023   grep -v '^ *+' conftest.er1 >conftest.err
32024   rm -f conftest.er1
32025   cat conftest.err >&5
32026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027   (exit $ac_status); } &&
32028          { ac_try='test -z "$ac_c_werror_flag"
32029                          || test ! -s conftest.err'
32030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32031   (eval $ac_try) 2>&5
32032   ac_status=$?
32033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034   (exit $ac_status); }; } &&
32035          { ac_try='test -s conftest.$ac_objext'
32036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32037   (eval $ac_try) 2>&5
32038   ac_status=$?
32039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040   (exit $ac_status); }; }; then
32041   ac_cv_type_long_long=yes
32042 else
32043   echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32045
32046 ac_cv_type_long_long=no
32047 fi
32048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32049 fi
32050 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32051 echo "${ECHO_T}$ac_cv_type_long_long" >&6
32052 if test $ac_cv_type_long_long = yes; then
32053
32054 cat >>confdefs.h <<_ACEOF
32055 #define HAVE_LONG_LONG 1
32056 _ACEOF
32057
32058
32059 fi
32060
32061 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32062 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
32063 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32064   echo $ECHO_N "(cached) $ECHO_C" >&6
32065 else
32066   cat >conftest.$ac_ext <<_ACEOF
32067 /* confdefs.h.  */
32068 _ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h.  */
32072 $ac_includes_default
32073 int
32074 main ()
32075 {
32076 if ((ptrdiff_t *) 0)
32077   return 0;
32078 if (sizeof (ptrdiff_t))
32079   return 0;
32080   ;
32081   return 0;
32082 }
32083 _ACEOF
32084 rm -f conftest.$ac_objext
32085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32086   (eval $ac_compile) 2>conftest.er1
32087   ac_status=$?
32088   grep -v '^ *+' conftest.er1 >conftest.err
32089   rm -f conftest.er1
32090   cat conftest.err >&5
32091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092   (exit $ac_status); } &&
32093          { ac_try='test -z "$ac_c_werror_flag"
32094                          || test ! -s conftest.err'
32095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32096   (eval $ac_try) 2>&5
32097   ac_status=$?
32098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099   (exit $ac_status); }; } &&
32100          { ac_try='test -s conftest.$ac_objext'
32101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32102   (eval $ac_try) 2>&5
32103   ac_status=$?
32104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105   (exit $ac_status); }; }; then
32106   ac_cv_type_ptrdiff_t=yes
32107 else
32108   echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32110
32111 ac_cv_type_ptrdiff_t=no
32112 fi
32113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32114 fi
32115 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32116 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
32117 if test $ac_cv_type_ptrdiff_t = yes; then
32118
32119 cat >>confdefs.h <<_ACEOF
32120 #define HAVE_PTRDIFF_T 1
32121 _ACEOF
32122
32123
32124 fi
32125
32126
32127
32128 echo "$as_me:$LINENO: checking for socklen_t" >&5
32129 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
32130 if test "${ac_cv_type_socklen_t+set}" = set; then
32131   echo $ECHO_N "(cached) $ECHO_C" >&6
32132 else
32133   cat >conftest.$ac_ext <<_ACEOF
32134 /* confdefs.h.  */
32135 _ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h.  */
32139 $ac_includes_default
32140 #ifdef HAVE_SYS_SOCKET_H
32141 #include <sys/socket.h>
32142 #endif
32143
32144 int
32145 main ()
32146 {
32147 if ((socklen_t *) 0)
32148   return 0;
32149 if (sizeof (socklen_t))
32150   return 0;
32151   ;
32152   return 0;
32153 }
32154 _ACEOF
32155 rm -f conftest.$ac_objext
32156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32157   (eval $ac_compile) 2>conftest.er1
32158   ac_status=$?
32159   grep -v '^ *+' conftest.er1 >conftest.err
32160   rm -f conftest.er1
32161   cat conftest.err >&5
32162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163   (exit $ac_status); } &&
32164          { ac_try='test -z "$ac_c_werror_flag"
32165                          || test ! -s conftest.err'
32166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32167   (eval $ac_try) 2>&5
32168   ac_status=$?
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); }; } &&
32171          { ac_try='test -s conftest.$ac_objext'
32172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173   (eval $ac_try) 2>&5
32174   ac_status=$?
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); }; }; then
32177   ac_cv_type_socklen_t=yes
32178 else
32179   echo "$as_me: failed program was:" >&5
32180 sed 's/^/| /' conftest.$ac_ext >&5
32181
32182 ac_cv_type_socklen_t=no
32183 fi
32184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32185 fi
32186 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32187 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
32188
32189
32190 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32191 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
32192 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32193   echo $ECHO_N "(cached) $ECHO_C" >&6
32194 else
32195
32196         set socklen_t int unsigned "unsigned long" long size_t
32197         test "$ac_cv_type_socklen_t" = yes || shift
32198         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32199         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32200                 cat >conftest.$ac_ext <<_ACEOF
32201 /* confdefs.h.  */
32202 _ACEOF
32203 cat confdefs.h >>conftest.$ac_ext
32204 cat >>conftest.$ac_ext <<_ACEOF
32205 /* end confdefs.h.  */
32206 $ac_includes_default
32207 #ifdef HAVE_SYS_SOCKET_H
32208 #include <sys/socket.h>
32209 #endif
32210 extern int accept(int s, $addrtype *ap, $lentype *lp);
32211
32212 int
32213 main ()
32214 {
32215
32216 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32217
32218   ;
32219   return 0;
32220 }
32221 _ACEOF
32222 rm -f conftest.$ac_objext
32223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32224   (eval $ac_compile) 2>conftest.er1
32225   ac_status=$?
32226   grep -v '^ *+' conftest.er1 >conftest.err
32227   rm -f conftest.er1
32228   cat conftest.err >&5
32229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230   (exit $ac_status); } &&
32231          { ac_try='test -z "$ac_c_werror_flag"
32232                          || test ! -s conftest.err'
32233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32234   (eval $ac_try) 2>&5
32235   ac_status=$?
32236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237   (exit $ac_status); }; } &&
32238          { ac_try='test -s conftest.$ac_objext'
32239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32240   (eval $ac_try) 2>&5
32241   ac_status=$?
32242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243   (exit $ac_status); }; }; then
32244   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32245 else
32246   echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.$ac_ext >&5
32248
32249 fi
32250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32251         done ; done
32252 fi
32253
32254 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32255 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
32256
32257 cat >>confdefs.h <<_ACEOF
32258 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32259 _ACEOF
32260
32261
32262 if test "$ac_cv_type_socklen_t" != yes; then
32263
32264 cat >>confdefs.h <<_ACEOF
32265 #define socklen_t $ol_cv_type_ber_socklen_t
32266 _ACEOF
32267
32268 fi
32269
32270
32271 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32272 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32273 if test "${ac_cv_type_signal+set}" = set; then
32274   echo $ECHO_N "(cached) $ECHO_C" >&6
32275 else
32276   cat >conftest.$ac_ext <<_ACEOF
32277 /* confdefs.h.  */
32278 _ACEOF
32279 cat confdefs.h >>conftest.$ac_ext
32280 cat >>conftest.$ac_ext <<_ACEOF
32281 /* end confdefs.h.  */
32282 #include <sys/types.h>
32283 #include <signal.h>
32284 #ifdef signal
32285 # undef signal
32286 #endif
32287 #ifdef __cplusplus
32288 extern "C" void (*signal (int, void (*)(int)))(int);
32289 #else
32290 void (*signal ()) ();
32291 #endif
32292
32293 int
32294 main ()
32295 {
32296 int i;
32297   ;
32298   return 0;
32299 }
32300 _ACEOF
32301 rm -f conftest.$ac_objext
32302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32303   (eval $ac_compile) 2>conftest.er1
32304   ac_status=$?
32305   grep -v '^ *+' conftest.er1 >conftest.err
32306   rm -f conftest.er1
32307   cat conftest.err >&5
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); } &&
32310          { ac_try='test -z "$ac_c_werror_flag"
32311                          || test ! -s conftest.err'
32312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32313   (eval $ac_try) 2>&5
32314   ac_status=$?
32315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316   (exit $ac_status); }; } &&
32317          { ac_try='test -s conftest.$ac_objext'
32318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319   (eval $ac_try) 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); }; }; then
32323   ac_cv_type_signal=void
32324 else
32325   echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32327
32328 ac_cv_type_signal=int
32329 fi
32330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32331 fi
32332 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32333 echo "${ECHO_T}$ac_cv_type_signal" >&6
32334
32335 cat >>confdefs.h <<_ACEOF
32336 #define RETSIGTYPE $ac_cv_type_signal
32337 _ACEOF
32338
32339
32340
32341 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32342 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
32343 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32344   echo $ECHO_N "(cached) $ECHO_C" >&6
32345 else
32346   cat >conftest.$ac_ext <<_ACEOF
32347 /* confdefs.h.  */
32348 _ACEOF
32349 cat confdefs.h >>conftest.$ac_ext
32350 cat >>conftest.$ac_ext <<_ACEOF
32351 /* end confdefs.h.  */
32352 $ac_includes_default
32353 #include <signal.h>
32354
32355
32356 int
32357 main ()
32358 {
32359 if ((sig_atomic_t *) 0)
32360   return 0;
32361 if (sizeof (sig_atomic_t))
32362   return 0;
32363   ;
32364   return 0;
32365 }
32366 _ACEOF
32367 rm -f conftest.$ac_objext
32368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32369   (eval $ac_compile) 2>conftest.er1
32370   ac_status=$?
32371   grep -v '^ *+' conftest.er1 >conftest.err
32372   rm -f conftest.er1
32373   cat conftest.err >&5
32374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375   (exit $ac_status); } &&
32376          { ac_try='test -z "$ac_c_werror_flag"
32377                          || test ! -s conftest.err'
32378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32379   (eval $ac_try) 2>&5
32380   ac_status=$?
32381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382   (exit $ac_status); }; } &&
32383          { ac_try='test -s conftest.$ac_objext'
32384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32385   (eval $ac_try) 2>&5
32386   ac_status=$?
32387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388   (exit $ac_status); }; }; then
32389   ac_cv_type_sig_atomic_t=yes
32390 else
32391   echo "$as_me: failed program was:" >&5
32392 sed 's/^/| /' conftest.$ac_ext >&5
32393
32394 ac_cv_type_sig_atomic_t=no
32395 fi
32396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32397 fi
32398 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32399 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
32400 if test $ac_cv_type_sig_atomic_t = yes; then
32401   :
32402 else
32403
32404 cat >>confdefs.h <<_ACEOF
32405 #define sig_atomic_t int
32406 _ACEOF
32407
32408 fi
32409
32410
32411 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32412 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32413 if test "${ac_cv_type_uid_t+set}" = set; then
32414   echo $ECHO_N "(cached) $ECHO_C" >&6
32415 else
32416   cat >conftest.$ac_ext <<_ACEOF
32417 /* confdefs.h.  */
32418 _ACEOF
32419 cat confdefs.h >>conftest.$ac_ext
32420 cat >>conftest.$ac_ext <<_ACEOF
32421 /* end confdefs.h.  */
32422 #include <sys/types.h>
32423
32424 _ACEOF
32425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32426   $EGREP "uid_t" >/dev/null 2>&1; then
32427   ac_cv_type_uid_t=yes
32428 else
32429   ac_cv_type_uid_t=no
32430 fi
32431 rm -f conftest*
32432
32433 fi
32434 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32435 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32436 if test $ac_cv_type_uid_t = no; then
32437
32438 cat >>confdefs.h <<\_ACEOF
32439 #define uid_t int
32440 _ACEOF
32441
32442
32443 cat >>confdefs.h <<\_ACEOF
32444 #define gid_t int
32445 _ACEOF
32446
32447 fi
32448
32449
32450 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32451 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32452 if test "${ac_cv_header_time+set}" = set; then
32453   echo $ECHO_N "(cached) $ECHO_C" >&6
32454 else
32455   cat >conftest.$ac_ext <<_ACEOF
32456 /* confdefs.h.  */
32457 _ACEOF
32458 cat confdefs.h >>conftest.$ac_ext
32459 cat >>conftest.$ac_ext <<_ACEOF
32460 /* end confdefs.h.  */
32461 #include <sys/types.h>
32462 #include <sys/time.h>
32463 #include <time.h>
32464
32465 int
32466 main ()
32467 {
32468 if ((struct tm *) 0)
32469 return 0;
32470   ;
32471   return 0;
32472 }
32473 _ACEOF
32474 rm -f conftest.$ac_objext
32475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32476   (eval $ac_compile) 2>conftest.er1
32477   ac_status=$?
32478   grep -v '^ *+' conftest.er1 >conftest.err
32479   rm -f conftest.er1
32480   cat conftest.err >&5
32481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482   (exit $ac_status); } &&
32483          { ac_try='test -z "$ac_c_werror_flag"
32484                          || test ! -s conftest.err'
32485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486   (eval $ac_try) 2>&5
32487   ac_status=$?
32488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489   (exit $ac_status); }; } &&
32490          { ac_try='test -s conftest.$ac_objext'
32491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492   (eval $ac_try) 2>&5
32493   ac_status=$?
32494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495   (exit $ac_status); }; }; then
32496   ac_cv_header_time=yes
32497 else
32498   echo "$as_me: failed program was:" >&5
32499 sed 's/^/| /' conftest.$ac_ext >&5
32500
32501 ac_cv_header_time=no
32502 fi
32503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32504 fi
32505 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32506 echo "${ECHO_T}$ac_cv_header_time" >&6
32507 if test $ac_cv_header_time = yes; then
32508
32509 cat >>confdefs.h <<\_ACEOF
32510 #define TIME_WITH_SYS_TIME 1
32511 _ACEOF
32512
32513 fi
32514
32515 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32516 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
32517 if test "${ac_cv_struct_tm+set}" = set; then
32518   echo $ECHO_N "(cached) $ECHO_C" >&6
32519 else
32520   cat >conftest.$ac_ext <<_ACEOF
32521 /* confdefs.h.  */
32522 _ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h.  */
32526 #include <sys/types.h>
32527 #include <time.h>
32528
32529 int
32530 main ()
32531 {
32532 struct tm *tp; tp->tm_sec;
32533   ;
32534   return 0;
32535 }
32536 _ACEOF
32537 rm -f conftest.$ac_objext
32538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32539   (eval $ac_compile) 2>conftest.er1
32540   ac_status=$?
32541   grep -v '^ *+' conftest.er1 >conftest.err
32542   rm -f conftest.er1
32543   cat conftest.err >&5
32544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545   (exit $ac_status); } &&
32546          { ac_try='test -z "$ac_c_werror_flag"
32547                          || test ! -s conftest.err'
32548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549   (eval $ac_try) 2>&5
32550   ac_status=$?
32551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552   (exit $ac_status); }; } &&
32553          { ac_try='test -s conftest.$ac_objext'
32554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555   (eval $ac_try) 2>&5
32556   ac_status=$?
32557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558   (exit $ac_status); }; }; then
32559   ac_cv_struct_tm=time.h
32560 else
32561   echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32563
32564 ac_cv_struct_tm=sys/time.h
32565 fi
32566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32567 fi
32568 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32569 echo "${ECHO_T}$ac_cv_struct_tm" >&6
32570 if test $ac_cv_struct_tm = sys/time.h; then
32571
32572 cat >>confdefs.h <<\_ACEOF
32573 #define TM_IN_SYS_TIME 1
32574 _ACEOF
32575
32576 fi
32577
32578 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32579 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
32580 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32581   echo $ECHO_N "(cached) $ECHO_C" >&6
32582 else
32583   cat >conftest.$ac_ext <<_ACEOF
32584 /* confdefs.h.  */
32585 _ACEOF
32586 cat confdefs.h >>conftest.$ac_ext
32587 cat >>conftest.$ac_ext <<_ACEOF
32588 /* end confdefs.h.  */
32589 $ac_includes_default
32590 int
32591 main ()
32592 {
32593 static struct stat ac_aggr;
32594 if (ac_aggr.st_blksize)
32595 return 0;
32596   ;
32597   return 0;
32598 }
32599 _ACEOF
32600 rm -f conftest.$ac_objext
32601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32602   (eval $ac_compile) 2>conftest.er1
32603   ac_status=$?
32604   grep -v '^ *+' conftest.er1 >conftest.err
32605   rm -f conftest.er1
32606   cat conftest.err >&5
32607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608   (exit $ac_status); } &&
32609          { ac_try='test -z "$ac_c_werror_flag"
32610                          || test ! -s conftest.err'
32611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612   (eval $ac_try) 2>&5
32613   ac_status=$?
32614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615   (exit $ac_status); }; } &&
32616          { ac_try='test -s conftest.$ac_objext'
32617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32618   (eval $ac_try) 2>&5
32619   ac_status=$?
32620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621   (exit $ac_status); }; }; then
32622   ac_cv_member_struct_stat_st_blksize=yes
32623 else
32624   echo "$as_me: failed program was:" >&5
32625 sed 's/^/| /' conftest.$ac_ext >&5
32626
32627 cat >conftest.$ac_ext <<_ACEOF
32628 /* confdefs.h.  */
32629 _ACEOF
32630 cat confdefs.h >>conftest.$ac_ext
32631 cat >>conftest.$ac_ext <<_ACEOF
32632 /* end confdefs.h.  */
32633 $ac_includes_default
32634 int
32635 main ()
32636 {
32637 static struct stat ac_aggr;
32638 if (sizeof ac_aggr.st_blksize)
32639 return 0;
32640   ;
32641   return 0;
32642 }
32643 _ACEOF
32644 rm -f conftest.$ac_objext
32645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32646   (eval $ac_compile) 2>conftest.er1
32647   ac_status=$?
32648   grep -v '^ *+' conftest.er1 >conftest.err
32649   rm -f conftest.er1
32650   cat conftest.err >&5
32651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652   (exit $ac_status); } &&
32653          { ac_try='test -z "$ac_c_werror_flag"
32654                          || test ! -s conftest.err'
32655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656   (eval $ac_try) 2>&5
32657   ac_status=$?
32658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659   (exit $ac_status); }; } &&
32660          { ac_try='test -s conftest.$ac_objext'
32661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662   (eval $ac_try) 2>&5
32663   ac_status=$?
32664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665   (exit $ac_status); }; }; then
32666   ac_cv_member_struct_stat_st_blksize=yes
32667 else
32668   echo "$as_me: failed program was:" >&5
32669 sed 's/^/| /' conftest.$ac_ext >&5
32670
32671 ac_cv_member_struct_stat_st_blksize=no
32672 fi
32673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32674 fi
32675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32676 fi
32677 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32678 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
32679 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32680
32681 cat >>confdefs.h <<_ACEOF
32682 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32683 _ACEOF
32684
32685
32686 fi
32687
32688 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32689 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
32690 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32691   echo $ECHO_N "(cached) $ECHO_C" >&6
32692 else
32693   cat >conftest.$ac_ext <<_ACEOF
32694 /* confdefs.h.  */
32695 _ACEOF
32696 cat confdefs.h >>conftest.$ac_ext
32697 cat >>conftest.$ac_ext <<_ACEOF
32698 /* end confdefs.h.  */
32699 $ac_includes_default
32700 #include <pwd.h>
32701
32702 int
32703 main ()
32704 {
32705 static struct passwd ac_aggr;
32706 if (ac_aggr.pw_gecos)
32707 return 0;
32708   ;
32709   return 0;
32710 }
32711 _ACEOF
32712 rm -f conftest.$ac_objext
32713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32714   (eval $ac_compile) 2>conftest.er1
32715   ac_status=$?
32716   grep -v '^ *+' conftest.er1 >conftest.err
32717   rm -f conftest.er1
32718   cat conftest.err >&5
32719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720   (exit $ac_status); } &&
32721          { ac_try='test -z "$ac_c_werror_flag"
32722                          || test ! -s conftest.err'
32723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724   (eval $ac_try) 2>&5
32725   ac_status=$?
32726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727   (exit $ac_status); }; } &&
32728          { ac_try='test -s conftest.$ac_objext'
32729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32730   (eval $ac_try) 2>&5
32731   ac_status=$?
32732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733   (exit $ac_status); }; }; then
32734   ac_cv_member_struct_passwd_pw_gecos=yes
32735 else
32736   echo "$as_me: failed program was:" >&5
32737 sed 's/^/| /' conftest.$ac_ext >&5
32738
32739 cat >conftest.$ac_ext <<_ACEOF
32740 /* confdefs.h.  */
32741 _ACEOF
32742 cat confdefs.h >>conftest.$ac_ext
32743 cat >>conftest.$ac_ext <<_ACEOF
32744 /* end confdefs.h.  */
32745 $ac_includes_default
32746 #include <pwd.h>
32747
32748 int
32749 main ()
32750 {
32751 static struct passwd ac_aggr;
32752 if (sizeof ac_aggr.pw_gecos)
32753 return 0;
32754   ;
32755   return 0;
32756 }
32757 _ACEOF
32758 rm -f conftest.$ac_objext
32759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32760   (eval $ac_compile) 2>conftest.er1
32761   ac_status=$?
32762   grep -v '^ *+' conftest.er1 >conftest.err
32763   rm -f conftest.er1
32764   cat conftest.err >&5
32765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766   (exit $ac_status); } &&
32767          { ac_try='test -z "$ac_c_werror_flag"
32768                          || test ! -s conftest.err'
32769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32770   (eval $ac_try) 2>&5
32771   ac_status=$?
32772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773   (exit $ac_status); }; } &&
32774          { ac_try='test -s conftest.$ac_objext'
32775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776   (eval $ac_try) 2>&5
32777   ac_status=$?
32778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779   (exit $ac_status); }; }; then
32780   ac_cv_member_struct_passwd_pw_gecos=yes
32781 else
32782   echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32784
32785 ac_cv_member_struct_passwd_pw_gecos=no
32786 fi
32787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32788 fi
32789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32790 fi
32791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32792 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
32793 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32794
32795 cat >>confdefs.h <<_ACEOF
32796 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32797 _ACEOF
32798
32799
32800 fi
32801
32802 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32803 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
32804 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32805   echo $ECHO_N "(cached) $ECHO_C" >&6
32806 else
32807   cat >conftest.$ac_ext <<_ACEOF
32808 /* confdefs.h.  */
32809 _ACEOF
32810 cat confdefs.h >>conftest.$ac_ext
32811 cat >>conftest.$ac_ext <<_ACEOF
32812 /* end confdefs.h.  */
32813 $ac_includes_default
32814 #include <pwd.h>
32815
32816 int
32817 main ()
32818 {
32819 static struct passwd ac_aggr;
32820 if (ac_aggr.pw_passwd)
32821 return 0;
32822   ;
32823   return 0;
32824 }
32825 _ACEOF
32826 rm -f conftest.$ac_objext
32827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32828   (eval $ac_compile) 2>conftest.er1
32829   ac_status=$?
32830   grep -v '^ *+' conftest.er1 >conftest.err
32831   rm -f conftest.er1
32832   cat conftest.err >&5
32833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834   (exit $ac_status); } &&
32835          { ac_try='test -z "$ac_c_werror_flag"
32836                          || test ! -s conftest.err'
32837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838   (eval $ac_try) 2>&5
32839   ac_status=$?
32840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841   (exit $ac_status); }; } &&
32842          { ac_try='test -s conftest.$ac_objext'
32843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844   (eval $ac_try) 2>&5
32845   ac_status=$?
32846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847   (exit $ac_status); }; }; then
32848   ac_cv_member_struct_passwd_pw_passwd=yes
32849 else
32850   echo "$as_me: failed program was:" >&5
32851 sed 's/^/| /' conftest.$ac_ext >&5
32852
32853 cat >conftest.$ac_ext <<_ACEOF
32854 /* confdefs.h.  */
32855 _ACEOF
32856 cat confdefs.h >>conftest.$ac_ext
32857 cat >>conftest.$ac_ext <<_ACEOF
32858 /* end confdefs.h.  */
32859 $ac_includes_default
32860 #include <pwd.h>
32861
32862 int
32863 main ()
32864 {
32865 static struct passwd ac_aggr;
32866 if (sizeof ac_aggr.pw_passwd)
32867 return 0;
32868   ;
32869   return 0;
32870 }
32871 _ACEOF
32872 rm -f conftest.$ac_objext
32873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32874   (eval $ac_compile) 2>conftest.er1
32875   ac_status=$?
32876   grep -v '^ *+' conftest.er1 >conftest.err
32877   rm -f conftest.er1
32878   cat conftest.err >&5
32879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880   (exit $ac_status); } &&
32881          { ac_try='test -z "$ac_c_werror_flag"
32882                          || test ! -s conftest.err'
32883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32884   (eval $ac_try) 2>&5
32885   ac_status=$?
32886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887   (exit $ac_status); }; } &&
32888          { ac_try='test -s conftest.$ac_objext'
32889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32890   (eval $ac_try) 2>&5
32891   ac_status=$?
32892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893   (exit $ac_status); }; }; then
32894   ac_cv_member_struct_passwd_pw_passwd=yes
32895 else
32896   echo "$as_me: failed program was:" >&5
32897 sed 's/^/| /' conftest.$ac_ext >&5
32898
32899 ac_cv_member_struct_passwd_pw_passwd=no
32900 fi
32901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32902 fi
32903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32904 fi
32905 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32906 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
32907 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32908
32909 cat >>confdefs.h <<_ACEOF
32910 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32911 _ACEOF
32912
32913
32914 fi
32915
32916
32917 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32918 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
32919 if test "${ol_cv_c_upper_lower+set}" = set; then
32920   echo $ECHO_N "(cached) $ECHO_C" >&6
32921 else
32922
32923         if test "$cross_compiling" = yes; then
32924   ol_cv_c_upper_lower=safe
32925 else
32926   cat >conftest.$ac_ext <<_ACEOF
32927 /* confdefs.h.  */
32928 _ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h.  */
32932
32933 #include <ctype.h>
32934 main()
32935 {
32936         if ('C' == toupper('C'))
32937                 exit(0);
32938         else
32939                 exit(1);
32940 }
32941 _ACEOF
32942 rm -f conftest$ac_exeext
32943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32944   (eval $ac_link) 2>&5
32945   ac_status=$?
32946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32949   (eval $ac_try) 2>&5
32950   ac_status=$?
32951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952   (exit $ac_status); }; }; then
32953   ol_cv_c_upper_lower=no
32954 else
32955   echo "$as_me: program exited with status $ac_status" >&5
32956 echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32958
32959 ( exit $ac_status )
32960 ol_cv_c_upper_lower=yes
32961 fi
32962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32963 fi
32964 fi
32965 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32966 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
32967 if test $ol_cv_c_upper_lower != no ; then
32968
32969 cat >>confdefs.h <<\_ACEOF
32970 #define C_UPPER_LOWER 1
32971 _ACEOF
32972
32973 fi
32974
32975 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32976 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
32977 if test "${ac_cv_c_const+set}" = set; then
32978   echo $ECHO_N "(cached) $ECHO_C" >&6
32979 else
32980   cat >conftest.$ac_ext <<_ACEOF
32981 /* confdefs.h.  */
32982 _ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h.  */
32986
32987 int
32988 main ()
32989 {
32990 /* FIXME: Include the comments suggested by Paul. */
32991 #ifndef __cplusplus
32992   /* Ultrix mips cc rejects this.  */
32993   typedef int charset[2];
32994   const charset x;
32995   /* SunOS 4.1.1 cc rejects this.  */
32996   char const *const *ccp;
32997   char **p;
32998   /* NEC SVR4.0.2 mips cc rejects this.  */
32999   struct point {int x, y;};
33000   static struct point const zero = {0,0};
33001   /* AIX XL C 1.02.0.0 rejects this.
33002      It does not let you subtract one const X* pointer from another in
33003      an arm of an if-expression whose if-part is not a constant
33004      expression */
33005   const char *g = "string";
33006   ccp = &g + (g ? g-g : 0);
33007   /* HPUX 7.0 cc rejects these. */
33008   ++ccp;
33009   p = (char**) ccp;
33010   ccp = (char const *const *) p;
33011   { /* SCO 3.2v4 cc rejects this.  */
33012     char *t;
33013     char const *s = 0 ? (char *) 0 : (char const *) 0;
33014
33015     *t++ = 0;
33016   }
33017   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33018     int x[] = {25, 17};
33019     const int *foo = &x[0];
33020     ++foo;
33021   }
33022   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33023     typedef const int *iptr;
33024     iptr p = 0;
33025     ++p;
33026   }
33027   { /* AIX XL C 1.02.0.0 rejects this saying
33028        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33029     struct s { int j; const int *ap[3]; };
33030     struct s *b; b->j = 5;
33031   }
33032   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33033     const int foo = 10;
33034   }
33035 #endif
33036
33037   ;
33038   return 0;
33039 }
33040 _ACEOF
33041 rm -f conftest.$ac_objext
33042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33043   (eval $ac_compile) 2>conftest.er1
33044   ac_status=$?
33045   grep -v '^ *+' conftest.er1 >conftest.err
33046   rm -f conftest.er1
33047   cat conftest.err >&5
33048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049   (exit $ac_status); } &&
33050          { ac_try='test -z "$ac_c_werror_flag"
33051                          || test ! -s conftest.err'
33052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053   (eval $ac_try) 2>&5
33054   ac_status=$?
33055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056   (exit $ac_status); }; } &&
33057          { ac_try='test -s conftest.$ac_objext'
33058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059   (eval $ac_try) 2>&5
33060   ac_status=$?
33061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062   (exit $ac_status); }; }; then
33063   ac_cv_c_const=yes
33064 else
33065   echo "$as_me: failed program was:" >&5
33066 sed 's/^/| /' conftest.$ac_ext >&5
33067
33068 ac_cv_c_const=no
33069 fi
33070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33071 fi
33072 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33073 echo "${ECHO_T}$ac_cv_c_const" >&6
33074 if test $ac_cv_c_const = no; then
33075
33076 cat >>confdefs.h <<\_ACEOF
33077 #define const
33078 _ACEOF
33079
33080 fi
33081
33082 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33083 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33084 if test "${ol_cv_c_volatile+set}" = set; then
33085   echo $ECHO_N "(cached) $ECHO_C" >&6
33086 else
33087   cat >conftest.$ac_ext <<_ACEOF
33088 /* confdefs.h.  */
33089 _ACEOF
33090 cat confdefs.h >>conftest.$ac_ext
33091 cat >>conftest.$ac_ext <<_ACEOF
33092 /* end confdefs.h.  */
33093 int x, y, z;
33094 int
33095 main ()
33096 {
33097 volatile int a; int * volatile b = x ? &y : &z;
33098       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33099       *b = 0;
33100   ;
33101   return 0;
33102 }
33103 _ACEOF
33104 rm -f conftest.$ac_objext
33105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33106   (eval $ac_compile) 2>conftest.er1
33107   ac_status=$?
33108   grep -v '^ *+' conftest.er1 >conftest.err
33109   rm -f conftest.er1
33110   cat conftest.err >&5
33111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112   (exit $ac_status); } &&
33113          { ac_try='test -z "$ac_c_werror_flag"
33114                          || test ! -s conftest.err'
33115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33116   (eval $ac_try) 2>&5
33117   ac_status=$?
33118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119   (exit $ac_status); }; } &&
33120          { ac_try='test -s conftest.$ac_objext'
33121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122   (eval $ac_try) 2>&5
33123   ac_status=$?
33124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125   (exit $ac_status); }; }; then
33126   ol_cv_c_volatile=yes
33127 else
33128   echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33130
33131 ol_cv_c_volatile=no
33132 fi
33133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33134 fi
33135 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33136 echo "${ECHO_T}$ol_cv_c_volatile" >&6
33137   if test $ol_cv_c_volatile = yes; then
33138     :
33139   else
33140
33141 cat >>confdefs.h <<\_ACEOF
33142 #define volatile
33143 _ACEOF
33144
33145   fi
33146
33147
33148 if test $cross_compiling = yes ; then
33149         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33150 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33151
33152 cat >>confdefs.h <<\_ACEOF
33153 #define CROSS_COMPILING 1
33154 _ACEOF
33155
33156 else
33157         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33158 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33159 if test "${ac_cv_c_bigendian+set}" = set; then
33160   echo $ECHO_N "(cached) $ECHO_C" >&6
33161 else
33162   # See if sys/param.h defines the BYTE_ORDER macro.
33163 cat >conftest.$ac_ext <<_ACEOF
33164 /* confdefs.h.  */
33165 _ACEOF
33166 cat confdefs.h >>conftest.$ac_ext
33167 cat >>conftest.$ac_ext <<_ACEOF
33168 /* end confdefs.h.  */
33169 #include <sys/types.h>
33170 #include <sys/param.h>
33171
33172 int
33173 main ()
33174 {
33175 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33176  bogus endian macros
33177 #endif
33178
33179   ;
33180   return 0;
33181 }
33182 _ACEOF
33183 rm -f conftest.$ac_objext
33184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33185   (eval $ac_compile) 2>conftest.er1
33186   ac_status=$?
33187   grep -v '^ *+' conftest.er1 >conftest.err
33188   rm -f conftest.er1
33189   cat conftest.err >&5
33190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33191   (exit $ac_status); } &&
33192          { ac_try='test -z "$ac_c_werror_flag"
33193                          || test ! -s conftest.err'
33194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33195   (eval $ac_try) 2>&5
33196   ac_status=$?
33197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198   (exit $ac_status); }; } &&
33199          { ac_try='test -s conftest.$ac_objext'
33200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33201   (eval $ac_try) 2>&5
33202   ac_status=$?
33203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204   (exit $ac_status); }; }; then
33205   # It does; now see whether it defined to BIG_ENDIAN or not.
33206 cat >conftest.$ac_ext <<_ACEOF
33207 /* confdefs.h.  */
33208 _ACEOF
33209 cat confdefs.h >>conftest.$ac_ext
33210 cat >>conftest.$ac_ext <<_ACEOF
33211 /* end confdefs.h.  */
33212 #include <sys/types.h>
33213 #include <sys/param.h>
33214
33215 int
33216 main ()
33217 {
33218 #if BYTE_ORDER != BIG_ENDIAN
33219  not big endian
33220 #endif
33221
33222   ;
33223   return 0;
33224 }
33225 _ACEOF
33226 rm -f conftest.$ac_objext
33227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33228   (eval $ac_compile) 2>conftest.er1
33229   ac_status=$?
33230   grep -v '^ *+' conftest.er1 >conftest.err
33231   rm -f conftest.er1
33232   cat conftest.err >&5
33233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234   (exit $ac_status); } &&
33235          { ac_try='test -z "$ac_c_werror_flag"
33236                          || test ! -s conftest.err'
33237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33238   (eval $ac_try) 2>&5
33239   ac_status=$?
33240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241   (exit $ac_status); }; } &&
33242          { ac_try='test -s conftest.$ac_objext'
33243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244   (eval $ac_try) 2>&5
33245   ac_status=$?
33246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247   (exit $ac_status); }; }; then
33248   ac_cv_c_bigendian=yes
33249 else
33250   echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33252
33253 ac_cv_c_bigendian=no
33254 fi
33255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33256 else
33257   echo "$as_me: failed program was:" >&5
33258 sed 's/^/| /' conftest.$ac_ext >&5
33259
33260 # It does not; compile a test program.
33261 if test "$cross_compiling" = yes; then
33262   # try to guess the endianness by grepping values into an object file
33263   ac_cv_c_bigendian=unknown
33264   cat >conftest.$ac_ext <<_ACEOF
33265 /* confdefs.h.  */
33266 _ACEOF
33267 cat confdefs.h >>conftest.$ac_ext
33268 cat >>conftest.$ac_ext <<_ACEOF
33269 /* end confdefs.h.  */
33270 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33271 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33272 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33273 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33274 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33275 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33276 int
33277 main ()
33278 {
33279  _ascii (); _ebcdic ();
33280   ;
33281   return 0;
33282 }
33283 _ACEOF
33284 rm -f conftest.$ac_objext
33285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33286   (eval $ac_compile) 2>conftest.er1
33287   ac_status=$?
33288   grep -v '^ *+' conftest.er1 >conftest.err
33289   rm -f conftest.er1
33290   cat conftest.err >&5
33291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292   (exit $ac_status); } &&
33293          { ac_try='test -z "$ac_c_werror_flag"
33294                          || test ! -s conftest.err'
33295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296   (eval $ac_try) 2>&5
33297   ac_status=$?
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); }; } &&
33300          { ac_try='test -s conftest.$ac_objext'
33301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33302   (eval $ac_try) 2>&5
33303   ac_status=$?
33304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305   (exit $ac_status); }; }; then
33306   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33307   ac_cv_c_bigendian=yes
33308 fi
33309 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33310   if test "$ac_cv_c_bigendian" = unknown; then
33311     ac_cv_c_bigendian=no
33312   else
33313     # finding both strings is unlikely to happen, but who knows?
33314     ac_cv_c_bigendian=unknown
33315   fi
33316 fi
33317 else
33318   echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33320
33321 fi
33322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33323 else
33324   cat >conftest.$ac_ext <<_ACEOF
33325 /* confdefs.h.  */
33326 _ACEOF
33327 cat confdefs.h >>conftest.$ac_ext
33328 cat >>conftest.$ac_ext <<_ACEOF
33329 /* end confdefs.h.  */
33330 int
33331 main ()
33332 {
33333   /* Are we little or big endian?  From Harbison&Steele.  */
33334   union
33335   {
33336     long l;
33337     char c[sizeof (long)];
33338   } u;
33339   u.l = 1;
33340   exit (u.c[sizeof (long) - 1] == 1);
33341 }
33342 _ACEOF
33343 rm -f conftest$ac_exeext
33344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33345   (eval $ac_link) 2>&5
33346   ac_status=$?
33347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350   (eval $ac_try) 2>&5
33351   ac_status=$?
33352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353   (exit $ac_status); }; }; then
33354   ac_cv_c_bigendian=no
33355 else
33356   echo "$as_me: program exited with status $ac_status" >&5
33357 echo "$as_me: failed program was:" >&5
33358 sed 's/^/| /' conftest.$ac_ext >&5
33359
33360 ( exit $ac_status )
33361 ac_cv_c_bigendian=yes
33362 fi
33363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33364 fi
33365 fi
33366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33367 fi
33368 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33369 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33370 case $ac_cv_c_bigendian in
33371   yes)
33372
33373 cat >>confdefs.h <<\_ACEOF
33374 #define WORDS_BIGENDIAN 1
33375 _ACEOF
33376  ;;
33377   no)
33378      ;;
33379   *)
33380     { { echo "$as_me:$LINENO: error: unknown endianness
33381 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33382 echo "$as_me: error: unknown endianness
33383 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33384    { (exit 1); exit 1; }; } ;;
33385 esac
33386
33387 fi
33388
33389 echo "$as_me:$LINENO: checking for short" >&5
33390 echo $ECHO_N "checking for short... $ECHO_C" >&6
33391 if test "${ac_cv_type_short+set}" = set; then
33392   echo $ECHO_N "(cached) $ECHO_C" >&6
33393 else
33394   cat >conftest.$ac_ext <<_ACEOF
33395 /* confdefs.h.  */
33396 _ACEOF
33397 cat confdefs.h >>conftest.$ac_ext
33398 cat >>conftest.$ac_ext <<_ACEOF
33399 /* end confdefs.h.  */
33400 $ac_includes_default
33401 int
33402 main ()
33403 {
33404 if ((short *) 0)
33405   return 0;
33406 if (sizeof (short))
33407   return 0;
33408   ;
33409   return 0;
33410 }
33411 _ACEOF
33412 rm -f conftest.$ac_objext
33413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33414   (eval $ac_compile) 2>conftest.er1
33415   ac_status=$?
33416   grep -v '^ *+' conftest.er1 >conftest.err
33417   rm -f conftest.er1
33418   cat conftest.err >&5
33419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420   (exit $ac_status); } &&
33421          { ac_try='test -z "$ac_c_werror_flag"
33422                          || test ! -s conftest.err'
33423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33424   (eval $ac_try) 2>&5
33425   ac_status=$?
33426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427   (exit $ac_status); }; } &&
33428          { ac_try='test -s conftest.$ac_objext'
33429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430   (eval $ac_try) 2>&5
33431   ac_status=$?
33432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433   (exit $ac_status); }; }; then
33434   ac_cv_type_short=yes
33435 else
33436   echo "$as_me: failed program was:" >&5
33437 sed 's/^/| /' conftest.$ac_ext >&5
33438
33439 ac_cv_type_short=no
33440 fi
33441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33442 fi
33443 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33444 echo "${ECHO_T}$ac_cv_type_short" >&6
33445
33446 echo "$as_me:$LINENO: checking size of short" >&5
33447 echo $ECHO_N "checking size of short... $ECHO_C" >&6
33448 if test "${ac_cv_sizeof_short+set}" = set; then
33449   echo $ECHO_N "(cached) $ECHO_C" >&6
33450 else
33451   if test "$ac_cv_type_short" = yes; then
33452   # The cast to unsigned long works around a bug in the HP C Compiler
33453   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33454   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33455   # This bug is HP SR number 8606223364.
33456   if test "$cross_compiling" = yes; then
33457   # Depending upon the size, compute the lo and hi bounds.
33458 cat >conftest.$ac_ext <<_ACEOF
33459 /* confdefs.h.  */
33460 _ACEOF
33461 cat confdefs.h >>conftest.$ac_ext
33462 cat >>conftest.$ac_ext <<_ACEOF
33463 /* end confdefs.h.  */
33464 $ac_includes_default
33465 int
33466 main ()
33467 {
33468 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33469 test_array [0] = 0
33470
33471   ;
33472   return 0;
33473 }
33474 _ACEOF
33475 rm -f conftest.$ac_objext
33476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33477   (eval $ac_compile) 2>conftest.er1
33478   ac_status=$?
33479   grep -v '^ *+' conftest.er1 >conftest.err
33480   rm -f conftest.er1
33481   cat conftest.err >&5
33482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483   (exit $ac_status); } &&
33484          { ac_try='test -z "$ac_c_werror_flag"
33485                          || test ! -s conftest.err'
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); }; } &&
33491          { ac_try='test -s conftest.$ac_objext'
33492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33493   (eval $ac_try) 2>&5
33494   ac_status=$?
33495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496   (exit $ac_status); }; }; then
33497   ac_lo=0 ac_mid=0
33498   while :; do
33499     cat >conftest.$ac_ext <<_ACEOF
33500 /* confdefs.h.  */
33501 _ACEOF
33502 cat confdefs.h >>conftest.$ac_ext
33503 cat >>conftest.$ac_ext <<_ACEOF
33504 /* end confdefs.h.  */
33505 $ac_includes_default
33506 int
33507 main ()
33508 {
33509 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33510 test_array [0] = 0
33511
33512   ;
33513   return 0;
33514 }
33515 _ACEOF
33516 rm -f conftest.$ac_objext
33517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33518   (eval $ac_compile) 2>conftest.er1
33519   ac_status=$?
33520   grep -v '^ *+' conftest.er1 >conftest.err
33521   rm -f conftest.er1
33522   cat conftest.err >&5
33523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524   (exit $ac_status); } &&
33525          { ac_try='test -z "$ac_c_werror_flag"
33526                          || test ! -s conftest.err'
33527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528   (eval $ac_try) 2>&5
33529   ac_status=$?
33530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531   (exit $ac_status); }; } &&
33532          { ac_try='test -s conftest.$ac_objext'
33533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33534   (eval $ac_try) 2>&5
33535   ac_status=$?
33536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); }; }; then
33538   ac_hi=$ac_mid; break
33539 else
33540   echo "$as_me: failed program was:" >&5
33541 sed 's/^/| /' conftest.$ac_ext >&5
33542
33543 ac_lo=`expr $ac_mid + 1`
33544                     if test $ac_lo -le $ac_mid; then
33545                       ac_lo= ac_hi=
33546                       break
33547                     fi
33548                     ac_mid=`expr 2 '*' $ac_mid + 1`
33549 fi
33550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33551   done
33552 else
33553   echo "$as_me: failed program was:" >&5
33554 sed 's/^/| /' conftest.$ac_ext >&5
33555
33556 cat >conftest.$ac_ext <<_ACEOF
33557 /* confdefs.h.  */
33558 _ACEOF
33559 cat confdefs.h >>conftest.$ac_ext
33560 cat >>conftest.$ac_ext <<_ACEOF
33561 /* end confdefs.h.  */
33562 $ac_includes_default
33563 int
33564 main ()
33565 {
33566 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
33567 test_array [0] = 0
33568
33569   ;
33570   return 0;
33571 }
33572 _ACEOF
33573 rm -f conftest.$ac_objext
33574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33575   (eval $ac_compile) 2>conftest.er1
33576   ac_status=$?
33577   grep -v '^ *+' conftest.er1 >conftest.err
33578   rm -f conftest.er1
33579   cat conftest.err >&5
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); } &&
33582          { ac_try='test -z "$ac_c_werror_flag"
33583                          || test ! -s conftest.err'
33584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585   (eval $ac_try) 2>&5
33586   ac_status=$?
33587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588   (exit $ac_status); }; } &&
33589          { ac_try='test -s conftest.$ac_objext'
33590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591   (eval $ac_try) 2>&5
33592   ac_status=$?
33593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594   (exit $ac_status); }; }; then
33595   ac_hi=-1 ac_mid=-1
33596   while :; do
33597     cat >conftest.$ac_ext <<_ACEOF
33598 /* confdefs.h.  */
33599 _ACEOF
33600 cat confdefs.h >>conftest.$ac_ext
33601 cat >>conftest.$ac_ext <<_ACEOF
33602 /* end confdefs.h.  */
33603 $ac_includes_default
33604 int
33605 main ()
33606 {
33607 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
33608 test_array [0] = 0
33609
33610   ;
33611   return 0;
33612 }
33613 _ACEOF
33614 rm -f conftest.$ac_objext
33615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33616   (eval $ac_compile) 2>conftest.er1
33617   ac_status=$?
33618   grep -v '^ *+' conftest.er1 >conftest.err
33619   rm -f conftest.er1
33620   cat conftest.err >&5
33621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622   (exit $ac_status); } &&
33623          { ac_try='test -z "$ac_c_werror_flag"
33624                          || test ! -s conftest.err'
33625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33626   (eval $ac_try) 2>&5
33627   ac_status=$?
33628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629   (exit $ac_status); }; } &&
33630          { ac_try='test -s conftest.$ac_objext'
33631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33632   (eval $ac_try) 2>&5
33633   ac_status=$?
33634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635   (exit $ac_status); }; }; then
33636   ac_lo=$ac_mid; break
33637 else
33638   echo "$as_me: failed program was:" >&5
33639 sed 's/^/| /' conftest.$ac_ext >&5
33640
33641 ac_hi=`expr '(' $ac_mid ')' - 1`
33642                        if test $ac_mid -le $ac_hi; then
33643                          ac_lo= ac_hi=
33644                          break
33645                        fi
33646                        ac_mid=`expr 2 '*' $ac_mid`
33647 fi
33648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33649   done
33650 else
33651   echo "$as_me: failed program was:" >&5
33652 sed 's/^/| /' conftest.$ac_ext >&5
33653
33654 ac_lo= ac_hi=
33655 fi
33656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33657 fi
33658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33659 # Binary search between lo and hi bounds.
33660 while test "x$ac_lo" != "x$ac_hi"; do
33661   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33662   cat >conftest.$ac_ext <<_ACEOF
33663 /* confdefs.h.  */
33664 _ACEOF
33665 cat confdefs.h >>conftest.$ac_ext
33666 cat >>conftest.$ac_ext <<_ACEOF
33667 /* end confdefs.h.  */
33668 $ac_includes_default
33669 int
33670 main ()
33671 {
33672 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33673 test_array [0] = 0
33674
33675   ;
33676   return 0;
33677 }
33678 _ACEOF
33679 rm -f conftest.$ac_objext
33680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33681   (eval $ac_compile) 2>conftest.er1
33682   ac_status=$?
33683   grep -v '^ *+' conftest.er1 >conftest.err
33684   rm -f conftest.er1
33685   cat conftest.err >&5
33686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687   (exit $ac_status); } &&
33688          { ac_try='test -z "$ac_c_werror_flag"
33689                          || test ! -s conftest.err'
33690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33691   (eval $ac_try) 2>&5
33692   ac_status=$?
33693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694   (exit $ac_status); }; } &&
33695          { ac_try='test -s conftest.$ac_objext'
33696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697   (eval $ac_try) 2>&5
33698   ac_status=$?
33699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700   (exit $ac_status); }; }; then
33701   ac_hi=$ac_mid
33702 else
33703   echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.$ac_ext >&5
33705
33706 ac_lo=`expr '(' $ac_mid ')' + 1`
33707 fi
33708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33709 done
33710 case $ac_lo in
33711 ?*) ac_cv_sizeof_short=$ac_lo;;
33712 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33713 See \`config.log' for more details." >&5
33714 echo "$as_me: error: cannot compute sizeof (short), 77
33715 See \`config.log' for more details." >&2;}
33716    { (exit 1); exit 1; }; } ;;
33717 esac
33718 else
33719   if test "$cross_compiling" = yes; then
33720   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33721 See \`config.log' for more details." >&5
33722 echo "$as_me: error: cannot run test program while cross compiling
33723 See \`config.log' for more details." >&2;}
33724    { (exit 1); exit 1; }; }
33725 else
33726   cat >conftest.$ac_ext <<_ACEOF
33727 /* confdefs.h.  */
33728 _ACEOF
33729 cat confdefs.h >>conftest.$ac_ext
33730 cat >>conftest.$ac_ext <<_ACEOF
33731 /* end confdefs.h.  */
33732 $ac_includes_default
33733 long longval () { return (long) (sizeof (short)); }
33734 unsigned long ulongval () { return (long) (sizeof (short)); }
33735 #include <stdio.h>
33736 #include <stdlib.h>
33737 int
33738 main ()
33739 {
33740
33741   FILE *f = fopen ("conftest.val", "w");
33742   if (! f)
33743     exit (1);
33744   if (((long) (sizeof (short))) < 0)
33745     {
33746       long i = longval ();
33747       if (i != ((long) (sizeof (short))))
33748         exit (1);
33749       fprintf (f, "%ld\n", i);
33750     }
33751   else
33752     {
33753       unsigned long i = ulongval ();
33754       if (i != ((long) (sizeof (short))))
33755         exit (1);
33756       fprintf (f, "%lu\n", i);
33757     }
33758   exit (ferror (f) || fclose (f) != 0);
33759
33760   ;
33761   return 0;
33762 }
33763 _ACEOF
33764 rm -f conftest$ac_exeext
33765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33766   (eval $ac_link) 2>&5
33767   ac_status=$?
33768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33771   (eval $ac_try) 2>&5
33772   ac_status=$?
33773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774   (exit $ac_status); }; }; then
33775   ac_cv_sizeof_short=`cat conftest.val`
33776 else
33777   echo "$as_me: program exited with status $ac_status" >&5
33778 echo "$as_me: failed program was:" >&5
33779 sed 's/^/| /' conftest.$ac_ext >&5
33780
33781 ( exit $ac_status )
33782 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33783 See \`config.log' for more details." >&5
33784 echo "$as_me: error: cannot compute sizeof (short), 77
33785 See \`config.log' for more details." >&2;}
33786    { (exit 1); exit 1; }; }
33787 fi
33788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33789 fi
33790 fi
33791 rm -f conftest.val
33792 else
33793   ac_cv_sizeof_short=0
33794 fi
33795 fi
33796 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33797 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
33798 cat >>confdefs.h <<_ACEOF
33799 #define SIZEOF_SHORT $ac_cv_sizeof_short
33800 _ACEOF
33801
33802
33803 echo "$as_me:$LINENO: checking for int" >&5
33804 echo $ECHO_N "checking for int... $ECHO_C" >&6
33805 if test "${ac_cv_type_int+set}" = set; then
33806   echo $ECHO_N "(cached) $ECHO_C" >&6
33807 else
33808   cat >conftest.$ac_ext <<_ACEOF
33809 /* confdefs.h.  */
33810 _ACEOF
33811 cat confdefs.h >>conftest.$ac_ext
33812 cat >>conftest.$ac_ext <<_ACEOF
33813 /* end confdefs.h.  */
33814 $ac_includes_default
33815 int
33816 main ()
33817 {
33818 if ((int *) 0)
33819   return 0;
33820 if (sizeof (int))
33821   return 0;
33822   ;
33823   return 0;
33824 }
33825 _ACEOF
33826 rm -f conftest.$ac_objext
33827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33828   (eval $ac_compile) 2>conftest.er1
33829   ac_status=$?
33830   grep -v '^ *+' conftest.er1 >conftest.err
33831   rm -f conftest.er1
33832   cat conftest.err >&5
33833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834   (exit $ac_status); } &&
33835          { ac_try='test -z "$ac_c_werror_flag"
33836                          || test ! -s conftest.err'
33837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33838   (eval $ac_try) 2>&5
33839   ac_status=$?
33840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841   (exit $ac_status); }; } &&
33842          { ac_try='test -s conftest.$ac_objext'
33843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33844   (eval $ac_try) 2>&5
33845   ac_status=$?
33846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847   (exit $ac_status); }; }; then
33848   ac_cv_type_int=yes
33849 else
33850   echo "$as_me: failed program was:" >&5
33851 sed 's/^/| /' conftest.$ac_ext >&5
33852
33853 ac_cv_type_int=no
33854 fi
33855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33856 fi
33857 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33858 echo "${ECHO_T}$ac_cv_type_int" >&6
33859
33860 echo "$as_me:$LINENO: checking size of int" >&5
33861 echo $ECHO_N "checking size of int... $ECHO_C" >&6
33862 if test "${ac_cv_sizeof_int+set}" = set; then
33863   echo $ECHO_N "(cached) $ECHO_C" >&6
33864 else
33865   if test "$ac_cv_type_int" = yes; then
33866   # The cast to unsigned long works around a bug in the HP C Compiler
33867   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33868   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33869   # This bug is HP SR number 8606223364.
33870   if test "$cross_compiling" = yes; then
33871   # Depending upon the size, compute the lo and hi bounds.
33872 cat >conftest.$ac_ext <<_ACEOF
33873 /* confdefs.h.  */
33874 _ACEOF
33875 cat confdefs.h >>conftest.$ac_ext
33876 cat >>conftest.$ac_ext <<_ACEOF
33877 /* end confdefs.h.  */
33878 $ac_includes_default
33879 int
33880 main ()
33881 {
33882 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
33883 test_array [0] = 0
33884
33885   ;
33886   return 0;
33887 }
33888 _ACEOF
33889 rm -f conftest.$ac_objext
33890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33891   (eval $ac_compile) 2>conftest.er1
33892   ac_status=$?
33893   grep -v '^ *+' conftest.er1 >conftest.err
33894   rm -f conftest.er1
33895   cat conftest.err >&5
33896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897   (exit $ac_status); } &&
33898          { ac_try='test -z "$ac_c_werror_flag"
33899                          || test ! -s conftest.err'
33900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33901   (eval $ac_try) 2>&5
33902   ac_status=$?
33903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904   (exit $ac_status); }; } &&
33905          { ac_try='test -s conftest.$ac_objext'
33906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33907   (eval $ac_try) 2>&5
33908   ac_status=$?
33909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910   (exit $ac_status); }; }; then
33911   ac_lo=0 ac_mid=0
33912   while :; do
33913     cat >conftest.$ac_ext <<_ACEOF
33914 /* confdefs.h.  */
33915 _ACEOF
33916 cat confdefs.h >>conftest.$ac_ext
33917 cat >>conftest.$ac_ext <<_ACEOF
33918 /* end confdefs.h.  */
33919 $ac_includes_default
33920 int
33921 main ()
33922 {
33923 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
33924 test_array [0] = 0
33925
33926   ;
33927   return 0;
33928 }
33929 _ACEOF
33930 rm -f conftest.$ac_objext
33931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33932   (eval $ac_compile) 2>conftest.er1
33933   ac_status=$?
33934   grep -v '^ *+' conftest.er1 >conftest.err
33935   rm -f conftest.er1
33936   cat conftest.err >&5
33937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938   (exit $ac_status); } &&
33939          { ac_try='test -z "$ac_c_werror_flag"
33940                          || test ! -s conftest.err'
33941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33942   (eval $ac_try) 2>&5
33943   ac_status=$?
33944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945   (exit $ac_status); }; } &&
33946          { ac_try='test -s conftest.$ac_objext'
33947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948   (eval $ac_try) 2>&5
33949   ac_status=$?
33950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951   (exit $ac_status); }; }; then
33952   ac_hi=$ac_mid; break
33953 else
33954   echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33956
33957 ac_lo=`expr $ac_mid + 1`
33958                     if test $ac_lo -le $ac_mid; then
33959                       ac_lo= ac_hi=
33960                       break
33961                     fi
33962                     ac_mid=`expr 2 '*' $ac_mid + 1`
33963 fi
33964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33965   done
33966 else
33967   echo "$as_me: failed program was:" >&5
33968 sed 's/^/| /' conftest.$ac_ext >&5
33969
33970 cat >conftest.$ac_ext <<_ACEOF
33971 /* confdefs.h.  */
33972 _ACEOF
33973 cat confdefs.h >>conftest.$ac_ext
33974 cat >>conftest.$ac_ext <<_ACEOF
33975 /* end confdefs.h.  */
33976 $ac_includes_default
33977 int
33978 main ()
33979 {
33980 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
33981 test_array [0] = 0
33982
33983   ;
33984   return 0;
33985 }
33986 _ACEOF
33987 rm -f conftest.$ac_objext
33988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33989   (eval $ac_compile) 2>conftest.er1
33990   ac_status=$?
33991   grep -v '^ *+' conftest.er1 >conftest.err
33992   rm -f conftest.er1
33993   cat conftest.err >&5
33994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995   (exit $ac_status); } &&
33996          { ac_try='test -z "$ac_c_werror_flag"
33997                          || test ! -s conftest.err'
33998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999   (eval $ac_try) 2>&5
34000   ac_status=$?
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); }; } &&
34003          { ac_try='test -s conftest.$ac_objext'
34004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005   (eval $ac_try) 2>&5
34006   ac_status=$?
34007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008   (exit $ac_status); }; }; then
34009   ac_hi=-1 ac_mid=-1
34010   while :; do
34011     cat >conftest.$ac_ext <<_ACEOF
34012 /* confdefs.h.  */
34013 _ACEOF
34014 cat confdefs.h >>conftest.$ac_ext
34015 cat >>conftest.$ac_ext <<_ACEOF
34016 /* end confdefs.h.  */
34017 $ac_includes_default
34018 int
34019 main ()
34020 {
34021 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34022 test_array [0] = 0
34023
34024   ;
34025   return 0;
34026 }
34027 _ACEOF
34028 rm -f conftest.$ac_objext
34029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34030   (eval $ac_compile) 2>conftest.er1
34031   ac_status=$?
34032   grep -v '^ *+' conftest.er1 >conftest.err
34033   rm -f conftest.er1
34034   cat conftest.err >&5
34035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036   (exit $ac_status); } &&
34037          { ac_try='test -z "$ac_c_werror_flag"
34038                          || test ! -s conftest.err'
34039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34040   (eval $ac_try) 2>&5
34041   ac_status=$?
34042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043   (exit $ac_status); }; } &&
34044          { ac_try='test -s conftest.$ac_objext'
34045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34046   (eval $ac_try) 2>&5
34047   ac_status=$?
34048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049   (exit $ac_status); }; }; then
34050   ac_lo=$ac_mid; break
34051 else
34052   echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34054
34055 ac_hi=`expr '(' $ac_mid ')' - 1`
34056                        if test $ac_mid -le $ac_hi; then
34057                          ac_lo= ac_hi=
34058                          break
34059                        fi
34060                        ac_mid=`expr 2 '*' $ac_mid`
34061 fi
34062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34063   done
34064 else
34065   echo "$as_me: failed program was:" >&5
34066 sed 's/^/| /' conftest.$ac_ext >&5
34067
34068 ac_lo= ac_hi=
34069 fi
34070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34071 fi
34072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34073 # Binary search between lo and hi bounds.
34074 while test "x$ac_lo" != "x$ac_hi"; do
34075   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34076   cat >conftest.$ac_ext <<_ACEOF
34077 /* confdefs.h.  */
34078 _ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h.  */
34082 $ac_includes_default
34083 int
34084 main ()
34085 {
34086 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34087 test_array [0] = 0
34088
34089   ;
34090   return 0;
34091 }
34092 _ACEOF
34093 rm -f conftest.$ac_objext
34094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34095   (eval $ac_compile) 2>conftest.er1
34096   ac_status=$?
34097   grep -v '^ *+' conftest.er1 >conftest.err
34098   rm -f conftest.er1
34099   cat conftest.err >&5
34100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101   (exit $ac_status); } &&
34102          { ac_try='test -z "$ac_c_werror_flag"
34103                          || test ! -s conftest.err'
34104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34105   (eval $ac_try) 2>&5
34106   ac_status=$?
34107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108   (exit $ac_status); }; } &&
34109          { ac_try='test -s conftest.$ac_objext'
34110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111   (eval $ac_try) 2>&5
34112   ac_status=$?
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); }; }; then
34115   ac_hi=$ac_mid
34116 else
34117   echo "$as_me: failed program was:" >&5
34118 sed 's/^/| /' conftest.$ac_ext >&5
34119
34120 ac_lo=`expr '(' $ac_mid ')' + 1`
34121 fi
34122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34123 done
34124 case $ac_lo in
34125 ?*) ac_cv_sizeof_int=$ac_lo;;
34126 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34127 See \`config.log' for more details." >&5
34128 echo "$as_me: error: cannot compute sizeof (int), 77
34129 See \`config.log' for more details." >&2;}
34130    { (exit 1); exit 1; }; } ;;
34131 esac
34132 else
34133   if test "$cross_compiling" = yes; then
34134   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34135 See \`config.log' for more details." >&5
34136 echo "$as_me: error: cannot run test program while cross compiling
34137 See \`config.log' for more details." >&2;}
34138    { (exit 1); exit 1; }; }
34139 else
34140   cat >conftest.$ac_ext <<_ACEOF
34141 /* confdefs.h.  */
34142 _ACEOF
34143 cat confdefs.h >>conftest.$ac_ext
34144 cat >>conftest.$ac_ext <<_ACEOF
34145 /* end confdefs.h.  */
34146 $ac_includes_default
34147 long longval () { return (long) (sizeof (int)); }
34148 unsigned long ulongval () { return (long) (sizeof (int)); }
34149 #include <stdio.h>
34150 #include <stdlib.h>
34151 int
34152 main ()
34153 {
34154
34155   FILE *f = fopen ("conftest.val", "w");
34156   if (! f)
34157     exit (1);
34158   if (((long) (sizeof (int))) < 0)
34159     {
34160       long i = longval ();
34161       if (i != ((long) (sizeof (int))))
34162         exit (1);
34163       fprintf (f, "%ld\n", i);
34164     }
34165   else
34166     {
34167       unsigned long i = ulongval ();
34168       if (i != ((long) (sizeof (int))))
34169         exit (1);
34170       fprintf (f, "%lu\n", i);
34171     }
34172   exit (ferror (f) || fclose (f) != 0);
34173
34174   ;
34175   return 0;
34176 }
34177 _ACEOF
34178 rm -f conftest$ac_exeext
34179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34180   (eval $ac_link) 2>&5
34181   ac_status=$?
34182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34185   (eval $ac_try) 2>&5
34186   ac_status=$?
34187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188   (exit $ac_status); }; }; then
34189   ac_cv_sizeof_int=`cat conftest.val`
34190 else
34191   echo "$as_me: program exited with status $ac_status" >&5
34192 echo "$as_me: failed program was:" >&5
34193 sed 's/^/| /' conftest.$ac_ext >&5
34194
34195 ( exit $ac_status )
34196 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34197 See \`config.log' for more details." >&5
34198 echo "$as_me: error: cannot compute sizeof (int), 77
34199 See \`config.log' for more details." >&2;}
34200    { (exit 1); exit 1; }; }
34201 fi
34202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34203 fi
34204 fi
34205 rm -f conftest.val
34206 else
34207   ac_cv_sizeof_int=0
34208 fi
34209 fi
34210 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34211 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
34212 cat >>confdefs.h <<_ACEOF
34213 #define SIZEOF_INT $ac_cv_sizeof_int
34214 _ACEOF
34215
34216
34217 echo "$as_me:$LINENO: checking for long" >&5
34218 echo $ECHO_N "checking for long... $ECHO_C" >&6
34219 if test "${ac_cv_type_long+set}" = set; then
34220   echo $ECHO_N "(cached) $ECHO_C" >&6
34221 else
34222   cat >conftest.$ac_ext <<_ACEOF
34223 /* confdefs.h.  */
34224 _ACEOF
34225 cat confdefs.h >>conftest.$ac_ext
34226 cat >>conftest.$ac_ext <<_ACEOF
34227 /* end confdefs.h.  */
34228 $ac_includes_default
34229 int
34230 main ()
34231 {
34232 if ((long *) 0)
34233   return 0;
34234 if (sizeof (long))
34235   return 0;
34236   ;
34237   return 0;
34238 }
34239 _ACEOF
34240 rm -f conftest.$ac_objext
34241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34242   (eval $ac_compile) 2>conftest.er1
34243   ac_status=$?
34244   grep -v '^ *+' conftest.er1 >conftest.err
34245   rm -f conftest.er1
34246   cat conftest.err >&5
34247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248   (exit $ac_status); } &&
34249          { ac_try='test -z "$ac_c_werror_flag"
34250                          || test ! -s conftest.err'
34251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34252   (eval $ac_try) 2>&5
34253   ac_status=$?
34254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255   (exit $ac_status); }; } &&
34256          { ac_try='test -s conftest.$ac_objext'
34257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258   (eval $ac_try) 2>&5
34259   ac_status=$?
34260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261   (exit $ac_status); }; }; then
34262   ac_cv_type_long=yes
34263 else
34264   echo "$as_me: failed program was:" >&5
34265 sed 's/^/| /' conftest.$ac_ext >&5
34266
34267 ac_cv_type_long=no
34268 fi
34269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34270 fi
34271 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34272 echo "${ECHO_T}$ac_cv_type_long" >&6
34273
34274 echo "$as_me:$LINENO: checking size of long" >&5
34275 echo $ECHO_N "checking size of long... $ECHO_C" >&6
34276 if test "${ac_cv_sizeof_long+set}" = set; then
34277   echo $ECHO_N "(cached) $ECHO_C" >&6
34278 else
34279   if test "$ac_cv_type_long" = yes; then
34280   # The cast to unsigned long works around a bug in the HP C Compiler
34281   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34282   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34283   # This bug is HP SR number 8606223364.
34284   if test "$cross_compiling" = yes; then
34285   # Depending upon the size, compute the lo and hi bounds.
34286 cat >conftest.$ac_ext <<_ACEOF
34287 /* confdefs.h.  */
34288 _ACEOF
34289 cat confdefs.h >>conftest.$ac_ext
34290 cat >>conftest.$ac_ext <<_ACEOF
34291 /* end confdefs.h.  */
34292 $ac_includes_default
34293 int
34294 main ()
34295 {
34296 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
34297 test_array [0] = 0
34298
34299   ;
34300   return 0;
34301 }
34302 _ACEOF
34303 rm -f conftest.$ac_objext
34304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34305   (eval $ac_compile) 2>conftest.er1
34306   ac_status=$?
34307   grep -v '^ *+' conftest.er1 >conftest.err
34308   rm -f conftest.er1
34309   cat conftest.err >&5
34310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311   (exit $ac_status); } &&
34312          { ac_try='test -z "$ac_c_werror_flag"
34313                          || test ! -s conftest.err'
34314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34315   (eval $ac_try) 2>&5
34316   ac_status=$?
34317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318   (exit $ac_status); }; } &&
34319          { ac_try='test -s conftest.$ac_objext'
34320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34321   (eval $ac_try) 2>&5
34322   ac_status=$?
34323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324   (exit $ac_status); }; }; then
34325   ac_lo=0 ac_mid=0
34326   while :; do
34327     cat >conftest.$ac_ext <<_ACEOF
34328 /* confdefs.h.  */
34329 _ACEOF
34330 cat confdefs.h >>conftest.$ac_ext
34331 cat >>conftest.$ac_ext <<_ACEOF
34332 /* end confdefs.h.  */
34333 $ac_includes_default
34334 int
34335 main ()
34336 {
34337 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34338 test_array [0] = 0
34339
34340   ;
34341   return 0;
34342 }
34343 _ACEOF
34344 rm -f conftest.$ac_objext
34345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34346   (eval $ac_compile) 2>conftest.er1
34347   ac_status=$?
34348   grep -v '^ *+' conftest.er1 >conftest.err
34349   rm -f conftest.er1
34350   cat conftest.err >&5
34351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352   (exit $ac_status); } &&
34353          { ac_try='test -z "$ac_c_werror_flag"
34354                          || test ! -s conftest.err'
34355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34356   (eval $ac_try) 2>&5
34357   ac_status=$?
34358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359   (exit $ac_status); }; } &&
34360          { ac_try='test -s conftest.$ac_objext'
34361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34362   (eval $ac_try) 2>&5
34363   ac_status=$?
34364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365   (exit $ac_status); }; }; then
34366   ac_hi=$ac_mid; break
34367 else
34368   echo "$as_me: failed program was:" >&5
34369 sed 's/^/| /' conftest.$ac_ext >&5
34370
34371 ac_lo=`expr $ac_mid + 1`
34372                     if test $ac_lo -le $ac_mid; then
34373                       ac_lo= ac_hi=
34374                       break
34375                     fi
34376                     ac_mid=`expr 2 '*' $ac_mid + 1`
34377 fi
34378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34379   done
34380 else
34381   echo "$as_me: failed program was:" >&5
34382 sed 's/^/| /' conftest.$ac_ext >&5
34383
34384 cat >conftest.$ac_ext <<_ACEOF
34385 /* confdefs.h.  */
34386 _ACEOF
34387 cat confdefs.h >>conftest.$ac_ext
34388 cat >>conftest.$ac_ext <<_ACEOF
34389 /* end confdefs.h.  */
34390 $ac_includes_default
34391 int
34392 main ()
34393 {
34394 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
34395 test_array [0] = 0
34396
34397   ;
34398   return 0;
34399 }
34400 _ACEOF
34401 rm -f conftest.$ac_objext
34402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34403   (eval $ac_compile) 2>conftest.er1
34404   ac_status=$?
34405   grep -v '^ *+' conftest.er1 >conftest.err
34406   rm -f conftest.er1
34407   cat conftest.err >&5
34408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409   (exit $ac_status); } &&
34410          { ac_try='test -z "$ac_c_werror_flag"
34411                          || test ! -s conftest.err'
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); }; } &&
34417          { ac_try='test -s conftest.$ac_objext'
34418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419   (eval $ac_try) 2>&5
34420   ac_status=$?
34421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422   (exit $ac_status); }; }; then
34423   ac_hi=-1 ac_mid=-1
34424   while :; do
34425     cat >conftest.$ac_ext <<_ACEOF
34426 /* confdefs.h.  */
34427 _ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h.  */
34431 $ac_includes_default
34432 int
34433 main ()
34434 {
34435 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
34436 test_array [0] = 0
34437
34438   ;
34439   return 0;
34440 }
34441 _ACEOF
34442 rm -f conftest.$ac_objext
34443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34444   (eval $ac_compile) 2>conftest.er1
34445   ac_status=$?
34446   grep -v '^ *+' conftest.er1 >conftest.err
34447   rm -f conftest.er1
34448   cat conftest.err >&5
34449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450   (exit $ac_status); } &&
34451          { ac_try='test -z "$ac_c_werror_flag"
34452                          || test ! -s conftest.err'
34453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454   (eval $ac_try) 2>&5
34455   ac_status=$?
34456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457   (exit $ac_status); }; } &&
34458          { ac_try='test -s conftest.$ac_objext'
34459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460   (eval $ac_try) 2>&5
34461   ac_status=$?
34462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463   (exit $ac_status); }; }; then
34464   ac_lo=$ac_mid; break
34465 else
34466   echo "$as_me: failed program was:" >&5
34467 sed 's/^/| /' conftest.$ac_ext >&5
34468
34469 ac_hi=`expr '(' $ac_mid ')' - 1`
34470                        if test $ac_mid -le $ac_hi; then
34471                          ac_lo= ac_hi=
34472                          break
34473                        fi
34474                        ac_mid=`expr 2 '*' $ac_mid`
34475 fi
34476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34477   done
34478 else
34479   echo "$as_me: failed program was:" >&5
34480 sed 's/^/| /' conftest.$ac_ext >&5
34481
34482 ac_lo= ac_hi=
34483 fi
34484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34485 fi
34486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34487 # Binary search between lo and hi bounds.
34488 while test "x$ac_lo" != "x$ac_hi"; do
34489   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34490   cat >conftest.$ac_ext <<_ACEOF
34491 /* confdefs.h.  */
34492 _ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h.  */
34496 $ac_includes_default
34497 int
34498 main ()
34499 {
34500 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34501 test_array [0] = 0
34502
34503   ;
34504   return 0;
34505 }
34506 _ACEOF
34507 rm -f conftest.$ac_objext
34508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34509   (eval $ac_compile) 2>conftest.er1
34510   ac_status=$?
34511   grep -v '^ *+' conftest.er1 >conftest.err
34512   rm -f conftest.er1
34513   cat conftest.err >&5
34514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515   (exit $ac_status); } &&
34516          { ac_try='test -z "$ac_c_werror_flag"
34517                          || test ! -s conftest.err'
34518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519   (eval $ac_try) 2>&5
34520   ac_status=$?
34521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522   (exit $ac_status); }; } &&
34523          { ac_try='test -s conftest.$ac_objext'
34524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34525   (eval $ac_try) 2>&5
34526   ac_status=$?
34527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528   (exit $ac_status); }; }; then
34529   ac_hi=$ac_mid
34530 else
34531   echo "$as_me: failed program was:" >&5
34532 sed 's/^/| /' conftest.$ac_ext >&5
34533
34534 ac_lo=`expr '(' $ac_mid ')' + 1`
34535 fi
34536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34537 done
34538 case $ac_lo in
34539 ?*) ac_cv_sizeof_long=$ac_lo;;
34540 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34541 See \`config.log' for more details." >&5
34542 echo "$as_me: error: cannot compute sizeof (long), 77
34543 See \`config.log' for more details." >&2;}
34544    { (exit 1); exit 1; }; } ;;
34545 esac
34546 else
34547   if test "$cross_compiling" = yes; then
34548   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34549 See \`config.log' for more details." >&5
34550 echo "$as_me: error: cannot run test program while cross compiling
34551 See \`config.log' for more details." >&2;}
34552    { (exit 1); exit 1; }; }
34553 else
34554   cat >conftest.$ac_ext <<_ACEOF
34555 /* confdefs.h.  */
34556 _ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h.  */
34560 $ac_includes_default
34561 long longval () { return (long) (sizeof (long)); }
34562 unsigned long ulongval () { return (long) (sizeof (long)); }
34563 #include <stdio.h>
34564 #include <stdlib.h>
34565 int
34566 main ()
34567 {
34568
34569   FILE *f = fopen ("conftest.val", "w");
34570   if (! f)
34571     exit (1);
34572   if (((long) (sizeof (long))) < 0)
34573     {
34574       long i = longval ();
34575       if (i != ((long) (sizeof (long))))
34576         exit (1);
34577       fprintf (f, "%ld\n", i);
34578     }
34579   else
34580     {
34581       unsigned long i = ulongval ();
34582       if (i != ((long) (sizeof (long))))
34583         exit (1);
34584       fprintf (f, "%lu\n", i);
34585     }
34586   exit (ferror (f) || fclose (f) != 0);
34587
34588   ;
34589   return 0;
34590 }
34591 _ACEOF
34592 rm -f conftest$ac_exeext
34593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34594   (eval $ac_link) 2>&5
34595   ac_status=$?
34596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34599   (eval $ac_try) 2>&5
34600   ac_status=$?
34601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602   (exit $ac_status); }; }; then
34603   ac_cv_sizeof_long=`cat conftest.val`
34604 else
34605   echo "$as_me: program exited with status $ac_status" >&5
34606 echo "$as_me: failed program was:" >&5
34607 sed 's/^/| /' conftest.$ac_ext >&5
34608
34609 ( exit $ac_status )
34610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34611 See \`config.log' for more details." >&5
34612 echo "$as_me: error: cannot compute sizeof (long), 77
34613 See \`config.log' for more details." >&2;}
34614    { (exit 1); exit 1; }; }
34615 fi
34616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34617 fi
34618 fi
34619 rm -f conftest.val
34620 else
34621   ac_cv_sizeof_long=0
34622 fi
34623 fi
34624 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34625 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
34626 cat >>confdefs.h <<_ACEOF
34627 #define SIZEOF_LONG $ac_cv_sizeof_long
34628 _ACEOF
34629
34630
34631 echo "$as_me:$LINENO: checking for long long" >&5
34632 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34633 if test "${ac_cv_type_long_long+set}" = set; then
34634   echo $ECHO_N "(cached) $ECHO_C" >&6
34635 else
34636   cat >conftest.$ac_ext <<_ACEOF
34637 /* confdefs.h.  */
34638 _ACEOF
34639 cat confdefs.h >>conftest.$ac_ext
34640 cat >>conftest.$ac_ext <<_ACEOF
34641 /* end confdefs.h.  */
34642 $ac_includes_default
34643 int
34644 main ()
34645 {
34646 if ((long long *) 0)
34647   return 0;
34648 if (sizeof (long long))
34649   return 0;
34650   ;
34651   return 0;
34652 }
34653 _ACEOF
34654 rm -f conftest.$ac_objext
34655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34656   (eval $ac_compile) 2>conftest.er1
34657   ac_status=$?
34658   grep -v '^ *+' conftest.er1 >conftest.err
34659   rm -f conftest.er1
34660   cat conftest.err >&5
34661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662   (exit $ac_status); } &&
34663          { ac_try='test -z "$ac_c_werror_flag"
34664                          || test ! -s conftest.err'
34665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34666   (eval $ac_try) 2>&5
34667   ac_status=$?
34668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669   (exit $ac_status); }; } &&
34670          { ac_try='test -s conftest.$ac_objext'
34671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34672   (eval $ac_try) 2>&5
34673   ac_status=$?
34674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675   (exit $ac_status); }; }; then
34676   ac_cv_type_long_long=yes
34677 else
34678   echo "$as_me: failed program was:" >&5
34679 sed 's/^/| /' conftest.$ac_ext >&5
34680
34681 ac_cv_type_long_long=no
34682 fi
34683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34684 fi
34685 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34686 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34687
34688 echo "$as_me:$LINENO: checking size of long long" >&5
34689 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
34690 if test "${ac_cv_sizeof_long_long+set}" = set; then
34691   echo $ECHO_N "(cached) $ECHO_C" >&6
34692 else
34693   if test "$ac_cv_type_long_long" = yes; then
34694   # The cast to unsigned long works around a bug in the HP C Compiler
34695   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34696   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34697   # This bug is HP SR number 8606223364.
34698   if test "$cross_compiling" = yes; then
34699   # Depending upon the size, compute the lo and hi bounds.
34700 cat >conftest.$ac_ext <<_ACEOF
34701 /* confdefs.h.  */
34702 _ACEOF
34703 cat confdefs.h >>conftest.$ac_ext
34704 cat >>conftest.$ac_ext <<_ACEOF
34705 /* end confdefs.h.  */
34706 $ac_includes_default
34707 int
34708 main ()
34709 {
34710 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
34711 test_array [0] = 0
34712
34713   ;
34714   return 0;
34715 }
34716 _ACEOF
34717 rm -f conftest.$ac_objext
34718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34719   (eval $ac_compile) 2>conftest.er1
34720   ac_status=$?
34721   grep -v '^ *+' conftest.er1 >conftest.err
34722   rm -f conftest.er1
34723   cat conftest.err >&5
34724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725   (exit $ac_status); } &&
34726          { ac_try='test -z "$ac_c_werror_flag"
34727                          || test ! -s conftest.err'
34728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34729   (eval $ac_try) 2>&5
34730   ac_status=$?
34731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732   (exit $ac_status); }; } &&
34733          { ac_try='test -s conftest.$ac_objext'
34734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34735   (eval $ac_try) 2>&5
34736   ac_status=$?
34737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738   (exit $ac_status); }; }; then
34739   ac_lo=0 ac_mid=0
34740   while :; do
34741     cat >conftest.$ac_ext <<_ACEOF
34742 /* confdefs.h.  */
34743 _ACEOF
34744 cat confdefs.h >>conftest.$ac_ext
34745 cat >>conftest.$ac_ext <<_ACEOF
34746 /* end confdefs.h.  */
34747 $ac_includes_default
34748 int
34749 main ()
34750 {
34751 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34752 test_array [0] = 0
34753
34754   ;
34755   return 0;
34756 }
34757 _ACEOF
34758 rm -f conftest.$ac_objext
34759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34760   (eval $ac_compile) 2>conftest.er1
34761   ac_status=$?
34762   grep -v '^ *+' conftest.er1 >conftest.err
34763   rm -f conftest.er1
34764   cat conftest.err >&5
34765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766   (exit $ac_status); } &&
34767          { ac_try='test -z "$ac_c_werror_flag"
34768                          || test ! -s conftest.err'
34769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770   (eval $ac_try) 2>&5
34771   ac_status=$?
34772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773   (exit $ac_status); }; } &&
34774          { ac_try='test -s conftest.$ac_objext'
34775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776   (eval $ac_try) 2>&5
34777   ac_status=$?
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); }; }; then
34780   ac_hi=$ac_mid; break
34781 else
34782   echo "$as_me: failed program was:" >&5
34783 sed 's/^/| /' conftest.$ac_ext >&5
34784
34785 ac_lo=`expr $ac_mid + 1`
34786                     if test $ac_lo -le $ac_mid; then
34787                       ac_lo= ac_hi=
34788                       break
34789                     fi
34790                     ac_mid=`expr 2 '*' $ac_mid + 1`
34791 fi
34792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34793   done
34794 else
34795   echo "$as_me: failed program was:" >&5
34796 sed 's/^/| /' conftest.$ac_ext >&5
34797
34798 cat >conftest.$ac_ext <<_ACEOF
34799 /* confdefs.h.  */
34800 _ACEOF
34801 cat confdefs.h >>conftest.$ac_ext
34802 cat >>conftest.$ac_ext <<_ACEOF
34803 /* end confdefs.h.  */
34804 $ac_includes_default
34805 int
34806 main ()
34807 {
34808 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
34809 test_array [0] = 0
34810
34811   ;
34812   return 0;
34813 }
34814 _ACEOF
34815 rm -f conftest.$ac_objext
34816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34817   (eval $ac_compile) 2>conftest.er1
34818   ac_status=$?
34819   grep -v '^ *+' conftest.er1 >conftest.err
34820   rm -f conftest.er1
34821   cat conftest.err >&5
34822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823   (exit $ac_status); } &&
34824          { ac_try='test -z "$ac_c_werror_flag"
34825                          || test ! -s conftest.err'
34826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827   (eval $ac_try) 2>&5
34828   ac_status=$?
34829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830   (exit $ac_status); }; } &&
34831          { ac_try='test -s conftest.$ac_objext'
34832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833   (eval $ac_try) 2>&5
34834   ac_status=$?
34835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836   (exit $ac_status); }; }; then
34837   ac_hi=-1 ac_mid=-1
34838   while :; do
34839     cat >conftest.$ac_ext <<_ACEOF
34840 /* confdefs.h.  */
34841 _ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h.  */
34845 $ac_includes_default
34846 int
34847 main ()
34848 {
34849 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
34850 test_array [0] = 0
34851
34852   ;
34853   return 0;
34854 }
34855 _ACEOF
34856 rm -f conftest.$ac_objext
34857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34858   (eval $ac_compile) 2>conftest.er1
34859   ac_status=$?
34860   grep -v '^ *+' conftest.er1 >conftest.err
34861   rm -f conftest.er1
34862   cat conftest.err >&5
34863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864   (exit $ac_status); } &&
34865          { ac_try='test -z "$ac_c_werror_flag"
34866                          || test ! -s conftest.err'
34867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34868   (eval $ac_try) 2>&5
34869   ac_status=$?
34870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871   (exit $ac_status); }; } &&
34872          { ac_try='test -s conftest.$ac_objext'
34873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874   (eval $ac_try) 2>&5
34875   ac_status=$?
34876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877   (exit $ac_status); }; }; then
34878   ac_lo=$ac_mid; break
34879 else
34880   echo "$as_me: failed program was:" >&5
34881 sed 's/^/| /' conftest.$ac_ext >&5
34882
34883 ac_hi=`expr '(' $ac_mid ')' - 1`
34884                        if test $ac_mid -le $ac_hi; then
34885                          ac_lo= ac_hi=
34886                          break
34887                        fi
34888                        ac_mid=`expr 2 '*' $ac_mid`
34889 fi
34890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34891   done
34892 else
34893   echo "$as_me: failed program was:" >&5
34894 sed 's/^/| /' conftest.$ac_ext >&5
34895
34896 ac_lo= ac_hi=
34897 fi
34898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34899 fi
34900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34901 # Binary search between lo and hi bounds.
34902 while test "x$ac_lo" != "x$ac_hi"; do
34903   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34904   cat >conftest.$ac_ext <<_ACEOF
34905 /* confdefs.h.  */
34906 _ACEOF
34907 cat confdefs.h >>conftest.$ac_ext
34908 cat >>conftest.$ac_ext <<_ACEOF
34909 /* end confdefs.h.  */
34910 $ac_includes_default
34911 int
34912 main ()
34913 {
34914 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34915 test_array [0] = 0
34916
34917   ;
34918   return 0;
34919 }
34920 _ACEOF
34921 rm -f conftest.$ac_objext
34922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34923   (eval $ac_compile) 2>conftest.er1
34924   ac_status=$?
34925   grep -v '^ *+' conftest.er1 >conftest.err
34926   rm -f conftest.er1
34927   cat conftest.err >&5
34928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929   (exit $ac_status); } &&
34930          { ac_try='test -z "$ac_c_werror_flag"
34931                          || test ! -s conftest.err'
34932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34933   (eval $ac_try) 2>&5
34934   ac_status=$?
34935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936   (exit $ac_status); }; } &&
34937          { ac_try='test -s conftest.$ac_objext'
34938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34939   (eval $ac_try) 2>&5
34940   ac_status=$?
34941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942   (exit $ac_status); }; }; then
34943   ac_hi=$ac_mid
34944 else
34945   echo "$as_me: failed program was:" >&5
34946 sed 's/^/| /' conftest.$ac_ext >&5
34947
34948 ac_lo=`expr '(' $ac_mid ')' + 1`
34949 fi
34950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34951 done
34952 case $ac_lo in
34953 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
34955 See \`config.log' for more details." >&5
34956 echo "$as_me: error: cannot compute sizeof (long long), 77
34957 See \`config.log' for more details." >&2;}
34958    { (exit 1); exit 1; }; } ;;
34959 esac
34960 else
34961   if test "$cross_compiling" = yes; then
34962   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34963 See \`config.log' for more details." >&5
34964 echo "$as_me: error: cannot run test program while cross compiling
34965 See \`config.log' for more details." >&2;}
34966    { (exit 1); exit 1; }; }
34967 else
34968   cat >conftest.$ac_ext <<_ACEOF
34969 /* confdefs.h.  */
34970 _ACEOF
34971 cat confdefs.h >>conftest.$ac_ext
34972 cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h.  */
34974 $ac_includes_default
34975 long longval () { return (long) (sizeof (long long)); }
34976 unsigned long ulongval () { return (long) (sizeof (long long)); }
34977 #include <stdio.h>
34978 #include <stdlib.h>
34979 int
34980 main ()
34981 {
34982
34983   FILE *f = fopen ("conftest.val", "w");
34984   if (! f)
34985     exit (1);
34986   if (((long) (sizeof (long long))) < 0)
34987     {
34988       long i = longval ();
34989       if (i != ((long) (sizeof (long long))))
34990         exit (1);
34991       fprintf (f, "%ld\n", i);
34992     }
34993   else
34994     {
34995       unsigned long i = ulongval ();
34996       if (i != ((long) (sizeof (long long))))
34997         exit (1);
34998       fprintf (f, "%lu\n", i);
34999     }
35000   exit (ferror (f) || fclose (f) != 0);
35001
35002   ;
35003   return 0;
35004 }
35005 _ACEOF
35006 rm -f conftest$ac_exeext
35007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35008   (eval $ac_link) 2>&5
35009   ac_status=$?
35010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35013   (eval $ac_try) 2>&5
35014   ac_status=$?
35015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016   (exit $ac_status); }; }; then
35017   ac_cv_sizeof_long_long=`cat conftest.val`
35018 else
35019   echo "$as_me: program exited with status $ac_status" >&5
35020 echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35022
35023 ( exit $ac_status )
35024 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35025 See \`config.log' for more details." >&5
35026 echo "$as_me: error: cannot compute sizeof (long long), 77
35027 See \`config.log' for more details." >&2;}
35028    { (exit 1); exit 1; }; }
35029 fi
35030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35031 fi
35032 fi
35033 rm -f conftest.val
35034 else
35035   ac_cv_sizeof_long_long=0
35036 fi
35037 fi
35038 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35039 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35040 cat >>confdefs.h <<_ACEOF
35041 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35042 _ACEOF
35043
35044
35045 echo "$as_me:$LINENO: checking for wchar_t" >&5
35046 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35047 if test "${ac_cv_type_wchar_t+set}" = set; then
35048   echo $ECHO_N "(cached) $ECHO_C" >&6
35049 else
35050   cat >conftest.$ac_ext <<_ACEOF
35051 /* confdefs.h.  */
35052 _ACEOF
35053 cat confdefs.h >>conftest.$ac_ext
35054 cat >>conftest.$ac_ext <<_ACEOF
35055 /* end confdefs.h.  */
35056 $ac_includes_default
35057 int
35058 main ()
35059 {
35060 if ((wchar_t *) 0)
35061   return 0;
35062 if (sizeof (wchar_t))
35063   return 0;
35064   ;
35065   return 0;
35066 }
35067 _ACEOF
35068 rm -f conftest.$ac_objext
35069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35070   (eval $ac_compile) 2>conftest.er1
35071   ac_status=$?
35072   grep -v '^ *+' conftest.er1 >conftest.err
35073   rm -f conftest.er1
35074   cat conftest.err >&5
35075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076   (exit $ac_status); } &&
35077          { ac_try='test -z "$ac_c_werror_flag"
35078                          || test ! -s conftest.err'
35079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35080   (eval $ac_try) 2>&5
35081   ac_status=$?
35082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083   (exit $ac_status); }; } &&
35084          { ac_try='test -s conftest.$ac_objext'
35085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35086   (eval $ac_try) 2>&5
35087   ac_status=$?
35088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089   (exit $ac_status); }; }; then
35090   ac_cv_type_wchar_t=yes
35091 else
35092   echo "$as_me: failed program was:" >&5
35093 sed 's/^/| /' conftest.$ac_ext >&5
35094
35095 ac_cv_type_wchar_t=no
35096 fi
35097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35098 fi
35099 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35100 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35101
35102 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35103 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35104 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35105   echo $ECHO_N "(cached) $ECHO_C" >&6
35106 else
35107   if test "$ac_cv_type_wchar_t" = yes; then
35108   # The cast to unsigned long works around a bug in the HP C Compiler
35109   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35110   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35111   # This bug is HP SR number 8606223364.
35112   if test "$cross_compiling" = yes; then
35113   # Depending upon the size, compute the lo and hi bounds.
35114 cat >conftest.$ac_ext <<_ACEOF
35115 /* confdefs.h.  */
35116 _ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h.  */
35120 $ac_includes_default
35121 int
35122 main ()
35123 {
35124 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
35125 test_array [0] = 0
35126
35127   ;
35128   return 0;
35129 }
35130 _ACEOF
35131 rm -f conftest.$ac_objext
35132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35133   (eval $ac_compile) 2>conftest.er1
35134   ac_status=$?
35135   grep -v '^ *+' conftest.er1 >conftest.err
35136   rm -f conftest.er1
35137   cat conftest.err >&5
35138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139   (exit $ac_status); } &&
35140          { ac_try='test -z "$ac_c_werror_flag"
35141                          || test ! -s conftest.err'
35142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35143   (eval $ac_try) 2>&5
35144   ac_status=$?
35145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146   (exit $ac_status); }; } &&
35147          { ac_try='test -s conftest.$ac_objext'
35148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35149   (eval $ac_try) 2>&5
35150   ac_status=$?
35151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152   (exit $ac_status); }; }; then
35153   ac_lo=0 ac_mid=0
35154   while :; do
35155     cat >conftest.$ac_ext <<_ACEOF
35156 /* confdefs.h.  */
35157 _ACEOF
35158 cat confdefs.h >>conftest.$ac_ext
35159 cat >>conftest.$ac_ext <<_ACEOF
35160 /* end confdefs.h.  */
35161 $ac_includes_default
35162 int
35163 main ()
35164 {
35165 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35166 test_array [0] = 0
35167
35168   ;
35169   return 0;
35170 }
35171 _ACEOF
35172 rm -f conftest.$ac_objext
35173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35174   (eval $ac_compile) 2>conftest.er1
35175   ac_status=$?
35176   grep -v '^ *+' conftest.er1 >conftest.err
35177   rm -f conftest.er1
35178   cat conftest.err >&5
35179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180   (exit $ac_status); } &&
35181          { ac_try='test -z "$ac_c_werror_flag"
35182                          || test ! -s conftest.err'
35183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184   (eval $ac_try) 2>&5
35185   ac_status=$?
35186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187   (exit $ac_status); }; } &&
35188          { ac_try='test -s conftest.$ac_objext'
35189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190   (eval $ac_try) 2>&5
35191   ac_status=$?
35192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193   (exit $ac_status); }; }; then
35194   ac_hi=$ac_mid; break
35195 else
35196   echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35198
35199 ac_lo=`expr $ac_mid + 1`
35200                     if test $ac_lo -le $ac_mid; then
35201                       ac_lo= ac_hi=
35202                       break
35203                     fi
35204                     ac_mid=`expr 2 '*' $ac_mid + 1`
35205 fi
35206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35207   done
35208 else
35209   echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35211
35212 cat >conftest.$ac_ext <<_ACEOF
35213 /* confdefs.h.  */
35214 _ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h.  */
35218 $ac_includes_default
35219 int
35220 main ()
35221 {
35222 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
35223 test_array [0] = 0
35224
35225   ;
35226   return 0;
35227 }
35228 _ACEOF
35229 rm -f conftest.$ac_objext
35230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35231   (eval $ac_compile) 2>conftest.er1
35232   ac_status=$?
35233   grep -v '^ *+' conftest.er1 >conftest.err
35234   rm -f conftest.er1
35235   cat conftest.err >&5
35236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237   (exit $ac_status); } &&
35238          { ac_try='test -z "$ac_c_werror_flag"
35239                          || test ! -s conftest.err'
35240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241   (eval $ac_try) 2>&5
35242   ac_status=$?
35243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244   (exit $ac_status); }; } &&
35245          { ac_try='test -s conftest.$ac_objext'
35246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35247   (eval $ac_try) 2>&5
35248   ac_status=$?
35249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250   (exit $ac_status); }; }; then
35251   ac_hi=-1 ac_mid=-1
35252   while :; do
35253     cat >conftest.$ac_ext <<_ACEOF
35254 /* confdefs.h.  */
35255 _ACEOF
35256 cat confdefs.h >>conftest.$ac_ext
35257 cat >>conftest.$ac_ext <<_ACEOF
35258 /* end confdefs.h.  */
35259 $ac_includes_default
35260 int
35261 main ()
35262 {
35263 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
35264 test_array [0] = 0
35265
35266   ;
35267   return 0;
35268 }
35269 _ACEOF
35270 rm -f conftest.$ac_objext
35271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35272   (eval $ac_compile) 2>conftest.er1
35273   ac_status=$?
35274   grep -v '^ *+' conftest.er1 >conftest.err
35275   rm -f conftest.er1
35276   cat conftest.err >&5
35277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278   (exit $ac_status); } &&
35279          { ac_try='test -z "$ac_c_werror_flag"
35280                          || test ! -s conftest.err'
35281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282   (eval $ac_try) 2>&5
35283   ac_status=$?
35284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285   (exit $ac_status); }; } &&
35286          { ac_try='test -s conftest.$ac_objext'
35287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288   (eval $ac_try) 2>&5
35289   ac_status=$?
35290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291   (exit $ac_status); }; }; then
35292   ac_lo=$ac_mid; break
35293 else
35294   echo "$as_me: failed program was:" >&5
35295 sed 's/^/| /' conftest.$ac_ext >&5
35296
35297 ac_hi=`expr '(' $ac_mid ')' - 1`
35298                        if test $ac_mid -le $ac_hi; then
35299                          ac_lo= ac_hi=
35300                          break
35301                        fi
35302                        ac_mid=`expr 2 '*' $ac_mid`
35303 fi
35304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35305   done
35306 else
35307   echo "$as_me: failed program was:" >&5
35308 sed 's/^/| /' conftest.$ac_ext >&5
35309
35310 ac_lo= ac_hi=
35311 fi
35312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35313 fi
35314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35315 # Binary search between lo and hi bounds.
35316 while test "x$ac_lo" != "x$ac_hi"; do
35317   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35318   cat >conftest.$ac_ext <<_ACEOF
35319 /* confdefs.h.  */
35320 _ACEOF
35321 cat confdefs.h >>conftest.$ac_ext
35322 cat >>conftest.$ac_ext <<_ACEOF
35323 /* end confdefs.h.  */
35324 $ac_includes_default
35325 int
35326 main ()
35327 {
35328 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35329 test_array [0] = 0
35330
35331   ;
35332   return 0;
35333 }
35334 _ACEOF
35335 rm -f conftest.$ac_objext
35336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35337   (eval $ac_compile) 2>conftest.er1
35338   ac_status=$?
35339   grep -v '^ *+' conftest.er1 >conftest.err
35340   rm -f conftest.er1
35341   cat conftest.err >&5
35342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343   (exit $ac_status); } &&
35344          { ac_try='test -z "$ac_c_werror_flag"
35345                          || test ! -s conftest.err'
35346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347   (eval $ac_try) 2>&5
35348   ac_status=$?
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); }; } &&
35351          { ac_try='test -s conftest.$ac_objext'
35352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353   (eval $ac_try) 2>&5
35354   ac_status=$?
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); }; }; then
35357   ac_hi=$ac_mid
35358 else
35359   echo "$as_me: failed program was:" >&5
35360 sed 's/^/| /' conftest.$ac_ext >&5
35361
35362 ac_lo=`expr '(' $ac_mid ')' + 1`
35363 fi
35364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35365 done
35366 case $ac_lo in
35367 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35368 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35369 See \`config.log' for more details." >&5
35370 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35371 See \`config.log' for more details." >&2;}
35372    { (exit 1); exit 1; }; } ;;
35373 esac
35374 else
35375   if test "$cross_compiling" = yes; then
35376   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35377 See \`config.log' for more details." >&5
35378 echo "$as_me: error: cannot run test program while cross compiling
35379 See \`config.log' for more details." >&2;}
35380    { (exit 1); exit 1; }; }
35381 else
35382   cat >conftest.$ac_ext <<_ACEOF
35383 /* confdefs.h.  */
35384 _ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h.  */
35388 $ac_includes_default
35389 long longval () { return (long) (sizeof (wchar_t)); }
35390 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
35391 #include <stdio.h>
35392 #include <stdlib.h>
35393 int
35394 main ()
35395 {
35396
35397   FILE *f = fopen ("conftest.val", "w");
35398   if (! f)
35399     exit (1);
35400   if (((long) (sizeof (wchar_t))) < 0)
35401     {
35402       long i = longval ();
35403       if (i != ((long) (sizeof (wchar_t))))
35404         exit (1);
35405       fprintf (f, "%ld\n", i);
35406     }
35407   else
35408     {
35409       unsigned long i = ulongval ();
35410       if (i != ((long) (sizeof (wchar_t))))
35411         exit (1);
35412       fprintf (f, "%lu\n", i);
35413     }
35414   exit (ferror (f) || fclose (f) != 0);
35415
35416   ;
35417   return 0;
35418 }
35419 _ACEOF
35420 rm -f conftest$ac_exeext
35421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35422   (eval $ac_link) 2>&5
35423   ac_status=$?
35424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427   (eval $ac_try) 2>&5
35428   ac_status=$?
35429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430   (exit $ac_status); }; }; then
35431   ac_cv_sizeof_wchar_t=`cat conftest.val`
35432 else
35433   echo "$as_me: program exited with status $ac_status" >&5
35434 echo "$as_me: failed program was:" >&5
35435 sed 's/^/| /' conftest.$ac_ext >&5
35436
35437 ( exit $ac_status )
35438 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35439 See \`config.log' for more details." >&5
35440 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35441 See \`config.log' for more details." >&2;}
35442    { (exit 1); exit 1; }; }
35443 fi
35444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35445 fi
35446 fi
35447 rm -f conftest.val
35448 else
35449   ac_cv_sizeof_wchar_t=0
35450 fi
35451 fi
35452 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35453 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
35454 cat >>confdefs.h <<_ACEOF
35455 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35456 _ACEOF
35457
35458
35459
35460 if test "$ac_cv_sizeof_int" -lt 4 ; then
35461         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35462 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35463
35464
35465 cat >>confdefs.h <<\_ACEOF
35466 #define LBER_INT_T long
35467 _ACEOF
35468
35469 else
35470
35471 cat >>confdefs.h <<\_ACEOF
35472 #define LBER_INT_T int
35473 _ACEOF
35474
35475 fi
35476
35477
35478 cat >>confdefs.h <<\_ACEOF
35479 #define LBER_LEN_T long
35480 _ACEOF
35481
35482
35483 cat >>confdefs.h <<\_ACEOF
35484 #define LBER_SOCKET_T int
35485 _ACEOF
35486
35487
35488 cat >>confdefs.h <<\_ACEOF
35489 #define LBER_TAG_T long
35490 _ACEOF
35491
35492
35493 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35494         if test $ac_cv_sizeof_long_long -gt 4 ; then
35495                 ol_with_mp=longlong
35496
35497 cat >>confdefs.h <<\_ACEOF
35498 #define USE_MP_LONG_LONG 1
35499 _ACEOF
35500
35501         elif test $ol_with_mp = longlong ; then
35502                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35503 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35504    { (exit 1); exit 1; }; }
35505         fi
35506 fi
35507 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35508         if test $ac_cv_sizeof_long -gt 4 ; then
35509                 ol_with_mp=long
35510
35511 cat >>confdefs.h <<\_ACEOF
35512 #define USE_MP_LONG 1
35513 _ACEOF
35514
35515         elif test $ol_with_mp = long ; then
35516                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35517 echo "$as_me: error: long unusable for multiple precision" >&2;}
35518    { (exit 1); exit 1; }; }
35519         fi
35520 fi
35521 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35522
35523 for ac_header in openssl/bn.h
35524 do
35525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35527   echo "$as_me:$LINENO: checking for $ac_header" >&5
35528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35530   echo $ECHO_N "(cached) $ECHO_C" >&6
35531 fi
35532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35534 else
35535   # Is the header compilable?
35536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35538 cat >conftest.$ac_ext <<_ACEOF
35539 /* confdefs.h.  */
35540 _ACEOF
35541 cat confdefs.h >>conftest.$ac_ext
35542 cat >>conftest.$ac_ext <<_ACEOF
35543 /* end confdefs.h.  */
35544 $ac_includes_default
35545 #include <$ac_header>
35546 _ACEOF
35547 rm -f conftest.$ac_objext
35548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35549   (eval $ac_compile) 2>conftest.er1
35550   ac_status=$?
35551   grep -v '^ *+' conftest.er1 >conftest.err
35552   rm -f conftest.er1
35553   cat conftest.err >&5
35554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555   (exit $ac_status); } &&
35556          { ac_try='test -z "$ac_c_werror_flag"
35557                          || test ! -s conftest.err'
35558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35559   (eval $ac_try) 2>&5
35560   ac_status=$?
35561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562   (exit $ac_status); }; } &&
35563          { ac_try='test -s conftest.$ac_objext'
35564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565   (eval $ac_try) 2>&5
35566   ac_status=$?
35567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568   (exit $ac_status); }; }; then
35569   ac_header_compiler=yes
35570 else
35571   echo "$as_me: failed program was:" >&5
35572 sed 's/^/| /' conftest.$ac_ext >&5
35573
35574 ac_header_compiler=no
35575 fi
35576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35578 echo "${ECHO_T}$ac_header_compiler" >&6
35579
35580 # Is the header present?
35581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35583 cat >conftest.$ac_ext <<_ACEOF
35584 /* confdefs.h.  */
35585 _ACEOF
35586 cat confdefs.h >>conftest.$ac_ext
35587 cat >>conftest.$ac_ext <<_ACEOF
35588 /* end confdefs.h.  */
35589 #include <$ac_header>
35590 _ACEOF
35591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35593   ac_status=$?
35594   grep -v '^ *+' conftest.er1 >conftest.err
35595   rm -f conftest.er1
35596   cat conftest.err >&5
35597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35598   (exit $ac_status); } >/dev/null; then
35599   if test -s conftest.err; then
35600     ac_cpp_err=$ac_c_preproc_warn_flag
35601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35602   else
35603     ac_cpp_err=
35604   fi
35605 else
35606   ac_cpp_err=yes
35607 fi
35608 if test -z "$ac_cpp_err"; then
35609   ac_header_preproc=yes
35610 else
35611   echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.$ac_ext >&5
35613
35614   ac_header_preproc=no
35615 fi
35616 rm -f conftest.err conftest.$ac_ext
35617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35618 echo "${ECHO_T}$ac_header_preproc" >&6
35619
35620 # So?  What about this header?
35621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35622   yes:no: )
35623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35627     ac_header_preproc=yes
35628     ;;
35629   no:yes:* )
35630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35642     (
35643       cat <<\_ASBOX
35644 ## --------------------------------------------- ##
35645 ## Report this to <http://www.openldap.org/its/> ##
35646 ## --------------------------------------------- ##
35647 _ASBOX
35648     ) |
35649       sed "s/^/$as_me: WARNING:     /" >&2
35650     ;;
35651 esac
35652 echo "$as_me:$LINENO: checking for $ac_header" >&5
35653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35655   echo $ECHO_N "(cached) $ECHO_C" >&6
35656 else
35657   eval "$as_ac_Header=\$ac_header_preproc"
35658 fi
35659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35661
35662 fi
35663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35664   cat >>confdefs.h <<_ACEOF
35665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35666 _ACEOF
35667
35668 fi
35669
35670 done
35671
35672
35673 for ac_header in openssl/crypto.h
35674 do
35675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35677   echo "$as_me:$LINENO: checking for $ac_header" >&5
35678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35680   echo $ECHO_N "(cached) $ECHO_C" >&6
35681 fi
35682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35684 else
35685   # Is the header compilable?
35686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35688 cat >conftest.$ac_ext <<_ACEOF
35689 /* confdefs.h.  */
35690 _ACEOF
35691 cat confdefs.h >>conftest.$ac_ext
35692 cat >>conftest.$ac_ext <<_ACEOF
35693 /* end confdefs.h.  */
35694 $ac_includes_default
35695 #include <$ac_header>
35696 _ACEOF
35697 rm -f conftest.$ac_objext
35698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35699   (eval $ac_compile) 2>conftest.er1
35700   ac_status=$?
35701   grep -v '^ *+' conftest.er1 >conftest.err
35702   rm -f conftest.er1
35703   cat conftest.err >&5
35704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705   (exit $ac_status); } &&
35706          { ac_try='test -z "$ac_c_werror_flag"
35707                          || test ! -s conftest.err'
35708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709   (eval $ac_try) 2>&5
35710   ac_status=$?
35711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712   (exit $ac_status); }; } &&
35713          { ac_try='test -s conftest.$ac_objext'
35714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715   (eval $ac_try) 2>&5
35716   ac_status=$?
35717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718   (exit $ac_status); }; }; then
35719   ac_header_compiler=yes
35720 else
35721   echo "$as_me: failed program was:" >&5
35722 sed 's/^/| /' conftest.$ac_ext >&5
35723
35724 ac_header_compiler=no
35725 fi
35726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35728 echo "${ECHO_T}$ac_header_compiler" >&6
35729
35730 # Is the header present?
35731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35733 cat >conftest.$ac_ext <<_ACEOF
35734 /* confdefs.h.  */
35735 _ACEOF
35736 cat confdefs.h >>conftest.$ac_ext
35737 cat >>conftest.$ac_ext <<_ACEOF
35738 /* end confdefs.h.  */
35739 #include <$ac_header>
35740 _ACEOF
35741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35743   ac_status=$?
35744   grep -v '^ *+' conftest.er1 >conftest.err
35745   rm -f conftest.er1
35746   cat conftest.err >&5
35747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748   (exit $ac_status); } >/dev/null; then
35749   if test -s conftest.err; then
35750     ac_cpp_err=$ac_c_preproc_warn_flag
35751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35752   else
35753     ac_cpp_err=
35754   fi
35755 else
35756   ac_cpp_err=yes
35757 fi
35758 if test -z "$ac_cpp_err"; then
35759   ac_header_preproc=yes
35760 else
35761   echo "$as_me: failed program was:" >&5
35762 sed 's/^/| /' conftest.$ac_ext >&5
35763
35764   ac_header_preproc=no
35765 fi
35766 rm -f conftest.err conftest.$ac_ext
35767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35768 echo "${ECHO_T}$ac_header_preproc" >&6
35769
35770 # So?  What about this header?
35771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35772   yes:no: )
35773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35777     ac_header_preproc=yes
35778     ;;
35779   no:yes:* )
35780     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35782     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35783 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35784     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35786     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35787 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35790     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35792     (
35793       cat <<\_ASBOX
35794 ## --------------------------------------------- ##
35795 ## Report this to <http://www.openldap.org/its/> ##
35796 ## --------------------------------------------- ##
35797 _ASBOX
35798     ) |
35799       sed "s/^/$as_me: WARNING:     /" >&2
35800     ;;
35801 esac
35802 echo "$as_me:$LINENO: checking for $ac_header" >&5
35803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35805   echo $ECHO_N "(cached) $ECHO_C" >&6
35806 else
35807   eval "$as_ac_Header=\$ac_header_preproc"
35808 fi
35809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35811
35812 fi
35813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35814   cat >>confdefs.h <<_ACEOF
35815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35816 _ACEOF
35817
35818 fi
35819
35820 done
35821
35822         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35823                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35824                 test "$ol_with_tls" = "found" ; then
35825                 ol_with_mp=bignum
35826
35827 cat >>confdefs.h <<\_ACEOF
35828 #define USE_MP_BIGNUM 1
35829 _ACEOF
35830
35831         elif test $ol_with_mp = bignum ; then
35832                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35833 echo "$as_me: error: bignum not available" >&2;}
35834    { (exit 1); exit 1; }; }
35835         fi
35836 fi
35837 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35838
35839 for ac_header in gmp.h
35840 do
35841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35843   echo "$as_me:$LINENO: checking for $ac_header" >&5
35844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35846   echo $ECHO_N "(cached) $ECHO_C" >&6
35847 fi
35848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35850 else
35851   # Is the header compilable?
35852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35854 cat >conftest.$ac_ext <<_ACEOF
35855 /* confdefs.h.  */
35856 _ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h.  */
35860 $ac_includes_default
35861 #include <$ac_header>
35862 _ACEOF
35863 rm -f conftest.$ac_objext
35864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35865   (eval $ac_compile) 2>conftest.er1
35866   ac_status=$?
35867   grep -v '^ *+' conftest.er1 >conftest.err
35868   rm -f conftest.er1
35869   cat conftest.err >&5
35870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871   (exit $ac_status); } &&
35872          { ac_try='test -z "$ac_c_werror_flag"
35873                          || test ! -s conftest.err'
35874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875   (eval $ac_try) 2>&5
35876   ac_status=$?
35877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878   (exit $ac_status); }; } &&
35879          { ac_try='test -s conftest.$ac_objext'
35880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35881   (eval $ac_try) 2>&5
35882   ac_status=$?
35883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884   (exit $ac_status); }; }; then
35885   ac_header_compiler=yes
35886 else
35887   echo "$as_me: failed program was:" >&5
35888 sed 's/^/| /' conftest.$ac_ext >&5
35889
35890 ac_header_compiler=no
35891 fi
35892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35894 echo "${ECHO_T}$ac_header_compiler" >&6
35895
35896 # Is the header present?
35897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35899 cat >conftest.$ac_ext <<_ACEOF
35900 /* confdefs.h.  */
35901 _ACEOF
35902 cat confdefs.h >>conftest.$ac_ext
35903 cat >>conftest.$ac_ext <<_ACEOF
35904 /* end confdefs.h.  */
35905 #include <$ac_header>
35906 _ACEOF
35907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35908   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35909   ac_status=$?
35910   grep -v '^ *+' conftest.er1 >conftest.err
35911   rm -f conftest.er1
35912   cat conftest.err >&5
35913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914   (exit $ac_status); } >/dev/null; then
35915   if test -s conftest.err; then
35916     ac_cpp_err=$ac_c_preproc_warn_flag
35917     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35918   else
35919     ac_cpp_err=
35920   fi
35921 else
35922   ac_cpp_err=yes
35923 fi
35924 if test -z "$ac_cpp_err"; then
35925   ac_header_preproc=yes
35926 else
35927   echo "$as_me: failed program was:" >&5
35928 sed 's/^/| /' conftest.$ac_ext >&5
35929
35930   ac_header_preproc=no
35931 fi
35932 rm -f conftest.err conftest.$ac_ext
35933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35934 echo "${ECHO_T}$ac_header_preproc" >&6
35935
35936 # So?  What about this header?
35937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35938   yes:no: )
35939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35943     ac_header_preproc=yes
35944     ;;
35945   no:yes:* )
35946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35958     (
35959       cat <<\_ASBOX
35960 ## --------------------------------------------- ##
35961 ## Report this to <http://www.openldap.org/its/> ##
35962 ## --------------------------------------------- ##
35963 _ASBOX
35964     ) |
35965       sed "s/^/$as_me: WARNING:     /" >&2
35966     ;;
35967 esac
35968 echo "$as_me:$LINENO: checking for $ac_header" >&5
35969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35971   echo $ECHO_N "(cached) $ECHO_C" >&6
35972 else
35973   eval "$as_ac_Header=\$ac_header_preproc"
35974 fi
35975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35977
35978 fi
35979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35980   cat >>confdefs.h <<_ACEOF
35981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35982 _ACEOF
35983
35984 fi
35985
35986 done
35987
35988
35989 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35990 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
35991 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35992   echo $ECHO_N "(cached) $ECHO_C" >&6
35993 else
35994   ac_check_lib_save_LIBS=$LIBS
35995 LIBS="-lgmp  $LIBS"
35996 cat >conftest.$ac_ext <<_ACEOF
35997 /* confdefs.h.  */
35998 _ACEOF
35999 cat confdefs.h >>conftest.$ac_ext
36000 cat >>conftest.$ac_ext <<_ACEOF
36001 /* end confdefs.h.  */
36002
36003 /* Override any gcc2 internal prototype to avoid an error.  */
36004 #ifdef __cplusplus
36005 extern "C"
36006 #endif
36007 /* We use char because int might match the return type of a gcc2
36008    builtin and then its argument prototype would still apply.  */
36009 char __gmpz_add_ui ();
36010 int
36011 main ()
36012 {
36013 __gmpz_add_ui ();
36014   ;
36015   return 0;
36016 }
36017 _ACEOF
36018 rm -f conftest.$ac_objext conftest$ac_exeext
36019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36020   (eval $ac_link) 2>conftest.er1
36021   ac_status=$?
36022   grep -v '^ *+' conftest.er1 >conftest.err
36023   rm -f conftest.er1
36024   cat conftest.err >&5
36025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026   (exit $ac_status); } &&
36027          { ac_try='test -z "$ac_c_werror_flag"
36028                          || test ! -s conftest.err'
36029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36030   (eval $ac_try) 2>&5
36031   ac_status=$?
36032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36033   (exit $ac_status); }; } &&
36034          { ac_try='test -s conftest$ac_exeext'
36035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36036   (eval $ac_try) 2>&5
36037   ac_status=$?
36038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039   (exit $ac_status); }; }; then
36040   ac_cv_lib_gmp___gmpz_add_ui=yes
36041 else
36042   echo "$as_me: failed program was:" >&5
36043 sed 's/^/| /' conftest.$ac_ext >&5
36044
36045 ac_cv_lib_gmp___gmpz_add_ui=no
36046 fi
36047 rm -f conftest.err conftest.$ac_objext \
36048       conftest$ac_exeext conftest.$ac_ext
36049 LIBS=$ac_check_lib_save_LIBS
36050 fi
36051 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36052 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36053 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36054   cat >>confdefs.h <<_ACEOF
36055 #define HAVE_LIBGMP 1
36056 _ACEOF
36057
36058   LIBS="-lgmp $LIBS"
36059
36060 fi
36061
36062         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36063
36064 cat >>confdefs.h <<\_ACEOF
36065 #define USE_MP_GMP 1
36066 _ACEOF
36067
36068                 ol_with_mp=gmp
36069         elif test $ol_with_mp = gmp ; then
36070                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36071 echo "$as_me: error: gmp not available" >&2;}
36072    { (exit 1); exit 1; }; }
36073         fi
36074 fi
36075 if test $ol_with_mp = auto ; then
36076         ol_with_mp=no
36077 fi
36078
36079 echo "$as_me:$LINENO: checking for working memcmp" >&5
36080 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36081 if test "${ac_cv_func_memcmp_working+set}" = set; then
36082   echo $ECHO_N "(cached) $ECHO_C" >&6
36083 else
36084   if test "$cross_compiling" = yes; then
36085   ac_cv_func_memcmp_working=no
36086 else
36087   cat >conftest.$ac_ext <<_ACEOF
36088 /* confdefs.h.  */
36089 _ACEOF
36090 cat confdefs.h >>conftest.$ac_ext
36091 cat >>conftest.$ac_ext <<_ACEOF
36092 /* end confdefs.h.  */
36093 $ac_includes_default
36094 int
36095 main ()
36096 {
36097
36098   /* Some versions of memcmp are not 8-bit clean.  */
36099   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36100   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36101     exit (1);
36102
36103   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36104      or more and with at least one buffer not starting on a 4-byte boundary.
36105      William Lewis provided this test program.   */
36106   {
36107     char foo[21];
36108     char bar[21];
36109     int i;
36110     for (i = 0; i < 4; i++)
36111       {
36112         char *a = foo + i;
36113         char *b = bar + i;
36114         strcpy (a, "--------01111111");
36115         strcpy (b, "--------10000000");
36116         if (memcmp (a, b, 16) >= 0)
36117           exit (1);
36118       }
36119     exit (0);
36120   }
36121
36122   ;
36123   return 0;
36124 }
36125 _ACEOF
36126 rm -f conftest$ac_exeext
36127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36128   (eval $ac_link) 2>&5
36129   ac_status=$?
36130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36133   (eval $ac_try) 2>&5
36134   ac_status=$?
36135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136   (exit $ac_status); }; }; then
36137   ac_cv_func_memcmp_working=yes
36138 else
36139   echo "$as_me: program exited with status $ac_status" >&5
36140 echo "$as_me: failed program was:" >&5
36141 sed 's/^/| /' conftest.$ac_ext >&5
36142
36143 ( exit $ac_status )
36144 ac_cv_func_memcmp_working=no
36145 fi
36146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36147 fi
36148 fi
36149 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36150 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
36151 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
36152     "memcmp.$ac_objext"   | \
36153   *" memcmp.$ac_objext"   | \
36154     "memcmp.$ac_objext "* | \
36155   *" memcmp.$ac_objext "* ) ;;
36156   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
36157 esac
36158
36159
36160
36161 if test $ac_cv_func_memcmp_working = no ; then
36162
36163 cat >>confdefs.h <<\_ACEOF
36164 #define NEED_MEMCMP_REPLACEMENT 1
36165 _ACEOF
36166
36167 fi
36168
36169
36170 for ac_func in strftime
36171 do
36172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36173 echo "$as_me:$LINENO: checking for $ac_func" >&5
36174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36175 if eval "test \"\${$as_ac_var+set}\" = set"; then
36176   echo $ECHO_N "(cached) $ECHO_C" >&6
36177 else
36178   cat >conftest.$ac_ext <<_ACEOF
36179 /* confdefs.h.  */
36180 _ACEOF
36181 cat confdefs.h >>conftest.$ac_ext
36182 cat >>conftest.$ac_ext <<_ACEOF
36183 /* end confdefs.h.  */
36184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36186 #define $ac_func innocuous_$ac_func
36187
36188 /* System header to define __stub macros and hopefully few prototypes,
36189     which can conflict with char $ac_func (); below.
36190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36191     <limits.h> exists even on freestanding compilers.  */
36192
36193 #ifdef __STDC__
36194 # include <limits.h>
36195 #else
36196 # include <assert.h>
36197 #endif
36198
36199 #undef $ac_func
36200
36201 /* Override any gcc2 internal prototype to avoid an error.  */
36202 #ifdef __cplusplus
36203 extern "C"
36204 {
36205 #endif
36206 /* We use char because int might match the return type of a gcc2
36207    builtin and then its argument prototype would still apply.  */
36208 char $ac_func ();
36209 /* The GNU C library defines this for functions which it implements
36210     to always fail with ENOSYS.  Some functions are actually named
36211     something starting with __ and the normal name is an alias.  */
36212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36213 choke me
36214 #else
36215 char (*f) () = $ac_func;
36216 #endif
36217 #ifdef __cplusplus
36218 }
36219 #endif
36220
36221 int
36222 main ()
36223 {
36224 return f != $ac_func;
36225   ;
36226   return 0;
36227 }
36228 _ACEOF
36229 rm -f conftest.$ac_objext conftest$ac_exeext
36230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36231   (eval $ac_link) 2>conftest.er1
36232   ac_status=$?
36233   grep -v '^ *+' conftest.er1 >conftest.err
36234   rm -f conftest.er1
36235   cat conftest.err >&5
36236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237   (exit $ac_status); } &&
36238          { ac_try='test -z "$ac_c_werror_flag"
36239                          || test ! -s conftest.err'
36240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36241   (eval $ac_try) 2>&5
36242   ac_status=$?
36243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244   (exit $ac_status); }; } &&
36245          { ac_try='test -s conftest$ac_exeext'
36246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36247   (eval $ac_try) 2>&5
36248   ac_status=$?
36249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250   (exit $ac_status); }; }; then
36251   eval "$as_ac_var=yes"
36252 else
36253   echo "$as_me: failed program was:" >&5
36254 sed 's/^/| /' conftest.$ac_ext >&5
36255
36256 eval "$as_ac_var=no"
36257 fi
36258 rm -f conftest.err conftest.$ac_objext \
36259       conftest$ac_exeext conftest.$ac_ext
36260 fi
36261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36263 if test `eval echo '${'$as_ac_var'}'` = yes; then
36264   cat >>confdefs.h <<_ACEOF
36265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36266 _ACEOF
36267
36268 else
36269   # strftime is in -lintl on SCO UNIX.
36270 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36271 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
36272 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36273   echo $ECHO_N "(cached) $ECHO_C" >&6
36274 else
36275   ac_check_lib_save_LIBS=$LIBS
36276 LIBS="-lintl  $LIBS"
36277 cat >conftest.$ac_ext <<_ACEOF
36278 /* confdefs.h.  */
36279 _ACEOF
36280 cat confdefs.h >>conftest.$ac_ext
36281 cat >>conftest.$ac_ext <<_ACEOF
36282 /* end confdefs.h.  */
36283
36284 /* Override any gcc2 internal prototype to avoid an error.  */
36285 #ifdef __cplusplus
36286 extern "C"
36287 #endif
36288 /* We use char because int might match the return type of a gcc2
36289    builtin and then its argument prototype would still apply.  */
36290 char strftime ();
36291 int
36292 main ()
36293 {
36294 strftime ();
36295   ;
36296   return 0;
36297 }
36298 _ACEOF
36299 rm -f conftest.$ac_objext conftest$ac_exeext
36300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36301   (eval $ac_link) 2>conftest.er1
36302   ac_status=$?
36303   grep -v '^ *+' conftest.er1 >conftest.err
36304   rm -f conftest.er1
36305   cat conftest.err >&5
36306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307   (exit $ac_status); } &&
36308          { ac_try='test -z "$ac_c_werror_flag"
36309                          || test ! -s conftest.err'
36310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311   (eval $ac_try) 2>&5
36312   ac_status=$?
36313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314   (exit $ac_status); }; } &&
36315          { ac_try='test -s conftest$ac_exeext'
36316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36317   (eval $ac_try) 2>&5
36318   ac_status=$?
36319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320   (exit $ac_status); }; }; then
36321   ac_cv_lib_intl_strftime=yes
36322 else
36323   echo "$as_me: failed program was:" >&5
36324 sed 's/^/| /' conftest.$ac_ext >&5
36325
36326 ac_cv_lib_intl_strftime=no
36327 fi
36328 rm -f conftest.err conftest.$ac_objext \
36329       conftest$ac_exeext conftest.$ac_ext
36330 LIBS=$ac_check_lib_save_LIBS
36331 fi
36332 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36333 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
36334 if test $ac_cv_lib_intl_strftime = yes; then
36335   cat >>confdefs.h <<\_ACEOF
36336 #define HAVE_STRFTIME 1
36337 _ACEOF
36338
36339 LIBS="-lintl $LIBS"
36340 fi
36341
36342 fi
36343 done
36344
36345
36346 echo "$as_me:$LINENO: checking for inet_aton()" >&5
36347 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
36348 if test "${ol_cv_func_inet_aton+set}" = set; then
36349   echo $ECHO_N "(cached) $ECHO_C" >&6
36350 else
36351   cat >conftest.$ac_ext <<_ACEOF
36352 /* confdefs.h.  */
36353 _ACEOF
36354 cat confdefs.h >>conftest.$ac_ext
36355 cat >>conftest.$ac_ext <<_ACEOF
36356 /* end confdefs.h.  */
36357
36358 #ifdef HAVE_SYS_TYPES_H
36359 #       include <sys/types.h>
36360 #endif
36361 #ifdef HAVE_SYS_SOCKET_H
36362 #       include <sys/socket.h>
36363 #       ifdef HAVE_SYS_SELECT_H
36364 #               include <sys/select.h>
36365 #       endif
36366 #       include <netinet/in.h>
36367 #       ifdef HAVE_ARPA_INET_H
36368 #               include <arpa/inet.h>
36369 #       endif
36370 #endif
36371
36372 int
36373 main ()
36374 {
36375 struct in_addr in;
36376 int rc = inet_aton( "255.255.255.255", &in );
36377   ;
36378   return 0;
36379 }
36380 _ACEOF
36381 rm -f conftest.$ac_objext conftest$ac_exeext
36382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36383   (eval $ac_link) 2>conftest.er1
36384   ac_status=$?
36385   grep -v '^ *+' conftest.er1 >conftest.err
36386   rm -f conftest.er1
36387   cat conftest.err >&5
36388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389   (exit $ac_status); } &&
36390          { ac_try='test -z "$ac_c_werror_flag"
36391                          || test ! -s conftest.err'
36392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36393   (eval $ac_try) 2>&5
36394   ac_status=$?
36395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396   (exit $ac_status); }; } &&
36397          { ac_try='test -s conftest$ac_exeext'
36398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36399   (eval $ac_try) 2>&5
36400   ac_status=$?
36401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36402   (exit $ac_status); }; }; then
36403   ol_cv_func_inet_aton=yes
36404 else
36405   echo "$as_me: failed program was:" >&5
36406 sed 's/^/| /' conftest.$ac_ext >&5
36407
36408 ol_cv_func_inet_aton=no
36409 fi
36410 rm -f conftest.err conftest.$ac_objext \
36411       conftest$ac_exeext conftest.$ac_ext
36412 fi
36413 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36414 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
36415   if test $ol_cv_func_inet_aton != no; then
36416
36417 cat >>confdefs.h <<\_ACEOF
36418 #define HAVE_INET_ATON 1
36419 _ACEOF
36420
36421   fi
36422
36423
36424 echo "$as_me:$LINENO: checking for _spawnlp" >&5
36425 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
36426 if test "${ac_cv_func__spawnlp+set}" = set; then
36427   echo $ECHO_N "(cached) $ECHO_C" >&6
36428 else
36429   cat >conftest.$ac_ext <<_ACEOF
36430 /* confdefs.h.  */
36431 _ACEOF
36432 cat confdefs.h >>conftest.$ac_ext
36433 cat >>conftest.$ac_ext <<_ACEOF
36434 /* end confdefs.h.  */
36435 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36437 #define _spawnlp innocuous__spawnlp
36438
36439 /* System header to define __stub macros and hopefully few prototypes,
36440     which can conflict with char _spawnlp (); below.
36441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36442     <limits.h> exists even on freestanding compilers.  */
36443
36444 #ifdef __STDC__
36445 # include <limits.h>
36446 #else
36447 # include <assert.h>
36448 #endif
36449
36450 #undef _spawnlp
36451
36452 /* Override any gcc2 internal prototype to avoid an error.  */
36453 #ifdef __cplusplus
36454 extern "C"
36455 {
36456 #endif
36457 /* We use char because int might match the return type of a gcc2
36458    builtin and then its argument prototype would still apply.  */
36459 char _spawnlp ();
36460 /* The GNU C library defines this for functions which it implements
36461     to always fail with ENOSYS.  Some functions are actually named
36462     something starting with __ and the normal name is an alias.  */
36463 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
36464 choke me
36465 #else
36466 char (*f) () = _spawnlp;
36467 #endif
36468 #ifdef __cplusplus
36469 }
36470 #endif
36471
36472 int
36473 main ()
36474 {
36475 return f != _spawnlp;
36476   ;
36477   return 0;
36478 }
36479 _ACEOF
36480 rm -f conftest.$ac_objext conftest$ac_exeext
36481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36482   (eval $ac_link) 2>conftest.er1
36483   ac_status=$?
36484   grep -v '^ *+' conftest.er1 >conftest.err
36485   rm -f conftest.er1
36486   cat conftest.err >&5
36487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488   (exit $ac_status); } &&
36489          { ac_try='test -z "$ac_c_werror_flag"
36490                          || test ! -s conftest.err'
36491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36492   (eval $ac_try) 2>&5
36493   ac_status=$?
36494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36495   (exit $ac_status); }; } &&
36496          { ac_try='test -s conftest$ac_exeext'
36497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36498   (eval $ac_try) 2>&5
36499   ac_status=$?
36500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36501   (exit $ac_status); }; }; then
36502   ac_cv_func__spawnlp=yes
36503 else
36504   echo "$as_me: failed program was:" >&5
36505 sed 's/^/| /' conftest.$ac_ext >&5
36506
36507 ac_cv_func__spawnlp=no
36508 fi
36509 rm -f conftest.err conftest.$ac_objext \
36510       conftest$ac_exeext conftest.$ac_ext
36511 fi
36512 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36513 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
36514 if test $ac_cv_func__spawnlp = yes; then
36515
36516 cat >>confdefs.h <<\_ACEOF
36517 #define HAVE_SPAWNLP 1
36518 _ACEOF
36519
36520 fi
36521
36522
36523 echo "$as_me:$LINENO: checking for _snprintf" >&5
36524 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
36525 if test "${ac_cv_func__snprintf+set}" = set; then
36526   echo $ECHO_N "(cached) $ECHO_C" >&6
36527 else
36528   cat >conftest.$ac_ext <<_ACEOF
36529 /* confdefs.h.  */
36530 _ACEOF
36531 cat confdefs.h >>conftest.$ac_ext
36532 cat >>conftest.$ac_ext <<_ACEOF
36533 /* end confdefs.h.  */
36534 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36536 #define _snprintf innocuous__snprintf
36537
36538 /* System header to define __stub macros and hopefully few prototypes,
36539     which can conflict with char _snprintf (); below.
36540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36541     <limits.h> exists even on freestanding compilers.  */
36542
36543 #ifdef __STDC__
36544 # include <limits.h>
36545 #else
36546 # include <assert.h>
36547 #endif
36548
36549 #undef _snprintf
36550
36551 /* Override any gcc2 internal prototype to avoid an error.  */
36552 #ifdef __cplusplus
36553 extern "C"
36554 {
36555 #endif
36556 /* We use char because int might match the return type of a gcc2
36557    builtin and then its argument prototype would still apply.  */
36558 char _snprintf ();
36559 /* The GNU C library defines this for functions which it implements
36560     to always fail with ENOSYS.  Some functions are actually named
36561     something starting with __ and the normal name is an alias.  */
36562 #if defined (__stub__snprintf) || defined (__stub____snprintf)
36563 choke me
36564 #else
36565 char (*f) () = _snprintf;
36566 #endif
36567 #ifdef __cplusplus
36568 }
36569 #endif
36570
36571 int
36572 main ()
36573 {
36574 return f != _snprintf;
36575   ;
36576   return 0;
36577 }
36578 _ACEOF
36579 rm -f conftest.$ac_objext conftest$ac_exeext
36580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36581   (eval $ac_link) 2>conftest.er1
36582   ac_status=$?
36583   grep -v '^ *+' conftest.er1 >conftest.err
36584   rm -f conftest.er1
36585   cat conftest.err >&5
36586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587   (exit $ac_status); } &&
36588          { ac_try='test -z "$ac_c_werror_flag"
36589                          || test ! -s conftest.err'
36590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591   (eval $ac_try) 2>&5
36592   ac_status=$?
36593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594   (exit $ac_status); }; } &&
36595          { ac_try='test -s conftest$ac_exeext'
36596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36597   (eval $ac_try) 2>&5
36598   ac_status=$?
36599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600   (exit $ac_status); }; }; then
36601   ac_cv_func__snprintf=yes
36602 else
36603   echo "$as_me: failed program was:" >&5
36604 sed 's/^/| /' conftest.$ac_ext >&5
36605
36606 ac_cv_func__snprintf=no
36607 fi
36608 rm -f conftest.err conftest.$ac_objext \
36609       conftest$ac_exeext conftest.$ac_ext
36610 fi
36611 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36612 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
36613 if test $ac_cv_func__snprintf = yes; then
36614   ac_cv_func_snprintf=yes
36615
36616 cat >>confdefs.h <<\_ACEOF
36617 #define snprintf _snprintf
36618 _ACEOF
36619
36620
36621 fi
36622
36623
36624 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
36625 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
36626 if test "${ac_cv_func__vsnprintf+set}" = set; then
36627   echo $ECHO_N "(cached) $ECHO_C" >&6
36628 else
36629   cat >conftest.$ac_ext <<_ACEOF
36630 /* confdefs.h.  */
36631 _ACEOF
36632 cat confdefs.h >>conftest.$ac_ext
36633 cat >>conftest.$ac_ext <<_ACEOF
36634 /* end confdefs.h.  */
36635 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
36636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36637 #define _vsnprintf innocuous__vsnprintf
36638
36639 /* System header to define __stub macros and hopefully few prototypes,
36640     which can conflict with char _vsnprintf (); below.
36641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36642     <limits.h> exists even on freestanding compilers.  */
36643
36644 #ifdef __STDC__
36645 # include <limits.h>
36646 #else
36647 # include <assert.h>
36648 #endif
36649
36650 #undef _vsnprintf
36651
36652 /* Override any gcc2 internal prototype to avoid an error.  */
36653 #ifdef __cplusplus
36654 extern "C"
36655 {
36656 #endif
36657 /* We use char because int might match the return type of a gcc2
36658    builtin and then its argument prototype would still apply.  */
36659 char _vsnprintf ();
36660 /* The GNU C library defines this for functions which it implements
36661     to always fail with ENOSYS.  Some functions are actually named
36662     something starting with __ and the normal name is an alias.  */
36663 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
36664 choke me
36665 #else
36666 char (*f) () = _vsnprintf;
36667 #endif
36668 #ifdef __cplusplus
36669 }
36670 #endif
36671
36672 int
36673 main ()
36674 {
36675 return f != _vsnprintf;
36676   ;
36677   return 0;
36678 }
36679 _ACEOF
36680 rm -f conftest.$ac_objext conftest$ac_exeext
36681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36682   (eval $ac_link) 2>conftest.er1
36683   ac_status=$?
36684   grep -v '^ *+' conftest.er1 >conftest.err
36685   rm -f conftest.er1
36686   cat conftest.err >&5
36687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688   (exit $ac_status); } &&
36689          { ac_try='test -z "$ac_c_werror_flag"
36690                          || test ! -s conftest.err'
36691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36692   (eval $ac_try) 2>&5
36693   ac_status=$?
36694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695   (exit $ac_status); }; } &&
36696          { ac_try='test -s conftest$ac_exeext'
36697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36698   (eval $ac_try) 2>&5
36699   ac_status=$?
36700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701   (exit $ac_status); }; }; then
36702   ac_cv_func__vsnprintf=yes
36703 else
36704   echo "$as_me: failed program was:" >&5
36705 sed 's/^/| /' conftest.$ac_ext >&5
36706
36707 ac_cv_func__vsnprintf=no
36708 fi
36709 rm -f conftest.err conftest.$ac_objext \
36710       conftest$ac_exeext conftest.$ac_ext
36711 fi
36712 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
36713 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
36714 if test $ac_cv_func__vsnprintf = yes; then
36715   ac_cv_func_vsnprintf=yes
36716
36717 cat >>confdefs.h <<\_ACEOF
36718 #define vsnprintf _vsnprintf
36719 _ACEOF
36720
36721
36722 fi
36723
36724
36725
36726 for ac_func in vprintf
36727 do
36728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36729 echo "$as_me:$LINENO: checking for $ac_func" >&5
36730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36731 if eval "test \"\${$as_ac_var+set}\" = set"; then
36732   echo $ECHO_N "(cached) $ECHO_C" >&6
36733 else
36734   cat >conftest.$ac_ext <<_ACEOF
36735 /* confdefs.h.  */
36736 _ACEOF
36737 cat confdefs.h >>conftest.$ac_ext
36738 cat >>conftest.$ac_ext <<_ACEOF
36739 /* end confdefs.h.  */
36740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36742 #define $ac_func innocuous_$ac_func
36743
36744 /* System header to define __stub macros and hopefully few prototypes,
36745     which can conflict with char $ac_func (); below.
36746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36747     <limits.h> exists even on freestanding compilers.  */
36748
36749 #ifdef __STDC__
36750 # include <limits.h>
36751 #else
36752 # include <assert.h>
36753 #endif
36754
36755 #undef $ac_func
36756
36757 /* Override any gcc2 internal prototype to avoid an error.  */
36758 #ifdef __cplusplus
36759 extern "C"
36760 {
36761 #endif
36762 /* We use char because int might match the return type of a gcc2
36763    builtin and then its argument prototype would still apply.  */
36764 char $ac_func ();
36765 /* The GNU C library defines this for functions which it implements
36766     to always fail with ENOSYS.  Some functions are actually named
36767     something starting with __ and the normal name is an alias.  */
36768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36769 choke me
36770 #else
36771 char (*f) () = $ac_func;
36772 #endif
36773 #ifdef __cplusplus
36774 }
36775 #endif
36776
36777 int
36778 main ()
36779 {
36780 return f != $ac_func;
36781   ;
36782   return 0;
36783 }
36784 _ACEOF
36785 rm -f conftest.$ac_objext conftest$ac_exeext
36786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36787   (eval $ac_link) 2>conftest.er1
36788   ac_status=$?
36789   grep -v '^ *+' conftest.er1 >conftest.err
36790   rm -f conftest.er1
36791   cat conftest.err >&5
36792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793   (exit $ac_status); } &&
36794          { ac_try='test -z "$ac_c_werror_flag"
36795                          || test ! -s conftest.err'
36796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36797   (eval $ac_try) 2>&5
36798   ac_status=$?
36799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800   (exit $ac_status); }; } &&
36801          { ac_try='test -s conftest$ac_exeext'
36802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36803   (eval $ac_try) 2>&5
36804   ac_status=$?
36805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806   (exit $ac_status); }; }; then
36807   eval "$as_ac_var=yes"
36808 else
36809   echo "$as_me: failed program was:" >&5
36810 sed 's/^/| /' conftest.$ac_ext >&5
36811
36812 eval "$as_ac_var=no"
36813 fi
36814 rm -f conftest.err conftest.$ac_objext \
36815       conftest$ac_exeext conftest.$ac_ext
36816 fi
36817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36819 if test `eval echo '${'$as_ac_var'}'` = yes; then
36820   cat >>confdefs.h <<_ACEOF
36821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36822 _ACEOF
36823
36824 echo "$as_me:$LINENO: checking for _doprnt" >&5
36825 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
36826 if test "${ac_cv_func__doprnt+set}" = set; then
36827   echo $ECHO_N "(cached) $ECHO_C" >&6
36828 else
36829   cat >conftest.$ac_ext <<_ACEOF
36830 /* confdefs.h.  */
36831 _ACEOF
36832 cat confdefs.h >>conftest.$ac_ext
36833 cat >>conftest.$ac_ext <<_ACEOF
36834 /* end confdefs.h.  */
36835 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36837 #define _doprnt innocuous__doprnt
36838
36839 /* System header to define __stub macros and hopefully few prototypes,
36840     which can conflict with char _doprnt (); below.
36841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36842     <limits.h> exists even on freestanding compilers.  */
36843
36844 #ifdef __STDC__
36845 # include <limits.h>
36846 #else
36847 # include <assert.h>
36848 #endif
36849
36850 #undef _doprnt
36851
36852 /* Override any gcc2 internal prototype to avoid an error.  */
36853 #ifdef __cplusplus
36854 extern "C"
36855 {
36856 #endif
36857 /* We use char because int might match the return type of a gcc2
36858    builtin and then its argument prototype would still apply.  */
36859 char _doprnt ();
36860 /* The GNU C library defines this for functions which it implements
36861     to always fail with ENOSYS.  Some functions are actually named
36862     something starting with __ and the normal name is an alias.  */
36863 #if defined (__stub__doprnt) || defined (__stub____doprnt)
36864 choke me
36865 #else
36866 char (*f) () = _doprnt;
36867 #endif
36868 #ifdef __cplusplus
36869 }
36870 #endif
36871
36872 int
36873 main ()
36874 {
36875 return f != _doprnt;
36876   ;
36877   return 0;
36878 }
36879 _ACEOF
36880 rm -f conftest.$ac_objext conftest$ac_exeext
36881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36882   (eval $ac_link) 2>conftest.er1
36883   ac_status=$?
36884   grep -v '^ *+' conftest.er1 >conftest.err
36885   rm -f conftest.er1
36886   cat conftest.err >&5
36887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888   (exit $ac_status); } &&
36889          { ac_try='test -z "$ac_c_werror_flag"
36890                          || test ! -s conftest.err'
36891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36892   (eval $ac_try) 2>&5
36893   ac_status=$?
36894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895   (exit $ac_status); }; } &&
36896          { ac_try='test -s conftest$ac_exeext'
36897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36898   (eval $ac_try) 2>&5
36899   ac_status=$?
36900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901   (exit $ac_status); }; }; then
36902   ac_cv_func__doprnt=yes
36903 else
36904   echo "$as_me: failed program was:" >&5
36905 sed 's/^/| /' conftest.$ac_ext >&5
36906
36907 ac_cv_func__doprnt=no
36908 fi
36909 rm -f conftest.err conftest.$ac_objext \
36910       conftest$ac_exeext conftest.$ac_ext
36911 fi
36912 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36913 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
36914 if test $ac_cv_func__doprnt = yes; then
36915
36916 cat >>confdefs.h <<\_ACEOF
36917 #define HAVE_DOPRNT 1
36918 _ACEOF
36919
36920 fi
36921
36922 fi
36923 done
36924
36925
36926
36927 if test $ac_cv_func_vprintf = yes ; then
36928
36929
36930 for ac_func in snprintf vsnprintf
36931 do
36932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36933 echo "$as_me:$LINENO: checking for $ac_func" >&5
36934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36935 if eval "test \"\${$as_ac_var+set}\" = set"; then
36936   echo $ECHO_N "(cached) $ECHO_C" >&6
36937 else
36938   cat >conftest.$ac_ext <<_ACEOF
36939 /* confdefs.h.  */
36940 _ACEOF
36941 cat confdefs.h >>conftest.$ac_ext
36942 cat >>conftest.$ac_ext <<_ACEOF
36943 /* end confdefs.h.  */
36944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36946 #define $ac_func innocuous_$ac_func
36947
36948 /* System header to define __stub macros and hopefully few prototypes,
36949     which can conflict with char $ac_func (); below.
36950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36951     <limits.h> exists even on freestanding compilers.  */
36952
36953 #ifdef __STDC__
36954 # include <limits.h>
36955 #else
36956 # include <assert.h>
36957 #endif
36958
36959 #undef $ac_func
36960
36961 /* Override any gcc2 internal prototype to avoid an error.  */
36962 #ifdef __cplusplus
36963 extern "C"
36964 {
36965 #endif
36966 /* We use char because int might match the return type of a gcc2
36967    builtin and then its argument prototype would still apply.  */
36968 char $ac_func ();
36969 /* The GNU C library defines this for functions which it implements
36970     to always fail with ENOSYS.  Some functions are actually named
36971     something starting with __ and the normal name is an alias.  */
36972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36973 choke me
36974 #else
36975 char (*f) () = $ac_func;
36976 #endif
36977 #ifdef __cplusplus
36978 }
36979 #endif
36980
36981 int
36982 main ()
36983 {
36984 return f != $ac_func;
36985   ;
36986   return 0;
36987 }
36988 _ACEOF
36989 rm -f conftest.$ac_objext conftest$ac_exeext
36990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36991   (eval $ac_link) 2>conftest.er1
36992   ac_status=$?
36993   grep -v '^ *+' conftest.er1 >conftest.err
36994   rm -f conftest.er1
36995   cat conftest.err >&5
36996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997   (exit $ac_status); } &&
36998          { ac_try='test -z "$ac_c_werror_flag"
36999                          || test ! -s conftest.err'
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); }; } &&
37005          { ac_try='test -s conftest$ac_exeext'
37006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37007   (eval $ac_try) 2>&5
37008   ac_status=$?
37009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010   (exit $ac_status); }; }; then
37011   eval "$as_ac_var=yes"
37012 else
37013   echo "$as_me: failed program was:" >&5
37014 sed 's/^/| /' conftest.$ac_ext >&5
37015
37016 eval "$as_ac_var=no"
37017 fi
37018 rm -f conftest.err conftest.$ac_objext \
37019       conftest$ac_exeext conftest.$ac_ext
37020 fi
37021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37023 if test `eval echo '${'$as_ac_var'}'` = yes; then
37024   cat >>confdefs.h <<_ACEOF
37025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37026 _ACEOF
37027
37028 fi
37029 done
37030
37031 fi
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
37072
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
37086
37087
37088 for ac_func in \
37089         bcopy                   \
37090         closesocket             \
37091         chroot                  \
37092         endgrent                \
37093         endpwent                \
37094         fcntl                   \
37095         flock                   \
37096         fstat                   \
37097         getdtablesize           \
37098         getgrgid                \
37099         gethostname             \
37100         getpass                 \
37101         getpassphrase           \
37102         getpwuid                \
37103         getpwnam                \
37104         getspnam                \
37105         gettimeofday            \
37106         initgroups              \
37107         inet_ntoa_b             \
37108         ioctl                   \
37109         lockf                   \
37110         memcpy                  \
37111         memmove                 \
37112         memrchr                 \
37113         mkstemp                 \
37114         mktemp                  \
37115         pipe                    \
37116         read                    \
37117         recv                    \
37118         recvfrom                \
37119         setpwfile               \
37120         setgid                  \
37121         setegid                 \
37122         setsid                  \
37123         setuid                  \
37124         seteuid                 \
37125         signal                  \
37126         strdup                  \
37127         strpbrk                 \
37128         strrchr                 \
37129         strsep                  \
37130         strstr                  \
37131         strtol                  \
37132         strtoul                 \
37133         strtoq                  \
37134         strtouq                 \
37135         strtoll                 \
37136         strspn                  \
37137         sysconf                 \
37138         waitpid                 \
37139         wait4                   \
37140         write                   \
37141         send                    \
37142         sendmsg                 \
37143         sendto                  \
37144
37145 do
37146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37147 echo "$as_me:$LINENO: checking for $ac_func" >&5
37148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37149 if eval "test \"\${$as_ac_var+set}\" = set"; then
37150   echo $ECHO_N "(cached) $ECHO_C" >&6
37151 else
37152   cat >conftest.$ac_ext <<_ACEOF
37153 /* confdefs.h.  */
37154 _ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h.  */
37158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37160 #define $ac_func innocuous_$ac_func
37161
37162 /* System header to define __stub macros and hopefully few prototypes,
37163     which can conflict with char $ac_func (); below.
37164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37165     <limits.h> exists even on freestanding compilers.  */
37166
37167 #ifdef __STDC__
37168 # include <limits.h>
37169 #else
37170 # include <assert.h>
37171 #endif
37172
37173 #undef $ac_func
37174
37175 /* Override any gcc2 internal prototype to avoid an error.  */
37176 #ifdef __cplusplus
37177 extern "C"
37178 {
37179 #endif
37180 /* We use char because int might match the return type of a gcc2
37181    builtin and then its argument prototype would still apply.  */
37182 char $ac_func ();
37183 /* The GNU C library defines this for functions which it implements
37184     to always fail with ENOSYS.  Some functions are actually named
37185     something starting with __ and the normal name is an alias.  */
37186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37187 choke me
37188 #else
37189 char (*f) () = $ac_func;
37190 #endif
37191 #ifdef __cplusplus
37192 }
37193 #endif
37194
37195 int
37196 main ()
37197 {
37198 return f != $ac_func;
37199   ;
37200   return 0;
37201 }
37202 _ACEOF
37203 rm -f conftest.$ac_objext conftest$ac_exeext
37204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37205   (eval $ac_link) 2>conftest.er1
37206   ac_status=$?
37207   grep -v '^ *+' conftest.er1 >conftest.err
37208   rm -f conftest.er1
37209   cat conftest.err >&5
37210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211   (exit $ac_status); } &&
37212          { ac_try='test -z "$ac_c_werror_flag"
37213                          || test ! -s conftest.err'
37214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215   (eval $ac_try) 2>&5
37216   ac_status=$?
37217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218   (exit $ac_status); }; } &&
37219          { ac_try='test -s conftest$ac_exeext'
37220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221   (eval $ac_try) 2>&5
37222   ac_status=$?
37223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224   (exit $ac_status); }; }; then
37225   eval "$as_ac_var=yes"
37226 else
37227   echo "$as_me: failed program was:" >&5
37228 sed 's/^/| /' conftest.$ac_ext >&5
37229
37230 eval "$as_ac_var=no"
37231 fi
37232 rm -f conftest.err conftest.$ac_objext \
37233       conftest$ac_exeext conftest.$ac_ext
37234 fi
37235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37237 if test `eval echo '${'$as_ac_var'}'` = yes; then
37238   cat >>confdefs.h <<_ACEOF
37239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37240 _ACEOF
37241
37242 fi
37243 done
37244
37245
37246
37247
37248 for ac_func in getopt getpeereid
37249 do
37250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37251 echo "$as_me:$LINENO: checking for $ac_func" >&5
37252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37253 if eval "test \"\${$as_ac_var+set}\" = set"; then
37254   echo $ECHO_N "(cached) $ECHO_C" >&6
37255 else
37256   cat >conftest.$ac_ext <<_ACEOF
37257 /* confdefs.h.  */
37258 _ACEOF
37259 cat confdefs.h >>conftest.$ac_ext
37260 cat >>conftest.$ac_ext <<_ACEOF
37261 /* end confdefs.h.  */
37262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37264 #define $ac_func innocuous_$ac_func
37265
37266 /* System header to define __stub macros and hopefully few prototypes,
37267     which can conflict with char $ac_func (); below.
37268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37269     <limits.h> exists even on freestanding compilers.  */
37270
37271 #ifdef __STDC__
37272 # include <limits.h>
37273 #else
37274 # include <assert.h>
37275 #endif
37276
37277 #undef $ac_func
37278
37279 /* Override any gcc2 internal prototype to avoid an error.  */
37280 #ifdef __cplusplus
37281 extern "C"
37282 {
37283 #endif
37284 /* We use char because int might match the return type of a gcc2
37285    builtin and then its argument prototype would still apply.  */
37286 char $ac_func ();
37287 /* The GNU C library defines this for functions which it implements
37288     to always fail with ENOSYS.  Some functions are actually named
37289     something starting with __ and the normal name is an alias.  */
37290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37291 choke me
37292 #else
37293 char (*f) () = $ac_func;
37294 #endif
37295 #ifdef __cplusplus
37296 }
37297 #endif
37298
37299 int
37300 main ()
37301 {
37302 return f != $ac_func;
37303   ;
37304   return 0;
37305 }
37306 _ACEOF
37307 rm -f conftest.$ac_objext conftest$ac_exeext
37308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37309   (eval $ac_link) 2>conftest.er1
37310   ac_status=$?
37311   grep -v '^ *+' conftest.er1 >conftest.err
37312   rm -f conftest.er1
37313   cat conftest.err >&5
37314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315   (exit $ac_status); } &&
37316          { ac_try='test -z "$ac_c_werror_flag"
37317                          || test ! -s conftest.err'
37318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319   (eval $ac_try) 2>&5
37320   ac_status=$?
37321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322   (exit $ac_status); }; } &&
37323          { ac_try='test -s conftest$ac_exeext'
37324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325   (eval $ac_try) 2>&5
37326   ac_status=$?
37327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328   (exit $ac_status); }; }; then
37329   eval "$as_ac_var=yes"
37330 else
37331   echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37333
37334 eval "$as_ac_var=no"
37335 fi
37336 rm -f conftest.err conftest.$ac_objext \
37337       conftest$ac_exeext conftest.$ac_ext
37338 fi
37339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37341 if test `eval echo '${'$as_ac_var'}'` = yes; then
37342   cat >>confdefs.h <<_ACEOF
37343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37344 _ACEOF
37345
37346 else
37347   case $LIBOBJS in
37348     "$ac_func.$ac_objext"   | \
37349   *" $ac_func.$ac_objext"   | \
37350     "$ac_func.$ac_objext "* | \
37351   *" $ac_func.$ac_objext "* ) ;;
37352   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37353 esac
37354
37355 fi
37356 done
37357
37358
37359
37360 if test "$ac_cv_func_getopt" != yes; then
37361         LIBSRCS="$LIBSRCS getopt.c"
37362 fi
37363
37364 if test "$ac_cv_func_getpeereid" != yes; then
37365
37366 for ac_func in getpeerucred
37367 do
37368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37369 echo "$as_me:$LINENO: checking for $ac_func" >&5
37370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37371 if eval "test \"\${$as_ac_var+set}\" = set"; then
37372   echo $ECHO_N "(cached) $ECHO_C" >&6
37373 else
37374   cat >conftest.$ac_ext <<_ACEOF
37375 /* confdefs.h.  */
37376 _ACEOF
37377 cat confdefs.h >>conftest.$ac_ext
37378 cat >>conftest.$ac_ext <<_ACEOF
37379 /* end confdefs.h.  */
37380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37382 #define $ac_func innocuous_$ac_func
37383
37384 /* System header to define __stub macros and hopefully few prototypes,
37385     which can conflict with char $ac_func (); below.
37386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37387     <limits.h> exists even on freestanding compilers.  */
37388
37389 #ifdef __STDC__
37390 # include <limits.h>
37391 #else
37392 # include <assert.h>
37393 #endif
37394
37395 #undef $ac_func
37396
37397 /* Override any gcc2 internal prototype to avoid an error.  */
37398 #ifdef __cplusplus
37399 extern "C"
37400 {
37401 #endif
37402 /* We use char because int might match the return type of a gcc2
37403    builtin and then its argument prototype would still apply.  */
37404 char $ac_func ();
37405 /* The GNU C library defines this for functions which it implements
37406     to always fail with ENOSYS.  Some functions are actually named
37407     something starting with __ and the normal name is an alias.  */
37408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37409 choke me
37410 #else
37411 char (*f) () = $ac_func;
37412 #endif
37413 #ifdef __cplusplus
37414 }
37415 #endif
37416
37417 int
37418 main ()
37419 {
37420 return f != $ac_func;
37421   ;
37422   return 0;
37423 }
37424 _ACEOF
37425 rm -f conftest.$ac_objext conftest$ac_exeext
37426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37427   (eval $ac_link) 2>conftest.er1
37428   ac_status=$?
37429   grep -v '^ *+' conftest.er1 >conftest.err
37430   rm -f conftest.er1
37431   cat conftest.err >&5
37432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433   (exit $ac_status); } &&
37434          { ac_try='test -z "$ac_c_werror_flag"
37435                          || test ! -s conftest.err'
37436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37437   (eval $ac_try) 2>&5
37438   ac_status=$?
37439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440   (exit $ac_status); }; } &&
37441          { ac_try='test -s conftest$ac_exeext'
37442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37443   (eval $ac_try) 2>&5
37444   ac_status=$?
37445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446   (exit $ac_status); }; }; then
37447   eval "$as_ac_var=yes"
37448 else
37449   echo "$as_me: failed program was:" >&5
37450 sed 's/^/| /' conftest.$ac_ext >&5
37451
37452 eval "$as_ac_var=no"
37453 fi
37454 rm -f conftest.err conftest.$ac_objext \
37455       conftest$ac_exeext conftest.$ac_ext
37456 fi
37457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37459 if test `eval echo '${'$as_ac_var'}'` = yes; then
37460   cat >>confdefs.h <<_ACEOF
37461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37462 _ACEOF
37463
37464 fi
37465 done
37466
37467         if test "$ac_cv_func_getpeerucred" != yes ; then
37468                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37469 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
37470 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37471   echo $ECHO_N "(cached) $ECHO_C" >&6
37472 else
37473   cat >conftest.$ac_ext <<_ACEOF
37474 /* confdefs.h.  */
37475 _ACEOF
37476 cat confdefs.h >>conftest.$ac_ext
37477 cat >>conftest.$ac_ext <<_ACEOF
37478 /* end confdefs.h.  */
37479 $ac_includes_default
37480 #ifdef HAVE_SYS_SOCKET_H
37481 #include <sys/socket.h>
37482 #endif
37483
37484 int
37485 main ()
37486 {
37487 static struct msghdr ac_aggr;
37488 if (ac_aggr.msg_accrightslen)
37489 return 0;
37490   ;
37491   return 0;
37492 }
37493 _ACEOF
37494 rm -f conftest.$ac_objext
37495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37496   (eval $ac_compile) 2>conftest.er1
37497   ac_status=$?
37498   grep -v '^ *+' conftest.er1 >conftest.err
37499   rm -f conftest.er1
37500   cat conftest.err >&5
37501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502   (exit $ac_status); } &&
37503          { ac_try='test -z "$ac_c_werror_flag"
37504                          || test ! -s conftest.err'
37505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37506   (eval $ac_try) 2>&5
37507   ac_status=$?
37508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509   (exit $ac_status); }; } &&
37510          { ac_try='test -s conftest.$ac_objext'
37511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37512   (eval $ac_try) 2>&5
37513   ac_status=$?
37514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515   (exit $ac_status); }; }; then
37516   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37517 else
37518   echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37520
37521 cat >conftest.$ac_ext <<_ACEOF
37522 /* confdefs.h.  */
37523 _ACEOF
37524 cat confdefs.h >>conftest.$ac_ext
37525 cat >>conftest.$ac_ext <<_ACEOF
37526 /* end confdefs.h.  */
37527 $ac_includes_default
37528 #ifdef HAVE_SYS_SOCKET_H
37529 #include <sys/socket.h>
37530 #endif
37531
37532 int
37533 main ()
37534 {
37535 static struct msghdr ac_aggr;
37536 if (sizeof ac_aggr.msg_accrightslen)
37537 return 0;
37538   ;
37539   return 0;
37540 }
37541 _ACEOF
37542 rm -f conftest.$ac_objext
37543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37544   (eval $ac_compile) 2>conftest.er1
37545   ac_status=$?
37546   grep -v '^ *+' conftest.er1 >conftest.err
37547   rm -f conftest.er1
37548   cat conftest.err >&5
37549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550   (exit $ac_status); } &&
37551          { ac_try='test -z "$ac_c_werror_flag"
37552                          || test ! -s conftest.err'
37553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37554   (eval $ac_try) 2>&5
37555   ac_status=$?
37556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557   (exit $ac_status); }; } &&
37558          { ac_try='test -s conftest.$ac_objext'
37559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560   (eval $ac_try) 2>&5
37561   ac_status=$?
37562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563   (exit $ac_status); }; }; then
37564   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37565 else
37566   echo "$as_me: failed program was:" >&5
37567 sed 's/^/| /' conftest.$ac_ext >&5
37568
37569 ac_cv_member_struct_msghdr_msg_accrightslen=no
37570 fi
37571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37572 fi
37573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37574 fi
37575 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37576 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
37577 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37578
37579 cat >>confdefs.h <<_ACEOF
37580 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37581 _ACEOF
37582
37583
37584 fi
37585
37586                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37587                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37588 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
37589 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37590   echo $ECHO_N "(cached) $ECHO_C" >&6
37591 else
37592   cat >conftest.$ac_ext <<_ACEOF
37593 /* confdefs.h.  */
37594 _ACEOF
37595 cat confdefs.h >>conftest.$ac_ext
37596 cat >>conftest.$ac_ext <<_ACEOF
37597 /* end confdefs.h.  */
37598 $ac_includes_default
37599 #ifdef HAVE_SYS_SOCKET_H
37600 #include <sys/socket.h>
37601 #endif
37602
37603 int
37604 main ()
37605 {
37606 static struct msghdr ac_aggr;
37607 if (ac_aggr.msg_control)
37608 return 0;
37609   ;
37610   return 0;
37611 }
37612 _ACEOF
37613 rm -f conftest.$ac_objext
37614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37615   (eval $ac_compile) 2>conftest.er1
37616   ac_status=$?
37617   grep -v '^ *+' conftest.er1 >conftest.err
37618   rm -f conftest.er1
37619   cat conftest.err >&5
37620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621   (exit $ac_status); } &&
37622          { ac_try='test -z "$ac_c_werror_flag"
37623                          || test ! -s conftest.err'
37624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37625   (eval $ac_try) 2>&5
37626   ac_status=$?
37627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628   (exit $ac_status); }; } &&
37629          { ac_try='test -s conftest.$ac_objext'
37630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37631   (eval $ac_try) 2>&5
37632   ac_status=$?
37633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634   (exit $ac_status); }; }; then
37635   ac_cv_member_struct_msghdr_msg_control=yes
37636 else
37637   echo "$as_me: failed program was:" >&5
37638 sed 's/^/| /' conftest.$ac_ext >&5
37639
37640 cat >conftest.$ac_ext <<_ACEOF
37641 /* confdefs.h.  */
37642 _ACEOF
37643 cat confdefs.h >>conftest.$ac_ext
37644 cat >>conftest.$ac_ext <<_ACEOF
37645 /* end confdefs.h.  */
37646 $ac_includes_default
37647 #ifdef HAVE_SYS_SOCKET_H
37648 #include <sys/socket.h>
37649 #endif
37650
37651 int
37652 main ()
37653 {
37654 static struct msghdr ac_aggr;
37655 if (sizeof ac_aggr.msg_control)
37656 return 0;
37657   ;
37658   return 0;
37659 }
37660 _ACEOF
37661 rm -f conftest.$ac_objext
37662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37663   (eval $ac_compile) 2>conftest.er1
37664   ac_status=$?
37665   grep -v '^ *+' conftest.er1 >conftest.err
37666   rm -f conftest.er1
37667   cat conftest.err >&5
37668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37669   (exit $ac_status); } &&
37670          { ac_try='test -z "$ac_c_werror_flag"
37671                          || test ! -s conftest.err'
37672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37673   (eval $ac_try) 2>&5
37674   ac_status=$?
37675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676   (exit $ac_status); }; } &&
37677          { ac_try='test -s conftest.$ac_objext'
37678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37679   (eval $ac_try) 2>&5
37680   ac_status=$?
37681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682   (exit $ac_status); }; }; then
37683   ac_cv_member_struct_msghdr_msg_control=yes
37684 else
37685   echo "$as_me: failed program was:" >&5
37686 sed 's/^/| /' conftest.$ac_ext >&5
37687
37688 ac_cv_member_struct_msghdr_msg_control=no
37689 fi
37690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37691 fi
37692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37693 fi
37694 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37695 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
37696 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37697
37698 cat >>confdefs.h <<_ACEOF
37699 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37700 _ACEOF
37701
37702
37703 fi
37704
37705                 fi
37706                 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37707 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
37708 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37709   echo $ECHO_N "(cached) $ECHO_C" >&6
37710 else
37711   cat >conftest.$ac_ext <<_ACEOF
37712 /* confdefs.h.  */
37713 _ACEOF
37714 cat confdefs.h >>conftest.$ac_ext
37715 cat >>conftest.$ac_ext <<_ACEOF
37716 /* end confdefs.h.  */
37717 $ac_includes_default
37718 int
37719 main ()
37720 {
37721 static struct stat ac_aggr;
37722 if (ac_aggr.st_fstype)
37723 return 0;
37724   ;
37725   return 0;
37726 }
37727 _ACEOF
37728 rm -f conftest.$ac_objext
37729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37730   (eval $ac_compile) 2>conftest.er1
37731   ac_status=$?
37732   grep -v '^ *+' conftest.er1 >conftest.err
37733   rm -f conftest.er1
37734   cat conftest.err >&5
37735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736   (exit $ac_status); } &&
37737          { ac_try='test -z "$ac_c_werror_flag"
37738                          || test ! -s conftest.err'
37739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37740   (eval $ac_try) 2>&5
37741   ac_status=$?
37742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743   (exit $ac_status); }; } &&
37744          { ac_try='test -s conftest.$ac_objext'
37745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37746   (eval $ac_try) 2>&5
37747   ac_status=$?
37748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749   (exit $ac_status); }; }; then
37750   ac_cv_member_struct_stat_st_fstype=yes
37751 else
37752   echo "$as_me: failed program was:" >&5
37753 sed 's/^/| /' conftest.$ac_ext >&5
37754
37755 cat >conftest.$ac_ext <<_ACEOF
37756 /* confdefs.h.  */
37757 _ACEOF
37758 cat confdefs.h >>conftest.$ac_ext
37759 cat >>conftest.$ac_ext <<_ACEOF
37760 /* end confdefs.h.  */
37761 $ac_includes_default
37762 int
37763 main ()
37764 {
37765 static struct stat ac_aggr;
37766 if (sizeof ac_aggr.st_fstype)
37767 return 0;
37768   ;
37769   return 0;
37770 }
37771 _ACEOF
37772 rm -f conftest.$ac_objext
37773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37774   (eval $ac_compile) 2>conftest.er1
37775   ac_status=$?
37776   grep -v '^ *+' conftest.er1 >conftest.err
37777   rm -f conftest.er1
37778   cat conftest.err >&5
37779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780   (exit $ac_status); } &&
37781          { ac_try='test -z "$ac_c_werror_flag"
37782                          || test ! -s conftest.err'
37783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37784   (eval $ac_try) 2>&5
37785   ac_status=$?
37786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787   (exit $ac_status); }; } &&
37788          { ac_try='test -s conftest.$ac_objext'
37789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790   (eval $ac_try) 2>&5
37791   ac_status=$?
37792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793   (exit $ac_status); }; }; then
37794   ac_cv_member_struct_stat_st_fstype=yes
37795 else
37796   echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37798
37799 ac_cv_member_struct_stat_st_fstype=no
37800 fi
37801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37802 fi
37803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37804 fi
37805 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37806 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
37807 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37808
37809 cat >>confdefs.h <<_ACEOF
37810 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37811 _ACEOF
37812
37813
37814 fi
37815 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37816 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
37817 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37818   echo $ECHO_N "(cached) $ECHO_C" >&6
37819 else
37820   cat >conftest.$ac_ext <<_ACEOF
37821 /* confdefs.h.  */
37822 _ACEOF
37823 cat confdefs.h >>conftest.$ac_ext
37824 cat >>conftest.$ac_ext <<_ACEOF
37825 /* end confdefs.h.  */
37826 $ac_includes_default
37827 int
37828 main ()
37829 {
37830 static struct stat ac_aggr;
37831 if (ac_aggr.st_vfstype)
37832 return 0;
37833   ;
37834   return 0;
37835 }
37836 _ACEOF
37837 rm -f conftest.$ac_objext
37838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37839   (eval $ac_compile) 2>conftest.er1
37840   ac_status=$?
37841   grep -v '^ *+' conftest.er1 >conftest.err
37842   rm -f conftest.er1
37843   cat conftest.err >&5
37844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845   (exit $ac_status); } &&
37846          { ac_try='test -z "$ac_c_werror_flag"
37847                          || test ! -s conftest.err'
37848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37849   (eval $ac_try) 2>&5
37850   ac_status=$?
37851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852   (exit $ac_status); }; } &&
37853          { ac_try='test -s conftest.$ac_objext'
37854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37855   (eval $ac_try) 2>&5
37856   ac_status=$?
37857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858   (exit $ac_status); }; }; then
37859   ac_cv_member_struct_stat_st_vfstype=yes
37860 else
37861   echo "$as_me: failed program was:" >&5
37862 sed 's/^/| /' conftest.$ac_ext >&5
37863
37864 cat >conftest.$ac_ext <<_ACEOF
37865 /* confdefs.h.  */
37866 _ACEOF
37867 cat confdefs.h >>conftest.$ac_ext
37868 cat >>conftest.$ac_ext <<_ACEOF
37869 /* end confdefs.h.  */
37870 $ac_includes_default
37871 int
37872 main ()
37873 {
37874 static struct stat ac_aggr;
37875 if (sizeof ac_aggr.st_vfstype)
37876 return 0;
37877   ;
37878   return 0;
37879 }
37880 _ACEOF
37881 rm -f conftest.$ac_objext
37882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37883   (eval $ac_compile) 2>conftest.er1
37884   ac_status=$?
37885   grep -v '^ *+' conftest.er1 >conftest.err
37886   rm -f conftest.er1
37887   cat conftest.err >&5
37888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889   (exit $ac_status); } &&
37890          { ac_try='test -z "$ac_c_werror_flag"
37891                          || test ! -s conftest.err'
37892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37893   (eval $ac_try) 2>&5
37894   ac_status=$?
37895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896   (exit $ac_status); }; } &&
37897          { ac_try='test -s conftest.$ac_objext'
37898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37899   (eval $ac_try) 2>&5
37900   ac_status=$?
37901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902   (exit $ac_status); }; }; then
37903   ac_cv_member_struct_stat_st_vfstype=yes
37904 else
37905   echo "$as_me: failed program was:" >&5
37906 sed 's/^/| /' conftest.$ac_ext >&5
37907
37908 ac_cv_member_struct_stat_st_vfstype=no
37909 fi
37910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37911 fi
37912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37913 fi
37914 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37915 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
37916 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37917
37918 cat >>confdefs.h <<_ACEOF
37919 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37920 _ACEOF
37921
37922
37923 fi
37924
37925                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37926                         cat >conftest.$ac_ext <<_ACEOF
37927 struct stat st; char *ptr=st.st_fstype;
37928 _ACEOF
37929 rm -f conftest.$ac_objext
37930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37931   (eval $ac_compile) 2>conftest.er1
37932   ac_status=$?
37933   grep -v '^ *+' conftest.er1 >conftest.err
37934   rm -f conftest.er1
37935   cat conftest.err >&5
37936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937   (exit $ac_status); } &&
37938          { ac_try='test -z "$ac_c_werror_flag"
37939                          || test ! -s conftest.err'
37940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37941   (eval $ac_try) 2>&5
37942   ac_status=$?
37943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944   (exit $ac_status); }; } &&
37945          { ac_try='test -s conftest.$ac_objext'
37946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37947   (eval $ac_try) 2>&5
37948   ac_status=$?
37949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950   (exit $ac_status); }; }; then
37951
37952 cat >>confdefs.h <<\_ACEOF
37953 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37954 _ACEOF
37955
37956 else
37957   echo "$as_me: failed program was:" >&5
37958 sed 's/^/| /' conftest.$ac_ext >&5
37959
37960
37961 cat >>confdefs.h <<\_ACEOF
37962 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37963 _ACEOF
37964
37965 fi
37966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37967                 fi
37968         fi
37969         LIBSRCS="$LIBSRCS getpeereid.c"
37970 fi
37971
37972 if test "$ac_cv_func_snprintf" != yes ||
37973    test "$ac_cv_func_vsnprintf" != yes; then
37974         if test "$ac_cv_func_snprintf" != yes; then
37975
37976 cat >>confdefs.h <<\_ACEOF
37977 #define snprintf ber_pvt_snprintf
37978 _ACEOF
37979
37980         fi
37981         if test "$ac_cv_func_vsnprintf" != yes; then
37982
37983 cat >>confdefs.h <<\_ACEOF
37984 #define vsnprintf ber_pvt_vsnprintf
37985 _ACEOF
37986
37987         fi
37988 fi
37989
37990
37991 if test "$ol_enable_slapi" != no ; then
37992
37993 for ac_header in ltdl.h
37994 do
37995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37997   echo "$as_me:$LINENO: checking for $ac_header" >&5
37998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38000   echo $ECHO_N "(cached) $ECHO_C" >&6
38001 fi
38002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38004 else
38005   # Is the header compilable?
38006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38008 cat >conftest.$ac_ext <<_ACEOF
38009 /* confdefs.h.  */
38010 _ACEOF
38011 cat confdefs.h >>conftest.$ac_ext
38012 cat >>conftest.$ac_ext <<_ACEOF
38013 /* end confdefs.h.  */
38014 $ac_includes_default
38015 #include <$ac_header>
38016 _ACEOF
38017 rm -f conftest.$ac_objext
38018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38019   (eval $ac_compile) 2>conftest.er1
38020   ac_status=$?
38021   grep -v '^ *+' conftest.er1 >conftest.err
38022   rm -f conftest.er1
38023   cat conftest.err >&5
38024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38025   (exit $ac_status); } &&
38026          { ac_try='test -z "$ac_c_werror_flag"
38027                          || test ! -s conftest.err'
38028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38029   (eval $ac_try) 2>&5
38030   ac_status=$?
38031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032   (exit $ac_status); }; } &&
38033          { ac_try='test -s conftest.$ac_objext'
38034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38035   (eval $ac_try) 2>&5
38036   ac_status=$?
38037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038   (exit $ac_status); }; }; then
38039   ac_header_compiler=yes
38040 else
38041   echo "$as_me: failed program was:" >&5
38042 sed 's/^/| /' conftest.$ac_ext >&5
38043
38044 ac_header_compiler=no
38045 fi
38046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38048 echo "${ECHO_T}$ac_header_compiler" >&6
38049
38050 # Is the header present?
38051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38053 cat >conftest.$ac_ext <<_ACEOF
38054 /* confdefs.h.  */
38055 _ACEOF
38056 cat confdefs.h >>conftest.$ac_ext
38057 cat >>conftest.$ac_ext <<_ACEOF
38058 /* end confdefs.h.  */
38059 #include <$ac_header>
38060 _ACEOF
38061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38063   ac_status=$?
38064   grep -v '^ *+' conftest.er1 >conftest.err
38065   rm -f conftest.er1
38066   cat conftest.err >&5
38067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068   (exit $ac_status); } >/dev/null; then
38069   if test -s conftest.err; then
38070     ac_cpp_err=$ac_c_preproc_warn_flag
38071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38072   else
38073     ac_cpp_err=
38074   fi
38075 else
38076   ac_cpp_err=yes
38077 fi
38078 if test -z "$ac_cpp_err"; then
38079   ac_header_preproc=yes
38080 else
38081   echo "$as_me: failed program was:" >&5
38082 sed 's/^/| /' conftest.$ac_ext >&5
38083
38084   ac_header_preproc=no
38085 fi
38086 rm -f conftest.err conftest.$ac_ext
38087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38088 echo "${ECHO_T}$ac_header_preproc" >&6
38089
38090 # So?  What about this header?
38091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38092   yes:no: )
38093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38097     ac_header_preproc=yes
38098     ;;
38099   no:yes:* )
38100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38112     (
38113       cat <<\_ASBOX
38114 ## --------------------------------------------- ##
38115 ## Report this to <http://www.openldap.org/its/> ##
38116 ## --------------------------------------------- ##
38117 _ASBOX
38118     ) |
38119       sed "s/^/$as_me: WARNING:     /" >&2
38120     ;;
38121 esac
38122 echo "$as_me:$LINENO: checking for $ac_header" >&5
38123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38125   echo $ECHO_N "(cached) $ECHO_C" >&6
38126 else
38127   eval "$as_ac_Header=\$ac_header_preproc"
38128 fi
38129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38131
38132 fi
38133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38134   cat >>confdefs.h <<_ACEOF
38135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38136 _ACEOF
38137
38138 fi
38139
38140 done
38141
38142
38143         if test $ac_cv_header_ltdl_h != yes ; then
38144                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38145 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38146    { (exit 1); exit 1; }; }
38147         fi
38148         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38149 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38150 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38151   echo $ECHO_N "(cached) $ECHO_C" >&6
38152 else
38153   ac_check_lib_save_LIBS=$LIBS
38154 LIBS="-lltdl  $LIBS"
38155 cat >conftest.$ac_ext <<_ACEOF
38156 /* confdefs.h.  */
38157 _ACEOF
38158 cat confdefs.h >>conftest.$ac_ext
38159 cat >>conftest.$ac_ext <<_ACEOF
38160 /* end confdefs.h.  */
38161
38162 /* Override any gcc2 internal prototype to avoid an error.  */
38163 #ifdef __cplusplus
38164 extern "C"
38165 #endif
38166 /* We use char because int might match the return type of a gcc2
38167    builtin and then its argument prototype would still apply.  */
38168 char lt_dlinit ();
38169 int
38170 main ()
38171 {
38172 lt_dlinit ();
38173   ;
38174   return 0;
38175 }
38176 _ACEOF
38177 rm -f conftest.$ac_objext conftest$ac_exeext
38178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38179   (eval $ac_link) 2>conftest.er1
38180   ac_status=$?
38181   grep -v '^ *+' conftest.er1 >conftest.err
38182   rm -f conftest.er1
38183   cat conftest.err >&5
38184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185   (exit $ac_status); } &&
38186          { ac_try='test -z "$ac_c_werror_flag"
38187                          || test ! -s conftest.err'
38188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189   (eval $ac_try) 2>&5
38190   ac_status=$?
38191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192   (exit $ac_status); }; } &&
38193          { ac_try='test -s conftest$ac_exeext'
38194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38195   (eval $ac_try) 2>&5
38196   ac_status=$?
38197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198   (exit $ac_status); }; }; then
38199   ac_cv_lib_ltdl_lt_dlinit=yes
38200 else
38201   echo "$as_me: failed program was:" >&5
38202 sed 's/^/| /' conftest.$ac_ext >&5
38203
38204 ac_cv_lib_ltdl_lt_dlinit=no
38205 fi
38206 rm -f conftest.err conftest.$ac_objext \
38207       conftest$ac_exeext conftest.$ac_ext
38208 LIBS=$ac_check_lib_save_LIBS
38209 fi
38210 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38211 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38212 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38213
38214                 SLAPI_LIBS=-lltdl
38215                 LIBSLAPI=libslapi.a
38216                 LIBSLAPITOOLS=../libslapi.a
38217
38218 cat >>confdefs.h <<\_ACEOF
38219 #define HAVE_LIBLTDL 1
38220 _ACEOF
38221
38222
38223 else
38224   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38225 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38226    { (exit 1); exit 1; }; }
38227 fi
38228
38229
38230
38231 cat >>confdefs.h <<\_ACEOF
38232 #define LDAP_SLAPI 1
38233 _ACEOF
38234
38235 fi
38236
38237 if test "$ol_enable_debug" != no ; then
38238         if test "$ol_enable_debug" = traditional; then
38239
38240 cat >>confdefs.h <<\_ACEOF
38241 #define OLD_DEBUG 1
38242 _ACEOF
38243
38244         fi
38245
38246 cat >>confdefs.h <<\_ACEOF
38247 #define LDAP_DEBUG 1
38248 _ACEOF
38249
38250 fi
38251 if test "$ol_enable_syslog" = yes ; then
38252
38253 cat >>confdefs.h <<\_ACEOF
38254 #define LDAP_SYSLOG 1
38255 _ACEOF
38256
38257 fi
38258 if test "$ol_enable_proctitle" != no ; then
38259
38260 cat >>confdefs.h <<\_ACEOF
38261 #define LDAP_PROCTITLE 1
38262 _ACEOF
38263
38264 fi
38265 if test "$ol_enable_referrals" != no ; then
38266
38267 cat >>confdefs.h <<\_ACEOF
38268 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38269 _ACEOF
38270
38271 fi
38272 if test "$ol_enable_local" != no; then
38273
38274 cat >>confdefs.h <<\_ACEOF
38275 #define LDAP_PF_LOCAL 1
38276 _ACEOF
38277
38278 fi
38279 if test "$ol_link_ipv6" != no; then
38280
38281 cat >>confdefs.h <<\_ACEOF
38282 #define LDAP_PF_INET6 1
38283 _ACEOF
38284
38285 fi
38286 if test "$ol_enable_cleartext" != no ; then
38287
38288 cat >>confdefs.h <<\_ACEOF
38289 #define SLAPD_CLEARTEXT 1
38290 _ACEOF
38291
38292 fi
38293 if test "$ol_enable_crypt" != no ; then
38294
38295 cat >>confdefs.h <<\_ACEOF
38296 #define SLAPD_CRYPT 1
38297 _ACEOF
38298
38299 fi
38300 if test "$ol_link_spasswd" != no ; then
38301
38302 cat >>confdefs.h <<\_ACEOF
38303 #define SLAPD_SPASSWD 1
38304 _ACEOF
38305
38306 fi
38307 if test "$ol_enable_rlookups" != no ; then
38308
38309 cat >>confdefs.h <<\_ACEOF
38310 #define SLAPD_RLOOKUPS 1
38311 _ACEOF
38312
38313 fi
38314 if test "$ol_enable_aci" != no ; then
38315         if test $ol_enable_dynacl = no ; then
38316                 ol_enable_dynacl=yes
38317                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38318 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38319         fi
38320         if test "$ol_enable_aci" = mod ; then
38321                 MFLAG=SLAPD_MOD_DYNAMIC
38322                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38323 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38324    { (exit 1); exit 1; }; }
38325         else
38326                 MFLAG=SLAPD_MOD_STATIC
38327         fi
38328         WITH_ACI_ENABLED=$ol_enable_aci
38329
38330 cat >>confdefs.h <<_ACEOF
38331 #define SLAPD_ACI_ENABLED $MFLAG
38332 _ACEOF
38333
38334 else
38335         WITH_ACI_ENABLED=no
38336 fi
38337 if test "$ol_enable_dynacl" != no ; then
38338
38339 cat >>confdefs.h <<\_ACEOF
38340 #define SLAP_DYNACL 1
38341 _ACEOF
38342
38343 fi
38344
38345 if test "$ol_link_modules" != no ; then
38346
38347 cat >>confdefs.h <<\_ACEOF
38348 #define SLAPD_MODULES 1
38349 _ACEOF
38350
38351         BUILD_SLAPD=yes
38352         SLAPD_MODULES_LDFLAGS="-dlopen self"
38353 fi
38354
38355
38356 cat >>confdefs.h <<\_ACEOF
38357 #define SLAPD_MOD_STATIC 1
38358 _ACEOF
38359
38360
38361 cat >>confdefs.h <<\_ACEOF
38362 #define SLAPD_MOD_DYNAMIC 2
38363 _ACEOF
38364
38365
38366 if test "$ol_enable_monitor" != no ; then
38367         BUILD_SLAPD=yes
38368         BUILD_MONITOR=$ol_enable_monitor
38369         if test "$ol_enable_monitor" = mod ; then
38370                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38371                 MFLAG=SLAPD_MOD_DYNAMIC
38372         else
38373                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38374                 MFLAG=SLAPD_MOD_STATIC
38375         fi
38376
38377 cat >>confdefs.h <<_ACEOF
38378 #define SLAPD_MONITOR $MFLAG
38379 _ACEOF
38380
38381 fi
38382
38383 if test "$ol_enable_bdb" != no ; then
38384         BUILD_SLAPD=yes
38385         BUILD_BDB=$ol_enable_bdb
38386         if test "$ol_enable_bdb" = mod ; then
38387                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38388                 MFLAG=SLAPD_MOD_DYNAMIC
38389         else
38390                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38391                 MFLAG=SLAPD_MOD_STATIC
38392         fi
38393
38394 cat >>confdefs.h <<_ACEOF
38395 #define SLAPD_BDB $MFLAG
38396 _ACEOF
38397
38398 fi
38399
38400 if test "$ol_enable_dnssrv" != no ; then
38401         BUILD_SLAPD=yes
38402         BUILD_DNSSRV=$ol_enable_dnssrv
38403         if test "$ol_enable_dnssrv" = mod ; then
38404                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38405                 MFLAG=SLAPD_MOD_DYNAMIC
38406         else
38407                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38408                 MFLAG=SLAPD_MOD_STATIC
38409         fi
38410
38411 cat >>confdefs.h <<_ACEOF
38412 #define SLAPD_DNSSRV $MFLAG
38413 _ACEOF
38414
38415 fi
38416
38417 if test "$ol_enable_hdb" != no ; then
38418         BUILD_SLAPD=yes
38419         BUILD_HDB=$ol_enable_hdb
38420         if test "$ol_enable_hdb" = mod ; then
38421                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38422                 MFLAG=SLAPD_MOD_DYNAMIC
38423         else
38424                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38425                 MFLAG=SLAPD_MOD_STATIC
38426         fi
38427
38428 cat >>confdefs.h <<_ACEOF
38429 #define SLAPD_HDB $MFLAG
38430 _ACEOF
38431
38432 fi
38433
38434 if test "$ol_enable_ldap" != no ; then
38435         BUILD_SLAPD=yes
38436         BUILD_LDAP=$ol_enable_ldap
38437         if test "$ol_enable_ldap" = mod ; then
38438                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38439                 MFLAG=SLAPD_MOD_DYNAMIC
38440         else
38441                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38442                 MFLAG=SLAPD_MOD_STATIC
38443         fi
38444
38445 cat >>confdefs.h <<_ACEOF
38446 #define SLAPD_LDAP $MFLAG
38447 _ACEOF
38448
38449 fi
38450
38451 if test "$ol_enable_meta" != no ; then
38452         BUILD_SLAPD=yes
38453         BUILD_META=$ol_enable_meta
38454         BUILD_REWRITE=yes
38455         if test "$ol_enable_meta" = mod ; then
38456                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38457                 MFLAG=SLAPD_MOD_DYNAMIC
38458         else
38459                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38460                 MFLAG=SLAPD_MOD_STATIC
38461         fi
38462
38463 cat >>confdefs.h <<_ACEOF
38464 #define SLAPD_META $MFLAG
38465 _ACEOF
38466
38467 fi
38468
38469 if test "$ol_enable_ndb" != no ; then
38470         BUILD_SLAPD=yes
38471         BUILD_NDB=$ol_enable_ndb
38472         if test "$ol_enable_ndb" = mod ; then
38473                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38474                 MFLAG=SLAPD_MOD_DYNAMIC
38475         else
38476                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38477                 MFLAG=SLAPD_MOD_STATIC
38478         fi
38479
38480 cat >>confdefs.h <<_ACEOF
38481 #define SLAPD_NDB $MFLAG
38482 _ACEOF
38483
38484 fi
38485
38486 if test "$ol_enable_null" != no ; then
38487         BUILD_SLAPD=yes
38488         BUILD_NULL=$ol_enable_null
38489         if test "$ol_enable_null" = mod ; then
38490                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38491                 MFLAG=SLAPD_MOD_DYNAMIC
38492         else
38493                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38494                 MFLAG=SLAPD_MOD_STATIC
38495         fi
38496
38497 cat >>confdefs.h <<_ACEOF
38498 #define SLAPD_NULL $MFLAG
38499 _ACEOF
38500
38501 fi
38502
38503 if test "$ol_enable_passwd" != no ; then
38504         BUILD_SLAPD=yes
38505         BUILD_PASSWD=$ol_enable_passwd
38506         if test "$ol_enable_passwd" = mod ; then
38507                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38508                 MFLAG=SLAPD_MOD_DYNAMIC
38509         else
38510                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38511                 MFLAG=SLAPD_MOD_STATIC
38512         fi
38513
38514 cat >>confdefs.h <<_ACEOF
38515 #define SLAPD_PASSWD $MFLAG
38516 _ACEOF
38517
38518 fi
38519
38520 if test "$ol_link_perl" != no ; then
38521         BUILD_SLAPD=yes
38522         BUILD_PERL=$ol_enable_perl
38523         if test "$ol_enable_perl" = mod ; then
38524                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38525                 MFLAG=SLAPD_MOD_DYNAMIC
38526         else
38527                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38528                 MFLAG=SLAPD_MOD_STATIC
38529         fi
38530
38531 cat >>confdefs.h <<_ACEOF
38532 #define SLAPD_PERL $MFLAG
38533 _ACEOF
38534
38535 fi
38536
38537 if test "$ol_enable_relay" != no ; then
38538         BUILD_SLAPD=yes
38539         BUILD_RELAY=$ol_enable_relay
38540         if test "$ol_enable_relay" = mod ; then
38541                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38542                 MFLAG=SLAPD_MOD_DYNAMIC
38543         else
38544                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38545                 MFLAG=SLAPD_MOD_STATIC
38546         fi
38547
38548 cat >>confdefs.h <<_ACEOF
38549 #define SLAPD_RELAY $MFLAG
38550 _ACEOF
38551
38552 fi
38553
38554 if test "$ol_enable_shell" != no ; then
38555         if test "$ol_link_threads" != no ; then
38556                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38557 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38558         fi
38559         BUILD_SLAPD=yes
38560         BUILD_SHELL=$ol_enable_shell
38561         if test "$ol_enable_shell" = mod ; then
38562                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38563                 MFLAG=SLAPD_MOD_DYNAMIC
38564         else
38565                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38566                 MFLAG=SLAPD_MOD_STATIC
38567         fi
38568
38569 cat >>confdefs.h <<_ACEOF
38570 #define SLAPD_SHELL $MFLAG
38571 _ACEOF
38572
38573 fi
38574
38575 if test "$ol_enable_sock" != no ; then
38576         BUILD_SLAPD=yes
38577         BUILD_SOCK=$ol_enable_sock
38578         if test "$ol_enable_sock" = mod ; then
38579                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38580                 MFLAG=SLAPD_MOD_DYNAMIC
38581         else
38582                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38583                 MFLAG=SLAPD_MOD_STATIC
38584         fi
38585
38586 cat >>confdefs.h <<_ACEOF
38587 #define SLAPD_SOCK $MFLAG
38588 _ACEOF
38589
38590 fi
38591
38592 if test "$ol_link_sql" != no ; then
38593         BUILD_SLAPD=yes
38594         BUILD_SQL=$ol_enable_sql
38595         if test "$ol_enable_sql" = mod; then
38596                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38597                 MFLAG=SLAPD_MOD_DYNAMIC
38598         else
38599                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38600                 MFLAG=SLAPD_MOD_STATIC
38601         fi
38602
38603 cat >>confdefs.h <<_ACEOF
38604 #define SLAPD_SQL $MFLAG
38605 _ACEOF
38606
38607 fi
38608
38609 if test "$ol_enable_accesslog" != no ; then
38610         BUILD_ACCESSLOG=$ol_enable_accesslog
38611         if test "$ol_enable_accesslog" = mod ; then
38612                 MFLAG=SLAPD_MOD_DYNAMIC
38613                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38614         else
38615                 MFLAG=SLAPD_MOD_STATIC
38616                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38617         fi
38618
38619 cat >>confdefs.h <<_ACEOF
38620 #define SLAPD_OVER_ACCESSLOG $MFLAG
38621 _ACEOF
38622
38623 fi
38624
38625 if test "$ol_enable_auditlog" != no ; then
38626         BUILD_AUDITLOG=$ol_enable_auditlog
38627         if test "$ol_enable_auditlog" = mod ; then
38628                 MFLAG=SLAPD_MOD_DYNAMIC
38629                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38630         else
38631                 MFLAG=SLAPD_MOD_STATIC
38632                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38633         fi
38634
38635 cat >>confdefs.h <<_ACEOF
38636 #define SLAPD_OVER_AUDITLOG $MFLAG
38637 _ACEOF
38638
38639 fi
38640
38641 if test "$ol_enable_collect" != no ; then
38642         BUILD_COLLECT=$ol_enable_collect
38643         if test "$ol_enable_collect" = mod ; then
38644                 MFLAG=SLAPD_MOD_DYNAMIC
38645                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38646         else
38647                 MFLAG=SLAPD_MOD_STATIC
38648                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38649         fi
38650
38651 cat >>confdefs.h <<_ACEOF
38652 #define SLAPD_OVER_COLLECT $MFLAG
38653 _ACEOF
38654
38655 fi
38656
38657 if test "$ol_enable_constraint" != no ; then
38658         BUILD_CONSTRAINT=$ol_enable_constraint
38659         if test "$ol_enable_constraint" = mod ; then
38660                 MFLAG=SLAPD_MOD_DYNAMIC
38661                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38662         else
38663                 MFLAG=SLAPD_MOD_STATIC
38664                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38665         fi
38666
38667 cat >>confdefs.h <<_ACEOF
38668 #define SLAPD_OVER_CONSTRAINT $MFLAG
38669 _ACEOF
38670
38671 fi
38672
38673 if test "$ol_enable_dds" != no ; then
38674         BUILD_DDS=$ol_enable_dds
38675         if test "$ol_enable_dds" = mod ; then
38676                 MFLAG=SLAPD_MOD_DYNAMIC
38677                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38678         else
38679                 MFLAG=SLAPD_MOD_STATIC
38680                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38681         fi
38682
38683 cat >>confdefs.h <<_ACEOF
38684 #define SLAPD_OVER_DDS $MFLAG
38685 _ACEOF
38686
38687 fi
38688
38689 if test "$ol_enable_dyngroup" != no ; then
38690         BUILD_DYNGROUP=$ol_enable_dyngroup
38691         if test "$ol_enable_dyngroup" = mod ; then
38692                 MFLAG=SLAPD_MOD_DYNAMIC
38693                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38694         else
38695                 MFLAG=SLAPD_MOD_STATIC
38696                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38697         fi
38698
38699 cat >>confdefs.h <<_ACEOF
38700 #define SLAPD_OVER_DYNGROUP $MFLAG
38701 _ACEOF
38702
38703 fi
38704
38705 if test "$ol_enable_dynlist" != no ; then
38706         BUILD_DYNLIST=$ol_enable_dynlist
38707         if test "$ol_enable_dynlist" = mod ; then
38708                 MFLAG=SLAPD_MOD_DYNAMIC
38709                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38710         else
38711                 MFLAG=SLAPD_MOD_STATIC
38712                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38713         fi
38714
38715 cat >>confdefs.h <<_ACEOF
38716 #define SLAPD_OVER_DYNLIST $MFLAG
38717 _ACEOF
38718
38719 fi
38720
38721 if test "$ol_enable_memberof" != no ; then
38722         BUILD_MEMBEROF=$ol_enable_memberof
38723         if test "$ol_enable_memberof" = mod ; then
38724                 MFLAG=SLAPD_MOD_DYNAMIC
38725                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38726         else
38727                 MFLAG=SLAPD_MOD_STATIC
38728                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38729         fi
38730
38731 cat >>confdefs.h <<_ACEOF
38732 #define SLAPD_OVER_MEMBEROF $MFLAG
38733 _ACEOF
38734
38735 fi
38736
38737 if test "$ol_enable_ppolicy" != no ; then
38738         BUILD_PPOLICY=$ol_enable_ppolicy
38739         if test "$ol_enable_ppolicy" = mod ; then
38740                 MFLAG=SLAPD_MOD_DYNAMIC
38741                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38742         else
38743                 MFLAG=SLAPD_MOD_STATIC
38744                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38745         fi
38746
38747 cat >>confdefs.h <<_ACEOF
38748 #define SLAPD_OVER_PPOLICY $MFLAG
38749 _ACEOF
38750
38751 fi
38752
38753 if test "$ol_enable_proxycache" != no ; then
38754         BUILD_PROXYCACHE=$ol_enable_proxycache
38755         if test "$ol_enable_proxycache" = mod ; then
38756                 MFLAG=SLAPD_MOD_DYNAMIC
38757                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38758         else
38759                 MFLAG=SLAPD_MOD_STATIC
38760                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38761         fi
38762
38763 cat >>confdefs.h <<_ACEOF
38764 #define SLAPD_OVER_PROXYCACHE $MFLAG
38765 _ACEOF
38766
38767 fi
38768
38769 if test "$ol_enable_refint" != no ; then
38770         BUILD_REFINT=$ol_enable_refint
38771         if test "$ol_enable_refint" = mod ; then
38772                 MFLAG=SLAPD_MOD_DYNAMIC
38773                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38774         else
38775                 MFLAG=SLAPD_MOD_STATIC
38776                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38777         fi
38778
38779 cat >>confdefs.h <<_ACEOF
38780 #define SLAPD_OVER_REFINT $MFLAG
38781 _ACEOF
38782
38783 fi
38784
38785 if test "$ol_enable_retcode" != no ; then
38786         BUILD_RETCODE=$ol_enable_retcode
38787         if test "$ol_enable_retcode" = mod ; then
38788                 MFLAG=SLAPD_MOD_DYNAMIC
38789                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38790         else
38791                 MFLAG=SLAPD_MOD_STATIC
38792                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38793         fi
38794
38795 cat >>confdefs.h <<_ACEOF
38796 #define SLAPD_OVER_RETCODE $MFLAG
38797 _ACEOF
38798
38799 fi
38800
38801 if test "$ol_enable_rwm" != no ; then
38802         BUILD_REWRITE=yes
38803         BUILD_RWM=$ol_enable_rwm
38804         if test "$ol_enable_rwm" = mod ; then
38805                 MFLAG=SLAPD_MOD_DYNAMIC
38806                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38807         else
38808                 MFLAG=SLAPD_MOD_STATIC
38809                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38810         fi
38811
38812 cat >>confdefs.h <<_ACEOF
38813 #define SLAPD_OVER_RWM $MFLAG
38814 _ACEOF
38815
38816 fi
38817
38818 if test "$ol_enable_seqmod" != no ; then
38819         BUILD_SEQMOD=$ol_enable_seqmod
38820         if test "$ol_enable_seqmod" = mod ; then
38821                 MFLAG=SLAPD_MOD_DYNAMIC
38822                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38823         else
38824                 MFLAG=SLAPD_MOD_STATIC
38825                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38826         fi
38827
38828 cat >>confdefs.h <<_ACEOF
38829 #define SLAPD_OVER_SEQMOD $MFLAG
38830 _ACEOF
38831
38832 fi
38833
38834 if test "$ol_enable_syncprov" != no ; then
38835         BUILD_SYNCPROV=$ol_enable_syncprov
38836         if test "$ol_enable_syncprov" = mod ; then
38837                 MFLAG=SLAPD_MOD_DYNAMIC
38838                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38839         else
38840                 MFLAG=SLAPD_MOD_STATIC
38841                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38842         fi
38843
38844 cat >>confdefs.h <<_ACEOF
38845 #define SLAPD_OVER_SYNCPROV $MFLAG
38846 _ACEOF
38847
38848 fi
38849
38850 if test "$ol_enable_translucent" != no ; then
38851         BUILD_TRANSLUCENT=$ol_enable_translucent
38852         if test "$ol_enable_translucent" = mod ; then
38853                 MFLAG=SLAPD_MOD_DYNAMIC
38854                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38855         else
38856                 MFLAG=SLAPD_MOD_STATIC
38857                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38858         fi
38859
38860 cat >>confdefs.h <<_ACEOF
38861 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38862 _ACEOF
38863
38864 fi
38865
38866 if test "$ol_enable_unique" != no ; then
38867         BUILD_UNIQUE=$ol_enable_unique
38868         if test "$ol_enable_unique" = mod ; then
38869                 MFLAG=SLAPD_MOD_DYNAMIC
38870                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38871         else
38872                 MFLAG=SLAPD_MOD_STATIC
38873                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38874         fi
38875
38876 cat >>confdefs.h <<_ACEOF
38877 #define SLAPD_OVER_UNIQUE $MFLAG
38878 _ACEOF
38879
38880 fi
38881
38882 if test "$ol_enable_valsort" != no ; then
38883         BUILD_VALSORT=$ol_enable_valsort
38884         if test "$ol_enable_valsort" = mod ; then
38885                 MFLAG=SLAPD_MOD_DYNAMIC
38886                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38887         else
38888                 MFLAG=SLAPD_MOD_STATIC
38889                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38890         fi
38891
38892 cat >>confdefs.h <<_ACEOF
38893 #define SLAPD_OVER_VALSORT $MFLAG
38894 _ACEOF
38895
38896 fi
38897
38898 if test "$ol_enable_rewrite" != no ; then
38899
38900 cat >>confdefs.h <<\_ACEOF
38901 #define ENABLE_REWRITE 1
38902 _ACEOF
38903
38904         BUILD_REWRITE=yes
38905 fi
38906
38907 if test "$ol_enable_slapi" != no ; then
38908
38909 cat >>confdefs.h <<\_ACEOF
38910 #define ENABLE_SLAPI 1
38911 _ACEOF
38912
38913         BUILD_SLAPI=yes
38914         SLAPD_SLAPI_DEPEND=libslapi.a
38915 fi
38916
38917
38918
38919 if test "$ac_cv_mingw32" = yes ; then
38920         PLAT=NT
38921         SLAPD_MODULES_LDFLAGS=
38922 else
38923         PLAT=UNIX
38924 fi
38925
38926
38927
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950
38951
38952
38953
38954
38955
38956
38957
38958
38959
38960
38961
38962
38963
38964
38965
38966
38967
38968
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015 # Check whether --with-xxinstall or --without-xxinstall was given.
39016 if test "${with_xxinstall+set}" = set; then
39017   withval="$with_xxinstall"
39018
39019 fi;
39020
39021
39022                                                                                                                                                                                                                                                                                                                                                                                                                 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-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/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-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
39023
39024
39025           ac_config_commands="$ac_config_commands default"
39026
39027
39028
39029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39030 # Let make expand exec_prefix.
39031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39032
39033 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39034 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39035 # trailing colons and then remove the whole line if VPATH becomes empty
39036 # (actually we leave an empty line to preserve line numbers).
39037 if test "x$srcdir" = x.; then
39038   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39039 s/:*\$(srcdir):*/:/;
39040 s/:*\${srcdir}:*/:/;
39041 s/:*@srcdir@:*/:/;
39042 s/^\([^=]*=[     ]*\):*/\1/;
39043 s/:*$//;
39044 s/^[^=]*=[       ]*$//;
39045 }'
39046 fi
39047
39048 DEFS=-DHAVE_CONFIG_H
39049
39050 ac_libobjs=
39051 ac_ltlibobjs=
39052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39053   # 1. Remove the extension, and $U if already installed.
39054   ac_i=`echo "$ac_i" |
39055          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39056   # 2. Add them.
39057   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39058   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39059 done
39060 LIBOBJS=$ac_libobjs
39061
39062 LTLIBOBJS=$ac_ltlibobjs
39063
39064
39065 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39066   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39067 Usually this means the macro was only invoked conditionally." >&5
39068 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39069 Usually this means the macro was only invoked conditionally." >&2;}
39070    { (exit 1); exit 1; }; }
39071 fi
39072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39073   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39074 Usually this means the macro was only invoked conditionally." >&5
39075 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39076 Usually this means the macro was only invoked conditionally." >&2;}
39077    { (exit 1); exit 1; }; }
39078 fi
39079 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39080   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39081 Usually this means the macro was only invoked conditionally." >&5
39082 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39083 Usually this means the macro was only invoked conditionally." >&2;}
39084    { (exit 1); exit 1; }; }
39085 fi
39086
39087 : ${CONFIG_STATUS=./config.status}
39088 ac_clean_files_save=$ac_clean_files
39089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39090 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39091 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39092 cat >$CONFIG_STATUS <<_ACEOF
39093 #! $SHELL
39094 # Generated by $as_me.
39095 # Run this file to recreate the current configuration.
39096 # Compiler output produced by configure, useful for debugging
39097 # configure, is in config.log if it exists.
39098
39099 debug=false
39100 ac_cs_recheck=false
39101 ac_cs_silent=false
39102 SHELL=\${CONFIG_SHELL-$SHELL}
39103 _ACEOF
39104
39105 cat >>$CONFIG_STATUS <<\_ACEOF
39106 ## --------------------- ##
39107 ## M4sh Initialization.  ##
39108 ## --------------------- ##
39109
39110 # Be Bourne compatible
39111 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39112   emulate sh
39113   NULLCMD=:
39114   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39115   # is contrary to our usage.  Disable this feature.
39116   alias -g '${1+"$@"}'='"$@"'
39117 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39118   set -o posix
39119 fi
39120 DUALCASE=1; export DUALCASE # for MKS sh
39121
39122 # Support unset when possible.
39123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39124   as_unset=unset
39125 else
39126   as_unset=false
39127 fi
39128
39129
39130 # Work around bugs in pre-3.0 UWIN ksh.
39131 $as_unset ENV MAIL MAILPATH
39132 PS1='$ '
39133 PS2='> '
39134 PS4='+ '
39135
39136 # NLS nuisances.
39137 for as_var in \
39138   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39139   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39140   LC_TELEPHONE LC_TIME
39141 do
39142   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39143     eval $as_var=C; export $as_var
39144   else
39145     $as_unset $as_var
39146   fi
39147 done
39148
39149 # Required to use basename.
39150 if expr a : '\(a\)' >/dev/null 2>&1; then
39151   as_expr=expr
39152 else
39153   as_expr=false
39154 fi
39155
39156 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39157   as_basename=basename
39158 else
39159   as_basename=false
39160 fi
39161
39162
39163 # Name of the executable.
39164 as_me=`$as_basename "$0" ||
39165 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39166          X"$0" : 'X\(//\)$' \| \
39167          X"$0" : 'X\(/\)$' \| \
39168          .     : '\(.\)' 2>/dev/null ||
39169 echo X/"$0" |
39170     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39171           /^X\/\(\/\/\)$/{ s//\1/; q; }
39172           /^X\/\(\/\).*/{ s//\1/; q; }
39173           s/.*/./; q'`
39174
39175
39176 # PATH needs CR, and LINENO needs CR and PATH.
39177 # Avoid depending upon Character Ranges.
39178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39181 as_cr_digits='0123456789'
39182 as_cr_alnum=$as_cr_Letters$as_cr_digits
39183
39184 # The user is always right.
39185 if test "${PATH_SEPARATOR+set}" != set; then
39186   echo "#! /bin/sh" >conf$$.sh
39187   echo  "exit 0"   >>conf$$.sh
39188   chmod +x conf$$.sh
39189   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39190     PATH_SEPARATOR=';'
39191   else
39192     PATH_SEPARATOR=:
39193   fi
39194   rm -f conf$$.sh
39195 fi
39196
39197
39198   as_lineno_1=$LINENO
39199   as_lineno_2=$LINENO
39200   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39201   test "x$as_lineno_1" != "x$as_lineno_2" &&
39202   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
39203   # Find who we are.  Look in the path if we contain no path at all
39204   # relative or not.
39205   case $0 in
39206     *[\\/]* ) as_myself=$0 ;;
39207     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39208 for as_dir in $PATH
39209 do
39210   IFS=$as_save_IFS
39211   test -z "$as_dir" && as_dir=.
39212   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39213 done
39214
39215        ;;
39216   esac
39217   # We did not find ourselves, most probably we were run as `sh COMMAND'
39218   # in which case we are not to be found in the path.
39219   if test "x$as_myself" = x; then
39220     as_myself=$0
39221   fi
39222   if test ! -f "$as_myself"; then
39223     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39224 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39225    { (exit 1); exit 1; }; }
39226   fi
39227   case $CONFIG_SHELL in
39228   '')
39229     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39230 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39231 do
39232   IFS=$as_save_IFS
39233   test -z "$as_dir" && as_dir=.
39234   for as_base in sh bash ksh sh5; do
39235          case $as_dir in
39236          /*)
39237            if ("$as_dir/$as_base" -c '
39238   as_lineno_1=$LINENO
39239   as_lineno_2=$LINENO
39240   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39241   test "x$as_lineno_1" != "x$as_lineno_2" &&
39242   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
39243              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39244              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39245              CONFIG_SHELL=$as_dir/$as_base
39246              export CONFIG_SHELL
39247              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39248            fi;;
39249          esac
39250        done
39251 done
39252 ;;
39253   esac
39254
39255   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39256   # uniformly replaced by the line number.  The first 'sed' inserts a
39257   # line-number line before each line; the second 'sed' does the real
39258   # work.  The second script uses 'N' to pair each line-number line
39259   # with the numbered line, and appends trailing '-' during
39260   # substitution so that $LINENO is not a special case at line end.
39261   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39262   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
39263   sed '=' <$as_myself |
39264     sed '
39265       N
39266       s,$,-,
39267       : loop
39268       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39269       t loop
39270       s,-$,,
39271       s,^['$as_cr_digits']*\n,,
39272     ' >$as_me.lineno &&
39273   chmod +x $as_me.lineno ||
39274     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39275 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39276    { (exit 1); exit 1; }; }
39277
39278   # Don't try to exec as it changes $[0], causing all sort of problems
39279   # (the dirname of $[0] is not the place where we might find the
39280   # original and so on.  Autoconf is especially sensible to this).
39281   . ./$as_me.lineno
39282   # Exit status is that of the last command.
39283   exit
39284 }
39285
39286
39287 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39288   *c*,-n*) ECHO_N= ECHO_C='
39289 ' ECHO_T='      ' ;;
39290   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39291   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
39292 esac
39293
39294 if expr a : '\(a\)' >/dev/null 2>&1; then
39295   as_expr=expr
39296 else
39297   as_expr=false
39298 fi
39299
39300 rm -f conf$$ conf$$.exe conf$$.file
39301 echo >conf$$.file
39302 if ln -s conf$$.file conf$$ 2>/dev/null; then
39303   # We could just check for DJGPP; but this test a) works b) is more generic
39304   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39305   if test -f conf$$.exe; then
39306     # Don't use ln at all; we don't have any links
39307     as_ln_s='cp -p'
39308   else
39309     as_ln_s='ln -s'
39310   fi
39311 elif ln conf$$.file conf$$ 2>/dev/null; then
39312   as_ln_s=ln
39313 else
39314   as_ln_s='cp -p'
39315 fi
39316 rm -f conf$$ conf$$.exe conf$$.file
39317
39318 if mkdir -p . 2>/dev/null; then
39319   as_mkdir_p=:
39320 else
39321   test -d ./-p && rmdir ./-p
39322   as_mkdir_p=false
39323 fi
39324
39325 as_executable_p="test -f"
39326
39327 # Sed expression to map a string onto a valid CPP name.
39328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39329
39330 # Sed expression to map a string onto a valid variable name.
39331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39332
39333
39334 # IFS
39335 # We need space, tab and new line, in precisely that order.
39336 as_nl='
39337 '
39338 IFS="   $as_nl"
39339
39340 # CDPATH.
39341 $as_unset CDPATH
39342
39343 exec 6>&1
39344
39345 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39346 # report actual input values of CONFIG_FILES etc. instead of their
39347 # values after options handling.  Logging --version etc. is OK.
39348 exec 5>>config.log
39349 {
39350   echo
39351   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39352 ## Running $as_me. ##
39353 _ASBOX
39354 } >&5
39355 cat >&5 <<_CSEOF
39356
39357 This file was extended by $as_me, which was
39358 generated by GNU Autoconf 2.59.  Invocation command line was
39359
39360   CONFIG_FILES    = $CONFIG_FILES
39361   CONFIG_HEADERS  = $CONFIG_HEADERS
39362   CONFIG_LINKS    = $CONFIG_LINKS
39363   CONFIG_COMMANDS = $CONFIG_COMMANDS
39364   $ $0 $@
39365
39366 _CSEOF
39367 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39368 echo >&5
39369 _ACEOF
39370
39371 # Files that config.status was made for.
39372 if test -n "$ac_config_files"; then
39373   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39374 fi
39375
39376 if test -n "$ac_config_headers"; then
39377   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39378 fi
39379
39380 if test -n "$ac_config_links"; then
39381   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39382 fi
39383
39384 if test -n "$ac_config_commands"; then
39385   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39386 fi
39387
39388 cat >>$CONFIG_STATUS <<\_ACEOF
39389
39390 ac_cs_usage="\
39391 \`$as_me' instantiates files from templates according to the
39392 current configuration.
39393
39394 Usage: $0 [OPTIONS] [FILE]...
39395
39396   -h, --help       print this help, then exit
39397   -V, --version    print version number, then exit
39398   -q, --quiet      do not print progress messages
39399   -d, --debug      don't remove temporary files
39400       --recheck    update $as_me by reconfiguring in the same conditions
39401   --file=FILE[:TEMPLATE]
39402                    instantiate the configuration file FILE
39403   --header=FILE[:TEMPLATE]
39404                    instantiate the configuration header FILE
39405
39406 Configuration files:
39407 $config_files
39408
39409 Configuration headers:
39410 $config_headers
39411
39412 Configuration commands:
39413 $config_commands
39414
39415 Report bugs to <bug-autoconf@gnu.org>."
39416 _ACEOF
39417
39418 cat >>$CONFIG_STATUS <<_ACEOF
39419 ac_cs_version="\\
39420 config.status
39421 configured by $0, generated by GNU Autoconf 2.59,
39422   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39423
39424 Copyright (C) 2003 Free Software Foundation, Inc.
39425 This config.status script is free software; the Free Software Foundation
39426 gives unlimited permission to copy, distribute and modify it."
39427 srcdir=$srcdir
39428 INSTALL="$INSTALL"
39429 _ACEOF
39430
39431 cat >>$CONFIG_STATUS <<\_ACEOF
39432 # If no file are specified by the user, then we need to provide default
39433 # value.  By we need to know if files were specified by the user.
39434 ac_need_defaults=:
39435 while test $# != 0
39436 do
39437   case $1 in
39438   --*=*)
39439     ac_option=`expr "x$1" : 'x\([^=]*\)='`
39440     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39441     ac_shift=:
39442     ;;
39443   -*)
39444     ac_option=$1
39445     ac_optarg=$2
39446     ac_shift=shift
39447     ;;
39448   *) # This is not an option, so the user has probably given explicit
39449      # arguments.
39450      ac_option=$1
39451      ac_need_defaults=false;;
39452   esac
39453
39454   case $ac_option in
39455   # Handling of the options.
39456 _ACEOF
39457 cat >>$CONFIG_STATUS <<\_ACEOF
39458   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39459     ac_cs_recheck=: ;;
39460   --version | --vers* | -V )
39461     echo "$ac_cs_version"; exit 0 ;;
39462   --he | --h)
39463     # Conflict between --help and --header
39464     { { echo "$as_me:$LINENO: error: ambiguous option: $1
39465 Try \`$0 --help' for more information." >&5
39466 echo "$as_me: error: ambiguous option: $1
39467 Try \`$0 --help' for more information." >&2;}
39468    { (exit 1); exit 1; }; };;
39469   --help | --hel | -h )
39470     echo "$ac_cs_usage"; exit 0 ;;
39471   --debug | --d* | -d )
39472     debug=: ;;
39473   --file | --fil | --fi | --f )
39474     $ac_shift
39475     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39476     ac_need_defaults=false;;
39477   --header | --heade | --head | --hea )
39478     $ac_shift
39479     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39480     ac_need_defaults=false;;
39481   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39482   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39483     ac_cs_silent=: ;;
39484
39485   # This is an error.
39486   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39487 Try \`$0 --help' for more information." >&5
39488 echo "$as_me: error: unrecognized option: $1
39489 Try \`$0 --help' for more information." >&2;}
39490    { (exit 1); exit 1; }; } ;;
39491
39492   *) ac_config_targets="$ac_config_targets $1" ;;
39493
39494   esac
39495   shift
39496 done
39497
39498 ac_configure_extra_args=
39499
39500 if $ac_cs_silent; then
39501   exec 6>/dev/null
39502   ac_configure_extra_args="$ac_configure_extra_args --silent"
39503 fi
39504
39505 _ACEOF
39506 cat >>$CONFIG_STATUS <<_ACEOF
39507 if \$ac_cs_recheck; then
39508   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39509   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39510 fi
39511
39512 _ACEOF
39513
39514 cat >>$CONFIG_STATUS <<_ACEOF
39515 #
39516 # INIT-COMMANDS section.
39517 #
39518
39519 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39520
39521 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39522 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39523
39524
39525 _ACEOF
39526
39527
39528
39529 cat >>$CONFIG_STATUS <<\_ACEOF
39530 for ac_config_target in $ac_config_targets
39531 do
39532   case "$ac_config_target" in
39533   # Handling of arguments.
39534   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39535   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39536   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39537   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39538   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39539   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39540   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39541   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39542   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39543   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39544   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39545   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39546   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39547   "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" ;;
39548   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39549   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39550   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39551   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39552   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39553   "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" ;;
39554   "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" ;;
39555   "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" ;;
39556   "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" ;;
39557   "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" ;;
39558   "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" ;;
39559   "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" ;;
39560   "servers/slapd/back-ndb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
39561   "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" ;;
39562   "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" ;;
39563   "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" ;;
39564   "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" ;;
39565   "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" ;;
39566   "servers/slapd/back-sock/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
39567   "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" ;;
39568   "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" ;;
39569   "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" ;;
39570   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39571   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39572   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39573   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39574   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39575   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39576   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39577   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39578   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39579   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39580 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39581    { (exit 1); exit 1; }; };;
39582   esac
39583 done
39584
39585 # If the user did not use the arguments to specify the items to instantiate,
39586 # then the envvar interface is used.  Set only those that are not.
39587 # We use the long form for the default assignment because of an extremely
39588 # bizarre bug on SunOS 4.1.3.
39589 if $ac_need_defaults; then
39590   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39591   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39592   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39593 fi
39594
39595 # Have a temporary directory for convenience.  Make it in the build tree
39596 # simply because there is no reason to put it here, and in addition,
39597 # creating and moving files from /tmp can sometimes cause problems.
39598 # Create a temporary directory, and hook for its removal unless debugging.
39599 $debug ||
39600 {
39601   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39602   trap '{ (exit 1); exit 1; }' 1 2 13 15
39603 }
39604
39605 # Create a (secure) tmp directory for tmp files.
39606
39607 {
39608   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39609   test -n "$tmp" && test -d "$tmp"
39610 }  ||
39611 {
39612   tmp=./confstat$$-$RANDOM
39613   (umask 077 && mkdir $tmp)
39614 } ||
39615 {
39616    echo "$me: cannot create a temporary directory in ." >&2
39617    { (exit 1); exit 1; }
39618 }
39619
39620 _ACEOF
39621
39622 cat >>$CONFIG_STATUS <<_ACEOF
39623
39624 #
39625 # CONFIG_FILES section.
39626 #
39627
39628 # No need to generate the scripts if there are no CONFIG_FILES.
39629 # This happens for instance when ./config.status config.h
39630 if test -n "\$CONFIG_FILES"; then
39631   # Protect against being on the right side of a sed subst in config.status.
39632   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39633    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39634 s,@SHELL@,$SHELL,;t t
39635 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39636 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39637 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39638 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39639 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39640 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39641 s,@exec_prefix@,$exec_prefix,;t t
39642 s,@prefix@,$prefix,;t t
39643 s,@program_transform_name@,$program_transform_name,;t t
39644 s,@bindir@,$bindir,;t t
39645 s,@sbindir@,$sbindir,;t t
39646 s,@libexecdir@,$libexecdir,;t t
39647 s,@datadir@,$datadir,;t t
39648 s,@sysconfdir@,$sysconfdir,;t t
39649 s,@sharedstatedir@,$sharedstatedir,;t t
39650 s,@localstatedir@,$localstatedir,;t t
39651 s,@libdir@,$libdir,;t t
39652 s,@includedir@,$includedir,;t t
39653 s,@oldincludedir@,$oldincludedir,;t t
39654 s,@infodir@,$infodir,;t t
39655 s,@mandir@,$mandir,;t t
39656 s,@build_alias@,$build_alias,;t t
39657 s,@host_alias@,$host_alias,;t t
39658 s,@target_alias@,$target_alias,;t t
39659 s,@DEFS@,$DEFS,;t t
39660 s,@ECHO_C@,$ECHO_C,;t t
39661 s,@ECHO_N@,$ECHO_N,;t t
39662 s,@ECHO_T@,$ECHO_T,;t t
39663 s,@LIBS@,$LIBS,;t t
39664 s,@build@,$build,;t t
39665 s,@build_cpu@,$build_cpu,;t t
39666 s,@build_vendor@,$build_vendor,;t t
39667 s,@build_os@,$build_os,;t t
39668 s,@host@,$host,;t t
39669 s,@host_cpu@,$host_cpu,;t t
39670 s,@host_vendor@,$host_vendor,;t t
39671 s,@host_os@,$host_os,;t t
39672 s,@target@,$target,;t t
39673 s,@target_cpu@,$target_cpu,;t t
39674 s,@target_vendor@,$target_vendor,;t t
39675 s,@target_os@,$target_os,;t t
39676 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39677 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39678 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39679 s,@CYGPATH_W@,$CYGPATH_W,;t t
39680 s,@PACKAGE@,$PACKAGE,;t t
39681 s,@VERSION@,$VERSION,;t t
39682 s,@ACLOCAL@,$ACLOCAL,;t t
39683 s,@AUTOCONF@,$AUTOCONF,;t t
39684 s,@AUTOMAKE@,$AUTOMAKE,;t t
39685 s,@AUTOHEADER@,$AUTOHEADER,;t t
39686 s,@MAKEINFO@,$MAKEINFO,;t t
39687 s,@install_sh@,$install_sh,;t t
39688 s,@STRIP@,$STRIP,;t t
39689 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39690 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39691 s,@mkdir_p@,$mkdir_p,;t t
39692 s,@AWK@,$AWK,;t t
39693 s,@SET_MAKE@,$SET_MAKE,;t t
39694 s,@am__leading_dot@,$am__leading_dot,;t t
39695 s,@AMTAR@,$AMTAR,;t t
39696 s,@am__tar@,$am__tar,;t t
39697 s,@am__untar@,$am__untar,;t t
39698 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
39699 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
39700 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
39701 s,@top_builddir@,$top_builddir,;t t
39702 s,@ldap_subdir@,$ldap_subdir,;t t
39703 s,@CC@,$CC,;t t
39704 s,@AR@,$AR,;t t
39705 s,@CFLAGS@,$CFLAGS,;t t
39706 s,@LDFLAGS@,$LDFLAGS,;t t
39707 s,@CPPFLAGS@,$CPPFLAGS,;t t
39708 s,@ac_ct_CC@,$ac_ct_CC,;t t
39709 s,@EXEEXT@,$EXEEXT,;t t
39710 s,@OBJEXT@,$OBJEXT,;t t
39711 s,@DEPDIR@,$DEPDIR,;t t
39712 s,@am__include@,$am__include,;t t
39713 s,@am__quote@,$am__quote,;t t
39714 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39715 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39716 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39717 s,@CCDEPMODE@,$CCDEPMODE,;t t
39718 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39719 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39720 s,@EGREP@,$EGREP,;t t
39721 s,@LN_S@,$LN_S,;t t
39722 s,@ECHO@,$ECHO,;t t
39723 s,@ac_ct_AR@,$ac_ct_AR,;t t
39724 s,@RANLIB@,$RANLIB,;t t
39725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39726 s,@DLLTOOL@,$DLLTOOL,;t t
39727 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
39728 s,@AS@,$AS,;t t
39729 s,@ac_ct_AS@,$ac_ct_AS,;t t
39730 s,@OBJDUMP@,$OBJDUMP,;t t
39731 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
39732 s,@CPP@,$CPP,;t t
39733 s,@LIBTOOL@,$LIBTOOL,;t t
39734 s,@PERLBIN@,$PERLBIN,;t t
39735 s,@OL_MKDEP@,$OL_MKDEP,;t t
39736 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
39737 s,@LTSTATIC@,$LTSTATIC,;t t
39738 s,@MYSQL@,$MYSQL,;t t
39739 s,@LIBOBJS@,$LIBOBJS,;t t
39740 s,@LIBSRCS@,$LIBSRCS,;t t
39741 s,@PLAT@,$PLAT,;t t
39742 s,@WITH_SASL@,$WITH_SASL,;t t
39743 s,@WITH_TLS@,$WITH_TLS,;t t
39744 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
39745 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
39746 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
39747 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
39748 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
39749 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
39750 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
39751 s,@BUILD_BDB@,$BUILD_BDB,;t t
39752 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
39753 s,@BUILD_HDB@,$BUILD_HDB,;t t
39754 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
39755 s,@BUILD_META@,$BUILD_META,;t t
39756 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
39757 s,@BUILD_NDB@,$BUILD_NDB,;t t
39758 s,@BUILD_NULL@,$BUILD_NULL,;t t
39759 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
39760 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
39761 s,@BUILD_PERL@,$BUILD_PERL,;t t
39762 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
39763 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
39764 s,@BUILD_SQL@,$BUILD_SQL,;t t
39765 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
39766 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
39767 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
39768 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
39769 s,@BUILD_DDS@,$BUILD_DDS,;t t
39770 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
39771 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
39772 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
39773 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
39774 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
39775 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
39776 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
39777 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
39778 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
39779 s,@BUILD_RWM@,$BUILD_RWM,;t t
39780 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
39781 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
39782 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
39783 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
39784 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
39785 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
39786 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
39787 s,@BDB_LIBS@,$BDB_LIBS,;t t
39788 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
39789 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
39790 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
39791 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
39792 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
39793 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
39794 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
39795 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
39796 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
39797 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
39798 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
39799 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
39800 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
39801 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
39802 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
39803 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
39804 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
39805 s,@SASL_LIBS@,$SASL_LIBS,;t t
39806 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
39807 s,@TLS_LIBS@,$TLS_LIBS,;t t
39808 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
39809 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
39810 s,@LIBSLAPI@,$LIBSLAPI,;t t
39811 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
39812 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
39813 s,@ICU_LIBS@,$ICU_LIBS,;t t
39814 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
39815 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
39816 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
39817 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
39818 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
39819 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39820 CEOF
39821
39822 _ACEOF
39823
39824   cat >>$CONFIG_STATUS <<\_ACEOF
39825   # Split the substitutions into bite-sized pieces for seds with
39826   # small command number limits, like on Digital OSF/1 and HP-UX.
39827   ac_max_sed_lines=48
39828   ac_sed_frag=1 # Number of current file.
39829   ac_beg=1 # First line for current file.
39830   ac_end=$ac_max_sed_lines # Line after last line for current file.
39831   ac_more_lines=:
39832   ac_sed_cmds=
39833   while $ac_more_lines; do
39834     if test $ac_beg -gt 1; then
39835       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39836     else
39837       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39838     fi
39839     if test ! -s $tmp/subs.frag; then
39840       ac_more_lines=false
39841     else
39842       # The purpose of the label and of the branching condition is to
39843       # speed up the sed processing (if there are no `@' at all, there
39844       # is no need to browse any of the substitutions).
39845       # These are the two extra sed commands mentioned above.
39846       (echo ':t
39847   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39848       if test -z "$ac_sed_cmds"; then
39849         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39850       else
39851         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39852       fi
39853       ac_sed_frag=`expr $ac_sed_frag + 1`
39854       ac_beg=$ac_end
39855       ac_end=`expr $ac_end + $ac_max_sed_lines`
39856     fi
39857   done
39858   if test -z "$ac_sed_cmds"; then
39859     ac_sed_cmds=cat
39860   fi
39861 fi # test -n "$CONFIG_FILES"
39862
39863 _ACEOF
39864 cat >>$CONFIG_STATUS <<\_ACEOF
39865 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39866   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39867   case $ac_file in
39868   - | *:- | *:-:* ) # input from stdin
39869         cat >$tmp/stdin
39870         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39871         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39872   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39873         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39874   * )   ac_file_in=$ac_file.in ;;
39875   esac
39876
39877   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39878   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39880          X"$ac_file" : 'X\(//\)[^/]' \| \
39881          X"$ac_file" : 'X\(//\)$' \| \
39882          X"$ac_file" : 'X\(/\)' \| \
39883          .     : '\(.\)' 2>/dev/null ||
39884 echo X"$ac_file" |
39885     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39886           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39887           /^X\(\/\/\)$/{ s//\1/; q; }
39888           /^X\(\/\).*/{ s//\1/; q; }
39889           s/.*/./; q'`
39890   { if $as_mkdir_p; then
39891     mkdir -p "$ac_dir"
39892   else
39893     as_dir="$ac_dir"
39894     as_dirs=
39895     while test ! -d "$as_dir"; do
39896       as_dirs="$as_dir $as_dirs"
39897       as_dir=`(dirname "$as_dir") 2>/dev/null ||
39898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39899          X"$as_dir" : 'X\(//\)[^/]' \| \
39900          X"$as_dir" : 'X\(//\)$' \| \
39901          X"$as_dir" : 'X\(/\)' \| \
39902          .     : '\(.\)' 2>/dev/null ||
39903 echo X"$as_dir" |
39904     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39905           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39906           /^X\(\/\/\)$/{ s//\1/; q; }
39907           /^X\(\/\).*/{ s//\1/; q; }
39908           s/.*/./; q'`
39909     done
39910     test ! -n "$as_dirs" || mkdir $as_dirs
39911   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39912 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39913    { (exit 1); exit 1; }; }; }
39914
39915   ac_builddir=.
39916
39917 if test "$ac_dir" != .; then
39918   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39919   # A "../" for each directory in $ac_dir_suffix.
39920   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39921 else
39922   ac_dir_suffix= ac_top_builddir=
39923 fi
39924
39925 case $srcdir in
39926   .)  # No --srcdir option.  We are building in place.
39927     ac_srcdir=.
39928     if test -z "$ac_top_builddir"; then
39929        ac_top_srcdir=.
39930     else
39931        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39932     fi ;;
39933   [\\/]* | ?:[\\/]* )  # Absolute path.
39934     ac_srcdir=$srcdir$ac_dir_suffix;
39935     ac_top_srcdir=$srcdir ;;
39936   *) # Relative path.
39937     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39938     ac_top_srcdir=$ac_top_builddir$srcdir ;;
39939 esac
39940
39941 # Do not use `cd foo && pwd` to compute absolute paths, because
39942 # the directories may not exist.
39943 case `pwd` in
39944 .) ac_abs_builddir="$ac_dir";;
39945 *)
39946   case "$ac_dir" in
39947   .) ac_abs_builddir=`pwd`;;
39948   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39949   *) ac_abs_builddir=`pwd`/"$ac_dir";;
39950   esac;;
39951 esac
39952 case $ac_abs_builddir in
39953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39954 *)
39955   case ${ac_top_builddir}. in
39956   .) ac_abs_top_builddir=$ac_abs_builddir;;
39957   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39958   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39959   esac;;
39960 esac
39961 case $ac_abs_builddir in
39962 .) ac_abs_srcdir=$ac_srcdir;;
39963 *)
39964   case $ac_srcdir in
39965   .) ac_abs_srcdir=$ac_abs_builddir;;
39966   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39967   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39968   esac;;
39969 esac
39970 case $ac_abs_builddir in
39971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
39972 *)
39973   case $ac_top_srcdir in
39974   .) ac_abs_top_srcdir=$ac_abs_builddir;;
39975   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39976   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39977   esac;;
39978 esac
39979
39980
39981   case $INSTALL in
39982   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39983   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
39984   esac
39985
39986   if test x"$ac_file" != x-; then
39987     { echo "$as_me:$LINENO: creating $ac_file" >&5
39988 echo "$as_me: creating $ac_file" >&6;}
39989     rm -f "$ac_file"
39990   fi
39991   # Let's still pretend it is `configure' which instantiates (i.e., don't
39992   # use $as_me), people would be surprised to read:
39993   #    /* config.h.  Generated by config.status.  */
39994   if test x"$ac_file" = x-; then
39995     configure_input=
39996   else
39997     configure_input="$ac_file.  "
39998   fi
39999   configure_input=$configure_input"Generated from `echo $ac_file_in |
40000                                      sed 's,.*/,,'` by configure."
40001
40002   # First look for the input files in the build tree, otherwise in the
40003   # src tree.
40004   ac_file_inputs=`IFS=:
40005     for f in $ac_file_in; do
40006       case $f in
40007       -) echo $tmp/stdin ;;
40008       [\\/$]*)
40009          # Absolute (can't be DOS-style, as IFS=:)
40010          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40011 echo "$as_me: error: cannot find input file: $f" >&2;}
40012    { (exit 1); exit 1; }; }
40013          echo "$f";;
40014       *) # Relative
40015          if test -f "$f"; then
40016            # Build tree
40017            echo "$f"
40018          elif test -f "$srcdir/$f"; then
40019            # Source tree
40020            echo "$srcdir/$f"
40021          else
40022            # /dev/null tree
40023            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40024 echo "$as_me: error: cannot find input file: $f" >&2;}
40025    { (exit 1); exit 1; }; }
40026          fi;;
40027       esac
40028     done` || { (exit 1); exit 1; }
40029 _ACEOF
40030 cat >>$CONFIG_STATUS <<_ACEOF
40031   sed "$ac_vpsub
40032 $extrasub
40033 _ACEOF
40034 cat >>$CONFIG_STATUS <<\_ACEOF
40035 :t
40036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40037 s,@configure_input@,$configure_input,;t t
40038 s,@srcdir@,$ac_srcdir,;t t
40039 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40040 s,@top_srcdir@,$ac_top_srcdir,;t t
40041 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40042 s,@builddir@,$ac_builddir,;t t
40043 s,@abs_builddir@,$ac_abs_builddir,;t t
40044 s,@top_builddir@,$ac_top_builddir,;t t
40045 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40046 s,@INSTALL@,$ac_INSTALL,;t t
40047 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40048   rm -f $tmp/stdin
40049   if test x"$ac_file" != x-; then
40050     mv $tmp/out $ac_file
40051   else
40052     cat $tmp/out
40053     rm -f $tmp/out
40054   fi
40055
40056 done
40057 _ACEOF
40058 cat >>$CONFIG_STATUS <<\_ACEOF
40059
40060 #
40061 # CONFIG_HEADER section.
40062 #
40063
40064 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40065 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40066 #
40067 # ac_d sets the value in "#define NAME VALUE" lines.
40068 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
40069 ac_dB='[         ].*$,\1#\2'
40070 ac_dC=' '
40071 ac_dD=',;t'
40072 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40073 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
40074 ac_uB='$,\1#\2define\3'
40075 ac_uC=' '
40076 ac_uD=',;t'
40077
40078 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40079   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40080   case $ac_file in
40081   - | *:- | *:-:* ) # input from stdin
40082         cat >$tmp/stdin
40083         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40084         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40085   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40086         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40087   * )   ac_file_in=$ac_file.in ;;
40088   esac
40089
40090   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40091 echo "$as_me: creating $ac_file" >&6;}
40092
40093   # First look for the input files in the build tree, otherwise in the
40094   # src tree.
40095   ac_file_inputs=`IFS=:
40096     for f in $ac_file_in; do
40097       case $f in
40098       -) echo $tmp/stdin ;;
40099       [\\/$]*)
40100          # Absolute (can't be DOS-style, as IFS=:)
40101          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40102 echo "$as_me: error: cannot find input file: $f" >&2;}
40103    { (exit 1); exit 1; }; }
40104          # Do quote $f, to prevent DOS paths from being IFS'd.
40105          echo "$f";;
40106       *) # Relative
40107          if test -f "$f"; then
40108            # Build tree
40109            echo "$f"
40110          elif test -f "$srcdir/$f"; then
40111            # Source tree
40112            echo "$srcdir/$f"
40113          else
40114            # /dev/null tree
40115            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40116 echo "$as_me: error: cannot find input file: $f" >&2;}
40117    { (exit 1); exit 1; }; }
40118          fi;;
40119       esac
40120     done` || { (exit 1); exit 1; }
40121   # Remove the trailing spaces.
40122   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
40123
40124 _ACEOF
40125
40126 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40127 # `conftest.undefs', that substitutes the proper values into
40128 # config.h.in to produce config.h.  The first handles `#define'
40129 # templates, and the second `#undef' templates.
40130 # And first: Protect against being on the right side of a sed subst in
40131 # config.status.  Protect against being in an unquoted here document
40132 # in config.status.
40133 rm -f conftest.defines conftest.undefs
40134 # Using a here document instead of a string reduces the quoting nightmare.
40135 # Putting comments in sed scripts is not portable.
40136 #
40137 # `end' is used to avoid that the second main sed command (meant for
40138 # 0-ary CPP macros) applies to n-ary macro definitions.
40139 # See the Autoconf documentation for `clear'.
40140 cat >confdef2sed.sed <<\_ACEOF
40141 s/[\\&,]/\\&/g
40142 s,[\\$`],\\&,g
40143 t clear
40144 : clear
40145 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40146 t end
40147 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40148 : end
40149 _ACEOF
40150 # If some macros were called several times there might be several times
40151 # the same #defines, which is useless.  Nevertheless, we may not want to
40152 # sort them, since we want the *last* AC-DEFINE to be honored.
40153 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40154 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40155 rm -f confdef2sed.sed
40156
40157 # This sed command replaces #undef with comments.  This is necessary, for
40158 # example, in the case of _POSIX_SOURCE, which is predefined and required
40159 # on some systems where configure will not decide to define it.
40160 cat >>conftest.undefs <<\_ACEOF
40161 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40162 _ACEOF
40163
40164 # Break up conftest.defines because some shells have a limit on the size
40165 # of here documents, and old seds have small limits too (100 cmds).
40166 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40167 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40168 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40169 echo '  :' >>$CONFIG_STATUS
40170 rm -f conftest.tail
40171 while grep . conftest.defines >/dev/null
40172 do
40173   # Write a limited-size here document to $tmp/defines.sed.
40174   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40175   # Speed up: don't consider the non `#define' lines.
40176   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
40177   # Work around the forget-to-reset-the-flag bug.
40178   echo 't clr' >>$CONFIG_STATUS
40179   echo ': clr' >>$CONFIG_STATUS
40180   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40181   echo 'CEOF
40182   sed -f $tmp/defines.sed $tmp/in >$tmp/out
40183   rm -f $tmp/in
40184   mv $tmp/out $tmp/in
40185 ' >>$CONFIG_STATUS
40186   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40187   rm -f conftest.defines
40188   mv conftest.tail conftest.defines
40189 done
40190 rm -f conftest.defines
40191 echo '  fi # grep' >>$CONFIG_STATUS
40192 echo >>$CONFIG_STATUS
40193
40194 # Break up conftest.undefs because some shells have a limit on the size
40195 # of here documents, and old seds have small limits too (100 cmds).
40196 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
40197 rm -f conftest.tail
40198 while grep . conftest.undefs >/dev/null
40199 do
40200   # Write a limited-size here document to $tmp/undefs.sed.
40201   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40202   # Speed up: don't consider the non `#undef'
40203   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
40204   # Work around the forget-to-reset-the-flag bug.
40205   echo 't clr' >>$CONFIG_STATUS
40206   echo ': clr' >>$CONFIG_STATUS
40207   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40208   echo 'CEOF
40209   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40210   rm -f $tmp/in
40211   mv $tmp/out $tmp/in
40212 ' >>$CONFIG_STATUS
40213   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40214   rm -f conftest.undefs
40215   mv conftest.tail conftest.undefs
40216 done
40217 rm -f conftest.undefs
40218
40219 cat >>$CONFIG_STATUS <<\_ACEOF
40220   # Let's still pretend it is `configure' which instantiates (i.e., don't
40221   # use $as_me), people would be surprised to read:
40222   #    /* config.h.  Generated by config.status.  */
40223   if test x"$ac_file" = x-; then
40224     echo "/* Generated by configure.  */" >$tmp/config.h
40225   else
40226     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40227   fi
40228   cat $tmp/in >>$tmp/config.h
40229   rm -f $tmp/in
40230   if test x"$ac_file" != x-; then
40231     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40232       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40233 echo "$as_me: $ac_file is unchanged" >&6;}
40234     else
40235       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40237          X"$ac_file" : 'X\(//\)[^/]' \| \
40238          X"$ac_file" : 'X\(//\)$' \| \
40239          X"$ac_file" : 'X\(/\)' \| \
40240          .     : '\(.\)' 2>/dev/null ||
40241 echo X"$ac_file" |
40242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40243           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40244           /^X\(\/\/\)$/{ s//\1/; q; }
40245           /^X\(\/\).*/{ s//\1/; q; }
40246           s/.*/./; q'`
40247       { if $as_mkdir_p; then
40248     mkdir -p "$ac_dir"
40249   else
40250     as_dir="$ac_dir"
40251     as_dirs=
40252     while test ! -d "$as_dir"; do
40253       as_dirs="$as_dir $as_dirs"
40254       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40256          X"$as_dir" : 'X\(//\)[^/]' \| \
40257          X"$as_dir" : 'X\(//\)$' \| \
40258          X"$as_dir" : 'X\(/\)' \| \
40259          .     : '\(.\)' 2>/dev/null ||
40260 echo X"$as_dir" |
40261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40262           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40263           /^X\(\/\/\)$/{ s//\1/; q; }
40264           /^X\(\/\).*/{ s//\1/; q; }
40265           s/.*/./; q'`
40266     done
40267     test ! -n "$as_dirs" || mkdir $as_dirs
40268   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40269 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40270    { (exit 1); exit 1; }; }; }
40271
40272       rm -f $ac_file
40273       mv $tmp/config.h $ac_file
40274     fi
40275   else
40276     cat $tmp/config.h
40277     rm -f $tmp/config.h
40278   fi
40279 # Compute $ac_file's index in $config_headers.
40280 _am_stamp_count=1
40281 for _am_header in $config_headers :; do
40282   case $_am_header in
40283     $ac_file | $ac_file:* )
40284       break ;;
40285     * )
40286       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40287   esac
40288 done
40289 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40290 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40291          X$ac_file : 'X\(//\)[^/]' \| \
40292          X$ac_file : 'X\(//\)$' \| \
40293          X$ac_file : 'X\(/\)' \| \
40294          .     : '\(.\)' 2>/dev/null ||
40295 echo X$ac_file |
40296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40297           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40298           /^X\(\/\/\)$/{ s//\1/; q; }
40299           /^X\(\/\).*/{ s//\1/; q; }
40300           s/.*/./; q'`/stamp-h$_am_stamp_count
40301 done
40302 _ACEOF
40303 cat >>$CONFIG_STATUS <<\_ACEOF
40304
40305 #
40306 # CONFIG_COMMANDS section.
40307 #
40308 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40309   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40310   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40311   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40312 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40313          X"$ac_dest" : 'X\(//\)[^/]' \| \
40314          X"$ac_dest" : 'X\(//\)$' \| \
40315          X"$ac_dest" : 'X\(/\)' \| \
40316          .     : '\(.\)' 2>/dev/null ||
40317 echo X"$ac_dest" |
40318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40319           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40320           /^X\(\/\/\)$/{ s//\1/; q; }
40321           /^X\(\/\).*/{ s//\1/; q; }
40322           s/.*/./; q'`
40323   { if $as_mkdir_p; then
40324     mkdir -p "$ac_dir"
40325   else
40326     as_dir="$ac_dir"
40327     as_dirs=
40328     while test ! -d "$as_dir"; do
40329       as_dirs="$as_dir $as_dirs"
40330       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40332          X"$as_dir" : 'X\(//\)[^/]' \| \
40333          X"$as_dir" : 'X\(//\)$' \| \
40334          X"$as_dir" : 'X\(/\)' \| \
40335          .     : '\(.\)' 2>/dev/null ||
40336 echo X"$as_dir" |
40337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40338           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40339           /^X\(\/\/\)$/{ s//\1/; q; }
40340           /^X\(\/\).*/{ s//\1/; q; }
40341           s/.*/./; q'`
40342     done
40343     test ! -n "$as_dirs" || mkdir $as_dirs
40344   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40345 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40346    { (exit 1); exit 1; }; }; }
40347
40348   ac_builddir=.
40349
40350 if test "$ac_dir" != .; then
40351   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40352   # A "../" for each directory in $ac_dir_suffix.
40353   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40354 else
40355   ac_dir_suffix= ac_top_builddir=
40356 fi
40357
40358 case $srcdir in
40359   .)  # No --srcdir option.  We are building in place.
40360     ac_srcdir=.
40361     if test -z "$ac_top_builddir"; then
40362        ac_top_srcdir=.
40363     else
40364        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40365     fi ;;
40366   [\\/]* | ?:[\\/]* )  # Absolute path.
40367     ac_srcdir=$srcdir$ac_dir_suffix;
40368     ac_top_srcdir=$srcdir ;;
40369   *) # Relative path.
40370     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40371     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40372 esac
40373
40374 # Do not use `cd foo && pwd` to compute absolute paths, because
40375 # the directories may not exist.
40376 case `pwd` in
40377 .) ac_abs_builddir="$ac_dir";;
40378 *)
40379   case "$ac_dir" in
40380   .) ac_abs_builddir=`pwd`;;
40381   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40382   *) ac_abs_builddir=`pwd`/"$ac_dir";;
40383   esac;;
40384 esac
40385 case $ac_abs_builddir in
40386 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40387 *)
40388   case ${ac_top_builddir}. in
40389   .) ac_abs_top_builddir=$ac_abs_builddir;;
40390   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40391   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40392   esac;;
40393 esac
40394 case $ac_abs_builddir in
40395 .) ac_abs_srcdir=$ac_srcdir;;
40396 *)
40397   case $ac_srcdir in
40398   .) ac_abs_srcdir=$ac_abs_builddir;;
40399   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40400   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40401   esac;;
40402 esac
40403 case $ac_abs_builddir in
40404 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40405 *)
40406   case $ac_top_srcdir in
40407   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40408   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40409   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40410   esac;;
40411 esac
40412
40413
40414   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40415 echo "$as_me: executing $ac_dest commands" >&6;}
40416   case $ac_dest in
40417     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40418   # Strip MF so we end up with the name of the file.
40419   mf=`echo "$mf" | sed -e 's/:.*$//'`
40420   # Check whether this is an Automake generated Makefile or not.
40421   # We used to match only the files named `Makefile.in', but
40422   # some people rename them; so instead we look at the file content.
40423   # Grep'ing the first line is not enough: some people post-process
40424   # each Makefile.in and add a new line on top of each file to say so.
40425   # So let's grep whole file.
40426   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40427     dirpart=`(dirname "$mf") 2>/dev/null ||
40428 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40429          X"$mf" : 'X\(//\)[^/]' \| \
40430          X"$mf" : 'X\(//\)$' \| \
40431          X"$mf" : 'X\(/\)' \| \
40432          .     : '\(.\)' 2>/dev/null ||
40433 echo X"$mf" |
40434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40435           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40436           /^X\(\/\/\)$/{ s//\1/; q; }
40437           /^X\(\/\).*/{ s//\1/; q; }
40438           s/.*/./; q'`
40439   else
40440     continue
40441   fi
40442   # Extract the definition of DEPDIR, am__include, and am__quote
40443   # from the Makefile without running `make'.
40444   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40445   test -z "$DEPDIR" && continue
40446   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40447   test -z "am__include" && continue
40448   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40449   # When using ansi2knr, U may be empty or an underscore; expand it
40450   U=`sed -n 's/^U = //p' < "$mf"`
40451   # Find all dependency output files, they are included files with
40452   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40453   # simplest approach to changing $(DEPDIR) to its actual value in the
40454   # expansion.
40455   for file in `sed -n "
40456     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40457        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40458     # Make sure the directory exists.
40459     test -f "$dirpart/$file" && continue
40460     fdir=`(dirname "$file") 2>/dev/null ||
40461 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40462          X"$file" : 'X\(//\)[^/]' \| \
40463          X"$file" : 'X\(//\)$' \| \
40464          X"$file" : 'X\(/\)' \| \
40465          .     : '\(.\)' 2>/dev/null ||
40466 echo X"$file" |
40467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40469           /^X\(\/\/\)$/{ s//\1/; q; }
40470           /^X\(\/\).*/{ s//\1/; q; }
40471           s/.*/./; q'`
40472     { if $as_mkdir_p; then
40473     mkdir -p $dirpart/$fdir
40474   else
40475     as_dir=$dirpart/$fdir
40476     as_dirs=
40477     while test ! -d "$as_dir"; do
40478       as_dirs="$as_dir $as_dirs"
40479       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40481          X"$as_dir" : 'X\(//\)[^/]' \| \
40482          X"$as_dir" : 'X\(//\)$' \| \
40483          X"$as_dir" : 'X\(/\)' \| \
40484          .     : '\(.\)' 2>/dev/null ||
40485 echo X"$as_dir" |
40486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40488           /^X\(\/\/\)$/{ s//\1/; q; }
40489           /^X\(\/\).*/{ s//\1/; q; }
40490           s/.*/./; q'`
40491     done
40492     test ! -n "$as_dirs" || mkdir $as_dirs
40493   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40494 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40495    { (exit 1); exit 1; }; }; }
40496
40497     # echo "creating $dirpart/$file"
40498     echo '# dummy' > "$dirpart/$file"
40499   done
40500 done
40501  ;;
40502     default )
40503 chmod +x tests/run
40504 date > stamp-h
40505 BACKENDSC="servers/slapd/backends.c"
40506 echo "Making $BACKENDSC"
40507 rm -f $BACKENDSC
40508 cat > $BACKENDSC << ENDX
40509 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40510  *
40511  * Copyright 1998-2008 The OpenLDAP Foundation.
40512  * All rights reserved.
40513  *
40514  * Redistribution and use in source and binary forms, with or without
40515  * modification, are permitted only as authorized by the OpenLDAP
40516  * Public License.
40517  *
40518  * A copy of this license is available in the file LICENSE in the
40519  * top-level directory of the distribution or, alternatively, at
40520  * <http://www.OpenLDAP.org/license.html>.
40521  */
40522 /* This file is automatically generated by configure; please do not edit. */
40523
40524 #include "portable.h"
40525 #include "slap.h"
40526
40527 ENDX
40528 if test "${STATIC_BACKENDS}"; then
40529         for b in config ${STATIC_BACKENDS}; do
40530                 bb=`echo "${b}" | sed -e 's/back-//'`
40531                 cat >> $BACKENDSC << ENDX
40532 extern BI_init ${bb}_back_initialize;
40533 ENDX
40534         done
40535
40536         cat >> $BACKENDSC << ENDX
40537
40538 BackendInfo slap_binfo[] = {
40539 ENDX
40540
40541         for b in config ${STATIC_BACKENDS}; do
40542                 bb=`echo "${b}" | sed -e 's/back-//'`
40543                 echo "    Add ${bb} ..."
40544                 cat >> $BACKENDSC << ENDX
40545         { "${bb}", ${bb}_back_initialize },
40546 ENDX
40547         done
40548
40549         cat >> $BACKENDSC << ENDX
40550         { NULL, NULL },
40551 };
40552
40553 /* end of generated file */
40554 ENDX
40555 fi
40556 OVERLAYSC="servers/slapd/overlays/statover.c"
40557 echo "Making $OVERLAYSC"
40558 rm -f $OVERLAYSC
40559 cat > $OVERLAYSC << ENDX
40560 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40561  *
40562  * Copyright 1998-2008 The OpenLDAP Foundation.
40563  * All rights reserved.
40564  *
40565  * Redistribution and use in source and binary forms, with or without
40566  * modification, are permitted only as authorized by the OpenLDAP
40567  * Public License.
40568  *
40569  * A copy of this license is available in the file LICENSE in the
40570  * top-level directory of the distribution or, alternatively, at
40571  * <http://www.OpenLDAP.org/license.html>.
40572  */
40573 /* This file is automatically generated by configure; please do not edit. */
40574
40575 #include "portable.h"
40576 #include "slap.h"
40577
40578 ENDX
40579 if test "${STATIC_OVERLAYS}"; then
40580         for o in ${STATIC_OVERLAYS}; do
40581                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40582                 cat >> $OVERLAYSC << ENDX
40583 extern OV_init ${oo}_initialize;
40584 ENDX
40585         done
40586 fi
40587
40588 cat >> $OVERLAYSC << ENDX
40589
40590 OverlayInit slap_oinfo[] = {
40591 ENDX
40592
40593 if test "${STATIC_OVERLAYS}"; then
40594         for o in ${STATIC_OVERLAYS}; do
40595                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40596                 echo "    Add ${oo} ..."
40597                 cat >> $OVERLAYSC << ENDX
40598         { "${oo}", ${oo}_initialize },
40599 ENDX
40600         done
40601 fi
40602
40603         cat >> $OVERLAYSC << ENDX
40604         { NULL, NULL },
40605 };
40606
40607 /* end of generated file */
40608 ENDX
40609
40610 if test "${ol_cv_mkdep}" = no; then
40611         echo '(Do not "make depend"; we do not know how to build dependencies)'
40612 else
40613         echo 'Please run "make depend" to build dependencies'
40614 fi
40615  ;;
40616   esac
40617 done
40618 _ACEOF
40619
40620 cat >>$CONFIG_STATUS <<\_ACEOF
40621
40622 { (exit 0); exit 0; }
40623 _ACEOF
40624 chmod +x $CONFIG_STATUS
40625 ac_clean_files=$ac_clean_files_save
40626
40627
40628 # configure is writing to config.log, and then calls config.status.
40629 # config.status does its own redirection, appending to config.log.
40630 # Unfortunately, on DOS this fails, as config.log is still kept open
40631 # by configure, so config.status won't be able to write to it; its
40632 # output is simply discarded.  So we exec the FD to /dev/null,
40633 # effectively closing config.log, so it can be properly (re)opened and
40634 # appended to by config.status.  When coming back to configure, we
40635 # need to make the FD available again.
40636 if test "$no_create" != yes; then
40637   ac_cs_success=:
40638   ac_config_status_args=
40639   test "$silent" = yes &&
40640     ac_config_status_args="$ac_config_status_args --quiet"
40641   exec 5>/dev/null
40642   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40643   exec 5>>config.log
40644   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40645   # would make configure fail if this is the last instruction.
40646   $ac_cs_success || { (exit 1); exit 1; }
40647 fi
40648