]> git.sur5r.net Git - openldap/blob - configure
ce39d738428aa229cda1161807a436b4f43da062
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.586.2.15 2005/08/12 22:48:41 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file="OpenLDAP"
433 ac_unique_file="build/version.sh"
434 ac_default_prefix=/usr/local
435 # Factoring default headers for most tests.
436 ac_includes_default="\
437 #include <stdio.h>
438 #if HAVE_SYS_TYPES_H
439 # include <sys/types.h>
440 #endif
441 #if HAVE_SYS_STAT_H
442 # include <sys/stat.h>
443 #endif
444 #if STDC_HEADERS
445 # include <stdlib.h>
446 # include <stddef.h>
447 #else
448 # if HAVE_STDLIB_H
449 #  include <stdlib.h>
450 # endif
451 #endif
452 #if HAVE_STRING_H
453 # if !STDC_HEADERS && HAVE_MEMORY_H
454 #  include <memory.h>
455 # endif
456 # include <string.h>
457 #endif
458 #if HAVE_STRINGS_H
459 # include <strings.h>
460 #endif
461 #if HAVE_INTTYPES_H
462 # include <inttypes.h>
463 #else
464 # if HAVE_STDINT_H
465 #  include <stdint.h>
466 # endif
467 #endif
468 #if HAVE_UNISTD_H
469 # include <unistd.h>
470 #endif"
471
472 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
473 ac_subst_files=''
474
475 # Initialize some variables set by options.
476 ac_init_help=
477 ac_init_version=false
478 # The variables have the same names as the options, with
479 # dashes changed to underlines.
480 cache_file=/dev/null
481 exec_prefix=NONE
482 no_create=
483 no_recursion=
484 prefix=NONE
485 program_prefix=NONE
486 program_suffix=NONE
487 program_transform_name=s,x,x,
488 silent=
489 site=
490 srcdir=
491 verbose=
492 x_includes=NONE
493 x_libraries=NONE
494
495 # Installation directory options.
496 # These are left unexpanded so users can "make install exec_prefix=/foo"
497 # and all the variables that are supposed to be based on exec_prefix
498 # by default will actually change.
499 # Use braces instead of parens because sh, perl, etc. also accept them.
500 bindir='${exec_prefix}/bin'
501 sbindir='${exec_prefix}/sbin'
502 libexecdir='${exec_prefix}/libexec'
503 datadir='${prefix}/share'
504 sysconfdir='${prefix}/etc'
505 sharedstatedir='${prefix}/com'
506 localstatedir='${prefix}/var'
507 libdir='${exec_prefix}/lib'
508 includedir='${prefix}/include'
509 oldincludedir='/usr/include'
510 infodir='${prefix}/info'
511 mandir='${prefix}/man'
512
513 ac_prev=
514 for ac_option
515 do
516   # If the previous option needs an argument, assign it.
517   if test -n "$ac_prev"; then
518     eval "$ac_prev=\$ac_option"
519     ac_prev=
520     continue
521   fi
522
523   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524
525   # Accept the important Cygnus configure options, so we can diagnose typos.
526
527   case $ac_option in
528
529   -bindir | --bindir | --bindi | --bind | --bin | --bi)
530     ac_prev=bindir ;;
531   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532     bindir=$ac_optarg ;;
533
534   -build | --build | --buil | --bui | --bu)
535     ac_prev=build_alias ;;
536   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537     build_alias=$ac_optarg ;;
538
539   -cache-file | --cache-file | --cache-fil | --cache-fi \
540   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541     ac_prev=cache_file ;;
542   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544     cache_file=$ac_optarg ;;
545
546   --config-cache | -C)
547     cache_file=config.cache ;;
548
549   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550     ac_prev=datadir ;;
551   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552   | --da=*)
553     datadir=$ac_optarg ;;
554
555   -disable-* | --disable-*)
556     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557     # Reject names that are not valid shell variable names.
558     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560    { (exit 1); exit 1; }; }
561     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562     eval "enable_$ac_feature=no" ;;
563
564   -enable-* | --enable-*)
565     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566     # Reject names that are not valid shell variable names.
567     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569    { (exit 1); exit 1; }; }
570     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571     case $ac_option in
572       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573       *) ac_optarg=yes ;;
574     esac
575     eval "enable_$ac_feature='$ac_optarg'" ;;
576
577   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579   | --exec | --exe | --ex)
580     ac_prev=exec_prefix ;;
581   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583   | --exec=* | --exe=* | --ex=*)
584     exec_prefix=$ac_optarg ;;
585
586   -gas | --gas | --ga | --g)
587     # Obsolete; use --with-gas.
588     with_gas=yes ;;
589
590   -help | --help | --hel | --he | -h)
591     ac_init_help=long ;;
592   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593     ac_init_help=recursive ;;
594   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595     ac_init_help=short ;;
596
597   -host | --host | --hos | --ho)
598     ac_prev=host_alias ;;
599   -host=* | --host=* | --hos=* | --ho=*)
600     host_alias=$ac_optarg ;;
601
602   -includedir | --includedir | --includedi | --included | --include \
603   | --includ | --inclu | --incl | --inc)
604     ac_prev=includedir ;;
605   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606   | --includ=* | --inclu=* | --incl=* | --inc=*)
607     includedir=$ac_optarg ;;
608
609   -infodir | --infodir | --infodi | --infod | --info | --inf)
610     ac_prev=infodir ;;
611   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612     infodir=$ac_optarg ;;
613
614   -libdir | --libdir | --libdi | --libd)
615     ac_prev=libdir ;;
616   -libdir=* | --libdir=* | --libdi=* | --libd=*)
617     libdir=$ac_optarg ;;
618
619   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620   | --libexe | --libex | --libe)
621     ac_prev=libexecdir ;;
622   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623   | --libexe=* | --libex=* | --libe=*)
624     libexecdir=$ac_optarg ;;
625
626   -localstatedir | --localstatedir | --localstatedi | --localstated \
627   | --localstate | --localstat | --localsta | --localst \
628   | --locals | --local | --loca | --loc | --lo)
629     ac_prev=localstatedir ;;
630   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633     localstatedir=$ac_optarg ;;
634
635   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636     ac_prev=mandir ;;
637   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638     mandir=$ac_optarg ;;
639
640   -nfp | --nfp | --nf)
641     # Obsolete; use --without-fp.
642     with_fp=no ;;
643
644   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645   | --no-cr | --no-c | -n)
646     no_create=yes ;;
647
648   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650     no_recursion=yes ;;
651
652   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654   | --oldin | --oldi | --old | --ol | --o)
655     ac_prev=oldincludedir ;;
656   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659     oldincludedir=$ac_optarg ;;
660
661   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662     ac_prev=prefix ;;
663   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664     prefix=$ac_optarg ;;
665
666   -program-prefix | --program-prefix | --program-prefi | --program-pref \
667   | --program-pre | --program-pr | --program-p)
668     ac_prev=program_prefix ;;
669   -program-prefix=* | --program-prefix=* | --program-prefi=* \
670   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671     program_prefix=$ac_optarg ;;
672
673   -program-suffix | --program-suffix | --program-suffi | --program-suff \
674   | --program-suf | --program-su | --program-s)
675     ac_prev=program_suffix ;;
676   -program-suffix=* | --program-suffix=* | --program-suffi=* \
677   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678     program_suffix=$ac_optarg ;;
679
680   -program-transform-name | --program-transform-name \
681   | --program-transform-nam | --program-transform-na \
682   | --program-transform-n | --program-transform- \
683   | --program-transform | --program-transfor \
684   | --program-transfo | --program-transf \
685   | --program-trans | --program-tran \
686   | --progr-tra | --program-tr | --program-t)
687     ac_prev=program_transform_name ;;
688   -program-transform-name=* | --program-transform-name=* \
689   | --program-transform-nam=* | --program-transform-na=* \
690   | --program-transform-n=* | --program-transform-=* \
691   | --program-transform=* | --program-transfor=* \
692   | --program-transfo=* | --program-transf=* \
693   | --program-trans=* | --program-tran=* \
694   | --progr-tra=* | --program-tr=* | --program-t=*)
695     program_transform_name=$ac_optarg ;;
696
697   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698   | -silent | --silent | --silen | --sile | --sil)
699     silent=yes ;;
700
701   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702     ac_prev=sbindir ;;
703   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704   | --sbi=* | --sb=*)
705     sbindir=$ac_optarg ;;
706
707   -sharedstatedir | --sharedstatedir | --sharedstatedi \
708   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709   | --sharedst | --shareds | --shared | --share | --shar \
710   | --sha | --sh)
711     ac_prev=sharedstatedir ;;
712   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715   | --sha=* | --sh=*)
716     sharedstatedir=$ac_optarg ;;
717
718   -site | --site | --sit)
719     ac_prev=site ;;
720   -site=* | --site=* | --sit=*)
721     site=$ac_optarg ;;
722
723   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724     ac_prev=srcdir ;;
725   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726     srcdir=$ac_optarg ;;
727
728   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729   | --syscon | --sysco | --sysc | --sys | --sy)
730     ac_prev=sysconfdir ;;
731   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733     sysconfdir=$ac_optarg ;;
734
735   -target | --target | --targe | --targ | --tar | --ta | --t)
736     ac_prev=target_alias ;;
737   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738     target_alias=$ac_optarg ;;
739
740   -v | -verbose | --verbose | --verbos | --verbo | --verb)
741     verbose=yes ;;
742
743   -version | --version | --versio | --versi | --vers | -V)
744     ac_init_version=: ;;
745
746   -with-* | --with-*)
747     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748     # Reject names that are not valid shell variable names.
749     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750       { echo "$as_me: error: invalid package name: $ac_package" >&2
751    { (exit 1); exit 1; }; }
752     ac_package=`echo $ac_package| sed 's/-/_/g'`
753     case $ac_option in
754       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755       *) ac_optarg=yes ;;
756     esac
757     eval "with_$ac_package='$ac_optarg'" ;;
758
759   -without-* | --without-*)
760     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761     # Reject names that are not valid shell variable names.
762     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763       { echo "$as_me: error: invalid package name: $ac_package" >&2
764    { (exit 1); exit 1; }; }
765     ac_package=`echo $ac_package | sed 's/-/_/g'`
766     eval "with_$ac_package=no" ;;
767
768   --x)
769     # Obsolete; use --with-x.
770     with_x=yes ;;
771
772   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773   | --x-incl | --x-inc | --x-in | --x-i)
774     ac_prev=x_includes ;;
775   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777     x_includes=$ac_optarg ;;
778
779   -x-libraries | --x-libraries | --x-librarie | --x-librari \
780   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781     ac_prev=x_libraries ;;
782   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784     x_libraries=$ac_optarg ;;
785
786   -*) { echo "$as_me: error: unrecognized option: $ac_option
787 Try \`$0 --help' for more information." >&2
788    { (exit 1); exit 1; }; }
789     ;;
790
791   *=*)
792     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793     # Reject names that are not valid shell variable names.
794     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796    { (exit 1); exit 1; }; }
797     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798     eval "$ac_envvar='$ac_optarg'"
799     export $ac_envvar ;;
800
801   *)
802     # FIXME: should be removed in autoconf 3.0.
803     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807     ;;
808
809   esac
810 done
811
812 if test -n "$ac_prev"; then
813   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814   { echo "$as_me: error: missing argument to $ac_option" >&2
815    { (exit 1); exit 1; }; }
816 fi
817
818 # Be sure to have absolute paths.
819 for ac_var in exec_prefix prefix
820 do
821   eval ac_val=$`echo $ac_var`
822   case $ac_val in
823     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825    { (exit 1); exit 1; }; };;
826   esac
827 done
828
829 # Be sure to have absolute paths.
830 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831               localstatedir libdir includedir oldincludedir infodir mandir
832 do
833   eval ac_val=$`echo $ac_var`
834   case $ac_val in
835     [\\/$]* | ?:[\\/]* ) ;;
836     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837    { (exit 1); exit 1; }; };;
838   esac
839 done
840
841 # There might be people who depend on the old broken behavior: `$host'
842 # used to hold the argument of --host etc.
843 # FIXME: To remove some day.
844 build=$build_alias
845 host=$host_alias
846 target=$target_alias
847
848 # FIXME: To remove some day.
849 if test "x$host_alias" != x; then
850   if test "x$build_alias" = x; then
851     cross_compiling=maybe
852     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853     If a cross compiler is detected then cross compile mode will be used." >&2
854   elif test "x$build_alias" != "x$host_alias"; then
855     cross_compiling=yes
856   fi
857 fi
858
859 ac_tool_prefix=
860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861
862 test "$silent" = yes && exec 6>/dev/null
863
864
865 # Find the source files, if location was not specified.
866 if test -z "$srcdir"; then
867   ac_srcdir_defaulted=yes
868   # Try the directory containing this script, then its parent.
869   ac_confdir=`(dirname "$0") 2>/dev/null ||
870 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871          X"$0" : 'X\(//\)[^/]' \| \
872          X"$0" : 'X\(//\)$' \| \
873          X"$0" : 'X\(/\)' \| \
874          .     : '\(.\)' 2>/dev/null ||
875 echo X"$0" |
876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878           /^X\(\/\/\)$/{ s//\1/; q; }
879           /^X\(\/\).*/{ s//\1/; q; }
880           s/.*/./; q'`
881   srcdir=$ac_confdir
882   if test ! -r $srcdir/$ac_unique_file; then
883     srcdir=..
884   fi
885 else
886   ac_srcdir_defaulted=no
887 fi
888 if test ! -r $srcdir/$ac_unique_file; then
889   if test "$ac_srcdir_defaulted" = yes; then
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891    { (exit 1); exit 1; }; }
892   else
893     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894    { (exit 1); exit 1; }; }
895   fi
896 fi
897 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899    { (exit 1); exit 1; }; }
900 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901 ac_env_build_alias_set=${build_alias+set}
902 ac_env_build_alias_value=$build_alias
903 ac_cv_env_build_alias_set=${build_alias+set}
904 ac_cv_env_build_alias_value=$build_alias
905 ac_env_host_alias_set=${host_alias+set}
906 ac_env_host_alias_value=$host_alias
907 ac_cv_env_host_alias_set=${host_alias+set}
908 ac_cv_env_host_alias_value=$host_alias
909 ac_env_target_alias_set=${target_alias+set}
910 ac_env_target_alias_value=$target_alias
911 ac_cv_env_target_alias_set=${target_alias+set}
912 ac_cv_env_target_alias_value=$target_alias
913 ac_env_CC_set=${CC+set}
914 ac_env_CC_value=$CC
915 ac_cv_env_CC_set=${CC+set}
916 ac_cv_env_CC_value=$CC
917 ac_env_CFLAGS_set=${CFLAGS+set}
918 ac_env_CFLAGS_value=$CFLAGS
919 ac_cv_env_CFLAGS_set=${CFLAGS+set}
920 ac_cv_env_CFLAGS_value=$CFLAGS
921 ac_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_env_LDFLAGS_value=$LDFLAGS
923 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924 ac_cv_env_LDFLAGS_value=$LDFLAGS
925 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_env_CPPFLAGS_value=$CPPFLAGS
927 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929 ac_env_CPP_set=${CPP+set}
930 ac_env_CPP_value=$CPP
931 ac_cv_env_CPP_set=${CPP+set}
932 ac_cv_env_CPP_value=$CPP
933 ac_env_CXX_set=${CXX+set}
934 ac_env_CXX_value=$CXX
935 ac_cv_env_CXX_set=${CXX+set}
936 ac_cv_env_CXX_value=$CXX
937 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_env_CXXFLAGS_value=$CXXFLAGS
939 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
941 ac_env_CXXCPP_set=${CXXCPP+set}
942 ac_env_CXXCPP_value=$CXXCPP
943 ac_cv_env_CXXCPP_set=${CXXCPP+set}
944 ac_cv_env_CXXCPP_value=$CXXCPP
945 ac_env_F77_set=${F77+set}
946 ac_env_F77_value=$F77
947 ac_cv_env_F77_set=${F77+set}
948 ac_cv_env_F77_value=$F77
949 ac_env_FFLAGS_set=${FFLAGS+set}
950 ac_env_FFLAGS_value=$FFLAGS
951 ac_cv_env_FFLAGS_set=${FFLAGS+set}
952 ac_cv_env_FFLAGS_value=$FFLAGS
953
954 #
955 # Report the --help message.
956 #
957 if test "$ac_init_help" = "long"; then
958   # Omit some internal or obsolete options to make the list less imposing.
959   # This message is too long to be a string in the A/UX 3.1 sh.
960   cat <<_ACEOF
961 \`configure' configures this package to adapt to many kinds of systems.
962
963 Usage: $0 [OPTION]... [VAR=VALUE]...
964
965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
966 VAR=VALUE.  See below for descriptions of some of the useful variables.
967
968 Defaults for the options are specified in brackets.
969
970 Configuration:
971   -h, --help              display this help and exit
972       --help=short        display options specific to this package
973       --help=recursive    display the short help of all the included packages
974   -V, --version           display version information and exit
975   -q, --quiet, --silent   do not print \`checking...' messages
976       --cache-file=FILE   cache test results in FILE [disabled]
977   -C, --config-cache      alias for \`--cache-file=config.cache'
978   -n, --no-create         do not create output files
979       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
980
981 _ACEOF
982
983   cat <<_ACEOF
984 Installation directories:
985   --prefix=PREFIX         install architecture-independent files in PREFIX
986                           [$ac_default_prefix]
987   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
988                           [PREFIX]
989
990 By default, \`make install' will install all the files in
991 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
992 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993 for instance \`--prefix=\$HOME'.
994
995 For better control, use the options below.
996
997 Fine tuning of the installation directories:
998   --bindir=DIR           user executables [EPREFIX/bin]
999   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1000   --libexecdir=DIR       program executables [EPREFIX/libexec]
1001   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1002   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1003   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1004   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1005   --libdir=DIR           object code libraries [EPREFIX/lib]
1006   --includedir=DIR       C header files [PREFIX/include]
1007   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1008   --infodir=DIR          info documentation [PREFIX/info]
1009   --mandir=DIR           man documentation [PREFIX/man]
1010 _ACEOF
1011
1012   cat <<\_ACEOF
1013
1014 Program names:
1015   --program-prefix=PREFIX            prepend PREFIX to installed program names
1016   --program-suffix=SUFFIX            append SUFFIX to installed program names
1017   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1018
1019 System types:
1020   --build=BUILD     configure for building on BUILD [guessed]
1021   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1022   --target=TARGET   configure for building compilers for TARGET [HOST]
1023 _ACEOF
1024 fi
1025
1026 if test -n "$ac_init_help"; then
1027
1028   cat <<\_ACEOF
1029
1030 Optional Features:
1031   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1032   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1033   --enable-debug          enable debugging yes
1034   --enable-dynamic        enable linking built binaries with dynamic libs no
1035   --enable-syslog         enable syslog support auto
1036   --enable-proctitle      enable proctitle support yes
1037   --enable-ipv6           enable IPv6 support auto
1038   --enable-local          enable AF_LOCAL (AF_UNIX) socket support auto
1039   --enable-slapd          enable building slapd yes
1040     --enable-aci          enable per-object ACIs (experimental) no
1041     --enable-cleartext    enable cleartext passwords yes
1042     --enable-crypt        enable crypt(3) passwords no
1043     --enable-lmpasswd     enable LAN Manager passwords no
1044     --enable-spasswd      enable (Cyrus) SASL password verification no
1045     --enable-modules      enable dynamic module support no
1046     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay auto
1047     --enable-rlookups     enable reverse lookups of client hostnames no
1048     --enable-slapi        enable SLAPI support (experimental) no
1049     --enable-slp          enable SLPv2 support no
1050     --enable-wrappers     enable tcp wrapper support no
1051     --enable-backends     enable all available backends no|yes|mod
1052     --enable-bdb          enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1053     --enable-dnssrv       enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1054     --enable-hdb          enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1055     --enable-ldap         enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1056     --enable-ldbm         enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1057     --enable-meta         enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1058     --enable-monitor      enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1059     --enable-null         enable null backend no|yes|mod ${ol_dflt_backends-no}
1060     --enable-passwd       enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1061     --enable-perl         enable perl backend no|yes|mod ${ol_dflt_backends-no}
1062     --enable-relay        enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1063     --enable-shell        enable shell backend no|yes|mod ${ol_dflt_backends-no}
1064     --enable-sql          enable sql backend no|yes|mod ${ol_dflt_backends-no}
1065     --enable-overlays     enable all available overlays no|yes|mod
1066     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1067     --enable-denyop       Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1068     --enable-dyngroup     Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1069     --enable-dynlist      Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1070     --enable-glue         Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1071     --enable-lastmod      Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1072     --enable-ppolicy      Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1073     --enable-proxycache   Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1074     --enable-refint       Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1075     --enable-retcode      Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1076     --enable-rwm          Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1077     --enable-syncprov     Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1078     --enable-translucent  Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1079     --enable-unique       Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1080   --enable-slurpd         enable building slurpd auto
1081   --enable-static[=PKGS]
1082                           build static libraries [default=yes]
1083   --enable-shared[=PKGS]
1084                           build shared libraries [default=yes]
1085   --enable-fast-install[=PKGS]
1086                           optimize for fast installation [default=yes]
1087   --disable-dependency-tracking  speeds up one-time build
1088   --enable-dependency-tracking   do not reject slow dependency extractors
1089   --disable-libtool-lock  avoid locking (might break parallel builds)
1090
1091 Optional Packages:
1092   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1093   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1094   --with-subdir=DIR       change default subdirectory used for installs
1095   --with-cyrus-sasl       with Cyrus SASL support auto
1096   --with-fetch            with fetch(3) URL support auto
1097   --with-threads          with threads auto
1098   --with-tls              with TLS/SSL support auto
1099   --with-yielding-select  with implicitly yielding select auto
1100   --with-multiple-precision
1101                           multiple precision support for statistics
1102                           auto|bignum|gmp auto
1103
1104 SLAPD (Standalone LDAP Daemon) Options:
1105
1106 SLAPD Backend Options:
1107       --with-ldbm-api     with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1108       --with-ldbm-type    use LDBM type auto|btree|hash auto
1109
1110 SLAPD Overlay Options:
1111
1112 SLURPD (Replication Daemon) Options:
1113
1114 Library Generation & Linking Options
1115   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1116   --with-pic              try to use only PIC/non-PIC objects [default=use
1117                           both]
1118   --with-tags[=TAGS]
1119                           include additional configurations [automatic]
1120
1121 See INSTALL file for further details.
1122
1123 Some influential environment variables:
1124   CC          C compiler command
1125   CFLAGS      C compiler flags
1126   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1127               nonstandard directory <lib dir>
1128   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1129               headers in a nonstandard directory <include dir>
1130   CPP         C preprocessor
1131   CXX         C++ compiler command
1132   CXXFLAGS    C++ compiler flags
1133   CXXCPP      C++ preprocessor
1134   F77         Fortran 77 compiler command
1135   FFLAGS      Fortran 77 compiler flags
1136
1137 Use these variables to override the choices made by `configure' or to help
1138 it to find libraries and programs with nonstandard names/locations.
1139
1140 _ACEOF
1141 fi
1142
1143 if test "$ac_init_help" = "recursive"; then
1144   # If there are subdirs, report their specific --help.
1145   ac_popdir=`pwd`
1146   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147     test -d $ac_dir || continue
1148     ac_builddir=.
1149
1150 if test "$ac_dir" != .; then
1151   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152   # A "../" for each directory in $ac_dir_suffix.
1153   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154 else
1155   ac_dir_suffix= ac_top_builddir=
1156 fi
1157
1158 case $srcdir in
1159   .)  # No --srcdir option.  We are building in place.
1160     ac_srcdir=.
1161     if test -z "$ac_top_builddir"; then
1162        ac_top_srcdir=.
1163     else
1164        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165     fi ;;
1166   [\\/]* | ?:[\\/]* )  # Absolute path.
1167     ac_srcdir=$srcdir$ac_dir_suffix;
1168     ac_top_srcdir=$srcdir ;;
1169   *) # Relative path.
1170     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172 esac
1173
1174 # Do not use `cd foo && pwd` to compute absolute paths, because
1175 # the directories may not exist.
1176 case `pwd` in
1177 .) ac_abs_builddir="$ac_dir";;
1178 *)
1179   case "$ac_dir" in
1180   .) ac_abs_builddir=`pwd`;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183   esac;;
1184 esac
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1187 *)
1188   case ${ac_top_builddir}. in
1189   .) ac_abs_top_builddir=$ac_abs_builddir;;
1190   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192   esac;;
1193 esac
1194 case $ac_abs_builddir in
1195 .) ac_abs_srcdir=$ac_srcdir;;
1196 *)
1197   case $ac_srcdir in
1198   .) ac_abs_srcdir=$ac_abs_builddir;;
1199   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201   esac;;
1202 esac
1203 case $ac_abs_builddir in
1204 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1205 *)
1206   case $ac_top_srcdir in
1207   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210   esac;;
1211 esac
1212
1213     cd $ac_dir
1214     # Check for guested configure; otherwise get Cygnus style configure.
1215     if test -f $ac_srcdir/configure.gnu; then
1216       echo
1217       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218     elif test -f $ac_srcdir/configure; then
1219       echo
1220       $SHELL $ac_srcdir/configure  --help=recursive
1221     elif test -f $ac_srcdir/configure.ac ||
1222            test -f $ac_srcdir/configure.in; then
1223       echo
1224       $ac_configure --help
1225     else
1226       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227     fi
1228     cd $ac_popdir
1229   done
1230 fi
1231
1232 test -n "$ac_init_help" && exit 0
1233 if $ac_init_version; then
1234   cat <<\_ACEOF
1235
1236 Copyright (C) 2003 Free Software Foundation, Inc.
1237 This configure script is free software; the Free Software Foundation
1238 gives unlimited permission to copy, distribute and modify it.
1239
1240 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1241 Restrictions apply, see COPYRIGHT and LICENSE files.
1242 _ACEOF
1243   exit 0
1244 fi
1245 exec 5>config.log
1246 cat >&5 <<_ACEOF
1247 This file contains any messages produced by compilers while
1248 running configure, to aid debugging if configure makes a mistake.
1249
1250 It was created by $as_me, which was
1251 generated by GNU Autoconf 2.59.  Invocation command line was
1252
1253   $ $0 $@
1254
1255 _ACEOF
1256 {
1257 cat <<_ASUNAME
1258 ## --------- ##
1259 ## Platform. ##
1260 ## --------- ##
1261
1262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1267
1268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1269 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1270
1271 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1272 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1274 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1275 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1276 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1277 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1278
1279 _ASUNAME
1280
1281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 for as_dir in $PATH
1283 do
1284   IFS=$as_save_IFS
1285   test -z "$as_dir" && as_dir=.
1286   echo "PATH: $as_dir"
1287 done
1288
1289 } >&5
1290
1291 cat >&5 <<_ACEOF
1292
1293
1294 ## ----------- ##
1295 ## Core tests. ##
1296 ## ----------- ##
1297
1298 _ACEOF
1299
1300
1301 # Keep a trace of the command line.
1302 # Strip out --no-create and --no-recursion so they do not pile up.
1303 # Strip out --silent because we don't want to record it for future runs.
1304 # Also quote any args containing shell meta-characters.
1305 # Make two passes to allow for proper duplicate-argument suppression.
1306 ac_configure_args=
1307 ac_configure_args0=
1308 ac_configure_args1=
1309 ac_sep=
1310 ac_must_keep_next=false
1311 for ac_pass in 1 2
1312 do
1313   for ac_arg
1314   do
1315     case $ac_arg in
1316     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1317     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318     | -silent | --silent | --silen | --sile | --sil)
1319       continue ;;
1320     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1322     esac
1323     case $ac_pass in
1324     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1325     2)
1326       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1327       if test $ac_must_keep_next = true; then
1328         ac_must_keep_next=false # Got value, back to normal.
1329       else
1330         case $ac_arg in
1331           *=* | --config-cache | -C | -disable-* | --disable-* \
1332           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1333           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1334           | -with-* | --with-* | -without-* | --without-* | --x)
1335             case "$ac_configure_args0 " in
1336               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1337             esac
1338             ;;
1339           -* ) ac_must_keep_next=true ;;
1340         esac
1341       fi
1342       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1343       # Get rid of the leading space.
1344       ac_sep=" "
1345       ;;
1346     esac
1347   done
1348 done
1349 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1350 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1351
1352 # When interrupted or exit'd, cleanup temporary files, and complete
1353 # config.log.  We remove comments because anyway the quotes in there
1354 # would cause problems or look ugly.
1355 # WARNING: Be sure not to use single quotes in there, as some shells,
1356 # such as our DU 5.0 friend, will then `close' the trap.
1357 trap 'exit_status=$?
1358   # Save into config.log some information that might help in debugging.
1359   {
1360     echo
1361
1362     cat <<\_ASBOX
1363 ## ---------------- ##
1364 ## Cache variables. ##
1365 ## ---------------- ##
1366 _ASBOX
1367     echo
1368     # The following way of writing the cache mishandles newlines in values,
1369 {
1370   (set) 2>&1 |
1371     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1372     *ac_space=\ *)
1373       sed -n \
1374         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1375           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1376       ;;
1377     *)
1378       sed -n \
1379         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1380       ;;
1381     esac;
1382 }
1383     echo
1384
1385     cat <<\_ASBOX
1386 ## ----------------- ##
1387 ## Output variables. ##
1388 ## ----------------- ##
1389 _ASBOX
1390     echo
1391     for ac_var in $ac_subst_vars
1392     do
1393       eval ac_val=$`echo $ac_var`
1394       echo "$ac_var='"'"'$ac_val'"'"'"
1395     done | sort
1396     echo
1397
1398     if test -n "$ac_subst_files"; then
1399       cat <<\_ASBOX
1400 ## ------------- ##
1401 ## Output files. ##
1402 ## ------------- ##
1403 _ASBOX
1404       echo
1405       for ac_var in $ac_subst_files
1406       do
1407         eval ac_val=$`echo $ac_var`
1408         echo "$ac_var='"'"'$ac_val'"'"'"
1409       done | sort
1410       echo
1411     fi
1412
1413     if test -s confdefs.h; then
1414       cat <<\_ASBOX
1415 ## ----------- ##
1416 ## confdefs.h. ##
1417 ## ----------- ##
1418 _ASBOX
1419       echo
1420       sed "/^$/d" confdefs.h | sort
1421       echo
1422     fi
1423     test "$ac_signal" != 0 &&
1424       echo "$as_me: caught signal $ac_signal"
1425     echo "$as_me: exit $exit_status"
1426   } >&5
1427   rm -f core *.core &&
1428   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1429     exit $exit_status
1430      ' 0
1431 for ac_signal in 1 2 13 15; do
1432   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1433 done
1434 ac_signal=0
1435
1436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1437 rm -rf conftest* confdefs.h
1438 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1439 echo >confdefs.h
1440
1441 # Predefined preprocessor variables.
1442
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_NAME "$PACKAGE_NAME"
1445 _ACEOF
1446
1447
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1450 _ACEOF
1451
1452
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1455 _ACEOF
1456
1457
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_STRING "$PACKAGE_STRING"
1460 _ACEOF
1461
1462
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1465 _ACEOF
1466
1467
1468 # Let the site file select an alternate cache file if it wants to.
1469 # Prefer explicitly selected file to automatically selected ones.
1470 if test -z "$CONFIG_SITE"; then
1471   if test "x$prefix" != xNONE; then
1472     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1473   else
1474     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1475   fi
1476 fi
1477 for ac_site_file in $CONFIG_SITE; do
1478   if test -r "$ac_site_file"; then
1479     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1480 echo "$as_me: loading site script $ac_site_file" >&6;}
1481     sed 's/^/| /' "$ac_site_file" >&5
1482     . "$ac_site_file"
1483   fi
1484 done
1485
1486
1487 # Check that the precious variables saved in the cache have kept the same
1488 # value.
1489 ac_cache_corrupted=false
1490 for ac_var in `(set) 2>&1 |
1491                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493   eval ac_new_set=\$ac_env_${ac_var}_set
1494   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495   eval ac_new_val="\$ac_env_${ac_var}_value"
1496   case $ac_old_set,$ac_new_set in
1497     set,)
1498       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500       ac_cache_corrupted=: ;;
1501     ,set)
1502       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504       ac_cache_corrupted=: ;;
1505     ,);;
1506     *)
1507       if test "x$ac_old_val" != "x$ac_new_val"; then
1508         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511 echo "$as_me:   former value:  $ac_old_val" >&2;}
1512         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513 echo "$as_me:   current value: $ac_new_val" >&2;}
1514         ac_cache_corrupted=:
1515       fi;;
1516   esac
1517   # Pass precious variables to config.status.
1518   if test "$ac_new_set" = set; then
1519     case $ac_new_val in
1520     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522     *) ac_arg=$ac_var=$ac_new_val ;;
1523     esac
1524     case " $ac_configure_args " in
1525       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527     esac
1528   fi
1529 done
1530 if $ac_cache_corrupted; then
1531   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535    { (exit 1); exit 1; }; }
1536 fi
1537
1538 ac_ext=c
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584 # set unset (borrowed from autoconf 2.49c)
1585 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1586   ol_unset=unset
1587 else
1588   ol_unset=false
1589 fi
1590 # unset CDPATH
1591 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1592
1593 ac_aux_dir=
1594 for ac_dir in build $srcdir/build; do
1595   if test -f $ac_dir/install-sh; then
1596     ac_aux_dir=$ac_dir
1597     ac_install_sh="$ac_aux_dir/install-sh -c"
1598     break
1599   elif test -f $ac_dir/install.sh; then
1600     ac_aux_dir=$ac_dir
1601     ac_install_sh="$ac_aux_dir/install.sh -c"
1602     break
1603   elif test -f $ac_dir/shtool; then
1604     ac_aux_dir=$ac_dir
1605     ac_install_sh="$ac_aux_dir/shtool install -c"
1606     break
1607   fi
1608 done
1609 if test -z "$ac_aux_dir"; then
1610   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1611 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1612    { (exit 1); exit 1; }; }
1613 fi
1614 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1615 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1616 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617
1618 eval `$ac_aux_dir/version.sh`
1619 if test -z "$OL_STRING"; then
1620         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1621 echo "$as_me: error: could not determine version" >&2;}
1622    { (exit 1); exit 1; }; }
1623 fi
1624
1625 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1626         ac_cv_shtool="$ac_aux_dir/shtool"
1627 else
1628         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1629 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1630    { (exit 1); exit 1; }; }
1631 fi
1632
1633 SHTOOL="$ac_cv_shtool"
1634
1635 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1636 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1637
1638 OPENLDAP_CVS=""
1639 if test -d $ac_aux_dir/CVS; then
1640         OPENLDAP_CVS="(from CVS sources) "
1641 fi
1642
1643 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1644
1645 # Make sure we can run config.sub.
1646 $ac_config_sub sun4 >/dev/null 2>&1 ||
1647   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1648 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1649    { (exit 1); exit 1; }; }
1650
1651 echo "$as_me:$LINENO: checking build system type" >&5
1652 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1653 if test "${ac_cv_build+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   ac_cv_build_alias=$build_alias
1657 test -z "$ac_cv_build_alias" &&
1658   ac_cv_build_alias=`$ac_config_guess`
1659 test -z "$ac_cv_build_alias" &&
1660   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1661 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1662    { (exit 1); exit 1; }; }
1663 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1664   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1666    { (exit 1); exit 1; }; }
1667
1668 fi
1669 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1670 echo "${ECHO_T}$ac_cv_build" >&6
1671 build=$ac_cv_build
1672 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677 echo "$as_me:$LINENO: checking host system type" >&5
1678 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1679 if test "${ac_cv_host+set}" = set; then
1680   echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682   ac_cv_host_alias=$host_alias
1683 test -z "$ac_cv_host_alias" &&
1684   ac_cv_host_alias=$ac_cv_build_alias
1685 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1686   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1688    { (exit 1); exit 1; }; }
1689
1690 fi
1691 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1692 echo "${ECHO_T}$ac_cv_host" >&6
1693 host=$ac_cv_host
1694 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697
1698
1699 echo "$as_me:$LINENO: checking target system type" >&5
1700 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1701 if test "${ac_cv_target+set}" = set; then
1702   echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704   ac_cv_target_alias=$target_alias
1705 test "x$ac_cv_target_alias" = "x" &&
1706   ac_cv_target_alias=$ac_cv_host_alias
1707 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1708   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1709 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1710    { (exit 1); exit 1; }; }
1711
1712 fi
1713 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1714 echo "${ECHO_T}$ac_cv_target" >&6
1715 target=$ac_cv_target
1716 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1719
1720
1721 # The aliases save the names the user supplied, while $host etc.
1722 # will get canonicalized.
1723 test -n "$target_alias" &&
1724   test "$program_prefix$program_suffix$program_transform_name" = \
1725     NONENONEs,x,x, &&
1726   program_prefix=${target_alias}-
1727
1728 am__api_version="1.9"
1729 # Find a good install program.  We prefer a C program (faster),
1730 # so one script is as good as another.  But avoid the broken or
1731 # incompatible versions:
1732 # SysV /etc/install, /usr/sbin/install
1733 # SunOS /usr/etc/install
1734 # IRIX /sbin/install
1735 # AIX /bin/install
1736 # AmigaOS /C/install, which installs bootblocks on floppy discs
1737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740 # OS/2's system install, which has a completely different semantic
1741 # ./install, which can be erroneously created by make from ./install.sh.
1742 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744 if test -z "$INSTALL"; then
1745 if test "${ac_cv_path_install+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   # Account for people who put trailing slashes in PATH elements.
1754 case $as_dir/ in
1755   ./ | .// | /cC/* | \
1756   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1757   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1758   /usr/ucb/* ) ;;
1759   *)
1760     # OSF1 and SCO ODT 3.0 have their own names for install.
1761     # Don't use installbsd from OSF since it installs stuff as root
1762     # by default.
1763     for ac_prog in ginstall scoinst install; do
1764       for ac_exec_ext in '' $ac_executable_extensions; do
1765         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766           if test $ac_prog = install &&
1767             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768             # AIX install.  It has an incompatible calling convention.
1769             :
1770           elif test $ac_prog = install &&
1771             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772             # program-specific install script used by HP pwplus--don't use.
1773             :
1774           else
1775             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1776             break 3
1777           fi
1778         fi
1779       done
1780     done
1781     ;;
1782 esac
1783 done
1784
1785
1786 fi
1787   if test "${ac_cv_path_install+set}" = set; then
1788     INSTALL=$ac_cv_path_install
1789   else
1790     # As a last resort, use the slow shell script.  We don't cache a
1791     # path for INSTALL within a source directory, because that will
1792     # break other packages using the cache if that directory is
1793     # removed, or if the path is relative.
1794     INSTALL=$ac_install_sh
1795   fi
1796 fi
1797 echo "$as_me:$LINENO: result: $INSTALL" >&5
1798 echo "${ECHO_T}$INSTALL" >&6
1799
1800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801 # It thinks the first close brace ends the variable substitution.
1802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1803
1804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1805
1806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1807
1808 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1809 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1810 # Just in case
1811 sleep 1
1812 echo timestamp > conftest.file
1813 # Do `set' in a subshell so we don't clobber the current shell's
1814 # arguments.  Must try -L first in case configure is actually a
1815 # symlink; some systems play weird games with the mod time of symlinks
1816 # (eg FreeBSD returns the mod time of the symlink's containing
1817 # directory).
1818 if (
1819    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1820    if test "$*" = "X"; then
1821       # -L didn't work.
1822       set X `ls -t $srcdir/configure conftest.file`
1823    fi
1824    rm -f conftest.file
1825    if test "$*" != "X $srcdir/configure conftest.file" \
1826       && test "$*" != "X conftest.file $srcdir/configure"; then
1827
1828       # If neither matched, then we have a broken ls.  This can happen
1829       # if, for instance, CONFIG_SHELL is bash and it inherits a
1830       # broken ls alias from the environment.  This has actually
1831       # happened.  Such a system could not be considered "sane".
1832       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1833 alias in your environment" >&5
1834 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1835 alias in your environment" >&2;}
1836    { (exit 1); exit 1; }; }
1837    fi
1838
1839    test "$2" = conftest.file
1840    )
1841 then
1842    # Ok.
1843    :
1844 else
1845    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1846 Check your system clock" >&5
1847 echo "$as_me: error: newly created file is older than distributed files!
1848 Check your system clock" >&2;}
1849    { (exit 1); exit 1; }; }
1850 fi
1851 echo "$as_me:$LINENO: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6
1853 test "$program_prefix" != NONE &&
1854   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1855 # Use a double $ so make ignores it.
1856 test "$program_suffix" != NONE &&
1857   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1858 # Double any \ or $.  echo might interpret backslashes.
1859 # By default was `s,x,x', remove it if useless.
1860 cat <<\_ACEOF >conftest.sed
1861 s/[\\$]/&&/g;s/;s,x,x,$//
1862 _ACEOF
1863 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1864 rm conftest.sed
1865
1866 # expand $ac_aux_dir to an absolute path
1867 am_aux_dir=`cd $ac_aux_dir && pwd`
1868
1869 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1870 # Use eval to expand $SHELL
1871 if eval "$MISSING --run true"; then
1872   am_missing_run="$MISSING --run "
1873 else
1874   am_missing_run=
1875   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1876 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1877 fi
1878
1879 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1880   # We used to keeping the `.' as first argument, in order to
1881   # allow $(mkdir_p) to be used without argument.  As in
1882   #   $(mkdir_p) $(somedir)
1883   # where $(somedir) is conditionally defined.  However this is wrong
1884   # for two reasons:
1885   #  1. if the package is installed by a user who cannot write `.'
1886   #     make install will fail,
1887   #  2. the above comment should most certainly read
1888   #     $(mkdir_p) $(DESTDIR)$(somedir)
1889   #     so it does not work when $(somedir) is undefined and
1890   #     $(DESTDIR) is not.
1891   #  To support the latter case, we have to write
1892   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1893   #  so the `.' trick is pointless.
1894   mkdir_p='mkdir -p --'
1895 else
1896   # On NextStep and OpenStep, the `mkdir' command does not
1897   # recognize any option.  It will interpret all options as
1898   # directories to create, and then abort because `.' already
1899   # exists.
1900   for d in ./-p ./--version;
1901   do
1902     test -d $d && rmdir $d
1903   done
1904   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1905   if test -f "$ac_aux_dir/mkinstalldirs"; then
1906     mkdir_p='$(mkinstalldirs)'
1907   else
1908     mkdir_p='$(install_sh) -d'
1909   fi
1910 fi
1911
1912 for ac_prog in gawk mawk nawk awk
1913 do
1914   # Extract the first word of "$ac_prog", so it can be a program name with args.
1915 set dummy $ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_AWK+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   if test -n "$AWK"; then
1922   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931     ac_cv_prog_AWK="$ac_prog"
1932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 AWK=$ac_cv_prog_AWK
1941 if test -n "$AWK"; then
1942   echo "$as_me:$LINENO: result: $AWK" >&5
1943 echo "${ECHO_T}$AWK" >&6
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949   test -n "$AWK" && break
1950 done
1951
1952 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1954 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1955 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   cat >conftest.make <<\_ACEOF
1959 all:
1960         @echo 'ac_maketemp="$(MAKE)"'
1961 _ACEOF
1962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1963 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1964 if test -n "$ac_maketemp"; then
1965   eval ac_cv_prog_make_${ac_make}_set=yes
1966 else
1967   eval ac_cv_prog_make_${ac_make}_set=no
1968 fi
1969 rm -f conftest.make
1970 fi
1971 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1972   echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1974   SET_MAKE=
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978   SET_MAKE="MAKE=${MAKE-make}"
1979 fi
1980
1981 rm -rf .tst 2>/dev/null
1982 mkdir .tst 2>/dev/null
1983 if test -d .tst; then
1984   am__leading_dot=.
1985 else
1986   am__leading_dot=_
1987 fi
1988 rmdir .tst 2>/dev/null
1989
1990 # test to see if srcdir already configured
1991 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1992    test -f $srcdir/config.status; then
1993   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1994 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 # test whether we have cygpath
1999 if test -z "$CYGPATH_W"; then
2000   if (cygpath --version) >/dev/null 2>/dev/null; then
2001     CYGPATH_W='cygpath -w'
2002   else
2003     CYGPATH_W=echo
2004   fi
2005 fi
2006
2007
2008 # Define the identity of the package.
2009  PACKAGE=$OL_PACKAGE
2010  VERSION=$OL_VERSION
2011
2012
2013 # Some tools Automake needs.
2014
2015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2016
2017
2018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2019
2020
2021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2022
2023
2024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2025
2026
2027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2028
2029 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2030
2031 # Installed binaries are usually stripped using `strip' when the user
2032 # run `make install-strip'.  However `strip' might not be the right
2033 # tool to use in cross-compilation environments, therefore Automake
2034 # will honor the `STRIP' environment variable to overrule this program.
2035 if test "$cross_compiling" != no; then
2036   if test -n "$ac_tool_prefix"; then
2037   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2038 set dummy ${ac_tool_prefix}strip; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_STRIP+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$STRIP"; then
2045   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 fi
2062 fi
2063 STRIP=$ac_cv_prog_STRIP
2064 if test -n "$STRIP"; then
2065   echo "$as_me:$LINENO: result: $STRIP" >&5
2066 echo "${ECHO_T}$STRIP" >&6
2067 else
2068   echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 fi
2071
2072 fi
2073 if test -z "$ac_cv_prog_STRIP"; then
2074   ac_ct_STRIP=$STRIP
2075   # Extract the first word of "strip", so it can be a program name with args.
2076 set dummy strip; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test -n "$ac_ct_STRIP"; then
2083   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088   IFS=$as_save_IFS
2089   test -z "$as_dir" && as_dir=.
2090   for ac_exec_ext in '' $ac_executable_extensions; do
2091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092     ac_cv_prog_ac_ct_STRIP="strip"
2093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094     break 2
2095   fi
2096 done
2097 done
2098
2099   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2100 fi
2101 fi
2102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2103 if test -n "$ac_ct_STRIP"; then
2104   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2105 echo "${ECHO_T}$ac_ct_STRIP" >&6
2106 else
2107   echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2109 fi
2110
2111   STRIP=$ac_ct_STRIP
2112 else
2113   STRIP="$ac_cv_prog_STRIP"
2114 fi
2115
2116 fi
2117 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2118
2119 # We need awk for the "check" target.  The system "awk" is bad on
2120 # some platforms.
2121 # Always define AMTAR for backward compatibility.
2122
2123 AMTAR=${AMTAR-"${am_missing_run}tar"}
2124
2125 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2126
2127
2128
2129
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define OPENLDAP_PACKAGE "$PACKAGE"
2133 _ACEOF
2134
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define OPENLDAP_VERSION "$VERSION"
2138 _ACEOF
2139
2140
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define LDAP_VENDOR_VERSION $OL_API_INC
2144 _ACEOF
2145
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2149 _ACEOF
2150
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2154 _ACEOF
2155
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2159 _ACEOF
2160
2161
2162 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2163
2164 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2165
2166 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2167
2168
2169
2170
2171
2172
2173
2174           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2175
2176           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2177
2178           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2179
2180
2181 echo "$as_me:$LINENO: checking configure arguments" >&5
2182 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2183
2184
2185 top_builddir=`pwd`
2186
2187 ldap_subdir="/openldap"
2188
2189
2190 # Check whether --with-subdir or --without-subdir was given.
2191 if test "${with_subdir+set}" = set; then
2192   withval="$with_subdir"
2193   case "$withval" in
2194         no) ldap_subdir=""
2195                 ;;
2196         yes)
2197                 ;;
2198         /*|\\*)
2199                 ldap_subdir="$withval"
2200                 ;;
2201         *)
2202                 ldap_subdir="/$withval"
2203                 ;;
2204 esac
2205
2206 fi;
2207
2208 # OpenLDAP --enable-debug
2209         # Check whether --enable-debug or --disable-debug was given.
2210 if test "${enable_debug+set}" = set; then
2211   enableval="$enable_debug"
2212
2213         ol_arg=invalid
2214         for ol_val in auto yes no ; do
2215                 if test "$enableval" = "$ol_val" ; then
2216                         ol_arg="$ol_val"
2217                 fi
2218         done
2219         if test "$ol_arg" = "invalid" ; then
2220                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2221 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2222    { (exit 1); exit 1; }; }
2223         fi
2224         ol_enable_debug="$ol_arg"
2225
2226 else
2227         ol_enable_debug="yes"
2228 fi; # end --enable-debug
2229 # OpenLDAP --enable-dynamic
2230         # Check whether --enable-dynamic or --disable-dynamic was given.
2231 if test "${enable_dynamic+set}" = set; then
2232   enableval="$enable_dynamic"
2233
2234         ol_arg=invalid
2235         for ol_val in auto yes no ; do
2236                 if test "$enableval" = "$ol_val" ; then
2237                         ol_arg="$ol_val"
2238                 fi
2239         done
2240         if test "$ol_arg" = "invalid" ; then
2241                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2242 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2243    { (exit 1); exit 1; }; }
2244         fi
2245         ol_enable_dynamic="$ol_arg"
2246
2247 else
2248         ol_enable_dynamic="no"
2249 fi; # end --enable-dynamic
2250 # OpenLDAP --enable-syslog
2251         # Check whether --enable-syslog or --disable-syslog was given.
2252 if test "${enable_syslog+set}" = set; then
2253   enableval="$enable_syslog"
2254
2255         ol_arg=invalid
2256         for ol_val in auto yes no ; do
2257                 if test "$enableval" = "$ol_val" ; then
2258                         ol_arg="$ol_val"
2259                 fi
2260         done
2261         if test "$ol_arg" = "invalid" ; then
2262                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2263 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2264    { (exit 1); exit 1; }; }
2265         fi
2266         ol_enable_syslog="$ol_arg"
2267
2268 else
2269         ol_enable_syslog="auto"
2270 fi; # end --enable-syslog
2271 # OpenLDAP --enable-proctitle
2272         # Check whether --enable-proctitle or --disable-proctitle was given.
2273 if test "${enable_proctitle+set}" = set; then
2274   enableval="$enable_proctitle"
2275
2276         ol_arg=invalid
2277         for ol_val in auto yes no ; do
2278                 if test "$enableval" = "$ol_val" ; then
2279                         ol_arg="$ol_val"
2280                 fi
2281         done
2282         if test "$ol_arg" = "invalid" ; then
2283                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2284 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2285    { (exit 1); exit 1; }; }
2286         fi
2287         ol_enable_proctitle="$ol_arg"
2288
2289 else
2290         ol_enable_proctitle="yes"
2291 fi; # end --enable-proctitle
2292 ol_enable_referrals=${ol_enable_referrals-no}
2293 ol_enable_kbind=${ol_enable_kbind-no}
2294 # OpenLDAP --enable-ipv6
2295         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2296 if test "${enable_ipv6+set}" = set; then
2297   enableval="$enable_ipv6"
2298
2299         ol_arg=invalid
2300         for ol_val in auto yes no ; do
2301                 if test "$enableval" = "$ol_val" ; then
2302                         ol_arg="$ol_val"
2303                 fi
2304         done
2305         if test "$ol_arg" = "invalid" ; then
2306                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2307 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2308    { (exit 1); exit 1; }; }
2309         fi
2310         ol_enable_ipv6="$ol_arg"
2311
2312 else
2313         ol_enable_ipv6="auto"
2314 fi; # end --enable-ipv6
2315 # OpenLDAP --enable-local
2316         # Check whether --enable-local or --disable-local was given.
2317 if test "${enable_local+set}" = set; then
2318   enableval="$enable_local"
2319
2320         ol_arg=invalid
2321         for ol_val in auto yes no ; do
2322                 if test "$enableval" = "$ol_val" ; then
2323                         ol_arg="$ol_val"
2324                 fi
2325         done
2326         if test "$ol_arg" = "invalid" ; then
2327                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2328 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2329    { (exit 1); exit 1; }; }
2330         fi
2331         ol_enable_local="$ol_arg"
2332
2333 else
2334         ol_enable_local="auto"
2335 fi; # end --enable-local
2336
2337 # OpenLDAP --with-cyrus_sasl
2338
2339 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2340 if test "${with_cyrus_sasl+set}" = set; then
2341   withval="$with_cyrus_sasl"
2342
2343         ol_arg=invalid
2344         for ol_val in auto yes no  ; do
2345                 if test "$withval" = "$ol_val" ; then
2346                         ol_arg="$ol_val"
2347                 fi
2348         done
2349         if test "$ol_arg" = "invalid" ; then
2350                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2351 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2352    { (exit 1); exit 1; }; }
2353         fi
2354         ol_with_cyrus_sasl="$ol_arg"
2355
2356 else
2357         ol_with_cyrus_sasl="auto"
2358 fi; # end --with-cyrus_sasl
2359
2360 # OpenLDAP --with-fetch
2361
2362 # Check whether --with-fetch or --without-fetch was given.
2363 if test "${with_fetch+set}" = set; then
2364   withval="$with_fetch"
2365
2366         ol_arg=invalid
2367         for ol_val in auto yes no  ; do
2368                 if test "$withval" = "$ol_val" ; then
2369                         ol_arg="$ol_val"
2370                 fi
2371         done
2372         if test "$ol_arg" = "invalid" ; then
2373                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2374 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2375    { (exit 1); exit 1; }; }
2376         fi
2377         ol_with_fetch="$ol_arg"
2378
2379 else
2380         ol_with_fetch="auto"
2381 fi; # end --with-fetch
2382
2383 ol_with_kerberos=${ol_with_kerberos-auto}
2384 # OpenLDAP --with-threads
2385
2386 # Check whether --with-threads or --without-threads was given.
2387 if test "${with_threads+set}" = set; then
2388   withval="$with_threads"
2389
2390         ol_arg=invalid
2391         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2392                 if test "$withval" = "$ol_val" ; then
2393                         ol_arg="$ol_val"
2394                 fi
2395         done
2396         if test "$ol_arg" = "invalid" ; then
2397                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2398 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2399    { (exit 1); exit 1; }; }
2400         fi
2401         ol_with_threads="$ol_arg"
2402
2403 else
2404         ol_with_threads="auto"
2405 fi; # end --with-threads
2406
2407 # OpenLDAP --with-tls
2408
2409 # Check whether --with-tls or --without-tls was given.
2410 if test "${with_tls+set}" = set; then
2411   withval="$with_tls"
2412
2413         ol_arg=invalid
2414         for ol_val in auto ssleay openssl yes no  ; do
2415                 if test "$withval" = "$ol_val" ; then
2416                         ol_arg="$ol_val"
2417                 fi
2418         done
2419         if test "$ol_arg" = "invalid" ; then
2420                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2421 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2422    { (exit 1); exit 1; }; }
2423         fi
2424         ol_with_tls="$ol_arg"
2425
2426 else
2427         ol_with_tls="auto"
2428 fi; # end --with-tls
2429
2430 # OpenLDAP --with-yielding_select
2431
2432 # Check whether --with-yielding_select or --without-yielding_select was given.
2433 if test "${with_yielding_select+set}" = set; then
2434   withval="$with_yielding_select"
2435
2436         ol_arg=invalid
2437         for ol_val in auto yes no manual  ; do
2438                 if test "$withval" = "$ol_val" ; then
2439                         ol_arg="$ol_val"
2440                 fi
2441         done
2442         if test "$ol_arg" = "invalid" ; then
2443                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2444 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2445    { (exit 1); exit 1; }; }
2446         fi
2447         ol_with_yielding_select="$ol_arg"
2448
2449 else
2450         ol_with_yielding_select="auto"
2451 fi; # end --with-yielding_select
2452
2453 # OpenLDAP --with-multiple_precision
2454
2455 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2456 if test "${with_multiple_precision+set}" = set; then
2457   withval="$with_multiple_precision"
2458
2459         ol_arg=invalid
2460         for ol_val in auto bignum gmp yes no  ; do
2461                 if test "$withval" = "$ol_val" ; then
2462                         ol_arg="$ol_val"
2463                 fi
2464         done
2465         if test "$ol_arg" = "invalid" ; then
2466                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2467 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2468    { (exit 1); exit 1; }; }
2469         fi
2470         ol_with_multiple_precision="$ol_arg"
2471
2472 else
2473         ol_with_multiple_precision="auto"
2474 fi; # end --with-multiple_precision
2475
2476
2477
2478
2479 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2480 if test "${with_xxslapdoptions+set}" = set; then
2481   withval="$with_xxslapdoptions"
2482
2483 fi;
2484 # OpenLDAP --enable-slapd
2485         # Check whether --enable-slapd or --disable-slapd was given.
2486 if test "${enable_slapd+set}" = set; then
2487   enableval="$enable_slapd"
2488
2489         ol_arg=invalid
2490         for ol_val in auto yes no ; do
2491                 if test "$enableval" = "$ol_val" ; then
2492                         ol_arg="$ol_val"
2493                 fi
2494         done
2495         if test "$ol_arg" = "invalid" ; then
2496                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2498    { (exit 1); exit 1; }; }
2499         fi
2500         ol_enable_slapd="$ol_arg"
2501
2502 else
2503         ol_enable_slapd="yes"
2504 fi; # end --enable-slapd
2505 # OpenLDAP --enable-aci
2506         # Check whether --enable-aci or --disable-aci was given.
2507 if test "${enable_aci+set}" = set; then
2508   enableval="$enable_aci"
2509
2510         ol_arg=invalid
2511         for ol_val in auto yes no ; do
2512                 if test "$enableval" = "$ol_val" ; then
2513                         ol_arg="$ol_val"
2514                 fi
2515         done
2516         if test "$ol_arg" = "invalid" ; then
2517                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2519    { (exit 1); exit 1; }; }
2520         fi
2521         ol_enable_aci="$ol_arg"
2522
2523 else
2524         ol_enable_aci="no"
2525 fi; # end --enable-aci
2526 # OpenLDAP --enable-cleartext
2527         # Check whether --enable-cleartext or --disable-cleartext was given.
2528 if test "${enable_cleartext+set}" = set; then
2529   enableval="$enable_cleartext"
2530
2531         ol_arg=invalid
2532         for ol_val in auto yes no ; do
2533                 if test "$enableval" = "$ol_val" ; then
2534                         ol_arg="$ol_val"
2535                 fi
2536         done
2537         if test "$ol_arg" = "invalid" ; then
2538                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2539 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2540    { (exit 1); exit 1; }; }
2541         fi
2542         ol_enable_cleartext="$ol_arg"
2543
2544 else
2545         ol_enable_cleartext="yes"
2546 fi; # end --enable-cleartext
2547 # OpenLDAP --enable-crypt
2548         # Check whether --enable-crypt or --disable-crypt was given.
2549 if test "${enable_crypt+set}" = set; then
2550   enableval="$enable_crypt"
2551
2552         ol_arg=invalid
2553         for ol_val in auto yes no ; do
2554                 if test "$enableval" = "$ol_val" ; then
2555                         ol_arg="$ol_val"
2556                 fi
2557         done
2558         if test "$ol_arg" = "invalid" ; then
2559                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2560 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2561    { (exit 1); exit 1; }; }
2562         fi
2563         ol_enable_crypt="$ol_arg"
2564
2565 else
2566         ol_enable_crypt="no"
2567 fi; # end --enable-crypt
2568 # OpenLDAP --enable-lmpasswd
2569         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2570 if test "${enable_lmpasswd+set}" = set; then
2571   enableval="$enable_lmpasswd"
2572
2573         ol_arg=invalid
2574         for ol_val in auto yes no ; do
2575                 if test "$enableval" = "$ol_val" ; then
2576                         ol_arg="$ol_val"
2577                 fi
2578         done
2579         if test "$ol_arg" = "invalid" ; then
2580                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2581 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2582    { (exit 1); exit 1; }; }
2583         fi
2584         ol_enable_lmpasswd="$ol_arg"
2585
2586 else
2587         ol_enable_lmpasswd="no"
2588 fi; # end --enable-lmpasswd
2589 # OpenLDAP --enable-spasswd
2590         # Check whether --enable-spasswd or --disable-spasswd was given.
2591 if test "${enable_spasswd+set}" = set; then
2592   enableval="$enable_spasswd"
2593
2594         ol_arg=invalid
2595         for ol_val in auto yes no ; do
2596                 if test "$enableval" = "$ol_val" ; then
2597                         ol_arg="$ol_val"
2598                 fi
2599         done
2600         if test "$ol_arg" = "invalid" ; then
2601                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2602 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2603    { (exit 1); exit 1; }; }
2604         fi
2605         ol_enable_spasswd="$ol_arg"
2606
2607 else
2608         ol_enable_spasswd="no"
2609 fi; # end --enable-spasswd
2610 # OpenLDAP --enable-modules
2611         # Check whether --enable-modules or --disable-modules was given.
2612 if test "${enable_modules+set}" = set; then
2613   enableval="$enable_modules"
2614
2615         ol_arg=invalid
2616         for ol_val in auto yes no ; do
2617                 if test "$enableval" = "$ol_val" ; then
2618                         ol_arg="$ol_val"
2619                 fi
2620         done
2621         if test "$ol_arg" = "invalid" ; then
2622                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2623 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2624    { (exit 1); exit 1; }; }
2625         fi
2626         ol_enable_modules="$ol_arg"
2627
2628 else
2629         ol_enable_modules="no"
2630 fi; # end --enable-modules
2631 ol_enable_multimaster=${ol_enable_multimaster-no}
2632 # OpenLDAP --enable-rewrite
2633         # Check whether --enable-rewrite or --disable-rewrite was given.
2634 if test "${enable_rewrite+set}" = set; then
2635   enableval="$enable_rewrite"
2636
2637         ol_arg=invalid
2638         for ol_val in auto yes no ; do
2639                 if test "$enableval" = "$ol_val" ; then
2640                         ol_arg="$ol_val"
2641                 fi
2642         done
2643         if test "$ol_arg" = "invalid" ; then
2644                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2645 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2646    { (exit 1); exit 1; }; }
2647         fi
2648         ol_enable_rewrite="$ol_arg"
2649
2650 else
2651         ol_enable_rewrite="auto"
2652 fi; # end --enable-rewrite
2653 # OpenLDAP --enable-rlookups
2654         # Check whether --enable-rlookups or --disable-rlookups was given.
2655 if test "${enable_rlookups+set}" = set; then
2656   enableval="$enable_rlookups"
2657
2658         ol_arg=invalid
2659         for ol_val in auto yes no ; do
2660                 if test "$enableval" = "$ol_val" ; then
2661                         ol_arg="$ol_val"
2662                 fi
2663         done
2664         if test "$ol_arg" = "invalid" ; then
2665                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2666 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2667    { (exit 1); exit 1; }; }
2668         fi
2669         ol_enable_rlookups="$ol_arg"
2670
2671 else
2672         ol_enable_rlookups="no"
2673 fi; # end --enable-rlookups
2674 # OpenLDAP --enable-slapi
2675         # Check whether --enable-slapi or --disable-slapi was given.
2676 if test "${enable_slapi+set}" = set; then
2677   enableval="$enable_slapi"
2678
2679         ol_arg=invalid
2680         for ol_val in auto yes no ; do
2681                 if test "$enableval" = "$ol_val" ; then
2682                         ol_arg="$ol_val"
2683                 fi
2684         done
2685         if test "$ol_arg" = "invalid" ; then
2686                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2687 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2688    { (exit 1); exit 1; }; }
2689         fi
2690         ol_enable_slapi="$ol_arg"
2691
2692 else
2693         ol_enable_slapi="no"
2694 fi; # end --enable-slapi
2695 # OpenLDAP --enable-slp
2696         # Check whether --enable-slp or --disable-slp was given.
2697 if test "${enable_slp+set}" = set; then
2698   enableval="$enable_slp"
2699
2700         ol_arg=invalid
2701         for ol_val in auto yes no ; do
2702                 if test "$enableval" = "$ol_val" ; then
2703                         ol_arg="$ol_val"
2704                 fi
2705         done
2706         if test "$ol_arg" = "invalid" ; then
2707                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2708 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2709    { (exit 1); exit 1; }; }
2710         fi
2711         ol_enable_slp="$ol_arg"
2712
2713 else
2714         ol_enable_slp="no"
2715 fi; # end --enable-slp
2716 # OpenLDAP --enable-wrappers
2717         # Check whether --enable-wrappers or --disable-wrappers was given.
2718 if test "${enable_wrappers+set}" = set; then
2719   enableval="$enable_wrappers"
2720
2721         ol_arg=invalid
2722         for ol_val in auto yes no ; do
2723                 if test "$enableval" = "$ol_val" ; then
2724                         ol_arg="$ol_val"
2725                 fi
2726         done
2727         if test "$ol_arg" = "invalid" ; then
2728                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2729 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2730    { (exit 1); exit 1; }; }
2731         fi
2732         ol_enable_wrappers="$ol_arg"
2733
2734 else
2735         ol_enable_wrappers="no"
2736 fi; # end --enable-wrappers
2737
2738 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2739         passwd perl relay shell sql"
2740
2741
2742 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2743 if test "${with_xxslapbackends+set}" = set; then
2744   withval="$with_xxslapbackends"
2745
2746 fi;
2747
2748 # OpenLDAP --enable-backends
2749         # Check whether --enable-backends or --disable-backends was given.
2750 if test "${enable_backends+set}" = set; then
2751   enableval="$enable_backends"
2752
2753         ol_arg=invalid
2754         for ol_val in no yes mod ; do
2755                 if test "$enableval" = "$ol_val" ; then
2756                         ol_arg="$ol_val"
2757                 fi
2758         done
2759         if test "$ol_arg" = "invalid" ; then
2760                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2761 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2762    { (exit 1); exit 1; }; }
2763         fi
2764         ol_enable_backends="$ol_arg"
2765
2766 fi; # end --enable-backends
2767 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2768 # OpenLDAP --enable-bdb
2769         # Check whether --enable-bdb or --disable-bdb was given.
2770 if test "${enable_bdb+set}" = set; then
2771   enableval="$enable_bdb"
2772
2773         ol_arg=invalid
2774         for ol_val in no yes mod ; do
2775                 if test "$enableval" = "$ol_val" ; then
2776                         ol_arg="$ol_val"
2777                 fi
2778         done
2779         if test "$ol_arg" = "invalid" ; then
2780                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2781 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2782    { (exit 1); exit 1; }; }
2783         fi
2784         ol_enable_bdb="$ol_arg"
2785
2786 else
2787         ol_enable_bdb="${ol_dflt_backends-yes}"
2788 fi; # end --enable-bdb
2789 # OpenLDAP --enable-dnssrv
2790         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2791 if test "${enable_dnssrv+set}" = set; then
2792   enableval="$enable_dnssrv"
2793
2794         ol_arg=invalid
2795         for ol_val in no yes mod ; do
2796                 if test "$enableval" = "$ol_val" ; then
2797                         ol_arg="$ol_val"
2798                 fi
2799         done
2800         if test "$ol_arg" = "invalid" ; then
2801                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2802 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2803    { (exit 1); exit 1; }; }
2804         fi
2805         ol_enable_dnssrv="$ol_arg"
2806
2807 else
2808         ol_enable_dnssrv="${ol_dflt_backends-no}"
2809 fi; # end --enable-dnssrv
2810 # OpenLDAP --enable-hdb
2811         # Check whether --enable-hdb or --disable-hdb was given.
2812 if test "${enable_hdb+set}" = set; then
2813   enableval="$enable_hdb"
2814
2815         ol_arg=invalid
2816         for ol_val in no yes mod ; do
2817                 if test "$enableval" = "$ol_val" ; then
2818                         ol_arg="$ol_val"
2819                 fi
2820         done
2821         if test "$ol_arg" = "invalid" ; then
2822                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2823 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2824    { (exit 1); exit 1; }; }
2825         fi
2826         ol_enable_hdb="$ol_arg"
2827
2828 else
2829         ol_enable_hdb="${ol_dflt_backends-yes}"
2830 fi; # end --enable-hdb
2831 # OpenLDAP --enable-ldap
2832         # Check whether --enable-ldap or --disable-ldap was given.
2833 if test "${enable_ldap+set}" = set; then
2834   enableval="$enable_ldap"
2835
2836         ol_arg=invalid
2837         for ol_val in no yes mod ; do
2838                 if test "$enableval" = "$ol_val" ; then
2839                         ol_arg="$ol_val"
2840                 fi
2841         done
2842         if test "$ol_arg" = "invalid" ; then
2843                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2844 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2845    { (exit 1); exit 1; }; }
2846         fi
2847         ol_enable_ldap="$ol_arg"
2848
2849 else
2850         ol_enable_ldap="${ol_dflt_backends-no}"
2851 fi; # end --enable-ldap
2852 # OpenLDAP --enable-ldbm
2853         # Check whether --enable-ldbm or --disable-ldbm was given.
2854 if test "${enable_ldbm+set}" = set; then
2855   enableval="$enable_ldbm"
2856
2857         ol_arg=invalid
2858         for ol_val in no yes mod ; do
2859                 if test "$enableval" = "$ol_val" ; then
2860                         ol_arg="$ol_val"
2861                 fi
2862         done
2863         if test "$ol_arg" = "invalid" ; then
2864                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2865 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2866    { (exit 1); exit 1; }; }
2867         fi
2868         ol_enable_ldbm="$ol_arg"
2869
2870 else
2871         ol_enable_ldbm="${ol_dflt_backends-no}"
2872 fi; # end --enable-ldbm
2873 # OpenLDAP --with-ldbm_api
2874
2875 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2876 if test "${with_ldbm_api+set}" = set; then
2877   withval="$with_ldbm_api"
2878
2879         ol_arg=invalid
2880         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2881                 if test "$withval" = "$ol_val" ; then
2882                         ol_arg="$ol_val"
2883                 fi
2884         done
2885         if test "$ol_arg" = "invalid" ; then
2886                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2887 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2888    { (exit 1); exit 1; }; }
2889         fi
2890         ol_with_ldbm_api="$ol_arg"
2891
2892 else
2893         ol_with_ldbm_api="auto"
2894 fi; # end --with-ldbm_api
2895
2896 # OpenLDAP --with-ldbm_type
2897
2898 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2899 if test "${with_ldbm_type+set}" = set; then
2900   withval="$with_ldbm_type"
2901
2902         ol_arg=invalid
2903         for ol_val in auto btree hash ; do
2904                 if test "$withval" = "$ol_val" ; then
2905                         ol_arg="$ol_val"
2906                 fi
2907         done
2908         if test "$ol_arg" = "invalid" ; then
2909                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2910 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2911    { (exit 1); exit 1; }; }
2912         fi
2913         ol_with_ldbm_type="$ol_arg"
2914
2915 else
2916         ol_with_ldbm_type="auto"
2917 fi; # end --with-ldbm_type
2918
2919 # OpenLDAP --enable-meta
2920         # Check whether --enable-meta or --disable-meta was given.
2921 if test "${enable_meta+set}" = set; then
2922   enableval="$enable_meta"
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-meta" >&5
2932 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2933    { (exit 1); exit 1; }; }
2934         fi
2935         ol_enable_meta="$ol_arg"
2936
2937 else
2938         ol_enable_meta="${ol_dflt_backends-no}"
2939 fi; # end --enable-meta
2940 # OpenLDAP --enable-monitor
2941         # Check whether --enable-monitor or --disable-monitor was given.
2942 if test "${enable_monitor+set}" = set; then
2943   enableval="$enable_monitor"
2944
2945         ol_arg=invalid
2946         for ol_val in no yes mod ; do
2947                 if test "$enableval" = "$ol_val" ; then
2948                         ol_arg="$ol_val"
2949                 fi
2950         done
2951         if test "$ol_arg" = "invalid" ; then
2952                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2953 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2954    { (exit 1); exit 1; }; }
2955         fi
2956         ol_enable_monitor="$ol_arg"
2957
2958 else
2959         ol_enable_monitor="${ol_dflt_backends-yes}"
2960 fi; # end --enable-monitor
2961 # OpenLDAP --enable-null
2962         # Check whether --enable-null or --disable-null was given.
2963 if test "${enable_null+set}" = set; then
2964   enableval="$enable_null"
2965
2966         ol_arg=invalid
2967         for ol_val in no yes mod ; do
2968                 if test "$enableval" = "$ol_val" ; then
2969                         ol_arg="$ol_val"
2970                 fi
2971         done
2972         if test "$ol_arg" = "invalid" ; then
2973                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2975    { (exit 1); exit 1; }; }
2976         fi
2977         ol_enable_null="$ol_arg"
2978
2979 else
2980         ol_enable_null="${ol_dflt_backends-no}"
2981 fi; # end --enable-null
2982 # OpenLDAP --enable-passwd
2983         # Check whether --enable-passwd or --disable-passwd was given.
2984 if test "${enable_passwd+set}" = set; then
2985   enableval="$enable_passwd"
2986
2987         ol_arg=invalid
2988         for ol_val in no yes mod ; do
2989                 if test "$enableval" = "$ol_val" ; then
2990                         ol_arg="$ol_val"
2991                 fi
2992         done
2993         if test "$ol_arg" = "invalid" ; then
2994                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2996    { (exit 1); exit 1; }; }
2997         fi
2998         ol_enable_passwd="$ol_arg"
2999
3000 else
3001         ol_enable_passwd="${ol_dflt_backends-no}"
3002 fi; # end --enable-passwd
3003 # OpenLDAP --enable-perl
3004         # Check whether --enable-perl or --disable-perl was given.
3005 if test "${enable_perl+set}" = set; then
3006   enableval="$enable_perl"
3007
3008         ol_arg=invalid
3009         for ol_val in no yes mod ; do
3010                 if test "$enableval" = "$ol_val" ; then
3011                         ol_arg="$ol_val"
3012                 fi
3013         done
3014         if test "$ol_arg" = "invalid" ; then
3015                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3016 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3017    { (exit 1); exit 1; }; }
3018         fi
3019         ol_enable_perl="$ol_arg"
3020
3021 else
3022         ol_enable_perl="${ol_dflt_backends-no}"
3023 fi; # end --enable-perl
3024 # OpenLDAP --enable-relay
3025         # Check whether --enable-relay or --disable-relay was given.
3026 if test "${enable_relay+set}" = set; then
3027   enableval="$enable_relay"
3028
3029         ol_arg=invalid
3030         for ol_val in no yes mod ; do
3031                 if test "$enableval" = "$ol_val" ; then
3032                         ol_arg="$ol_val"
3033                 fi
3034         done
3035         if test "$ol_arg" = "invalid" ; then
3036                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3037 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3038    { (exit 1); exit 1; }; }
3039         fi
3040         ol_enable_relay="$ol_arg"
3041
3042 else
3043         ol_enable_relay="${ol_dflt_backends-yes}"
3044 fi; # end --enable-relay
3045 # OpenLDAP --enable-shell
3046         # Check whether --enable-shell or --disable-shell was given.
3047 if test "${enable_shell+set}" = set; then
3048   enableval="$enable_shell"
3049
3050         ol_arg=invalid
3051         for ol_val in no yes mod ; do
3052                 if test "$enableval" = "$ol_val" ; then
3053                         ol_arg="$ol_val"
3054                 fi
3055         done
3056         if test "$ol_arg" = "invalid" ; then
3057                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3058 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3059    { (exit 1); exit 1; }; }
3060         fi
3061         ol_enable_shell="$ol_arg"
3062
3063 else
3064         ol_enable_shell="${ol_dflt_backends-no}"
3065 fi; # end --enable-shell
3066 # OpenLDAP --enable-sql
3067         # Check whether --enable-sql or --disable-sql was given.
3068 if test "${enable_sql+set}" = set; then
3069   enableval="$enable_sql"
3070
3071         ol_arg=invalid
3072         for ol_val in no yes mod ; do
3073                 if test "$enableval" = "$ol_val" ; then
3074                         ol_arg="$ol_val"
3075                 fi
3076         done
3077         if test "$ol_arg" = "invalid" ; then
3078                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3079 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3080    { (exit 1); exit 1; }; }
3081         fi
3082         ol_enable_sql="$ol_arg"
3083
3084 else
3085         ol_enable_sql="${ol_dflt_backends-no}"
3086 fi; # end --enable-sql
3087
3088 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3089         refint retcode rwm syncprov translucent unique"
3090
3091
3092 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3093 if test "${with_xxslapoverlays+set}" = set; then
3094   withval="$with_xxslapoverlays"
3095
3096 fi;
3097
3098 # OpenLDAP --enable-overlays
3099         # Check whether --enable-overlays or --disable-overlays was given.
3100 if test "${enable_overlays+set}" = set; then
3101   enableval="$enable_overlays"
3102
3103         ol_arg=invalid
3104         for ol_val in no yes mod ; do
3105                 if test "$enableval" = "$ol_val" ; then
3106                         ol_arg="$ol_val"
3107                 fi
3108         done
3109         if test "$ol_arg" = "invalid" ; then
3110                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3111 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3112    { (exit 1); exit 1; }; }
3113         fi
3114         ol_enable_overlays="$ol_arg"
3115
3116 fi; # end --enable-overlays
3117 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3118 # OpenLDAP --enable-accesslog
3119         # Check whether --enable-accesslog or --disable-accesslog was given.
3120 if test "${enable_accesslog+set}" = set; then
3121   enableval="$enable_accesslog"
3122
3123         ol_arg=invalid
3124         for ol_val in no yes mod ; do
3125                 if test "$enableval" = "$ol_val" ; then
3126                         ol_arg="$ol_val"
3127                 fi
3128         done
3129         if test "$ol_arg" = "invalid" ; then
3130                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3131 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3132    { (exit 1); exit 1; }; }
3133         fi
3134         ol_enable_accesslog="$ol_arg"
3135
3136 else
3137         ol_enable_accesslog="${ol_dflt_overlays-no}"
3138 fi; # end --enable-accesslog
3139
3140 # OpenLDAP --enable-denyop
3141         # Check whether --enable-denyop or --disable-denyop was given.
3142 if test "${enable_denyop+set}" = set; then
3143   enableval="$enable_denyop"
3144
3145         ol_arg=invalid
3146         for ol_val in no yes mod ; do
3147                 if test "$enableval" = "$ol_val" ; then
3148                         ol_arg="$ol_val"
3149                 fi
3150         done
3151         if test "$ol_arg" = "invalid" ; then
3152                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3153 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3154    { (exit 1); exit 1; }; }
3155         fi
3156         ol_enable_denyop="$ol_arg"
3157
3158 else
3159         ol_enable_denyop="${ol_dflt_overlays-no}"
3160 fi; # end --enable-denyop
3161
3162 # OpenLDAP --enable-dyngroup
3163         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3164 if test "${enable_dyngroup+set}" = set; then
3165   enableval="$enable_dyngroup"
3166
3167         ol_arg=invalid
3168         for ol_val in no yes mod ; do
3169                 if test "$enableval" = "$ol_val" ; then
3170                         ol_arg="$ol_val"
3171                 fi
3172         done
3173         if test "$ol_arg" = "invalid" ; then
3174                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3175 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3176    { (exit 1); exit 1; }; }
3177         fi
3178         ol_enable_dyngroup="$ol_arg"
3179
3180 else
3181         ol_enable_dyngroup="${ol_dflt_overlays-no}"
3182 fi; # end --enable-dyngroup
3183
3184 # OpenLDAP --enable-dynlist
3185         # Check whether --enable-dynlist or --disable-dynlist was given.
3186 if test "${enable_dynlist+set}" = set; then
3187   enableval="$enable_dynlist"
3188
3189         ol_arg=invalid
3190         for ol_val in no yes mod ; do
3191                 if test "$enableval" = "$ol_val" ; then
3192                         ol_arg="$ol_val"
3193                 fi
3194         done
3195         if test "$ol_arg" = "invalid" ; then
3196                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3197 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3198    { (exit 1); exit 1; }; }
3199         fi
3200         ol_enable_dynlist="$ol_arg"
3201
3202 else
3203         ol_enable_dynlist="${ol_dflt_overlays-no}"
3204 fi; # end --enable-dynlist
3205
3206 # OpenLDAP --enable-glue
3207         # Check whether --enable-glue or --disable-glue was given.
3208 if test "${enable_glue+set}" = set; then
3209   enableval="$enable_glue"
3210
3211         ol_arg=invalid
3212         for ol_val in no yes mod ; do
3213                 if test "$enableval" = "$ol_val" ; then
3214                         ol_arg="$ol_val"
3215                 fi
3216         done
3217         if test "$ol_arg" = "invalid" ; then
3218                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3219 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3220    { (exit 1); exit 1; }; }
3221         fi
3222         ol_enable_glue="$ol_arg"
3223
3224 else
3225         ol_enable_glue="${ol_dflt_overlays-yes}"
3226 fi; # end --enable-glue
3227
3228 # OpenLDAP --enable-lastmod
3229         # Check whether --enable-lastmod or --disable-lastmod was given.
3230 if test "${enable_lastmod+set}" = set; then
3231   enableval="$enable_lastmod"
3232
3233         ol_arg=invalid
3234         for ol_val in no yes mod ; do
3235                 if test "$enableval" = "$ol_val" ; then
3236                         ol_arg="$ol_val"
3237                 fi
3238         done
3239         if test "$ol_arg" = "invalid" ; then
3240                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3241 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3242    { (exit 1); exit 1; }; }
3243         fi
3244         ol_enable_lastmod="$ol_arg"
3245
3246 else
3247         ol_enable_lastmod="${ol_dflt_overlays-no}"
3248 fi; # end --enable-lastmod
3249
3250 # OpenLDAP --enable-ppolicy
3251         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3252 if test "${enable_ppolicy+set}" = set; then
3253   enableval="$enable_ppolicy"
3254
3255         ol_arg=invalid
3256         for ol_val in no yes mod ; do
3257                 if test "$enableval" = "$ol_val" ; then
3258                         ol_arg="$ol_val"
3259                 fi
3260         done
3261         if test "$ol_arg" = "invalid" ; then
3262                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3263 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3264    { (exit 1); exit 1; }; }
3265         fi
3266         ol_enable_ppolicy="$ol_arg"
3267
3268 else
3269         ol_enable_ppolicy="${ol_dflt_overlays-no}"
3270 fi; # end --enable-ppolicy
3271
3272 # OpenLDAP --enable-proxycache
3273         # Check whether --enable-proxycache or --disable-proxycache was given.
3274 if test "${enable_proxycache+set}" = set; then
3275   enableval="$enable_proxycache"
3276
3277         ol_arg=invalid
3278         for ol_val in no yes mod ; do
3279                 if test "$enableval" = "$ol_val" ; then
3280                         ol_arg="$ol_val"
3281                 fi
3282         done
3283         if test "$ol_arg" = "invalid" ; then
3284                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3285 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3286    { (exit 1); exit 1; }; }
3287         fi
3288         ol_enable_proxycache="$ol_arg"
3289
3290 else
3291         ol_enable_proxycache="${ol_dflt_overlays-no}"
3292 fi; # end --enable-proxycache
3293
3294 # OpenLDAP --enable-refint
3295         # Check whether --enable-refint or --disable-refint was given.
3296 if test "${enable_refint+set}" = set; then
3297   enableval="$enable_refint"
3298
3299         ol_arg=invalid
3300         for ol_val in no yes mod ; do
3301                 if test "$enableval" = "$ol_val" ; then
3302                         ol_arg="$ol_val"
3303                 fi
3304         done
3305         if test "$ol_arg" = "invalid" ; then
3306                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3307 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3308    { (exit 1); exit 1; }; }
3309         fi
3310         ol_enable_refint="$ol_arg"
3311
3312 else
3313         ol_enable_refint="${ol_dflt_overlays-no}"
3314 fi; # end --enable-refint
3315
3316 # OpenLDAP --enable-retcode
3317         # Check whether --enable-retcode or --disable-retcode was given.
3318 if test "${enable_retcode+set}" = set; then
3319   enableval="$enable_retcode"
3320
3321         ol_arg=invalid
3322         for ol_val in no yes mod ; do
3323                 if test "$enableval" = "$ol_val" ; then
3324                         ol_arg="$ol_val"
3325                 fi
3326         done
3327         if test "$ol_arg" = "invalid" ; then
3328                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3329 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3330    { (exit 1); exit 1; }; }
3331         fi
3332         ol_enable_retcode="$ol_arg"
3333
3334 else
3335         ol_enable_retcode="${ol_dflt_overlays-no}"
3336 fi; # end --enable-retcode
3337
3338 # OpenLDAP --enable-rwm
3339         # Check whether --enable-rwm or --disable-rwm was given.
3340 if test "${enable_rwm+set}" = set; then
3341   enableval="$enable_rwm"
3342
3343         ol_arg=invalid
3344         for ol_val in no yes mod ; do
3345                 if test "$enableval" = "$ol_val" ; then
3346                         ol_arg="$ol_val"
3347                 fi
3348         done
3349         if test "$ol_arg" = "invalid" ; then
3350                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3351 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3352    { (exit 1); exit 1; }; }
3353         fi
3354         ol_enable_rwm="$ol_arg"
3355
3356 else
3357         ol_enable_rwm="${ol_dflt_overlays-no}"
3358 fi; # end --enable-rwm
3359
3360 # OpenLDAP --enable-syncprov
3361         # Check whether --enable-syncprov or --disable-syncprov was given.
3362 if test "${enable_syncprov+set}" = set; then
3363   enableval="$enable_syncprov"
3364
3365         ol_arg=invalid
3366         for ol_val in no yes mod ; do
3367                 if test "$enableval" = "$ol_val" ; then
3368                         ol_arg="$ol_val"
3369                 fi
3370         done
3371         if test "$ol_arg" = "invalid" ; then
3372                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3373 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3374    { (exit 1); exit 1; }; }
3375         fi
3376         ol_enable_syncprov="$ol_arg"
3377
3378 else
3379         ol_enable_syncprov="${ol_dflt_overlays-yes}"
3380 fi; # end --enable-syncprov
3381
3382 # OpenLDAP --enable-translucent
3383         # Check whether --enable-translucent or --disable-translucent was given.
3384 if test "${enable_translucent+set}" = set; then
3385   enableval="$enable_translucent"
3386
3387         ol_arg=invalid
3388         for ol_val in no yes mod ; do
3389                 if test "$enableval" = "$ol_val" ; then
3390                         ol_arg="$ol_val"
3391                 fi
3392         done
3393         if test "$ol_arg" = "invalid" ; then
3394                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3395 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3396    { (exit 1); exit 1; }; }
3397         fi
3398         ol_enable_translucent="$ol_arg"
3399
3400 else
3401         ol_enable_translucent="${ol_dflt_overlays-no}"
3402 fi; # end --enable-translucent
3403
3404 # OpenLDAP --enable-unique
3405         # Check whether --enable-unique or --disable-unique was given.
3406 if test "${enable_unique+set}" = set; then
3407   enableval="$enable_unique"
3408
3409         ol_arg=invalid
3410         for ol_val in no yes mod ; do
3411                 if test "$enableval" = "$ol_val" ; then
3412                         ol_arg="$ol_val"
3413                 fi
3414         done
3415         if test "$ol_arg" = "invalid" ; then
3416                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3417 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3418    { (exit 1); exit 1; }; }
3419         fi
3420         ol_enable_unique="$ol_arg"
3421
3422 else
3423         ol_enable_unique="${ol_dflt_overlays-no}"
3424 fi; # end --enable-unique
3425
3426
3427
3428
3429 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3430 if test "${with_xxslurpdoptions+set}" = set; then
3431   withval="$with_xxslurpdoptions"
3432
3433 fi;
3434 # OpenLDAP --enable-slurpd
3435         # Check whether --enable-slurpd or --disable-slurpd was given.
3436 if test "${enable_slurpd+set}" = set; then
3437   enableval="$enable_slurpd"
3438
3439         ol_arg=invalid
3440         for ol_val in auto yes no ; do
3441                 if test "$enableval" = "$ol_val" ; then
3442                         ol_arg="$ol_val"
3443                 fi
3444         done
3445         if test "$ol_arg" = "invalid" ; then
3446                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3447 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3448    { (exit 1); exit 1; }; }
3449         fi
3450         ol_enable_slurpd="$ol_arg"
3451
3452 else
3453         ol_enable_slurpd="auto"
3454 fi; # end --enable-slurpd
3455
3456
3457 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3458 if test "${with_xxliboptions+set}" = set; then
3459   withval="$with_xxliboptions"
3460
3461 fi;
3462 # Check whether --enable-static or --disable-static was given.
3463 if test "${enable_static+set}" = set; then
3464   enableval="$enable_static"
3465   p=${PACKAGE-default}
3466     case $enableval in
3467     yes) enable_static=yes ;;
3468     no) enable_static=no ;;
3469     *)
3470      enable_static=no
3471       # Look at the argument we got.  We use all the common list separators.
3472       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3473       for pkg in $enableval; do
3474         IFS="$lt_save_ifs"
3475         if test "X$pkg" = "X$p"; then
3476           enable_static=yes
3477         fi
3478       done
3479       IFS="$lt_save_ifs"
3480       ;;
3481     esac
3482 else
3483   enable_static=yes
3484 fi;
3485
3486 # Check whether --enable-shared or --disable-shared was given.
3487 if test "${enable_shared+set}" = set; then
3488   enableval="$enable_shared"
3489   p=${PACKAGE-default}
3490     case $enableval in
3491     yes) enable_shared=yes ;;
3492     no) enable_shared=no ;;
3493     *)
3494       enable_shared=no
3495       # Look at the argument we got.  We use all the common list separators.
3496       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3497       for pkg in $enableval; do
3498         IFS="$lt_save_ifs"
3499         if test "X$pkg" = "X$p"; then
3500           enable_shared=yes
3501         fi
3502       done
3503       IFS="$lt_save_ifs"
3504       ;;
3505     esac
3506 else
3507   enable_shared=yes
3508 fi;
3509
3510
3511
3512 # validate options
3513 if test $ol_enable_slapd = no ; then
3514                 if test $ol_enable_slapi = yes ; then
3515                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3516 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3517         fi
3518         case "$ol_enable_backends" in yes | mod)
3519                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3520 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3521         esac
3522         for i in $Backends; do
3523                 eval "ol_tmp=\$ol_enable_$i"
3524                 if test $ol_tmp != no ; then
3525                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3526 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3527                         eval "ol_enable_$i=no"
3528                 fi
3529         done
3530         if test $ol_enable_modules = yes ; then
3531                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3532 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3533         fi
3534         if test $ol_enable_multimaster = yes ; then
3535                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3536 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3537         fi
3538         if test $ol_enable_wrappers = yes ; then
3539                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3540 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3541         fi
3542         if test $ol_enable_rlookups = yes ; then
3543                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3544 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3545         fi
3546         if test $ol_enable_aci = yes ; then
3547                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3548 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3549         fi
3550         if test $ol_with_ldbm_api != auto ; then
3551                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3552 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3553         fi
3554         if test $ol_with_ldbm_type != auto ; then
3555                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3556 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3557         fi
3558         if test $ol_enable_slurpd = yes ; then
3559                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3560 echo "$as_me: error: slurpd requires slapd" >&2;}
3561    { (exit 1); exit 1; }; }
3562         fi
3563         if test $ol_enable_rewrite = yes ; then
3564                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3565 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3566         fi
3567                 case "$ol_enable_overlays" in yes | mod)
3568                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3569 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3570         esac
3571         for i in $Overlays; do
3572                 eval "ol_tmp=\$ol_enable_$i"
3573                 if test $ol_tmp != no ; then
3574                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3575 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3576                         eval "ol_enable_$i=no"
3577                 fi
3578         done
3579
3580         # force settings to no
3581         ol_enable_slapi=no
3582
3583         ol_enable_backends=
3584         ol_enable_overlays=
3585         ol_enable_modules=no
3586         ol_enable_multimaster=no
3587         ol_enable_rlookups=no
3588         ol_enable_aci=no
3589         ol_enable_wrappers=no
3590
3591         ol_with_ldbm_api=no
3592         ol_with_ldbm_type=no
3593
3594         ol_enable_slurpd=no
3595
3596         ol_enable_rewrite=no
3597
3598 elif test $ol_enable_ldbm = no ; then
3599
3600         if test $ol_with_ldbm_api != auto ; then
3601                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3602 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3603         fi
3604
3605         if test $ol_with_ldbm_type != auto ; then
3606                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3607 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3608         fi
3609
3610         if test $ol_enable_modules != yes -a \
3611                 $ol_enable_bdb = no -a \
3612                 $ol_enable_dnssrv = no -a \
3613                 $ol_enable_hdb = no -a \
3614                 $ol_enable_ldap = no -a \
3615                 $ol_enable_meta = no -a \
3616                 $ol_enable_monitor = no -a \
3617                 $ol_enable_null = no -a \
3618                 $ol_enable_passwd = no -a \
3619                 $ol_enable_perl = no -a \
3620                 $ol_enable_relay = no -a \
3621                 $ol_enable_shell = no -a \
3622                 $ol_enable_sql = no ; then
3623
3624                 if test $ol_enable_slapd = yes ; then
3625                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3626 echo "$as_me: error: slapd requires a backend" >&2;}
3627    { (exit 1); exit 1; }; }
3628                 else
3629                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3630 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3631                         ol_enable_slapd=no
3632                 fi
3633         fi
3634
3635         ol_with_ldbm_api=no
3636         ol_with_ldbm_type=no
3637
3638         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3639                 ol_with_ldbm_api=berkeley
3640         fi
3641
3642 else
3643                 if test $ol_with_ldbm_api = gdbm -a \
3644                 $ol_with_ldbm_type = btree ; then
3645                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3646 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3647    { (exit 1); exit 1; }; }
3648         fi
3649         if test $ol_with_ldbm_api = mdbm -a \
3650                 $ol_with_ldbm_type = btree ; then
3651                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3652 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3653    { (exit 1); exit 1; }; }
3654         fi
3655         if test $ol_with_ldbm_api = ndbm -a \
3656                 $ol_with_ldbm_type = btree ; then
3657                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3658 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3659    { (exit 1); exit 1; }; }
3660         fi
3661
3662         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3663                 if test $ol_with_ldbm_api = auto ; then
3664                         ol_with_ldbm_api=berkeley
3665                 elif test $ol_with_ldbm_api != berkeley ; then
3666                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3667 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3668    { (exit 1); exit 1; }; }
3669                 fi
3670         fi
3671 fi
3672
3673 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3674         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3675 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3676    { (exit 1); exit 1; }; }
3677 fi
3678
3679 if test $ol_enable_slurpd = yes ; then
3680                 if test $ol_with_threads = no ; then
3681                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3682 echo "$as_me: error: slurpd requires threads" >&2;}
3683    { (exit 1); exit 1; }; }
3684         fi
3685 fi
3686
3687 if test $ol_enable_lmpasswd = yes ; then
3688         if test $ol_with_tls = no ; then
3689                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3690 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3691    { (exit 1); exit 1; }; }
3692         fi
3693 fi
3694
3695 if test $ol_enable_kbind = yes ; then
3696         if test $ol_with_kerberos = no ; then
3697                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3698 echo "$as_me: error: options require --with-kerberos" >&2;}
3699    { (exit 1); exit 1; }; }
3700         elif test $ol_with_kerberos = auto ; then
3701                 ol_with_kerberos=yes
3702         fi
3703
3704 elif test $ol_enable_kbind = no ; then
3705         if test $ol_with_kerberos = auto ; then
3706                 ol_with_kerberos=no
3707         elif test $ol_with_kerberos != no ; then
3708                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3709 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3710                 ol_with_kerberos=no
3711         fi
3712 fi
3713
3714 if test $ol_enable_spasswd = yes ; then
3715         if test $ol_with_cyrus_sasl = no ; then
3716                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3717 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3718    { (exit 1); exit 1; }; }
3719         fi
3720         ol_with_cyrus_sasl=yes
3721 fi
3722
3723 echo "$as_me:$LINENO: result: done" >&5
3724 echo "${ECHO_T}done" >&6
3725
3726 LDAP_LIBS=
3727 LDBM_LIBS=
3728 LTHREAD_LIBS=
3729 LUTIL_LIBS=
3730
3731 SLAPD_LIBS=
3732 SLURPD_LIBS=
3733
3734 BUILD_SLAPD=no
3735 BUILD_SLURPD=no
3736
3737 BUILD_THREAD=no
3738
3739 BUILD_SLAPI=no
3740 SLAPD_SLAPI_DEPEND=
3741
3742 BUILD_BDB=no
3743 BUILD_DNSSRV=no
3744 BUILD_HDB=no
3745 BUILD_LDAP=no
3746 BUILD_LDBM=no
3747 BUILD_META=no
3748 BUILD_MONITOR=no
3749 BUILD_NULL=no
3750 BUILD_PASSWD=no
3751 BUILD_PERL=no
3752 BUILD_RELAY=no
3753 BUILD_SHELL=no
3754 BUILD_SQL=no
3755
3756 BUILD_ACCESSLOG=no
3757 BUILD_DENYOP=no
3758 BUILD_DYNGROUP=no
3759 BUILD_DYNLIST=no
3760 BUILD_GLUE=no
3761 BUILD_LASTMOD=no
3762 BUILD_PPOLICY=no
3763 BUILD_PROXYCACHE=no
3764 BUILD_REFINT=no
3765 BUILD_RETCODE=no
3766 BUILD_RWM=no
3767 BUILD_SYNCPROV=no
3768 BUILD_TRANSLUCENT=no
3769 BUILD_UNIQUE=no
3770
3771 SLAPD_STATIC_OVERLAYS=
3772 SLAPD_DYNAMIC_OVERLAYS=
3773
3774 SLAPD_MODULES_LDFLAGS=
3775 SLAPD_MODULES_CPPFLAGS=
3776
3777 SLAPD_STATIC_BACKENDS=back-ldif
3778 SLAPD_DYNAMIC_BACKENDS=
3779
3780 SLAPD_PERL_LDFLAGS=
3781 MOD_PERL_LDFLAGS=
3782 PERL_CPPFLAGS=
3783
3784 SLAPD_SQL_LDFLAGS=
3785 SLAPD_SQL_LIBS=
3786 SLAPD_SQL_INCLUDES=
3787
3788 KRB4_LIBS=
3789 KRB5_LIBS=
3790 SASL_LIBS=
3791 TLS_LIBS=
3792 MODULES_LIBS=
3793 SLAPI_LIBS=
3794 LIBSLAPI=
3795 LIBSLAPITOOLS=
3796 AUTH_LIBS=
3797
3798 SLAPD_SLP_LIBS=
3799 SLAPD_GMP_LIBS=
3800
3801
3802
3803 cat >>confdefs.h <<\_ACEOF
3804 #define HAVE_MKVERSION 1
3805 _ACEOF
3806
3807
3808
3809
3810 ol_aix_threads=no
3811 case "$target" in
3812 *-*-aix*)       if test -z "$CC" ; then
3813                 case "$ol_with_threads" in
3814                 auto | yes |  posix) ol_aix_threads=yes ;;
3815                 esac
3816         fi
3817 ;;
3818 esac
3819
3820 if test $ol_aix_threads = yes ; then
3821         if test -z "${CC}" ; then
3822                 for ac_prog in cc_r xlc_r cc
3823 do
3824   # Extract the first word of "$ac_prog", so it can be a program name with args.
3825 set dummy $ac_prog; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_prog_CC+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   if test -n "$CC"; then
3832   ac_cv_prog_CC="$CC" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837   IFS=$as_save_IFS
3838   test -z "$as_dir" && as_dir=.
3839   for ac_exec_ext in '' $ac_executable_extensions; do
3840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841     ac_cv_prog_CC="$ac_prog"
3842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843     break 2
3844   fi
3845 done
3846 done
3847
3848 fi
3849 fi
3850 CC=$ac_cv_prog_CC
3851 if test -n "$CC"; then
3852   echo "$as_me:$LINENO: result: $CC" >&5
3853 echo "${ECHO_T}$CC" >&6
3854 else
3855   echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 fi
3858
3859   test -n "$CC" && break
3860 done
3861
3862
3863                 if test "$CC" = cc ; then
3864                                                 if test $ol_with_threads != auto ; then
3865                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3866 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3867    { (exit 1); exit 1; }; }
3868                         else
3869                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3870 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3871                         fi
3872                         ol_with_threads=no
3873                 fi
3874         fi
3875
3876         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3877                 ol_with_threads=posix
3878                 ol_cv_pthread_create=yes
3879         fi
3880 fi
3881
3882 if test -z "${CC}"; then
3883         for ac_prog in cc gcc
3884 do
3885   # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy $ac_prog; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_CC+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   if test -n "$CC"; then
3893   ac_cv_prog_CC="$CC" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900   for ac_exec_ext in '' $ac_executable_extensions; do
3901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902     ac_cv_prog_CC="$ac_prog"
3903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904     break 2
3905   fi
3906 done
3907 done
3908
3909 fi
3910 fi
3911 CC=$ac_cv_prog_CC
3912 if test -n "$CC"; then
3913   echo "$as_me:$LINENO: result: $CC" >&5
3914 echo "${ECHO_T}$CC" >&6
3915 else
3916   echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3918 fi
3919
3920   test -n "$CC" && break
3921 done
3922 test -n "$CC" || CC="missing"
3923
3924
3925         if test "${CC}" = "missing" ; then
3926                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3927 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3928    { (exit 1); exit 1; }; }
3929         fi
3930 fi
3931
3932 if test -z "${AR}"; then
3933         for ac_prog in ar gar
3934 do
3935   # Extract the first word of "$ac_prog", so it can be a program name with args.
3936 set dummy $ac_prog; ac_word=$2
3937 echo "$as_me:$LINENO: checking for $ac_word" >&5
3938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939 if test "${ac_cv_prog_AR+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   if test -n "$AR"; then
3943   ac_cv_prog_AR="$AR" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950   for ac_exec_ext in '' $ac_executable_extensions; do
3951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952     ac_cv_prog_AR="$ac_prog"
3953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954     break 2
3955   fi
3956 done
3957 done
3958
3959 fi
3960 fi
3961 AR=$ac_cv_prog_AR
3962 if test -n "$AR"; then
3963   echo "$as_me:$LINENO: result: $AR" >&5
3964 echo "${ECHO_T}$AR" >&6
3965 else
3966   echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3968 fi
3969
3970   test -n "$AR" && break
3971 done
3972 test -n "$AR" || AR="missing"
3973
3974
3975         if test "${AR}" = "missing" ; then
3976                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3977 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3978    { (exit 1); exit 1; }; }
3979         fi
3980 fi
3981
3982
3983
3984
3985
3986 # Check whether --enable-fast-install or --disable-fast-install was given.
3987 if test "${enable_fast_install+set}" = set; then
3988   enableval="$enable_fast_install"
3989   p=${PACKAGE-default}
3990     case $enableval in
3991     yes) enable_fast_install=yes ;;
3992     no) enable_fast_install=no ;;
3993     *)
3994       enable_fast_install=no
3995       # Look at the argument we got.  We use all the common list separators.
3996       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3997       for pkg in $enableval; do
3998         IFS="$lt_save_ifs"
3999         if test "X$pkg" = "X$p"; then
4000           enable_fast_install=yes
4001         fi
4002       done
4003       IFS="$lt_save_ifs"
4004       ;;
4005     esac
4006 else
4007   enable_fast_install=yes
4008 fi;
4009
4010 DEPDIR="${am__leading_dot}deps"
4011
4012           ac_config_commands="$ac_config_commands depfiles"
4013
4014
4015 am_make=${MAKE-make}
4016 cat > confinc << 'END'
4017 am__doit:
4018         @echo done
4019 .PHONY: am__doit
4020 END
4021 # If we don't find an include directive, just comment out the code.
4022 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4023 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4024 am__include="#"
4025 am__quote=
4026 _am_result=none
4027 # First try GNU make style include.
4028 echo "include confinc" > confmf
4029 # We grep out `Entering directory' and `Leaving directory'
4030 # messages which can occur if `w' ends up in MAKEFLAGS.
4031 # In particular we don't look at `^make:' because GNU make might
4032 # be invoked under some other name (usually "gmake"), in which
4033 # case it prints its new name instead of `make'.
4034 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4035    am__include=include
4036    am__quote=
4037    _am_result=GNU
4038 fi
4039 # Now try BSD make style include.
4040 if test "$am__include" = "#"; then
4041    echo '.include "confinc"' > confmf
4042    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4043       am__include=.include
4044       am__quote="\""
4045       _am_result=BSD
4046    fi
4047 fi
4048
4049
4050 echo "$as_me:$LINENO: result: $_am_result" >&5
4051 echo "${ECHO_T}$_am_result" >&6
4052 rm -f confinc confmf
4053
4054 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4055 if test "${enable_dependency_tracking+set}" = set; then
4056   enableval="$enable_dependency_tracking"
4057
4058 fi;
4059 if test "x$enable_dependency_tracking" != xno; then
4060   am_depcomp="$ac_aux_dir/depcomp"
4061   AMDEPBACKSLASH='\'
4062 fi
4063
4064
4065 if test "x$enable_dependency_tracking" != xno; then
4066   AMDEP_TRUE=
4067   AMDEP_FALSE='#'
4068 else
4069   AMDEP_TRUE='#'
4070   AMDEP_FALSE=
4071 fi
4072
4073
4074
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 if test -n "$ac_tool_prefix"; then
4081   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_CC+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   if test -n "$CC"; then
4089   ac_cv_prog_CC="$CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103 done
4104
4105 fi
4106 fi
4107 CC=$ac_cv_prog_CC
4108 if test -n "$CC"; then
4109   echo "$as_me:$LINENO: result: $CC" >&5
4110 echo "${ECHO_T}$CC" >&6
4111 else
4112   echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4114 fi
4115
4116 fi
4117 if test -z "$ac_cv_prog_CC"; then
4118   ac_ct_CC=$CC
4119   # Extract the first word of "gcc", so it can be a program name with args.
4120 set dummy gcc; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   if test -n "$ac_ct_CC"; then
4127   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134   for ac_exec_ext in '' $ac_executable_extensions; do
4135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136     ac_cv_prog_ac_ct_CC="gcc"
4137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138     break 2
4139   fi
4140 done
4141 done
4142
4143 fi
4144 fi
4145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146 if test -n "$ac_ct_CC"; then
4147   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4148 echo "${ECHO_T}$ac_ct_CC" >&6
4149 else
4150   echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4152 fi
4153
4154   CC=$ac_ct_CC
4155 else
4156   CC="$ac_cv_prog_CC"
4157 fi
4158
4159 if test -z "$CC"; then
4160   if test -n "$ac_tool_prefix"; then
4161   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4162 set dummy ${ac_tool_prefix}cc; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_prog_CC+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   if test -n "$CC"; then
4169   ac_cv_prog_CC="$CC" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176   for ac_exec_ext in '' $ac_executable_extensions; do
4177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178     ac_cv_prog_CC="${ac_tool_prefix}cc"
4179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180     break 2
4181   fi
4182 done
4183 done
4184
4185 fi
4186 fi
4187 CC=$ac_cv_prog_CC
4188 if test -n "$CC"; then
4189   echo "$as_me:$LINENO: result: $CC" >&5
4190 echo "${ECHO_T}$CC" >&6
4191 else
4192   echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196 fi
4197 if test -z "$ac_cv_prog_CC"; then
4198   ac_ct_CC=$CC
4199   # Extract the first word of "cc", so it can be a program name with args.
4200 set dummy cc; ac_word=$2
4201 echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   if test -n "$ac_ct_CC"; then
4207   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_exec_ext in '' $ac_executable_extensions; do
4215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216     ac_cv_prog_ac_ct_CC="cc"
4217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221 done
4222
4223 fi
4224 fi
4225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4226 if test -n "$ac_ct_CC"; then
4227   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4228 echo "${ECHO_T}$ac_ct_CC" >&6
4229 else
4230   echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4232 fi
4233
4234   CC=$ac_ct_CC
4235 else
4236   CC="$ac_cv_prog_CC"
4237 fi
4238
4239 fi
4240 if test -z "$CC"; then
4241   # Extract the first word of "cc", so it can be a program name with args.
4242 set dummy cc; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_CC+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$CC"; then
4249   ac_cv_prog_CC="$CC" # Let the user override the test.
4250 else
4251   ac_prog_rejected=no
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4260        ac_prog_rejected=yes
4261        continue
4262      fi
4263     ac_cv_prog_CC="cc"
4264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265     break 2
4266   fi
4267 done
4268 done
4269
4270 if test $ac_prog_rejected = yes; then
4271   # We found a bogon in the path, so make sure we never use it.
4272   set dummy $ac_cv_prog_CC
4273   shift
4274   if test $# != 0; then
4275     # We chose a different compiler from the bogus one.
4276     # However, it has the same basename, so the bogon will be chosen
4277     # first if we set CC to just the basename; use the full file name.
4278     shift
4279     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4280   fi
4281 fi
4282 fi
4283 fi
4284 CC=$ac_cv_prog_CC
4285 if test -n "$CC"; then
4286   echo "$as_me:$LINENO: result: $CC" >&5
4287 echo "${ECHO_T}$CC" >&6
4288 else
4289   echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4291 fi
4292
4293 fi
4294 if test -z "$CC"; then
4295   if test -n "$ac_tool_prefix"; then
4296   for ac_prog in cl
4297   do
4298     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4300 echo "$as_me:$LINENO: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4302 if test "${ac_cv_prog_CC+set}" = set; then
4303   echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305   if test -n "$CC"; then
4306   ac_cv_prog_CC="$CC" # Let the user override the test.
4307 else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313   for ac_exec_ext in '' $ac_executable_extensions; do
4314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317     break 2
4318   fi
4319 done
4320 done
4321
4322 fi
4323 fi
4324 CC=$ac_cv_prog_CC
4325 if test -n "$CC"; then
4326   echo "$as_me:$LINENO: result: $CC" >&5
4327 echo "${ECHO_T}$CC" >&6
4328 else
4329   echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4331 fi
4332
4333     test -n "$CC" && break
4334   done
4335 fi
4336 if test -z "$CC"; then
4337   ac_ct_CC=$CC
4338   for ac_prog in cl
4339 do
4340   # Extract the first word of "$ac_prog", so it can be a program name with args.
4341 set dummy $ac_prog; ac_word=$2
4342 echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4344 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   if test -n "$ac_ct_CC"; then
4348   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4349 else
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4352 do
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355   for ac_exec_ext in '' $ac_executable_extensions; do
4356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357     ac_cv_prog_ac_ct_CC="$ac_prog"
4358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4359     break 2
4360   fi
4361 done
4362 done
4363
4364 fi
4365 fi
4366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4367 if test -n "$ac_ct_CC"; then
4368   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4369 echo "${ECHO_T}$ac_ct_CC" >&6
4370 else
4371   echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6
4373 fi
4374
4375   test -n "$ac_ct_CC" && break
4376 done
4377
4378   CC=$ac_ct_CC
4379 fi
4380
4381 fi
4382
4383
4384 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4385 See \`config.log' for more details." >&5
4386 echo "$as_me: error: no acceptable C compiler found in \$PATH
4387 See \`config.log' for more details." >&2;}
4388    { (exit 1); exit 1; }; }
4389
4390 # Provide some information about the compiler.
4391 echo "$as_me:$LINENO:" \
4392      "checking for C compiler version" >&5
4393 ac_compiler=`set X $ac_compile; echo $2`
4394 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4395   (eval $ac_compiler --version </dev/null >&5) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }
4399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4400   (eval $ac_compiler -v </dev/null >&5) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }
4404 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4405   (eval $ac_compiler -V </dev/null >&5) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }
4409
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h.  */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h.  */
4416
4417 int
4418 main ()
4419 {
4420
4421   ;
4422   return 0;
4423 }
4424 _ACEOF
4425 ac_clean_files_save=$ac_clean_files
4426 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4427 # Try to create an executable without -o first, disregard a.out.
4428 # It will help us diagnose broken compilers, and finding out an intuition
4429 # of exeext.
4430 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4431 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4432 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4433 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4434   (eval $ac_link_default) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; then
4438   # Find the output, starting from the most likely.  This scheme is
4439 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4440 # resort.
4441
4442 # Be careful to initialize this variable, since it used to be cached.
4443 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4444 ac_cv_exeext=
4445 # b.out is created by i960 compilers.
4446 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4447 do
4448   test -f "$ac_file" || continue
4449   case $ac_file in
4450     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4451         ;;
4452     conftest.$ac_ext )
4453         # This is the source file.
4454         ;;
4455     [ab].out )
4456         # We found the default executable, but exeext='' is most
4457         # certainly right.
4458         break;;
4459     *.* )
4460         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4461         # FIXME: I believe we export ac_cv_exeext for Libtool,
4462         # but it would be cool to find out if it's true.  Does anybody
4463         # maintain Libtool? --akim.
4464         export ac_cv_exeext
4465         break;;
4466     * )
4467         break;;
4468   esac
4469 done
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4475 See \`config.log' for more details." >&5
4476 echo "$as_me: error: C compiler cannot create executables
4477 See \`config.log' for more details." >&2;}
4478    { (exit 77); exit 77; }; }
4479 fi
4480
4481 ac_exeext=$ac_cv_exeext
4482 echo "$as_me:$LINENO: result: $ac_file" >&5
4483 echo "${ECHO_T}$ac_file" >&6
4484
4485 # Check the compiler produces executables we can run.  If not, either
4486 # the compiler is broken, or we cross compile.
4487 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4488 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4489 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4490 # If not cross compiling, check that we can run a simple program.
4491 if test "$cross_compiling" != yes; then
4492   if { ac_try='./$ac_file'
4493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494   (eval $ac_try) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; }; then
4498     cross_compiling=no
4499   else
4500     if test "$cross_compiling" = maybe; then
4501         cross_compiling=yes
4502     else
4503         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4504 If you meant to cross compile, use \`--host'.
4505 See \`config.log' for more details." >&5
4506 echo "$as_me: error: cannot run C compiled programs.
4507 If you meant to cross compile, use \`--host'.
4508 See \`config.log' for more details." >&2;}
4509    { (exit 1); exit 1; }; }
4510     fi
4511   fi
4512 fi
4513 echo "$as_me:$LINENO: result: yes" >&5
4514 echo "${ECHO_T}yes" >&6
4515
4516 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4517 ac_clean_files=$ac_clean_files_save
4518 # Check the compiler produces executables we can run.  If not, either
4519 # the compiler is broken, or we cross compile.
4520 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4522 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4523 echo "${ECHO_T}$cross_compiling" >&6
4524
4525 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4526 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528   (eval $ac_link) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); }; then
4532   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4533 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4534 # work properly (i.e., refer to `conftest.exe'), while it won't with
4535 # `rm'.
4536 for ac_file in conftest.exe conftest conftest.*; do
4537   test -f "$ac_file" || continue
4538   case $ac_file in
4539     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4540     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4541           export ac_cv_exeext
4542           break;;
4543     * ) break;;
4544   esac
4545 done
4546 else
4547   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4548 See \`config.log' for more details." >&5
4549 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4550 See \`config.log' for more details." >&2;}
4551    { (exit 1); exit 1; }; }
4552 fi
4553
4554 rm -f conftest$ac_cv_exeext
4555 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4556 echo "${ECHO_T}$ac_cv_exeext" >&6
4557
4558 rm -f conftest.$ac_ext
4559 EXEEXT=$ac_cv_exeext
4560 ac_exeext=$EXEEXT
4561 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4562 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4563 if test "${ac_cv_objext+set}" = set; then
4564   echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566   cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572
4573 int
4574 main ()
4575 {
4576
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.o conftest.obj
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583   (eval $ac_compile) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; then
4587   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4588   case $ac_file in
4589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4590     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4591        break;;
4592   esac
4593 done
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4599 See \`config.log' for more details." >&5
4600 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4601 See \`config.log' for more details." >&2;}
4602    { (exit 1); exit 1; }; }
4603 fi
4604
4605 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4606 fi
4607 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4608 echo "${ECHO_T}$ac_cv_objext" >&6
4609 OBJEXT=$ac_cv_objext
4610 ac_objext=$OBJEXT
4611 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4612 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4613 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h.  */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h.  */
4622
4623 int
4624 main ()
4625 {
4626 #ifndef __GNUC__
4627        choke me
4628 #endif
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636   (eval $ac_compile) 2>conftest.er1
4637   ac_status=$?
4638   grep -v '^ *+' conftest.er1 >conftest.err
4639   rm -f conftest.er1
4640   cat conftest.err >&5
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } &&
4643          { ac_try='test -z "$ac_c_werror_flag"
4644                          || test ! -s conftest.err'
4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646   (eval $ac_try) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; } &&
4650          { ac_try='test -s conftest.$ac_objext'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656   ac_compiler_gnu=yes
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 ac_compiler_gnu=no
4662 fi
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4665
4666 fi
4667 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4669 GCC=`test $ac_compiler_gnu = yes && echo yes`
4670 ac_test_CFLAGS=${CFLAGS+set}
4671 ac_save_CFLAGS=$CFLAGS
4672 CFLAGS="-g"
4673 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4675 if test "${ac_cv_prog_cc_g+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h.  */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h.  */
4684
4685 int
4686 main ()
4687 {
4688
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695   (eval $ac_compile) 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } &&
4702          { ac_try='test -z "$ac_c_werror_flag"
4703                          || test ! -s conftest.err'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; } &&
4709          { ac_try='test -s conftest.$ac_objext'
4710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); }; }; then
4715   ac_cv_prog_cc_g=yes
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_cv_prog_cc_g=no
4721 fi
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4725 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4726 if test "$ac_test_CFLAGS" = set; then
4727   CFLAGS=$ac_save_CFLAGS
4728 elif test $ac_cv_prog_cc_g = yes; then
4729   if test "$GCC" = yes; then
4730     CFLAGS="-g -O2"
4731   else
4732     CFLAGS="-g"
4733   fi
4734 else
4735   if test "$GCC" = yes; then
4736     CFLAGS="-O2"
4737   else
4738     CFLAGS=
4739   fi
4740 fi
4741 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4742 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4743 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   ac_cv_prog_cc_stdc=no
4747 ac_save_CC=$CC
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h.  */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h.  */
4754 #include <stdarg.h>
4755 #include <stdio.h>
4756 #include <sys/types.h>
4757 #include <sys/stat.h>
4758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4759 struct buf { int x; };
4760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4761 static char *e (p, i)
4762      char **p;
4763      int i;
4764 {
4765   return p[i];
4766 }
4767 static char *f (char * (*g) (char **, int), char **p, ...)
4768 {
4769   char *s;
4770   va_list v;
4771   va_start (v,p);
4772   s = g (p, va_arg (v,int));
4773   va_end (v);
4774   return s;
4775 }
4776
4777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4778    function prototypes and stuff, but not '\xHH' hex character constants.
4779    These don't provoke an error unfortunately, instead are silently treated
4780    as 'x'.  The following induces an error, until -std1 is added to get
4781    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4782    array size at least.  It's necessary to write '\x00'==0 to get something
4783    that's true only with -std1.  */
4784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4785
4786 int test (int i, double x);
4787 struct s1 {int (*f) (int a);};
4788 struct s2 {int (*f) (double a);};
4789 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4790 int argc;
4791 char **argv;
4792 int
4793 main ()
4794 {
4795 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4796   ;
4797   return 0;
4798 }
4799 _ACEOF
4800 # Don't try gcc -ansi; that turns off useful extensions and
4801 # breaks some systems' header files.
4802 # AIX                   -qlanglvl=ansi
4803 # Ultrix and OSF/1      -std1
4804 # HP-UX 10.20 and later -Ae
4805 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4806 # SVR4                  -Xc -D__EXTENSIONS__
4807 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4808 do
4809   CC="$ac_save_CC $ac_arg"
4810   rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -z "$ac_c_werror_flag"
4820                          || test ! -s conftest.err'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; } &&
4826          { ac_try='test -s conftest.$ac_objext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   ac_cv_prog_cc_stdc=$ac_arg
4833 break
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 fi
4839 rm -f conftest.err conftest.$ac_objext
4840 done
4841 rm -f conftest.$ac_ext conftest.$ac_objext
4842 CC=$ac_save_CC
4843
4844 fi
4845
4846 case "x$ac_cv_prog_cc_stdc" in
4847   x|xno)
4848     echo "$as_me:$LINENO: result: none needed" >&5
4849 echo "${ECHO_T}none needed" >&6 ;;
4850   *)
4851     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4852 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4853     CC="$CC $ac_cv_prog_cc_stdc" ;;
4854 esac
4855
4856 # Some people use a C++ compiler to compile C.  Since we use `exit',
4857 # in C++ we need to declare it.  In case someone uses the same compiler
4858 # for both compiling C and C++ we need to have the C++ compiler decide
4859 # the declaration of exit, since it's the most demanding environment.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 #ifndef __cplusplus
4862   choke me
4863 #endif
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867   (eval $ac_compile) 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } &&
4874          { ac_try='test -z "$ac_c_werror_flag"
4875                          || test ! -s conftest.err'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; } &&
4881          { ac_try='test -s conftest.$ac_objext'
4882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883   (eval $ac_try) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }; }; then
4887   for ac_declaration in \
4888    '' \
4889    'extern "C" void std::exit (int) throw (); using std::exit;' \
4890    'extern "C" void std::exit (int); using std::exit;' \
4891    'extern "C" void exit (int) throw ();' \
4892    'extern "C" void exit (int);' \
4893    'void exit (int);'
4894 do
4895   cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h.  */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h.  */
4901 $ac_declaration
4902 #include <stdlib.h>
4903 int
4904 main ()
4905 {
4906 exit (42);
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913   (eval $ac_compile) 2>conftest.er1
4914   ac_status=$?
4915   grep -v '^ *+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); } &&
4920          { ac_try='test -z "$ac_c_werror_flag"
4921                          || test ! -s conftest.err'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; } &&
4927          { ac_try='test -s conftest.$ac_objext'
4928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929   (eval $ac_try) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; }; then
4933   :
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938 continue
4939 fi
4940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4941   cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h.  */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h.  */
4947 $ac_declaration
4948 int
4949 main ()
4950 {
4951 exit (42);
4952   ;
4953   return 0;
4954 }
4955 _ACEOF
4956 rm -f conftest.$ac_objext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958   (eval $ac_compile) 2>conftest.er1
4959   ac_status=$?
4960   grep -v '^ *+' conftest.er1 >conftest.err
4961   rm -f conftest.er1
4962   cat conftest.err >&5
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } &&
4965          { ac_try='test -z "$ac_c_werror_flag"
4966                          || test ! -s conftest.err'
4967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968   (eval $ac_try) 2>&5
4969   ac_status=$?
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); }; } &&
4972          { ac_try='test -s conftest.$ac_objext'
4973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974   (eval $ac_try) 2>&5
4975   ac_status=$?
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); }; }; then
4978   break
4979 else
4980   echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 fi
4984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4985 done
4986 rm -f conftest*
4987 if test -n "$ac_declaration"; then
4988   echo '#ifdef __cplusplus' >>confdefs.h
4989   echo $ac_declaration      >>confdefs.h
4990   echo '#endif'             >>confdefs.h
4991 fi
4992
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 fi
4998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4999 ac_ext=c
5000 ac_cpp='$CPP $CPPFLAGS'
5001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004
5005 depcc="$CC"   am_compiler_list=
5006
5007 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5008 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5009 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5013   # We make a subdir and do the tests there.  Otherwise we can end up
5014   # making bogus files that we don't know about and never remove.  For
5015   # instance it was reported that on HP-UX the gcc test will end up
5016   # making a dummy file named `D' -- because `-MD' means `put the output
5017   # in D'.
5018   mkdir conftest.dir
5019   # Copy depcomp to subdir because otherwise we won't find it if we're
5020   # using a relative directory.
5021   cp "$am_depcomp" conftest.dir
5022   cd conftest.dir
5023   # We will build objects and dependencies in a subdirectory because
5024   # it helps to detect inapplicable dependency modes.  For instance
5025   # both Tru64's cc and ICC support -MD to output dependencies as a
5026   # side effect of compilation, but ICC will put the dependencies in
5027   # the current directory while Tru64 will put them in the object
5028   # directory.
5029   mkdir sub
5030
5031   am_cv_CC_dependencies_compiler_type=none
5032   if test "$am_compiler_list" = ""; then
5033      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5034   fi
5035   for depmode in $am_compiler_list; do
5036     # Setup a source with many dependencies, because some compilers
5037     # like to wrap large dependency lists on column 80 (with \), and
5038     # we should not choose a depcomp mode which is confused by this.
5039     #
5040     # We need to recreate these files for each test, as the compiler may
5041     # overwrite some of them when testing with obscure command lines.
5042     # This happens at least with the AIX C compiler.
5043     : > sub/conftest.c
5044     for i in 1 2 3 4 5 6; do
5045       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5046       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5047       # Solaris 8's {/usr,}/bin/sh.
5048       touch sub/conftst$i.h
5049     done
5050     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5051
5052     case $depmode in
5053     nosideeffect)
5054       # after this tag, mechanisms are not by side-effect, so they'll
5055       # only be used when explicitly requested
5056       if test "x$enable_dependency_tracking" = xyes; then
5057         continue
5058       else
5059         break
5060       fi
5061       ;;
5062     none) break ;;
5063     esac
5064     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5065     # mode.  It turns out that the SunPro C++ compiler does not properly
5066     # handle `-M -o', and we need to detect this.
5067     if depmode=$depmode \
5068        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5069        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5070        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5071          >/dev/null 2>conftest.err &&
5072        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5074        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075       # icc doesn't choke on unknown options, it will just issue warnings
5076       # or remarks (even with -Werror).  So we grep stderr for any message
5077       # that says an option was ignored or not supported.
5078       # When given -MP, icc 7.0 and 7.1 complain thusly:
5079       #   icc: Command line warning: ignoring option '-M'; no argument required
5080       # The diagnosis changed in icc 8.0:
5081       #   icc: Command line remark: option '-MP' not supported
5082       if (grep 'ignoring option' conftest.err ||
5083           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084         am_cv_CC_dependencies_compiler_type=$depmode
5085         break
5086       fi
5087     fi
5088   done
5089
5090   cd ..
5091   rm -rf conftest.dir
5092 else
5093   am_cv_CC_dependencies_compiler_type=none
5094 fi
5095
5096 fi
5097 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5098 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5099 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5100
5101
5102
5103 if
5104   test "x$enable_dependency_tracking" != xno \
5105   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5106   am__fastdepCC_TRUE=
5107   am__fastdepCC_FALSE='#'
5108 else
5109   am__fastdepCC_TRUE='#'
5110   am__fastdepCC_FALSE=
5111 fi
5112
5113
5114 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5115 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5116 if test "${lt_cv_path_SED+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119   # Loop through the user's path and test for sed and gsed.
5120 # Then use that list of sed's as ones to test for truncation.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126   for lt_ac_prog in sed gsed; do
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5129         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5130       fi
5131     done
5132   done
5133 done
5134 lt_ac_max=0
5135 lt_ac_count=0
5136 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5137 # along with /bin/sed that truncates output.
5138 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5139   test ! -f $lt_ac_sed && continue
5140   cat /dev/null > conftest.in
5141   lt_ac_count=0
5142   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5143   # Check for GNU sed and select it if it is found.
5144   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5145     lt_cv_path_SED=$lt_ac_sed
5146     break
5147   fi
5148   while true; do
5149     cat conftest.in conftest.in >conftest.tmp
5150     mv conftest.tmp conftest.in
5151     cp conftest.in conftest.nl
5152     echo >>conftest.nl
5153     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5154     cmp -s conftest.out conftest.nl || break
5155     # 10000 chars as input seems more than enough
5156     test $lt_ac_count -gt 10 && break
5157     lt_ac_count=`expr $lt_ac_count + 1`
5158     if test $lt_ac_count -gt $lt_ac_max; then
5159       lt_ac_max=$lt_ac_count
5160       lt_cv_path_SED=$lt_ac_sed
5161     fi
5162   done
5163 done
5164
5165 fi
5166
5167 SED=$lt_cv_path_SED
5168 echo "$as_me:$LINENO: result: $SED" >&5
5169 echo "${ECHO_T}$SED" >&6
5170
5171 echo "$as_me:$LINENO: checking for egrep" >&5
5172 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5173 if test "${ac_cv_prog_egrep+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5177     then ac_cv_prog_egrep='grep -E'
5178     else ac_cv_prog_egrep='egrep'
5179     fi
5180 fi
5181 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5182 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5183  EGREP=$ac_cv_prog_egrep
5184
5185
5186
5187 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5188 if test "${with_gnu_ld+set}" = set; then
5189   withval="$with_gnu_ld"
5190   test "$withval" = no || with_gnu_ld=yes
5191 else
5192   with_gnu_ld=no
5193 fi;
5194 ac_prog=ld
5195 if test "$GCC" = yes; then
5196   # Check if gcc -print-prog-name=ld gives a path.
5197   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5198 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5199   case $host in
5200   *-*-mingw*)
5201     # gcc leaves a trailing carriage return which upsets mingw
5202     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5203   *)
5204     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5205   esac
5206   case $ac_prog in
5207     # Accept absolute paths.
5208     [\\/]* | ?:[\\/]*)
5209       re_direlt='/[^/][^/]*/\.\./'
5210       # Canonicalize the pathname of ld
5211       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5212       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5213         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5214       done
5215       test -z "$LD" && LD="$ac_prog"
5216       ;;
5217   "")
5218     # If it fails, then pretend we aren't using GCC.
5219     ac_prog=ld
5220     ;;
5221   *)
5222     # If it is relative, then search for the first ld in PATH.
5223     with_gnu_ld=unknown
5224     ;;
5225   esac
5226 elif test "$with_gnu_ld" = yes; then
5227   echo "$as_me:$LINENO: checking for GNU ld" >&5
5228 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5229 else
5230   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5231 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5232 fi
5233 if test "${lt_cv_path_LD+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   if test -z "$LD"; then
5237   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5238   for ac_dir in $PATH; do
5239     IFS="$lt_save_ifs"
5240     test -z "$ac_dir" && ac_dir=.
5241     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5242       lt_cv_path_LD="$ac_dir/$ac_prog"
5243       # Check to see if the program is GNU ld.  I'd rather use --version,
5244       # but apparently some GNU ld's only accept -v.
5245       # Break only if it was the GNU/non-GNU ld that we prefer.
5246       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5247       *GNU* | *'with BFD'*)
5248         test "$with_gnu_ld" != no && break
5249         ;;
5250       *)
5251         test "$with_gnu_ld" != yes && break
5252         ;;
5253       esac
5254     fi
5255   done
5256   IFS="$lt_save_ifs"
5257 else
5258   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5259 fi
5260 fi
5261
5262 LD="$lt_cv_path_LD"
5263 if test -n "$LD"; then
5264   echo "$as_me:$LINENO: result: $LD" >&5
5265 echo "${ECHO_T}$LD" >&6
5266 else
5267   echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5269 fi
5270 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5271 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5272    { (exit 1); exit 1; }; }
5273 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5274 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5275 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5279 case `$LD -v 2>&1 </dev/null` in
5280 *GNU* | *'with BFD'*)
5281   lt_cv_prog_gnu_ld=yes
5282   ;;
5283 *)
5284   lt_cv_prog_gnu_ld=no
5285   ;;
5286 esac
5287 fi
5288 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5289 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5290 with_gnu_ld=$lt_cv_prog_gnu_ld
5291
5292
5293 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5294 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5295 if test "${lt_cv_ld_reload_flag+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   lt_cv_ld_reload_flag='-r'
5299 fi
5300 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5301 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5302 reload_flag=$lt_cv_ld_reload_flag
5303 case $reload_flag in
5304 "" | " "*) ;;
5305 *) reload_flag=" $reload_flag" ;;
5306 esac
5307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5308 case $host_os in
5309   darwin*)
5310     if test "$GCC" = yes; then
5311       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5312     else
5313       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5314     fi
5315     ;;
5316 esac
5317
5318 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5319 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5320 if test "${lt_cv_path_NM+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   if test -n "$NM"; then
5324   # Let the user override the test.
5325   lt_cv_path_NM="$NM"
5326 else
5327   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5328   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5329     IFS="$lt_save_ifs"
5330     test -z "$ac_dir" && ac_dir=.
5331     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5332     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5333       # Check to see if the nm accepts a BSD-compat flag.
5334       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5335       #   nm: unknown option "B" ignored
5336       # Tru64's nm complains that /dev/null is an invalid object file
5337       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5338       */dev/null* | *'Invalid file or object type'*)
5339         lt_cv_path_NM="$tmp_nm -B"
5340         break
5341         ;;
5342       *)
5343         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5344         */dev/null*)
5345           lt_cv_path_NM="$tmp_nm -p"
5346           break
5347           ;;
5348         *)
5349           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5350           continue # so that we can try to find one that supports BSD flags
5351           ;;
5352         esac
5353       esac
5354     fi
5355   done
5356   IFS="$lt_save_ifs"
5357   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5358 fi
5359 fi
5360 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5361 echo "${ECHO_T}$lt_cv_path_NM" >&6
5362 NM="$lt_cv_path_NM"
5363
5364 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5365 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5366 LN_S=$as_ln_s
5367 if test "$LN_S" = "ln -s"; then
5368   echo "$as_me:$LINENO: result: yes" >&5
5369 echo "${ECHO_T}yes" >&6
5370 else
5371   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5372 echo "${ECHO_T}no, using $LN_S" >&6
5373 fi
5374
5375 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5376 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5377 if test "${lt_cv_deplibs_check_method+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380   lt_cv_file_magic_cmd='$MAGIC_CMD'
5381 lt_cv_file_magic_test_file=
5382 lt_cv_deplibs_check_method='unknown'
5383 # Need to set the preceding variable on all platforms that support
5384 # interlibrary dependencies.
5385 # 'none' -- dependencies not supported.
5386 # `unknown' -- same as none, but documents that we really don't know.
5387 # 'pass_all' -- all dependencies passed with no checks.
5388 # 'test_compile' -- check by making test program.
5389 # 'file_magic [[regex]]' -- check by looking for files in library path
5390 # which responds to the $file_magic_cmd with a given extended regex.
5391 # If you have `file' or equivalent on your system and you're not sure
5392 # whether `pass_all' will *always* work, you probably want this one.
5393
5394 case $host_os in
5395 aix4* | aix5*)
5396   lt_cv_deplibs_check_method=pass_all
5397   ;;
5398
5399 beos*)
5400   lt_cv_deplibs_check_method=pass_all
5401   ;;
5402
5403 bsdi[45]*)
5404   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5405   lt_cv_file_magic_cmd='/usr/bin/file -L'
5406   lt_cv_file_magic_test_file=/shlib/libc.so
5407   ;;
5408
5409 cygwin*)
5410   # func_win32_libid is a shell function defined in ltmain.sh
5411   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5412   lt_cv_file_magic_cmd='func_win32_libid'
5413   ;;
5414
5415 mingw* | pw32*)
5416   # Base MSYS/MinGW do not provide the 'file' command needed by
5417   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5418   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5419   lt_cv_file_magic_cmd='$OBJDUMP -f'
5420   ;;
5421
5422 darwin* | rhapsody*)
5423   lt_cv_deplibs_check_method=pass_all
5424   ;;
5425
5426 freebsd* | kfreebsd*-gnu | dragonfly*)
5427   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5428     case $host_cpu in
5429     i*86 )
5430       # Not sure whether the presence of OpenBSD here was a mistake.
5431       # Let's accept both of them until this is cleared up.
5432       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5433       lt_cv_file_magic_cmd=/usr/bin/file
5434       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5435       ;;
5436     esac
5437   else
5438     lt_cv_deplibs_check_method=pass_all
5439   fi
5440   ;;
5441
5442 gnu*)
5443   lt_cv_deplibs_check_method=pass_all
5444   ;;
5445
5446 hpux10.20* | hpux11*)
5447   lt_cv_file_magic_cmd=/usr/bin/file
5448   case "$host_cpu" in
5449   ia64*)
5450     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5451     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5452     ;;
5453   hppa*64*)
5454     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]'
5455     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5456     ;;
5457   *)
5458     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5459     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5460     ;;
5461   esac
5462   ;;
5463
5464 irix5* | irix6* | nonstopux*)
5465   case $LD in
5466   *-32|*"-32 ") libmagic=32-bit;;
5467   *-n32|*"-n32 ") libmagic=N32;;
5468   *-64|*"-64 ") libmagic=64-bit;;
5469   *) libmagic=never-match;;
5470   esac
5471   lt_cv_deplibs_check_method=pass_all
5472   ;;
5473
5474 # This must be Linux ELF.
5475 linux*)
5476   lt_cv_deplibs_check_method=pass_all
5477   ;;
5478
5479 netbsd*)
5480   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5481     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5482   else
5483     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5484   fi
5485   ;;
5486
5487 newos6*)
5488   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5489   lt_cv_file_magic_cmd=/usr/bin/file
5490   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5491   ;;
5492
5493 nto-qnx*)
5494   lt_cv_deplibs_check_method=unknown
5495   ;;
5496
5497 openbsd*)
5498   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5499     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5500   else
5501     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5502   fi
5503   ;;
5504
5505 osf3* | osf4* | osf5*)
5506   lt_cv_deplibs_check_method=pass_all
5507   ;;
5508
5509 sco3.2v5*)
5510   lt_cv_deplibs_check_method=pass_all
5511   ;;
5512
5513 solaris*)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516
5517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5518   case $host_vendor in
5519   motorola)
5520     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]'
5521     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5522     ;;
5523   ncr)
5524     lt_cv_deplibs_check_method=pass_all
5525     ;;
5526   sequent)
5527     lt_cv_file_magic_cmd='/bin/file'
5528     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5529     ;;
5530   sni)
5531     lt_cv_file_magic_cmd='/bin/file'
5532     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5533     lt_cv_file_magic_test_file=/lib/libc.so
5534     ;;
5535   siemens)
5536     lt_cv_deplibs_check_method=pass_all
5537     ;;
5538   esac
5539   ;;
5540
5541 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544 esac
5545
5546 fi
5547 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5548 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5549 file_magic_cmd=$lt_cv_file_magic_cmd
5550 deplibs_check_method=$lt_cv_deplibs_check_method
5551 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5552
5553
5554
5555
5556 # If no C compiler was specified, use CC.
5557 LTCC=${LTCC-"$CC"}
5558
5559 # Allow CC to be a program name with arguments.
5560 compiler=$CC
5561
5562
5563 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5564 if test "${enable_libtool_lock+set}" = set; then
5565   enableval="$enable_libtool_lock"
5566
5567 fi;
5568 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5569
5570 # Some flags need to be propagated to the compiler or linker for good
5571 # libtool support.
5572 case $host in
5573 ia64-*-hpux*)
5574   # Find out which ABI we are using.
5575   echo 'int i;' > conftest.$ac_ext
5576   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577   (eval $ac_compile) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; then
5581     case `/usr/bin/file conftest.$ac_objext` in
5582     *ELF-32*)
5583       HPUX_IA64_MODE="32"
5584       ;;
5585     *ELF-64*)
5586       HPUX_IA64_MODE="64"
5587       ;;
5588     esac
5589   fi
5590   rm -rf conftest*
5591   ;;
5592 *-*-irix6*)
5593   # Find out which ABI we are using.
5594   echo '#line 5594 "configure"' > conftest.$ac_ext
5595   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596   (eval $ac_compile) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; then
5600    if test "$lt_cv_prog_gnu_ld" = yes; then
5601     case `/usr/bin/file conftest.$ac_objext` in
5602     *32-bit*)
5603       LD="${LD-ld} -melf32bsmip"
5604       ;;
5605     *N32*)
5606       LD="${LD-ld} -melf32bmipn32"
5607       ;;
5608     *64-bit*)
5609       LD="${LD-ld} -melf64bmip"
5610       ;;
5611     esac
5612    else
5613     case `/usr/bin/file conftest.$ac_objext` in
5614     *32-bit*)
5615       LD="${LD-ld} -32"
5616       ;;
5617     *N32*)
5618       LD="${LD-ld} -n32"
5619       ;;
5620     *64-bit*)
5621       LD="${LD-ld} -64"
5622       ;;
5623     esac
5624    fi
5625   fi
5626   rm -rf conftest*
5627   ;;
5628
5629 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5630   # Find out which ABI we are using.
5631   echo 'int i;' > conftest.$ac_ext
5632   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633   (eval $ac_compile) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); }; then
5637     case "`/usr/bin/file conftest.o`" in
5638     *32-bit*)
5639       case $host in
5640         x86_64-*linux*)
5641           LD="${LD-ld} -m elf_i386"
5642           ;;
5643         ppc64-*linux*|powerpc64-*linux*)
5644           LD="${LD-ld} -m elf32ppclinux"
5645           ;;
5646         s390x-*linux*)
5647           LD="${LD-ld} -m elf_s390"
5648           ;;
5649         sparc64-*linux*)
5650           LD="${LD-ld} -m elf32_sparc"
5651           ;;
5652       esac
5653       ;;
5654     *64-bit*)
5655       case $host in
5656         x86_64-*linux*)
5657           LD="${LD-ld} -m elf_x86_64"
5658           ;;
5659         ppc*-*linux*|powerpc*-*linux*)
5660           LD="${LD-ld} -m elf64ppc"
5661           ;;
5662         s390*-*linux*)
5663           LD="${LD-ld} -m elf64_s390"
5664           ;;
5665         sparc*-*linux*)
5666           LD="${LD-ld} -m elf64_sparc"
5667           ;;
5668       esac
5669       ;;
5670     esac
5671   fi
5672   rm -rf conftest*
5673   ;;
5674
5675 *-*-sco3.2v5*)
5676   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5677   SAVE_CFLAGS="$CFLAGS"
5678   CFLAGS="$CFLAGS -belf"
5679   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5680 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5681 if test "${lt_cv_cc_needs_belf+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684   ac_ext=c
5685 ac_cpp='$CPP $CPPFLAGS'
5686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689
5690      cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696
5697 int
5698 main ()
5699 {
5700
5701   ;
5702   return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext conftest$ac_exeext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5707   (eval $ac_link) 2>conftest.er1
5708   ac_status=$?
5709   grep -v '^ *+' conftest.er1 >conftest.err
5710   rm -f conftest.er1
5711   cat conftest.err >&5
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); } &&
5714          { ac_try='test -z "$ac_c_werror_flag"
5715                          || test ! -s conftest.err'
5716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717   (eval $ac_try) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); }; } &&
5721          { ac_try='test -s conftest$ac_exeext'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; }; then
5727   lt_cv_cc_needs_belf=yes
5728 else
5729   echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 lt_cv_cc_needs_belf=no
5733 fi
5734 rm -f conftest.err conftest.$ac_objext \
5735       conftest$ac_exeext conftest.$ac_ext
5736      ac_ext=c
5737 ac_cpp='$CPP $CPPFLAGS'
5738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5741
5742 fi
5743 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5744 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5745   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5746     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5747     CFLAGS="$SAVE_CFLAGS"
5748   fi
5749   ;;
5750 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5751   if test -n "$ac_tool_prefix"; then
5752   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5753 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   if test -n "$DLLTOOL"; then
5760   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767   for ac_exec_ext in '' $ac_executable_extensions; do
5768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774 done
5775
5776 fi
5777 fi
5778 DLLTOOL=$ac_cv_prog_DLLTOOL
5779 if test -n "$DLLTOOL"; then
5780   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5781 echo "${ECHO_T}$DLLTOOL" >&6
5782 else
5783   echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5785 fi
5786
5787 fi
5788 if test -z "$ac_cv_prog_DLLTOOL"; then
5789   ac_ct_DLLTOOL=$DLLTOOL
5790   # Extract the first word of "dlltool", so it can be a program name with args.
5791 set dummy dlltool; ac_word=$2
5792 echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5794 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   if test -n "$ac_ct_DLLTOOL"; then
5798   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803   IFS=$as_save_IFS
5804   test -z "$as_dir" && as_dir=.
5805   for ac_exec_ext in '' $ac_executable_extensions; do
5806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809     break 2
5810   fi
5811 done
5812 done
5813
5814   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5815 fi
5816 fi
5817 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5818 if test -n "$ac_ct_DLLTOOL"; then
5819   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5820 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5821 else
5822   echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6
5824 fi
5825
5826   DLLTOOL=$ac_ct_DLLTOOL
5827 else
5828   DLLTOOL="$ac_cv_prog_DLLTOOL"
5829 fi
5830
5831   if test -n "$ac_tool_prefix"; then
5832   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}as; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_AS+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   if test -n "$AS"; then
5840   ac_cv_prog_AS="$AS" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847   for ac_exec_ext in '' $ac_executable_extensions; do
5848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849     ac_cv_prog_AS="${ac_tool_prefix}as"
5850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854 done
5855
5856 fi
5857 fi
5858 AS=$ac_cv_prog_AS
5859 if test -n "$AS"; then
5860   echo "$as_me:$LINENO: result: $AS" >&5
5861 echo "${ECHO_T}$AS" >&6
5862 else
5863   echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6
5865 fi
5866
5867 fi
5868 if test -z "$ac_cv_prog_AS"; then
5869   ac_ct_AS=$AS
5870   # Extract the first word of "as", so it can be a program name with args.
5871 set dummy as; ac_word=$2
5872 echo "$as_me:$LINENO: checking for $ac_word" >&5
5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5874 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   if test -n "$ac_ct_AS"; then
5878   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5879 else
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   for ac_exec_ext in '' $ac_executable_extensions; do
5886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887     ac_cv_prog_ac_ct_AS="as"
5888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892 done
5893
5894   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5895 fi
5896 fi
5897 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5898 if test -n "$ac_ct_AS"; then
5899   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5900 echo "${ECHO_T}$ac_ct_AS" >&6
5901 else
5902   echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5904 fi
5905
5906   AS=$ac_ct_AS
5907 else
5908   AS="$ac_cv_prog_AS"
5909 fi
5910
5911   if test -n "$ac_tool_prefix"; then
5912   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5913 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   if test -n "$OBJDUMP"; then
5920   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935
5936 fi
5937 fi
5938 OBJDUMP=$ac_cv_prog_OBJDUMP
5939 if test -n "$OBJDUMP"; then
5940   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5941 echo "${ECHO_T}$OBJDUMP" >&6
5942 else
5943   echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 fi
5946
5947 fi
5948 if test -z "$ac_cv_prog_OBJDUMP"; then
5949   ac_ct_OBJDUMP=$OBJDUMP
5950   # Extract the first word of "objdump", so it can be a program name with args.
5951 set dummy objdump; ac_word=$2
5952 echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5954 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   if test -n "$ac_ct_OBJDUMP"; then
5958   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963   IFS=$as_save_IFS
5964   test -z "$as_dir" && as_dir=.
5965   for ac_exec_ext in '' $ac_executable_extensions; do
5966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969     break 2
5970   fi
5971 done
5972 done
5973
5974   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5975 fi
5976 fi
5977 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5978 if test -n "$ac_ct_OBJDUMP"; then
5979   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5980 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5981 else
5982   echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5984 fi
5985
5986   OBJDUMP=$ac_ct_OBJDUMP
5987 else
5988   OBJDUMP="$ac_cv_prog_OBJDUMP"
5989 fi
5990
5991   ;;
5992
5993 esac
5994
5995 need_locks="$enable_libtool_lock"
5996
5997
5998 ac_ext=c
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6004 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6005 # On Suns, sometimes $CPP names a directory.
6006 if test -n "$CPP" && test -d "$CPP"; then
6007   CPP=
6008 fi
6009 if test -z "$CPP"; then
6010   if test "${ac_cv_prog_CPP+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013       # Double quotes because CPP needs to be expanded
6014     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6015     do
6016       ac_preproc_ok=false
6017 for ac_c_preproc_warn_flag in '' yes
6018 do
6019   # Use a header file that comes with gcc, so configuring glibc
6020   # with a fresh cross-compiler works.
6021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6022   # <limits.h> exists even on freestanding compilers.
6023   # On the NeXT, cc -E runs the code through the compiler's parser,
6024   # not just through cpp. "Syntax error" is here to catch this case.
6025   cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h.  */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h.  */
6031 #ifdef __STDC__
6032 # include <limits.h>
6033 #else
6034 # include <assert.h>
6035 #endif
6036                      Syntax error
6037 _ACEOF
6038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6040   ac_status=$?
6041   grep -v '^ *+' conftest.er1 >conftest.err
6042   rm -f conftest.er1
6043   cat conftest.err >&5
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } >/dev/null; then
6046   if test -s conftest.err; then
6047     ac_cpp_err=$ac_c_preproc_warn_flag
6048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6049   else
6050     ac_cpp_err=
6051   fi
6052 else
6053   ac_cpp_err=yes
6054 fi
6055 if test -z "$ac_cpp_err"; then
6056   :
6057 else
6058   echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061   # Broken: fails on valid input.
6062 continue
6063 fi
6064 rm -f conftest.err conftest.$ac_ext
6065
6066   # OK, works on sane cases.  Now check whether non-existent headers
6067   # can be detected and how.
6068   cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h.  */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h.  */
6074 #include <ac_nonexistent.h>
6075 _ACEOF
6076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6078   ac_status=$?
6079   grep -v '^ *+' conftest.er1 >conftest.err
6080   rm -f conftest.er1
6081   cat conftest.err >&5
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } >/dev/null; then
6084   if test -s conftest.err; then
6085     ac_cpp_err=$ac_c_preproc_warn_flag
6086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6087   else
6088     ac_cpp_err=
6089   fi
6090 else
6091   ac_cpp_err=yes
6092 fi
6093 if test -z "$ac_cpp_err"; then
6094   # Broken: success on invalid input.
6095 continue
6096 else
6097   echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6099
6100   # Passes both tests.
6101 ac_preproc_ok=:
6102 break
6103 fi
6104 rm -f conftest.err conftest.$ac_ext
6105
6106 done
6107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6108 rm -f conftest.err conftest.$ac_ext
6109 if $ac_preproc_ok; then
6110   break
6111 fi
6112
6113     done
6114     ac_cv_prog_CPP=$CPP
6115
6116 fi
6117   CPP=$ac_cv_prog_CPP
6118 else
6119   ac_cv_prog_CPP=$CPP
6120 fi
6121 echo "$as_me:$LINENO: result: $CPP" >&5
6122 echo "${ECHO_T}$CPP" >&6
6123 ac_preproc_ok=false
6124 for ac_c_preproc_warn_flag in '' yes
6125 do
6126   # Use a header file that comes with gcc, so configuring glibc
6127   # with a fresh cross-compiler works.
6128   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6129   # <limits.h> exists even on freestanding compilers.
6130   # On the NeXT, cc -E runs the code through the compiler's parser,
6131   # not just through cpp. "Syntax error" is here to catch this case.
6132   cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h.  */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h.  */
6138 #ifdef __STDC__
6139 # include <limits.h>
6140 #else
6141 # include <assert.h>
6142 #endif
6143                      Syntax error
6144 _ACEOF
6145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6147   ac_status=$?
6148   grep -v '^ *+' conftest.er1 >conftest.err
6149   rm -f conftest.er1
6150   cat conftest.err >&5
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); } >/dev/null; then
6153   if test -s conftest.err; then
6154     ac_cpp_err=$ac_c_preproc_warn_flag
6155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6156   else
6157     ac_cpp_err=
6158   fi
6159 else
6160   ac_cpp_err=yes
6161 fi
6162 if test -z "$ac_cpp_err"; then
6163   :
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168   # Broken: fails on valid input.
6169 continue
6170 fi
6171 rm -f conftest.err conftest.$ac_ext
6172
6173   # OK, works on sane cases.  Now check whether non-existent headers
6174   # can be detected and how.
6175   cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h.  */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h.  */
6181 #include <ac_nonexistent.h>
6182 _ACEOF
6183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6185   ac_status=$?
6186   grep -v '^ *+' conftest.er1 >conftest.err
6187   rm -f conftest.er1
6188   cat conftest.err >&5
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } >/dev/null; then
6191   if test -s conftest.err; then
6192     ac_cpp_err=$ac_c_preproc_warn_flag
6193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6194   else
6195     ac_cpp_err=
6196   fi
6197 else
6198   ac_cpp_err=yes
6199 fi
6200 if test -z "$ac_cpp_err"; then
6201   # Broken: success on invalid input.
6202 continue
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207   # Passes both tests.
6208 ac_preproc_ok=:
6209 break
6210 fi
6211 rm -f conftest.err conftest.$ac_ext
6212
6213 done
6214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6215 rm -f conftest.err conftest.$ac_ext
6216 if $ac_preproc_ok; then
6217   :
6218 else
6219   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6220 See \`config.log' for more details." >&5
6221 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6222 See \`config.log' for more details." >&2;}
6223    { (exit 1); exit 1; }; }
6224 fi
6225
6226 ac_ext=c
6227 ac_cpp='$CPP $CPPFLAGS'
6228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6231
6232
6233 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6234 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6235 if test "${ac_cv_header_stdc+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   cat >conftest.$ac_ext <<_ACEOF
6239 /* confdefs.h.  */
6240 _ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h.  */
6244 #include <stdlib.h>
6245 #include <stdarg.h>
6246 #include <string.h>
6247 #include <float.h>
6248
6249 int
6250 main ()
6251 {
6252
6253   ;
6254   return 0;
6255 }
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259   (eval $ac_compile) 2>conftest.er1
6260   ac_status=$?
6261   grep -v '^ *+' conftest.er1 >conftest.err
6262   rm -f conftest.er1
6263   cat conftest.err >&5
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); } &&
6266          { ac_try='test -z "$ac_c_werror_flag"
6267                          || test ! -s conftest.err'
6268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269   (eval $ac_try) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; } &&
6273          { ac_try='test -s conftest.$ac_objext'
6274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275   (eval $ac_try) 2>&5
6276   ac_status=$?
6277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278   (exit $ac_status); }; }; then
6279   ac_cv_header_stdc=yes
6280 else
6281   echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284 ac_cv_header_stdc=no
6285 fi
6286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6287
6288 if test $ac_cv_header_stdc = yes; then
6289   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6290   cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h.  */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h.  */
6296 #include <string.h>
6297
6298 _ACEOF
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300   $EGREP "memchr" >/dev/null 2>&1; then
6301   :
6302 else
6303   ac_cv_header_stdc=no
6304 fi
6305 rm -f conftest*
6306
6307 fi
6308
6309 if test $ac_cv_header_stdc = yes; then
6310   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6311   cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 #include <stdlib.h>
6318
6319 _ACEOF
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6321   $EGREP "free" >/dev/null 2>&1; then
6322   :
6323 else
6324   ac_cv_header_stdc=no
6325 fi
6326 rm -f conftest*
6327
6328 fi
6329
6330 if test $ac_cv_header_stdc = yes; then
6331   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6332   if test "$cross_compiling" = yes; then
6333   :
6334 else
6335   cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 #include <ctype.h>
6342 #if ((' ' & 0x0FF) == 0x020)
6343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6345 #else
6346 # define ISLOWER(c) \
6347                    (('a' <= (c) && (c) <= 'i') \
6348                      || ('j' <= (c) && (c) <= 'r') \
6349                      || ('s' <= (c) && (c) <= 'z'))
6350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6351 #endif
6352
6353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6354 int
6355 main ()
6356 {
6357   int i;
6358   for (i = 0; i < 256; i++)
6359     if (XOR (islower (i), ISLOWER (i))
6360         || toupper (i) != TOUPPER (i))
6361       exit(2);
6362   exit (0);
6363 }
6364 _ACEOF
6365 rm -f conftest$ac_exeext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367   (eval $ac_link) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; }; then
6376   :
6377 else
6378   echo "$as_me: program exited with status $ac_status" >&5
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382 ( exit $ac_status )
6383 ac_cv_header_stdc=no
6384 fi
6385 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6386 fi
6387 fi
6388 fi
6389 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6390 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6391 if test $ac_cv_header_stdc = yes; then
6392
6393 cat >>confdefs.h <<\_ACEOF
6394 #define STDC_HEADERS 1
6395 _ACEOF
6396
6397 fi
6398
6399 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6410                   inttypes.h stdint.h unistd.h
6411 do
6412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6413 echo "$as_me:$LINENO: checking for $ac_header" >&5
6414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6416   echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418   cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424 $ac_includes_default
6425
6426 #include <$ac_header>
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430   (eval $ac_compile) 2>conftest.er1
6431   ac_status=$?
6432   grep -v '^ *+' conftest.er1 >conftest.err
6433   rm -f conftest.er1
6434   cat conftest.err >&5
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } &&
6437          { ac_try='test -z "$ac_c_werror_flag"
6438                          || test ! -s conftest.err'
6439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440   (eval $ac_try) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); }; } &&
6444          { ac_try='test -s conftest.$ac_objext'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; }; then
6450   eval "$as_ac_Header=yes"
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 eval "$as_ac_Header=no"
6456 fi
6457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 fi
6459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6462   cat >>confdefs.h <<_ACEOF
6463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6464 _ACEOF
6465
6466 fi
6467
6468 done
6469
6470
6471
6472 for ac_header in dlfcn.h
6473 do
6474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476   echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 fi
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6483 else
6484   # Is the header compilable?
6485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6487 cat >conftest.$ac_ext <<_ACEOF
6488 /* confdefs.h.  */
6489 _ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h.  */
6493 $ac_includes_default
6494 #include <$ac_header>
6495 _ACEOF
6496 rm -f conftest.$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498   (eval $ac_compile) 2>conftest.er1
6499   ac_status=$?
6500   grep -v '^ *+' conftest.er1 >conftest.err
6501   rm -f conftest.er1
6502   cat conftest.err >&5
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); } &&
6505          { ac_try='test -z "$ac_c_werror_flag"
6506                          || test ! -s conftest.err'
6507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508   (eval $ac_try) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; } &&
6512          { ac_try='test -s conftest.$ac_objext'
6513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514   (eval $ac_try) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); }; }; then
6518   ac_header_compiler=yes
6519 else
6520   echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523 ac_header_compiler=no
6524 fi
6525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6527 echo "${ECHO_T}$ac_header_compiler" >&6
6528
6529 # Is the header present?
6530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6532 cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h.  */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h.  */
6538 #include <$ac_header>
6539 _ACEOF
6540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6542   ac_status=$?
6543   grep -v '^ *+' conftest.er1 >conftest.err
6544   rm -f conftest.er1
6545   cat conftest.err >&5
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } >/dev/null; then
6548   if test -s conftest.err; then
6549     ac_cpp_err=$ac_c_preproc_warn_flag
6550     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6551   else
6552     ac_cpp_err=
6553   fi
6554 else
6555   ac_cpp_err=yes
6556 fi
6557 if test -z "$ac_cpp_err"; then
6558   ac_header_preproc=yes
6559 else
6560   echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6562
6563   ac_header_preproc=no
6564 fi
6565 rm -f conftest.err conftest.$ac_ext
6566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6567 echo "${ECHO_T}$ac_header_preproc" >&6
6568
6569 # So?  What about this header?
6570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6571   yes:no: )
6572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6576     ac_header_preproc=yes
6577     ;;
6578   no:yes:* )
6579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6591     (
6592       cat <<\_ASBOX
6593 ## ------------------------------------------ ##
6594 ## Report this to the AC_PACKAGE_NAME lists.  ##
6595 ## ------------------------------------------ ##
6596 _ASBOX
6597     ) |
6598       sed "s/^/$as_me: WARNING:     /" >&2
6599     ;;
6600 esac
6601 echo "$as_me:$LINENO: checking for $ac_header" >&5
6602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606   eval "$as_ac_Header=\$ac_header_preproc"
6607 fi
6608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6610
6611 fi
6612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6613   cat >>confdefs.h <<_ACEOF
6614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6615 _ACEOF
6616
6617 fi
6618
6619 done
6620
6621 ac_ext=cc
6622 ac_cpp='$CXXCPP $CPPFLAGS'
6623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6626 if test -n "$ac_tool_prefix"; then
6627   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6628   do
6629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6631 echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6633 if test "${ac_cv_prog_CXX+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   if test -n "$CXX"; then
6637   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644   for ac_exec_ext in '' $ac_executable_extensions; do
6645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651 done
6652
6653 fi
6654 fi
6655 CXX=$ac_cv_prog_CXX
6656 if test -n "$CXX"; then
6657   echo "$as_me:$LINENO: result: $CXX" >&5
6658 echo "${ECHO_T}$CXX" >&6
6659 else
6660   echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6
6662 fi
6663
6664     test -n "$CXX" && break
6665   done
6666 fi
6667 if test -z "$CXX"; then
6668   ac_ct_CXX=$CXX
6669   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6670 do
6671   # Extract the first word of "$ac_prog", so it can be a program name with args.
6672 set dummy $ac_prog; ac_word=$2
6673 echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6675 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   if test -n "$ac_ct_CXX"; then
6679   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686   for ac_exec_ext in '' $ac_executable_extensions; do
6687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688     ac_cv_prog_ac_ct_CXX="$ac_prog"
6689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693 done
6694
6695 fi
6696 fi
6697 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6698 if test -n "$ac_ct_CXX"; then
6699   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6700 echo "${ECHO_T}$ac_ct_CXX" >&6
6701 else
6702   echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6
6704 fi
6705
6706   test -n "$ac_ct_CXX" && break
6707 done
6708 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6709
6710   CXX=$ac_ct_CXX
6711 fi
6712
6713
6714 # Provide some information about the compiler.
6715 echo "$as_me:$LINENO:" \
6716      "checking for C++ compiler version" >&5
6717 ac_compiler=`set X $ac_compile; echo $2`
6718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6719   (eval $ac_compiler --version </dev/null >&5) 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); }
6723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6724   (eval $ac_compiler -v </dev/null >&5) 2>&5
6725   ac_status=$?
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); }
6728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6729   (eval $ac_compiler -V </dev/null >&5) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }
6733
6734 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6735 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6736 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h.  */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h.  */
6745
6746 int
6747 main ()
6748 {
6749 #ifndef __GNUC__
6750        choke me
6751 #endif
6752
6753   ;
6754   return 0;
6755 }
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759   (eval $ac_compile) 2>conftest.er1
6760   ac_status=$?
6761   grep -v '^ *+' conftest.er1 >conftest.err
6762   rm -f conftest.er1
6763   cat conftest.err >&5
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); } &&
6766          { ac_try='test -z "$ac_cxx_werror_flag"
6767                          || test ! -s conftest.err'
6768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769   (eval $ac_try) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); }; } &&
6773          { ac_try='test -s conftest.$ac_objext'
6774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775   (eval $ac_try) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); }; }; then
6779   ac_compiler_gnu=yes
6780 else
6781   echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 ac_compiler_gnu=no
6785 fi
6786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6787 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6788
6789 fi
6790 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6791 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6792 GXX=`test $ac_compiler_gnu = yes && echo yes`
6793 ac_test_CXXFLAGS=${CXXFLAGS+set}
6794 ac_save_CXXFLAGS=$CXXFLAGS
6795 CXXFLAGS="-g"
6796 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6797 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6798 if test "${ac_cv_prog_cxx_g+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807
6808 int
6809 main ()
6810 {
6811
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818   (eval $ac_compile) 2>conftest.er1
6819   ac_status=$?
6820   grep -v '^ *+' conftest.er1 >conftest.err
6821   rm -f conftest.er1
6822   cat conftest.err >&5
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } &&
6825          { ac_try='test -z "$ac_cxx_werror_flag"
6826                          || test ! -s conftest.err'
6827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828   (eval $ac_try) 2>&5
6829   ac_status=$?
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); }; } &&
6832          { ac_try='test -s conftest.$ac_objext'
6833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834   (eval $ac_try) 2>&5
6835   ac_status=$?
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); }; }; then
6838   ac_cv_prog_cxx_g=yes
6839 else
6840   echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6842
6843 ac_cv_prog_cxx_g=no
6844 fi
6845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6846 fi
6847 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6848 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6849 if test "$ac_test_CXXFLAGS" = set; then
6850   CXXFLAGS=$ac_save_CXXFLAGS
6851 elif test $ac_cv_prog_cxx_g = yes; then
6852   if test "$GXX" = yes; then
6853     CXXFLAGS="-g -O2"
6854   else
6855     CXXFLAGS="-g"
6856   fi
6857 else
6858   if test "$GXX" = yes; then
6859     CXXFLAGS="-O2"
6860   else
6861     CXXFLAGS=
6862   fi
6863 fi
6864 for ac_declaration in \
6865    '' \
6866    'extern "C" void std::exit (int) throw (); using std::exit;' \
6867    'extern "C" void std::exit (int); using std::exit;' \
6868    'extern "C" void exit (int) throw ();' \
6869    'extern "C" void exit (int);' \
6870    'void exit (int);'
6871 do
6872   cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 $ac_declaration
6879 #include <stdlib.h>
6880 int
6881 main ()
6882 {
6883 exit (42);
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890   (eval $ac_compile) 2>conftest.er1
6891   ac_status=$?
6892   grep -v '^ *+' conftest.er1 >conftest.err
6893   rm -f conftest.er1
6894   cat conftest.err >&5
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } &&
6897          { ac_try='test -z "$ac_cxx_werror_flag"
6898                          || test ! -s conftest.err'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; } &&
6904          { ac_try='test -s conftest.$ac_objext'
6905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906   (eval $ac_try) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; }; then
6910   :
6911 else
6912   echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 continue
6916 fi
6917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918   cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h.  */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h.  */
6924 $ac_declaration
6925 int
6926 main ()
6927 {
6928 exit (42);
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935   (eval $ac_compile) 2>conftest.er1
6936   ac_status=$?
6937   grep -v '^ *+' conftest.er1 >conftest.err
6938   rm -f conftest.er1
6939   cat conftest.err >&5
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); } &&
6942          { ac_try='test -z "$ac_cxx_werror_flag"
6943                          || test ! -s conftest.err'
6944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945   (eval $ac_try) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); }; } &&
6949          { ac_try='test -s conftest.$ac_objext'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; }; then
6955   break
6956 else
6957   echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 fi
6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962 done
6963 rm -f conftest*
6964 if test -n "$ac_declaration"; then
6965   echo '#ifdef __cplusplus' >>confdefs.h
6966   echo $ac_declaration      >>confdefs.h
6967   echo '#endif'             >>confdefs.h
6968 fi
6969
6970 ac_ext=cc
6971 ac_cpp='$CXXCPP $CPPFLAGS'
6972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6975
6976 depcc="$CXX"  am_compiler_list=
6977
6978 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6979 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6980 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6984   # We make a subdir and do the tests there.  Otherwise we can end up
6985   # making bogus files that we don't know about and never remove.  For
6986   # instance it was reported that on HP-UX the gcc test will end up
6987   # making a dummy file named `D' -- because `-MD' means `put the output
6988   # in D'.
6989   mkdir conftest.dir
6990   # Copy depcomp to subdir because otherwise we won't find it if we're
6991   # using a relative directory.
6992   cp "$am_depcomp" conftest.dir
6993   cd conftest.dir
6994   # We will build objects and dependencies in a subdirectory because
6995   # it helps to detect inapplicable dependency modes.  For instance
6996   # both Tru64's cc and ICC support -MD to output dependencies as a
6997   # side effect of compilation, but ICC will put the dependencies in
6998   # the current directory while Tru64 will put them in the object
6999   # directory.
7000   mkdir sub
7001
7002   am_cv_CXX_dependencies_compiler_type=none
7003   if test "$am_compiler_list" = ""; then
7004      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7005   fi
7006   for depmode in $am_compiler_list; do
7007     # Setup a source with many dependencies, because some compilers
7008     # like to wrap large dependency lists on column 80 (with \), and
7009     # we should not choose a depcomp mode which is confused by this.
7010     #
7011     # We need to recreate these files for each test, as the compiler may
7012     # overwrite some of them when testing with obscure command lines.
7013     # This happens at least with the AIX C compiler.
7014     : > sub/conftest.c
7015     for i in 1 2 3 4 5 6; do
7016       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7017       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7018       # Solaris 8's {/usr,}/bin/sh.
7019       touch sub/conftst$i.h
7020     done
7021     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7022
7023     case $depmode in
7024     nosideeffect)
7025       # after this tag, mechanisms are not by side-effect, so they'll
7026       # only be used when explicitly requested
7027       if test "x$enable_dependency_tracking" = xyes; then
7028         continue
7029       else
7030         break
7031       fi
7032       ;;
7033     none) break ;;
7034     esac
7035     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7036     # mode.  It turns out that the SunPro C++ compiler does not properly
7037     # handle `-M -o', and we need to detect this.
7038     if depmode=$depmode \
7039        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7040        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7041        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7042          >/dev/null 2>conftest.err &&
7043        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7044        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7045        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7046       # icc doesn't choke on unknown options, it will just issue warnings
7047       # or remarks (even with -Werror).  So we grep stderr for any message
7048       # that says an option was ignored or not supported.
7049       # When given -MP, icc 7.0 and 7.1 complain thusly:
7050       #   icc: Command line warning: ignoring option '-M'; no argument required
7051       # The diagnosis changed in icc 8.0:
7052       #   icc: Command line remark: option '-MP' not supported
7053       if (grep 'ignoring option' conftest.err ||
7054           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7055         am_cv_CXX_dependencies_compiler_type=$depmode
7056         break
7057       fi
7058     fi
7059   done
7060
7061   cd ..
7062   rm -rf conftest.dir
7063 else
7064   am_cv_CXX_dependencies_compiler_type=none
7065 fi
7066
7067 fi
7068 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7069 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7070 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7071
7072
7073
7074 if
7075   test "x$enable_dependency_tracking" != xno \
7076   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7077   am__fastdepCXX_TRUE=
7078   am__fastdepCXX_FALSE='#'
7079 else
7080   am__fastdepCXX_TRUE='#'
7081   am__fastdepCXX_FALSE=
7082 fi
7083
7084
7085
7086
7087 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7088     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7089     (test "X$CXX" != "Xg++"))) ; then
7090   ac_ext=cc
7091 ac_cpp='$CXXCPP $CPPFLAGS'
7092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7095 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7096 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7097 if test -z "$CXXCPP"; then
7098   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101       # Double quotes because CXXCPP needs to be expanded
7102     for CXXCPP in "$CXX -E" "/lib/cpp"
7103     do
7104       ac_preproc_ok=false
7105 for ac_cxx_preproc_warn_flag in '' yes
7106 do
7107   # Use a header file that comes with gcc, so configuring glibc
7108   # with a fresh cross-compiler works.
7109   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7110   # <limits.h> exists even on freestanding compilers.
7111   # On the NeXT, cc -E runs the code through the compiler's parser,
7112   # not just through cpp. "Syntax error" is here to catch this case.
7113   cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h.  */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h.  */
7119 #ifdef __STDC__
7120 # include <limits.h>
7121 #else
7122 # include <assert.h>
7123 #endif
7124                      Syntax error
7125 _ACEOF
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } >/dev/null; then
7134   if test -s conftest.err; then
7135     ac_cpp_err=$ac_cxx_preproc_warn_flag
7136     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7137   else
7138     ac_cpp_err=
7139   fi
7140 else
7141   ac_cpp_err=yes
7142 fi
7143 if test -z "$ac_cpp_err"; then
7144   :
7145 else
7146   echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149   # Broken: fails on valid input.
7150 continue
7151 fi
7152 rm -f conftest.err conftest.$ac_ext
7153
7154   # OK, works on sane cases.  Now check whether non-existent headers
7155   # can be detected and how.
7156   cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h.  */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h.  */
7162 #include <ac_nonexistent.h>
7163 _ACEOF
7164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7165   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7166   ac_status=$?
7167   grep -v '^ *+' conftest.er1 >conftest.err
7168   rm -f conftest.er1
7169   cat conftest.err >&5
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); } >/dev/null; then
7172   if test -s conftest.err; then
7173     ac_cpp_err=$ac_cxx_preproc_warn_flag
7174     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7175   else
7176     ac_cpp_err=
7177   fi
7178 else
7179   ac_cpp_err=yes
7180 fi
7181 if test -z "$ac_cpp_err"; then
7182   # Broken: success on invalid input.
7183 continue
7184 else
7185   echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7187
7188   # Passes both tests.
7189 ac_preproc_ok=:
7190 break
7191 fi
7192 rm -f conftest.err conftest.$ac_ext
7193
7194 done
7195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7196 rm -f conftest.err conftest.$ac_ext
7197 if $ac_preproc_ok; then
7198   break
7199 fi
7200
7201     done
7202     ac_cv_prog_CXXCPP=$CXXCPP
7203
7204 fi
7205   CXXCPP=$ac_cv_prog_CXXCPP
7206 else
7207   ac_cv_prog_CXXCPP=$CXXCPP
7208 fi
7209 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7210 echo "${ECHO_T}$CXXCPP" >&6
7211 ac_preproc_ok=false
7212 for ac_cxx_preproc_warn_flag in '' yes
7213 do
7214   # Use a header file that comes with gcc, so configuring glibc
7215   # with a fresh cross-compiler works.
7216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7217   # <limits.h> exists even on freestanding compilers.
7218   # On the NeXT, cc -E runs the code through the compiler's parser,
7219   # not just through cpp. "Syntax error" is here to catch this case.
7220   cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 #ifdef __STDC__
7227 # include <limits.h>
7228 #else
7229 # include <assert.h>
7230 #endif
7231                      Syntax error
7232 _ACEOF
7233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7234   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7235   ac_status=$?
7236   grep -v '^ *+' conftest.er1 >conftest.err
7237   rm -f conftest.er1
7238   cat conftest.err >&5
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } >/dev/null; then
7241   if test -s conftest.err; then
7242     ac_cpp_err=$ac_cxx_preproc_warn_flag
7243     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7244   else
7245     ac_cpp_err=
7246   fi
7247 else
7248   ac_cpp_err=yes
7249 fi
7250 if test -z "$ac_cpp_err"; then
7251   :
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256   # Broken: fails on valid input.
7257 continue
7258 fi
7259 rm -f conftest.err conftest.$ac_ext
7260
7261   # OK, works on sane cases.  Now check whether non-existent headers
7262   # can be detected and how.
7263   cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h.  */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h.  */
7269 #include <ac_nonexistent.h>
7270 _ACEOF
7271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7272   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7273   ac_status=$?
7274   grep -v '^ *+' conftest.er1 >conftest.err
7275   rm -f conftest.er1
7276   cat conftest.err >&5
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); } >/dev/null; then
7279   if test -s conftest.err; then
7280     ac_cpp_err=$ac_cxx_preproc_warn_flag
7281     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7282   else
7283     ac_cpp_err=
7284   fi
7285 else
7286   ac_cpp_err=yes
7287 fi
7288 if test -z "$ac_cpp_err"; then
7289   # Broken: success on invalid input.
7290 continue
7291 else
7292   echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295   # Passes both tests.
7296 ac_preproc_ok=:
7297 break
7298 fi
7299 rm -f conftest.err conftest.$ac_ext
7300
7301 done
7302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7303 rm -f conftest.err conftest.$ac_ext
7304 if $ac_preproc_ok; then
7305   :
7306 else
7307   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7308 See \`config.log' for more details." >&5
7309 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7310 See \`config.log' for more details." >&2;}
7311    { (exit 1); exit 1; }; }
7312 fi
7313
7314 ac_ext=cc
7315 ac_cpp='$CXXCPP $CPPFLAGS'
7316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7319
7320 fi
7321
7322
7323 ac_ext=f
7324 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7325 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7327 if test -n "$ac_tool_prefix"; then
7328   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7329   do
7330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7332 echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7334 if test "${ac_cv_prog_F77+set}" = set; then
7335   echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337   if test -n "$F77"; then
7338   ac_cv_prog_F77="$F77" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345   for ac_exec_ext in '' $ac_executable_extensions; do
7346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352 done
7353
7354 fi
7355 fi
7356 F77=$ac_cv_prog_F77
7357 if test -n "$F77"; then
7358   echo "$as_me:$LINENO: result: $F77" >&5
7359 echo "${ECHO_T}$F77" >&6
7360 else
7361   echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6
7363 fi
7364
7365     test -n "$F77" && break
7366   done
7367 fi
7368 if test -z "$F77"; then
7369   ac_ct_F77=$F77
7370   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7371 do
7372   # Extract the first word of "$ac_prog", so it can be a program name with args.
7373 set dummy $ac_prog; ac_word=$2
7374 echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7376 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   if test -n "$ac_ct_F77"; then
7380   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   for ac_exec_ext in '' $ac_executable_extensions; do
7388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389     ac_cv_prog_ac_ct_F77="$ac_prog"
7390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394 done
7395
7396 fi
7397 fi
7398 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7399 if test -n "$ac_ct_F77"; then
7400   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7401 echo "${ECHO_T}$ac_ct_F77" >&6
7402 else
7403   echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6
7405 fi
7406
7407   test -n "$ac_ct_F77" && break
7408 done
7409
7410   F77=$ac_ct_F77
7411 fi
7412
7413
7414 # Provide some information about the compiler.
7415 echo "$as_me:7415:" \
7416      "checking for Fortran 77 compiler version" >&5
7417 ac_compiler=`set X $ac_compile; echo $2`
7418 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7419   (eval $ac_compiler --version </dev/null >&5) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); }
7423 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7424   (eval $ac_compiler -v </dev/null >&5) 2>&5
7425   ac_status=$?
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); }
7428 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7429   (eval $ac_compiler -V </dev/null >&5) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); }
7433 rm -f a.out
7434
7435 # If we don't use `.F' as extension, the preprocessor is not run on the
7436 # input file.  (Note that this only needs to work for GNU compilers.)
7437 ac_save_ext=$ac_ext
7438 ac_ext=F
7439 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7440 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7441 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   cat >conftest.$ac_ext <<_ACEOF
7445       program main
7446 #ifndef __GNUC__
7447        choke me
7448 #endif
7449
7450       end
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454   (eval $ac_compile) 2>conftest.er1
7455   ac_status=$?
7456   grep -v '^ *+' conftest.er1 >conftest.err
7457   rm -f conftest.er1
7458   cat conftest.err >&5
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); } &&
7461          { ac_try='test -z "$ac_f77_werror_flag"
7462                          || test ! -s conftest.err'
7463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464   (eval $ac_try) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); }; } &&
7468          { ac_try='test -s conftest.$ac_objext'
7469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470   (eval $ac_try) 2>&5
7471   ac_status=$?
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); }; }; then
7474   ac_compiler_gnu=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_compiler_gnu=no
7480 fi
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7483
7484 fi
7485 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7486 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7487 ac_ext=$ac_save_ext
7488 ac_test_FFLAGS=${FFLAGS+set}
7489 ac_save_FFLAGS=$FFLAGS
7490 FFLAGS=
7491 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7492 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7493 if test "${ac_cv_prog_f77_g+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   FFLAGS=-g
7497 cat >conftest.$ac_ext <<_ACEOF
7498       program main
7499
7500       end
7501 _ACEOF
7502 rm -f conftest.$ac_objext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7504   (eval $ac_compile) 2>conftest.er1
7505   ac_status=$?
7506   grep -v '^ *+' conftest.er1 >conftest.err
7507   rm -f conftest.er1
7508   cat conftest.err >&5
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); } &&
7511          { ac_try='test -z "$ac_f77_werror_flag"
7512                          || test ! -s conftest.err'
7513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514   (eval $ac_try) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); }; } &&
7518          { ac_try='test -s conftest.$ac_objext'
7519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520   (eval $ac_try) 2>&5
7521   ac_status=$?
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); }; }; then
7524   ac_cv_prog_f77_g=yes
7525 else
7526   echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7528
7529 ac_cv_prog_f77_g=no
7530 fi
7531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7532
7533 fi
7534 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7535 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7536 if test "$ac_test_FFLAGS" = set; then
7537   FFLAGS=$ac_save_FFLAGS
7538 elif test $ac_cv_prog_f77_g = yes; then
7539   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7540     FFLAGS="-g -O2"
7541   else
7542     FFLAGS="-g"
7543   fi
7544 else
7545   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7546     FFLAGS="-O2"
7547   else
7548     FFLAGS=
7549   fi
7550 fi
7551
7552 G77=`test $ac_compiler_gnu = yes && echo yes`
7553 ac_ext=c
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559
7560
7561 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7562
7563 # find the maximum length of command line arguments
7564 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7565 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7566 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569     i=0
7570   teststring="ABCD"
7571
7572   case $build_os in
7573   msdosdjgpp*)
7574     # On DJGPP, this test can blow up pretty badly due to problems in libc
7575     # (any single argument exceeding 2000 bytes causes a buffer overrun
7576     # during glob expansion).  Even if it were fixed, the result of this
7577     # check would be larger than it should be.
7578     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7579     ;;
7580
7581   gnu*)
7582     # Under GNU Hurd, this test is not required because there is
7583     # no limit to the length of command line arguments.
7584     # Libtool will interpret -1 as no limit whatsoever
7585     lt_cv_sys_max_cmd_len=-1;
7586     ;;
7587
7588   cygwin* | mingw*)
7589     # On Win9x/ME, this test blows up -- it succeeds, but takes
7590     # about 5 minutes as the teststring grows exponentially.
7591     # Worse, since 9x/ME are not pre-emptively multitasking,
7592     # you end up with a "frozen" computer, even though with patience
7593     # the test eventually succeeds (with a max line length of 256k).
7594     # Instead, let's just punt: use the minimum linelength reported by
7595     # all of the supported platforms: 8192 (on NT/2K/XP).
7596     lt_cv_sys_max_cmd_len=8192;
7597     ;;
7598
7599   amigaos*)
7600     # On AmigaOS with pdksh, this test takes hours, literally.
7601     # So we just punt and use a minimum line length of 8192.
7602     lt_cv_sys_max_cmd_len=8192;
7603     ;;
7604
7605   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7606     # This has been around since 386BSD, at least.  Likely further.
7607     if test -x /sbin/sysctl; then
7608       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7609     elif test -x /usr/sbin/sysctl; then
7610       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7611     else
7612       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7613     fi
7614     # And add a safety zone
7615     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7616     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7617     ;;
7618   osf*)
7619     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7620     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7621     # nice to cause kernel panics so lets avoid the loop below.
7622     # First set a reasonable default.
7623     lt_cv_sys_max_cmd_len=16384
7624     #
7625     if test -x /sbin/sysconfig; then
7626       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7627         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7628       esac
7629     fi
7630     ;;
7631   *)
7632     # If test is not a shell built-in, we'll probably end up computing a
7633     # maximum length that is only half of the actual maximum length, but
7634     # we can't tell.
7635     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7636     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7637                = "XX$teststring") >/dev/null 2>&1 &&
7638             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7639             lt_cv_sys_max_cmd_len=$new_result &&
7640             test $i != 17 # 1/2 MB should be enough
7641     do
7642       i=`expr $i + 1`
7643       teststring=$teststring$teststring
7644     done
7645     teststring=
7646     # Add a significant safety factor because C++ compilers can tack on massive
7647     # amounts of additional arguments before passing them to the linker.
7648     # It appears as though 1/2 is a usable value.
7649     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7650     ;;
7651   esac
7652
7653 fi
7654
7655 if test -n $lt_cv_sys_max_cmd_len ; then
7656   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7657 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7658 else
7659   echo "$as_me:$LINENO: result: none" >&5
7660 echo "${ECHO_T}none" >&6
7661 fi
7662
7663
7664
7665
7666 # Check for command to grab the raw symbol name followed by C symbol from nm.
7667 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7668 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7669 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672
7673 # These are sane defaults that work on at least a few old systems.
7674 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7675
7676 # Character class describing NM global symbol codes.
7677 symcode='[BCDEGRST]'
7678
7679 # Regexp to match symbols that can be accessed directly from C.
7680 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7681
7682 # Transform an extracted symbol line into a proper C declaration
7683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7684
7685 # Transform an extracted symbol line into symbol name and symbol address
7686 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'"
7687
7688 # Define system-specific variables.
7689 case $host_os in
7690 aix*)
7691   symcode='[BCDT]'
7692   ;;
7693 cygwin* | mingw* | pw32*)
7694   symcode='[ABCDGISTW]'
7695   ;;
7696 hpux*) # Its linker distinguishes data from code symbols
7697   if test "$host_cpu" = ia64; then
7698     symcode='[ABCDEGRST]'
7699   fi
7700   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7701   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'"
7702   ;;
7703 linux*)
7704   if test "$host_cpu" = ia64; then
7705     symcode='[ABCDGIRSTW]'
7706     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7707     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'"
7708   fi
7709   ;;
7710 irix* | nonstopux*)
7711   symcode='[BCDEGRST]'
7712   ;;
7713 osf*)
7714   symcode='[BCDEGQRST]'
7715   ;;
7716 solaris* | sysv5*)
7717   symcode='[BDRT]'
7718   ;;
7719 sysv4)
7720   symcode='[DFNSTU]'
7721   ;;
7722 esac
7723
7724 # Handle CRLF in mingw tool chain
7725 opt_cr=
7726 case $build_os in
7727 mingw*)
7728   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7729   ;;
7730 esac
7731
7732 # If we're using GNU nm, then use its standard symbol codes.
7733 case `$NM -V 2>&1` in
7734 *GNU* | *'with BFD'*)
7735   symcode='[ABCDGIRSTW]' ;;
7736 esac
7737
7738 # Try without a prefix undercore, then with it.
7739 for ac_symprfx in "" "_"; do
7740
7741   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7742   symxfrm="\\1 $ac_symprfx\\2 \\2"
7743
7744   # Write the raw and C identifiers.
7745   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7746
7747   # Check to see that the pipe works correctly.
7748   pipe_works=no
7749
7750   rm -f conftest*
7751   cat > conftest.$ac_ext <<EOF
7752 #ifdef __cplusplus
7753 extern "C" {
7754 #endif
7755 char nm_test_var;
7756 void nm_test_func(){}
7757 #ifdef __cplusplus
7758 }
7759 #endif
7760 int main(){nm_test_var='a';nm_test_func();return(0);}
7761 EOF
7762
7763   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764   (eval $ac_compile) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); }; then
7768     # Now try to grab the symbols.
7769     nlist=conftest.nm
7770     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7771   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } && test -s "$nlist"; then
7775       # Try sorting and uniquifying the output.
7776       if sort "$nlist" | uniq > "$nlist"T; then
7777         mv -f "$nlist"T "$nlist"
7778       else
7779         rm -f "$nlist"T
7780       fi
7781
7782       # Make sure that we snagged all the symbols we need.
7783       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7784         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7785           cat <<EOF > conftest.$ac_ext
7786 #ifdef __cplusplus
7787 extern "C" {
7788 #endif
7789
7790 EOF
7791           # Now generate the symbol file.
7792           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7793
7794           cat <<EOF >> conftest.$ac_ext
7795 #if defined (__STDC__) && __STDC__
7796 # define lt_ptr_t void *
7797 #else
7798 # define lt_ptr_t char *
7799 # define const
7800 #endif
7801
7802 /* The mapping between symbol names and symbols. */
7803 const struct {
7804   const char *name;
7805   lt_ptr_t address;
7806 }
7807 lt_preloaded_symbols[] =
7808 {
7809 EOF
7810           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7811           cat <<\EOF >> conftest.$ac_ext
7812   {0, (lt_ptr_t) 0}
7813 };
7814
7815 #ifdef __cplusplus
7816 }
7817 #endif
7818 EOF
7819           # Now try linking the two files.
7820           mv conftest.$ac_objext conftstm.$ac_objext
7821           lt_save_LIBS="$LIBS"
7822           lt_save_CFLAGS="$CFLAGS"
7823           LIBS="conftstm.$ac_objext"
7824           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7825           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826   (eval $ac_link) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7830             pipe_works=yes
7831           fi
7832           LIBS="$lt_save_LIBS"
7833           CFLAGS="$lt_save_CFLAGS"
7834         else
7835           echo "cannot find nm_test_func in $nlist" >&5
7836         fi
7837       else
7838         echo "cannot find nm_test_var in $nlist" >&5
7839       fi
7840     else
7841       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7842     fi
7843   else
7844     echo "$progname: failed program was:" >&5
7845     cat conftest.$ac_ext >&5
7846   fi
7847   rm -f conftest* conftst*
7848
7849   # Do not use the global_symbol_pipe unless it works.
7850   if test "$pipe_works" = yes; then
7851     break
7852   else
7853     lt_cv_sys_global_symbol_pipe=
7854   fi
7855 done
7856
7857 fi
7858
7859 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7860   lt_cv_sys_global_symbol_to_cdecl=
7861 fi
7862 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7863   echo "$as_me:$LINENO: result: failed" >&5
7864 echo "${ECHO_T}failed" >&6
7865 else
7866   echo "$as_me:$LINENO: result: ok" >&5
7867 echo "${ECHO_T}ok" >&6
7868 fi
7869
7870 echo "$as_me:$LINENO: checking for objdir" >&5
7871 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7872 if test "${lt_cv_objdir+set}" = set; then
7873   echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875   rm -f .libs 2>/dev/null
7876 mkdir .libs 2>/dev/null
7877 if test -d .libs; then
7878   lt_cv_objdir=.libs
7879 else
7880   # MS-DOS does not allow filenames that begin with a dot.
7881   lt_cv_objdir=_libs
7882 fi
7883 rmdir .libs 2>/dev/null
7884 fi
7885 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7886 echo "${ECHO_T}$lt_cv_objdir" >&6
7887 objdir=$lt_cv_objdir
7888
7889
7890
7891
7892
7893 case $host_os in
7894 aix3*)
7895   # AIX sometimes has problems with the GCC collect2 program.  For some
7896   # reason, if we set the COLLECT_NAMES environment variable, the problems
7897   # vanish in a puff of smoke.
7898   if test "X${COLLECT_NAMES+set}" != Xset; then
7899     COLLECT_NAMES=
7900     export COLLECT_NAMES
7901   fi
7902   ;;
7903 esac
7904
7905 # Sed substitution that helps us do robust quoting.  It backslashifies
7906 # metacharacters that are still active within double-quoted strings.
7907 Xsed='sed -e 1s/^X//'
7908 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7909
7910 # Same as above, but do not quote variable references.
7911 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7912
7913 # Sed substitution to delay expansion of an escaped shell variable in a
7914 # double_quote_subst'ed string.
7915 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7916
7917 # Sed substitution to avoid accidental globbing in evaled expressions
7918 no_glob_subst='s/\*/\\\*/g'
7919
7920 # Constants:
7921 rm="rm -f"
7922
7923 # Global variables:
7924 default_ofile=libtool
7925 can_build_shared=yes
7926
7927 # All known linkers require a `.a' archive for static linking (except M$VC,
7928 # which needs '.lib').
7929 libext=a
7930 ltmain="$ac_aux_dir/ltmain.sh"
7931 ofile="$default_ofile"
7932 with_gnu_ld="$lt_cv_prog_gnu_ld"
7933
7934 if test -n "$ac_tool_prefix"; then
7935   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7936 set dummy ${ac_tool_prefix}ar; ac_word=$2
7937 echo "$as_me:$LINENO: checking for $ac_word" >&5
7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7939 if test "${ac_cv_prog_AR+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   if test -n "$AR"; then
7943   ac_cv_prog_AR="$AR" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950   for ac_exec_ext in '' $ac_executable_extensions; do
7951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952     ac_cv_prog_AR="${ac_tool_prefix}ar"
7953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7954     break 2
7955   fi
7956 done
7957 done
7958
7959 fi
7960 fi
7961 AR=$ac_cv_prog_AR
7962 if test -n "$AR"; then
7963   echo "$as_me:$LINENO: result: $AR" >&5
7964 echo "${ECHO_T}$AR" >&6
7965 else
7966   echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6
7968 fi
7969
7970 fi
7971 if test -z "$ac_cv_prog_AR"; then
7972   ac_ct_AR=$AR
7973   # Extract the first word of "ar", so it can be a program name with args.
7974 set dummy ar; ac_word=$2
7975 echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7977 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7978   echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980   if test -n "$ac_ct_AR"; then
7981   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986   IFS=$as_save_IFS
7987   test -z "$as_dir" && as_dir=.
7988   for ac_exec_ext in '' $ac_executable_extensions; do
7989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990     ac_cv_prog_ac_ct_AR="ar"
7991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7992     break 2
7993   fi
7994 done
7995 done
7996
7997   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7998 fi
7999 fi
8000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8001 if test -n "$ac_ct_AR"; then
8002   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8003 echo "${ECHO_T}$ac_ct_AR" >&6
8004 else
8005   echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8007 fi
8008
8009   AR=$ac_ct_AR
8010 else
8011   AR="$ac_cv_prog_AR"
8012 fi
8013
8014 if test -n "$ac_tool_prefix"; then
8015   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8017 echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8019 if test "${ac_cv_prog_RANLIB+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022   if test -n "$RANLIB"; then
8023   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028   IFS=$as_save_IFS
8029   test -z "$as_dir" && as_dir=.
8030   for ac_exec_ext in '' $ac_executable_extensions; do
8031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034     break 2
8035   fi
8036 done
8037 done
8038
8039 fi
8040 fi
8041 RANLIB=$ac_cv_prog_RANLIB
8042 if test -n "$RANLIB"; then
8043   echo "$as_me:$LINENO: result: $RANLIB" >&5
8044 echo "${ECHO_T}$RANLIB" >&6
8045 else
8046   echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8048 fi
8049
8050 fi
8051 if test -z "$ac_cv_prog_RANLIB"; then
8052   ac_ct_RANLIB=$RANLIB
8053   # Extract the first word of "ranlib", so it can be a program name with args.
8054 set dummy ranlib; ac_word=$2
8055 echo "$as_me:$LINENO: checking for $ac_word" >&5
8056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8057 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8058   echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060   if test -n "$ac_ct_RANLIB"; then
8061   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8062 else
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8065 do
8066   IFS=$as_save_IFS
8067   test -z "$as_dir" && as_dir=.
8068   for ac_exec_ext in '' $ac_executable_extensions; do
8069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8070     ac_cv_prog_ac_ct_RANLIB="ranlib"
8071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8072     break 2
8073   fi
8074 done
8075 done
8076
8077   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8078 fi
8079 fi
8080 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8081 if test -n "$ac_ct_RANLIB"; then
8082   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8083 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8084 else
8085   echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6
8087 fi
8088
8089   RANLIB=$ac_ct_RANLIB
8090 else
8091   RANLIB="$ac_cv_prog_RANLIB"
8092 fi
8093
8094 if test -n "$ac_tool_prefix"; then
8095   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8096 set dummy ${ac_tool_prefix}strip; ac_word=$2
8097 echo "$as_me:$LINENO: checking for $ac_word" >&5
8098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8099 if test "${ac_cv_prog_STRIP+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   if test -n "$STRIP"; then
8103   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8104 else
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8107 do
8108   IFS=$as_save_IFS
8109   test -z "$as_dir" && as_dir=.
8110   for ac_exec_ext in '' $ac_executable_extensions; do
8111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114     break 2
8115   fi
8116 done
8117 done
8118
8119 fi
8120 fi
8121 STRIP=$ac_cv_prog_STRIP
8122 if test -n "$STRIP"; then
8123   echo "$as_me:$LINENO: result: $STRIP" >&5
8124 echo "${ECHO_T}$STRIP" >&6
8125 else
8126   echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8128 fi
8129
8130 fi
8131 if test -z "$ac_cv_prog_STRIP"; then
8132   ac_ct_STRIP=$STRIP
8133   # Extract the first word of "strip", so it can be a program name with args.
8134 set dummy strip; ac_word=$2
8135 echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8137 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   if test -n "$ac_ct_STRIP"; then
8141   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8142 else
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146   IFS=$as_save_IFS
8147   test -z "$as_dir" && as_dir=.
8148   for ac_exec_ext in '' $ac_executable_extensions; do
8149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150     ac_cv_prog_ac_ct_STRIP="strip"
8151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8152     break 2
8153   fi
8154 done
8155 done
8156
8157   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8158 fi
8159 fi
8160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8161 if test -n "$ac_ct_STRIP"; then
8162   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8163 echo "${ECHO_T}$ac_ct_STRIP" >&6
8164 else
8165   echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8167 fi
8168
8169   STRIP=$ac_ct_STRIP
8170 else
8171   STRIP="$ac_cv_prog_STRIP"
8172 fi
8173
8174
8175 old_CC="$CC"
8176 old_CFLAGS="$CFLAGS"
8177
8178 # Set sane defaults for various variables
8179 test -z "$AR" && AR=ar
8180 test -z "$AR_FLAGS" && AR_FLAGS=cru
8181 test -z "$AS" && AS=as
8182 test -z "$CC" && CC=cc
8183 test -z "$LTCC" && LTCC=$CC
8184 test -z "$DLLTOOL" && DLLTOOL=dlltool
8185 test -z "$LD" && LD=ld
8186 test -z "$LN_S" && LN_S="ln -s"
8187 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8188 test -z "$NM" && NM=nm
8189 test -z "$SED" && SED=sed
8190 test -z "$OBJDUMP" && OBJDUMP=objdump
8191 test -z "$RANLIB" && RANLIB=:
8192 test -z "$STRIP" && STRIP=:
8193 test -z "$ac_objext" && ac_objext=o
8194
8195 # Determine commands to create old-style static archives.
8196 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8197 old_postinstall_cmds='chmod 644 $oldlib'
8198 old_postuninstall_cmds=
8199
8200 if test -n "$RANLIB"; then
8201   case $host_os in
8202   openbsd*)
8203     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8204     ;;
8205   *)
8206     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8207     ;;
8208   esac
8209   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8210 fi
8211
8212 for cc_temp in $compiler""; do
8213   case $cc_temp in
8214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8216     \-*) ;;
8217     *) break;;
8218   esac
8219 done
8220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8221
8222
8223 # Only perform the check for file, if the check method requires it
8224 case $deplibs_check_method in
8225 file_magic*)
8226   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8227     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8228 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8229 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   case $MAGIC_CMD in
8233 [\\/*] |  ?:[\\/]*)
8234   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8235   ;;
8236 *)
8237   lt_save_MAGIC_CMD="$MAGIC_CMD"
8238   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8239   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8240   for ac_dir in $ac_dummy; do
8241     IFS="$lt_save_ifs"
8242     test -z "$ac_dir" && ac_dir=.
8243     if test -f $ac_dir/${ac_tool_prefix}file; then
8244       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8245       if test -n "$file_magic_test_file"; then
8246         case $deplibs_check_method in
8247         "file_magic "*)
8248           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8249           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8250           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8251             $EGREP "$file_magic_regex" > /dev/null; then
8252             :
8253           else
8254             cat <<EOF 1>&2
8255
8256 *** Warning: the command libtool uses to detect shared libraries,
8257 *** $file_magic_cmd, produces output that libtool cannot recognize.
8258 *** The result is that libtool may fail to recognize shared libraries
8259 *** as such.  This will affect the creation of libtool libraries that
8260 *** depend on shared libraries, but programs linked with such libtool
8261 *** libraries will work regardless of this problem.  Nevertheless, you
8262 *** may want to report the problem to your system manager and/or to
8263 *** bug-libtool@gnu.org
8264
8265 EOF
8266           fi ;;
8267         esac
8268       fi
8269       break
8270     fi
8271   done
8272   IFS="$lt_save_ifs"
8273   MAGIC_CMD="$lt_save_MAGIC_CMD"
8274   ;;
8275 esac
8276 fi
8277
8278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8279 if test -n "$MAGIC_CMD"; then
8280   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8281 echo "${ECHO_T}$MAGIC_CMD" >&6
8282 else
8283   echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6
8285 fi
8286
8287 if test -z "$lt_cv_path_MAGIC_CMD"; then
8288   if test -n "$ac_tool_prefix"; then
8289     echo "$as_me:$LINENO: checking for file" >&5
8290 echo $ECHO_N "checking for file... $ECHO_C" >&6
8291 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8292   echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294   case $MAGIC_CMD in
8295 [\\/*] |  ?:[\\/]*)
8296   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8297   ;;
8298 *)
8299   lt_save_MAGIC_CMD="$MAGIC_CMD"
8300   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8301   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8302   for ac_dir in $ac_dummy; do
8303     IFS="$lt_save_ifs"
8304     test -z "$ac_dir" && ac_dir=.
8305     if test -f $ac_dir/file; then
8306       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8307       if test -n "$file_magic_test_file"; then
8308         case $deplibs_check_method in
8309         "file_magic "*)
8310           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8311           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8312           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8313             $EGREP "$file_magic_regex" > /dev/null; then
8314             :
8315           else
8316             cat <<EOF 1>&2
8317
8318 *** Warning: the command libtool uses to detect shared libraries,
8319 *** $file_magic_cmd, produces output that libtool cannot recognize.
8320 *** The result is that libtool may fail to recognize shared libraries
8321 *** as such.  This will affect the creation of libtool libraries that
8322 *** depend on shared libraries, but programs linked with such libtool
8323 *** libraries will work regardless of this problem.  Nevertheless, you
8324 *** may want to report the problem to your system manager and/or to
8325 *** bug-libtool@gnu.org
8326
8327 EOF
8328           fi ;;
8329         esac
8330       fi
8331       break
8332     fi
8333   done
8334   IFS="$lt_save_ifs"
8335   MAGIC_CMD="$lt_save_MAGIC_CMD"
8336   ;;
8337 esac
8338 fi
8339
8340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8341 if test -n "$MAGIC_CMD"; then
8342   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8343 echo "${ECHO_T}$MAGIC_CMD" >&6
8344 else
8345   echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8347 fi
8348
8349   else
8350     MAGIC_CMD=:
8351   fi
8352 fi
8353
8354   fi
8355   ;;
8356 esac
8357
8358 enable_dlopen=yes
8359 enable_win32_dll=yes
8360
8361 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8362 if test "${enable_libtool_lock+set}" = set; then
8363   enableval="$enable_libtool_lock"
8364
8365 fi;
8366 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8367
8368
8369 # Check whether --with-pic or --without-pic was given.
8370 if test "${with_pic+set}" = set; then
8371   withval="$with_pic"
8372   pic_mode="$withval"
8373 else
8374   pic_mode=default
8375 fi;
8376 test -z "$pic_mode" && pic_mode=default
8377
8378 # Use C for the default configuration in the libtool script
8379 tagname=
8380 lt_save_CC="$CC"
8381 ac_ext=c
8382 ac_cpp='$CPP $CPPFLAGS'
8383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8386
8387
8388 # Source file extension for C test sources.
8389 ac_ext=c
8390
8391 # Object file extension for compiled C test sources.
8392 objext=o
8393 objext=$objext
8394
8395 # Code to be used in simple compile tests
8396 lt_simple_compile_test_code="int some_variable = 0;\n"
8397
8398 # Code to be used in simple link tests
8399 lt_simple_link_test_code='int main(){return(0);}\n'
8400
8401
8402 # If no C compiler was specified, use CC.
8403 LTCC=${LTCC-"$CC"}
8404
8405 # Allow CC to be a program name with arguments.
8406 compiler=$CC
8407
8408
8409 # save warnings/boilerplate of simple test code
8410 ac_outfile=conftest.$ac_objext
8411 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8412 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8413 _lt_compiler_boilerplate=`cat conftest.err`
8414 $rm conftest*
8415
8416 ac_outfile=conftest.$ac_objext
8417 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8418 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8419 _lt_linker_boilerplate=`cat conftest.err`
8420 $rm conftest*
8421
8422
8423 #
8424 # Check for any special shared library compilation flags.
8425 #
8426 lt_prog_cc_shlib=
8427 if test "$GCC" = no; then
8428   case $host_os in
8429   sco3.2v5*)
8430     lt_prog_cc_shlib='-belf'
8431     ;;
8432   esac
8433 fi
8434 if test -n "$lt_prog_cc_shlib"; then
8435   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8436 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8437   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8438   else
8439     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8440 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8441     lt_cv_prog_cc_can_build_shared=no
8442   fi
8443 fi
8444
8445
8446 #
8447 # Check to make sure the static flag actually works.
8448 #
8449 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8450 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8451 if test "${lt_prog_compiler_static_works+set}" = set; then
8452   echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454   lt_prog_compiler_static_works=no
8455    save_LDFLAGS="$LDFLAGS"
8456    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8457    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8458    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8459      # The compiler can only warn and ignore the option if not recognized
8460      # So say no if there are warnings
8461      if test -s conftest.err; then
8462        # Append any errors to the config.log.
8463        cat conftest.err 1>&5
8464        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8465        $SED '/^$/d' conftest.err >conftest.er2
8466        if diff conftest.exp conftest.er2 >/dev/null; then
8467          lt_prog_compiler_static_works=yes
8468        fi
8469      else
8470        lt_prog_compiler_static_works=yes
8471      fi
8472    fi
8473    $rm conftest*
8474    LDFLAGS="$save_LDFLAGS"
8475
8476 fi
8477 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8478 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8479
8480 if test x"$lt_prog_compiler_static_works" = xyes; then
8481     :
8482 else
8483     lt_prog_compiler_static=
8484 fi
8485
8486
8487
8488
8489 lt_prog_compiler_no_builtin_flag=
8490
8491 if test "$GCC" = yes; then
8492   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8493
8494
8495 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8496 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8497 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   lt_cv_prog_compiler_rtti_exceptions=no
8501   ac_outfile=conftest.$ac_objext
8502    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8503    lt_compiler_flag="-fno-rtti -fno-exceptions"
8504    # Insert the option either (1) after the last *FLAGS variable, or
8505    # (2) before a word containing "conftest.", or (3) at the end.
8506    # Note that $ac_compile itself does not contain backslashes and begins
8507    # with a dollar sign (not a hyphen), so the echo should work correctly.
8508    # The option is referenced via a variable to avoid confusing sed.
8509    lt_compile=`echo "$ac_compile" | $SED \
8510    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8511    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8512    -e 's:$: $lt_compiler_flag:'`
8513    (eval echo "\"\$as_me:8513: $lt_compile\"" >&5)
8514    (eval "$lt_compile" 2>conftest.err)
8515    ac_status=$?
8516    cat conftest.err >&5
8517    echo "$as_me:8517: \$? = $ac_status" >&5
8518    if (exit $ac_status) && test -s "$ac_outfile"; then
8519      # The compiler can only warn and ignore the option if not recognized
8520      # So say no if there are warnings other than the usual output.
8521      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8522      $SED '/^$/d' conftest.err >conftest.er2
8523      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8524        lt_cv_prog_compiler_rtti_exceptions=yes
8525      fi
8526    fi
8527    $rm conftest*
8528
8529 fi
8530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8531 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8532
8533 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8534     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8535 else
8536     :
8537 fi
8538
8539 fi
8540
8541 lt_prog_compiler_wl=
8542 lt_prog_compiler_pic=
8543 lt_prog_compiler_static=
8544
8545 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8546 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8547
8548   if test "$GCC" = yes; then
8549     lt_prog_compiler_wl='-Wl,'
8550     lt_prog_compiler_static='-static'
8551
8552     case $host_os in
8553       aix*)
8554       # All AIX code is PIC.
8555       if test "$host_cpu" = ia64; then
8556         # AIX 5 now supports IA64 processor
8557         lt_prog_compiler_static='-Bstatic'
8558       fi
8559       ;;
8560
8561     amigaos*)
8562       # FIXME: we need at least 68020 code to build shared libraries, but
8563       # adding the `-m68020' flag to GCC prevents building anything better,
8564       # like `-m68040'.
8565       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8566       ;;
8567
8568     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8569       # PIC is the default for these OSes.
8570       ;;
8571
8572     mingw* | pw32* | os2*)
8573       # This hack is so that the source file can tell whether it is being
8574       # built for inclusion in a dll (and should export symbols for example).
8575       lt_prog_compiler_pic='-DDLL_EXPORT'
8576       ;;
8577
8578     darwin* | rhapsody*)
8579       # PIC is the default on this platform
8580       # Common symbols not allowed in MH_DYLIB files
8581       lt_prog_compiler_pic='-fno-common'
8582       ;;
8583
8584     msdosdjgpp*)
8585       # Just because we use GCC doesn't mean we suddenly get shared libraries
8586       # on systems that don't support them.
8587       lt_prog_compiler_can_build_shared=no
8588       enable_shared=no
8589       ;;
8590
8591     sysv4*MP*)
8592       if test -d /usr/nec; then
8593         lt_prog_compiler_pic=-Kconform_pic
8594       fi
8595       ;;
8596
8597     hpux*)
8598       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8599       # not for PA HP-UX.
8600       case "$host_cpu" in
8601       hppa*64*|ia64*)
8602         # +Z the default
8603         ;;
8604       *)
8605         lt_prog_compiler_pic='-fPIC'
8606         ;;
8607       esac
8608       ;;
8609
8610     *)
8611       lt_prog_compiler_pic='-fPIC'
8612       ;;
8613     esac
8614   else
8615     # PORTME Check for flag to pass linker flags through the system compiler.
8616     case $host_os in
8617     aix*)
8618       lt_prog_compiler_wl='-Wl,'
8619       if test "$host_cpu" = ia64; then
8620         # AIX 5 now supports IA64 processor
8621         lt_prog_compiler_static='-Bstatic'
8622       else
8623         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8624       fi
8625       ;;
8626       darwin*)
8627         # PIC is the default on this platform
8628         # Common symbols not allowed in MH_DYLIB files
8629        case $cc_basename in
8630          xlc*)
8631          lt_prog_compiler_pic='-qnocommon'
8632          lt_prog_compiler_wl='-Wl,'
8633          ;;
8634        esac
8635        ;;
8636
8637     mingw* | pw32* | os2*)
8638       # This hack is so that the source file can tell whether it is being
8639       # built for inclusion in a dll (and should export symbols for example).
8640       lt_prog_compiler_pic='-DDLL_EXPORT'
8641       ;;
8642
8643     hpux9* | hpux10* | hpux11*)
8644       lt_prog_compiler_wl='-Wl,'
8645       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8646       # not for PA HP-UX.
8647       case "$host_cpu" in
8648       hppa*64*|ia64*)
8649         # +Z the default
8650         ;;
8651       *)
8652         lt_prog_compiler_pic='+Z'
8653         ;;
8654       esac
8655       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8656       lt_prog_compiler_static='${wl}-a ${wl}archive'
8657       ;;
8658
8659     irix5* | irix6* | nonstopux*)
8660       lt_prog_compiler_wl='-Wl,'
8661       # PIC (with -KPIC) is the default.
8662       lt_prog_compiler_static='-non_shared'
8663       ;;
8664
8665     newsos6)
8666       lt_prog_compiler_pic='-KPIC'
8667       lt_prog_compiler_static='-Bstatic'
8668       ;;
8669
8670     linux*)
8671       case $cc_basename in
8672       icc* | ecc*)
8673         lt_prog_compiler_wl='-Wl,'
8674         lt_prog_compiler_pic='-KPIC'
8675         lt_prog_compiler_static='-static'
8676         ;;
8677       pgcc* | pgf77* | pgf90*)
8678         # Portland Group compilers (*not* the Pentium gcc compiler,
8679         # which looks to be a dead project)
8680         lt_prog_compiler_wl='-Wl,'
8681         lt_prog_compiler_pic='-fpic'
8682         lt_prog_compiler_static='-static'
8683         ;;
8684       ccc*)
8685         lt_prog_compiler_wl='-Wl,'
8686         # All Alpha code is PIC.
8687         lt_prog_compiler_static='-non_shared'
8688         ;;
8689       esac
8690       ;;
8691
8692     osf3* | osf4* | osf5*)
8693       lt_prog_compiler_wl='-Wl,'
8694       # All OSF/1 code is PIC.
8695       lt_prog_compiler_static='-non_shared'
8696       ;;
8697
8698     sco3.2v5*)
8699       lt_prog_compiler_pic='-Kpic'
8700       lt_prog_compiler_static='-dn'
8701       ;;
8702
8703     solaris*)
8704       lt_prog_compiler_pic='-KPIC'
8705       lt_prog_compiler_static='-Bstatic'
8706       case $cc_basename in
8707       f77* | f90* | f95*)
8708         lt_prog_compiler_wl='-Qoption ld ';;
8709       *)
8710         lt_prog_compiler_wl='-Wl,';;
8711       esac
8712       ;;
8713
8714     sunos4*)
8715       lt_prog_compiler_wl='-Qoption ld '
8716       lt_prog_compiler_pic='-PIC'
8717       lt_prog_compiler_static='-Bstatic'
8718       ;;
8719
8720     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8721       lt_prog_compiler_wl='-Wl,'
8722       lt_prog_compiler_pic='-KPIC'
8723       lt_prog_compiler_static='-Bstatic'
8724       ;;
8725
8726     sysv4*MP*)
8727       if test -d /usr/nec ;then
8728         lt_prog_compiler_pic='-Kconform_pic'
8729         lt_prog_compiler_static='-Bstatic'
8730       fi
8731       ;;
8732
8733     unicos*)
8734       lt_prog_compiler_wl='-Wl,'
8735       lt_prog_compiler_can_build_shared=no
8736       ;;
8737
8738     uts4*)
8739       lt_prog_compiler_pic='-pic'
8740       lt_prog_compiler_static='-Bstatic'
8741       ;;
8742
8743     *)
8744       lt_prog_compiler_can_build_shared=no
8745       ;;
8746     esac
8747   fi
8748
8749 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8750 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8751
8752 #
8753 # Check to make sure the PIC flag actually works.
8754 #
8755 if test -n "$lt_prog_compiler_pic"; then
8756
8757 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8758 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8759 if test "${lt_prog_compiler_pic_works+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   lt_prog_compiler_pic_works=no
8763   ac_outfile=conftest.$ac_objext
8764    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8765    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8766    # Insert the option either (1) after the last *FLAGS variable, or
8767    # (2) before a word containing "conftest.", or (3) at the end.
8768    # Note that $ac_compile itself does not contain backslashes and begins
8769    # with a dollar sign (not a hyphen), so the echo should work correctly.
8770    # The option is referenced via a variable to avoid confusing sed.
8771    lt_compile=`echo "$ac_compile" | $SED \
8772    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8774    -e 's:$: $lt_compiler_flag:'`
8775    (eval echo "\"\$as_me:8775: $lt_compile\"" >&5)
8776    (eval "$lt_compile" 2>conftest.err)
8777    ac_status=$?
8778    cat conftest.err >&5
8779    echo "$as_me:8779: \$? = $ac_status" >&5
8780    if (exit $ac_status) && test -s "$ac_outfile"; then
8781      # The compiler can only warn and ignore the option if not recognized
8782      # So say no if there are warnings other than the usual output.
8783      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8784      $SED '/^$/d' conftest.err >conftest.er2
8785      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8786        lt_prog_compiler_pic_works=yes
8787      fi
8788    fi
8789    $rm conftest*
8790
8791 fi
8792 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8793 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8794
8795 if test x"$lt_prog_compiler_pic_works" = xyes; then
8796     case $lt_prog_compiler_pic in
8797      "" | " "*) ;;
8798      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8799      esac
8800 else
8801     lt_prog_compiler_pic=
8802      lt_prog_compiler_can_build_shared=no
8803 fi
8804
8805 fi
8806 case "$host_os" in
8807   # For platforms which do not support PIC, -DPIC is meaningless:
8808   *djgpp*)
8809     lt_prog_compiler_pic=
8810     ;;
8811   *)
8812     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8813     ;;
8814 esac
8815
8816 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8818 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   lt_cv_prog_compiler_c_o=no
8822    $rm -r conftest 2>/dev/null
8823    mkdir conftest
8824    cd conftest
8825    mkdir out
8826    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8827
8828    lt_compiler_flag="-o out/conftest2.$ac_objext"
8829    # Insert the option either (1) after the last *FLAGS variable, or
8830    # (2) before a word containing "conftest.", or (3) at the end.
8831    # Note that $ac_compile itself does not contain backslashes and begins
8832    # with a dollar sign (not a hyphen), so the echo should work correctly.
8833    lt_compile=`echo "$ac_compile" | $SED \
8834    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836    -e 's:$: $lt_compiler_flag:'`
8837    (eval echo "\"\$as_me:8837: $lt_compile\"" >&5)
8838    (eval "$lt_compile" 2>out/conftest.err)
8839    ac_status=$?
8840    cat out/conftest.err >&5
8841    echo "$as_me:8841: \$? = $ac_status" >&5
8842    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8843    then
8844      # The compiler can only warn and ignore the option if not recognized
8845      # So say no if there are warnings
8846      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8847      $SED '/^$/d' out/conftest.err >out/conftest.er2
8848      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8849        lt_cv_prog_compiler_c_o=yes
8850      fi
8851    fi
8852    chmod u+w .
8853    $rm conftest*
8854    # SGI C++ compiler will create directory out/ii_files/ for
8855    # template instantiation
8856    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8857    $rm out/* && rmdir out
8858    cd ..
8859    rmdir conftest
8860    $rm conftest*
8861
8862 fi
8863 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8865
8866
8867 hard_links="nottested"
8868 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8869   # do not overwrite the value of need_locks provided by the user
8870   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8871 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8872   hard_links=yes
8873   $rm conftest*
8874   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8875   touch conftest.a
8876   ln conftest.a conftest.b 2>&5 || hard_links=no
8877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8878   echo "$as_me:$LINENO: result: $hard_links" >&5
8879 echo "${ECHO_T}$hard_links" >&6
8880   if test "$hard_links" = no; then
8881     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8882 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8883     need_locks=warn
8884   fi
8885 else
8886   need_locks=no
8887 fi
8888
8889 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8890 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8891
8892   runpath_var=
8893   allow_undefined_flag=
8894   enable_shared_with_static_runtimes=no
8895   archive_cmds=
8896   archive_expsym_cmds=
8897   old_archive_From_new_cmds=
8898   old_archive_from_expsyms_cmds=
8899   export_dynamic_flag_spec=
8900   whole_archive_flag_spec=
8901   thread_safe_flag_spec=
8902   hardcode_libdir_flag_spec=
8903   hardcode_libdir_flag_spec_ld=
8904   hardcode_libdir_separator=
8905   hardcode_direct=no
8906   hardcode_minus_L=no
8907   hardcode_shlibpath_var=unsupported
8908   link_all_deplibs=unknown
8909   hardcode_automatic=no
8910   module_cmds=
8911   module_expsym_cmds=
8912   always_export_symbols=no
8913   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8914   # include_expsyms should be a list of space-separated symbols to be *always*
8915   # included in the symbol list
8916   include_expsyms=
8917   # exclude_expsyms can be an extended regexp of symbols to exclude
8918   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8919   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8920   # as well as any symbol that contains `d'.
8921   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8922   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8923   # platforms (ab)use it in PIC code, but their linkers get confused if
8924   # the symbol is explicitly referenced.  Since portable code cannot
8925   # rely on this symbol name, it's probably fine to never include it in
8926   # preloaded symbol tables.
8927   extract_expsyms_cmds=
8928   # Just being paranoid about ensuring that cc_basename is set.
8929   for cc_temp in $compiler""; do
8930   case $cc_temp in
8931     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8932     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8933     \-*) ;;
8934     *) break;;
8935   esac
8936 done
8937 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8938
8939   case $host_os in
8940   cygwin* | mingw* | pw32*)
8941     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8942     # When not using gcc, we currently assume that we are using
8943     # Microsoft Visual C++.
8944     if test "$GCC" != yes; then
8945       with_gnu_ld=no
8946     fi
8947     ;;
8948   openbsd*)
8949     with_gnu_ld=no
8950     ;;
8951   esac
8952
8953   ld_shlibs=yes
8954   if test "$with_gnu_ld" = yes; then
8955     # If archive_cmds runs LD, not CC, wlarc should be empty
8956     wlarc='${wl}'
8957
8958     # Set some defaults for GNU ld with shared library support. These
8959     # are reset later if shared libraries are not supported. Putting them
8960     # here allows them to be overridden if necessary.
8961     runpath_var=LD_RUN_PATH
8962     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8963     export_dynamic_flag_spec='${wl}--export-dynamic'
8964     # ancient GNU ld didn't support --whole-archive et. al.
8965     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8966         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8967       else
8968         whole_archive_flag_spec=
8969     fi
8970     supports_anon_versioning=no
8971     case `$LD -v 2>/dev/null` in
8972       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8973       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8974       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8975       *\ 2.11.*) ;; # other 2.11 versions
8976       *) supports_anon_versioning=yes ;;
8977     esac
8978
8979     # See if GNU ld supports shared libraries.
8980     case $host_os in
8981     aix3* | aix4* | aix5*)
8982       # On AIX/PPC, the GNU linker is very broken
8983       if test "$host_cpu" != ia64; then
8984         ld_shlibs=no
8985         cat <<EOF 1>&2
8986
8987 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8988 *** to be unable to reliably create shared libraries on AIX.
8989 *** Therefore, libtool is disabling shared libraries support.  If you
8990 *** really care for shared libraries, you may want to modify your PATH
8991 *** so that a non-GNU linker is found, and then restart.
8992
8993 EOF
8994       fi
8995       ;;
8996
8997     amigaos*)
8998       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)'
8999       hardcode_libdir_flag_spec='-L$libdir'
9000       hardcode_minus_L=yes
9001
9002       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9003       # that the semantics of dynamic libraries on AmigaOS, at least up
9004       # to version 4, is to share data among multiple programs linked
9005       # with the same dynamic library.  Since this doesn't match the
9006       # behavior of shared libraries on other platforms, we can't use
9007       # them.
9008       ld_shlibs=no
9009       ;;
9010
9011     beos*)
9012       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9013         allow_undefined_flag=unsupported
9014         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9015         # support --undefined.  This deserves some investigation.  FIXME
9016         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017       else
9018         ld_shlibs=no
9019       fi
9020       ;;
9021
9022     cygwin* | mingw* | pw32*)
9023       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9024       # as there is no search path for DLLs.
9025       hardcode_libdir_flag_spec='-L$libdir'
9026       allow_undefined_flag=unsupported
9027       always_export_symbols=no
9028       enable_shared_with_static_runtimes=yes
9029       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9030
9031       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9032         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9033         # If the export-symbols file already is a .def file (1st line
9034         # is EXPORTS), use it as is; otherwise, prepend...
9035         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9036           cp $export_symbols $output_objdir/$soname.def;
9037         else
9038           echo EXPORTS > $output_objdir/$soname.def;
9039           cat $export_symbols >> $output_objdir/$soname.def;
9040         fi~
9041         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9042       else
9043         ld_shlibs=no
9044       fi
9045       ;;
9046
9047     linux*)
9048       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9049         tmp_addflag=
9050         case $cc_basename,$host_cpu in
9051         pgcc*)                          # Portland Group C compiler
9052           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'
9053           tmp_addflag=' $pic_flag'
9054           ;;
9055         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9056           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'
9057           tmp_addflag=' $pic_flag -Mnomain' ;;
9058         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9059           tmp_addflag=' -i_dynamic' ;;
9060         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9061           tmp_addflag=' -i_dynamic -nofor_main' ;;
9062         ifc* | ifort*)                  # Intel Fortran compiler
9063           tmp_addflag=' -nofor_main' ;;
9064         esac
9065         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066
9067         if test $supports_anon_versioning = yes; then
9068           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9069   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9070   $echo "local: *; };" >> $output_objdir/$libname.ver~
9071           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9072         fi
9073       else
9074         ld_shlibs=no
9075       fi
9076       ;;
9077
9078     netbsd*)
9079       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9080         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9081         wlarc=
9082       else
9083         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9084         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9085       fi
9086       ;;
9087
9088     solaris* | sysv5*)
9089       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9090         ld_shlibs=no
9091         cat <<EOF 1>&2
9092
9093 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9094 *** create shared libraries on Solaris systems.  Therefore, libtool
9095 *** is disabling shared libraries support.  We urge you to upgrade GNU
9096 *** binutils to release 2.9.1 or newer.  Another option is to modify
9097 *** your PATH or compiler configuration so that the native linker is
9098 *** used, and then restart.
9099
9100 EOF
9101       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9102         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9104       else
9105         ld_shlibs=no
9106       fi
9107       ;;
9108
9109     sunos4*)
9110       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9111       wlarc=
9112       hardcode_direct=yes
9113       hardcode_shlibpath_var=no
9114       ;;
9115
9116     *)
9117       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9118         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9120       else
9121         ld_shlibs=no
9122       fi
9123       ;;
9124     esac
9125
9126     if test "$ld_shlibs" = no; then
9127       runpath_var=
9128       hardcode_libdir_flag_spec=
9129       export_dynamic_flag_spec=
9130       whole_archive_flag_spec=
9131     fi
9132   else
9133     # PORTME fill in a description of your system's linker (not GNU ld)
9134     case $host_os in
9135     aix3*)
9136       allow_undefined_flag=unsupported
9137       always_export_symbols=yes
9138       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'
9139       # Note: this linker hardcodes the directories in LIBPATH if there
9140       # are no directories specified by -L.
9141       hardcode_minus_L=yes
9142       if test "$GCC" = yes && test -z "$link_static_flag"; then
9143         # Neither direct hardcoding nor static linking is supported with a
9144         # broken collect2.
9145         hardcode_direct=unsupported
9146       fi
9147       ;;
9148
9149     aix4* | aix5*)
9150       if test "$host_cpu" = ia64; then
9151         # On IA64, the linker does run time linking by default, so we don't
9152         # have to do anything special.
9153         aix_use_runtimelinking=no
9154         exp_sym_flag='-Bexport'
9155         no_entry_flag=""
9156       else
9157         # If we're using GNU nm, then we don't want the "-C" option.
9158         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9159         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9160           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'
9161         else
9162           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'
9163         fi
9164         aix_use_runtimelinking=no
9165
9166         # Test if we are trying to use run time linking or normal
9167         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9168         # need to do runtime linking.
9169         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9170           for ld_flag in $LDFLAGS; do
9171           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9172             aix_use_runtimelinking=yes
9173             break
9174           fi
9175           done
9176         esac
9177
9178         exp_sym_flag='-bexport'
9179         no_entry_flag='-bnoentry'
9180       fi
9181
9182       # When large executables or shared objects are built, AIX ld can
9183       # have problems creating the table of contents.  If linking a library
9184       # or program results in "error TOC overflow" add -mminimal-toc to
9185       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9186       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9187
9188       archive_cmds=''
9189       hardcode_direct=yes
9190       hardcode_libdir_separator=':'
9191       link_all_deplibs=yes
9192
9193       if test "$GCC" = yes; then
9194         case $host_os in aix4.[012]|aix4.[012].*)
9195         # We only want to do this on AIX 4.2 and lower, the check
9196         # below for broken collect2 doesn't work under 4.3+
9197           collect2name=`${CC} -print-prog-name=collect2`
9198           if test -f "$collect2name" && \
9199            strings "$collect2name" | grep resolve_lib_name >/dev/null
9200           then
9201           # We have reworked collect2
9202           hardcode_direct=yes
9203           else
9204           # We have old collect2
9205           hardcode_direct=unsupported
9206           # It fails to find uninstalled libraries when the uninstalled
9207           # path is not listed in the libpath.  Setting hardcode_minus_L
9208           # to unsupported forces relinking
9209           hardcode_minus_L=yes
9210           hardcode_libdir_flag_spec='-L$libdir'
9211           hardcode_libdir_separator=
9212           fi
9213         esac
9214         shared_flag='-shared'
9215         if test "$aix_use_runtimelinking" = yes; then
9216           shared_flag="$shared_flag "'${wl}-G'
9217         fi
9218       else
9219         # not using gcc
9220         if test "$host_cpu" = ia64; then
9221         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9222         # chokes on -Wl,-G. The following line is correct:
9223           shared_flag='-G'
9224         else
9225         if test "$aix_use_runtimelinking" = yes; then
9226             shared_flag='${wl}-G'
9227           else
9228             shared_flag='${wl}-bM:SRE'
9229         fi
9230         fi
9231       fi
9232
9233       # It seems that -bexpall does not export symbols beginning with
9234       # underscore (_), so it is better to generate a list of symbols to export.
9235       always_export_symbols=yes
9236       if test "$aix_use_runtimelinking" = yes; then
9237         # Warning - without using the other runtime loading flags (-brtl),
9238         # -berok will link without error, but may produce a broken library.
9239         allow_undefined_flag='-berok'
9240        # Determine the default libpath from the value encoded in an empty executable.
9241        cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247
9248 int
9249 main ()
9250 {
9251
9252   ;
9253   return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258   (eval $ac_link) 2>conftest.er1
9259   ac_status=$?
9260   grep -v '^ *+' conftest.er1 >conftest.err
9261   rm -f conftest.er1
9262   cat conftest.err >&5
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); } &&
9265          { ac_try='test -z "$ac_c_werror_flag"
9266                          || test ! -s conftest.err'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; } &&
9272          { ac_try='test -s conftest$ac_exeext'
9273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274   (eval $ac_try) 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; }; then
9278
9279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9280 }'`
9281 # Check for a 64-bit object if we didn't find anything.
9282 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; }
9283 }'`; fi
9284 else
9285   echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9287
9288 fi
9289 rm -f conftest.err conftest.$ac_objext \
9290       conftest$ac_exeext conftest.$ac_ext
9291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9292
9293        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9294         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"
9295        else
9296         if test "$host_cpu" = ia64; then
9297           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9298           allow_undefined_flag="-z nodefs"
9299           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"
9300         else
9301          # Determine the default libpath from the value encoded in an empty executable.
9302          cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308
9309 int
9310 main ()
9311 {
9312
9313   ;
9314   return 0;
9315 }
9316 _ACEOF
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319   (eval $ac_link) 2>conftest.er1
9320   ac_status=$?
9321   grep -v '^ *+' conftest.er1 >conftest.err
9322   rm -f conftest.er1
9323   cat conftest.err >&5
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } &&
9326          { ac_try='test -z "$ac_c_werror_flag"
9327                          || test ! -s conftest.err'
9328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329   (eval $ac_try) 2>&5
9330   ac_status=$?
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); }; } &&
9333          { ac_try='test -s conftest$ac_exeext'
9334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335   (eval $ac_try) 2>&5
9336   ac_status=$?
9337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); }; }; then
9339
9340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9341 }'`
9342 # Check for a 64-bit object if we didn't find anything.
9343 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; }
9344 }'`; fi
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 fi
9350 rm -f conftest.err conftest.$ac_objext \
9351       conftest$ac_exeext conftest.$ac_ext
9352 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9353
9354          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9355           # Warning - without using the other run time loading flags,
9356           # -berok will link without error, but may produce a broken library.
9357           no_undefined_flag=' ${wl}-bernotok'
9358           allow_undefined_flag=' ${wl}-berok'
9359           # -bexpall does not export symbols beginning with underscore (_)
9360           always_export_symbols=yes
9361           # Exported symbols can be pulled into shared objects from archives
9362           whole_archive_flag_spec=' '
9363           archive_cmds_need_lc=yes
9364           # This is similar to how AIX traditionally builds it's shared libraries.
9365           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'
9366         fi
9367       fi
9368       ;;
9369
9370     amigaos*)
9371       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)'
9372       hardcode_libdir_flag_spec='-L$libdir'
9373       hardcode_minus_L=yes
9374       # see comment about different semantics on the GNU ld section
9375       ld_shlibs=no
9376       ;;
9377
9378     bsdi[45]*)
9379       export_dynamic_flag_spec=-rdynamic
9380       ;;
9381
9382     cygwin* | mingw* | pw32*)
9383       # When not using gcc, we currently assume that we are using
9384       # Microsoft Visual C++.
9385       # hardcode_libdir_flag_spec is actually meaningless, as there is
9386       # no search path for DLLs.
9387       hardcode_libdir_flag_spec=' '
9388       allow_undefined_flag=unsupported
9389       # Tell ltmain to make .lib files, not .a files.
9390       libext=lib
9391       # Tell ltmain to make .dll files, not .so files.
9392       shrext_cmds=".dll"
9393       # FIXME: Setting linknames here is a bad hack.
9394       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9395       # The linker will automatically build a .lib file if we build a DLL.
9396       old_archive_From_new_cmds='true'
9397       # FIXME: Should let the user specify the lib program.
9398       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9399       fix_srcfile_path='`cygpath -w "$srcfile"`'
9400       enable_shared_with_static_runtimes=yes
9401       ;;
9402
9403     darwin* | rhapsody*)
9404       case "$host_os" in
9405         rhapsody* | darwin1.[012])
9406          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9407          ;;
9408        *) # Darwin 1.3 on
9409          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9410            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9411          else
9412            case ${MACOSX_DEPLOYMENT_TARGET} in
9413              10.[012])
9414                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9415                ;;
9416              10.*)
9417                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9418                ;;
9419            esac
9420          fi
9421          ;;
9422       esac
9423       archive_cmds_need_lc=no
9424       hardcode_direct=no
9425       hardcode_automatic=yes
9426       hardcode_shlibpath_var=unsupported
9427       whole_archive_flag_spec=''
9428       link_all_deplibs=yes
9429     if test "$GCC" = yes ; then
9430         output_verbose_link_cmd='echo'
9431         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9432       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9433       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9434       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}'
9435       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}'
9436     else
9437       case $cc_basename in
9438         xlc*)
9439          output_verbose_link_cmd='echo'
9440          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9441          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9442           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9443          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}'
9444           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}'
9445           ;;
9446        *)
9447          ld_shlibs=no
9448           ;;
9449       esac
9450     fi
9451       ;;
9452
9453     dgux*)
9454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455       hardcode_libdir_flag_spec='-L$libdir'
9456       hardcode_shlibpath_var=no
9457       ;;
9458
9459     freebsd1*)
9460       ld_shlibs=no
9461       ;;
9462
9463     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9464     # support.  Future versions do this automatically, but an explicit c++rt0.o
9465     # does not break anything, and helps significantly (at the cost of a little
9466     # extra space).
9467     freebsd2.2*)
9468       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9469       hardcode_libdir_flag_spec='-R$libdir'
9470       hardcode_direct=yes
9471       hardcode_shlibpath_var=no
9472       ;;
9473
9474     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9475     freebsd2*)
9476       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9477       hardcode_direct=yes
9478       hardcode_minus_L=yes
9479       hardcode_shlibpath_var=no
9480       ;;
9481
9482     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9483     freebsd* | kfreebsd*-gnu | dragonfly*)
9484       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9485       hardcode_libdir_flag_spec='-R$libdir'
9486       hardcode_direct=yes
9487       hardcode_shlibpath_var=no
9488       ;;
9489
9490     hpux9*)
9491       if test "$GCC" = yes; then
9492         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'
9493       else
9494         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'
9495       fi
9496       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9497       hardcode_libdir_separator=:
9498       hardcode_direct=yes
9499
9500       # hardcode_minus_L: Not really in the search PATH,
9501       # but as the default location of the library.
9502       hardcode_minus_L=yes
9503       export_dynamic_flag_spec='${wl}-E'
9504       ;;
9505
9506     hpux10* | hpux11*)
9507       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9508         case "$host_cpu" in
9509         hppa*64*|ia64*)
9510           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9511           ;;
9512         *)
9513           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9514           ;;
9515         esac
9516       else
9517         case "$host_cpu" in
9518         hppa*64*|ia64*)
9519           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9520           ;;
9521         *)
9522           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9523           ;;
9524         esac
9525       fi
9526       if test "$with_gnu_ld" = no; then
9527         case "$host_cpu" in
9528         hppa*64*)
9529           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9530           hardcode_libdir_flag_spec_ld='+b $libdir'
9531           hardcode_libdir_separator=:
9532           hardcode_direct=no
9533           hardcode_shlibpath_var=no
9534           ;;
9535         ia64*)
9536           hardcode_libdir_flag_spec='-L$libdir'
9537           hardcode_direct=no
9538           hardcode_shlibpath_var=no
9539
9540           # hardcode_minus_L: Not really in the search PATH,
9541           # but as the default location of the library.
9542           hardcode_minus_L=yes
9543           ;;
9544         *)
9545           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9546           hardcode_libdir_separator=:
9547           hardcode_direct=yes
9548           export_dynamic_flag_spec='${wl}-E'
9549
9550           # hardcode_minus_L: Not really in the search PATH,
9551           # but as the default location of the library.
9552           hardcode_minus_L=yes
9553           ;;
9554         esac
9555       fi
9556       ;;
9557
9558     irix5* | irix6* | nonstopux*)
9559       if test "$GCC" = yes; then
9560         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'
9561       else
9562         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'
9563         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9564       fi
9565       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566       hardcode_libdir_separator=:
9567       link_all_deplibs=yes
9568       ;;
9569
9570     netbsd*)
9571       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9572         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9573       else
9574         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9575       fi
9576       hardcode_libdir_flag_spec='-R$libdir'
9577       hardcode_direct=yes
9578       hardcode_shlibpath_var=no
9579       ;;
9580
9581     newsos6)
9582       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9583       hardcode_direct=yes
9584       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585       hardcode_libdir_separator=:
9586       hardcode_shlibpath_var=no
9587       ;;
9588
9589     openbsd*)
9590       hardcode_direct=yes
9591       hardcode_shlibpath_var=no
9592       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9593         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9594         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9595         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9596         export_dynamic_flag_spec='${wl}-E'
9597       else
9598        case $host_os in
9599          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9600            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9601            hardcode_libdir_flag_spec='-R$libdir'
9602            ;;
9603          *)
9604            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9605            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9606            ;;
9607        esac
9608       fi
9609       ;;
9610
9611     os2*)
9612       hardcode_libdir_flag_spec='-L$libdir'
9613       hardcode_minus_L=yes
9614       allow_undefined_flag=unsupported
9615       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'
9616       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9617       ;;
9618
9619     osf3*)
9620       if test "$GCC" = yes; then
9621         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9622         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'
9623       else
9624         allow_undefined_flag=' -expect_unresolved \*'
9625         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'
9626       fi
9627       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628       hardcode_libdir_separator=:
9629       ;;
9630
9631     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9632       if test "$GCC" = yes; then
9633         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9634         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'
9635         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9636       else
9637         allow_undefined_flag=' -expect_unresolved \*'
9638         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'
9639         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9640         $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'
9641
9642         # Both c and cxx compiler support -rpath directly
9643         hardcode_libdir_flag_spec='-rpath $libdir'
9644       fi
9645       hardcode_libdir_separator=:
9646       ;;
9647
9648     sco3.2v5*)
9649       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650       hardcode_shlibpath_var=no
9651       export_dynamic_flag_spec='${wl}-Bexport'
9652       runpath_var=LD_RUN_PATH
9653       hardcode_runpath_var=yes
9654       ;;
9655
9656     solaris*)
9657       no_undefined_flag=' -z text'
9658       if test "$GCC" = yes; then
9659         wlarc='${wl}'
9660         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9661         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9662           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9663       else
9664         wlarc=''
9665         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9667         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9668       fi
9669       hardcode_libdir_flag_spec='-R$libdir'
9670       hardcode_shlibpath_var=no
9671       case $host_os in
9672       solaris2.[0-5] | solaris2.[0-5].*) ;;
9673       *)
9674         # The compiler driver will combine linker options so we
9675         # cannot just pass the convience library names through
9676         # without $wl, iff we do not link with $LD.
9677         # Luckily, gcc supports the same syntax we need for Sun Studio.
9678         # Supported since Solaris 2.6 (maybe 2.5.1?)
9679         case $wlarc in
9680         '')
9681           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9682         *)
9683           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' ;;
9684         esac ;;
9685       esac
9686       link_all_deplibs=yes
9687       ;;
9688
9689     sunos4*)
9690       if test "x$host_vendor" = xsequent; then
9691         # Use $CC to link under sequent, because it throws in some extra .o
9692         # files that make .init and .fini sections work.
9693         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9694       else
9695         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9696       fi
9697       hardcode_libdir_flag_spec='-L$libdir'
9698       hardcode_direct=yes
9699       hardcode_minus_L=yes
9700       hardcode_shlibpath_var=no
9701       ;;
9702
9703     sysv4)
9704       case $host_vendor in
9705         sni)
9706           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707           hardcode_direct=yes # is this really true???
9708         ;;
9709         siemens)
9710           ## LD is ld it makes a PLAMLIB
9711           ## CC just makes a GrossModule.
9712           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9713           reload_cmds='$CC -r -o $output$reload_objs'
9714           hardcode_direct=no
9715         ;;
9716         motorola)
9717           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9719         ;;
9720       esac
9721       runpath_var='LD_RUN_PATH'
9722       hardcode_shlibpath_var=no
9723       ;;
9724
9725     sysv4.3*)
9726       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727       hardcode_shlibpath_var=no
9728       export_dynamic_flag_spec='-Bexport'
9729       ;;
9730
9731     sysv4*MP*)
9732       if test -d /usr/nec; then
9733         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734         hardcode_shlibpath_var=no
9735         runpath_var=LD_RUN_PATH
9736         hardcode_runpath_var=yes
9737         ld_shlibs=yes
9738       fi
9739       ;;
9740
9741     sysv4.2uw2*)
9742       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9743       hardcode_direct=yes
9744       hardcode_minus_L=no
9745       hardcode_shlibpath_var=no
9746       hardcode_runpath_var=yes
9747       runpath_var=LD_RUN_PATH
9748       ;;
9749
9750    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9751       no_undefined_flag='${wl}-z ${wl}text'
9752       if test "$GCC" = yes; then
9753         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754       else
9755         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9756       fi
9757       runpath_var='LD_RUN_PATH'
9758       hardcode_shlibpath_var=no
9759       ;;
9760
9761     sysv5*)
9762       no_undefined_flag=' -z text'
9763       # $CC -shared without GNU ld will not create a library from C++
9764       # object files and a static libstdc++, better avoid it by now
9765       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9767                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9768       hardcode_libdir_flag_spec=
9769       hardcode_shlibpath_var=no
9770       runpath_var='LD_RUN_PATH'
9771       ;;
9772
9773     uts4*)
9774       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775       hardcode_libdir_flag_spec='-L$libdir'
9776       hardcode_shlibpath_var=no
9777       ;;
9778
9779     *)
9780       ld_shlibs=no
9781       ;;
9782     esac
9783   fi
9784
9785 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9786 echo "${ECHO_T}$ld_shlibs" >&6
9787 test "$ld_shlibs" = no && can_build_shared=no
9788
9789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9790 if test "$GCC" = yes; then
9791   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9792 fi
9793
9794 #
9795 # Do we need to explicitly link libc?
9796 #
9797 case "x$archive_cmds_need_lc" in
9798 x|xyes)
9799   # Assume -lc should be added
9800   archive_cmds_need_lc=yes
9801
9802   if test "$enable_shared" = yes && test "$GCC" = yes; then
9803     case $archive_cmds in
9804     *'~'*)
9805       # FIXME: we may have to deal with multi-command sequences.
9806       ;;
9807     '$CC '*)
9808       # Test whether the compiler implicitly links with -lc since on some
9809       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9810       # to ld, don't add -lc before -lgcc.
9811       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9812 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9813       $rm conftest*
9814       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9815
9816       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9817   (eval $ac_compile) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } 2>conftest.err; then
9821         soname=conftest
9822         lib=conftest
9823         libobjs=conftest.$ac_objext
9824         deplibs=
9825         wl=$lt_prog_compiler_wl
9826         compiler_flags=-v
9827         linker_flags=-v
9828         verstring=
9829         output_objdir=.
9830         libname=conftest
9831         lt_save_allow_undefined_flag=$allow_undefined_flag
9832         allow_undefined_flag=
9833         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9834   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }
9838         then
9839           archive_cmds_need_lc=no
9840         else
9841           archive_cmds_need_lc=yes
9842         fi
9843         allow_undefined_flag=$lt_save_allow_undefined_flag
9844       else
9845         cat conftest.err 1>&5
9846       fi
9847       $rm conftest*
9848       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9849 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9850       ;;
9851     esac
9852   fi
9853   ;;
9854 esac
9855
9856 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9857 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9858 library_names_spec=
9859 libname_spec='lib$name'
9860 soname_spec=
9861 shrext_cmds=".so"
9862 postinstall_cmds=
9863 postuninstall_cmds=
9864 finish_cmds=
9865 finish_eval=
9866 shlibpath_var=
9867 shlibpath_overrides_runpath=unknown
9868 version_type=none
9869 dynamic_linker="$host_os ld.so"
9870 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9871 if test "$GCC" = yes; then
9872   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9873   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9874     # if the path contains ";" then we assume it to be the separator
9875     # otherwise default to the standard path separator (i.e. ":") - it is
9876     # assumed that no part of a normal pathname contains ";" but that should
9877     # okay in the real world where ";" in dirpaths is itself problematic.
9878     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9879   else
9880     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9881   fi
9882 else
9883   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9884 fi
9885 need_lib_prefix=unknown
9886 hardcode_into_libs=no
9887
9888 # when you set need_version to no, make sure it does not cause -set_version
9889 # flags to be left without arguments
9890 need_version=unknown
9891
9892 case $host_os in
9893 aix3*)
9894   version_type=linux
9895   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9896   shlibpath_var=LIBPATH
9897
9898   # AIX 3 has no versioning support, so we append a major version to the name.
9899   soname_spec='${libname}${release}${shared_ext}$major'
9900   ;;
9901
9902 aix4* | aix5*)
9903   version_type=linux
9904   need_lib_prefix=no
9905   need_version=no
9906   hardcode_into_libs=yes
9907   if test "$host_cpu" = ia64; then
9908     # AIX 5 supports IA64
9909     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9910     shlibpath_var=LD_LIBRARY_PATH
9911   else
9912     # With GCC up to 2.95.x, collect2 would create an import file
9913     # for dependence libraries.  The import file would start with
9914     # the line `#! .'.  This would cause the generated library to
9915     # depend on `.', always an invalid library.  This was fixed in
9916     # development snapshots of GCC prior to 3.0.
9917     case $host_os in
9918       aix4 | aix4.[01] | aix4.[01].*)
9919       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9920            echo ' yes '
9921            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9922         :
9923       else
9924         can_build_shared=no
9925       fi
9926       ;;
9927     esac
9928     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9929     # soname into executable. Probably we can add versioning support to
9930     # collect2, so additional links can be useful in future.
9931     if test "$aix_use_runtimelinking" = yes; then
9932       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9933       # instead of lib<name>.a to let people know that these are not
9934       # typical AIX shared libraries.
9935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936     else
9937       # We preserve .a as extension for shared libraries through AIX4.2
9938       # and later when we are not doing run time linking.
9939       library_names_spec='${libname}${release}.a $libname.a'
9940       soname_spec='${libname}${release}${shared_ext}$major'
9941     fi
9942     shlibpath_var=LIBPATH
9943   fi
9944   ;;
9945
9946 amigaos*)
9947   library_names_spec='$libname.ixlibrary $libname.a'
9948   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9949   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'
9950   ;;
9951
9952 beos*)
9953   library_names_spec='${libname}${shared_ext}'
9954   dynamic_linker="$host_os ld.so"
9955   shlibpath_var=LIBRARY_PATH
9956   ;;
9957
9958 bsdi[45]*)
9959   version_type=linux
9960   need_version=no
9961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962   soname_spec='${libname}${release}${shared_ext}$major'
9963   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9964   shlibpath_var=LD_LIBRARY_PATH
9965   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9966   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9967   # the default ld.so.conf also contains /usr/contrib/lib and
9968   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9969   # libtool to hard-code these into programs
9970   ;;
9971
9972 cygwin* | mingw* | pw32*)
9973   version_type=windows
9974   shrext_cmds=".dll"
9975   need_version=no
9976   need_lib_prefix=no
9977
9978   case $GCC,$host_os in
9979   yes,cygwin* | yes,mingw* | yes,pw32*)
9980     library_names_spec='$libname.dll.a'
9981     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9982     postinstall_cmds='base_file=`basename \${file}`~
9983       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9984       dldir=$destdir/`dirname \$dlpath`~
9985       test -d \$dldir || mkdir -p \$dldir~
9986       $install_prog $dir/$dlname \$dldir/$dlname'
9987     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9988       dlpath=$dir/\$dldll~
9989        $rm \$dlpath'
9990     shlibpath_overrides_runpath=yes
9991
9992     case $host_os in
9993     cygwin*)
9994       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9995       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9996       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9997       ;;
9998     mingw*)
9999       # MinGW DLLs use traditional 'lib' prefix
10000       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10001       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10002       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10003         # It is most probably a Windows format PATH printed by
10004         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10005         # path with ; separators, and with drive letters. We can handle the
10006         # drive letters (cygwin fileutils understands them), so leave them,
10007         # especially as we might pass files found there to a mingw objdump,
10008         # which wouldn't understand a cygwinified path. Ahh.
10009         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10010       else
10011         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10012       fi
10013       ;;
10014     pw32*)
10015       # pw32 DLLs use 'pw' prefix rather than 'lib'
10016       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10017       ;;
10018     esac
10019     ;;
10020
10021   *)
10022     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10023     ;;
10024   esac
10025   dynamic_linker='Win32 ld.exe'
10026   # FIXME: first we should search . and the directory the executable is in
10027   shlibpath_var=PATH
10028   ;;
10029
10030 darwin* | rhapsody*)
10031   dynamic_linker="$host_os dyld"
10032   version_type=darwin
10033   need_lib_prefix=no
10034   need_version=no
10035   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10036   soname_spec='${libname}${release}${major}$shared_ext'
10037   shlibpath_overrides_runpath=yes
10038   shlibpath_var=DYLD_LIBRARY_PATH
10039   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10040   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10041   if test "$GCC" = yes; then
10042     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"`
10043   else
10044     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10045   fi
10046   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10047   ;;
10048
10049 dgux*)
10050   version_type=linux
10051   need_lib_prefix=no
10052   need_version=no
10053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10054   soname_spec='${libname}${release}${shared_ext}$major'
10055   shlibpath_var=LD_LIBRARY_PATH
10056   ;;
10057
10058 freebsd1*)
10059   dynamic_linker=no
10060   ;;
10061
10062 kfreebsd*-gnu)
10063   version_type=linux
10064   need_lib_prefix=no
10065   need_version=no
10066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10067   soname_spec='${libname}${release}${shared_ext}$major'
10068   shlibpath_var=LD_LIBRARY_PATH
10069   shlibpath_overrides_runpath=no
10070   hardcode_into_libs=yes
10071   dynamic_linker='GNU ld.so'
10072   ;;
10073
10074 freebsd* | dragonfly*)
10075   # DragonFly does not have aout.  When/if they implement a new
10076   # versioning mechanism, adjust this.
10077   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10078   version_type=freebsd-$objformat
10079   case $version_type in
10080     freebsd-elf*)
10081       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10082       need_version=no
10083       need_lib_prefix=no
10084       ;;
10085     freebsd-*)
10086       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10087       need_version=yes
10088       ;;
10089   esac
10090   shlibpath_var=LD_LIBRARY_PATH
10091   case $host_os in
10092   freebsd2*)
10093     shlibpath_overrides_runpath=yes
10094     ;;
10095   freebsd3.[01]* | freebsdelf3.[01]*)
10096     shlibpath_overrides_runpath=yes
10097     hardcode_into_libs=yes
10098     ;;
10099   *) # from 3.2 on
10100     shlibpath_overrides_runpath=no
10101     hardcode_into_libs=yes
10102     ;;
10103   esac
10104   ;;
10105
10106 gnu*)
10107   version_type=linux
10108   need_lib_prefix=no
10109   need_version=no
10110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10111   soname_spec='${libname}${release}${shared_ext}$major'
10112   shlibpath_var=LD_LIBRARY_PATH
10113   hardcode_into_libs=yes
10114   ;;
10115
10116 hpux9* | hpux10* | hpux11*)
10117   # Give a soname corresponding to the major version so that dld.sl refuses to
10118   # link against other versions.
10119   version_type=sunos
10120   need_lib_prefix=no
10121   need_version=no
10122   case "$host_cpu" in
10123   ia64*)
10124     shrext_cmds='.so'
10125     hardcode_into_libs=yes
10126     dynamic_linker="$host_os dld.so"
10127     shlibpath_var=LD_LIBRARY_PATH
10128     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130     soname_spec='${libname}${release}${shared_ext}$major'
10131     if test "X$HPUX_IA64_MODE" = X32; then
10132       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10133     else
10134       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10135     fi
10136     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10137     ;;
10138    hppa*64*)
10139      shrext_cmds='.sl'
10140      hardcode_into_libs=yes
10141      dynamic_linker="$host_os dld.sl"
10142      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10143      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10144      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145      soname_spec='${libname}${release}${shared_ext}$major'
10146      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10147      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10148      ;;
10149    *)
10150     shrext_cmds='.sl'
10151     dynamic_linker="$host_os dld.sl"
10152     shlibpath_var=SHLIB_PATH
10153     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155     soname_spec='${libname}${release}${shared_ext}$major'
10156     ;;
10157   esac
10158   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10159   postinstall_cmds='chmod 555 $lib'
10160   ;;
10161
10162 irix5* | irix6* | nonstopux*)
10163   case $host_os in
10164     nonstopux*) version_type=nonstopux ;;
10165     *)
10166         if test "$lt_cv_prog_gnu_ld" = yes; then
10167                 version_type=linux
10168         else
10169                 version_type=irix
10170         fi ;;
10171   esac
10172   need_lib_prefix=no
10173   need_version=no
10174   soname_spec='${libname}${release}${shared_ext}$major'
10175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10176   case $host_os in
10177   irix5* | nonstopux*)
10178     libsuff= shlibsuff=
10179     ;;
10180   *)
10181     case $LD in # libtool.m4 will add one of these switches to LD
10182     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10183       libsuff= shlibsuff= libmagic=32-bit;;
10184     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10185       libsuff=32 shlibsuff=N32 libmagic=N32;;
10186     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10187       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10188     *) libsuff= shlibsuff= libmagic=never-match;;
10189     esac
10190     ;;
10191   esac
10192   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10193   shlibpath_overrides_runpath=no
10194   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10195   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10196   hardcode_into_libs=yes
10197   ;;
10198
10199 # No shared lib support for Linux oldld, aout, or coff.
10200 linux*oldld* | linux*aout* | linux*coff*)
10201   dynamic_linker=no
10202   ;;
10203
10204 # This must be Linux ELF.
10205 linux*)
10206   version_type=linux
10207   need_lib_prefix=no
10208   need_version=no
10209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210   soname_spec='${libname}${release}${shared_ext}$major'
10211   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10212   shlibpath_var=LD_LIBRARY_PATH
10213   shlibpath_overrides_runpath=no
10214   # This implies no fast_install, which is unacceptable.
10215   # Some rework will be needed to allow for fast_install
10216   # before this can be enabled.
10217   hardcode_into_libs=yes
10218
10219   # Append ld.so.conf contents to the search path
10220   if test -f /etc/ld.so.conf; then
10221     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' ' '`
10222     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10223   fi
10224
10225   # We used to test for /lib/ld.so.1 and disable shared libraries on
10226   # powerpc, because MkLinux only supported shared libraries with the
10227   # GNU dynamic linker.  Since this was broken with cross compilers,
10228   # most powerpc-linux boxes support dynamic linking these days and
10229   # people can always --disable-shared, the test was removed, and we
10230   # assume the GNU/Linux dynamic linker is in use.
10231   dynamic_linker='GNU/Linux ld.so'
10232   ;;
10233
10234 knetbsd*-gnu)
10235   version_type=linux
10236   need_lib_prefix=no
10237   need_version=no
10238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10239   soname_spec='${libname}${release}${shared_ext}$major'
10240   shlibpath_var=LD_LIBRARY_PATH
10241   shlibpath_overrides_runpath=no
10242   hardcode_into_libs=yes
10243   dynamic_linker='GNU ld.so'
10244   ;;
10245
10246 netbsd*)
10247   version_type=sunos
10248   need_lib_prefix=no
10249   need_version=no
10250   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10252     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10253     dynamic_linker='NetBSD (a.out) ld.so'
10254   else
10255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10256     soname_spec='${libname}${release}${shared_ext}$major'
10257     dynamic_linker='NetBSD ld.elf_so'
10258   fi
10259   shlibpath_var=LD_LIBRARY_PATH
10260   shlibpath_overrides_runpath=yes
10261   hardcode_into_libs=yes
10262   ;;
10263
10264 newsos6)
10265   version_type=linux
10266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   shlibpath_overrides_runpath=yes
10269   ;;
10270
10271 nto-qnx*)
10272   version_type=linux
10273   need_lib_prefix=no
10274   need_version=no
10275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276   soname_spec='${libname}${release}${shared_ext}$major'
10277   shlibpath_var=LD_LIBRARY_PATH
10278   shlibpath_overrides_runpath=yes
10279   ;;
10280
10281 openbsd*)
10282   version_type=sunos
10283   need_lib_prefix=no
10284   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10285   case $host_os in
10286     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10287     *)                         need_version=no  ;;
10288   esac
10289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10290   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10291   shlibpath_var=LD_LIBRARY_PATH
10292   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10293     case $host_os in
10294       openbsd2.[89] | openbsd2.[89].*)
10295         shlibpath_overrides_runpath=no
10296         ;;
10297       *)
10298         shlibpath_overrides_runpath=yes
10299         ;;
10300       esac
10301   else
10302     shlibpath_overrides_runpath=yes
10303   fi
10304   ;;
10305
10306 os2*)
10307   libname_spec='$name'
10308   shrext_cmds=".dll"
10309   need_lib_prefix=no
10310   library_names_spec='$libname${shared_ext} $libname.a'
10311   dynamic_linker='OS/2 ld.exe'
10312   shlibpath_var=LIBPATH
10313   ;;
10314
10315 osf3* | osf4* | osf5*)
10316   version_type=osf
10317   need_lib_prefix=no
10318   need_version=no
10319   soname_spec='${libname}${release}${shared_ext}$major'
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321   shlibpath_var=LD_LIBRARY_PATH
10322   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10323   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10324   ;;
10325
10326 sco3.2v5*)
10327   version_type=osf
10328   soname_spec='${libname}${release}${shared_ext}$major'
10329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330   shlibpath_var=LD_LIBRARY_PATH
10331   ;;
10332
10333 solaris*)
10334   version_type=linux
10335   need_lib_prefix=no
10336   need_version=no
10337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338   soname_spec='${libname}${release}${shared_ext}$major'
10339   shlibpath_var=LD_LIBRARY_PATH
10340   shlibpath_overrides_runpath=yes
10341   hardcode_into_libs=yes
10342   # ldd complains unless libraries are executable
10343   postinstall_cmds='chmod +x $lib'
10344   ;;
10345
10346 sunos4*)
10347   version_type=sunos
10348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10349   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10350   shlibpath_var=LD_LIBRARY_PATH
10351   shlibpath_overrides_runpath=yes
10352   if test "$with_gnu_ld" = yes; then
10353     need_lib_prefix=no
10354   fi
10355   need_version=yes
10356   ;;
10357
10358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10359   version_type=linux
10360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361   soname_spec='${libname}${release}${shared_ext}$major'
10362   shlibpath_var=LD_LIBRARY_PATH
10363   case $host_vendor in
10364     sni)
10365       shlibpath_overrides_runpath=no
10366       need_lib_prefix=no
10367       export_dynamic_flag_spec='${wl}-Blargedynsym'
10368       runpath_var=LD_RUN_PATH
10369       ;;
10370     siemens)
10371       need_lib_prefix=no
10372       ;;
10373     motorola)
10374       need_lib_prefix=no
10375       need_version=no
10376       shlibpath_overrides_runpath=no
10377       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10378       ;;
10379   esac
10380   ;;
10381
10382 sysv4*MP*)
10383   if test -d /usr/nec ;then
10384     version_type=linux
10385     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10386     soname_spec='$libname${shared_ext}.$major'
10387     shlibpath_var=LD_LIBRARY_PATH
10388   fi
10389   ;;
10390
10391 uts4*)
10392   version_type=linux
10393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394   soname_spec='${libname}${release}${shared_ext}$major'
10395   shlibpath_var=LD_LIBRARY_PATH
10396   ;;
10397
10398 *)
10399   dynamic_linker=no
10400   ;;
10401 esac
10402 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10403 echo "${ECHO_T}$dynamic_linker" >&6
10404 test "$dynamic_linker" = no && can_build_shared=no
10405
10406 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10407 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10408 hardcode_action=
10409 if test -n "$hardcode_libdir_flag_spec" || \
10410    test -n "$runpath_var" || \
10411    test "X$hardcode_automatic" = "Xyes" ; then
10412
10413   # We can hardcode non-existant directories.
10414   if test "$hardcode_direct" != no &&
10415      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10416      # have to relink, otherwise we might link with an installed library
10417      # when we should be linking with a yet-to-be-installed one
10418      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10419      test "$hardcode_minus_L" != no; then
10420     # Linking always hardcodes the temporary library directory.
10421     hardcode_action=relink
10422   else
10423     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10424     hardcode_action=immediate
10425   fi
10426 else
10427   # We cannot hardcode anything, or else we can only hardcode existing
10428   # directories.
10429   hardcode_action=unsupported
10430 fi
10431 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10432 echo "${ECHO_T}$hardcode_action" >&6
10433
10434 if test "$hardcode_action" = relink; then
10435   # Fast installation is not supported
10436   enable_fast_install=no
10437 elif test "$shlibpath_overrides_runpath" = yes ||
10438      test "$enable_shared" = no; then
10439   # Fast installation is not necessary
10440   enable_fast_install=needless
10441 fi
10442
10443 striplib=
10444 old_striplib=
10445 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10446 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10447 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10448   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10449   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10450   echo "$as_me:$LINENO: result: yes" >&5
10451 echo "${ECHO_T}yes" >&6
10452 else
10453 # FIXME - insert some real tests, host_os isn't really good enough
10454   case $host_os in
10455    darwin*)
10456        if test -n "$STRIP" ; then
10457          striplib="$STRIP -x"
10458          echo "$as_me:$LINENO: result: yes" >&5
10459 echo "${ECHO_T}yes" >&6
10460        else
10461   echo "$as_me:$LINENO: result: no" >&5
10462 echo "${ECHO_T}no" >&6
10463 fi
10464        ;;
10465    *)
10466   echo "$as_me:$LINENO: result: no" >&5
10467 echo "${ECHO_T}no" >&6
10468     ;;
10469   esac
10470 fi
10471
10472 if test "x$enable_dlopen" != xyes; then
10473   enable_dlopen=unknown
10474   enable_dlopen_self=unknown
10475   enable_dlopen_self_static=unknown
10476 else
10477   lt_cv_dlopen=no
10478   lt_cv_dlopen_libs=
10479
10480   case $host_os in
10481   beos*)
10482     lt_cv_dlopen="load_add_on"
10483     lt_cv_dlopen_libs=
10484     lt_cv_dlopen_self=yes
10485     ;;
10486
10487   mingw* | pw32*)
10488     lt_cv_dlopen="LoadLibrary"
10489     lt_cv_dlopen_libs=
10490    ;;
10491
10492   cygwin*)
10493     lt_cv_dlopen="dlopen"
10494     lt_cv_dlopen_libs=
10495    ;;
10496
10497   darwin*)
10498   # if libdl is installed we need to link against it
10499     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504   ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-ldl  $LIBS"
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512
10513 /* Override any gcc2 internal prototype to avoid an error.  */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 /* We use char because int might match the return type of a gcc2
10518    builtin and then its argument prototype would still apply.  */
10519 char dlopen ();
10520 int
10521 main ()
10522 {
10523 dlopen ();
10524   ;
10525   return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530   (eval $ac_link) 2>conftest.er1
10531   ac_status=$?
10532   grep -v '^ *+' conftest.er1 >conftest.err
10533   rm -f conftest.er1
10534   cat conftest.err >&5
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } &&
10537          { ac_try='test -z "$ac_c_werror_flag"
10538                          || test ! -s conftest.err'
10539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540   (eval $ac_try) 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; } &&
10544          { ac_try='test -s conftest$ac_exeext'
10545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546   (eval $ac_try) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); }; }; then
10550   ac_cv_lib_dl_dlopen=yes
10551 else
10552   echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 ac_cv_lib_dl_dlopen=no
10556 fi
10557 rm -f conftest.err conftest.$ac_objext \
10558       conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10560 fi
10561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10562 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10563 if test $ac_cv_lib_dl_dlopen = yes; then
10564   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10565 else
10566
10567     lt_cv_dlopen="dyld"
10568     lt_cv_dlopen_libs=
10569     lt_cv_dlopen_self=yes
10570
10571 fi
10572
10573    ;;
10574
10575   *)
10576     echo "$as_me:$LINENO: checking for shl_load" >&5
10577 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10578 if test "${ac_cv_func_shl_load+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10589 #define shl_load innocuous_shl_load
10590
10591 /* System header to define __stub macros and hopefully few prototypes,
10592     which can conflict with char shl_load (); below.
10593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10594     <limits.h> exists even on freestanding compilers.  */
10595
10596 #ifdef __STDC__
10597 # include <limits.h>
10598 #else
10599 # include <assert.h>
10600 #endif
10601
10602 #undef shl_load
10603
10604 /* Override any gcc2 internal prototype to avoid an error.  */
10605 #ifdef __cplusplus
10606 extern "C"
10607 {
10608 #endif
10609 /* We use char because int might match the return type of a gcc2
10610    builtin and then its argument prototype would still apply.  */
10611 char shl_load ();
10612 /* The GNU C library defines this for functions which it implements
10613     to always fail with ENOSYS.  Some functions are actually named
10614     something starting with __ and the normal name is an alias.  */
10615 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10616 choke me
10617 #else
10618 char (*f) () = shl_load;
10619 #endif
10620 #ifdef __cplusplus
10621 }
10622 #endif
10623
10624 int
10625 main ()
10626 {
10627 return f != shl_load;
10628   ;
10629   return 0;
10630 }
10631 _ACEOF
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634   (eval $ac_link) 2>conftest.er1
10635   ac_status=$?
10636   grep -v '^ *+' conftest.er1 >conftest.err
10637   rm -f conftest.er1
10638   cat conftest.err >&5
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); } &&
10641          { ac_try='test -z "$ac_c_werror_flag"
10642                          || test ! -s conftest.err'
10643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644   (eval $ac_try) 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); }; } &&
10648          { ac_try='test -s conftest$ac_exeext'
10649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650   (eval $ac_try) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); }; }; then
10654   ac_cv_func_shl_load=yes
10655 else
10656   echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10658
10659 ac_cv_func_shl_load=no
10660 fi
10661 rm -f conftest.err conftest.$ac_objext \
10662       conftest$ac_exeext conftest.$ac_ext
10663 fi
10664 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10665 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10666 if test $ac_cv_func_shl_load = yes; then
10667   lt_cv_dlopen="shl_load"
10668 else
10669   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10670 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10671 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10672   echo $ECHO_N "(cached) $ECHO_C" >&6
10673 else
10674   ac_check_lib_save_LIBS=$LIBS
10675 LIBS="-ldld  $LIBS"
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h.  */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h.  */
10682
10683 /* Override any gcc2 internal prototype to avoid an error.  */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 /* We use char because int might match the return type of a gcc2
10688    builtin and then its argument prototype would still apply.  */
10689 char shl_load ();
10690 int
10691 main ()
10692 {
10693 shl_load ();
10694   ;
10695   return 0;
10696 }
10697 _ACEOF
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700   (eval $ac_link) 2>conftest.er1
10701   ac_status=$?
10702   grep -v '^ *+' conftest.er1 >conftest.err
10703   rm -f conftest.er1
10704   cat conftest.err >&5
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); } &&
10707          { ac_try='test -z "$ac_c_werror_flag"
10708                          || test ! -s conftest.err'
10709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710   (eval $ac_try) 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }; } &&
10714          { ac_try='test -s conftest$ac_exeext'
10715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716   (eval $ac_try) 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); }; }; then
10720   ac_cv_lib_dld_shl_load=yes
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 ac_cv_lib_dld_shl_load=no
10726 fi
10727 rm -f conftest.err conftest.$ac_objext \
10728       conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10730 fi
10731 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10732 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10733 if test $ac_cv_lib_dld_shl_load = yes; then
10734   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10735 else
10736   echo "$as_me:$LINENO: checking for dlopen" >&5
10737 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10738 if test "${ac_cv_func_dlopen+set}" = set; then
10739   echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741   cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h.  */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h.  */
10747 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10749 #define dlopen innocuous_dlopen
10750
10751 /* System header to define __stub macros and hopefully few prototypes,
10752     which can conflict with char dlopen (); below.
10753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10754     <limits.h> exists even on freestanding compilers.  */
10755
10756 #ifdef __STDC__
10757 # include <limits.h>
10758 #else
10759 # include <assert.h>
10760 #endif
10761
10762 #undef dlopen
10763
10764 /* Override any gcc2 internal prototype to avoid an error.  */
10765 #ifdef __cplusplus
10766 extern "C"
10767 {
10768 #endif
10769 /* We use char because int might match the return type of a gcc2
10770    builtin and then its argument prototype would still apply.  */
10771 char dlopen ();
10772 /* The GNU C library defines this for functions which it implements
10773     to always fail with ENOSYS.  Some functions are actually named
10774     something starting with __ and the normal name is an alias.  */
10775 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10776 choke me
10777 #else
10778 char (*f) () = dlopen;
10779 #endif
10780 #ifdef __cplusplus
10781 }
10782 #endif
10783
10784 int
10785 main ()
10786 {
10787 return f != dlopen;
10788   ;
10789   return 0;
10790 }
10791 _ACEOF
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794   (eval $ac_link) 2>conftest.er1
10795   ac_status=$?
10796   grep -v '^ *+' conftest.er1 >conftest.err
10797   rm -f conftest.er1
10798   cat conftest.err >&5
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); } &&
10801          { ac_try='test -z "$ac_c_werror_flag"
10802                          || test ! -s conftest.err'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; } &&
10808          { ac_try='test -s conftest$ac_exeext'
10809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810   (eval $ac_try) 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); }; }; then
10814   ac_cv_func_dlopen=yes
10815 else
10816   echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 ac_cv_func_dlopen=no
10820 fi
10821 rm -f conftest.err conftest.$ac_objext \
10822       conftest$ac_exeext conftest.$ac_ext
10823 fi
10824 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10825 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10826 if test $ac_cv_func_dlopen = yes; then
10827   lt_cv_dlopen="dlopen"
10828 else
10829   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10830 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10832   echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834   ac_check_lib_save_LIBS=$LIBS
10835 LIBS="-ldl  $LIBS"
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842
10843 /* Override any gcc2 internal prototype to avoid an error.  */
10844 #ifdef __cplusplus
10845 extern "C"
10846 #endif
10847 /* We use char because int might match the return type of a gcc2
10848    builtin and then its argument prototype would still apply.  */
10849 char dlopen ();
10850 int
10851 main ()
10852 {
10853 dlopen ();
10854   ;
10855   return 0;
10856 }
10857 _ACEOF
10858 rm -f conftest.$ac_objext conftest$ac_exeext
10859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10860   (eval $ac_link) 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag"
10868                          || test ! -s conftest.err'
10869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870   (eval $ac_try) 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; } &&
10874          { ac_try='test -s conftest$ac_exeext'
10875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876   (eval $ac_try) 2>&5
10877   ac_status=$?
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); }; }; then
10880   ac_cv_lib_dl_dlopen=yes
10881 else
10882   echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10884
10885 ac_cv_lib_dl_dlopen=no
10886 fi
10887 rm -f conftest.err conftest.$ac_objext \
10888       conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10890 fi
10891 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10892 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10893 if test $ac_cv_lib_dl_dlopen = yes; then
10894   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10895 else
10896   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10897 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10898 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-lsvld  $LIBS"
10903 cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h.  */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h.  */
10909
10910 /* Override any gcc2 internal prototype to avoid an error.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 /* We use char because int might match the return type of a gcc2
10915    builtin and then its argument prototype would still apply.  */
10916 char dlopen ();
10917 int
10918 main ()
10919 {
10920 dlopen ();
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10927   (eval $ac_link) 2>conftest.er1
10928   ac_status=$?
10929   grep -v '^ *+' conftest.er1 >conftest.err
10930   rm -f conftest.er1
10931   cat conftest.err >&5
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); } &&
10934          { ac_try='test -z "$ac_c_werror_flag"
10935                          || test ! -s conftest.err'
10936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937   (eval $ac_try) 2>&5
10938   ac_status=$?
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); }; } &&
10941          { ac_try='test -s conftest$ac_exeext'
10942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943   (eval $ac_try) 2>&5
10944   ac_status=$?
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); }; }; then
10947   ac_cv_lib_svld_dlopen=yes
10948 else
10949   echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10951
10952 ac_cv_lib_svld_dlopen=no
10953 fi
10954 rm -f conftest.err conftest.$ac_objext \
10955       conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10957 fi
10958 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10959 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10960 if test $ac_cv_lib_svld_dlopen = yes; then
10961   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10962 else
10963   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10964 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10965 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968   ac_check_lib_save_LIBS=$LIBS
10969 LIBS="-ldld  $LIBS"
10970 cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h.  */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h.  */
10976
10977 /* Override any gcc2 internal prototype to avoid an error.  */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 /* We use char because int might match the return type of a gcc2
10982    builtin and then its argument prototype would still apply.  */
10983 char dld_link ();
10984 int
10985 main ()
10986 {
10987 dld_link ();
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994   (eval $ac_link) 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } &&
11001          { ac_try='test -z "$ac_c_werror_flag"
11002                          || test ! -s conftest.err'
11003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004   (eval $ac_try) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; } &&
11008          { ac_try='test -s conftest$ac_exeext'
11009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010   (eval $ac_try) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; }; then
11014   ac_cv_lib_dld_dld_link=yes
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 ac_cv_lib_dld_dld_link=no
11020 fi
11021 rm -f conftest.err conftest.$ac_objext \
11022       conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS
11024 fi
11025 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11026 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11027 if test $ac_cv_lib_dld_dld_link = yes; then
11028   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11029 fi
11030
11031
11032 fi
11033
11034
11035 fi
11036
11037
11038 fi
11039
11040
11041 fi
11042
11043
11044 fi
11045
11046     ;;
11047   esac
11048
11049   if test "x$lt_cv_dlopen" != xno; then
11050     enable_dlopen=yes
11051   else
11052     enable_dlopen=no
11053   fi
11054
11055   case $lt_cv_dlopen in
11056   dlopen)
11057     save_CPPFLAGS="$CPPFLAGS"
11058     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11059
11060     save_LDFLAGS="$LDFLAGS"
11061     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11062
11063     save_LIBS="$LIBS"
11064     LIBS="$lt_cv_dlopen_libs $LIBS"
11065
11066     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11067 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11068 if test "${lt_cv_dlopen_self+set}" = set; then
11069   echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071           if test "$cross_compiling" = yes; then :
11072   lt_cv_dlopen_self=cross
11073 else
11074   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11075   lt_status=$lt_dlunknown
11076   cat > conftest.$ac_ext <<EOF
11077 #line 11077 "configure"
11078 #include "confdefs.h"
11079
11080 #if HAVE_DLFCN_H
11081 #include <dlfcn.h>
11082 #endif
11083
11084 #include <stdio.h>
11085
11086 #ifdef RTLD_GLOBAL
11087 #  define LT_DLGLOBAL           RTLD_GLOBAL
11088 #else
11089 #  ifdef DL_GLOBAL
11090 #    define LT_DLGLOBAL         DL_GLOBAL
11091 #  else
11092 #    define LT_DLGLOBAL         0
11093 #  endif
11094 #endif
11095
11096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11097    find out it does not work in some platform. */
11098 #ifndef LT_DLLAZY_OR_NOW
11099 #  ifdef RTLD_LAZY
11100 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11101 #  else
11102 #    ifdef DL_LAZY
11103 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11104 #    else
11105 #      ifdef RTLD_NOW
11106 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11107 #      else
11108 #        ifdef DL_NOW
11109 #          define LT_DLLAZY_OR_NOW      DL_NOW
11110 #        else
11111 #          define LT_DLLAZY_OR_NOW      0
11112 #        endif
11113 #      endif
11114 #    endif
11115 #  endif
11116 #endif
11117
11118 #ifdef __cplusplus
11119 extern "C" void exit (int);
11120 #endif
11121
11122 void fnord() { int i=42;}
11123 int main ()
11124 {
11125   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11126   int status = $lt_dlunknown;
11127
11128   if (self)
11129     {
11130       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11131       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11132       /* dlclose (self); */
11133     }
11134
11135     exit (status);
11136 }
11137 EOF
11138   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11139   (eval $ac_link) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11143     (./conftest; exit; ) 2>/dev/null
11144     lt_status=$?
11145     case x$lt_status in
11146       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11147       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11148       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11149     esac
11150   else :
11151     # compilation failed
11152     lt_cv_dlopen_self=no
11153   fi
11154 fi
11155 rm -fr conftest*
11156
11157
11158 fi
11159 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11160 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11161
11162     if test "x$lt_cv_dlopen_self" = xyes; then
11163       LDFLAGS="$LDFLAGS $link_static_flag"
11164       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11165 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11166 if test "${lt_cv_dlopen_self_static+set}" = set; then
11167   echo $ECHO_N "(cached) $ECHO_C" >&6
11168 else
11169           if test "$cross_compiling" = yes; then :
11170   lt_cv_dlopen_self_static=cross
11171 else
11172   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11173   lt_status=$lt_dlunknown
11174   cat > conftest.$ac_ext <<EOF
11175 #line 11175 "configure"
11176 #include "confdefs.h"
11177
11178 #if HAVE_DLFCN_H
11179 #include <dlfcn.h>
11180 #endif
11181
11182 #include <stdio.h>
11183
11184 #ifdef RTLD_GLOBAL
11185 #  define LT_DLGLOBAL           RTLD_GLOBAL
11186 #else
11187 #  ifdef DL_GLOBAL
11188 #    define LT_DLGLOBAL         DL_GLOBAL
11189 #  else
11190 #    define LT_DLGLOBAL         0
11191 #  endif
11192 #endif
11193
11194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11195    find out it does not work in some platform. */
11196 #ifndef LT_DLLAZY_OR_NOW
11197 #  ifdef RTLD_LAZY
11198 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11199 #  else
11200 #    ifdef DL_LAZY
11201 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11202 #    else
11203 #      ifdef RTLD_NOW
11204 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11205 #      else
11206 #        ifdef DL_NOW
11207 #          define LT_DLLAZY_OR_NOW      DL_NOW
11208 #        else
11209 #          define LT_DLLAZY_OR_NOW      0
11210 #        endif
11211 #      endif
11212 #    endif
11213 #  endif
11214 #endif
11215
11216 #ifdef __cplusplus
11217 extern "C" void exit (int);
11218 #endif
11219
11220 void fnord() { int i=42;}
11221 int main ()
11222 {
11223   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11224   int status = $lt_dlunknown;
11225
11226   if (self)
11227     {
11228       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11229       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11230       /* dlclose (self); */
11231     }
11232
11233     exit (status);
11234 }
11235 EOF
11236   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237   (eval $ac_link) 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11241     (./conftest; exit; ) 2>/dev/null
11242     lt_status=$?
11243     case x$lt_status in
11244       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11245       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11246       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11247     esac
11248   else :
11249     # compilation failed
11250     lt_cv_dlopen_self_static=no
11251   fi
11252 fi
11253 rm -fr conftest*
11254
11255
11256 fi
11257 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11258 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11259     fi
11260
11261     CPPFLAGS="$save_CPPFLAGS"
11262     LDFLAGS="$save_LDFLAGS"
11263     LIBS="$save_LIBS"
11264     ;;
11265   esac
11266
11267   case $lt_cv_dlopen_self in
11268   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11269   *) enable_dlopen_self=unknown ;;
11270   esac
11271
11272   case $lt_cv_dlopen_self_static in
11273   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11274   *) enable_dlopen_self_static=unknown ;;
11275   esac
11276 fi
11277
11278
11279 # Report which librarie types wil actually be built
11280 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11281 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11282 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11283 echo "${ECHO_T}$can_build_shared" >&6
11284
11285 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11286 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11287 test "$can_build_shared" = "no" && enable_shared=no
11288
11289 # On AIX, shared libraries and static libraries use the same namespace, and
11290 # are all built from PIC.
11291 case "$host_os" in
11292 aix3*)
11293   test "$enable_shared" = yes && enable_static=no
11294   if test -n "$RANLIB"; then
11295     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11296     postinstall_cmds='$RANLIB $lib'
11297   fi
11298   ;;
11299
11300 aix4* | aix5*)
11301   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11302     test "$enable_shared" = yes && enable_static=no
11303   fi
11304     ;;
11305 esac
11306 echo "$as_me:$LINENO: result: $enable_shared" >&5
11307 echo "${ECHO_T}$enable_shared" >&6
11308
11309 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11310 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11311 # Make sure either enable_shared or enable_static is yes.
11312 test "$enable_shared" = yes || enable_static=yes
11313 echo "$as_me:$LINENO: result: $enable_static" >&5
11314 echo "${ECHO_T}$enable_static" >&6
11315
11316 # The else clause should only fire when bootstrapping the
11317 # libtool distribution, otherwise you forgot to ship ltmain.sh
11318 # with your package, and you will get complaints that there are
11319 # no rules to generate ltmain.sh.
11320 if test -f "$ltmain"; then
11321   # See if we are running on zsh, and set the options which allow our commands through
11322   # without removal of \ escapes.
11323   if test -n "${ZSH_VERSION+set}" ; then
11324     setopt NO_GLOB_SUBST
11325   fi
11326   # Now quote all the things that may contain metacharacters while being
11327   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11328   # variables and quote the copies for generation of the libtool script.
11329   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11330     SED SHELL STRIP \
11331     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11332     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11333     deplibs_check_method reload_flag reload_cmds need_locks \
11334     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11335     lt_cv_sys_global_symbol_to_c_name_address \
11336     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11337     old_postinstall_cmds old_postuninstall_cmds \
11338     compiler \
11339     CC \
11340     LD \
11341     lt_prog_compiler_wl \
11342     lt_prog_compiler_pic \
11343     lt_prog_compiler_static \
11344     lt_prog_compiler_no_builtin_flag \
11345     export_dynamic_flag_spec \
11346     thread_safe_flag_spec \
11347     whole_archive_flag_spec \
11348     enable_shared_with_static_runtimes \
11349     old_archive_cmds \
11350     old_archive_from_new_cmds \
11351     predep_objects \
11352     postdep_objects \
11353     predeps \
11354     postdeps \
11355     compiler_lib_search_path \
11356     archive_cmds \
11357     archive_expsym_cmds \
11358     postinstall_cmds \
11359     postuninstall_cmds \
11360     old_archive_from_expsyms_cmds \
11361     allow_undefined_flag \
11362     no_undefined_flag \
11363     export_symbols_cmds \
11364     hardcode_libdir_flag_spec \
11365     hardcode_libdir_flag_spec_ld \
11366     hardcode_libdir_separator \
11367     hardcode_automatic \
11368     module_cmds \
11369     module_expsym_cmds \
11370     lt_cv_prog_compiler_c_o \
11371     exclude_expsyms \
11372     include_expsyms; do
11373
11374     case $var in
11375     old_archive_cmds | \
11376     old_archive_from_new_cmds | \
11377     archive_cmds | \
11378     archive_expsym_cmds | \
11379     module_cmds | \
11380     module_expsym_cmds | \
11381     old_archive_from_expsyms_cmds | \
11382     export_symbols_cmds | \
11383     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11384     postinstall_cmds | postuninstall_cmds | \
11385     old_postinstall_cmds | old_postuninstall_cmds | \
11386     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11387       # Double-quote double-evaled strings.
11388       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11389       ;;
11390     *)
11391       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11392       ;;
11393     esac
11394   done
11395
11396   case $lt_echo in
11397   *'\$0 --fallback-echo"')
11398     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11399     ;;
11400   esac
11401
11402 cfgfile="${ofile}T"
11403   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11404   $rm -f "$cfgfile"
11405   { echo "$as_me:$LINENO: creating $ofile" >&5
11406 echo "$as_me: creating $ofile" >&6;}
11407
11408   cat <<__EOF__ >> "$cfgfile"
11409 #! $SHELL
11410
11411 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11412 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11413 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11414 #
11415 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11416 # Free Software Foundation, Inc.
11417 #
11418 # This file is part of GNU Libtool:
11419 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11420 #
11421 # This program is free software; you can redistribute it and/or modify
11422 # it under the terms of the GNU General Public License as published by
11423 # the Free Software Foundation; either version 2 of the License, or
11424 # (at your option) any later version.
11425 #
11426 # This program is distributed in the hope that it will be useful, but
11427 # WITHOUT ANY WARRANTY; without even the implied warranty of
11428 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11429 # General Public License for more details.
11430 #
11431 # You should have received a copy of the GNU General Public License
11432 # along with this program; if not, write to the Free Software
11433 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11434 #
11435 # As a special exception to the GNU General Public License, if you
11436 # distribute this file as part of a program that contains a
11437 # configuration script generated by Autoconf, you may include it under
11438 # the same distribution terms that you use for the rest of that program.
11439
11440 # A sed program that does not truncate output.
11441 SED=$lt_SED
11442
11443 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11444 Xsed="$SED -e 1s/^X//"
11445
11446 # The HP-UX ksh and POSIX shell print the target directory to stdout
11447 # if CDPATH is set.
11448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11449
11450 # The names of the tagged configurations supported by this script.
11451 available_tags=
11452
11453 # ### BEGIN LIBTOOL CONFIG
11454
11455 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11456
11457 # Shell to use when invoking shell scripts.
11458 SHELL=$lt_SHELL
11459
11460 # Whether or not to build shared libraries.
11461 build_libtool_libs=$enable_shared
11462
11463 # Whether or not to build static libraries.
11464 build_old_libs=$enable_static
11465
11466 # Whether or not to add -lc for building shared libraries.
11467 build_libtool_need_lc=$archive_cmds_need_lc
11468
11469 # Whether or not to disallow shared libs when runtime libs are static
11470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11471
11472 # Whether or not to optimize for fast installation.
11473 fast_install=$enable_fast_install
11474
11475 # The host system.
11476 host_alias=$host_alias
11477 host=$host
11478 host_os=$host_os
11479
11480 # The build system.
11481 build_alias=$build_alias
11482 build=$build
11483 build_os=$build_os
11484
11485 # An echo program that does not interpret backslashes.
11486 echo=$lt_echo
11487
11488 # The archiver.
11489 AR=$lt_AR
11490 AR_FLAGS=$lt_AR_FLAGS
11491
11492 # A C compiler.
11493 LTCC=$lt_LTCC
11494
11495 # A language-specific compiler.
11496 CC=$lt_compiler
11497
11498 # Is the compiler the GNU C compiler?
11499 with_gcc=$GCC
11500
11501 # An ERE matcher.
11502 EGREP=$lt_EGREP
11503
11504 # The linker used to build libraries.
11505 LD=$lt_LD
11506
11507 # Whether we need hard or soft links.
11508 LN_S=$lt_LN_S
11509
11510 # A BSD-compatible nm program.
11511 NM=$lt_NM
11512
11513 # A symbol stripping program
11514 STRIP=$lt_STRIP
11515
11516 # Used to examine libraries when file_magic_cmd begins "file"
11517 MAGIC_CMD=$MAGIC_CMD
11518
11519 # Used on cygwin: DLL creation program.
11520 DLLTOOL="$DLLTOOL"
11521
11522 # Used on cygwin: object dumper.
11523 OBJDUMP="$OBJDUMP"
11524
11525 # Used on cygwin: assembler.
11526 AS="$AS"
11527
11528 # The name of the directory that contains temporary libtool files.
11529 objdir=$objdir
11530
11531 # How to create reloadable object files.
11532 reload_flag=$lt_reload_flag
11533 reload_cmds=$lt_reload_cmds
11534
11535 # How to pass a linker flag through the compiler.
11536 wl=$lt_lt_prog_compiler_wl
11537
11538 # Object file suffix (normally "o").
11539 objext="$ac_objext"
11540
11541 # Old archive suffix (normally "a").
11542 libext="$libext"
11543
11544 # Shared library suffix (normally ".so").
11545 shrext_cmds='$shrext_cmds'
11546
11547 # Executable file suffix (normally "").
11548 exeext="$exeext"
11549
11550 # Additional compiler flags for building library objects.
11551 pic_flag=$lt_lt_prog_compiler_pic
11552 pic_mode=$pic_mode
11553
11554 # What is the maximum length of a command?
11555 max_cmd_len=$lt_cv_sys_max_cmd_len
11556
11557 # Does compiler simultaneously support -c and -o options?
11558 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11559
11560 # Must we lock files when doing compilation?
11561 need_locks=$lt_need_locks
11562
11563 # Do we need the lib prefix for modules?
11564 need_lib_prefix=$need_lib_prefix
11565
11566 # Do we need a version for libraries?
11567 need_version=$need_version
11568
11569 # Whether dlopen is supported.
11570 dlopen_support=$enable_dlopen
11571
11572 # Whether dlopen of programs is supported.
11573 dlopen_self=$enable_dlopen_self
11574
11575 # Whether dlopen of statically linked programs is supported.
11576 dlopen_self_static=$enable_dlopen_self_static
11577
11578 # Compiler flag to prevent dynamic linking.
11579 link_static_flag=$lt_lt_prog_compiler_static
11580
11581 # Compiler flag to turn off builtin functions.
11582 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11583
11584 # Compiler flag to allow reflexive dlopens.
11585 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11586
11587 # Compiler flag to generate shared objects directly from archives.
11588 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11589
11590 # Compiler flag to generate thread-safe objects.
11591 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11592
11593 # Library versioning type.
11594 version_type=$version_type
11595
11596 # Format of library name prefix.
11597 libname_spec=$lt_libname_spec
11598
11599 # List of archive names.  First name is the real one, the rest are links.
11600 # The last name is the one that the linker finds with -lNAME.
11601 library_names_spec=$lt_library_names_spec
11602
11603 # The coded name of the library, if different from the real name.
11604 soname_spec=$lt_soname_spec
11605
11606 # Commands used to build and install an old-style archive.
11607 RANLIB=$lt_RANLIB
11608 old_archive_cmds=$lt_old_archive_cmds
11609 old_postinstall_cmds=$lt_old_postinstall_cmds
11610 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11611
11612 # Create an old-style archive from a shared archive.
11613 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11614
11615 # Create a temporary old-style archive to link instead of a shared archive.
11616 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11617
11618 # Commands used to build and install a shared archive.
11619 archive_cmds=$lt_archive_cmds
11620 archive_expsym_cmds=$lt_archive_expsym_cmds
11621 postinstall_cmds=$lt_postinstall_cmds
11622 postuninstall_cmds=$lt_postuninstall_cmds
11623
11624 # Commands used to build a loadable module (assumed same as above if empty)
11625 module_cmds=$lt_module_cmds
11626 module_expsym_cmds=$lt_module_expsym_cmds
11627
11628 # Commands to strip libraries.
11629 old_striplib=$lt_old_striplib
11630 striplib=$lt_striplib
11631
11632 # Dependencies to place before the objects being linked to create a
11633 # shared library.
11634 predep_objects=$lt_predep_objects
11635
11636 # Dependencies to place after the objects being linked to create a
11637 # shared library.
11638 postdep_objects=$lt_postdep_objects
11639
11640 # Dependencies to place before the objects being linked to create a
11641 # shared library.
11642 predeps=$lt_predeps
11643
11644 # Dependencies to place after the objects being linked to create a
11645 # shared library.
11646 postdeps=$lt_postdeps
11647
11648 # The library search path used internally by the compiler when linking
11649 # a shared library.
11650 compiler_lib_search_path=$lt_compiler_lib_search_path
11651
11652 # Method to check whether dependent libraries are shared objects.
11653 deplibs_check_method=$lt_deplibs_check_method
11654
11655 # Command to use when deplibs_check_method == file_magic.
11656 file_magic_cmd=$lt_file_magic_cmd
11657
11658 # Flag that allows shared libraries with undefined symbols to be built.
11659 allow_undefined_flag=$lt_allow_undefined_flag
11660
11661 # Flag that forces no undefined symbols.
11662 no_undefined_flag=$lt_no_undefined_flag
11663
11664 # Commands used to finish a libtool library installation in a directory.
11665 finish_cmds=$lt_finish_cmds
11666
11667 # Same as above, but a single script fragment to be evaled but not shown.
11668 finish_eval=$lt_finish_eval
11669
11670 # Take the output of nm and produce a listing of raw symbols and C names.
11671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11672
11673 # Transform the output of nm in a proper C declaration
11674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11675
11676 # Transform the output of nm in a C name address pair
11677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11678
11679 # This is the shared library runtime path variable.
11680 runpath_var=$runpath_var
11681
11682 # This is the shared library path variable.
11683 shlibpath_var=$shlibpath_var
11684
11685 # Is shlibpath searched before the hard-coded library search path?
11686 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11687
11688 # How to hardcode a shared library path into an executable.
11689 hardcode_action=$hardcode_action
11690
11691 # Whether we should hardcode library paths into libraries.
11692 hardcode_into_libs=$hardcode_into_libs
11693
11694 # Flag to hardcode \$libdir into a binary during linking.
11695 # This must work even if \$libdir does not exist.
11696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11697
11698 # If ld is used when linking, flag to hardcode \$libdir into
11699 # a binary during linking. This must work even if \$libdir does
11700 # not exist.
11701 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11702
11703 # Whether we need a single -rpath flag with a separated argument.
11704 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11705
11706 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11707 # resulting binary.
11708 hardcode_direct=$hardcode_direct
11709
11710 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11711 # resulting binary.
11712 hardcode_minus_L=$hardcode_minus_L
11713
11714 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11715 # the resulting binary.
11716 hardcode_shlibpath_var=$hardcode_shlibpath_var
11717
11718 # Set to yes if building a shared library automatically hardcodes DIR into the library
11719 # and all subsequent libraries and executables linked against it.
11720 hardcode_automatic=$hardcode_automatic
11721
11722 # Variables whose values should be saved in libtool wrapper scripts and
11723 # restored at relink time.
11724 variables_saved_for_relink="$variables_saved_for_relink"
11725
11726 # Whether libtool must link a program against all its dependency libraries.
11727 link_all_deplibs=$link_all_deplibs
11728
11729 # Compile-time system search path for libraries
11730 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11731
11732 # Run-time system search path for libraries
11733 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11734
11735 # Fix the shell variable \$srcfile for the compiler.
11736 fix_srcfile_path="$fix_srcfile_path"
11737
11738 # Set to yes if exported symbols are required.
11739 always_export_symbols=$always_export_symbols
11740
11741 # The commands to list exported symbols.
11742 export_symbols_cmds=$lt_export_symbols_cmds
11743
11744 # The commands to extract the exported symbol list from a shared archive.
11745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11746
11747 # Symbols that should not be listed in the preloaded symbols.
11748 exclude_expsyms=$lt_exclude_expsyms
11749
11750 # Symbols that must always be exported.
11751 include_expsyms=$lt_include_expsyms
11752
11753 # ### END LIBTOOL CONFIG
11754
11755 __EOF__
11756
11757
11758   case $host_os in
11759   aix3*)
11760     cat <<\EOF >> "$cfgfile"
11761
11762 # AIX sometimes has problems with the GCC collect2 program.  For some
11763 # reason, if we set the COLLECT_NAMES environment variable, the problems
11764 # vanish in a puff of smoke.
11765 if test "X${COLLECT_NAMES+set}" != Xset; then
11766   COLLECT_NAMES=
11767   export COLLECT_NAMES
11768 fi
11769 EOF
11770     ;;
11771   esac
11772
11773   # We use sed instead of cat because bash on DJGPP gets confused if
11774   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11775   # text mode, it properly converts lines to CR/LF.  This bash problem
11776   # is reportedly fixed, but why not run on old versions too?
11777   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11778
11779   mv -f "$cfgfile" "$ofile" || \
11780     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11781   chmod +x "$ofile"
11782
11783 else
11784   # If there is no Makefile yet, we rely on a make rule to execute
11785   # `config.status --recheck' to rerun these tests and create the
11786   # libtool script then.
11787   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11788   if test -f "$ltmain_in"; then
11789     test -f Makefile && make "$ltmain"
11790   fi
11791 fi
11792
11793
11794 ac_ext=c
11795 ac_cpp='$CPP $CPPFLAGS'
11796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11799
11800 CC="$lt_save_CC"
11801
11802
11803 # Check whether --with-tags or --without-tags was given.
11804 if test "${with_tags+set}" = set; then
11805   withval="$with_tags"
11806   tagnames="$withval"
11807 fi;
11808
11809 if test -f "$ltmain" && test -n "$tagnames"; then
11810   if test ! -f "${ofile}"; then
11811     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11812 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11813   fi
11814
11815   if test -z "$LTCC"; then
11816     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11817     if test -z "$LTCC"; then
11818       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11819 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11820     else
11821       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11822 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11823     fi
11824   fi
11825
11826   # Extract list of available tagged configurations in $ofile.
11827   # Note that this assumes the entire list is on one line.
11828   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11829
11830   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11831   for tagname in $tagnames; do
11832     IFS="$lt_save_ifs"
11833     # Check whether tagname contains only valid characters
11834     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11835     "") ;;
11836     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11837 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11838    { (exit 1); exit 1; }; }
11839         ;;
11840     esac
11841
11842     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11843     then
11844       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11845 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11846    { (exit 1); exit 1; }; }
11847     fi
11848
11849     # Update the list of available tags.
11850     if test -n "$tagname"; then
11851       echo appending configuration tag \"$tagname\" to $ofile
11852
11853       case $tagname in
11854       CXX)
11855         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11856             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11857             (test "X$CXX" != "Xg++"))) ; then
11858           ac_ext=cc
11859 ac_cpp='$CXXCPP $CPPFLAGS'
11860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11863
11864
11865
11866
11867 archive_cmds_need_lc_CXX=no
11868 allow_undefined_flag_CXX=
11869 always_export_symbols_CXX=no
11870 archive_expsym_cmds_CXX=
11871 export_dynamic_flag_spec_CXX=
11872 hardcode_direct_CXX=no
11873 hardcode_libdir_flag_spec_CXX=
11874 hardcode_libdir_flag_spec_ld_CXX=
11875 hardcode_libdir_separator_CXX=
11876 hardcode_minus_L_CXX=no
11877 hardcode_automatic_CXX=no
11878 module_cmds_CXX=
11879 module_expsym_cmds_CXX=
11880 link_all_deplibs_CXX=unknown
11881 old_archive_cmds_CXX=$old_archive_cmds
11882 no_undefined_flag_CXX=
11883 whole_archive_flag_spec_CXX=
11884 enable_shared_with_static_runtimes_CXX=no
11885
11886 # Dependencies to place before and after the object being linked:
11887 predep_objects_CXX=
11888 postdep_objects_CXX=
11889 predeps_CXX=
11890 postdeps_CXX=
11891 compiler_lib_search_path_CXX=
11892
11893 # Source file extension for C++ test sources.
11894 ac_ext=cc
11895
11896 # Object file extension for compiled C++ test sources.
11897 objext=o
11898 objext_CXX=$objext
11899
11900 # Code to be used in simple compile tests
11901 lt_simple_compile_test_code="int some_variable = 0;\n"
11902
11903 # Code to be used in simple link tests
11904 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11905
11906 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11907
11908 # If no C compiler was specified, use CC.
11909 LTCC=${LTCC-"$CC"}
11910
11911 # Allow CC to be a program name with arguments.
11912 compiler=$CC
11913
11914
11915 # save warnings/boilerplate of simple test code
11916 ac_outfile=conftest.$ac_objext
11917 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11919 _lt_compiler_boilerplate=`cat conftest.err`
11920 $rm conftest*
11921
11922 ac_outfile=conftest.$ac_objext
11923 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11925 _lt_linker_boilerplate=`cat conftest.err`
11926 $rm conftest*
11927
11928
11929 # Allow CC to be a program name with arguments.
11930 lt_save_CC=$CC
11931 lt_save_LD=$LD
11932 lt_save_GCC=$GCC
11933 GCC=$GXX
11934 lt_save_with_gnu_ld=$with_gnu_ld
11935 lt_save_path_LD=$lt_cv_path_LD
11936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11937   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11938 else
11939   unset lt_cv_prog_gnu_ld
11940 fi
11941 if test -n "${lt_cv_path_LDCXX+set}"; then
11942   lt_cv_path_LD=$lt_cv_path_LDCXX
11943 else
11944   unset lt_cv_path_LD
11945 fi
11946 test -z "${LDCXX+set}" || LD=$LDCXX
11947 CC=${CXX-"c++"}
11948 compiler=$CC
11949 compiler_CXX=$CC
11950 for cc_temp in $compiler""; do
11951   case $cc_temp in
11952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11954     \-*) ;;
11955     *) break;;
11956   esac
11957 done
11958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11959
11960
11961 # We don't want -fno-exception wen compiling C++ code, so set the
11962 # no_builtin_flag separately
11963 if test "$GXX" = yes; then
11964   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11965 else
11966   lt_prog_compiler_no_builtin_flag_CXX=
11967 fi
11968
11969 if test "$GXX" = yes; then
11970   # Set up default GNU C++ configuration
11971
11972
11973 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11974 if test "${with_gnu_ld+set}" = set; then
11975   withval="$with_gnu_ld"
11976   test "$withval" = no || with_gnu_ld=yes
11977 else
11978   with_gnu_ld=no
11979 fi;
11980 ac_prog=ld
11981 if test "$GCC" = yes; then
11982   # Check if gcc -print-prog-name=ld gives a path.
11983   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11984 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11985   case $host in
11986   *-*-mingw*)
11987     # gcc leaves a trailing carriage return which upsets mingw
11988     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11989   *)
11990     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11991   esac
11992   case $ac_prog in
11993     # Accept absolute paths.
11994     [\\/]* | ?:[\\/]*)
11995       re_direlt='/[^/][^/]*/\.\./'
11996       # Canonicalize the pathname of ld
11997       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11998       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11999         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12000       done
12001       test -z "$LD" && LD="$ac_prog"
12002       ;;
12003   "")
12004     # If it fails, then pretend we aren't using GCC.
12005     ac_prog=ld
12006     ;;
12007   *)
12008     # If it is relative, then search for the first ld in PATH.
12009     with_gnu_ld=unknown
12010     ;;
12011   esac
12012 elif test "$with_gnu_ld" = yes; then
12013   echo "$as_me:$LINENO: checking for GNU ld" >&5
12014 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12015 else
12016   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12017 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12018 fi
12019 if test "${lt_cv_path_LD+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022   if test -z "$LD"; then
12023   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12024   for ac_dir in $PATH; do
12025     IFS="$lt_save_ifs"
12026     test -z "$ac_dir" && ac_dir=.
12027     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12028       lt_cv_path_LD="$ac_dir/$ac_prog"
12029       # Check to see if the program is GNU ld.  I'd rather use --version,
12030       # but apparently some GNU ld's only accept -v.
12031       # Break only if it was the GNU/non-GNU ld that we prefer.
12032       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12033       *GNU* | *'with BFD'*)
12034         test "$with_gnu_ld" != no && break
12035         ;;
12036       *)
12037         test "$with_gnu_ld" != yes && break
12038         ;;
12039       esac
12040     fi
12041   done
12042   IFS="$lt_save_ifs"
12043 else
12044   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12045 fi
12046 fi
12047
12048 LD="$lt_cv_path_LD"
12049 if test -n "$LD"; then
12050   echo "$as_me:$LINENO: result: $LD" >&5
12051 echo "${ECHO_T}$LD" >&6
12052 else
12053   echo "$as_me:$LINENO: result: no" >&5
12054 echo "${ECHO_T}no" >&6
12055 fi
12056 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12057 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12058    { (exit 1); exit 1; }; }
12059 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12060 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12061 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12062   echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12065 case `$LD -v 2>&1 </dev/null` in
12066 *GNU* | *'with BFD'*)
12067   lt_cv_prog_gnu_ld=yes
12068   ;;
12069 *)
12070   lt_cv_prog_gnu_ld=no
12071   ;;
12072 esac
12073 fi
12074 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12075 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12076 with_gnu_ld=$lt_cv_prog_gnu_ld
12077
12078
12079
12080   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12081   # archiving commands below assume that GNU ld is being used.
12082   if test "$with_gnu_ld" = yes; then
12083     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12084     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12085
12086     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12087     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12088
12089     # If archive_cmds runs LD, not CC, wlarc should be empty
12090     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12091     #     investigate it a little bit more. (MM)
12092     wlarc='${wl}'
12093
12094     # ancient GNU ld didn't support --whole-archive et. al.
12095     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12096         grep 'no-whole-archive' > /dev/null; then
12097       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12098     else
12099       whole_archive_flag_spec_CXX=
12100     fi
12101   else
12102     with_gnu_ld=no
12103     wlarc=
12104
12105     # A generic and very simple default shared library creation
12106     # command for GNU C++ for the case where it uses the native
12107     # linker, instead of GNU ld.  If possible, this setting should
12108     # overridden to take advantage of the native linker features on
12109     # the platform it is being used on.
12110     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12111   fi
12112
12113   # Commands to make compiler produce verbose output that lists
12114   # what "hidden" libraries, object files and flags are used when
12115   # linking a shared library.
12116   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12117
12118 else
12119   GXX=no
12120   with_gnu_ld=no
12121   wlarc=
12122 fi
12123
12124 # PORTME: fill in a description of your system's C++ link characteristics
12125 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12127 ld_shlibs_CXX=yes
12128 case $host_os in
12129   aix3*)
12130     # FIXME: insert proper C++ library support
12131     ld_shlibs_CXX=no
12132     ;;
12133   aix4* | aix5*)
12134     if test "$host_cpu" = ia64; then
12135       # On IA64, the linker does run time linking by default, so we don't
12136       # have to do anything special.
12137       aix_use_runtimelinking=no
12138       exp_sym_flag='-Bexport'
12139       no_entry_flag=""
12140     else
12141       aix_use_runtimelinking=no
12142
12143       # Test if we are trying to use run time linking or normal
12144       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12145       # need to do runtime linking.
12146       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12147         for ld_flag in $LDFLAGS; do
12148           case $ld_flag in
12149           *-brtl*)
12150             aix_use_runtimelinking=yes
12151             break
12152             ;;
12153           esac
12154         done
12155       esac
12156
12157       exp_sym_flag='-bexport'
12158       no_entry_flag='-bnoentry'
12159     fi
12160
12161     # When large executables or shared objects are built, AIX ld can
12162     # have problems creating the table of contents.  If linking a library
12163     # or program results in "error TOC overflow" add -mminimal-toc to
12164     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12165     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12166
12167     archive_cmds_CXX=''
12168     hardcode_direct_CXX=yes
12169     hardcode_libdir_separator_CXX=':'
12170     link_all_deplibs_CXX=yes
12171
12172     if test "$GXX" = yes; then
12173       case $host_os in aix4.[012]|aix4.[012].*)
12174       # We only want to do this on AIX 4.2 and lower, the check
12175       # below for broken collect2 doesn't work under 4.3+
12176         collect2name=`${CC} -print-prog-name=collect2`
12177         if test -f "$collect2name" && \
12178            strings "$collect2name" | grep resolve_lib_name >/dev/null
12179         then
12180           # We have reworked collect2
12181           hardcode_direct_CXX=yes
12182         else
12183           # We have old collect2
12184           hardcode_direct_CXX=unsupported
12185           # It fails to find uninstalled libraries when the uninstalled
12186           # path is not listed in the libpath.  Setting hardcode_minus_L
12187           # to unsupported forces relinking
12188           hardcode_minus_L_CXX=yes
12189           hardcode_libdir_flag_spec_CXX='-L$libdir'
12190           hardcode_libdir_separator_CXX=
12191         fi
12192       esac
12193       shared_flag='-shared'
12194       if test "$aix_use_runtimelinking" = yes; then
12195         shared_flag="$shared_flag "'${wl}-G'
12196       fi
12197     else
12198       # not using gcc
12199       if test "$host_cpu" = ia64; then
12200         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12201         # chokes on -Wl,-G. The following line is correct:
12202         shared_flag='-G'
12203       else
12204         if test "$aix_use_runtimelinking" = yes; then
12205           shared_flag='${wl}-G'
12206         else
12207           shared_flag='${wl}-bM:SRE'
12208         fi
12209       fi
12210     fi
12211
12212     # It seems that -bexpall does not export symbols beginning with
12213     # underscore (_), so it is better to generate a list of symbols to export.
12214     always_export_symbols_CXX=yes
12215     if test "$aix_use_runtimelinking" = yes; then
12216       # Warning - without using the other runtime loading flags (-brtl),
12217       # -berok will link without error, but may produce a broken library.
12218       allow_undefined_flag_CXX='-berok'
12219       # Determine the default libpath from the value encoded in an empty executable.
12220       cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h.  */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h.  */
12226
12227 int
12228 main ()
12229 {
12230
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237   (eval $ac_link) 2>conftest.er1
12238   ac_status=$?
12239   grep -v '^ *+' conftest.er1 >conftest.err
12240   rm -f conftest.er1
12241   cat conftest.err >&5
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); } &&
12244          { ac_try='test -z "$ac_cxx_werror_flag"
12245                          || test ! -s conftest.err'
12246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247   (eval $ac_try) 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); }; } &&
12251          { ac_try='test -s conftest$ac_exeext'
12252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253   (eval $ac_try) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; }; then
12257
12258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12259 }'`
12260 # Check for a 64-bit object if we didn't find anything.
12261 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; }
12262 }'`; fi
12263 else
12264   echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 fi
12268 rm -f conftest.err conftest.$ac_objext \
12269       conftest$ac_exeext conftest.$ac_ext
12270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12271
12272       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12273
12274       archive_expsym_cmds_CXX="\$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"
12275      else
12276       if test "$host_cpu" = ia64; then
12277         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12278         allow_undefined_flag_CXX="-z nodefs"
12279         archive_expsym_cmds_CXX="\$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"
12280       else
12281         # Determine the default libpath from the value encoded in an empty executable.
12282         cat >conftest.$ac_ext <<_ACEOF
12283 /* confdefs.h.  */
12284 _ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h.  */
12288
12289 int
12290 main ()
12291 {
12292
12293   ;
12294   return 0;
12295 }
12296 _ACEOF
12297 rm -f conftest.$ac_objext conftest$ac_exeext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299   (eval $ac_link) 2>conftest.er1
12300   ac_status=$?
12301   grep -v '^ *+' conftest.er1 >conftest.err
12302   rm -f conftest.er1
12303   cat conftest.err >&5
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } &&
12306          { ac_try='test -z "$ac_cxx_werror_flag"
12307                          || test ! -s conftest.err'
12308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309   (eval $ac_try) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; } &&
12313          { ac_try='test -s conftest$ac_exeext'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; }; then
12319
12320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12321 }'`
12322 # Check for a 64-bit object if we didn't find anything.
12323 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; }
12324 }'`; fi
12325 else
12326   echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12328
12329 fi
12330 rm -f conftest.err conftest.$ac_objext \
12331       conftest$ac_exeext conftest.$ac_ext
12332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12333
12334         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12335         # Warning - without using the other run time loading flags,
12336         # -berok will link without error, but may produce a broken library.
12337         no_undefined_flag_CXX=' ${wl}-bernotok'
12338         allow_undefined_flag_CXX=' ${wl}-berok'
12339         # -bexpall does not export symbols beginning with underscore (_)
12340         always_export_symbols_CXX=yes
12341         # Exported symbols can be pulled into shared objects from archives
12342         whole_archive_flag_spec_CXX=' '
12343         archive_cmds_need_lc_CXX=yes
12344         # This is similar to how AIX traditionally builds it's shared libraries.
12345         archive_expsym_cmds_CXX="\$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'
12346       fi
12347     fi
12348     ;;
12349   chorus*)
12350     case $cc_basename in
12351       *)
12352         # FIXME: insert proper C++ library support
12353         ld_shlibs_CXX=no
12354         ;;
12355     esac
12356     ;;
12357
12358
12359   cygwin* | mingw* | pw32*)
12360     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12361     # as there is no search path for DLLs.
12362     hardcode_libdir_flag_spec_CXX='-L$libdir'
12363     allow_undefined_flag_CXX=unsupported
12364     always_export_symbols_CXX=no
12365     enable_shared_with_static_runtimes_CXX=yes
12366
12367     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12368       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12369       # If the export-symbols file already is a .def file (1st line
12370       # is EXPORTS), use it as is; otherwise, prepend...
12371       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12372         cp $export_symbols $output_objdir/$soname.def;
12373       else
12374         echo EXPORTS > $output_objdir/$soname.def;
12375         cat $export_symbols >> $output_objdir/$soname.def;
12376       fi~
12377       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12378     else
12379       ld_shlibs_CXX=no
12380     fi
12381   ;;
12382       darwin* | rhapsody*)
12383         case "$host_os" in
12384         rhapsody* | darwin1.[012])
12385          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12386          ;;
12387        *) # Darwin 1.3 on
12388          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12389            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12390          else
12391            case ${MACOSX_DEPLOYMENT_TARGET} in
12392              10.[012])
12393                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12394                ;;
12395              10.*)
12396                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12397                ;;
12398            esac
12399          fi
12400          ;;
12401         esac
12402       archive_cmds_need_lc_CXX=no
12403       hardcode_direct_CXX=no
12404       hardcode_automatic_CXX=yes
12405       hardcode_shlibpath_var_CXX=unsupported
12406       whole_archive_flag_spec_CXX=''
12407       link_all_deplibs_CXX=yes
12408
12409     if test "$GXX" = yes ; then
12410       lt_int_apple_cc_single_mod=no
12411       output_verbose_link_cmd='echo'
12412       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12413        lt_int_apple_cc_single_mod=yes
12414       fi
12415       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12416        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12417       else
12418           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12419         fi
12420         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12421         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12422           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12423             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12424           else
12425             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12426           fi
12427             module_expsym_cmds_CXX='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}'
12428       else
12429       case $cc_basename in
12430         xlc*)
12431          output_verbose_link_cmd='echo'
12432           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12433           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12434           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12435           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12436           module_expsym_cmds_CXX='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}'
12437           ;;
12438        *)
12439          ld_shlibs_CXX=no
12440           ;;
12441       esac
12442       fi
12443         ;;
12444
12445   dgux*)
12446     case $cc_basename in
12447       ec++*)
12448         # FIXME: insert proper C++ library support
12449         ld_shlibs_CXX=no
12450         ;;
12451       ghcx*)
12452         # Green Hills C++ Compiler
12453         # FIXME: insert proper C++ library support
12454         ld_shlibs_CXX=no
12455         ;;
12456       *)
12457         # FIXME: insert proper C++ library support
12458         ld_shlibs_CXX=no
12459         ;;
12460     esac
12461     ;;
12462   freebsd[12]*)
12463     # C++ shared libraries reported to be fairly broken before switch to ELF
12464     ld_shlibs_CXX=no
12465     ;;
12466   freebsd-elf*)
12467     archive_cmds_need_lc_CXX=no
12468     ;;
12469   freebsd* | kfreebsd*-gnu | dragonfly*)
12470     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12471     # conventions
12472     ld_shlibs_CXX=yes
12473     ;;
12474   gnu*)
12475     ;;
12476   hpux9*)
12477     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12478     hardcode_libdir_separator_CXX=:
12479     export_dynamic_flag_spec_CXX='${wl}-E'
12480     hardcode_direct_CXX=yes
12481     hardcode_minus_L_CXX=yes # Not in the search PATH,
12482                                 # but as the default
12483                                 # location of the library.
12484
12485     case $cc_basename in
12486     CC*)
12487       # FIXME: insert proper C++ library support
12488       ld_shlibs_CXX=no
12489       ;;
12490     aCC*)
12491       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12492       # Commands to make compiler produce verbose output that lists
12493       # what "hidden" libraries, object files and flags are used when
12494       # linking a shared library.
12495       #
12496       # There doesn't appear to be a way to prevent this compiler from
12497       # explicitly linking system object files so we need to strip them
12498       # from the output so that they don't get included in the library
12499       # dependencies.
12500       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12501       ;;
12502     *)
12503       if test "$GXX" = yes; then
12504         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12505       else
12506         # FIXME: insert proper C++ library support
12507         ld_shlibs_CXX=no
12508       fi
12509       ;;
12510     esac
12511     ;;
12512   hpux10*|hpux11*)
12513     if test $with_gnu_ld = no; then
12514       case "$host_cpu" in
12515       hppa*64*)
12516         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12517         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12518         hardcode_libdir_separator_CXX=:
12519         ;;
12520       ia64*)
12521         hardcode_libdir_flag_spec_CXX='-L$libdir'
12522         ;;
12523       *)
12524         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12525         hardcode_libdir_separator_CXX=:
12526         export_dynamic_flag_spec_CXX='${wl}-E'
12527         ;;
12528       esac
12529     fi
12530     case "$host_cpu" in
12531     hppa*64*)
12532       hardcode_direct_CXX=no
12533       hardcode_shlibpath_var_CXX=no
12534       ;;
12535     ia64*)
12536       hardcode_direct_CXX=no
12537       hardcode_shlibpath_var_CXX=no
12538       hardcode_minus_L_CXX=yes # Not in the search PATH,
12539                                               # but as the default
12540                                               # location of the library.
12541       ;;
12542     *)
12543       hardcode_direct_CXX=yes
12544       hardcode_minus_L_CXX=yes # Not in the search PATH,
12545                                               # but as the default
12546                                               # location of the library.
12547       ;;
12548     esac
12549
12550     case $cc_basename in
12551       CC*)
12552         # FIXME: insert proper C++ library support
12553         ld_shlibs_CXX=no
12554         ;;
12555       aCC*)
12556         case "$host_cpu" in
12557         hppa*64*|ia64*)
12558           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12559           ;;
12560         *)
12561           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12562           ;;
12563         esac
12564         # Commands to make compiler produce verbose output that lists
12565         # what "hidden" libraries, object files and flags are used when
12566         # linking a shared library.
12567         #
12568         # There doesn't appear to be a way to prevent this compiler from
12569         # explicitly linking system object files so we need to strip them
12570         # from the output so that they don't get included in the library
12571         # dependencies.
12572         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12573         ;;
12574       *)
12575         if test "$GXX" = yes; then
12576           if test $with_gnu_ld = no; then
12577             case "$host_cpu" in
12578             ia64*|hppa*64*)
12579               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12580               ;;
12581             *)
12582               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12583               ;;
12584             esac
12585           fi
12586         else
12587           # FIXME: insert proper C++ library support
12588           ld_shlibs_CXX=no
12589         fi
12590         ;;
12591     esac
12592     ;;
12593   irix5* | irix6*)
12594     case $cc_basename in
12595       CC*)
12596         # SGI C++
12597         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12598
12599         # Archives containing C++ object files must be created using
12600         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12601         # necessary to make sure instantiated templates are included
12602         # in the archive.
12603         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12604         ;;
12605       *)
12606         if test "$GXX" = yes; then
12607           if test "$with_gnu_ld" = no; then
12608             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12609           else
12610             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12611           fi
12612         fi
12613         link_all_deplibs_CXX=yes
12614         ;;
12615     esac
12616     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12617     hardcode_libdir_separator_CXX=:
12618     ;;
12619   linux*)
12620     case $cc_basename in
12621       KCC*)
12622         # Kuck and Associates, Inc. (KAI) C++ Compiler
12623
12624         # KCC will only create a shared library if the output file
12625         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12626         # to its proper name (with version) after linking.
12627         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12628         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12629         # Commands to make compiler produce verbose output that lists
12630         # what "hidden" libraries, object files and flags are used when
12631         # linking a shared library.
12632         #
12633         # There doesn't appear to be a way to prevent this compiler from
12634         # explicitly linking system object files so we need to strip them
12635         # from the output so that they don't get included in the library
12636         # dependencies.
12637         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12638
12639         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12640         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12641
12642         # Archives containing C++ object files must be created using
12643         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12644         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12645         ;;
12646       icpc*)
12647         # Intel C++
12648         with_gnu_ld=yes
12649         # version 8.0 and above of icpc choke on multiply defined symbols
12650         # if we add $predep_objects and $postdep_objects, however 7.1 and
12651         # earlier do not add the objects themselves.
12652         case `$CC -V 2>&1` in
12653         *"Version 7."*)
12654           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12656           ;;
12657         *)  # Version 8.0 or newer
12658           tmp_idyn=
12659           case $host_cpu in
12660             ia64*) tmp_idyn=' -i_dynamic';;
12661           esac
12662           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12663           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12664           ;;
12665         esac
12666         archive_cmds_need_lc_CXX=no
12667         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12668         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12669         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12670         ;;
12671       pgCC*)
12672         # Portland Group C++ compiler
12673         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12674         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12675
12676         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12677         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12678         whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12679         ;;
12680       cxx*)
12681         # Compaq C++
12682         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12683         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12684
12685         runpath_var=LD_RUN_PATH
12686         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12687         hardcode_libdir_separator_CXX=:
12688
12689         # Commands to make compiler produce verbose output that lists
12690         # what "hidden" libraries, object files and flags are used when
12691         # linking a shared library.
12692         #
12693         # There doesn't appear to be a way to prevent this compiler from
12694         # explicitly linking system object files so we need to strip them
12695         # from the output so that they don't get included in the library
12696         # dependencies.
12697         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12698         ;;
12699     esac
12700     ;;
12701   lynxos*)
12702     # FIXME: insert proper C++ library support
12703     ld_shlibs_CXX=no
12704     ;;
12705   m88k*)
12706     # FIXME: insert proper C++ library support
12707     ld_shlibs_CXX=no
12708     ;;
12709   mvs*)
12710     case $cc_basename in
12711       cxx*)
12712         # FIXME: insert proper C++ library support
12713         ld_shlibs_CXX=no
12714         ;;
12715       *)
12716         # FIXME: insert proper C++ library support
12717         ld_shlibs_CXX=no
12718         ;;
12719     esac
12720     ;;
12721   netbsd*)
12722     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12723       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12724       wlarc=
12725       hardcode_libdir_flag_spec_CXX='-R$libdir'
12726       hardcode_direct_CXX=yes
12727       hardcode_shlibpath_var_CXX=no
12728     fi
12729     # Workaround some broken pre-1.5 toolchains
12730     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12731     ;;
12732   openbsd2*)
12733     # C++ shared libraries are fairly broken
12734     ld_shlibs_CXX=no
12735     ;;
12736   openbsd*)
12737     hardcode_direct_CXX=yes
12738     hardcode_shlibpath_var_CXX=no
12739     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12740     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12741     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12742       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12743       export_dynamic_flag_spec_CXX='${wl}-E'
12744       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12745     fi
12746     output_verbose_link_cmd='echo'
12747     ;;
12748   osf3*)
12749     case $cc_basename in
12750       KCC*)
12751         # Kuck and Associates, Inc. (KAI) C++ Compiler
12752
12753         # KCC will only create a shared library if the output file
12754         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12755         # to its proper name (with version) after linking.
12756         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12757
12758         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12759         hardcode_libdir_separator_CXX=:
12760
12761         # Archives containing C++ object files must be created using
12762         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12763         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12764
12765         ;;
12766       RCC*)
12767         # Rational C++ 2.4.1
12768         # FIXME: insert proper C++ library support
12769         ld_shlibs_CXX=no
12770         ;;
12771       cxx*)
12772         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12773         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12774
12775         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12776         hardcode_libdir_separator_CXX=:
12777
12778         # Commands to make compiler produce verbose output that lists
12779         # what "hidden" libraries, object files and flags are used when
12780         # linking a shared library.
12781         #
12782         # There doesn't appear to be a way to prevent this compiler from
12783         # explicitly linking system object files so we need to strip them
12784         # from the output so that they don't get included in the library
12785         # dependencies.
12786         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12787         ;;
12788       *)
12789         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12790           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12791           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12792
12793           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12794           hardcode_libdir_separator_CXX=:
12795
12796           # Commands to make compiler produce verbose output that lists
12797           # what "hidden" libraries, object files and flags are used when
12798           # linking a shared library.
12799           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12800
12801         else
12802           # FIXME: insert proper C++ library support
12803           ld_shlibs_CXX=no
12804         fi
12805         ;;
12806     esac
12807     ;;
12808   osf4* | osf5*)
12809     case $cc_basename in
12810       KCC*)
12811         # Kuck and Associates, Inc. (KAI) C++ Compiler
12812
12813         # KCC will only create a shared library if the output file
12814         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12815         # to its proper name (with version) after linking.
12816         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12817
12818         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12819         hardcode_libdir_separator_CXX=:
12820
12821         # Archives containing C++ object files must be created using
12822         # the KAI C++ compiler.
12823         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12824         ;;
12825       RCC*)
12826         # Rational C++ 2.4.1
12827         # FIXME: insert proper C++ library support
12828         ld_shlibs_CXX=no
12829         ;;
12830       cxx*)
12831         allow_undefined_flag_CXX=' -expect_unresolved \*'
12832         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12833         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12834           echo "-hidden">> $lib.exp~
12835           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12836           $rm $lib.exp'
12837
12838         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12839         hardcode_libdir_separator_CXX=:
12840
12841         # Commands to make compiler produce verbose output that lists
12842         # what "hidden" libraries, object files and flags are used when
12843         # linking a shared library.
12844         #
12845         # There doesn't appear to be a way to prevent this compiler from
12846         # explicitly linking system object files so we need to strip them
12847         # from the output so that they don't get included in the library
12848         # dependencies.
12849         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12850         ;;
12851       *)
12852         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12853           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12854          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12855
12856           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12857           hardcode_libdir_separator_CXX=:
12858
12859           # Commands to make compiler produce verbose output that lists
12860           # what "hidden" libraries, object files and flags are used when
12861           # linking a shared library.
12862           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12863
12864         else
12865           # FIXME: insert proper C++ library support
12866           ld_shlibs_CXX=no
12867         fi
12868         ;;
12869     esac
12870     ;;
12871   psos*)
12872     # FIXME: insert proper C++ library support
12873     ld_shlibs_CXX=no
12874     ;;
12875   sco*)
12876     archive_cmds_need_lc_CXX=no
12877     case $cc_basename in
12878       CC*)
12879         # FIXME: insert proper C++ library support
12880         ld_shlibs_CXX=no
12881         ;;
12882       *)
12883         # FIXME: insert proper C++ library support
12884         ld_shlibs_CXX=no
12885         ;;
12886     esac
12887     ;;
12888   sunos4*)
12889     case $cc_basename in
12890       CC*)
12891         # Sun C++ 4.x
12892         # FIXME: insert proper C++ library support
12893         ld_shlibs_CXX=no
12894         ;;
12895       lcc*)
12896         # Lucid
12897         # FIXME: insert proper C++ library support
12898         ld_shlibs_CXX=no
12899         ;;
12900       *)
12901         # FIXME: insert proper C++ library support
12902         ld_shlibs_CXX=no
12903         ;;
12904     esac
12905     ;;
12906   solaris*)
12907     case $cc_basename in
12908       CC*)
12909         # Sun C++ 4.2, 5.x and Centerline C++
12910         no_undefined_flag_CXX=' -zdefs'
12911         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12912         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12913         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12914
12915         hardcode_libdir_flag_spec_CXX='-R$libdir'
12916         hardcode_shlibpath_var_CXX=no
12917         case $host_os in
12918           solaris2.[0-5] | solaris2.[0-5].*) ;;
12919           *)
12920             # The C++ compiler is used as linker so we must use $wl
12921             # flag to pass the commands to the underlying system
12922             # linker. We must also pass each convience library through
12923             # to the system linker between allextract/defaultextract.
12924             # The C++ compiler will combine linker options so we
12925             # cannot just pass the convience library names through
12926             # without $wl.
12927             # Supported since Solaris 2.6 (maybe 2.5.1?)
12928             whole_archive_flag_spec_CXX='${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'
12929             ;;
12930         esac
12931         link_all_deplibs_CXX=yes
12932
12933         # Commands to make compiler produce verbose output that lists
12934         # what "hidden" libraries, object files and flags are used when
12935         # linking a shared library.
12936         #
12937         # There doesn't appear to be a way to prevent this compiler from
12938         # explicitly linking system object files so we need to strip them
12939         # from the output so that they don't get included in the library
12940         # dependencies.
12941         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12942
12943         # Archives containing C++ object files must be created using
12944         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12945         # necessary to make sure instantiated templates are included
12946         # in the archive.
12947         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12948         ;;
12949       gcx*)
12950         # Green Hills C++ Compiler
12951         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12952
12953         # The C++ compiler must be used to create the archive.
12954         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12955         ;;
12956       *)
12957         # GNU C++ compiler with Solaris linker
12958         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12959           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12960           if $CC --version | grep -v '^2\.7' > /dev/null; then
12961             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12962             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12963                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12964
12965             # Commands to make compiler produce verbose output that lists
12966             # what "hidden" libraries, object files and flags are used when
12967             # linking a shared library.
12968             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12969           else
12970             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12971             # platform.
12972             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12973             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12974                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12975
12976             # Commands to make compiler produce verbose output that lists
12977             # what "hidden" libraries, object files and flags are used when
12978             # linking a shared library.
12979             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12980           fi
12981
12982           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12983         fi
12984         ;;
12985     esac
12986     ;;
12987   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12988     archive_cmds_need_lc_CXX=no
12989     ;;
12990   tandem*)
12991     case $cc_basename in
12992       NCC*)
12993         # NonStop-UX NCC 3.20
12994         # FIXME: insert proper C++ library support
12995         ld_shlibs_CXX=no
12996         ;;
12997       *)
12998         # FIXME: insert proper C++ library support
12999         ld_shlibs_CXX=no
13000         ;;
13001     esac
13002     ;;
13003   vxworks*)
13004     # FIXME: insert proper C++ library support
13005     ld_shlibs_CXX=no
13006     ;;
13007   *)
13008     # FIXME: insert proper C++ library support
13009     ld_shlibs_CXX=no
13010     ;;
13011 esac
13012 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13013 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13014 test "$ld_shlibs_CXX" = no && can_build_shared=no
13015
13016 GCC_CXX="$GXX"
13017 LD_CXX="$LD"
13018
13019
13020 cat > conftest.$ac_ext <<EOF
13021 class Foo
13022 {
13023 public:
13024   Foo (void) { a = 0; }
13025 private:
13026   int a;
13027 };
13028 EOF
13029
13030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13031   (eval $ac_compile) 2>&5
13032   ac_status=$?
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); }; then
13035   # Parse the compiler output and extract the necessary
13036   # objects, libraries and library flags.
13037
13038   # Sentinel used to keep track of whether or not we are before
13039   # the conftest object file.
13040   pre_test_object_deps_done=no
13041
13042   # The `*' in the case matches for architectures that use `case' in
13043   # $output_verbose_cmd can trigger glob expansion during the loop
13044   # eval without this substitution.
13045   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13046
13047   for p in `eval $output_verbose_link_cmd`; do
13048     case $p in
13049
13050     -L* | -R* | -l*)
13051        # Some compilers place space between "-{L,R}" and the path.
13052        # Remove the space.
13053        if test $p = "-L" \
13054           || test $p = "-R"; then
13055          prev=$p
13056          continue
13057        else
13058          prev=
13059        fi
13060
13061        if test "$pre_test_object_deps_done" = no; then
13062          case $p in
13063          -L* | -R*)
13064            # Internal compiler library paths should come after those
13065            # provided the user.  The postdeps already come after the
13066            # user supplied libs so there is no need to process them.
13067            if test -z "$compiler_lib_search_path_CXX"; then
13068              compiler_lib_search_path_CXX="${prev}${p}"
13069            else
13070              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13071            fi
13072            ;;
13073          # The "-l" case would never come before the object being
13074          # linked, so don't bother handling this case.
13075          esac
13076        else
13077          if test -z "$postdeps_CXX"; then
13078            postdeps_CXX="${prev}${p}"
13079          else
13080            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13081          fi
13082        fi
13083        ;;
13084
13085     *.$objext)
13086        # This assumes that the test object file only shows up
13087        # once in the compiler output.
13088        if test "$p" = "conftest.$objext"; then
13089          pre_test_object_deps_done=yes
13090          continue
13091        fi
13092
13093        if test "$pre_test_object_deps_done" = no; then
13094          if test -z "$predep_objects_CXX"; then
13095            predep_objects_CXX="$p"
13096          else
13097            predep_objects_CXX="$predep_objects_CXX $p"
13098          fi
13099        else
13100          if test -z "$postdep_objects_CXX"; then
13101            postdep_objects_CXX="$p"
13102          else
13103            postdep_objects_CXX="$postdep_objects_CXX $p"
13104          fi
13105        fi
13106        ;;
13107
13108     *) ;; # Ignore the rest.
13109
13110     esac
13111   done
13112
13113   # Clean up.
13114   rm -f a.out a.exe
13115 else
13116   echo "libtool.m4: error: problem compiling CXX test program"
13117 fi
13118
13119 $rm -f confest.$objext
13120
13121 case " $postdeps_CXX " in
13122 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13123 esac
13124
13125 lt_prog_compiler_wl_CXX=
13126 lt_prog_compiler_pic_CXX=
13127 lt_prog_compiler_static_CXX=
13128
13129 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13130 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13131
13132   # C++ specific cases for pic, static, wl, etc.
13133   if test "$GXX" = yes; then
13134     lt_prog_compiler_wl_CXX='-Wl,'
13135     lt_prog_compiler_static_CXX='-static'
13136
13137     case $host_os in
13138     aix*)
13139       # All AIX code is PIC.
13140       if test "$host_cpu" = ia64; then
13141         # AIX 5 now supports IA64 processor
13142         lt_prog_compiler_static_CXX='-Bstatic'
13143       fi
13144       ;;
13145     amigaos*)
13146       # FIXME: we need at least 68020 code to build shared libraries, but
13147       # adding the `-m68020' flag to GCC prevents building anything better,
13148       # like `-m68040'.
13149       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13150       ;;
13151     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13152       # PIC is the default for these OSes.
13153       ;;
13154     mingw* | os2* | pw32*)
13155       # This hack is so that the source file can tell whether it is being
13156       # built for inclusion in a dll (and should export symbols for example).
13157       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13158       ;;
13159     darwin* | rhapsody*)
13160       # PIC is the default on this platform
13161       # Common symbols not allowed in MH_DYLIB files
13162       lt_prog_compiler_pic_CXX='-fno-common'
13163       ;;
13164     *djgpp*)
13165       # DJGPP does not support shared libraries at all
13166       lt_prog_compiler_pic_CXX=
13167       ;;
13168     sysv4*MP*)
13169       if test -d /usr/nec; then
13170         lt_prog_compiler_pic_CXX=-Kconform_pic
13171       fi
13172       ;;
13173     hpux*)
13174       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13175       # not for PA HP-UX.
13176       case "$host_cpu" in
13177       hppa*64*|ia64*)
13178         ;;
13179       *)
13180         lt_prog_compiler_pic_CXX='-fPIC'
13181         ;;
13182       esac
13183       ;;
13184     *)
13185       lt_prog_compiler_pic_CXX='-fPIC'
13186       ;;
13187     esac
13188   else
13189     case $host_os in
13190       aix4* | aix5*)
13191         # All AIX code is PIC.
13192         if test "$host_cpu" = ia64; then
13193           # AIX 5 now supports IA64 processor
13194           lt_prog_compiler_static_CXX='-Bstatic'
13195         else
13196           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13197         fi
13198         ;;
13199       chorus*)
13200         case $cc_basename in
13201         cxch68*)
13202           # Green Hills C++ Compiler
13203           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13204           ;;
13205         esac
13206         ;;
13207        darwin*)
13208          # PIC is the default on this platform
13209          # Common symbols not allowed in MH_DYLIB files
13210          case $cc_basename in
13211            xlc*)
13212            lt_prog_compiler_pic_CXX='-qnocommon'
13213            lt_prog_compiler_wl_CXX='-Wl,'
13214            ;;
13215          esac
13216        ;;
13217       dgux*)
13218         case $cc_basename in
13219           ec++*)
13220             lt_prog_compiler_pic_CXX='-KPIC'
13221             ;;
13222           ghcx*)
13223             # Green Hills C++ Compiler
13224             lt_prog_compiler_pic_CXX='-pic'
13225             ;;
13226           *)
13227             ;;
13228         esac
13229         ;;
13230       freebsd* | kfreebsd*-gnu | dragonfly*)
13231         # FreeBSD uses GNU C++
13232         ;;
13233       hpux9* | hpux10* | hpux11*)
13234         case $cc_basename in
13235           CC*)
13236             lt_prog_compiler_wl_CXX='-Wl,'
13237             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13238             if test "$host_cpu" != ia64; then
13239               lt_prog_compiler_pic_CXX='+Z'
13240             fi
13241             ;;
13242           aCC*)
13243             lt_prog_compiler_wl_CXX='-Wl,'
13244             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13245             case "$host_cpu" in
13246             hppa*64*|ia64*)
13247               # +Z the default
13248               ;;
13249             *)
13250               lt_prog_compiler_pic_CXX='+Z'
13251               ;;
13252             esac
13253             ;;
13254           *)
13255             ;;
13256         esac
13257         ;;
13258       irix5* | irix6* | nonstopux*)
13259         case $cc_basename in
13260           CC*)
13261             lt_prog_compiler_wl_CXX='-Wl,'
13262             lt_prog_compiler_static_CXX='-non_shared'
13263             # CC pic flag -KPIC is the default.
13264             ;;
13265           *)
13266             ;;
13267         esac
13268         ;;
13269       linux*)
13270         case $cc_basename in
13271           KCC*)
13272             # KAI C++ Compiler
13273             lt_prog_compiler_wl_CXX='--backend -Wl,'
13274             lt_prog_compiler_pic_CXX='-fPIC'
13275             ;;
13276           icpc* | ecpc*)
13277             # Intel C++
13278             lt_prog_compiler_wl_CXX='-Wl,'
13279             lt_prog_compiler_pic_CXX='-KPIC'
13280             lt_prog_compiler_static_CXX='-static'
13281             ;;
13282           pgCC*)
13283             # Portland Group C++ compiler.
13284             lt_prog_compiler_wl_CXX='-Wl,'
13285             lt_prog_compiler_pic_CXX='-fpic'
13286             lt_prog_compiler_static_CXX='-static'
13287             ;;
13288           cxx*)
13289             # Compaq C++
13290             # Make sure the PIC flag is empty.  It appears that all Alpha
13291             # Linux and Compaq Tru64 Unix objects are PIC.
13292             lt_prog_compiler_pic_CXX=
13293             lt_prog_compiler_static_CXX='-non_shared'
13294             ;;
13295           *)
13296             ;;
13297         esac
13298         ;;
13299       lynxos*)
13300         ;;
13301       m88k*)
13302         ;;
13303       mvs*)
13304         case $cc_basename in
13305           cxx*)
13306             lt_prog_compiler_pic_CXX='-W c,exportall'
13307             ;;
13308           *)
13309             ;;
13310         esac
13311         ;;
13312       netbsd*)
13313         ;;
13314       osf3* | osf4* | osf5*)
13315         case $cc_basename in
13316           KCC*)
13317             lt_prog_compiler_wl_CXX='--backend -Wl,'
13318             ;;
13319           RCC*)
13320             # Rational C++ 2.4.1
13321             lt_prog_compiler_pic_CXX='-pic'
13322             ;;
13323           cxx*)
13324             # Digital/Compaq C++
13325             lt_prog_compiler_wl_CXX='-Wl,'
13326             # Make sure the PIC flag is empty.  It appears that all Alpha
13327             # Linux and Compaq Tru64 Unix objects are PIC.
13328             lt_prog_compiler_pic_CXX=
13329             lt_prog_compiler_static_CXX='-non_shared'
13330             ;;
13331           *)
13332             ;;
13333         esac
13334         ;;
13335       psos*)
13336         ;;
13337       sco*)
13338         case $cc_basename in
13339           CC*)
13340             lt_prog_compiler_pic_CXX='-fPIC'
13341             ;;
13342           *)
13343             ;;
13344         esac
13345         ;;
13346       solaris*)
13347         case $cc_basename in
13348           CC*)
13349             # Sun C++ 4.2, 5.x and Centerline C++
13350             lt_prog_compiler_pic_CXX='-KPIC'
13351             lt_prog_compiler_static_CXX='-Bstatic'
13352             lt_prog_compiler_wl_CXX='-Qoption ld '
13353             ;;
13354           gcx*)
13355             # Green Hills C++ Compiler
13356             lt_prog_compiler_pic_CXX='-PIC'
13357             ;;
13358           *)
13359             ;;
13360         esac
13361         ;;
13362       sunos4*)
13363         case $cc_basename in
13364           CC*)
13365             # Sun C++ 4.x
13366             lt_prog_compiler_pic_CXX='-pic'
13367             lt_prog_compiler_static_CXX='-Bstatic'
13368             ;;
13369           lcc*)
13370             # Lucid
13371             lt_prog_compiler_pic_CXX='-pic'
13372             ;;
13373           *)
13374             ;;
13375         esac
13376         ;;
13377       tandem*)
13378         case $cc_basename in
13379           NCC*)
13380             # NonStop-UX NCC 3.20
13381             lt_prog_compiler_pic_CXX='-KPIC'
13382             ;;
13383           *)
13384             ;;
13385         esac
13386         ;;
13387       unixware*)
13388         ;;
13389       vxworks*)
13390         ;;
13391       *)
13392         lt_prog_compiler_can_build_shared_CXX=no
13393         ;;
13394     esac
13395   fi
13396
13397 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13398 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13399
13400 #
13401 # Check to make sure the PIC flag actually works.
13402 #
13403 if test -n "$lt_prog_compiler_pic_CXX"; then
13404
13405 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13406 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13407 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410   lt_prog_compiler_pic_works_CXX=no
13411   ac_outfile=conftest.$ac_objext
13412    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13413    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13414    # Insert the option either (1) after the last *FLAGS variable, or
13415    # (2) before a word containing "conftest.", or (3) at the end.
13416    # Note that $ac_compile itself does not contain backslashes and begins
13417    # with a dollar sign (not a hyphen), so the echo should work correctly.
13418    # The option is referenced via a variable to avoid confusing sed.
13419    lt_compile=`echo "$ac_compile" | $SED \
13420    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13421    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13422    -e 's:$: $lt_compiler_flag:'`
13423    (eval echo "\"\$as_me:13423: $lt_compile\"" >&5)
13424    (eval "$lt_compile" 2>conftest.err)
13425    ac_status=$?
13426    cat conftest.err >&5
13427    echo "$as_me:13427: \$? = $ac_status" >&5
13428    if (exit $ac_status) && test -s "$ac_outfile"; then
13429      # The compiler can only warn and ignore the option if not recognized
13430      # So say no if there are warnings other than the usual output.
13431      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13432      $SED '/^$/d' conftest.err >conftest.er2
13433      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13434        lt_prog_compiler_pic_works_CXX=yes
13435      fi
13436    fi
13437    $rm conftest*
13438
13439 fi
13440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13441 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13442
13443 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13444     case $lt_prog_compiler_pic_CXX in
13445      "" | " "*) ;;
13446      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13447      esac
13448 else
13449     lt_prog_compiler_pic_CXX=
13450      lt_prog_compiler_can_build_shared_CXX=no
13451 fi
13452
13453 fi
13454 case "$host_os" in
13455   # For platforms which do not support PIC, -DPIC is meaningless:
13456   *djgpp*)
13457     lt_prog_compiler_pic_CXX=
13458     ;;
13459   *)
13460     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13461     ;;
13462 esac
13463
13464 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13465 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13467   echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469   lt_cv_prog_compiler_c_o_CXX=no
13470    $rm -r conftest 2>/dev/null
13471    mkdir conftest
13472    cd conftest
13473    mkdir out
13474    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13475
13476    lt_compiler_flag="-o out/conftest2.$ac_objext"
13477    # Insert the option either (1) after the last *FLAGS variable, or
13478    # (2) before a word containing "conftest.", or (3) at the end.
13479    # Note that $ac_compile itself does not contain backslashes and begins
13480    # with a dollar sign (not a hyphen), so the echo should work correctly.
13481    lt_compile=`echo "$ac_compile" | $SED \
13482    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484    -e 's:$: $lt_compiler_flag:'`
13485    (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
13486    (eval "$lt_compile" 2>out/conftest.err)
13487    ac_status=$?
13488    cat out/conftest.err >&5
13489    echo "$as_me:13489: \$? = $ac_status" >&5
13490    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13491    then
13492      # The compiler can only warn and ignore the option if not recognized
13493      # So say no if there are warnings
13494      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13495      $SED '/^$/d' out/conftest.err >out/conftest.er2
13496      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13497        lt_cv_prog_compiler_c_o_CXX=yes
13498      fi
13499    fi
13500    chmod u+w .
13501    $rm conftest*
13502    # SGI C++ compiler will create directory out/ii_files/ for
13503    # template instantiation
13504    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13505    $rm out/* && rmdir out
13506    cd ..
13507    rmdir conftest
13508    $rm conftest*
13509
13510 fi
13511 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13512 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13513
13514
13515 hard_links="nottested"
13516 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13517   # do not overwrite the value of need_locks provided by the user
13518   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13519 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13520   hard_links=yes
13521   $rm conftest*
13522   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13523   touch conftest.a
13524   ln conftest.a conftest.b 2>&5 || hard_links=no
13525   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13526   echo "$as_me:$LINENO: result: $hard_links" >&5
13527 echo "${ECHO_T}$hard_links" >&6
13528   if test "$hard_links" = no; then
13529     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13530 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13531     need_locks=warn
13532   fi
13533 else
13534   need_locks=no
13535 fi
13536
13537 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13538 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13539
13540   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13541   case $host_os in
13542   aix4* | aix5*)
13543     # If we're using GNU nm, then we don't want the "-C" option.
13544     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13545     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13546       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13547     else
13548       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13549     fi
13550     ;;
13551   pw32*)
13552     export_symbols_cmds_CXX="$ltdll_cmds"
13553   ;;
13554   cygwin* | mingw*)
13555     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13556   ;;
13557   *)
13558     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13559   ;;
13560   esac
13561
13562 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13563 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13564 test "$ld_shlibs_CXX" = no && can_build_shared=no
13565
13566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13567 if test "$GCC" = yes; then
13568   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13569 fi
13570
13571 #
13572 # Do we need to explicitly link libc?
13573 #
13574 case "x$archive_cmds_need_lc_CXX" in
13575 x|xyes)
13576   # Assume -lc should be added
13577   archive_cmds_need_lc_CXX=yes
13578
13579   if test "$enable_shared" = yes && test "$GCC" = yes; then
13580     case $archive_cmds_CXX in
13581     *'~'*)
13582       # FIXME: we may have to deal with multi-command sequences.
13583       ;;
13584     '$CC '*)
13585       # Test whether the compiler implicitly links with -lc since on some
13586       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13587       # to ld, don't add -lc before -lgcc.
13588       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13590       $rm conftest*
13591       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13592
13593       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594   (eval $ac_compile) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } 2>conftest.err; then
13598         soname=conftest
13599         lib=conftest
13600         libobjs=conftest.$ac_objext
13601         deplibs=
13602         wl=$lt_prog_compiler_wl_CXX
13603         compiler_flags=-v
13604         linker_flags=-v
13605         verstring=
13606         output_objdir=.
13607         libname=conftest
13608         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13609         allow_undefined_flag_CXX=
13610         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13611   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }
13615         then
13616           archive_cmds_need_lc_CXX=no
13617         else
13618           archive_cmds_need_lc_CXX=yes
13619         fi
13620         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13621       else
13622         cat conftest.err 1>&5
13623       fi
13624       $rm conftest*
13625       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13626 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13627       ;;
13628     esac
13629   fi
13630   ;;
13631 esac
13632
13633 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13634 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13635 library_names_spec=
13636 libname_spec='lib$name'
13637 soname_spec=
13638 shrext_cmds=".so"
13639 postinstall_cmds=
13640 postuninstall_cmds=
13641 finish_cmds=
13642 finish_eval=
13643 shlibpath_var=
13644 shlibpath_overrides_runpath=unknown
13645 version_type=none
13646 dynamic_linker="$host_os ld.so"
13647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13648 if test "$GCC" = yes; then
13649   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13650   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13651     # if the path contains ";" then we assume it to be the separator
13652     # otherwise default to the standard path separator (i.e. ":") - it is
13653     # assumed that no part of a normal pathname contains ";" but that should
13654     # okay in the real world where ";" in dirpaths is itself problematic.
13655     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13656   else
13657     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13658   fi
13659 else
13660   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13661 fi
13662 need_lib_prefix=unknown
13663 hardcode_into_libs=no
13664
13665 # when you set need_version to no, make sure it does not cause -set_version
13666 # flags to be left without arguments
13667 need_version=unknown
13668
13669 case $host_os in
13670 aix3*)
13671   version_type=linux
13672   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13673   shlibpath_var=LIBPATH
13674
13675   # AIX 3 has no versioning support, so we append a major version to the name.
13676   soname_spec='${libname}${release}${shared_ext}$major'
13677   ;;
13678
13679 aix4* | aix5*)
13680   version_type=linux
13681   need_lib_prefix=no
13682   need_version=no
13683   hardcode_into_libs=yes
13684   if test "$host_cpu" = ia64; then
13685     # AIX 5 supports IA64
13686     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13687     shlibpath_var=LD_LIBRARY_PATH
13688   else
13689     # With GCC up to 2.95.x, collect2 would create an import file
13690     # for dependence libraries.  The import file would start with
13691     # the line `#! .'.  This would cause the generated library to
13692     # depend on `.', always an invalid library.  This was fixed in
13693     # development snapshots of GCC prior to 3.0.
13694     case $host_os in
13695       aix4 | aix4.[01] | aix4.[01].*)
13696       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13697            echo ' yes '
13698            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13699         :
13700       else
13701         can_build_shared=no
13702       fi
13703       ;;
13704     esac
13705     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13706     # soname into executable. Probably we can add versioning support to
13707     # collect2, so additional links can be useful in future.
13708     if test "$aix_use_runtimelinking" = yes; then
13709       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13710       # instead of lib<name>.a to let people know that these are not
13711       # typical AIX shared libraries.
13712       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13713     else
13714       # We preserve .a as extension for shared libraries through AIX4.2
13715       # and later when we are not doing run time linking.
13716       library_names_spec='${libname}${release}.a $libname.a'
13717       soname_spec='${libname}${release}${shared_ext}$major'
13718     fi
13719     shlibpath_var=LIBPATH
13720   fi
13721   ;;
13722
13723 amigaos*)
13724   library_names_spec='$libname.ixlibrary $libname.a'
13725   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13726   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'
13727   ;;
13728
13729 beos*)
13730   library_names_spec='${libname}${shared_ext}'
13731   dynamic_linker="$host_os ld.so"
13732   shlibpath_var=LIBRARY_PATH
13733   ;;
13734
13735 bsdi[45]*)
13736   version_type=linux
13737   need_version=no
13738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13739   soname_spec='${libname}${release}${shared_ext}$major'
13740   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13741   shlibpath_var=LD_LIBRARY_PATH
13742   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13743   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13744   # the default ld.so.conf also contains /usr/contrib/lib and
13745   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13746   # libtool to hard-code these into programs
13747   ;;
13748
13749 cygwin* | mingw* | pw32*)
13750   version_type=windows
13751   shrext_cmds=".dll"
13752   need_version=no
13753   need_lib_prefix=no
13754
13755   case $GCC,$host_os in
13756   yes,cygwin* | yes,mingw* | yes,pw32*)
13757     library_names_spec='$libname.dll.a'
13758     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13759     postinstall_cmds='base_file=`basename \${file}`~
13760       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13761       dldir=$destdir/`dirname \$dlpath`~
13762       test -d \$dldir || mkdir -p \$dldir~
13763       $install_prog $dir/$dlname \$dldir/$dlname'
13764     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13765       dlpath=$dir/\$dldll~
13766        $rm \$dlpath'
13767     shlibpath_overrides_runpath=yes
13768
13769     case $host_os in
13770     cygwin*)
13771       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13772       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13773       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13774       ;;
13775     mingw*)
13776       # MinGW DLLs use traditional 'lib' prefix
13777       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13778       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13779       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13780         # It is most probably a Windows format PATH printed by
13781         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13782         # path with ; separators, and with drive letters. We can handle the
13783         # drive letters (cygwin fileutils understands them), so leave them,
13784         # especially as we might pass files found there to a mingw objdump,
13785         # which wouldn't understand a cygwinified path. Ahh.
13786         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13787       else
13788         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13789       fi
13790       ;;
13791     pw32*)
13792       # pw32 DLLs use 'pw' prefix rather than 'lib'
13793       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13794       ;;
13795     esac
13796     ;;
13797
13798   *)
13799     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13800     ;;
13801   esac
13802   dynamic_linker='Win32 ld.exe'
13803   # FIXME: first we should search . and the directory the executable is in
13804   shlibpath_var=PATH
13805   ;;
13806
13807 darwin* | rhapsody*)
13808   dynamic_linker="$host_os dyld"
13809   version_type=darwin
13810   need_lib_prefix=no
13811   need_version=no
13812   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13813   soname_spec='${libname}${release}${major}$shared_ext'
13814   shlibpath_overrides_runpath=yes
13815   shlibpath_var=DYLD_LIBRARY_PATH
13816   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13817   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13818   if test "$GCC" = yes; then
13819     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"`
13820   else
13821     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13822   fi
13823   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13824   ;;
13825
13826 dgux*)
13827   version_type=linux
13828   need_lib_prefix=no
13829   need_version=no
13830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13831   soname_spec='${libname}${release}${shared_ext}$major'
13832   shlibpath_var=LD_LIBRARY_PATH
13833   ;;
13834
13835 freebsd1*)
13836   dynamic_linker=no
13837   ;;
13838
13839 kfreebsd*-gnu)
13840   version_type=linux
13841   need_lib_prefix=no
13842   need_version=no
13843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13844   soname_spec='${libname}${release}${shared_ext}$major'
13845   shlibpath_var=LD_LIBRARY_PATH
13846   shlibpath_overrides_runpath=no
13847   hardcode_into_libs=yes
13848   dynamic_linker='GNU ld.so'
13849   ;;
13850
13851 freebsd* | dragonfly*)
13852   # DragonFly does not have aout.  When/if they implement a new
13853   # versioning mechanism, adjust this.
13854   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13855   version_type=freebsd-$objformat
13856   case $version_type in
13857     freebsd-elf*)
13858       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13859       need_version=no
13860       need_lib_prefix=no
13861       ;;
13862     freebsd-*)
13863       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13864       need_version=yes
13865       ;;
13866   esac
13867   shlibpath_var=LD_LIBRARY_PATH
13868   case $host_os in
13869   freebsd2*)
13870     shlibpath_overrides_runpath=yes
13871     ;;
13872   freebsd3.[01]* | freebsdelf3.[01]*)
13873     shlibpath_overrides_runpath=yes
13874     hardcode_into_libs=yes
13875     ;;
13876   *) # from 3.2 on
13877     shlibpath_overrides_runpath=no
13878     hardcode_into_libs=yes
13879     ;;
13880   esac
13881   ;;
13882
13883 gnu*)
13884   version_type=linux
13885   need_lib_prefix=no
13886   need_version=no
13887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13888   soname_spec='${libname}${release}${shared_ext}$major'
13889   shlibpath_var=LD_LIBRARY_PATH
13890   hardcode_into_libs=yes
13891   ;;
13892
13893 hpux9* | hpux10* | hpux11*)
13894   # Give a soname corresponding to the major version so that dld.sl refuses to
13895   # link against other versions.
13896   version_type=sunos
13897   need_lib_prefix=no
13898   need_version=no
13899   case "$host_cpu" in
13900   ia64*)
13901     shrext_cmds='.so'
13902     hardcode_into_libs=yes
13903     dynamic_linker="$host_os dld.so"
13904     shlibpath_var=LD_LIBRARY_PATH
13905     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907     soname_spec='${libname}${release}${shared_ext}$major'
13908     if test "X$HPUX_IA64_MODE" = X32; then
13909       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13910     else
13911       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13912     fi
13913     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13914     ;;
13915    hppa*64*)
13916      shrext_cmds='.sl'
13917      hardcode_into_libs=yes
13918      dynamic_linker="$host_os dld.sl"
13919      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13920      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13921      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922      soname_spec='${libname}${release}${shared_ext}$major'
13923      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13924      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13925      ;;
13926    *)
13927     shrext_cmds='.sl'
13928     dynamic_linker="$host_os dld.sl"
13929     shlibpath_var=SHLIB_PATH
13930     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932     soname_spec='${libname}${release}${shared_ext}$major'
13933     ;;
13934   esac
13935   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13936   postinstall_cmds='chmod 555 $lib'
13937   ;;
13938
13939 irix5* | irix6* | nonstopux*)
13940   case $host_os in
13941     nonstopux*) version_type=nonstopux ;;
13942     *)
13943         if test "$lt_cv_prog_gnu_ld" = yes; then
13944                 version_type=linux
13945         else
13946                 version_type=irix
13947         fi ;;
13948   esac
13949   need_lib_prefix=no
13950   need_version=no
13951   soname_spec='${libname}${release}${shared_ext}$major'
13952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13953   case $host_os in
13954   irix5* | nonstopux*)
13955     libsuff= shlibsuff=
13956     ;;
13957   *)
13958     case $LD in # libtool.m4 will add one of these switches to LD
13959     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13960       libsuff= shlibsuff= libmagic=32-bit;;
13961     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13962       libsuff=32 shlibsuff=N32 libmagic=N32;;
13963     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13964       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13965     *) libsuff= shlibsuff= libmagic=never-match;;
13966     esac
13967     ;;
13968   esac
13969   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13970   shlibpath_overrides_runpath=no
13971   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13972   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13973   hardcode_into_libs=yes
13974   ;;
13975
13976 # No shared lib support for Linux oldld, aout, or coff.
13977 linux*oldld* | linux*aout* | linux*coff*)
13978   dynamic_linker=no
13979   ;;
13980
13981 # This must be Linux ELF.
13982 linux*)
13983   version_type=linux
13984   need_lib_prefix=no
13985   need_version=no
13986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987   soname_spec='${libname}${release}${shared_ext}$major'
13988   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13989   shlibpath_var=LD_LIBRARY_PATH
13990   shlibpath_overrides_runpath=no
13991   # This implies no fast_install, which is unacceptable.
13992   # Some rework will be needed to allow for fast_install
13993   # before this can be enabled.
13994   hardcode_into_libs=yes
13995
13996   # Append ld.so.conf contents to the search path
13997   if test -f /etc/ld.so.conf; then
13998     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' ' '`
13999     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14000   fi
14001
14002   # We used to test for /lib/ld.so.1 and disable shared libraries on
14003   # powerpc, because MkLinux only supported shared libraries with the
14004   # GNU dynamic linker.  Since this was broken with cross compilers,
14005   # most powerpc-linux boxes support dynamic linking these days and
14006   # people can always --disable-shared, the test was removed, and we
14007   # assume the GNU/Linux dynamic linker is in use.
14008   dynamic_linker='GNU/Linux ld.so'
14009   ;;
14010
14011 knetbsd*-gnu)
14012   version_type=linux
14013   need_lib_prefix=no
14014   need_version=no
14015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14016   soname_spec='${libname}${release}${shared_ext}$major'
14017   shlibpath_var=LD_LIBRARY_PATH
14018   shlibpath_overrides_runpath=no
14019   hardcode_into_libs=yes
14020   dynamic_linker='GNU ld.so'
14021   ;;
14022
14023 netbsd*)
14024   version_type=sunos
14025   need_lib_prefix=no
14026   need_version=no
14027   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14029     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14030     dynamic_linker='NetBSD (a.out) ld.so'
14031   else
14032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14033     soname_spec='${libname}${release}${shared_ext}$major'
14034     dynamic_linker='NetBSD ld.elf_so'
14035   fi
14036   shlibpath_var=LD_LIBRARY_PATH
14037   shlibpath_overrides_runpath=yes
14038   hardcode_into_libs=yes
14039   ;;
14040
14041 newsos6)
14042   version_type=linux
14043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044   shlibpath_var=LD_LIBRARY_PATH
14045   shlibpath_overrides_runpath=yes
14046   ;;
14047
14048 nto-qnx*)
14049   version_type=linux
14050   need_lib_prefix=no
14051   need_version=no
14052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053   soname_spec='${libname}${release}${shared_ext}$major'
14054   shlibpath_var=LD_LIBRARY_PATH
14055   shlibpath_overrides_runpath=yes
14056   ;;
14057
14058 openbsd*)
14059   version_type=sunos
14060   need_lib_prefix=no
14061   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14062   case $host_os in
14063     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14064     *)                         need_version=no  ;;
14065   esac
14066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14067   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14068   shlibpath_var=LD_LIBRARY_PATH
14069   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14070     case $host_os in
14071       openbsd2.[89] | openbsd2.[89].*)
14072         shlibpath_overrides_runpath=no
14073         ;;
14074       *)
14075         shlibpath_overrides_runpath=yes
14076         ;;
14077       esac
14078   else
14079     shlibpath_overrides_runpath=yes
14080   fi
14081   ;;
14082
14083 os2*)
14084   libname_spec='$name'
14085   shrext_cmds=".dll"
14086   need_lib_prefix=no
14087   library_names_spec='$libname${shared_ext} $libname.a'
14088   dynamic_linker='OS/2 ld.exe'
14089   shlibpath_var=LIBPATH
14090   ;;
14091
14092 osf3* | osf4* | osf5*)
14093   version_type=osf
14094   need_lib_prefix=no
14095   need_version=no
14096   soname_spec='${libname}${release}${shared_ext}$major'
14097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098   shlibpath_var=LD_LIBRARY_PATH
14099   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14100   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14101   ;;
14102
14103 sco3.2v5*)
14104   version_type=osf
14105   soname_spec='${libname}${release}${shared_ext}$major'
14106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107   shlibpath_var=LD_LIBRARY_PATH
14108   ;;
14109
14110 solaris*)
14111   version_type=linux
14112   need_lib_prefix=no
14113   need_version=no
14114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14115   soname_spec='${libname}${release}${shared_ext}$major'
14116   shlibpath_var=LD_LIBRARY_PATH
14117   shlibpath_overrides_runpath=yes
14118   hardcode_into_libs=yes
14119   # ldd complains unless libraries are executable
14120   postinstall_cmds='chmod +x $lib'
14121   ;;
14122
14123 sunos4*)
14124   version_type=sunos
14125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14126   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14127   shlibpath_var=LD_LIBRARY_PATH
14128   shlibpath_overrides_runpath=yes
14129   if test "$with_gnu_ld" = yes; then
14130     need_lib_prefix=no
14131   fi
14132   need_version=yes
14133   ;;
14134
14135 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14136   version_type=linux
14137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138   soname_spec='${libname}${release}${shared_ext}$major'
14139   shlibpath_var=LD_LIBRARY_PATH
14140   case $host_vendor in
14141     sni)
14142       shlibpath_overrides_runpath=no
14143       need_lib_prefix=no
14144       export_dynamic_flag_spec='${wl}-Blargedynsym'
14145       runpath_var=LD_RUN_PATH
14146       ;;
14147     siemens)
14148       need_lib_prefix=no
14149       ;;
14150     motorola)
14151       need_lib_prefix=no
14152       need_version=no
14153       shlibpath_overrides_runpath=no
14154       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14155       ;;
14156   esac
14157   ;;
14158
14159 sysv4*MP*)
14160   if test -d /usr/nec ;then
14161     version_type=linux
14162     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14163     soname_spec='$libname${shared_ext}.$major'
14164     shlibpath_var=LD_LIBRARY_PATH
14165   fi
14166   ;;
14167
14168 uts4*)
14169   version_type=linux
14170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171   soname_spec='${libname}${release}${shared_ext}$major'
14172   shlibpath_var=LD_LIBRARY_PATH
14173   ;;
14174
14175 *)
14176   dynamic_linker=no
14177   ;;
14178 esac
14179 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14180 echo "${ECHO_T}$dynamic_linker" >&6
14181 test "$dynamic_linker" = no && can_build_shared=no
14182
14183 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14184 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14185 hardcode_action_CXX=
14186 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14187    test -n "$runpath_var_CXX" || \
14188    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14189
14190   # We can hardcode non-existant directories.
14191   if test "$hardcode_direct_CXX" != no &&
14192      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14193      # have to relink, otherwise we might link with an installed library
14194      # when we should be linking with a yet-to-be-installed one
14195      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14196      test "$hardcode_minus_L_CXX" != no; then
14197     # Linking always hardcodes the temporary library directory.
14198     hardcode_action_CXX=relink
14199   else
14200     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14201     hardcode_action_CXX=immediate
14202   fi
14203 else
14204   # We cannot hardcode anything, or else we can only hardcode existing
14205   # directories.
14206   hardcode_action_CXX=unsupported
14207 fi
14208 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14209 echo "${ECHO_T}$hardcode_action_CXX" >&6
14210
14211 if test "$hardcode_action_CXX" = relink; then
14212   # Fast installation is not supported
14213   enable_fast_install=no
14214 elif test "$shlibpath_overrides_runpath" = yes ||
14215      test "$enable_shared" = no; then
14216   # Fast installation is not necessary
14217   enable_fast_install=needless
14218 fi
14219
14220 striplib=
14221 old_striplib=
14222 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14223 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14224 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14225   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14226   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14227   echo "$as_me:$LINENO: result: yes" >&5
14228 echo "${ECHO_T}yes" >&6
14229 else
14230 # FIXME - insert some real tests, host_os isn't really good enough
14231   case $host_os in
14232    darwin*)
14233        if test -n "$STRIP" ; then
14234          striplib="$STRIP -x"
14235          echo "$as_me:$LINENO: result: yes" >&5
14236 echo "${ECHO_T}yes" >&6
14237        else
14238   echo "$as_me:$LINENO: result: no" >&5
14239 echo "${ECHO_T}no" >&6
14240 fi
14241        ;;
14242    *)
14243   echo "$as_me:$LINENO: result: no" >&5
14244 echo "${ECHO_T}no" >&6
14245     ;;
14246   esac
14247 fi
14248
14249 if test "x$enable_dlopen" != xyes; then
14250   enable_dlopen=unknown
14251   enable_dlopen_self=unknown
14252   enable_dlopen_self_static=unknown
14253 else
14254   lt_cv_dlopen=no
14255   lt_cv_dlopen_libs=
14256
14257   case $host_os in
14258   beos*)
14259     lt_cv_dlopen="load_add_on"
14260     lt_cv_dlopen_libs=
14261     lt_cv_dlopen_self=yes
14262     ;;
14263
14264   mingw* | pw32*)
14265     lt_cv_dlopen="LoadLibrary"
14266     lt_cv_dlopen_libs=
14267    ;;
14268
14269   cygwin*)
14270     lt_cv_dlopen="dlopen"
14271     lt_cv_dlopen_libs=
14272    ;;
14273
14274   darwin*)
14275   # if libdl is installed we need to link against it
14276     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14277 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14278 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14279   echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281   ac_check_lib_save_LIBS=$LIBS
14282 LIBS="-ldl  $LIBS"
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h.  */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h.  */
14289
14290 /* Override any gcc2 internal prototype to avoid an error.  */
14291 #ifdef __cplusplus
14292 extern "C"
14293 #endif
14294 /* We use char because int might match the return type of a gcc2
14295    builtin and then its argument prototype would still apply.  */
14296 char dlopen ();
14297 int
14298 main ()
14299 {
14300 dlopen ();
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14307   (eval $ac_link) 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -z "$ac_cxx_werror_flag"
14315                          || test ! -s conftest.err'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; } &&
14321          { ac_try='test -s conftest$ac_exeext'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; }; then
14327   ac_cv_lib_dl_dlopen=yes
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ac_cv_lib_dl_dlopen=no
14333 fi
14334 rm -f conftest.err conftest.$ac_objext \
14335       conftest$ac_exeext conftest.$ac_ext
14336 LIBS=$ac_check_lib_save_LIBS
14337 fi
14338 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14339 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14340 if test $ac_cv_lib_dl_dlopen = yes; then
14341   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14342 else
14343
14344     lt_cv_dlopen="dyld"
14345     lt_cv_dlopen_libs=
14346     lt_cv_dlopen_self=yes
14347
14348 fi
14349
14350    ;;
14351
14352   *)
14353     echo "$as_me:$LINENO: checking for shl_load" >&5
14354 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14355 if test "${ac_cv_func_shl_load+set}" = set; then
14356   echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358   cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h.  */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h.  */
14364 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14366 #define shl_load innocuous_shl_load
14367
14368 /* System header to define __stub macros and hopefully few prototypes,
14369     which can conflict with char shl_load (); below.
14370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14371     <limits.h> exists even on freestanding compilers.  */
14372
14373 #ifdef __STDC__
14374 # include <limits.h>
14375 #else
14376 # include <assert.h>
14377 #endif
14378
14379 #undef shl_load
14380
14381 /* Override any gcc2 internal prototype to avoid an error.  */
14382 #ifdef __cplusplus
14383 extern "C"
14384 {
14385 #endif
14386 /* We use char because int might match the return type of a gcc2
14387    builtin and then its argument prototype would still apply.  */
14388 char shl_load ();
14389 /* The GNU C library defines this for functions which it implements
14390     to always fail with ENOSYS.  Some functions are actually named
14391     something starting with __ and the normal name is an alias.  */
14392 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14393 choke me
14394 #else
14395 char (*f) () = shl_load;
14396 #endif
14397 #ifdef __cplusplus
14398 }
14399 #endif
14400
14401 int
14402 main ()
14403 {
14404 return f != shl_load;
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411   (eval $ac_link) 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } &&
14418          { ac_try='test -z "$ac_cxx_werror_flag"
14419                          || test ! -s conftest.err'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; } &&
14425          { ac_try='test -s conftest$ac_exeext'
14426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427   (eval $ac_try) 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); }; }; then
14431   ac_cv_func_shl_load=yes
14432 else
14433   echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 ac_cv_func_shl_load=no
14437 fi
14438 rm -f conftest.err conftest.$ac_objext \
14439       conftest$ac_exeext conftest.$ac_ext
14440 fi
14441 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14442 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14443 if test $ac_cv_func_shl_load = yes; then
14444   lt_cv_dlopen="shl_load"
14445 else
14446   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14447 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14448 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14449   echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451   ac_check_lib_save_LIBS=$LIBS
14452 LIBS="-ldld  $LIBS"
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h.  */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h.  */
14459
14460 /* Override any gcc2 internal prototype to avoid an error.  */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 /* We use char because int might match the return type of a gcc2
14465    builtin and then its argument prototype would still apply.  */
14466 char shl_load ();
14467 int
14468 main ()
14469 {
14470 shl_load ();
14471   ;
14472   return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext conftest$ac_exeext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14477   (eval $ac_link) 2>conftest.er1
14478   ac_status=$?
14479   grep -v '^ *+' conftest.er1 >conftest.err
14480   rm -f conftest.er1
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } &&
14484          { ac_try='test -z "$ac_cxx_werror_flag"
14485                          || test ! -s conftest.err'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; } &&
14491          { ac_try='test -s conftest$ac_exeext'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   ac_cv_lib_dld_shl_load=yes
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_cv_lib_dld_shl_load=no
14503 fi
14504 rm -f conftest.err conftest.$ac_objext \
14505       conftest$ac_exeext conftest.$ac_ext
14506 LIBS=$ac_check_lib_save_LIBS
14507 fi
14508 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14509 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14510 if test $ac_cv_lib_dld_shl_load = yes; then
14511   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14512 else
14513   echo "$as_me:$LINENO: checking for dlopen" >&5
14514 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14515 if test "${ac_cv_func_dlopen+set}" = set; then
14516   echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518   cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h.  */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h.  */
14524 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14526 #define dlopen innocuous_dlopen
14527
14528 /* System header to define __stub macros and hopefully few prototypes,
14529     which can conflict with char dlopen (); below.
14530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14531     <limits.h> exists even on freestanding compilers.  */
14532
14533 #ifdef __STDC__
14534 # include <limits.h>
14535 #else
14536 # include <assert.h>
14537 #endif
14538
14539 #undef dlopen
14540
14541 /* Override any gcc2 internal prototype to avoid an error.  */
14542 #ifdef __cplusplus
14543 extern "C"
14544 {
14545 #endif
14546 /* We use char because int might match the return type of a gcc2
14547    builtin and then its argument prototype would still apply.  */
14548 char dlopen ();
14549 /* The GNU C library defines this for functions which it implements
14550     to always fail with ENOSYS.  Some functions are actually named
14551     something starting with __ and the normal name is an alias.  */
14552 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14553 choke me
14554 #else
14555 char (*f) () = dlopen;
14556 #endif
14557 #ifdef __cplusplus
14558 }
14559 #endif
14560
14561 int
14562 main ()
14563 {
14564 return f != dlopen;
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14571   (eval $ac_link) 2>conftest.er1
14572   ac_status=$?
14573   grep -v '^ *+' conftest.er1 >conftest.err
14574   rm -f conftest.er1
14575   cat conftest.err >&5
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); } &&
14578          { ac_try='test -z "$ac_cxx_werror_flag"
14579                          || test ! -s conftest.err'
14580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581   (eval $ac_try) 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); }; } &&
14585          { ac_try='test -s conftest$ac_exeext'
14586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587   (eval $ac_try) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); }; }; then
14591   ac_cv_func_dlopen=yes
14592 else
14593   echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596 ac_cv_func_dlopen=no
14597 fi
14598 rm -f conftest.err conftest.$ac_objext \
14599       conftest$ac_exeext conftest.$ac_ext
14600 fi
14601 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14602 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14603 if test $ac_cv_func_dlopen = yes; then
14604   lt_cv_dlopen="dlopen"
14605 else
14606   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14607 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   ac_check_lib_save_LIBS=$LIBS
14612 LIBS="-ldl  $LIBS"
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h.  */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h.  */
14619
14620 /* Override any gcc2 internal prototype to avoid an error.  */
14621 #ifdef __cplusplus
14622 extern "C"
14623 #endif
14624 /* We use char because int might match the return type of a gcc2
14625    builtin and then its argument prototype would still apply.  */
14626 char dlopen ();
14627 int
14628 main ()
14629 {
14630 dlopen ();
14631   ;
14632   return 0;
14633 }
14634 _ACEOF
14635 rm -f conftest.$ac_objext conftest$ac_exeext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14637   (eval $ac_link) 2>conftest.er1
14638   ac_status=$?
14639   grep -v '^ *+' conftest.er1 >conftest.err
14640   rm -f conftest.er1
14641   cat conftest.err >&5
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); } &&
14644          { ac_try='test -z "$ac_cxx_werror_flag"
14645                          || test ! -s conftest.err'
14646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647   (eval $ac_try) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; } &&
14651          { ac_try='test -s conftest$ac_exeext'
14652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653   (eval $ac_try) 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); }; }; then
14657   ac_cv_lib_dl_dlopen=yes
14658 else
14659   echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662 ac_cv_lib_dl_dlopen=no
14663 fi
14664 rm -f conftest.err conftest.$ac_objext \
14665       conftest$ac_exeext conftest.$ac_ext
14666 LIBS=$ac_check_lib_save_LIBS
14667 fi
14668 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14669 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14670 if test $ac_cv_lib_dl_dlopen = yes; then
14671   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14672 else
14673   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14674 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14675 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14676   echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678   ac_check_lib_save_LIBS=$LIBS
14679 LIBS="-lsvld  $LIBS"
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h.  */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h.  */
14686
14687 /* Override any gcc2 internal prototype to avoid an error.  */
14688 #ifdef __cplusplus
14689 extern "C"
14690 #endif
14691 /* We use char because int might match the return type of a gcc2
14692    builtin and then its argument prototype would still apply.  */
14693 char dlopen ();
14694 int
14695 main ()
14696 {
14697 dlopen ();
14698   ;
14699   return 0;
14700 }
14701 _ACEOF
14702 rm -f conftest.$ac_objext conftest$ac_exeext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14704   (eval $ac_link) 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } &&
14711          { ac_try='test -z "$ac_cxx_werror_flag"
14712                          || test ! -s conftest.err'
14713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714   (eval $ac_try) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); }; } &&
14718          { ac_try='test -s conftest$ac_exeext'
14719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720   (eval $ac_try) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; }; then
14724   ac_cv_lib_svld_dlopen=yes
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729 ac_cv_lib_svld_dlopen=no
14730 fi
14731 rm -f conftest.err conftest.$ac_objext \
14732       conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14734 fi
14735 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14736 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14737 if test $ac_cv_lib_svld_dlopen = yes; then
14738   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14739 else
14740   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14741 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14742 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14743   echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745   ac_check_lib_save_LIBS=$LIBS
14746 LIBS="-ldld  $LIBS"
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753
14754 /* Override any gcc2 internal prototype to avoid an error.  */
14755 #ifdef __cplusplus
14756 extern "C"
14757 #endif
14758 /* We use char because int might match the return type of a gcc2
14759    builtin and then its argument prototype would still apply.  */
14760 char dld_link ();
14761 int
14762 main ()
14763 {
14764 dld_link ();
14765   ;
14766   return 0;
14767 }
14768 _ACEOF
14769 rm -f conftest.$ac_objext conftest$ac_exeext
14770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14771   (eval $ac_link) 2>conftest.er1
14772   ac_status=$?
14773   grep -v '^ *+' conftest.er1 >conftest.err
14774   rm -f conftest.er1
14775   cat conftest.err >&5
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } &&
14778          { ac_try='test -z "$ac_cxx_werror_flag"
14779                          || test ! -s conftest.err'
14780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781   (eval $ac_try) 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); }; } &&
14785          { ac_try='test -s conftest$ac_exeext'
14786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787   (eval $ac_try) 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }; }; then
14791   ac_cv_lib_dld_dld_link=yes
14792 else
14793   echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14795
14796 ac_cv_lib_dld_dld_link=no
14797 fi
14798 rm -f conftest.err conftest.$ac_objext \
14799       conftest$ac_exeext conftest.$ac_ext
14800 LIBS=$ac_check_lib_save_LIBS
14801 fi
14802 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14803 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14804 if test $ac_cv_lib_dld_dld_link = yes; then
14805   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14806 fi
14807
14808
14809 fi
14810
14811
14812 fi
14813
14814
14815 fi
14816
14817
14818 fi
14819
14820
14821 fi
14822
14823     ;;
14824   esac
14825
14826   if test "x$lt_cv_dlopen" != xno; then
14827     enable_dlopen=yes
14828   else
14829     enable_dlopen=no
14830   fi
14831
14832   case $lt_cv_dlopen in
14833   dlopen)
14834     save_CPPFLAGS="$CPPFLAGS"
14835     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14836
14837     save_LDFLAGS="$LDFLAGS"
14838     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14839
14840     save_LIBS="$LIBS"
14841     LIBS="$lt_cv_dlopen_libs $LIBS"
14842
14843     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14844 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14845 if test "${lt_cv_dlopen_self+set}" = set; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848           if test "$cross_compiling" = yes; then :
14849   lt_cv_dlopen_self=cross
14850 else
14851   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14852   lt_status=$lt_dlunknown
14853   cat > conftest.$ac_ext <<EOF
14854 #line 14854 "configure"
14855 #include "confdefs.h"
14856
14857 #if HAVE_DLFCN_H
14858 #include <dlfcn.h>
14859 #endif
14860
14861 #include <stdio.h>
14862
14863 #ifdef RTLD_GLOBAL
14864 #  define LT_DLGLOBAL           RTLD_GLOBAL
14865 #else
14866 #  ifdef DL_GLOBAL
14867 #    define LT_DLGLOBAL         DL_GLOBAL
14868 #  else
14869 #    define LT_DLGLOBAL         0
14870 #  endif
14871 #endif
14872
14873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14874    find out it does not work in some platform. */
14875 #ifndef LT_DLLAZY_OR_NOW
14876 #  ifdef RTLD_LAZY
14877 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14878 #  else
14879 #    ifdef DL_LAZY
14880 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14881 #    else
14882 #      ifdef RTLD_NOW
14883 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14884 #      else
14885 #        ifdef DL_NOW
14886 #          define LT_DLLAZY_OR_NOW      DL_NOW
14887 #        else
14888 #          define LT_DLLAZY_OR_NOW      0
14889 #        endif
14890 #      endif
14891 #    endif
14892 #  endif
14893 #endif
14894
14895 #ifdef __cplusplus
14896 extern "C" void exit (int);
14897 #endif
14898
14899 void fnord() { int i=42;}
14900 int main ()
14901 {
14902   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14903   int status = $lt_dlunknown;
14904
14905   if (self)
14906     {
14907       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14908       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14909       /* dlclose (self); */
14910     }
14911
14912     exit (status);
14913 }
14914 EOF
14915   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14916   (eval $ac_link) 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14920     (./conftest; exit; ) 2>/dev/null
14921     lt_status=$?
14922     case x$lt_status in
14923       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14924       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14925       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14926     esac
14927   else :
14928     # compilation failed
14929     lt_cv_dlopen_self=no
14930   fi
14931 fi
14932 rm -fr conftest*
14933
14934
14935 fi
14936 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14937 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14938
14939     if test "x$lt_cv_dlopen_self" = xyes; then
14940       LDFLAGS="$LDFLAGS $link_static_flag"
14941       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14942 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14943 if test "${lt_cv_dlopen_self_static+set}" = set; then
14944   echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946           if test "$cross_compiling" = yes; then :
14947   lt_cv_dlopen_self_static=cross
14948 else
14949   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14950   lt_status=$lt_dlunknown
14951   cat > conftest.$ac_ext <<EOF
14952 #line 14952 "configure"
14953 #include "confdefs.h"
14954
14955 #if HAVE_DLFCN_H
14956 #include <dlfcn.h>
14957 #endif
14958
14959 #include <stdio.h>
14960
14961 #ifdef RTLD_GLOBAL
14962 #  define LT_DLGLOBAL           RTLD_GLOBAL
14963 #else
14964 #  ifdef DL_GLOBAL
14965 #    define LT_DLGLOBAL         DL_GLOBAL
14966 #  else
14967 #    define LT_DLGLOBAL         0
14968 #  endif
14969 #endif
14970
14971 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14972    find out it does not work in some platform. */
14973 #ifndef LT_DLLAZY_OR_NOW
14974 #  ifdef RTLD_LAZY
14975 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14976 #  else
14977 #    ifdef DL_LAZY
14978 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14979 #    else
14980 #      ifdef RTLD_NOW
14981 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14982 #      else
14983 #        ifdef DL_NOW
14984 #          define LT_DLLAZY_OR_NOW      DL_NOW
14985 #        else
14986 #          define LT_DLLAZY_OR_NOW      0
14987 #        endif
14988 #      endif
14989 #    endif
14990 #  endif
14991 #endif
14992
14993 #ifdef __cplusplus
14994 extern "C" void exit (int);
14995 #endif
14996
14997 void fnord() { int i=42;}
14998 int main ()
14999 {
15000   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15001   int status = $lt_dlunknown;
15002
15003   if (self)
15004     {
15005       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15006       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15007       /* dlclose (self); */
15008     }
15009
15010     exit (status);
15011 }
15012 EOF
15013   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15014   (eval $ac_link) 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15018     (./conftest; exit; ) 2>/dev/null
15019     lt_status=$?
15020     case x$lt_status in
15021       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15022       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15023       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15024     esac
15025   else :
15026     # compilation failed
15027     lt_cv_dlopen_self_static=no
15028   fi
15029 fi
15030 rm -fr conftest*
15031
15032
15033 fi
15034 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15035 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15036     fi
15037
15038     CPPFLAGS="$save_CPPFLAGS"
15039     LDFLAGS="$save_LDFLAGS"
15040     LIBS="$save_LIBS"
15041     ;;
15042   esac
15043
15044   case $lt_cv_dlopen_self in
15045   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15046   *) enable_dlopen_self=unknown ;;
15047   esac
15048
15049   case $lt_cv_dlopen_self_static in
15050   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15051   *) enable_dlopen_self_static=unknown ;;
15052   esac
15053 fi
15054
15055
15056 # The else clause should only fire when bootstrapping the
15057 # libtool distribution, otherwise you forgot to ship ltmain.sh
15058 # with your package, and you will get complaints that there are
15059 # no rules to generate ltmain.sh.
15060 if test -f "$ltmain"; then
15061   # See if we are running on zsh, and set the options which allow our commands through
15062   # without removal of \ escapes.
15063   if test -n "${ZSH_VERSION+set}" ; then
15064     setopt NO_GLOB_SUBST
15065   fi
15066   # Now quote all the things that may contain metacharacters while being
15067   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15068   # variables and quote the copies for generation of the libtool script.
15069   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15070     SED SHELL STRIP \
15071     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15072     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15073     deplibs_check_method reload_flag reload_cmds need_locks \
15074     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15075     lt_cv_sys_global_symbol_to_c_name_address \
15076     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15077     old_postinstall_cmds old_postuninstall_cmds \
15078     compiler_CXX \
15079     CC_CXX \
15080     LD_CXX \
15081     lt_prog_compiler_wl_CXX \
15082     lt_prog_compiler_pic_CXX \
15083     lt_prog_compiler_static_CXX \
15084     lt_prog_compiler_no_builtin_flag_CXX \
15085     export_dynamic_flag_spec_CXX \
15086     thread_safe_flag_spec_CXX \
15087     whole_archive_flag_spec_CXX \
15088     enable_shared_with_static_runtimes_CXX \
15089     old_archive_cmds_CXX \
15090     old_archive_from_new_cmds_CXX \
15091     predep_objects_CXX \
15092     postdep_objects_CXX \
15093     predeps_CXX \
15094     postdeps_CXX \
15095     compiler_lib_search_path_CXX \
15096     archive_cmds_CXX \
15097     archive_expsym_cmds_CXX \
15098     postinstall_cmds_CXX \
15099     postuninstall_cmds_CXX \
15100     old_archive_from_expsyms_cmds_CXX \
15101     allow_undefined_flag_CXX \
15102     no_undefined_flag_CXX \
15103     export_symbols_cmds_CXX \
15104     hardcode_libdir_flag_spec_CXX \
15105     hardcode_libdir_flag_spec_ld_CXX \
15106     hardcode_libdir_separator_CXX \
15107     hardcode_automatic_CXX \
15108     module_cmds_CXX \
15109     module_expsym_cmds_CXX \
15110     lt_cv_prog_compiler_c_o_CXX \
15111     exclude_expsyms_CXX \
15112     include_expsyms_CXX; do
15113
15114     case $var in
15115     old_archive_cmds_CXX | \
15116     old_archive_from_new_cmds_CXX | \
15117     archive_cmds_CXX | \
15118     archive_expsym_cmds_CXX | \
15119     module_cmds_CXX | \
15120     module_expsym_cmds_CXX | \
15121     old_archive_from_expsyms_cmds_CXX | \
15122     export_symbols_cmds_CXX | \
15123     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15124     postinstall_cmds | postuninstall_cmds | \
15125     old_postinstall_cmds | old_postuninstall_cmds | \
15126     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15127       # Double-quote double-evaled strings.
15128       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15129       ;;
15130     *)
15131       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15132       ;;
15133     esac
15134   done
15135
15136   case $lt_echo in
15137   *'\$0 --fallback-echo"')
15138     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15139     ;;
15140   esac
15141
15142 cfgfile="$ofile"
15143
15144   cat <<__EOF__ >> "$cfgfile"
15145 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15146
15147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15148
15149 # Shell to use when invoking shell scripts.
15150 SHELL=$lt_SHELL
15151
15152 # Whether or not to build shared libraries.
15153 build_libtool_libs=$enable_shared
15154
15155 # Whether or not to build static libraries.
15156 build_old_libs=$enable_static
15157
15158 # Whether or not to add -lc for building shared libraries.
15159 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15160
15161 # Whether or not to disallow shared libs when runtime libs are static
15162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15163
15164 # Whether or not to optimize for fast installation.
15165 fast_install=$enable_fast_install
15166
15167 # The host system.
15168 host_alias=$host_alias
15169 host=$host
15170 host_os=$host_os
15171
15172 # The build system.
15173 build_alias=$build_alias
15174 build=$build
15175 build_os=$build_os
15176
15177 # An echo program that does not interpret backslashes.
15178 echo=$lt_echo
15179
15180 # The archiver.
15181 AR=$lt_AR
15182 AR_FLAGS=$lt_AR_FLAGS
15183
15184 # A C compiler.
15185 LTCC=$lt_LTCC
15186
15187 # A language-specific compiler.
15188 CC=$lt_compiler_CXX
15189
15190 # Is the compiler the GNU C compiler?
15191 with_gcc=$GCC_CXX
15192
15193 # An ERE matcher.
15194 EGREP=$lt_EGREP
15195
15196 # The linker used to build libraries.
15197 LD=$lt_LD_CXX
15198
15199 # Whether we need hard or soft links.
15200 LN_S=$lt_LN_S
15201
15202 # A BSD-compatible nm program.
15203 NM=$lt_NM
15204
15205 # A symbol stripping program
15206 STRIP=$lt_STRIP
15207
15208 # Used to examine libraries when file_magic_cmd begins "file"
15209 MAGIC_CMD=$MAGIC_CMD
15210
15211 # Used on cygwin: DLL creation program.
15212 DLLTOOL="$DLLTOOL"
15213
15214 # Used on cygwin: object dumper.
15215 OBJDUMP="$OBJDUMP"
15216
15217 # Used on cygwin: assembler.
15218 AS="$AS"
15219
15220 # The name of the directory that contains temporary libtool files.
15221 objdir=$objdir
15222
15223 # How to create reloadable object files.
15224 reload_flag=$lt_reload_flag
15225 reload_cmds=$lt_reload_cmds
15226
15227 # How to pass a linker flag through the compiler.
15228 wl=$lt_lt_prog_compiler_wl_CXX
15229
15230 # Object file suffix (normally "o").
15231 objext="$ac_objext"
15232
15233 # Old archive suffix (normally "a").
15234 libext="$libext"
15235
15236 # Shared library suffix (normally ".so").
15237 shrext_cmds='$shrext_cmds'
15238
15239 # Executable file suffix (normally "").
15240 exeext="$exeext"
15241
15242 # Additional compiler flags for building library objects.
15243 pic_flag=$lt_lt_prog_compiler_pic_CXX
15244 pic_mode=$pic_mode
15245
15246 # What is the maximum length of a command?
15247 max_cmd_len=$lt_cv_sys_max_cmd_len
15248
15249 # Does compiler simultaneously support -c and -o options?
15250 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15251
15252 # Must we lock files when doing compilation?
15253 need_locks=$lt_need_locks
15254
15255 # Do we need the lib prefix for modules?
15256 need_lib_prefix=$need_lib_prefix
15257
15258 # Do we need a version for libraries?
15259 need_version=$need_version
15260
15261 # Whether dlopen is supported.
15262 dlopen_support=$enable_dlopen
15263
15264 # Whether dlopen of programs is supported.
15265 dlopen_self=$enable_dlopen_self
15266
15267 # Whether dlopen of statically linked programs is supported.
15268 dlopen_self_static=$enable_dlopen_self_static
15269
15270 # Compiler flag to prevent dynamic linking.
15271 link_static_flag=$lt_lt_prog_compiler_static_CXX
15272
15273 # Compiler flag to turn off builtin functions.
15274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15275
15276 # Compiler flag to allow reflexive dlopens.
15277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15278
15279 # Compiler flag to generate shared objects directly from archives.
15280 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15281
15282 # Compiler flag to generate thread-safe objects.
15283 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15284
15285 # Library versioning type.
15286 version_type=$version_type
15287
15288 # Format of library name prefix.
15289 libname_spec=$lt_libname_spec
15290
15291 # List of archive names.  First name is the real one, the rest are links.
15292 # The last name is the one that the linker finds with -lNAME.
15293 library_names_spec=$lt_library_names_spec
15294
15295 # The coded name of the library, if different from the real name.
15296 soname_spec=$lt_soname_spec
15297
15298 # Commands used to build and install an old-style archive.
15299 RANLIB=$lt_RANLIB
15300 old_archive_cmds=$lt_old_archive_cmds_CXX
15301 old_postinstall_cmds=$lt_old_postinstall_cmds
15302 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15303
15304 # Create an old-style archive from a shared archive.
15305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15306
15307 # Create a temporary old-style archive to link instead of a shared archive.
15308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15309
15310 # Commands used to build and install a shared archive.
15311 archive_cmds=$lt_archive_cmds_CXX
15312 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15313 postinstall_cmds=$lt_postinstall_cmds
15314 postuninstall_cmds=$lt_postuninstall_cmds
15315
15316 # Commands used to build a loadable module (assumed same as above if empty)
15317 module_cmds=$lt_module_cmds_CXX
15318 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15319
15320 # Commands to strip libraries.
15321 old_striplib=$lt_old_striplib
15322 striplib=$lt_striplib
15323
15324 # Dependencies to place before the objects being linked to create a
15325 # shared library.
15326 predep_objects=$lt_predep_objects_CXX
15327
15328 # Dependencies to place after the objects being linked to create a
15329 # shared library.
15330 postdep_objects=$lt_postdep_objects_CXX
15331
15332 # Dependencies to place before the objects being linked to create a
15333 # shared library.
15334 predeps=$lt_predeps_CXX
15335
15336 # Dependencies to place after the objects being linked to create a
15337 # shared library.
15338 postdeps=$lt_postdeps_CXX
15339
15340 # The library search path used internally by the compiler when linking
15341 # a shared library.
15342 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15343
15344 # Method to check whether dependent libraries are shared objects.
15345 deplibs_check_method=$lt_deplibs_check_method
15346
15347 # Command to use when deplibs_check_method == file_magic.
15348 file_magic_cmd=$lt_file_magic_cmd
15349
15350 # Flag that allows shared libraries with undefined symbols to be built.
15351 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15352
15353 # Flag that forces no undefined symbols.
15354 no_undefined_flag=$lt_no_undefined_flag_CXX
15355
15356 # Commands used to finish a libtool library installation in a directory.
15357 finish_cmds=$lt_finish_cmds
15358
15359 # Same as above, but a single script fragment to be evaled but not shown.
15360 finish_eval=$lt_finish_eval
15361
15362 # Take the output of nm and produce a listing of raw symbols and C names.
15363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15364
15365 # Transform the output of nm in a proper C declaration
15366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15367
15368 # Transform the output of nm in a C name address pair
15369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15370
15371 # This is the shared library runtime path variable.
15372 runpath_var=$runpath_var
15373
15374 # This is the shared library path variable.
15375 shlibpath_var=$shlibpath_var
15376
15377 # Is shlibpath searched before the hard-coded library search path?
15378 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15379
15380 # How to hardcode a shared library path into an executable.
15381 hardcode_action=$hardcode_action_CXX
15382
15383 # Whether we should hardcode library paths into libraries.
15384 hardcode_into_libs=$hardcode_into_libs
15385
15386 # Flag to hardcode \$libdir into a binary during linking.
15387 # This must work even if \$libdir does not exist.
15388 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15389
15390 # If ld is used when linking, flag to hardcode \$libdir into
15391 # a binary during linking. This must work even if \$libdir does
15392 # not exist.
15393 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15394
15395 # Whether we need a single -rpath flag with a separated argument.
15396 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15397
15398 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15399 # resulting binary.
15400 hardcode_direct=$hardcode_direct_CXX
15401
15402 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15403 # resulting binary.
15404 hardcode_minus_L=$hardcode_minus_L_CXX
15405
15406 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15407 # the resulting binary.
15408 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15409
15410 # Set to yes if building a shared library automatically hardcodes DIR into the library
15411 # and all subsequent libraries and executables linked against it.
15412 hardcode_automatic=$hardcode_automatic_CXX
15413
15414 # Variables whose values should be saved in libtool wrapper scripts and
15415 # restored at relink time.
15416 variables_saved_for_relink="$variables_saved_for_relink"
15417
15418 # Whether libtool must link a program against all its dependency libraries.
15419 link_all_deplibs=$link_all_deplibs_CXX
15420
15421 # Compile-time system search path for libraries
15422 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15423
15424 # Run-time system search path for libraries
15425 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15426
15427 # Fix the shell variable \$srcfile for the compiler.
15428 fix_srcfile_path="$fix_srcfile_path_CXX"
15429
15430 # Set to yes if exported symbols are required.
15431 always_export_symbols=$always_export_symbols_CXX
15432
15433 # The commands to list exported symbols.
15434 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15435
15436 # The commands to extract the exported symbol list from a shared archive.
15437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15438
15439 # Symbols that should not be listed in the preloaded symbols.
15440 exclude_expsyms=$lt_exclude_expsyms_CXX
15441
15442 # Symbols that must always be exported.
15443 include_expsyms=$lt_include_expsyms_CXX
15444
15445 # ### END LIBTOOL TAG CONFIG: $tagname
15446
15447 __EOF__
15448
15449
15450 else
15451   # If there is no Makefile yet, we rely on a make rule to execute
15452   # `config.status --recheck' to rerun these tests and create the
15453   # libtool script then.
15454   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15455   if test -f "$ltmain_in"; then
15456     test -f Makefile && make "$ltmain"
15457   fi
15458 fi
15459
15460
15461 ac_ext=c
15462 ac_cpp='$CPP $CPPFLAGS'
15463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15466
15467 CC=$lt_save_CC
15468 LDCXX=$LD
15469 LD=$lt_save_LD
15470 GCC=$lt_save_GCC
15471 with_gnu_ldcxx=$with_gnu_ld
15472 with_gnu_ld=$lt_save_with_gnu_ld
15473 lt_cv_path_LDCXX=$lt_cv_path_LD
15474 lt_cv_path_LD=$lt_save_path_LD
15475 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15476 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15477
15478         else
15479           tagname=""
15480         fi
15481         ;;
15482
15483       F77)
15484         if test -n "$F77" && test "X$F77" != "Xno"; then
15485
15486 ac_ext=f
15487 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15488 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15489 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15490
15491
15492 archive_cmds_need_lc_F77=no
15493 allow_undefined_flag_F77=
15494 always_export_symbols_F77=no
15495 archive_expsym_cmds_F77=
15496 export_dynamic_flag_spec_F77=
15497 hardcode_direct_F77=no
15498 hardcode_libdir_flag_spec_F77=
15499 hardcode_libdir_flag_spec_ld_F77=
15500 hardcode_libdir_separator_F77=
15501 hardcode_minus_L_F77=no
15502 hardcode_automatic_F77=no
15503 module_cmds_F77=
15504 module_expsym_cmds_F77=
15505 link_all_deplibs_F77=unknown
15506 old_archive_cmds_F77=$old_archive_cmds
15507 no_undefined_flag_F77=
15508 whole_archive_flag_spec_F77=
15509 enable_shared_with_static_runtimes_F77=no
15510
15511 # Source file extension for f77 test sources.
15512 ac_ext=f
15513
15514 # Object file extension for compiled f77 test sources.
15515 objext=o
15516 objext_F77=$objext
15517
15518 # Code to be used in simple compile tests
15519 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15520
15521 # Code to be used in simple link tests
15522 lt_simple_link_test_code="      program t\n      end\n"
15523
15524 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15525
15526 # If no C compiler was specified, use CC.
15527 LTCC=${LTCC-"$CC"}
15528
15529 # Allow CC to be a program name with arguments.
15530 compiler=$CC
15531
15532
15533 # save warnings/boilerplate of simple test code
15534 ac_outfile=conftest.$ac_objext
15535 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15537 _lt_compiler_boilerplate=`cat conftest.err`
15538 $rm conftest*
15539
15540 ac_outfile=conftest.$ac_objext
15541 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15543 _lt_linker_boilerplate=`cat conftest.err`
15544 $rm conftest*
15545
15546
15547 # Allow CC to be a program name with arguments.
15548 lt_save_CC="$CC"
15549 CC=${F77-"f77"}
15550 compiler=$CC
15551 compiler_F77=$CC
15552 for cc_temp in $compiler""; do
15553   case $cc_temp in
15554     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15555     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15556     \-*) ;;
15557     *) break;;
15558   esac
15559 done
15560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15561
15562
15563 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15564 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15565 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15566 echo "${ECHO_T}$can_build_shared" >&6
15567
15568 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15569 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15570 test "$can_build_shared" = "no" && enable_shared=no
15571
15572 # On AIX, shared libraries and static libraries use the same namespace, and
15573 # are all built from PIC.
15574 case "$host_os" in
15575 aix3*)
15576   test "$enable_shared" = yes && enable_static=no
15577   if test -n "$RANLIB"; then
15578     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15579     postinstall_cmds='$RANLIB $lib'
15580   fi
15581   ;;
15582 aix4* | aix5*)
15583   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15584     test "$enable_shared" = yes && enable_static=no
15585   fi
15586   ;;
15587 esac
15588 echo "$as_me:$LINENO: result: $enable_shared" >&5
15589 echo "${ECHO_T}$enable_shared" >&6
15590
15591 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15592 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15593 # Make sure either enable_shared or enable_static is yes.
15594 test "$enable_shared" = yes || enable_static=yes
15595 echo "$as_me:$LINENO: result: $enable_static" >&5
15596 echo "${ECHO_T}$enable_static" >&6
15597
15598 test "$ld_shlibs_F77" = no && can_build_shared=no
15599
15600 GCC_F77="$G77"
15601 LD_F77="$LD"
15602
15603 lt_prog_compiler_wl_F77=
15604 lt_prog_compiler_pic_F77=
15605 lt_prog_compiler_static_F77=
15606
15607 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15608 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15609
15610   if test "$GCC" = yes; then
15611     lt_prog_compiler_wl_F77='-Wl,'
15612     lt_prog_compiler_static_F77='-static'
15613
15614     case $host_os in
15615       aix*)
15616       # All AIX code is PIC.
15617       if test "$host_cpu" = ia64; then
15618         # AIX 5 now supports IA64 processor
15619         lt_prog_compiler_static_F77='-Bstatic'
15620       fi
15621       ;;
15622
15623     amigaos*)
15624       # FIXME: we need at least 68020 code to build shared libraries, but
15625       # adding the `-m68020' flag to GCC prevents building anything better,
15626       # like `-m68040'.
15627       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15628       ;;
15629
15630     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15631       # PIC is the default for these OSes.
15632       ;;
15633
15634     mingw* | pw32* | os2*)
15635       # This hack is so that the source file can tell whether it is being
15636       # built for inclusion in a dll (and should export symbols for example).
15637       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15638       ;;
15639
15640     darwin* | rhapsody*)
15641       # PIC is the default on this platform
15642       # Common symbols not allowed in MH_DYLIB files
15643       lt_prog_compiler_pic_F77='-fno-common'
15644       ;;
15645
15646     msdosdjgpp*)
15647       # Just because we use GCC doesn't mean we suddenly get shared libraries
15648       # on systems that don't support them.
15649       lt_prog_compiler_can_build_shared_F77=no
15650       enable_shared=no
15651       ;;
15652
15653     sysv4*MP*)
15654       if test -d /usr/nec; then
15655         lt_prog_compiler_pic_F77=-Kconform_pic
15656       fi
15657       ;;
15658
15659     hpux*)
15660       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15661       # not for PA HP-UX.
15662       case "$host_cpu" in
15663       hppa*64*|ia64*)
15664         # +Z the default
15665         ;;
15666       *)
15667         lt_prog_compiler_pic_F77='-fPIC'
15668         ;;
15669       esac
15670       ;;
15671
15672     *)
15673       lt_prog_compiler_pic_F77='-fPIC'
15674       ;;
15675     esac
15676   else
15677     # PORTME Check for flag to pass linker flags through the system compiler.
15678     case $host_os in
15679     aix*)
15680       lt_prog_compiler_wl_F77='-Wl,'
15681       if test "$host_cpu" = ia64; then
15682         # AIX 5 now supports IA64 processor
15683         lt_prog_compiler_static_F77='-Bstatic'
15684       else
15685         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15686       fi
15687       ;;
15688       darwin*)
15689         # PIC is the default on this platform
15690         # Common symbols not allowed in MH_DYLIB files
15691        case $cc_basename in
15692          xlc*)
15693          lt_prog_compiler_pic_F77='-qnocommon'
15694          lt_prog_compiler_wl_F77='-Wl,'
15695          ;;
15696        esac
15697        ;;
15698
15699     mingw* | pw32* | os2*)
15700       # This hack is so that the source file can tell whether it is being
15701       # built for inclusion in a dll (and should export symbols for example).
15702       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15703       ;;
15704
15705     hpux9* | hpux10* | hpux11*)
15706       lt_prog_compiler_wl_F77='-Wl,'
15707       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15708       # not for PA HP-UX.
15709       case "$host_cpu" in
15710       hppa*64*|ia64*)
15711         # +Z the default
15712         ;;
15713       *)
15714         lt_prog_compiler_pic_F77='+Z'
15715         ;;
15716       esac
15717       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15718       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15719       ;;
15720
15721     irix5* | irix6* | nonstopux*)
15722       lt_prog_compiler_wl_F77='-Wl,'
15723       # PIC (with -KPIC) is the default.
15724       lt_prog_compiler_static_F77='-non_shared'
15725       ;;
15726
15727     newsos6)
15728       lt_prog_compiler_pic_F77='-KPIC'
15729       lt_prog_compiler_static_F77='-Bstatic'
15730       ;;
15731
15732     linux*)
15733       case $cc_basename in
15734       icc* | ecc*)
15735         lt_prog_compiler_wl_F77='-Wl,'
15736         lt_prog_compiler_pic_F77='-KPIC'
15737         lt_prog_compiler_static_F77='-static'
15738         ;;
15739       pgcc* | pgf77* | pgf90*)
15740         # Portland Group compilers (*not* the Pentium gcc compiler,
15741         # which looks to be a dead project)
15742         lt_prog_compiler_wl_F77='-Wl,'
15743         lt_prog_compiler_pic_F77='-fpic'
15744         lt_prog_compiler_static_F77='-static'
15745         ;;
15746       ccc*)
15747         lt_prog_compiler_wl_F77='-Wl,'
15748         # All Alpha code is PIC.
15749         lt_prog_compiler_static_F77='-non_shared'
15750         ;;
15751       esac
15752       ;;
15753
15754     osf3* | osf4* | osf5*)
15755       lt_prog_compiler_wl_F77='-Wl,'
15756       # All OSF/1 code is PIC.
15757       lt_prog_compiler_static_F77='-non_shared'
15758       ;;
15759
15760     sco3.2v5*)
15761       lt_prog_compiler_pic_F77='-Kpic'
15762       lt_prog_compiler_static_F77='-dn'
15763       ;;
15764
15765     solaris*)
15766       lt_prog_compiler_pic_F77='-KPIC'
15767       lt_prog_compiler_static_F77='-Bstatic'
15768       case $cc_basename in
15769       f77* | f90* | f95*)
15770         lt_prog_compiler_wl_F77='-Qoption ld ';;
15771       *)
15772         lt_prog_compiler_wl_F77='-Wl,';;
15773       esac
15774       ;;
15775
15776     sunos4*)
15777       lt_prog_compiler_wl_F77='-Qoption ld '
15778       lt_prog_compiler_pic_F77='-PIC'
15779       lt_prog_compiler_static_F77='-Bstatic'
15780       ;;
15781
15782     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15783       lt_prog_compiler_wl_F77='-Wl,'
15784       lt_prog_compiler_pic_F77='-KPIC'
15785       lt_prog_compiler_static_F77='-Bstatic'
15786       ;;
15787
15788     sysv4*MP*)
15789       if test -d /usr/nec ;then
15790         lt_prog_compiler_pic_F77='-Kconform_pic'
15791         lt_prog_compiler_static_F77='-Bstatic'
15792       fi
15793       ;;
15794
15795     unicos*)
15796       lt_prog_compiler_wl_F77='-Wl,'
15797       lt_prog_compiler_can_build_shared_F77=no
15798       ;;
15799
15800     uts4*)
15801       lt_prog_compiler_pic_F77='-pic'
15802       lt_prog_compiler_static_F77='-Bstatic'
15803       ;;
15804
15805     *)
15806       lt_prog_compiler_can_build_shared_F77=no
15807       ;;
15808     esac
15809   fi
15810
15811 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15812 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15813
15814 #
15815 # Check to make sure the PIC flag actually works.
15816 #
15817 if test -n "$lt_prog_compiler_pic_F77"; then
15818
15819 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15820 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15821 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824   lt_prog_compiler_pic_works_F77=no
15825   ac_outfile=conftest.$ac_objext
15826    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15827    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15828    # Insert the option either (1) after the last *FLAGS variable, or
15829    # (2) before a word containing "conftest.", or (3) at the end.
15830    # Note that $ac_compile itself does not contain backslashes and begins
15831    # with a dollar sign (not a hyphen), so the echo should work correctly.
15832    # The option is referenced via a variable to avoid confusing sed.
15833    lt_compile=`echo "$ac_compile" | $SED \
15834    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15836    -e 's:$: $lt_compiler_flag:'`
15837    (eval echo "\"\$as_me:15837: $lt_compile\"" >&5)
15838    (eval "$lt_compile" 2>conftest.err)
15839    ac_status=$?
15840    cat conftest.err >&5
15841    echo "$as_me:15841: \$? = $ac_status" >&5
15842    if (exit $ac_status) && test -s "$ac_outfile"; then
15843      # The compiler can only warn and ignore the option if not recognized
15844      # So say no if there are warnings other than the usual output.
15845      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15846      $SED '/^$/d' conftest.err >conftest.er2
15847      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15848        lt_prog_compiler_pic_works_F77=yes
15849      fi
15850    fi
15851    $rm conftest*
15852
15853 fi
15854 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15855 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15856
15857 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15858     case $lt_prog_compiler_pic_F77 in
15859      "" | " "*) ;;
15860      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15861      esac
15862 else
15863     lt_prog_compiler_pic_F77=
15864      lt_prog_compiler_can_build_shared_F77=no
15865 fi
15866
15867 fi
15868 case "$host_os" in
15869   # For platforms which do not support PIC, -DPIC is meaningless:
15870   *djgpp*)
15871     lt_prog_compiler_pic_F77=
15872     ;;
15873   *)
15874     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15875     ;;
15876 esac
15877
15878 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15880 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15881   echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883   lt_cv_prog_compiler_c_o_F77=no
15884    $rm -r conftest 2>/dev/null
15885    mkdir conftest
15886    cd conftest
15887    mkdir out
15888    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15889
15890    lt_compiler_flag="-o out/conftest2.$ac_objext"
15891    # Insert the option either (1) after the last *FLAGS variable, or
15892    # (2) before a word containing "conftest.", or (3) at the end.
15893    # Note that $ac_compile itself does not contain backslashes and begins
15894    # with a dollar sign (not a hyphen), so the echo should work correctly.
15895    lt_compile=`echo "$ac_compile" | $SED \
15896    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15898    -e 's:$: $lt_compiler_flag:'`
15899    (eval echo "\"\$as_me:15899: $lt_compile\"" >&5)
15900    (eval "$lt_compile" 2>out/conftest.err)
15901    ac_status=$?
15902    cat out/conftest.err >&5
15903    echo "$as_me:15903: \$? = $ac_status" >&5
15904    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15905    then
15906      # The compiler can only warn and ignore the option if not recognized
15907      # So say no if there are warnings
15908      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15909      $SED '/^$/d' out/conftest.err >out/conftest.er2
15910      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15911        lt_cv_prog_compiler_c_o_F77=yes
15912      fi
15913    fi
15914    chmod u+w .
15915    $rm conftest*
15916    # SGI C++ compiler will create directory out/ii_files/ for
15917    # template instantiation
15918    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15919    $rm out/* && rmdir out
15920    cd ..
15921    rmdir conftest
15922    $rm conftest*
15923
15924 fi
15925 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15927
15928
15929 hard_links="nottested"
15930 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15931   # do not overwrite the value of need_locks provided by the user
15932   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15933 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15934   hard_links=yes
15935   $rm conftest*
15936   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15937   touch conftest.a
15938   ln conftest.a conftest.b 2>&5 || hard_links=no
15939   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15940   echo "$as_me:$LINENO: result: $hard_links" >&5
15941 echo "${ECHO_T}$hard_links" >&6
15942   if test "$hard_links" = no; then
15943     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15944 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15945     need_locks=warn
15946   fi
15947 else
15948   need_locks=no
15949 fi
15950
15951 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15952 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15953
15954   runpath_var=
15955   allow_undefined_flag_F77=
15956   enable_shared_with_static_runtimes_F77=no
15957   archive_cmds_F77=
15958   archive_expsym_cmds_F77=
15959   old_archive_From_new_cmds_F77=
15960   old_archive_from_expsyms_cmds_F77=
15961   export_dynamic_flag_spec_F77=
15962   whole_archive_flag_spec_F77=
15963   thread_safe_flag_spec_F77=
15964   hardcode_libdir_flag_spec_F77=
15965   hardcode_libdir_flag_spec_ld_F77=
15966   hardcode_libdir_separator_F77=
15967   hardcode_direct_F77=no
15968   hardcode_minus_L_F77=no
15969   hardcode_shlibpath_var_F77=unsupported
15970   link_all_deplibs_F77=unknown
15971   hardcode_automatic_F77=no
15972   module_cmds_F77=
15973   module_expsym_cmds_F77=
15974   always_export_symbols_F77=no
15975   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15976   # include_expsyms should be a list of space-separated symbols to be *always*
15977   # included in the symbol list
15978   include_expsyms_F77=
15979   # exclude_expsyms can be an extended regexp of symbols to exclude
15980   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15981   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15982   # as well as any symbol that contains `d'.
15983   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15984   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15985   # platforms (ab)use it in PIC code, but their linkers get confused if
15986   # the symbol is explicitly referenced.  Since portable code cannot
15987   # rely on this symbol name, it's probably fine to never include it in
15988   # preloaded symbol tables.
15989   extract_expsyms_cmds=
15990   # Just being paranoid about ensuring that cc_basename is set.
15991   for cc_temp in $compiler""; do
15992   case $cc_temp in
15993     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15994     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15995     \-*) ;;
15996     *) break;;
15997   esac
15998 done
15999 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16000
16001   case $host_os in
16002   cygwin* | mingw* | pw32*)
16003     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16004     # When not using gcc, we currently assume that we are using
16005     # Microsoft Visual C++.
16006     if test "$GCC" != yes; then
16007       with_gnu_ld=no
16008     fi
16009     ;;
16010   openbsd*)
16011     with_gnu_ld=no
16012     ;;
16013   esac
16014
16015   ld_shlibs_F77=yes
16016   if test "$with_gnu_ld" = yes; then
16017     # If archive_cmds runs LD, not CC, wlarc should be empty
16018     wlarc='${wl}'
16019
16020     # Set some defaults for GNU ld with shared library support. These
16021     # are reset later if shared libraries are not supported. Putting them
16022     # here allows them to be overridden if necessary.
16023     runpath_var=LD_RUN_PATH
16024     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16025     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16026     # ancient GNU ld didn't support --whole-archive et. al.
16027     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16028         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16029       else
16030         whole_archive_flag_spec_F77=
16031     fi
16032     supports_anon_versioning=no
16033     case `$LD -v 2>/dev/null` in
16034       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16035       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16036       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16037       *\ 2.11.*) ;; # other 2.11 versions
16038       *) supports_anon_versioning=yes ;;
16039     esac
16040
16041     # See if GNU ld supports shared libraries.
16042     case $host_os in
16043     aix3* | aix4* | aix5*)
16044       # On AIX/PPC, the GNU linker is very broken
16045       if test "$host_cpu" != ia64; then
16046         ld_shlibs_F77=no
16047         cat <<EOF 1>&2
16048
16049 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16050 *** to be unable to reliably create shared libraries on AIX.
16051 *** Therefore, libtool is disabling shared libraries support.  If you
16052 *** really care for shared libraries, you may want to modify your PATH
16053 *** so that a non-GNU linker is found, and then restart.
16054
16055 EOF
16056       fi
16057       ;;
16058
16059     amigaos*)
16060       archive_cmds_F77='$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)'
16061       hardcode_libdir_flag_spec_F77='-L$libdir'
16062       hardcode_minus_L_F77=yes
16063
16064       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16065       # that the semantics of dynamic libraries on AmigaOS, at least up
16066       # to version 4, is to share data among multiple programs linked
16067       # with the same dynamic library.  Since this doesn't match the
16068       # behavior of shared libraries on other platforms, we can't use
16069       # them.
16070       ld_shlibs_F77=no
16071       ;;
16072
16073     beos*)
16074       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16075         allow_undefined_flag_F77=unsupported
16076         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16077         # support --undefined.  This deserves some investigation.  FIXME
16078         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16079       else
16080         ld_shlibs_F77=no
16081       fi
16082       ;;
16083
16084     cygwin* | mingw* | pw32*)
16085       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16086       # as there is no search path for DLLs.
16087       hardcode_libdir_flag_spec_F77='-L$libdir'
16088       allow_undefined_flag_F77=unsupported
16089       always_export_symbols_F77=no
16090       enable_shared_with_static_runtimes_F77=yes
16091       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16092
16093       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16094         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16095         # If the export-symbols file already is a .def file (1st line
16096         # is EXPORTS), use it as is; otherwise, prepend...
16097         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16098           cp $export_symbols $output_objdir/$soname.def;
16099         else
16100           echo EXPORTS > $output_objdir/$soname.def;
16101           cat $export_symbols >> $output_objdir/$soname.def;
16102         fi~
16103         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16104       else
16105         ld_shlibs_F77=no
16106       fi
16107       ;;
16108
16109     linux*)
16110       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16111         tmp_addflag=
16112         case $cc_basename,$host_cpu in
16113         pgcc*)                          # Portland Group C compiler
16114           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16115           tmp_addflag=' $pic_flag'
16116           ;;
16117         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16118           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16119           tmp_addflag=' $pic_flag -Mnomain' ;;
16120         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16121           tmp_addflag=' -i_dynamic' ;;
16122         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16123           tmp_addflag=' -i_dynamic -nofor_main' ;;
16124         ifc* | ifort*)                  # Intel Fortran compiler
16125           tmp_addflag=' -nofor_main' ;;
16126         esac
16127         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16128
16129         if test $supports_anon_versioning = yes; then
16130           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16131   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16132   $echo "local: *; };" >> $output_objdir/$libname.ver~
16133           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16134         fi
16135       else
16136         ld_shlibs_F77=no
16137       fi
16138       ;;
16139
16140     netbsd*)
16141       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16142         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16143         wlarc=
16144       else
16145         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16146         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16147       fi
16148       ;;
16149
16150     solaris* | sysv5*)
16151       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16152         ld_shlibs_F77=no
16153         cat <<EOF 1>&2
16154
16155 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16156 *** create shared libraries on Solaris systems.  Therefore, libtool
16157 *** is disabling shared libraries support.  We urge you to upgrade GNU
16158 *** binutils to release 2.9.1 or newer.  Another option is to modify
16159 *** your PATH or compiler configuration so that the native linker is
16160 *** used, and then restart.
16161
16162 EOF
16163       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16164         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16166       else
16167         ld_shlibs_F77=no
16168       fi
16169       ;;
16170
16171     sunos4*)
16172       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16173       wlarc=
16174       hardcode_direct_F77=yes
16175       hardcode_shlibpath_var_F77=no
16176       ;;
16177
16178     *)
16179       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16180         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16181         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16182       else
16183         ld_shlibs_F77=no
16184       fi
16185       ;;
16186     esac
16187
16188     if test "$ld_shlibs_F77" = no; then
16189       runpath_var=
16190       hardcode_libdir_flag_spec_F77=
16191       export_dynamic_flag_spec_F77=
16192       whole_archive_flag_spec_F77=
16193     fi
16194   else
16195     # PORTME fill in a description of your system's linker (not GNU ld)
16196     case $host_os in
16197     aix3*)
16198       allow_undefined_flag_F77=unsupported
16199       always_export_symbols_F77=yes
16200       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16201       # Note: this linker hardcodes the directories in LIBPATH if there
16202       # are no directories specified by -L.
16203       hardcode_minus_L_F77=yes
16204       if test "$GCC" = yes && test -z "$link_static_flag"; then
16205         # Neither direct hardcoding nor static linking is supported with a
16206         # broken collect2.
16207         hardcode_direct_F77=unsupported
16208       fi
16209       ;;
16210
16211     aix4* | aix5*)
16212       if test "$host_cpu" = ia64; then
16213         # On IA64, the linker does run time linking by default, so we don't
16214         # have to do anything special.
16215         aix_use_runtimelinking=no
16216         exp_sym_flag='-Bexport'
16217         no_entry_flag=""
16218       else
16219         # If we're using GNU nm, then we don't want the "-C" option.
16220         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16221         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16222           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16223         else
16224           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16225         fi
16226         aix_use_runtimelinking=no
16227
16228         # Test if we are trying to use run time linking or normal
16229         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16230         # need to do runtime linking.
16231         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16232           for ld_flag in $LDFLAGS; do
16233           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16234             aix_use_runtimelinking=yes
16235             break
16236           fi
16237           done
16238         esac
16239
16240         exp_sym_flag='-bexport'
16241         no_entry_flag='-bnoentry'
16242       fi
16243
16244       # When large executables or shared objects are built, AIX ld can
16245       # have problems creating the table of contents.  If linking a library
16246       # or program results in "error TOC overflow" add -mminimal-toc to
16247       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16248       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16249
16250       archive_cmds_F77=''
16251       hardcode_direct_F77=yes
16252       hardcode_libdir_separator_F77=':'
16253       link_all_deplibs_F77=yes
16254
16255       if test "$GCC" = yes; then
16256         case $host_os in aix4.[012]|aix4.[012].*)
16257         # We only want to do this on AIX 4.2 and lower, the check
16258         # below for broken collect2 doesn't work under 4.3+
16259           collect2name=`${CC} -print-prog-name=collect2`
16260           if test -f "$collect2name" && \
16261            strings "$collect2name" | grep resolve_lib_name >/dev/null
16262           then
16263           # We have reworked collect2
16264           hardcode_direct_F77=yes
16265           else
16266           # We have old collect2
16267           hardcode_direct_F77=unsupported
16268           # It fails to find uninstalled libraries when the uninstalled
16269           # path is not listed in the libpath.  Setting hardcode_minus_L
16270           # to unsupported forces relinking
16271           hardcode_minus_L_F77=yes
16272           hardcode_libdir_flag_spec_F77='-L$libdir'
16273           hardcode_libdir_separator_F77=
16274           fi
16275         esac
16276         shared_flag='-shared'
16277         if test "$aix_use_runtimelinking" = yes; then
16278           shared_flag="$shared_flag "'${wl}-G'
16279         fi
16280       else
16281         # not using gcc
16282         if test "$host_cpu" = ia64; then
16283         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16284         # chokes on -Wl,-G. The following line is correct:
16285           shared_flag='-G'
16286         else
16287         if test "$aix_use_runtimelinking" = yes; then
16288             shared_flag='${wl}-G'
16289           else
16290             shared_flag='${wl}-bM:SRE'
16291         fi
16292         fi
16293       fi
16294
16295       # It seems that -bexpall does not export symbols beginning with
16296       # underscore (_), so it is better to generate a list of symbols to export.
16297       always_export_symbols_F77=yes
16298       if test "$aix_use_runtimelinking" = yes; then
16299         # Warning - without using the other runtime loading flags (-brtl),
16300         # -berok will link without error, but may produce a broken library.
16301         allow_undefined_flag_F77='-berok'
16302        # Determine the default libpath from the value encoded in an empty executable.
16303        cat >conftest.$ac_ext <<_ACEOF
16304       program main
16305
16306       end
16307 _ACEOF
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16310   (eval $ac_link) 2>conftest.er1
16311   ac_status=$?
16312   grep -v '^ *+' conftest.er1 >conftest.err
16313   rm -f conftest.er1
16314   cat conftest.err >&5
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); } &&
16317          { ac_try='test -z "$ac_f77_werror_flag"
16318                          || test ! -s conftest.err'
16319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320   (eval $ac_try) 2>&5
16321   ac_status=$?
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); }; } &&
16324          { ac_try='test -s conftest$ac_exeext'
16325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326   (eval $ac_try) 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; }; then
16330
16331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16332 }'`
16333 # Check for a 64-bit object if we didn't find anything.
16334 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; }
16335 }'`; fi
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 fi
16341 rm -f conftest.err conftest.$ac_objext \
16342       conftest$ac_exeext conftest.$ac_ext
16343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16344
16345        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16346         archive_expsym_cmds_F77="\$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"
16347        else
16348         if test "$host_cpu" = ia64; then
16349           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16350           allow_undefined_flag_F77="-z nodefs"
16351           archive_expsym_cmds_F77="\$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"
16352         else
16353          # Determine the default libpath from the value encoded in an empty executable.
16354          cat >conftest.$ac_ext <<_ACEOF
16355       program main
16356
16357       end
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361   (eval $ac_link) 2>conftest.er1
16362   ac_status=$?
16363   grep -v '^ *+' conftest.er1 >conftest.err
16364   rm -f conftest.er1
16365   cat conftest.err >&5
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); } &&
16368          { ac_try='test -z "$ac_f77_werror_flag"
16369                          || test ! -s conftest.err'
16370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371   (eval $ac_try) 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); }; } &&
16375          { ac_try='test -s conftest$ac_exeext'
16376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377   (eval $ac_try) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; }; then
16381
16382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16383 }'`
16384 # Check for a 64-bit object if we didn't find anything.
16385 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; }
16386 }'`; fi
16387 else
16388   echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16390
16391 fi
16392 rm -f conftest.err conftest.$ac_objext \
16393       conftest$ac_exeext conftest.$ac_ext
16394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16395
16396          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16397           # Warning - without using the other run time loading flags,
16398           # -berok will link without error, but may produce a broken library.
16399           no_undefined_flag_F77=' ${wl}-bernotok'
16400           allow_undefined_flag_F77=' ${wl}-berok'
16401           # -bexpall does not export symbols beginning with underscore (_)
16402           always_export_symbols_F77=yes
16403           # Exported symbols can be pulled into shared objects from archives
16404           whole_archive_flag_spec_F77=' '
16405           archive_cmds_need_lc_F77=yes
16406           # This is similar to how AIX traditionally builds it's shared libraries.
16407           archive_expsym_cmds_F77="\$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'
16408         fi
16409       fi
16410       ;;
16411
16412     amigaos*)
16413       archive_cmds_F77='$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)'
16414       hardcode_libdir_flag_spec_F77='-L$libdir'
16415       hardcode_minus_L_F77=yes
16416       # see comment about different semantics on the GNU ld section
16417       ld_shlibs_F77=no
16418       ;;
16419
16420     bsdi[45]*)
16421       export_dynamic_flag_spec_F77=-rdynamic
16422       ;;
16423
16424     cygwin* | mingw* | pw32*)
16425       # When not using gcc, we currently assume that we are using
16426       # Microsoft Visual C++.
16427       # hardcode_libdir_flag_spec is actually meaningless, as there is
16428       # no search path for DLLs.
16429       hardcode_libdir_flag_spec_F77=' '
16430       allow_undefined_flag_F77=unsupported
16431       # Tell ltmain to make .lib files, not .a files.
16432       libext=lib
16433       # Tell ltmain to make .dll files, not .so files.
16434       shrext_cmds=".dll"
16435       # FIXME: Setting linknames here is a bad hack.
16436       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16437       # The linker will automatically build a .lib file if we build a DLL.
16438       old_archive_From_new_cmds_F77='true'
16439       # FIXME: Should let the user specify the lib program.
16440       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16441       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16442       enable_shared_with_static_runtimes_F77=yes
16443       ;;
16444
16445     darwin* | rhapsody*)
16446       case "$host_os" in
16447         rhapsody* | darwin1.[012])
16448          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16449          ;;
16450        *) # Darwin 1.3 on
16451          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16452            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16453          else
16454            case ${MACOSX_DEPLOYMENT_TARGET} in
16455              10.[012])
16456                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16457                ;;
16458              10.*)
16459                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16460                ;;
16461            esac
16462          fi
16463          ;;
16464       esac
16465       archive_cmds_need_lc_F77=no
16466       hardcode_direct_F77=no
16467       hardcode_automatic_F77=yes
16468       hardcode_shlibpath_var_F77=unsupported
16469       whole_archive_flag_spec_F77=''
16470       link_all_deplibs_F77=yes
16471     if test "$GCC" = yes ; then
16472         output_verbose_link_cmd='echo'
16473         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16474       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16475       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16476       archive_expsym_cmds_F77='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}'
16477       module_expsym_cmds_F77='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}'
16478     else
16479       case $cc_basename in
16480         xlc*)
16481          output_verbose_link_cmd='echo'
16482          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16483          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16484           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16485          archive_expsym_cmds_F77='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}'
16486           module_expsym_cmds_F77='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}'
16487           ;;
16488        *)
16489          ld_shlibs_F77=no
16490           ;;
16491       esac
16492     fi
16493       ;;
16494
16495     dgux*)
16496       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16497       hardcode_libdir_flag_spec_F77='-L$libdir'
16498       hardcode_shlibpath_var_F77=no
16499       ;;
16500
16501     freebsd1*)
16502       ld_shlibs_F77=no
16503       ;;
16504
16505     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16506     # support.  Future versions do this automatically, but an explicit c++rt0.o
16507     # does not break anything, and helps significantly (at the cost of a little
16508     # extra space).
16509     freebsd2.2*)
16510       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16511       hardcode_libdir_flag_spec_F77='-R$libdir'
16512       hardcode_direct_F77=yes
16513       hardcode_shlibpath_var_F77=no
16514       ;;
16515
16516     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16517     freebsd2*)
16518       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16519       hardcode_direct_F77=yes
16520       hardcode_minus_L_F77=yes
16521       hardcode_shlibpath_var_F77=no
16522       ;;
16523
16524     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16525     freebsd* | kfreebsd*-gnu | dragonfly*)
16526       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16527       hardcode_libdir_flag_spec_F77='-R$libdir'
16528       hardcode_direct_F77=yes
16529       hardcode_shlibpath_var_F77=no
16530       ;;
16531
16532     hpux9*)
16533       if test "$GCC" = yes; then
16534         archive_cmds_F77='$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'
16535       else
16536         archive_cmds_F77='$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'
16537       fi
16538       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16539       hardcode_libdir_separator_F77=:
16540       hardcode_direct_F77=yes
16541
16542       # hardcode_minus_L: Not really in the search PATH,
16543       # but as the default location of the library.
16544       hardcode_minus_L_F77=yes
16545       export_dynamic_flag_spec_F77='${wl}-E'
16546       ;;
16547
16548     hpux10* | hpux11*)
16549       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16550         case "$host_cpu" in
16551         hppa*64*|ia64*)
16552           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16553           ;;
16554         *)
16555           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16556           ;;
16557         esac
16558       else
16559         case "$host_cpu" in
16560         hppa*64*|ia64*)
16561           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16562           ;;
16563         *)
16564           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16565           ;;
16566         esac
16567       fi
16568       if test "$with_gnu_ld" = no; then
16569         case "$host_cpu" in
16570         hppa*64*)
16571           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16572           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16573           hardcode_libdir_separator_F77=:
16574           hardcode_direct_F77=no
16575           hardcode_shlibpath_var_F77=no
16576           ;;
16577         ia64*)
16578           hardcode_libdir_flag_spec_F77='-L$libdir'
16579           hardcode_direct_F77=no
16580           hardcode_shlibpath_var_F77=no
16581
16582           # hardcode_minus_L: Not really in the search PATH,
16583           # but as the default location of the library.
16584           hardcode_minus_L_F77=yes
16585           ;;
16586         *)
16587           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16588           hardcode_libdir_separator_F77=:
16589           hardcode_direct_F77=yes
16590           export_dynamic_flag_spec_F77='${wl}-E'
16591
16592           # hardcode_minus_L: Not really in the search PATH,
16593           # but as the default location of the library.
16594           hardcode_minus_L_F77=yes
16595           ;;
16596         esac
16597       fi
16598       ;;
16599
16600     irix5* | irix6* | nonstopux*)
16601       if test "$GCC" = yes; then
16602         archive_cmds_F77='$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'
16603       else
16604         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16605         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16606       fi
16607       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16608       hardcode_libdir_separator_F77=:
16609       link_all_deplibs_F77=yes
16610       ;;
16611
16612     netbsd*)
16613       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16614         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16615       else
16616         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16617       fi
16618       hardcode_libdir_flag_spec_F77='-R$libdir'
16619       hardcode_direct_F77=yes
16620       hardcode_shlibpath_var_F77=no
16621       ;;
16622
16623     newsos6)
16624       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625       hardcode_direct_F77=yes
16626       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16627       hardcode_libdir_separator_F77=:
16628       hardcode_shlibpath_var_F77=no
16629       ;;
16630
16631     openbsd*)
16632       hardcode_direct_F77=yes
16633       hardcode_shlibpath_var_F77=no
16634       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16635         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16636         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16637         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16638         export_dynamic_flag_spec_F77='${wl}-E'
16639       else
16640        case $host_os in
16641          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16642            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16643            hardcode_libdir_flag_spec_F77='-R$libdir'
16644            ;;
16645          *)
16646            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16647            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16648            ;;
16649        esac
16650       fi
16651       ;;
16652
16653     os2*)
16654       hardcode_libdir_flag_spec_F77='-L$libdir'
16655       hardcode_minus_L_F77=yes
16656       allow_undefined_flag_F77=unsupported
16657       archive_cmds_F77='$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'
16658       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16659       ;;
16660
16661     osf3*)
16662       if test "$GCC" = yes; then
16663         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16664         archive_cmds_F77='$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'
16665       else
16666         allow_undefined_flag_F77=' -expect_unresolved \*'
16667         archive_cmds_F77='$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'
16668       fi
16669       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16670       hardcode_libdir_separator_F77=:
16671       ;;
16672
16673     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16674       if test "$GCC" = yes; then
16675         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16676         archive_cmds_F77='$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'
16677         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16678       else
16679         allow_undefined_flag_F77=' -expect_unresolved \*'
16680         archive_cmds_F77='$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'
16681         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16682         $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'
16683
16684         # Both c and cxx compiler support -rpath directly
16685         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16686       fi
16687       hardcode_libdir_separator_F77=:
16688       ;;
16689
16690     sco3.2v5*)
16691       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16692       hardcode_shlibpath_var_F77=no
16693       export_dynamic_flag_spec_F77='${wl}-Bexport'
16694       runpath_var=LD_RUN_PATH
16695       hardcode_runpath_var=yes
16696       ;;
16697
16698     solaris*)
16699       no_undefined_flag_F77=' -z text'
16700       if test "$GCC" = yes; then
16701         wlarc='${wl}'
16702         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16703         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16704           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16705       else
16706         wlarc=''
16707         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16708         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16709         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16710       fi
16711       hardcode_libdir_flag_spec_F77='-R$libdir'
16712       hardcode_shlibpath_var_F77=no
16713       case $host_os in
16714       solaris2.[0-5] | solaris2.[0-5].*) ;;
16715       *)
16716         # The compiler driver will combine linker options so we
16717         # cannot just pass the convience library names through
16718         # without $wl, iff we do not link with $LD.
16719         # Luckily, gcc supports the same syntax we need for Sun Studio.
16720         # Supported since Solaris 2.6 (maybe 2.5.1?)
16721         case $wlarc in
16722         '')
16723           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16724         *)
16725           whole_archive_flag_spec_F77='${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' ;;
16726         esac ;;
16727       esac
16728       link_all_deplibs_F77=yes
16729       ;;
16730
16731     sunos4*)
16732       if test "x$host_vendor" = xsequent; then
16733         # Use $CC to link under sequent, because it throws in some extra .o
16734         # files that make .init and .fini sections work.
16735         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16736       else
16737         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16738       fi
16739       hardcode_libdir_flag_spec_F77='-L$libdir'
16740       hardcode_direct_F77=yes
16741       hardcode_minus_L_F77=yes
16742       hardcode_shlibpath_var_F77=no
16743       ;;
16744
16745     sysv4)
16746       case $host_vendor in
16747         sni)
16748           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16749           hardcode_direct_F77=yes # is this really true???
16750         ;;
16751         siemens)
16752           ## LD is ld it makes a PLAMLIB
16753           ## CC just makes a GrossModule.
16754           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16755           reload_cmds_F77='$CC -r -o $output$reload_objs'
16756           hardcode_direct_F77=no
16757         ;;
16758         motorola)
16759           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16761         ;;
16762       esac
16763       runpath_var='LD_RUN_PATH'
16764       hardcode_shlibpath_var_F77=no
16765       ;;
16766
16767     sysv4.3*)
16768       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769       hardcode_shlibpath_var_F77=no
16770       export_dynamic_flag_spec_F77='-Bexport'
16771       ;;
16772
16773     sysv4*MP*)
16774       if test -d /usr/nec; then
16775         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16776         hardcode_shlibpath_var_F77=no
16777         runpath_var=LD_RUN_PATH
16778         hardcode_runpath_var=yes
16779         ld_shlibs_F77=yes
16780       fi
16781       ;;
16782
16783     sysv4.2uw2*)
16784       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16785       hardcode_direct_F77=yes
16786       hardcode_minus_L_F77=no
16787       hardcode_shlibpath_var_F77=no
16788       hardcode_runpath_var=yes
16789       runpath_var=LD_RUN_PATH
16790       ;;
16791
16792    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16793       no_undefined_flag_F77='${wl}-z ${wl}text'
16794       if test "$GCC" = yes; then
16795         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16796       else
16797         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16798       fi
16799       runpath_var='LD_RUN_PATH'
16800       hardcode_shlibpath_var_F77=no
16801       ;;
16802
16803     sysv5*)
16804       no_undefined_flag_F77=' -z text'
16805       # $CC -shared without GNU ld will not create a library from C++
16806       # object files and a static libstdc++, better avoid it by now
16807       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16809                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16810       hardcode_libdir_flag_spec_F77=
16811       hardcode_shlibpath_var_F77=no
16812       runpath_var='LD_RUN_PATH'
16813       ;;
16814
16815     uts4*)
16816       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16817       hardcode_libdir_flag_spec_F77='-L$libdir'
16818       hardcode_shlibpath_var_F77=no
16819       ;;
16820
16821     *)
16822       ld_shlibs_F77=no
16823       ;;
16824     esac
16825   fi
16826
16827 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16828 echo "${ECHO_T}$ld_shlibs_F77" >&6
16829 test "$ld_shlibs_F77" = no && can_build_shared=no
16830
16831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16832 if test "$GCC" = yes; then
16833   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16834 fi
16835
16836 #
16837 # Do we need to explicitly link libc?
16838 #
16839 case "x$archive_cmds_need_lc_F77" in
16840 x|xyes)
16841   # Assume -lc should be added
16842   archive_cmds_need_lc_F77=yes
16843
16844   if test "$enable_shared" = yes && test "$GCC" = yes; then
16845     case $archive_cmds_F77 in
16846     *'~'*)
16847       # FIXME: we may have to deal with multi-command sequences.
16848       ;;
16849     '$CC '*)
16850       # Test whether the compiler implicitly links with -lc since on some
16851       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16852       # to ld, don't add -lc before -lgcc.
16853       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16855       $rm conftest*
16856       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16857
16858       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859   (eval $ac_compile) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); } 2>conftest.err; then
16863         soname=conftest
16864         lib=conftest
16865         libobjs=conftest.$ac_objext
16866         deplibs=
16867         wl=$lt_prog_compiler_wl_F77
16868         compiler_flags=-v
16869         linker_flags=-v
16870         verstring=
16871         output_objdir=.
16872         libname=conftest
16873         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16874         allow_undefined_flag_F77=
16875         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16876   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }
16880         then
16881           archive_cmds_need_lc_F77=no
16882         else
16883           archive_cmds_need_lc_F77=yes
16884         fi
16885         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16886       else
16887         cat conftest.err 1>&5
16888       fi
16889       $rm conftest*
16890       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16891 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16892       ;;
16893     esac
16894   fi
16895   ;;
16896 esac
16897
16898 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16900 library_names_spec=
16901 libname_spec='lib$name'
16902 soname_spec=
16903 shrext_cmds=".so"
16904 postinstall_cmds=
16905 postuninstall_cmds=
16906 finish_cmds=
16907 finish_eval=
16908 shlibpath_var=
16909 shlibpath_overrides_runpath=unknown
16910 version_type=none
16911 dynamic_linker="$host_os ld.so"
16912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16913 if test "$GCC" = yes; then
16914   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16915   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16916     # if the path contains ";" then we assume it to be the separator
16917     # otherwise default to the standard path separator (i.e. ":") - it is
16918     # assumed that no part of a normal pathname contains ";" but that should
16919     # okay in the real world where ";" in dirpaths is itself problematic.
16920     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16921   else
16922     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16923   fi
16924 else
16925   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16926 fi
16927 need_lib_prefix=unknown
16928 hardcode_into_libs=no
16929
16930 # when you set need_version to no, make sure it does not cause -set_version
16931 # flags to be left without arguments
16932 need_version=unknown
16933
16934 case $host_os in
16935 aix3*)
16936   version_type=linux
16937   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16938   shlibpath_var=LIBPATH
16939
16940   # AIX 3 has no versioning support, so we append a major version to the name.
16941   soname_spec='${libname}${release}${shared_ext}$major'
16942   ;;
16943
16944 aix4* | aix5*)
16945   version_type=linux
16946   need_lib_prefix=no
16947   need_version=no
16948   hardcode_into_libs=yes
16949   if test "$host_cpu" = ia64; then
16950     # AIX 5 supports IA64
16951     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16952     shlibpath_var=LD_LIBRARY_PATH
16953   else
16954     # With GCC up to 2.95.x, collect2 would create an import file
16955     # for dependence libraries.  The import file would start with
16956     # the line `#! .'.  This would cause the generated library to
16957     # depend on `.', always an invalid library.  This was fixed in
16958     # development snapshots of GCC prior to 3.0.
16959     case $host_os in
16960       aix4 | aix4.[01] | aix4.[01].*)
16961       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16962            echo ' yes '
16963            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16964         :
16965       else
16966         can_build_shared=no
16967       fi
16968       ;;
16969     esac
16970     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16971     # soname into executable. Probably we can add versioning support to
16972     # collect2, so additional links can be useful in future.
16973     if test "$aix_use_runtimelinking" = yes; then
16974       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16975       # instead of lib<name>.a to let people know that these are not
16976       # typical AIX shared libraries.
16977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978     else
16979       # We preserve .a as extension for shared libraries through AIX4.2
16980       # and later when we are not doing run time linking.
16981       library_names_spec='${libname}${release}.a $libname.a'
16982       soname_spec='${libname}${release}${shared_ext}$major'
16983     fi
16984     shlibpath_var=LIBPATH
16985   fi
16986   ;;
16987
16988 amigaos*)
16989   library_names_spec='$libname.ixlibrary $libname.a'
16990   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16991   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'
16992   ;;
16993
16994 beos*)
16995   library_names_spec='${libname}${shared_ext}'
16996   dynamic_linker="$host_os ld.so"
16997   shlibpath_var=LIBRARY_PATH
16998   ;;
16999
17000 bsdi[45]*)
17001   version_type=linux
17002   need_version=no
17003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004   soname_spec='${libname}${release}${shared_ext}$major'
17005   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17006   shlibpath_var=LD_LIBRARY_PATH
17007   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17008   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17009   # the default ld.so.conf also contains /usr/contrib/lib and
17010   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17011   # libtool to hard-code these into programs
17012   ;;
17013
17014 cygwin* | mingw* | pw32*)
17015   version_type=windows
17016   shrext_cmds=".dll"
17017   need_version=no
17018   need_lib_prefix=no
17019
17020   case $GCC,$host_os in
17021   yes,cygwin* | yes,mingw* | yes,pw32*)
17022     library_names_spec='$libname.dll.a'
17023     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17024     postinstall_cmds='base_file=`basename \${file}`~
17025       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17026       dldir=$destdir/`dirname \$dlpath`~
17027       test -d \$dldir || mkdir -p \$dldir~
17028       $install_prog $dir/$dlname \$dldir/$dlname'
17029     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17030       dlpath=$dir/\$dldll~
17031        $rm \$dlpath'
17032     shlibpath_overrides_runpath=yes
17033
17034     case $host_os in
17035     cygwin*)
17036       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17037       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17038       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17039       ;;
17040     mingw*)
17041       # MinGW DLLs use traditional 'lib' prefix
17042       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17043       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17044       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17045         # It is most probably a Windows format PATH printed by
17046         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17047         # path with ; separators, and with drive letters. We can handle the
17048         # drive letters (cygwin fileutils understands them), so leave them,
17049         # especially as we might pass files found there to a mingw objdump,
17050         # which wouldn't understand a cygwinified path. Ahh.
17051         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17052       else
17053         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17054       fi
17055       ;;
17056     pw32*)
17057       # pw32 DLLs use 'pw' prefix rather than 'lib'
17058       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17059       ;;
17060     esac
17061     ;;
17062
17063   *)
17064     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17065     ;;
17066   esac
17067   dynamic_linker='Win32 ld.exe'
17068   # FIXME: first we should search . and the directory the executable is in
17069   shlibpath_var=PATH
17070   ;;
17071
17072 darwin* | rhapsody*)
17073   dynamic_linker="$host_os dyld"
17074   version_type=darwin
17075   need_lib_prefix=no
17076   need_version=no
17077   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17078   soname_spec='${libname}${release}${major}$shared_ext'
17079   shlibpath_overrides_runpath=yes
17080   shlibpath_var=DYLD_LIBRARY_PATH
17081   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17082   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17083   if test "$GCC" = yes; then
17084     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"`
17085   else
17086     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17087   fi
17088   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17089   ;;
17090
17091 dgux*)
17092   version_type=linux
17093   need_lib_prefix=no
17094   need_version=no
17095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17096   soname_spec='${libname}${release}${shared_ext}$major'
17097   shlibpath_var=LD_LIBRARY_PATH
17098   ;;
17099
17100 freebsd1*)
17101   dynamic_linker=no
17102   ;;
17103
17104 kfreebsd*-gnu)
17105   version_type=linux
17106   need_lib_prefix=no
17107   need_version=no
17108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109   soname_spec='${libname}${release}${shared_ext}$major'
17110   shlibpath_var=LD_LIBRARY_PATH
17111   shlibpath_overrides_runpath=no
17112   hardcode_into_libs=yes
17113   dynamic_linker='GNU ld.so'
17114   ;;
17115
17116 freebsd* | dragonfly*)
17117   # DragonFly does not have aout.  When/if they implement a new
17118   # versioning mechanism, adjust this.
17119   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17120   version_type=freebsd-$objformat
17121   case $version_type in
17122     freebsd-elf*)
17123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17124       need_version=no
17125       need_lib_prefix=no
17126       ;;
17127     freebsd-*)
17128       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17129       need_version=yes
17130       ;;
17131   esac
17132   shlibpath_var=LD_LIBRARY_PATH
17133   case $host_os in
17134   freebsd2*)
17135     shlibpath_overrides_runpath=yes
17136     ;;
17137   freebsd3.[01]* | freebsdelf3.[01]*)
17138     shlibpath_overrides_runpath=yes
17139     hardcode_into_libs=yes
17140     ;;
17141   *) # from 3.2 on
17142     shlibpath_overrides_runpath=no
17143     hardcode_into_libs=yes
17144     ;;
17145   esac
17146   ;;
17147
17148 gnu*)
17149   version_type=linux
17150   need_lib_prefix=no
17151   need_version=no
17152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17153   soname_spec='${libname}${release}${shared_ext}$major'
17154   shlibpath_var=LD_LIBRARY_PATH
17155   hardcode_into_libs=yes
17156   ;;
17157
17158 hpux9* | hpux10* | hpux11*)
17159   # Give a soname corresponding to the major version so that dld.sl refuses to
17160   # link against other versions.
17161   version_type=sunos
17162   need_lib_prefix=no
17163   need_version=no
17164   case "$host_cpu" in
17165   ia64*)
17166     shrext_cmds='.so'
17167     hardcode_into_libs=yes
17168     dynamic_linker="$host_os dld.so"
17169     shlibpath_var=LD_LIBRARY_PATH
17170     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172     soname_spec='${libname}${release}${shared_ext}$major'
17173     if test "X$HPUX_IA64_MODE" = X32; then
17174       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17175     else
17176       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17177     fi
17178     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17179     ;;
17180    hppa*64*)
17181      shrext_cmds='.sl'
17182      hardcode_into_libs=yes
17183      dynamic_linker="$host_os dld.sl"
17184      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17185      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17186      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187      soname_spec='${libname}${release}${shared_ext}$major'
17188      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17189      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17190      ;;
17191    *)
17192     shrext_cmds='.sl'
17193     dynamic_linker="$host_os dld.sl"
17194     shlibpath_var=SHLIB_PATH
17195     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197     soname_spec='${libname}${release}${shared_ext}$major'
17198     ;;
17199   esac
17200   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17201   postinstall_cmds='chmod 555 $lib'
17202   ;;
17203
17204 irix5* | irix6* | nonstopux*)
17205   case $host_os in
17206     nonstopux*) version_type=nonstopux ;;
17207     *)
17208         if test "$lt_cv_prog_gnu_ld" = yes; then
17209                 version_type=linux
17210         else
17211                 version_type=irix
17212         fi ;;
17213   esac
17214   need_lib_prefix=no
17215   need_version=no
17216   soname_spec='${libname}${release}${shared_ext}$major'
17217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17218   case $host_os in
17219   irix5* | nonstopux*)
17220     libsuff= shlibsuff=
17221     ;;
17222   *)
17223     case $LD in # libtool.m4 will add one of these switches to LD
17224     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17225       libsuff= shlibsuff= libmagic=32-bit;;
17226     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17227       libsuff=32 shlibsuff=N32 libmagic=N32;;
17228     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17229       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17230     *) libsuff= shlibsuff= libmagic=never-match;;
17231     esac
17232     ;;
17233   esac
17234   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17235   shlibpath_overrides_runpath=no
17236   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17237   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17238   hardcode_into_libs=yes
17239   ;;
17240
17241 # No shared lib support for Linux oldld, aout, or coff.
17242 linux*oldld* | linux*aout* | linux*coff*)
17243   dynamic_linker=no
17244   ;;
17245
17246 # This must be Linux ELF.
17247 linux*)
17248   version_type=linux
17249   need_lib_prefix=no
17250   need_version=no
17251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252   soname_spec='${libname}${release}${shared_ext}$major'
17253   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17254   shlibpath_var=LD_LIBRARY_PATH
17255   shlibpath_overrides_runpath=no
17256   # This implies no fast_install, which is unacceptable.
17257   # Some rework will be needed to allow for fast_install
17258   # before this can be enabled.
17259   hardcode_into_libs=yes
17260
17261   # Append ld.so.conf contents to the search path
17262   if test -f /etc/ld.so.conf; then
17263     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' ' '`
17264     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17265   fi
17266
17267   # We used to test for /lib/ld.so.1 and disable shared libraries on
17268   # powerpc, because MkLinux only supported shared libraries with the
17269   # GNU dynamic linker.  Since this was broken with cross compilers,
17270   # most powerpc-linux boxes support dynamic linking these days and
17271   # people can always --disable-shared, the test was removed, and we
17272   # assume the GNU/Linux dynamic linker is in use.
17273   dynamic_linker='GNU/Linux ld.so'
17274   ;;
17275
17276 knetbsd*-gnu)
17277   version_type=linux
17278   need_lib_prefix=no
17279   need_version=no
17280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17281   soname_spec='${libname}${release}${shared_ext}$major'
17282   shlibpath_var=LD_LIBRARY_PATH
17283   shlibpath_overrides_runpath=no
17284   hardcode_into_libs=yes
17285   dynamic_linker='GNU ld.so'
17286   ;;
17287
17288 netbsd*)
17289   version_type=sunos
17290   need_lib_prefix=no
17291   need_version=no
17292   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17294     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17295     dynamic_linker='NetBSD (a.out) ld.so'
17296   else
17297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17298     soname_spec='${libname}${release}${shared_ext}$major'
17299     dynamic_linker='NetBSD ld.elf_so'
17300   fi
17301   shlibpath_var=LD_LIBRARY_PATH
17302   shlibpath_overrides_runpath=yes
17303   hardcode_into_libs=yes
17304   ;;
17305
17306 newsos6)
17307   version_type=linux
17308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309   shlibpath_var=LD_LIBRARY_PATH
17310   shlibpath_overrides_runpath=yes
17311   ;;
17312
17313 nto-qnx*)
17314   version_type=linux
17315   need_lib_prefix=no
17316   need_version=no
17317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318   soname_spec='${libname}${release}${shared_ext}$major'
17319   shlibpath_var=LD_LIBRARY_PATH
17320   shlibpath_overrides_runpath=yes
17321   ;;
17322
17323 openbsd*)
17324   version_type=sunos
17325   need_lib_prefix=no
17326   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17327   case $host_os in
17328     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17329     *)                         need_version=no  ;;
17330   esac
17331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17332   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17333   shlibpath_var=LD_LIBRARY_PATH
17334   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17335     case $host_os in
17336       openbsd2.[89] | openbsd2.[89].*)
17337         shlibpath_overrides_runpath=no
17338         ;;
17339       *)
17340         shlibpath_overrides_runpath=yes
17341         ;;
17342       esac
17343   else
17344     shlibpath_overrides_runpath=yes
17345   fi
17346   ;;
17347
17348 os2*)
17349   libname_spec='$name'
17350   shrext_cmds=".dll"
17351   need_lib_prefix=no
17352   library_names_spec='$libname${shared_ext} $libname.a'
17353   dynamic_linker='OS/2 ld.exe'
17354   shlibpath_var=LIBPATH
17355   ;;
17356
17357 osf3* | osf4* | osf5*)
17358   version_type=osf
17359   need_lib_prefix=no
17360   need_version=no
17361   soname_spec='${libname}${release}${shared_ext}$major'
17362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363   shlibpath_var=LD_LIBRARY_PATH
17364   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17365   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17366   ;;
17367
17368 sco3.2v5*)
17369   version_type=osf
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372   shlibpath_var=LD_LIBRARY_PATH
17373   ;;
17374
17375 solaris*)
17376   version_type=linux
17377   need_lib_prefix=no
17378   need_version=no
17379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380   soname_spec='${libname}${release}${shared_ext}$major'
17381   shlibpath_var=LD_LIBRARY_PATH
17382   shlibpath_overrides_runpath=yes
17383   hardcode_into_libs=yes
17384   # ldd complains unless libraries are executable
17385   postinstall_cmds='chmod +x $lib'
17386   ;;
17387
17388 sunos4*)
17389   version_type=sunos
17390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17391   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17392   shlibpath_var=LD_LIBRARY_PATH
17393   shlibpath_overrides_runpath=yes
17394   if test "$with_gnu_ld" = yes; then
17395     need_lib_prefix=no
17396   fi
17397   need_version=yes
17398   ;;
17399
17400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17401   version_type=linux
17402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403   soname_spec='${libname}${release}${shared_ext}$major'
17404   shlibpath_var=LD_LIBRARY_PATH
17405   case $host_vendor in
17406     sni)
17407       shlibpath_overrides_runpath=no
17408       need_lib_prefix=no
17409       export_dynamic_flag_spec='${wl}-Blargedynsym'
17410       runpath_var=LD_RUN_PATH
17411       ;;
17412     siemens)
17413       need_lib_prefix=no
17414       ;;
17415     motorola)
17416       need_lib_prefix=no
17417       need_version=no
17418       shlibpath_overrides_runpath=no
17419       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17420       ;;
17421   esac
17422   ;;
17423
17424 sysv4*MP*)
17425   if test -d /usr/nec ;then
17426     version_type=linux
17427     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17428     soname_spec='$libname${shared_ext}.$major'
17429     shlibpath_var=LD_LIBRARY_PATH
17430   fi
17431   ;;
17432
17433 uts4*)
17434   version_type=linux
17435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436   soname_spec='${libname}${release}${shared_ext}$major'
17437   shlibpath_var=LD_LIBRARY_PATH
17438   ;;
17439
17440 *)
17441   dynamic_linker=no
17442   ;;
17443 esac
17444 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17445 echo "${ECHO_T}$dynamic_linker" >&6
17446 test "$dynamic_linker" = no && can_build_shared=no
17447
17448 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17449 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17450 hardcode_action_F77=
17451 if test -n "$hardcode_libdir_flag_spec_F77" || \
17452    test -n "$runpath_var_F77" || \
17453    test "X$hardcode_automatic_F77" = "Xyes" ; then
17454
17455   # We can hardcode non-existant directories.
17456   if test "$hardcode_direct_F77" != no &&
17457      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17458      # have to relink, otherwise we might link with an installed library
17459      # when we should be linking with a yet-to-be-installed one
17460      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17461      test "$hardcode_minus_L_F77" != no; then
17462     # Linking always hardcodes the temporary library directory.
17463     hardcode_action_F77=relink
17464   else
17465     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17466     hardcode_action_F77=immediate
17467   fi
17468 else
17469   # We cannot hardcode anything, or else we can only hardcode existing
17470   # directories.
17471   hardcode_action_F77=unsupported
17472 fi
17473 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17474 echo "${ECHO_T}$hardcode_action_F77" >&6
17475
17476 if test "$hardcode_action_F77" = relink; then
17477   # Fast installation is not supported
17478   enable_fast_install=no
17479 elif test "$shlibpath_overrides_runpath" = yes ||
17480      test "$enable_shared" = no; then
17481   # Fast installation is not necessary
17482   enable_fast_install=needless
17483 fi
17484
17485 striplib=
17486 old_striplib=
17487 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17489 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17490   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17491   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17492   echo "$as_me:$LINENO: result: yes" >&5
17493 echo "${ECHO_T}yes" >&6
17494 else
17495 # FIXME - insert some real tests, host_os isn't really good enough
17496   case $host_os in
17497    darwin*)
17498        if test -n "$STRIP" ; then
17499          striplib="$STRIP -x"
17500          echo "$as_me:$LINENO: result: yes" >&5
17501 echo "${ECHO_T}yes" >&6
17502        else
17503   echo "$as_me:$LINENO: result: no" >&5
17504 echo "${ECHO_T}no" >&6
17505 fi
17506        ;;
17507    *)
17508   echo "$as_me:$LINENO: result: no" >&5
17509 echo "${ECHO_T}no" >&6
17510     ;;
17511   esac
17512 fi
17513
17514
17515
17516 # The else clause should only fire when bootstrapping the
17517 # libtool distribution, otherwise you forgot to ship ltmain.sh
17518 # with your package, and you will get complaints that there are
17519 # no rules to generate ltmain.sh.
17520 if test -f "$ltmain"; then
17521   # See if we are running on zsh, and set the options which allow our commands through
17522   # without removal of \ escapes.
17523   if test -n "${ZSH_VERSION+set}" ; then
17524     setopt NO_GLOB_SUBST
17525   fi
17526   # Now quote all the things that may contain metacharacters while being
17527   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17528   # variables and quote the copies for generation of the libtool script.
17529   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17530     SED SHELL STRIP \
17531     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17532     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17533     deplibs_check_method reload_flag reload_cmds need_locks \
17534     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17535     lt_cv_sys_global_symbol_to_c_name_address \
17536     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17537     old_postinstall_cmds old_postuninstall_cmds \
17538     compiler_F77 \
17539     CC_F77 \
17540     LD_F77 \
17541     lt_prog_compiler_wl_F77 \
17542     lt_prog_compiler_pic_F77 \
17543     lt_prog_compiler_static_F77 \
17544     lt_prog_compiler_no_builtin_flag_F77 \
17545     export_dynamic_flag_spec_F77 \
17546     thread_safe_flag_spec_F77 \
17547     whole_archive_flag_spec_F77 \
17548     enable_shared_with_static_runtimes_F77 \
17549     old_archive_cmds_F77 \
17550     old_archive_from_new_cmds_F77 \
17551     predep_objects_F77 \
17552     postdep_objects_F77 \
17553     predeps_F77 \
17554     postdeps_F77 \
17555     compiler_lib_search_path_F77 \
17556     archive_cmds_F77 \
17557     archive_expsym_cmds_F77 \
17558     postinstall_cmds_F77 \
17559     postuninstall_cmds_F77 \
17560     old_archive_from_expsyms_cmds_F77 \
17561     allow_undefined_flag_F77 \
17562     no_undefined_flag_F77 \
17563     export_symbols_cmds_F77 \
17564     hardcode_libdir_flag_spec_F77 \
17565     hardcode_libdir_flag_spec_ld_F77 \
17566     hardcode_libdir_separator_F77 \
17567     hardcode_automatic_F77 \
17568     module_cmds_F77 \
17569     module_expsym_cmds_F77 \
17570     lt_cv_prog_compiler_c_o_F77 \
17571     exclude_expsyms_F77 \
17572     include_expsyms_F77; do
17573
17574     case $var in
17575     old_archive_cmds_F77 | \
17576     old_archive_from_new_cmds_F77 | \
17577     archive_cmds_F77 | \
17578     archive_expsym_cmds_F77 | \
17579     module_cmds_F77 | \
17580     module_expsym_cmds_F77 | \
17581     old_archive_from_expsyms_cmds_F77 | \
17582     export_symbols_cmds_F77 | \
17583     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17584     postinstall_cmds | postuninstall_cmds | \
17585     old_postinstall_cmds | old_postuninstall_cmds | \
17586     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17587       # Double-quote double-evaled strings.
17588       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17589       ;;
17590     *)
17591       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17592       ;;
17593     esac
17594   done
17595
17596   case $lt_echo in
17597   *'\$0 --fallback-echo"')
17598     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17599     ;;
17600   esac
17601
17602 cfgfile="$ofile"
17603
17604   cat <<__EOF__ >> "$cfgfile"
17605 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17606
17607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17608
17609 # Shell to use when invoking shell scripts.
17610 SHELL=$lt_SHELL
17611
17612 # Whether or not to build shared libraries.
17613 build_libtool_libs=$enable_shared
17614
17615 # Whether or not to build static libraries.
17616 build_old_libs=$enable_static
17617
17618 # Whether or not to add -lc for building shared libraries.
17619 build_libtool_need_lc=$archive_cmds_need_lc_F77
17620
17621 # Whether or not to disallow shared libs when runtime libs are static
17622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17623
17624 # Whether or not to optimize for fast installation.
17625 fast_install=$enable_fast_install
17626
17627 # The host system.
17628 host_alias=$host_alias
17629 host=$host
17630 host_os=$host_os
17631
17632 # The build system.
17633 build_alias=$build_alias
17634 build=$build
17635 build_os=$build_os
17636
17637 # An echo program that does not interpret backslashes.
17638 echo=$lt_echo
17639
17640 # The archiver.
17641 AR=$lt_AR
17642 AR_FLAGS=$lt_AR_FLAGS
17643
17644 # A C compiler.
17645 LTCC=$lt_LTCC
17646
17647 # A language-specific compiler.
17648 CC=$lt_compiler_F77
17649
17650 # Is the compiler the GNU C compiler?
17651 with_gcc=$GCC_F77
17652
17653 # An ERE matcher.
17654 EGREP=$lt_EGREP
17655
17656 # The linker used to build libraries.
17657 LD=$lt_LD_F77
17658
17659 # Whether we need hard or soft links.
17660 LN_S=$lt_LN_S
17661
17662 # A BSD-compatible nm program.
17663 NM=$lt_NM
17664
17665 # A symbol stripping program
17666 STRIP=$lt_STRIP
17667
17668 # Used to examine libraries when file_magic_cmd begins "file"
17669 MAGIC_CMD=$MAGIC_CMD
17670
17671 # Used on cygwin: DLL creation program.
17672 DLLTOOL="$DLLTOOL"
17673
17674 # Used on cygwin: object dumper.
17675 OBJDUMP="$OBJDUMP"
17676
17677 # Used on cygwin: assembler.
17678 AS="$AS"
17679
17680 # The name of the directory that contains temporary libtool files.
17681 objdir=$objdir
17682
17683 # How to create reloadable object files.
17684 reload_flag=$lt_reload_flag
17685 reload_cmds=$lt_reload_cmds
17686
17687 # How to pass a linker flag through the compiler.
17688 wl=$lt_lt_prog_compiler_wl_F77
17689
17690 # Object file suffix (normally "o").
17691 objext="$ac_objext"
17692
17693 # Old archive suffix (normally "a").
17694 libext="$libext"
17695
17696 # Shared library suffix (normally ".so").
17697 shrext_cmds='$shrext_cmds'
17698
17699 # Executable file suffix (normally "").
17700 exeext="$exeext"
17701
17702 # Additional compiler flags for building library objects.
17703 pic_flag=$lt_lt_prog_compiler_pic_F77
17704 pic_mode=$pic_mode
17705
17706 # What is the maximum length of a command?
17707 max_cmd_len=$lt_cv_sys_max_cmd_len
17708
17709 # Does compiler simultaneously support -c and -o options?
17710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17711
17712 # Must we lock files when doing compilation?
17713 need_locks=$lt_need_locks
17714
17715 # Do we need the lib prefix for modules?
17716 need_lib_prefix=$need_lib_prefix
17717
17718 # Do we need a version for libraries?
17719 need_version=$need_version
17720
17721 # Whether dlopen is supported.
17722 dlopen_support=$enable_dlopen
17723
17724 # Whether dlopen of programs is supported.
17725 dlopen_self=$enable_dlopen_self
17726
17727 # Whether dlopen of statically linked programs is supported.
17728 dlopen_self_static=$enable_dlopen_self_static
17729
17730 # Compiler flag to prevent dynamic linking.
17731 link_static_flag=$lt_lt_prog_compiler_static_F77
17732
17733 # Compiler flag to turn off builtin functions.
17734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17735
17736 # Compiler flag to allow reflexive dlopens.
17737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17738
17739 # Compiler flag to generate shared objects directly from archives.
17740 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17741
17742 # Compiler flag to generate thread-safe objects.
17743 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17744
17745 # Library versioning type.
17746 version_type=$version_type
17747
17748 # Format of library name prefix.
17749 libname_spec=$lt_libname_spec
17750
17751 # List of archive names.  First name is the real one, the rest are links.
17752 # The last name is the one that the linker finds with -lNAME.
17753 library_names_spec=$lt_library_names_spec
17754
17755 # The coded name of the library, if different from the real name.
17756 soname_spec=$lt_soname_spec
17757
17758 # Commands used to build and install an old-style archive.
17759 RANLIB=$lt_RANLIB
17760 old_archive_cmds=$lt_old_archive_cmds_F77
17761 old_postinstall_cmds=$lt_old_postinstall_cmds
17762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17763
17764 # Create an old-style archive from a shared archive.
17765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17766
17767 # Create a temporary old-style archive to link instead of a shared archive.
17768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17769
17770 # Commands used to build and install a shared archive.
17771 archive_cmds=$lt_archive_cmds_F77
17772 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17773 postinstall_cmds=$lt_postinstall_cmds
17774 postuninstall_cmds=$lt_postuninstall_cmds
17775
17776 # Commands used to build a loadable module (assumed same as above if empty)
17777 module_cmds=$lt_module_cmds_F77
17778 module_expsym_cmds=$lt_module_expsym_cmds_F77
17779
17780 # Commands to strip libraries.
17781 old_striplib=$lt_old_striplib
17782 striplib=$lt_striplib
17783
17784 # Dependencies to place before the objects being linked to create a
17785 # shared library.
17786 predep_objects=$lt_predep_objects_F77
17787
17788 # Dependencies to place after the objects being linked to create a
17789 # shared library.
17790 postdep_objects=$lt_postdep_objects_F77
17791
17792 # Dependencies to place before the objects being linked to create a
17793 # shared library.
17794 predeps=$lt_predeps_F77
17795
17796 # Dependencies to place after the objects being linked to create a
17797 # shared library.
17798 postdeps=$lt_postdeps_F77
17799
17800 # The library search path used internally by the compiler when linking
17801 # a shared library.
17802 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17803
17804 # Method to check whether dependent libraries are shared objects.
17805 deplibs_check_method=$lt_deplibs_check_method
17806
17807 # Command to use when deplibs_check_method == file_magic.
17808 file_magic_cmd=$lt_file_magic_cmd
17809
17810 # Flag that allows shared libraries with undefined symbols to be built.
17811 allow_undefined_flag=$lt_allow_undefined_flag_F77
17812
17813 # Flag that forces no undefined symbols.
17814 no_undefined_flag=$lt_no_undefined_flag_F77
17815
17816 # Commands used to finish a libtool library installation in a directory.
17817 finish_cmds=$lt_finish_cmds
17818
17819 # Same as above, but a single script fragment to be evaled but not shown.
17820 finish_eval=$lt_finish_eval
17821
17822 # Take the output of nm and produce a listing of raw symbols and C names.
17823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17824
17825 # Transform the output of nm in a proper C declaration
17826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17827
17828 # Transform the output of nm in a C name address pair
17829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17830
17831 # This is the shared library runtime path variable.
17832 runpath_var=$runpath_var
17833
17834 # This is the shared library path variable.
17835 shlibpath_var=$shlibpath_var
17836
17837 # Is shlibpath searched before the hard-coded library search path?
17838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17839
17840 # How to hardcode a shared library path into an executable.
17841 hardcode_action=$hardcode_action_F77
17842
17843 # Whether we should hardcode library paths into libraries.
17844 hardcode_into_libs=$hardcode_into_libs
17845
17846 # Flag to hardcode \$libdir into a binary during linking.
17847 # This must work even if \$libdir does not exist.
17848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17849
17850 # If ld is used when linking, flag to hardcode \$libdir into
17851 # a binary during linking. This must work even if \$libdir does
17852 # not exist.
17853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17854
17855 # Whether we need a single -rpath flag with a separated argument.
17856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17857
17858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17859 # resulting binary.
17860 hardcode_direct=$hardcode_direct_F77
17861
17862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17863 # resulting binary.
17864 hardcode_minus_L=$hardcode_minus_L_F77
17865
17866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17867 # the resulting binary.
17868 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17869
17870 # Set to yes if building a shared library automatically hardcodes DIR into the library
17871 # and all subsequent libraries and executables linked against it.
17872 hardcode_automatic=$hardcode_automatic_F77
17873
17874 # Variables whose values should be saved in libtool wrapper scripts and
17875 # restored at relink time.
17876 variables_saved_for_relink="$variables_saved_for_relink"
17877
17878 # Whether libtool must link a program against all its dependency libraries.
17879 link_all_deplibs=$link_all_deplibs_F77
17880
17881 # Compile-time system search path for libraries
17882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17883
17884 # Run-time system search path for libraries
17885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17886
17887 # Fix the shell variable \$srcfile for the compiler.
17888 fix_srcfile_path="$fix_srcfile_path_F77"
17889
17890 # Set to yes if exported symbols are required.
17891 always_export_symbols=$always_export_symbols_F77
17892
17893 # The commands to list exported symbols.
17894 export_symbols_cmds=$lt_export_symbols_cmds_F77
17895
17896 # The commands to extract the exported symbol list from a shared archive.
17897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17898
17899 # Symbols that should not be listed in the preloaded symbols.
17900 exclude_expsyms=$lt_exclude_expsyms_F77
17901
17902 # Symbols that must always be exported.
17903 include_expsyms=$lt_include_expsyms_F77
17904
17905 # ### END LIBTOOL TAG CONFIG: $tagname
17906
17907 __EOF__
17908
17909
17910 else
17911   # If there is no Makefile yet, we rely on a make rule to execute
17912   # `config.status --recheck' to rerun these tests and create the
17913   # libtool script then.
17914   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17915   if test -f "$ltmain_in"; then
17916     test -f Makefile && make "$ltmain"
17917   fi
17918 fi
17919
17920
17921 ac_ext=c
17922 ac_cpp='$CPP $CPPFLAGS'
17923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17926
17927 CC="$lt_save_CC"
17928
17929         else
17930           tagname=""
17931         fi
17932         ;;
17933
17934       GCJ)
17935         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17936
17937
17938
17939 # Source file extension for Java test sources.
17940 ac_ext=java
17941
17942 # Object file extension for compiled Java test sources.
17943 objext=o
17944 objext_GCJ=$objext
17945
17946 # Code to be used in simple compile tests
17947 lt_simple_compile_test_code="class foo {}\n"
17948
17949 # Code to be used in simple link tests
17950 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17951
17952 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17953
17954 # If no C compiler was specified, use CC.
17955 LTCC=${LTCC-"$CC"}
17956
17957 # Allow CC to be a program name with arguments.
17958 compiler=$CC
17959
17960
17961 # save warnings/boilerplate of simple test code
17962 ac_outfile=conftest.$ac_objext
17963 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17964 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17965 _lt_compiler_boilerplate=`cat conftest.err`
17966 $rm conftest*
17967
17968 ac_outfile=conftest.$ac_objext
17969 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17970 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17971 _lt_linker_boilerplate=`cat conftest.err`
17972 $rm conftest*
17973
17974
17975 # Allow CC to be a program name with arguments.
17976 lt_save_CC="$CC"
17977 CC=${GCJ-"gcj"}
17978 compiler=$CC
17979 compiler_GCJ=$CC
17980 for cc_temp in $compiler""; do
17981   case $cc_temp in
17982     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17983     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17984     \-*) ;;
17985     *) break;;
17986   esac
17987 done
17988 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17989
17990
17991 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17992 archive_cmds_need_lc_GCJ=no
17993
17994 old_archive_cmds_GCJ=$old_archive_cmds
17995
17996
17997 lt_prog_compiler_no_builtin_flag_GCJ=
17998
17999 if test "$GCC" = yes; then
18000   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18001
18002
18003 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18004 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18005 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18006   echo $ECHO_N "(cached) $ECHO_C" >&6
18007 else
18008   lt_cv_prog_compiler_rtti_exceptions=no
18009   ac_outfile=conftest.$ac_objext
18010    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18011    lt_compiler_flag="-fno-rtti -fno-exceptions"
18012    # Insert the option either (1) after the last *FLAGS variable, or
18013    # (2) before a word containing "conftest.", or (3) at the end.
18014    # Note that $ac_compile itself does not contain backslashes and begins
18015    # with a dollar sign (not a hyphen), so the echo should work correctly.
18016    # The option is referenced via a variable to avoid confusing sed.
18017    lt_compile=`echo "$ac_compile" | $SED \
18018    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18020    -e 's:$: $lt_compiler_flag:'`
18021    (eval echo "\"\$as_me:18021: $lt_compile\"" >&5)
18022    (eval "$lt_compile" 2>conftest.err)
18023    ac_status=$?
18024    cat conftest.err >&5
18025    echo "$as_me:18025: \$? = $ac_status" >&5
18026    if (exit $ac_status) && test -s "$ac_outfile"; then
18027      # The compiler can only warn and ignore the option if not recognized
18028      # So say no if there are warnings other than the usual output.
18029      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18030      $SED '/^$/d' conftest.err >conftest.er2
18031      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18032        lt_cv_prog_compiler_rtti_exceptions=yes
18033      fi
18034    fi
18035    $rm conftest*
18036
18037 fi
18038 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18039 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18040
18041 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18042     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18043 else
18044     :
18045 fi
18046
18047 fi
18048
18049 lt_prog_compiler_wl_GCJ=
18050 lt_prog_compiler_pic_GCJ=
18051 lt_prog_compiler_static_GCJ=
18052
18053 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18054 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18055
18056   if test "$GCC" = yes; then
18057     lt_prog_compiler_wl_GCJ='-Wl,'
18058     lt_prog_compiler_static_GCJ='-static'
18059
18060     case $host_os in
18061       aix*)
18062       # All AIX code is PIC.
18063       if test "$host_cpu" = ia64; then
18064         # AIX 5 now supports IA64 processor
18065         lt_prog_compiler_static_GCJ='-Bstatic'
18066       fi
18067       ;;
18068
18069     amigaos*)
18070       # FIXME: we need at least 68020 code to build shared libraries, but
18071       # adding the `-m68020' flag to GCC prevents building anything better,
18072       # like `-m68040'.
18073       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18074       ;;
18075
18076     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18077       # PIC is the default for these OSes.
18078       ;;
18079
18080     mingw* | pw32* | os2*)
18081       # This hack is so that the source file can tell whether it is being
18082       # built for inclusion in a dll (and should export symbols for example).
18083       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18084       ;;
18085
18086     darwin* | rhapsody*)
18087       # PIC is the default on this platform
18088       # Common symbols not allowed in MH_DYLIB files
18089       lt_prog_compiler_pic_GCJ='-fno-common'
18090       ;;
18091
18092     msdosdjgpp*)
18093       # Just because we use GCC doesn't mean we suddenly get shared libraries
18094       # on systems that don't support them.
18095       lt_prog_compiler_can_build_shared_GCJ=no
18096       enable_shared=no
18097       ;;
18098
18099     sysv4*MP*)
18100       if test -d /usr/nec; then
18101         lt_prog_compiler_pic_GCJ=-Kconform_pic
18102       fi
18103       ;;
18104
18105     hpux*)
18106       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18107       # not for PA HP-UX.
18108       case "$host_cpu" in
18109       hppa*64*|ia64*)
18110         # +Z the default
18111         ;;
18112       *)
18113         lt_prog_compiler_pic_GCJ='-fPIC'
18114         ;;
18115       esac
18116       ;;
18117
18118     *)
18119       lt_prog_compiler_pic_GCJ='-fPIC'
18120       ;;
18121     esac
18122   else
18123     # PORTME Check for flag to pass linker flags through the system compiler.
18124     case $host_os in
18125     aix*)
18126       lt_prog_compiler_wl_GCJ='-Wl,'
18127       if test "$host_cpu" = ia64; then
18128         # AIX 5 now supports IA64 processor
18129         lt_prog_compiler_static_GCJ='-Bstatic'
18130       else
18131         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18132       fi
18133       ;;
18134       darwin*)
18135         # PIC is the default on this platform
18136         # Common symbols not allowed in MH_DYLIB files
18137        case $cc_basename in
18138          xlc*)
18139          lt_prog_compiler_pic_GCJ='-qnocommon'
18140          lt_prog_compiler_wl_GCJ='-Wl,'
18141          ;;
18142        esac
18143        ;;
18144
18145     mingw* | pw32* | os2*)
18146       # This hack is so that the source file can tell whether it is being
18147       # built for inclusion in a dll (and should export symbols for example).
18148       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18149       ;;
18150
18151     hpux9* | hpux10* | hpux11*)
18152       lt_prog_compiler_wl_GCJ='-Wl,'
18153       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18154       # not for PA HP-UX.
18155       case "$host_cpu" in
18156       hppa*64*|ia64*)
18157         # +Z the default
18158         ;;
18159       *)
18160         lt_prog_compiler_pic_GCJ='+Z'
18161         ;;
18162       esac
18163       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18164       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18165       ;;
18166
18167     irix5* | irix6* | nonstopux*)
18168       lt_prog_compiler_wl_GCJ='-Wl,'
18169       # PIC (with -KPIC) is the default.
18170       lt_prog_compiler_static_GCJ='-non_shared'
18171       ;;
18172
18173     newsos6)
18174       lt_prog_compiler_pic_GCJ='-KPIC'
18175       lt_prog_compiler_static_GCJ='-Bstatic'
18176       ;;
18177
18178     linux*)
18179       case $cc_basename in
18180       icc* | ecc*)
18181         lt_prog_compiler_wl_GCJ='-Wl,'
18182         lt_prog_compiler_pic_GCJ='-KPIC'
18183         lt_prog_compiler_static_GCJ='-static'
18184         ;;
18185       pgcc* | pgf77* | pgf90*)
18186         # Portland Group compilers (*not* the Pentium gcc compiler,
18187         # which looks to be a dead project)
18188         lt_prog_compiler_wl_GCJ='-Wl,'
18189         lt_prog_compiler_pic_GCJ='-fpic'
18190         lt_prog_compiler_static_GCJ='-static'
18191         ;;
18192       ccc*)
18193         lt_prog_compiler_wl_GCJ='-Wl,'
18194         # All Alpha code is PIC.
18195         lt_prog_compiler_static_GCJ='-non_shared'
18196         ;;
18197       esac
18198       ;;
18199
18200     osf3* | osf4* | osf5*)
18201       lt_prog_compiler_wl_GCJ='-Wl,'
18202       # All OSF/1 code is PIC.
18203       lt_prog_compiler_static_GCJ='-non_shared'
18204       ;;
18205
18206     sco3.2v5*)
18207       lt_prog_compiler_pic_GCJ='-Kpic'
18208       lt_prog_compiler_static_GCJ='-dn'
18209       ;;
18210
18211     solaris*)
18212       lt_prog_compiler_pic_GCJ='-KPIC'
18213       lt_prog_compiler_static_GCJ='-Bstatic'
18214       case $cc_basename in
18215       f77* | f90* | f95*)
18216         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18217       *)
18218         lt_prog_compiler_wl_GCJ='-Wl,';;
18219       esac
18220       ;;
18221
18222     sunos4*)
18223       lt_prog_compiler_wl_GCJ='-Qoption ld '
18224       lt_prog_compiler_pic_GCJ='-PIC'
18225       lt_prog_compiler_static_GCJ='-Bstatic'
18226       ;;
18227
18228     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18229       lt_prog_compiler_wl_GCJ='-Wl,'
18230       lt_prog_compiler_pic_GCJ='-KPIC'
18231       lt_prog_compiler_static_GCJ='-Bstatic'
18232       ;;
18233
18234     sysv4*MP*)
18235       if test -d /usr/nec ;then
18236         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18237         lt_prog_compiler_static_GCJ='-Bstatic'
18238       fi
18239       ;;
18240
18241     unicos*)
18242       lt_prog_compiler_wl_GCJ='-Wl,'
18243       lt_prog_compiler_can_build_shared_GCJ=no
18244       ;;
18245
18246     uts4*)
18247       lt_prog_compiler_pic_GCJ='-pic'
18248       lt_prog_compiler_static_GCJ='-Bstatic'
18249       ;;
18250
18251     *)
18252       lt_prog_compiler_can_build_shared_GCJ=no
18253       ;;
18254     esac
18255   fi
18256
18257 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18258 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18259
18260 #
18261 # Check to make sure the PIC flag actually works.
18262 #
18263 if test -n "$lt_prog_compiler_pic_GCJ"; then
18264
18265 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18266 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18267 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18268   echo $ECHO_N "(cached) $ECHO_C" >&6
18269 else
18270   lt_prog_compiler_pic_works_GCJ=no
18271   ac_outfile=conftest.$ac_objext
18272    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18273    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18274    # Insert the option either (1) after the last *FLAGS variable, or
18275    # (2) before a word containing "conftest.", or (3) at the end.
18276    # Note that $ac_compile itself does not contain backslashes and begins
18277    # with a dollar sign (not a hyphen), so the echo should work correctly.
18278    # The option is referenced via a variable to avoid confusing sed.
18279    lt_compile=`echo "$ac_compile" | $SED \
18280    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18281    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18282    -e 's:$: $lt_compiler_flag:'`
18283    (eval echo "\"\$as_me:18283: $lt_compile\"" >&5)
18284    (eval "$lt_compile" 2>conftest.err)
18285    ac_status=$?
18286    cat conftest.err >&5
18287    echo "$as_me:18287: \$? = $ac_status" >&5
18288    if (exit $ac_status) && test -s "$ac_outfile"; then
18289      # The compiler can only warn and ignore the option if not recognized
18290      # So say no if there are warnings other than the usual output.
18291      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18292      $SED '/^$/d' conftest.err >conftest.er2
18293      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18294        lt_prog_compiler_pic_works_GCJ=yes
18295      fi
18296    fi
18297    $rm conftest*
18298
18299 fi
18300 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18301 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18302
18303 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18304     case $lt_prog_compiler_pic_GCJ in
18305      "" | " "*) ;;
18306      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18307      esac
18308 else
18309     lt_prog_compiler_pic_GCJ=
18310      lt_prog_compiler_can_build_shared_GCJ=no
18311 fi
18312
18313 fi
18314 case "$host_os" in
18315   # For platforms which do not support PIC, -DPIC is meaningless:
18316   *djgpp*)
18317     lt_prog_compiler_pic_GCJ=
18318     ;;
18319   *)
18320     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18321     ;;
18322 esac
18323
18324 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18325 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18326 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18327   echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329   lt_cv_prog_compiler_c_o_GCJ=no
18330    $rm -r conftest 2>/dev/null
18331    mkdir conftest
18332    cd conftest
18333    mkdir out
18334    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18335
18336    lt_compiler_flag="-o out/conftest2.$ac_objext"
18337    # Insert the option either (1) after the last *FLAGS variable, or
18338    # (2) before a word containing "conftest.", or (3) at the end.
18339    # Note that $ac_compile itself does not contain backslashes and begins
18340    # with a dollar sign (not a hyphen), so the echo should work correctly.
18341    lt_compile=`echo "$ac_compile" | $SED \
18342    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18344    -e 's:$: $lt_compiler_flag:'`
18345    (eval echo "\"\$as_me:18345: $lt_compile\"" >&5)
18346    (eval "$lt_compile" 2>out/conftest.err)
18347    ac_status=$?
18348    cat out/conftest.err >&5
18349    echo "$as_me:18349: \$? = $ac_status" >&5
18350    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18351    then
18352      # The compiler can only warn and ignore the option if not recognized
18353      # So say no if there are warnings
18354      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18355      $SED '/^$/d' out/conftest.err >out/conftest.er2
18356      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18357        lt_cv_prog_compiler_c_o_GCJ=yes
18358      fi
18359    fi
18360    chmod u+w .
18361    $rm conftest*
18362    # SGI C++ compiler will create directory out/ii_files/ for
18363    # template instantiation
18364    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18365    $rm out/* && rmdir out
18366    cd ..
18367    rmdir conftest
18368    $rm conftest*
18369
18370 fi
18371 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18372 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18373
18374
18375 hard_links="nottested"
18376 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18377   # do not overwrite the value of need_locks provided by the user
18378   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18380   hard_links=yes
18381   $rm conftest*
18382   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18383   touch conftest.a
18384   ln conftest.a conftest.b 2>&5 || hard_links=no
18385   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18386   echo "$as_me:$LINENO: result: $hard_links" >&5
18387 echo "${ECHO_T}$hard_links" >&6
18388   if test "$hard_links" = no; then
18389     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18391     need_locks=warn
18392   fi
18393 else
18394   need_locks=no
18395 fi
18396
18397 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18398 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18399
18400   runpath_var=
18401   allow_undefined_flag_GCJ=
18402   enable_shared_with_static_runtimes_GCJ=no
18403   archive_cmds_GCJ=
18404   archive_expsym_cmds_GCJ=
18405   old_archive_From_new_cmds_GCJ=
18406   old_archive_from_expsyms_cmds_GCJ=
18407   export_dynamic_flag_spec_GCJ=
18408   whole_archive_flag_spec_GCJ=
18409   thread_safe_flag_spec_GCJ=
18410   hardcode_libdir_flag_spec_GCJ=
18411   hardcode_libdir_flag_spec_ld_GCJ=
18412   hardcode_libdir_separator_GCJ=
18413   hardcode_direct_GCJ=no
18414   hardcode_minus_L_GCJ=no
18415   hardcode_shlibpath_var_GCJ=unsupported
18416   link_all_deplibs_GCJ=unknown
18417   hardcode_automatic_GCJ=no
18418   module_cmds_GCJ=
18419   module_expsym_cmds_GCJ=
18420   always_export_symbols_GCJ=no
18421   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18422   # include_expsyms should be a list of space-separated symbols to be *always*
18423   # included in the symbol list
18424   include_expsyms_GCJ=
18425   # exclude_expsyms can be an extended regexp of symbols to exclude
18426   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18427   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18428   # as well as any symbol that contains `d'.
18429   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18430   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18431   # platforms (ab)use it in PIC code, but their linkers get confused if
18432   # the symbol is explicitly referenced.  Since portable code cannot
18433   # rely on this symbol name, it's probably fine to never include it in
18434   # preloaded symbol tables.
18435   extract_expsyms_cmds=
18436   # Just being paranoid about ensuring that cc_basename is set.
18437   for cc_temp in $compiler""; do
18438   case $cc_temp in
18439     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18440     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18441     \-*) ;;
18442     *) break;;
18443   esac
18444 done
18445 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18446
18447   case $host_os in
18448   cygwin* | mingw* | pw32*)
18449     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18450     # When not using gcc, we currently assume that we are using
18451     # Microsoft Visual C++.
18452     if test "$GCC" != yes; then
18453       with_gnu_ld=no
18454     fi
18455     ;;
18456   openbsd*)
18457     with_gnu_ld=no
18458     ;;
18459   esac
18460
18461   ld_shlibs_GCJ=yes
18462   if test "$with_gnu_ld" = yes; then
18463     # If archive_cmds runs LD, not CC, wlarc should be empty
18464     wlarc='${wl}'
18465
18466     # Set some defaults for GNU ld with shared library support. These
18467     # are reset later if shared libraries are not supported. Putting them
18468     # here allows them to be overridden if necessary.
18469     runpath_var=LD_RUN_PATH
18470     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18471     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18472     # ancient GNU ld didn't support --whole-archive et. al.
18473     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18474         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18475       else
18476         whole_archive_flag_spec_GCJ=
18477     fi
18478     supports_anon_versioning=no
18479     case `$LD -v 2>/dev/null` in
18480       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18481       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18482       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18483       *\ 2.11.*) ;; # other 2.11 versions
18484       *) supports_anon_versioning=yes ;;
18485     esac
18486
18487     # See if GNU ld supports shared libraries.
18488     case $host_os in
18489     aix3* | aix4* | aix5*)
18490       # On AIX/PPC, the GNU linker is very broken
18491       if test "$host_cpu" != ia64; then
18492         ld_shlibs_GCJ=no
18493         cat <<EOF 1>&2
18494
18495 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18496 *** to be unable to reliably create shared libraries on AIX.
18497 *** Therefore, libtool is disabling shared libraries support.  If you
18498 *** really care for shared libraries, you may want to modify your PATH
18499 *** so that a non-GNU linker is found, and then restart.
18500
18501 EOF
18502       fi
18503       ;;
18504
18505     amigaos*)
18506       archive_cmds_GCJ='$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)'
18507       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18508       hardcode_minus_L_GCJ=yes
18509
18510       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18511       # that the semantics of dynamic libraries on AmigaOS, at least up
18512       # to version 4, is to share data among multiple programs linked
18513       # with the same dynamic library.  Since this doesn't match the
18514       # behavior of shared libraries on other platforms, we can't use
18515       # them.
18516       ld_shlibs_GCJ=no
18517       ;;
18518
18519     beos*)
18520       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18521         allow_undefined_flag_GCJ=unsupported
18522         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18523         # support --undefined.  This deserves some investigation.  FIXME
18524         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18525       else
18526         ld_shlibs_GCJ=no
18527       fi
18528       ;;
18529
18530     cygwin* | mingw* | pw32*)
18531       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18532       # as there is no search path for DLLs.
18533       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18534       allow_undefined_flag_GCJ=unsupported
18535       always_export_symbols_GCJ=no
18536       enable_shared_with_static_runtimes_GCJ=yes
18537       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18538
18539       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18540         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18541         # If the export-symbols file already is a .def file (1st line
18542         # is EXPORTS), use it as is; otherwise, prepend...
18543         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18544           cp $export_symbols $output_objdir/$soname.def;
18545         else
18546           echo EXPORTS > $output_objdir/$soname.def;
18547           cat $export_symbols >> $output_objdir/$soname.def;
18548         fi~
18549         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18550       else
18551         ld_shlibs_GCJ=no
18552       fi
18553       ;;
18554
18555     linux*)
18556       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18557         tmp_addflag=
18558         case $cc_basename,$host_cpu in
18559         pgcc*)                          # Portland Group C compiler
18560           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18561           tmp_addflag=' $pic_flag'
18562           ;;
18563         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18564           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18565           tmp_addflag=' $pic_flag -Mnomain' ;;
18566         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18567           tmp_addflag=' -i_dynamic' ;;
18568         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18569           tmp_addflag=' -i_dynamic -nofor_main' ;;
18570         ifc* | ifort*)                  # Intel Fortran compiler
18571           tmp_addflag=' -nofor_main' ;;
18572         esac
18573         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18574
18575         if test $supports_anon_versioning = yes; then
18576           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18577   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18578   $echo "local: *; };" >> $output_objdir/$libname.ver~
18579           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18580         fi
18581       else
18582         ld_shlibs_GCJ=no
18583       fi
18584       ;;
18585
18586     netbsd*)
18587       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18588         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18589         wlarc=
18590       else
18591         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18592         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18593       fi
18594       ;;
18595
18596     solaris* | sysv5*)
18597       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18598         ld_shlibs_GCJ=no
18599         cat <<EOF 1>&2
18600
18601 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18602 *** create shared libraries on Solaris systems.  Therefore, libtool
18603 *** is disabling shared libraries support.  We urge you to upgrade GNU
18604 *** binutils to release 2.9.1 or newer.  Another option is to modify
18605 *** your PATH or compiler configuration so that the native linker is
18606 *** used, and then restart.
18607
18608 EOF
18609       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18610         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18611         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18612       else
18613         ld_shlibs_GCJ=no
18614       fi
18615       ;;
18616
18617     sunos4*)
18618       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18619       wlarc=
18620       hardcode_direct_GCJ=yes
18621       hardcode_shlibpath_var_GCJ=no
18622       ;;
18623
18624     *)
18625       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18626         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18627         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18628       else
18629         ld_shlibs_GCJ=no
18630       fi
18631       ;;
18632     esac
18633
18634     if test "$ld_shlibs_GCJ" = no; then
18635       runpath_var=
18636       hardcode_libdir_flag_spec_GCJ=
18637       export_dynamic_flag_spec_GCJ=
18638       whole_archive_flag_spec_GCJ=
18639     fi
18640   else
18641     # PORTME fill in a description of your system's linker (not GNU ld)
18642     case $host_os in
18643     aix3*)
18644       allow_undefined_flag_GCJ=unsupported
18645       always_export_symbols_GCJ=yes
18646       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18647       # Note: this linker hardcodes the directories in LIBPATH if there
18648       # are no directories specified by -L.
18649       hardcode_minus_L_GCJ=yes
18650       if test "$GCC" = yes && test -z "$link_static_flag"; then
18651         # Neither direct hardcoding nor static linking is supported with a
18652         # broken collect2.
18653         hardcode_direct_GCJ=unsupported
18654       fi
18655       ;;
18656
18657     aix4* | aix5*)
18658       if test "$host_cpu" = ia64; then
18659         # On IA64, the linker does run time linking by default, so we don't
18660         # have to do anything special.
18661         aix_use_runtimelinking=no
18662         exp_sym_flag='-Bexport'
18663         no_entry_flag=""
18664       else
18665         # If we're using GNU nm, then we don't want the "-C" option.
18666         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18667         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18668           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18669         else
18670           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18671         fi
18672         aix_use_runtimelinking=no
18673
18674         # Test if we are trying to use run time linking or normal
18675         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18676         # need to do runtime linking.
18677         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18678           for ld_flag in $LDFLAGS; do
18679           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18680             aix_use_runtimelinking=yes
18681             break
18682           fi
18683           done
18684         esac
18685
18686         exp_sym_flag='-bexport'
18687         no_entry_flag='-bnoentry'
18688       fi
18689
18690       # When large executables or shared objects are built, AIX ld can
18691       # have problems creating the table of contents.  If linking a library
18692       # or program results in "error TOC overflow" add -mminimal-toc to
18693       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18694       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18695
18696       archive_cmds_GCJ=''
18697       hardcode_direct_GCJ=yes
18698       hardcode_libdir_separator_GCJ=':'
18699       link_all_deplibs_GCJ=yes
18700
18701       if test "$GCC" = yes; then
18702         case $host_os in aix4.[012]|aix4.[012].*)
18703         # We only want to do this on AIX 4.2 and lower, the check
18704         # below for broken collect2 doesn't work under 4.3+
18705           collect2name=`${CC} -print-prog-name=collect2`
18706           if test -f "$collect2name" && \
18707            strings "$collect2name" | grep resolve_lib_name >/dev/null
18708           then
18709           # We have reworked collect2
18710           hardcode_direct_GCJ=yes
18711           else
18712           # We have old collect2
18713           hardcode_direct_GCJ=unsupported
18714           # It fails to find uninstalled libraries when the uninstalled
18715           # path is not listed in the libpath.  Setting hardcode_minus_L
18716           # to unsupported forces relinking
18717           hardcode_minus_L_GCJ=yes
18718           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18719           hardcode_libdir_separator_GCJ=
18720           fi
18721         esac
18722         shared_flag='-shared'
18723         if test "$aix_use_runtimelinking" = yes; then
18724           shared_flag="$shared_flag "'${wl}-G'
18725         fi
18726       else
18727         # not using gcc
18728         if test "$host_cpu" = ia64; then
18729         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18730         # chokes on -Wl,-G. The following line is correct:
18731           shared_flag='-G'
18732         else
18733         if test "$aix_use_runtimelinking" = yes; then
18734             shared_flag='${wl}-G'
18735           else
18736             shared_flag='${wl}-bM:SRE'
18737         fi
18738         fi
18739       fi
18740
18741       # It seems that -bexpall does not export symbols beginning with
18742       # underscore (_), so it is better to generate a list of symbols to export.
18743       always_export_symbols_GCJ=yes
18744       if test "$aix_use_runtimelinking" = yes; then
18745         # Warning - without using the other runtime loading flags (-brtl),
18746         # -berok will link without error, but may produce a broken library.
18747         allow_undefined_flag_GCJ='-berok'
18748        # Determine the default libpath from the value encoded in an empty executable.
18749        cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h.  */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h.  */
18755
18756 int
18757 main ()
18758 {
18759
18760   ;
18761   return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766   (eval $ac_link) 2>conftest.er1
18767   ac_status=$?
18768   grep -v '^ *+' conftest.er1 >conftest.err
18769   rm -f conftest.er1
18770   cat conftest.err >&5
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); } &&
18773          { ac_try='test -z "$ac_c_werror_flag"
18774                          || test ! -s conftest.err'
18775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776   (eval $ac_try) 2>&5
18777   ac_status=$?
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); }; } &&
18780          { ac_try='test -s conftest$ac_exeext'
18781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782   (eval $ac_try) 2>&5
18783   ac_status=$?
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); }; }; then
18786
18787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18788 }'`
18789 # Check for a 64-bit object if we didn't find anything.
18790 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; }
18791 }'`; fi
18792 else
18793   echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796 fi
18797 rm -f conftest.err conftest.$ac_objext \
18798       conftest$ac_exeext conftest.$ac_ext
18799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18800
18801        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18802         archive_expsym_cmds_GCJ="\$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"
18803        else
18804         if test "$host_cpu" = ia64; then
18805           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18806           allow_undefined_flag_GCJ="-z nodefs"
18807           archive_expsym_cmds_GCJ="\$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"
18808         else
18809          # Determine the default libpath from the value encoded in an empty executable.
18810          cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h.  */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h.  */
18816
18817 int
18818 main ()
18819 {
18820
18821   ;
18822   return 0;
18823 }
18824 _ACEOF
18825 rm -f conftest.$ac_objext conftest$ac_exeext
18826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18827   (eval $ac_link) 2>conftest.er1
18828   ac_status=$?
18829   grep -v '^ *+' conftest.er1 >conftest.err
18830   rm -f conftest.er1
18831   cat conftest.err >&5
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); } &&
18834          { ac_try='test -z "$ac_c_werror_flag"
18835                          || test ! -s conftest.err'
18836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837   (eval $ac_try) 2>&5
18838   ac_status=$?
18839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840   (exit $ac_status); }; } &&
18841          { ac_try='test -s conftest$ac_exeext'
18842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843   (eval $ac_try) 2>&5
18844   ac_status=$?
18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); }; }; then
18847
18848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18849 }'`
18850 # Check for a 64-bit object if we didn't find anything.
18851 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; }
18852 }'`; fi
18853 else
18854   echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18856
18857 fi
18858 rm -f conftest.err conftest.$ac_objext \
18859       conftest$ac_exeext conftest.$ac_ext
18860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18861
18862          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18863           # Warning - without using the other run time loading flags,
18864           # -berok will link without error, but may produce a broken library.
18865           no_undefined_flag_GCJ=' ${wl}-bernotok'
18866           allow_undefined_flag_GCJ=' ${wl}-berok'
18867           # -bexpall does not export symbols beginning with underscore (_)
18868           always_export_symbols_GCJ=yes
18869           # Exported symbols can be pulled into shared objects from archives
18870           whole_archive_flag_spec_GCJ=' '
18871           archive_cmds_need_lc_GCJ=yes
18872           # This is similar to how AIX traditionally builds it's shared libraries.
18873           archive_expsym_cmds_GCJ="\$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'
18874         fi
18875       fi
18876       ;;
18877
18878     amigaos*)
18879       archive_cmds_GCJ='$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)'
18880       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18881       hardcode_minus_L_GCJ=yes
18882       # see comment about different semantics on the GNU ld section
18883       ld_shlibs_GCJ=no
18884       ;;
18885
18886     bsdi[45]*)
18887       export_dynamic_flag_spec_GCJ=-rdynamic
18888       ;;
18889
18890     cygwin* | mingw* | pw32*)
18891       # When not using gcc, we currently assume that we are using
18892       # Microsoft Visual C++.
18893       # hardcode_libdir_flag_spec is actually meaningless, as there is
18894       # no search path for DLLs.
18895       hardcode_libdir_flag_spec_GCJ=' '
18896       allow_undefined_flag_GCJ=unsupported
18897       # Tell ltmain to make .lib files, not .a files.
18898       libext=lib
18899       # Tell ltmain to make .dll files, not .so files.
18900       shrext_cmds=".dll"
18901       # FIXME: Setting linknames here is a bad hack.
18902       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18903       # The linker will automatically build a .lib file if we build a DLL.
18904       old_archive_From_new_cmds_GCJ='true'
18905       # FIXME: Should let the user specify the lib program.
18906       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18907       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18908       enable_shared_with_static_runtimes_GCJ=yes
18909       ;;
18910
18911     darwin* | rhapsody*)
18912       case "$host_os" in
18913         rhapsody* | darwin1.[012])
18914          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18915          ;;
18916        *) # Darwin 1.3 on
18917          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18918            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18919          else
18920            case ${MACOSX_DEPLOYMENT_TARGET} in
18921              10.[012])
18922                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18923                ;;
18924              10.*)
18925                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18926                ;;
18927            esac
18928          fi
18929          ;;
18930       esac
18931       archive_cmds_need_lc_GCJ=no
18932       hardcode_direct_GCJ=no
18933       hardcode_automatic_GCJ=yes
18934       hardcode_shlibpath_var_GCJ=unsupported
18935       whole_archive_flag_spec_GCJ=''
18936       link_all_deplibs_GCJ=yes
18937     if test "$GCC" = yes ; then
18938         output_verbose_link_cmd='echo'
18939         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18940       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18941       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18942       archive_expsym_cmds_GCJ='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}'
18943       module_expsym_cmds_GCJ='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}'
18944     else
18945       case $cc_basename in
18946         xlc*)
18947          output_verbose_link_cmd='echo'
18948          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18949          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18950           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18951          archive_expsym_cmds_GCJ='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}'
18952           module_expsym_cmds_GCJ='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}'
18953           ;;
18954        *)
18955          ld_shlibs_GCJ=no
18956           ;;
18957       esac
18958     fi
18959       ;;
18960
18961     dgux*)
18962       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18963       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18964       hardcode_shlibpath_var_GCJ=no
18965       ;;
18966
18967     freebsd1*)
18968       ld_shlibs_GCJ=no
18969       ;;
18970
18971     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18972     # support.  Future versions do this automatically, but an explicit c++rt0.o
18973     # does not break anything, and helps significantly (at the cost of a little
18974     # extra space).
18975     freebsd2.2*)
18976       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18977       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18978       hardcode_direct_GCJ=yes
18979       hardcode_shlibpath_var_GCJ=no
18980       ;;
18981
18982     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18983     freebsd2*)
18984       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18985       hardcode_direct_GCJ=yes
18986       hardcode_minus_L_GCJ=yes
18987       hardcode_shlibpath_var_GCJ=no
18988       ;;
18989
18990     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18991     freebsd* | kfreebsd*-gnu | dragonfly*)
18992       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18993       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18994       hardcode_direct_GCJ=yes
18995       hardcode_shlibpath_var_GCJ=no
18996       ;;
18997
18998     hpux9*)
18999       if test "$GCC" = yes; then
19000         archive_cmds_GCJ='$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'
19001       else
19002         archive_cmds_GCJ='$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'
19003       fi
19004       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19005       hardcode_libdir_separator_GCJ=:
19006       hardcode_direct_GCJ=yes
19007
19008       # hardcode_minus_L: Not really in the search PATH,
19009       # but as the default location of the library.
19010       hardcode_minus_L_GCJ=yes
19011       export_dynamic_flag_spec_GCJ='${wl}-E'
19012       ;;
19013
19014     hpux10* | hpux11*)
19015       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19016         case "$host_cpu" in
19017         hppa*64*|ia64*)
19018           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19019           ;;
19020         *)
19021           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19022           ;;
19023         esac
19024       else
19025         case "$host_cpu" in
19026         hppa*64*|ia64*)
19027           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19028           ;;
19029         *)
19030           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19031           ;;
19032         esac
19033       fi
19034       if test "$with_gnu_ld" = no; then
19035         case "$host_cpu" in
19036         hppa*64*)
19037           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19038           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19039           hardcode_libdir_separator_GCJ=:
19040           hardcode_direct_GCJ=no
19041           hardcode_shlibpath_var_GCJ=no
19042           ;;
19043         ia64*)
19044           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19045           hardcode_direct_GCJ=no
19046           hardcode_shlibpath_var_GCJ=no
19047
19048           # hardcode_minus_L: Not really in the search PATH,
19049           # but as the default location of the library.
19050           hardcode_minus_L_GCJ=yes
19051           ;;
19052         *)
19053           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19054           hardcode_libdir_separator_GCJ=:
19055           hardcode_direct_GCJ=yes
19056           export_dynamic_flag_spec_GCJ='${wl}-E'
19057
19058           # hardcode_minus_L: Not really in the search PATH,
19059           # but as the default location of the library.
19060           hardcode_minus_L_GCJ=yes
19061           ;;
19062         esac
19063       fi
19064       ;;
19065
19066     irix5* | irix6* | nonstopux*)
19067       if test "$GCC" = yes; then
19068         archive_cmds_GCJ='$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'
19069       else
19070         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19071         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19072       fi
19073       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19074       hardcode_libdir_separator_GCJ=:
19075       link_all_deplibs_GCJ=yes
19076       ;;
19077
19078     netbsd*)
19079       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19080         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19081       else
19082         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19083       fi
19084       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19085       hardcode_direct_GCJ=yes
19086       hardcode_shlibpath_var_GCJ=no
19087       ;;
19088
19089     newsos6)
19090       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19091       hardcode_direct_GCJ=yes
19092       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19093       hardcode_libdir_separator_GCJ=:
19094       hardcode_shlibpath_var_GCJ=no
19095       ;;
19096
19097     openbsd*)
19098       hardcode_direct_GCJ=yes
19099       hardcode_shlibpath_var_GCJ=no
19100       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19101         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19102         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19103         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19104         export_dynamic_flag_spec_GCJ='${wl}-E'
19105       else
19106        case $host_os in
19107          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19108            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19109            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19110            ;;
19111          *)
19112            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19113            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19114            ;;
19115        esac
19116       fi
19117       ;;
19118
19119     os2*)
19120       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19121       hardcode_minus_L_GCJ=yes
19122       allow_undefined_flag_GCJ=unsupported
19123       archive_cmds_GCJ='$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'
19124       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19125       ;;
19126
19127     osf3*)
19128       if test "$GCC" = yes; then
19129         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19130         archive_cmds_GCJ='$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'
19131       else
19132         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19133         archive_cmds_GCJ='$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'
19134       fi
19135       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19136       hardcode_libdir_separator_GCJ=:
19137       ;;
19138
19139     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19140       if test "$GCC" = yes; then
19141         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19142         archive_cmds_GCJ='$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'
19143         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19144       else
19145         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19146         archive_cmds_GCJ='$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'
19147         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19148         $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'
19149
19150         # Both c and cxx compiler support -rpath directly
19151         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19152       fi
19153       hardcode_libdir_separator_GCJ=:
19154       ;;
19155
19156     sco3.2v5*)
19157       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19158       hardcode_shlibpath_var_GCJ=no
19159       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19160       runpath_var=LD_RUN_PATH
19161       hardcode_runpath_var=yes
19162       ;;
19163
19164     solaris*)
19165       no_undefined_flag_GCJ=' -z text'
19166       if test "$GCC" = yes; then
19167         wlarc='${wl}'
19168         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19169         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19170           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19171       else
19172         wlarc=''
19173         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19174         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19175         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19176       fi
19177       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19178       hardcode_shlibpath_var_GCJ=no
19179       case $host_os in
19180       solaris2.[0-5] | solaris2.[0-5].*) ;;
19181       *)
19182         # The compiler driver will combine linker options so we
19183         # cannot just pass the convience library names through
19184         # without $wl, iff we do not link with $LD.
19185         # Luckily, gcc supports the same syntax we need for Sun Studio.
19186         # Supported since Solaris 2.6 (maybe 2.5.1?)
19187         case $wlarc in
19188         '')
19189           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19190         *)
19191           whole_archive_flag_spec_GCJ='${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' ;;
19192         esac ;;
19193       esac
19194       link_all_deplibs_GCJ=yes
19195       ;;
19196
19197     sunos4*)
19198       if test "x$host_vendor" = xsequent; then
19199         # Use $CC to link under sequent, because it throws in some extra .o
19200         # files that make .init and .fini sections work.
19201         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19202       else
19203         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19204       fi
19205       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19206       hardcode_direct_GCJ=yes
19207       hardcode_minus_L_GCJ=yes
19208       hardcode_shlibpath_var_GCJ=no
19209       ;;
19210
19211     sysv4)
19212       case $host_vendor in
19213         sni)
19214           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19215           hardcode_direct_GCJ=yes # is this really true???
19216         ;;
19217         siemens)
19218           ## LD is ld it makes a PLAMLIB
19219           ## CC just makes a GrossModule.
19220           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19221           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19222           hardcode_direct_GCJ=no
19223         ;;
19224         motorola)
19225           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19226           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19227         ;;
19228       esac
19229       runpath_var='LD_RUN_PATH'
19230       hardcode_shlibpath_var_GCJ=no
19231       ;;
19232
19233     sysv4.3*)
19234       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19235       hardcode_shlibpath_var_GCJ=no
19236       export_dynamic_flag_spec_GCJ='-Bexport'
19237       ;;
19238
19239     sysv4*MP*)
19240       if test -d /usr/nec; then
19241         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19242         hardcode_shlibpath_var_GCJ=no
19243         runpath_var=LD_RUN_PATH
19244         hardcode_runpath_var=yes
19245         ld_shlibs_GCJ=yes
19246       fi
19247       ;;
19248
19249     sysv4.2uw2*)
19250       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19251       hardcode_direct_GCJ=yes
19252       hardcode_minus_L_GCJ=no
19253       hardcode_shlibpath_var_GCJ=no
19254       hardcode_runpath_var=yes
19255       runpath_var=LD_RUN_PATH
19256       ;;
19257
19258    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19259       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19260       if test "$GCC" = yes; then
19261         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19262       else
19263         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19264       fi
19265       runpath_var='LD_RUN_PATH'
19266       hardcode_shlibpath_var_GCJ=no
19267       ;;
19268
19269     sysv5*)
19270       no_undefined_flag_GCJ=' -z text'
19271       # $CC -shared without GNU ld will not create a library from C++
19272       # object files and a static libstdc++, better avoid it by now
19273       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19274       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19275                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19276       hardcode_libdir_flag_spec_GCJ=
19277       hardcode_shlibpath_var_GCJ=no
19278       runpath_var='LD_RUN_PATH'
19279       ;;
19280
19281     uts4*)
19282       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19283       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19284       hardcode_shlibpath_var_GCJ=no
19285       ;;
19286
19287     *)
19288       ld_shlibs_GCJ=no
19289       ;;
19290     esac
19291   fi
19292
19293 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19294 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19295 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19296
19297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19298 if test "$GCC" = yes; then
19299   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19300 fi
19301
19302 #
19303 # Do we need to explicitly link libc?
19304 #
19305 case "x$archive_cmds_need_lc_GCJ" in
19306 x|xyes)
19307   # Assume -lc should be added
19308   archive_cmds_need_lc_GCJ=yes
19309
19310   if test "$enable_shared" = yes && test "$GCC" = yes; then
19311     case $archive_cmds_GCJ in
19312     *'~'*)
19313       # FIXME: we may have to deal with multi-command sequences.
19314       ;;
19315     '$CC '*)
19316       # Test whether the compiler implicitly links with -lc since on some
19317       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19318       # to ld, don't add -lc before -lgcc.
19319       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19320 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19321       $rm conftest*
19322       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19323
19324       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325   (eval $ac_compile) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } 2>conftest.err; then
19329         soname=conftest
19330         lib=conftest
19331         libobjs=conftest.$ac_objext
19332         deplibs=
19333         wl=$lt_prog_compiler_wl_GCJ
19334         compiler_flags=-v
19335         linker_flags=-v
19336         verstring=
19337         output_objdir=.
19338         libname=conftest
19339         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19340         allow_undefined_flag_GCJ=
19341         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19342   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }
19346         then
19347           archive_cmds_need_lc_GCJ=no
19348         else
19349           archive_cmds_need_lc_GCJ=yes
19350         fi
19351         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19352       else
19353         cat conftest.err 1>&5
19354       fi
19355       $rm conftest*
19356       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19357 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19358       ;;
19359     esac
19360   fi
19361   ;;
19362 esac
19363
19364 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19366 library_names_spec=
19367 libname_spec='lib$name'
19368 soname_spec=
19369 shrext_cmds=".so"
19370 postinstall_cmds=
19371 postuninstall_cmds=
19372 finish_cmds=
19373 finish_eval=
19374 shlibpath_var=
19375 shlibpath_overrides_runpath=unknown
19376 version_type=none
19377 dynamic_linker="$host_os ld.so"
19378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19379 if test "$GCC" = yes; then
19380   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19381   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19382     # if the path contains ";" then we assume it to be the separator
19383     # otherwise default to the standard path separator (i.e. ":") - it is
19384     # assumed that no part of a normal pathname contains ";" but that should
19385     # okay in the real world where ";" in dirpaths is itself problematic.
19386     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19387   else
19388     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19389   fi
19390 else
19391   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19392 fi
19393 need_lib_prefix=unknown
19394 hardcode_into_libs=no
19395
19396 # when you set need_version to no, make sure it does not cause -set_version
19397 # flags to be left without arguments
19398 need_version=unknown
19399
19400 case $host_os in
19401 aix3*)
19402   version_type=linux
19403   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19404   shlibpath_var=LIBPATH
19405
19406   # AIX 3 has no versioning support, so we append a major version to the name.
19407   soname_spec='${libname}${release}${shared_ext}$major'
19408   ;;
19409
19410 aix4* | aix5*)
19411   version_type=linux
19412   need_lib_prefix=no
19413   need_version=no
19414   hardcode_into_libs=yes
19415   if test "$host_cpu" = ia64; then
19416     # AIX 5 supports IA64
19417     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19418     shlibpath_var=LD_LIBRARY_PATH
19419   else
19420     # With GCC up to 2.95.x, collect2 would create an import file
19421     # for dependence libraries.  The import file would start with
19422     # the line `#! .'.  This would cause the generated library to
19423     # depend on `.', always an invalid library.  This was fixed in
19424     # development snapshots of GCC prior to 3.0.
19425     case $host_os in
19426       aix4 | aix4.[01] | aix4.[01].*)
19427       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19428            echo ' yes '
19429            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19430         :
19431       else
19432         can_build_shared=no
19433       fi
19434       ;;
19435     esac
19436     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19437     # soname into executable. Probably we can add versioning support to
19438     # collect2, so additional links can be useful in future.
19439     if test "$aix_use_runtimelinking" = yes; then
19440       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19441       # instead of lib<name>.a to let people know that these are not
19442       # typical AIX shared libraries.
19443       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19444     else
19445       # We preserve .a as extension for shared libraries through AIX4.2
19446       # and later when we are not doing run time linking.
19447       library_names_spec='${libname}${release}.a $libname.a'
19448       soname_spec='${libname}${release}${shared_ext}$major'
19449     fi
19450     shlibpath_var=LIBPATH
19451   fi
19452   ;;
19453
19454 amigaos*)
19455   library_names_spec='$libname.ixlibrary $libname.a'
19456   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19457   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'
19458   ;;
19459
19460 beos*)
19461   library_names_spec='${libname}${shared_ext}'
19462   dynamic_linker="$host_os ld.so"
19463   shlibpath_var=LIBRARY_PATH
19464   ;;
19465
19466 bsdi[45]*)
19467   version_type=linux
19468   need_version=no
19469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19470   soname_spec='${libname}${release}${shared_ext}$major'
19471   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19472   shlibpath_var=LD_LIBRARY_PATH
19473   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19474   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19475   # the default ld.so.conf also contains /usr/contrib/lib and
19476   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19477   # libtool to hard-code these into programs
19478   ;;
19479
19480 cygwin* | mingw* | pw32*)
19481   version_type=windows
19482   shrext_cmds=".dll"
19483   need_version=no
19484   need_lib_prefix=no
19485
19486   case $GCC,$host_os in
19487   yes,cygwin* | yes,mingw* | yes,pw32*)
19488     library_names_spec='$libname.dll.a'
19489     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19490     postinstall_cmds='base_file=`basename \${file}`~
19491       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19492       dldir=$destdir/`dirname \$dlpath`~
19493       test -d \$dldir || mkdir -p \$dldir~
19494       $install_prog $dir/$dlname \$dldir/$dlname'
19495     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19496       dlpath=$dir/\$dldll~
19497        $rm \$dlpath'
19498     shlibpath_overrides_runpath=yes
19499
19500     case $host_os in
19501     cygwin*)
19502       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19503       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19504       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19505       ;;
19506     mingw*)
19507       # MinGW DLLs use traditional 'lib' prefix
19508       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19509       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19510       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19511         # It is most probably a Windows format PATH printed by
19512         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19513         # path with ; separators, and with drive letters. We can handle the
19514         # drive letters (cygwin fileutils understands them), so leave them,
19515         # especially as we might pass files found there to a mingw objdump,
19516         # which wouldn't understand a cygwinified path. Ahh.
19517         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19518       else
19519         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19520       fi
19521       ;;
19522     pw32*)
19523       # pw32 DLLs use 'pw' prefix rather than 'lib'
19524       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19525       ;;
19526     esac
19527     ;;
19528
19529   *)
19530     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19531     ;;
19532   esac
19533   dynamic_linker='Win32 ld.exe'
19534   # FIXME: first we should search . and the directory the executable is in
19535   shlibpath_var=PATH
19536   ;;
19537
19538 darwin* | rhapsody*)
19539   dynamic_linker="$host_os dyld"
19540   version_type=darwin
19541   need_lib_prefix=no
19542   need_version=no
19543   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19544   soname_spec='${libname}${release}${major}$shared_ext'
19545   shlibpath_overrides_runpath=yes
19546   shlibpath_var=DYLD_LIBRARY_PATH
19547   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19548   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19549   if test "$GCC" = yes; then
19550     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"`
19551   else
19552     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19553   fi
19554   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19555   ;;
19556
19557 dgux*)
19558   version_type=linux
19559   need_lib_prefix=no
19560   need_version=no
19561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19562   soname_spec='${libname}${release}${shared_ext}$major'
19563   shlibpath_var=LD_LIBRARY_PATH
19564   ;;
19565
19566 freebsd1*)
19567   dynamic_linker=no
19568   ;;
19569
19570 kfreebsd*-gnu)
19571   version_type=linux
19572   need_lib_prefix=no
19573   need_version=no
19574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19575   soname_spec='${libname}${release}${shared_ext}$major'
19576   shlibpath_var=LD_LIBRARY_PATH
19577   shlibpath_overrides_runpath=no
19578   hardcode_into_libs=yes
19579   dynamic_linker='GNU ld.so'
19580   ;;
19581
19582 freebsd* | dragonfly*)
19583   # DragonFly does not have aout.  When/if they implement a new
19584   # versioning mechanism, adjust this.
19585   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19586   version_type=freebsd-$objformat
19587   case $version_type in
19588     freebsd-elf*)
19589       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19590       need_version=no
19591       need_lib_prefix=no
19592       ;;
19593     freebsd-*)
19594       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19595       need_version=yes
19596       ;;
19597   esac
19598   shlibpath_var=LD_LIBRARY_PATH
19599   case $host_os in
19600   freebsd2*)
19601     shlibpath_overrides_runpath=yes
19602     ;;
19603   freebsd3.[01]* | freebsdelf3.[01]*)
19604     shlibpath_overrides_runpath=yes
19605     hardcode_into_libs=yes
19606     ;;
19607   *) # from 3.2 on
19608     shlibpath_overrides_runpath=no
19609     hardcode_into_libs=yes
19610     ;;
19611   esac
19612   ;;
19613
19614 gnu*)
19615   version_type=linux
19616   need_lib_prefix=no
19617   need_version=no
19618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19619   soname_spec='${libname}${release}${shared_ext}$major'
19620   shlibpath_var=LD_LIBRARY_PATH
19621   hardcode_into_libs=yes
19622   ;;
19623
19624 hpux9* | hpux10* | hpux11*)
19625   # Give a soname corresponding to the major version so that dld.sl refuses to
19626   # link against other versions.
19627   version_type=sunos
19628   need_lib_prefix=no
19629   need_version=no
19630   case "$host_cpu" in
19631   ia64*)
19632     shrext_cmds='.so'
19633     hardcode_into_libs=yes
19634     dynamic_linker="$host_os dld.so"
19635     shlibpath_var=LD_LIBRARY_PATH
19636     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19638     soname_spec='${libname}${release}${shared_ext}$major'
19639     if test "X$HPUX_IA64_MODE" = X32; then
19640       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19641     else
19642       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19643     fi
19644     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19645     ;;
19646    hppa*64*)
19647      shrext_cmds='.sl'
19648      hardcode_into_libs=yes
19649      dynamic_linker="$host_os dld.sl"
19650      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19651      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19652      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19653      soname_spec='${libname}${release}${shared_ext}$major'
19654      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19655      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19656      ;;
19657    *)
19658     shrext_cmds='.sl'
19659     dynamic_linker="$host_os dld.sl"
19660     shlibpath_var=SHLIB_PATH
19661     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19663     soname_spec='${libname}${release}${shared_ext}$major'
19664     ;;
19665   esac
19666   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19667   postinstall_cmds='chmod 555 $lib'
19668   ;;
19669
19670 irix5* | irix6* | nonstopux*)
19671   case $host_os in
19672     nonstopux*) version_type=nonstopux ;;
19673     *)
19674         if test "$lt_cv_prog_gnu_ld" = yes; then
19675                 version_type=linux
19676         else
19677                 version_type=irix
19678         fi ;;
19679   esac
19680   need_lib_prefix=no
19681   need_version=no
19682   soname_spec='${libname}${release}${shared_ext}$major'
19683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19684   case $host_os in
19685   irix5* | nonstopux*)
19686     libsuff= shlibsuff=
19687     ;;
19688   *)
19689     case $LD in # libtool.m4 will add one of these switches to LD
19690     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19691       libsuff= shlibsuff= libmagic=32-bit;;
19692     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19693       libsuff=32 shlibsuff=N32 libmagic=N32;;
19694     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19695       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19696     *) libsuff= shlibsuff= libmagic=never-match;;
19697     esac
19698     ;;
19699   esac
19700   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19701   shlibpath_overrides_runpath=no
19702   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19703   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19704   hardcode_into_libs=yes
19705   ;;
19706
19707 # No shared lib support for Linux oldld, aout, or coff.
19708 linux*oldld* | linux*aout* | linux*coff*)
19709   dynamic_linker=no
19710   ;;
19711
19712 # This must be Linux ELF.
19713 linux*)
19714   version_type=linux
19715   need_lib_prefix=no
19716   need_version=no
19717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19718   soname_spec='${libname}${release}${shared_ext}$major'
19719   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19720   shlibpath_var=LD_LIBRARY_PATH
19721   shlibpath_overrides_runpath=no
19722   # This implies no fast_install, which is unacceptable.
19723   # Some rework will be needed to allow for fast_install
19724   # before this can be enabled.
19725   hardcode_into_libs=yes
19726
19727   # Append ld.so.conf contents to the search path
19728   if test -f /etc/ld.so.conf; then
19729     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' ' '`
19730     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19731   fi
19732
19733   # We used to test for /lib/ld.so.1 and disable shared libraries on
19734   # powerpc, because MkLinux only supported shared libraries with the
19735   # GNU dynamic linker.  Since this was broken with cross compilers,
19736   # most powerpc-linux boxes support dynamic linking these days and
19737   # people can always --disable-shared, the test was removed, and we
19738   # assume the GNU/Linux dynamic linker is in use.
19739   dynamic_linker='GNU/Linux ld.so'
19740   ;;
19741
19742 knetbsd*-gnu)
19743   version_type=linux
19744   need_lib_prefix=no
19745   need_version=no
19746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19747   soname_spec='${libname}${release}${shared_ext}$major'
19748   shlibpath_var=LD_LIBRARY_PATH
19749   shlibpath_overrides_runpath=no
19750   hardcode_into_libs=yes
19751   dynamic_linker='GNU ld.so'
19752   ;;
19753
19754 netbsd*)
19755   version_type=sunos
19756   need_lib_prefix=no
19757   need_version=no
19758   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19760     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19761     dynamic_linker='NetBSD (a.out) ld.so'
19762   else
19763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19764     soname_spec='${libname}${release}${shared_ext}$major'
19765     dynamic_linker='NetBSD ld.elf_so'
19766   fi
19767   shlibpath_var=LD_LIBRARY_PATH
19768   shlibpath_overrides_runpath=yes
19769   hardcode_into_libs=yes
19770   ;;
19771
19772 newsos6)
19773   version_type=linux
19774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19775   shlibpath_var=LD_LIBRARY_PATH
19776   shlibpath_overrides_runpath=yes
19777   ;;
19778
19779 nto-qnx*)
19780   version_type=linux
19781   need_lib_prefix=no
19782   need_version=no
19783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784   soname_spec='${libname}${release}${shared_ext}$major'
19785   shlibpath_var=LD_LIBRARY_PATH
19786   shlibpath_overrides_runpath=yes
19787   ;;
19788
19789 openbsd*)
19790   version_type=sunos
19791   need_lib_prefix=no
19792   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19793   case $host_os in
19794     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19795     *)                         need_version=no  ;;
19796   esac
19797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19798   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19799   shlibpath_var=LD_LIBRARY_PATH
19800   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19801     case $host_os in
19802       openbsd2.[89] | openbsd2.[89].*)
19803         shlibpath_overrides_runpath=no
19804         ;;
19805       *)
19806         shlibpath_overrides_runpath=yes
19807         ;;
19808       esac
19809   else
19810     shlibpath_overrides_runpath=yes
19811   fi
19812   ;;
19813
19814 os2*)
19815   libname_spec='$name'
19816   shrext_cmds=".dll"
19817   need_lib_prefix=no
19818   library_names_spec='$libname${shared_ext} $libname.a'
19819   dynamic_linker='OS/2 ld.exe'
19820   shlibpath_var=LIBPATH
19821   ;;
19822
19823 osf3* | osf4* | osf5*)
19824   version_type=osf
19825   need_lib_prefix=no
19826   need_version=no
19827   soname_spec='${libname}${release}${shared_ext}$major'
19828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829   shlibpath_var=LD_LIBRARY_PATH
19830   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19831   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19832   ;;
19833
19834 sco3.2v5*)
19835   version_type=osf
19836   soname_spec='${libname}${release}${shared_ext}$major'
19837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19838   shlibpath_var=LD_LIBRARY_PATH
19839   ;;
19840
19841 solaris*)
19842   version_type=linux
19843   need_lib_prefix=no
19844   need_version=no
19845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19846   soname_spec='${libname}${release}${shared_ext}$major'
19847   shlibpath_var=LD_LIBRARY_PATH
19848   shlibpath_overrides_runpath=yes
19849   hardcode_into_libs=yes
19850   # ldd complains unless libraries are executable
19851   postinstall_cmds='chmod +x $lib'
19852   ;;
19853
19854 sunos4*)
19855   version_type=sunos
19856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19857   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19858   shlibpath_var=LD_LIBRARY_PATH
19859   shlibpath_overrides_runpath=yes
19860   if test "$with_gnu_ld" = yes; then
19861     need_lib_prefix=no
19862   fi
19863   need_version=yes
19864   ;;
19865
19866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19867   version_type=linux
19868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19869   soname_spec='${libname}${release}${shared_ext}$major'
19870   shlibpath_var=LD_LIBRARY_PATH
19871   case $host_vendor in
19872     sni)
19873       shlibpath_overrides_runpath=no
19874       need_lib_prefix=no
19875       export_dynamic_flag_spec='${wl}-Blargedynsym'
19876       runpath_var=LD_RUN_PATH
19877       ;;
19878     siemens)
19879       need_lib_prefix=no
19880       ;;
19881     motorola)
19882       need_lib_prefix=no
19883       need_version=no
19884       shlibpath_overrides_runpath=no
19885       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19886       ;;
19887   esac
19888   ;;
19889
19890 sysv4*MP*)
19891   if test -d /usr/nec ;then
19892     version_type=linux
19893     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19894     soname_spec='$libname${shared_ext}.$major'
19895     shlibpath_var=LD_LIBRARY_PATH
19896   fi
19897   ;;
19898
19899 uts4*)
19900   version_type=linux
19901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19902   soname_spec='${libname}${release}${shared_ext}$major'
19903   shlibpath_var=LD_LIBRARY_PATH
19904   ;;
19905
19906 *)
19907   dynamic_linker=no
19908   ;;
19909 esac
19910 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19911 echo "${ECHO_T}$dynamic_linker" >&6
19912 test "$dynamic_linker" = no && can_build_shared=no
19913
19914 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19915 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19916 hardcode_action_GCJ=
19917 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19918    test -n "$runpath_var_GCJ" || \
19919    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19920
19921   # We can hardcode non-existant directories.
19922   if test "$hardcode_direct_GCJ" != no &&
19923      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19924      # have to relink, otherwise we might link with an installed library
19925      # when we should be linking with a yet-to-be-installed one
19926      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19927      test "$hardcode_minus_L_GCJ" != no; then
19928     # Linking always hardcodes the temporary library directory.
19929     hardcode_action_GCJ=relink
19930   else
19931     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19932     hardcode_action_GCJ=immediate
19933   fi
19934 else
19935   # We cannot hardcode anything, or else we can only hardcode existing
19936   # directories.
19937   hardcode_action_GCJ=unsupported
19938 fi
19939 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19940 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19941
19942 if test "$hardcode_action_GCJ" = relink; then
19943   # Fast installation is not supported
19944   enable_fast_install=no
19945 elif test "$shlibpath_overrides_runpath" = yes ||
19946      test "$enable_shared" = no; then
19947   # Fast installation is not necessary
19948   enable_fast_install=needless
19949 fi
19950
19951 striplib=
19952 old_striplib=
19953 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19954 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19955 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19956   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19957   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19958   echo "$as_me:$LINENO: result: yes" >&5
19959 echo "${ECHO_T}yes" >&6
19960 else
19961 # FIXME - insert some real tests, host_os isn't really good enough
19962   case $host_os in
19963    darwin*)
19964        if test -n "$STRIP" ; then
19965          striplib="$STRIP -x"
19966          echo "$as_me:$LINENO: result: yes" >&5
19967 echo "${ECHO_T}yes" >&6
19968        else
19969   echo "$as_me:$LINENO: result: no" >&5
19970 echo "${ECHO_T}no" >&6
19971 fi
19972        ;;
19973    *)
19974   echo "$as_me:$LINENO: result: no" >&5
19975 echo "${ECHO_T}no" >&6
19976     ;;
19977   esac
19978 fi
19979
19980 if test "x$enable_dlopen" != xyes; then
19981   enable_dlopen=unknown
19982   enable_dlopen_self=unknown
19983   enable_dlopen_self_static=unknown
19984 else
19985   lt_cv_dlopen=no
19986   lt_cv_dlopen_libs=
19987
19988   case $host_os in
19989   beos*)
19990     lt_cv_dlopen="load_add_on"
19991     lt_cv_dlopen_libs=
19992     lt_cv_dlopen_self=yes
19993     ;;
19994
19995   mingw* | pw32*)
19996     lt_cv_dlopen="LoadLibrary"
19997     lt_cv_dlopen_libs=
19998    ;;
19999
20000   cygwin*)
20001     lt_cv_dlopen="dlopen"
20002     lt_cv_dlopen_libs=
20003    ;;
20004
20005   darwin*)
20006   # if libdl is installed we need to link against it
20007     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20008 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20009 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20010   echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012   ac_check_lib_save_LIBS=$LIBS
20013 LIBS="-ldl  $LIBS"
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h.  */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h.  */
20020
20021 /* Override any gcc2 internal prototype to avoid an error.  */
20022 #ifdef __cplusplus
20023 extern "C"
20024 #endif
20025 /* We use char because int might match the return type of a gcc2
20026    builtin and then its argument prototype would still apply.  */
20027 char dlopen ();
20028 int
20029 main ()
20030 {
20031 dlopen ();
20032   ;
20033   return 0;
20034 }
20035 _ACEOF
20036 rm -f conftest.$ac_objext conftest$ac_exeext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20038   (eval $ac_link) 2>conftest.er1
20039   ac_status=$?
20040   grep -v '^ *+' conftest.er1 >conftest.err
20041   rm -f conftest.er1
20042   cat conftest.err >&5
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); } &&
20045          { ac_try='test -z "$ac_c_werror_flag"
20046                          || test ! -s conftest.err'
20047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048   (eval $ac_try) 2>&5
20049   ac_status=$?
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); }; } &&
20052          { ac_try='test -s conftest$ac_exeext'
20053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054   (eval $ac_try) 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }; }; then
20058   ac_cv_lib_dl_dlopen=yes
20059 else
20060   echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 ac_cv_lib_dl_dlopen=no
20064 fi
20065 rm -f conftest.err conftest.$ac_objext \
20066       conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20068 fi
20069 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20071 if test $ac_cv_lib_dl_dlopen = yes; then
20072   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20073 else
20074
20075     lt_cv_dlopen="dyld"
20076     lt_cv_dlopen_libs=
20077     lt_cv_dlopen_self=yes
20078
20079 fi
20080
20081    ;;
20082
20083   *)
20084     echo "$as_me:$LINENO: checking for shl_load" >&5
20085 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20086 if test "${ac_cv_func_shl_load+set}" = set; then
20087   echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089   cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h.  */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h.  */
20095 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20097 #define shl_load innocuous_shl_load
20098
20099 /* System header to define __stub macros and hopefully few prototypes,
20100     which can conflict with char shl_load (); below.
20101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20102     <limits.h> exists even on freestanding compilers.  */
20103
20104 #ifdef __STDC__
20105 # include <limits.h>
20106 #else
20107 # include <assert.h>
20108 #endif
20109
20110 #undef shl_load
20111
20112 /* Override any gcc2 internal prototype to avoid an error.  */
20113 #ifdef __cplusplus
20114 extern "C"
20115 {
20116 #endif
20117 /* We use char because int might match the return type of a gcc2
20118    builtin and then its argument prototype would still apply.  */
20119 char shl_load ();
20120 /* The GNU C library defines this for functions which it implements
20121     to always fail with ENOSYS.  Some functions are actually named
20122     something starting with __ and the normal name is an alias.  */
20123 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20124 choke me
20125 #else
20126 char (*f) () = shl_load;
20127 #endif
20128 #ifdef __cplusplus
20129 }
20130 #endif
20131
20132 int
20133 main ()
20134 {
20135 return f != shl_load;
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142   (eval $ac_link) 2>conftest.er1
20143   ac_status=$?
20144   grep -v '^ *+' conftest.er1 >conftest.err
20145   rm -f conftest.er1
20146   cat conftest.err >&5
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } &&
20149          { ac_try='test -z "$ac_c_werror_flag"
20150                          || test ! -s conftest.err'
20151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152   (eval $ac_try) 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); }; } &&
20156          { ac_try='test -s conftest$ac_exeext'
20157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158   (eval $ac_try) 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162   ac_cv_func_shl_load=yes
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 ac_cv_func_shl_load=no
20168 fi
20169 rm -f conftest.err conftest.$ac_objext \
20170       conftest$ac_exeext conftest.$ac_ext
20171 fi
20172 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20173 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20174 if test $ac_cv_func_shl_load = yes; then
20175   lt_cv_dlopen="shl_load"
20176 else
20177   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20178 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20179 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20180   echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182   ac_check_lib_save_LIBS=$LIBS
20183 LIBS="-ldld  $LIBS"
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h.  */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h.  */
20190
20191 /* Override any gcc2 internal prototype to avoid an error.  */
20192 #ifdef __cplusplus
20193 extern "C"
20194 #endif
20195 /* We use char because int might match the return type of a gcc2
20196    builtin and then its argument prototype would still apply.  */
20197 char shl_load ();
20198 int
20199 main ()
20200 {
20201 shl_load ();
20202   ;
20203   return 0;
20204 }
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20208   (eval $ac_link) 2>conftest.er1
20209   ac_status=$?
20210   grep -v '^ *+' conftest.er1 >conftest.err
20211   rm -f conftest.er1
20212   cat conftest.err >&5
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); } &&
20215          { ac_try='test -z "$ac_c_werror_flag"
20216                          || test ! -s conftest.err'
20217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218   (eval $ac_try) 2>&5
20219   ac_status=$?
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); }; } &&
20222          { ac_try='test -s conftest$ac_exeext'
20223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224   (eval $ac_try) 2>&5
20225   ac_status=$?
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); }; }; then
20228   ac_cv_lib_dld_shl_load=yes
20229 else
20230   echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233 ac_cv_lib_dld_shl_load=no
20234 fi
20235 rm -f conftest.err conftest.$ac_objext \
20236       conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20238 fi
20239 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20240 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20241 if test $ac_cv_lib_dld_shl_load = yes; then
20242   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20243 else
20244   echo "$as_me:$LINENO: checking for dlopen" >&5
20245 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20246 if test "${ac_cv_func_dlopen+set}" = set; then
20247   echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249   cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20257 #define dlopen innocuous_dlopen
20258
20259 /* System header to define __stub macros and hopefully few prototypes,
20260     which can conflict with char dlopen (); below.
20261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20262     <limits.h> exists even on freestanding compilers.  */
20263
20264 #ifdef __STDC__
20265 # include <limits.h>
20266 #else
20267 # include <assert.h>
20268 #endif
20269
20270 #undef dlopen
20271
20272 /* Override any gcc2 internal prototype to avoid an error.  */
20273 #ifdef __cplusplus
20274 extern "C"
20275 {
20276 #endif
20277 /* We use char because int might match the return type of a gcc2
20278    builtin and then its argument prototype would still apply.  */
20279 char dlopen ();
20280 /* The GNU C library defines this for functions which it implements
20281     to always fail with ENOSYS.  Some functions are actually named
20282     something starting with __ and the normal name is an alias.  */
20283 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20284 choke me
20285 #else
20286 char (*f) () = dlopen;
20287 #endif
20288 #ifdef __cplusplus
20289 }
20290 #endif
20291
20292 int
20293 main ()
20294 {
20295 return f != dlopen;
20296   ;
20297   return 0;
20298 }
20299 _ACEOF
20300 rm -f conftest.$ac_objext conftest$ac_exeext
20301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20302   (eval $ac_link) 2>conftest.er1
20303   ac_status=$?
20304   grep -v '^ *+' conftest.er1 >conftest.err
20305   rm -f conftest.er1
20306   cat conftest.err >&5
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } &&
20309          { ac_try='test -z "$ac_c_werror_flag"
20310                          || test ! -s conftest.err'
20311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312   (eval $ac_try) 2>&5
20313   ac_status=$?
20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315   (exit $ac_status); }; } &&
20316          { ac_try='test -s conftest$ac_exeext'
20317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318   (eval $ac_try) 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); }; }; then
20322   ac_cv_func_dlopen=yes
20323 else
20324   echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327 ac_cv_func_dlopen=no
20328 fi
20329 rm -f conftest.err conftest.$ac_objext \
20330       conftest$ac_exeext conftest.$ac_ext
20331 fi
20332 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20333 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20334 if test $ac_cv_func_dlopen = yes; then
20335   lt_cv_dlopen="dlopen"
20336 else
20337   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20338 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20340   echo $ECHO_N "(cached) $ECHO_C" >&6
20341 else
20342   ac_check_lib_save_LIBS=$LIBS
20343 LIBS="-ldl  $LIBS"
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350
20351 /* Override any gcc2 internal prototype to avoid an error.  */
20352 #ifdef __cplusplus
20353 extern "C"
20354 #endif
20355 /* We use char because int might match the return type of a gcc2
20356    builtin and then its argument prototype would still apply.  */
20357 char dlopen ();
20358 int
20359 main ()
20360 {
20361 dlopen ();
20362   ;
20363   return 0;
20364 }
20365 _ACEOF
20366 rm -f conftest.$ac_objext conftest$ac_exeext
20367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20368   (eval $ac_link) 2>conftest.er1
20369   ac_status=$?
20370   grep -v '^ *+' conftest.er1 >conftest.err
20371   rm -f conftest.er1
20372   cat conftest.err >&5
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); } &&
20375          { ac_try='test -z "$ac_c_werror_flag"
20376                          || test ! -s conftest.err'
20377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378   (eval $ac_try) 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; } &&
20382          { ac_try='test -s conftest$ac_exeext'
20383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384   (eval $ac_try) 2>&5
20385   ac_status=$?
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); }; }; then
20388   ac_cv_lib_dl_dlopen=yes
20389 else
20390   echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 ac_cv_lib_dl_dlopen=no
20394 fi
20395 rm -f conftest.err conftest.$ac_objext \
20396       conftest$ac_exeext conftest.$ac_ext
20397 LIBS=$ac_check_lib_save_LIBS
20398 fi
20399 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20400 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20401 if test $ac_cv_lib_dl_dlopen = yes; then
20402   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20403 else
20404   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20405 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20406 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lsvld  $LIBS"
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 /* Override any gcc2 internal prototype to avoid an error.  */
20419 #ifdef __cplusplus
20420 extern "C"
20421 #endif
20422 /* We use char because int might match the return type of a gcc2
20423    builtin and then its argument prototype would still apply.  */
20424 char dlopen ();
20425 int
20426 main ()
20427 {
20428 dlopen ();
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435   (eval $ac_link) 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } &&
20442          { ac_try='test -z "$ac_c_werror_flag"
20443                          || test ! -s conftest.err'
20444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445   (eval $ac_try) 2>&5
20446   ac_status=$?
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); }; } &&
20449          { ac_try='test -s conftest$ac_exeext'
20450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451   (eval $ac_try) 2>&5
20452   ac_status=$?
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); }; }; then
20455   ac_cv_lib_svld_dlopen=yes
20456 else
20457   echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460 ac_cv_lib_svld_dlopen=no
20461 fi
20462 rm -f conftest.err conftest.$ac_objext \
20463       conftest$ac_exeext conftest.$ac_ext
20464 LIBS=$ac_check_lib_save_LIBS
20465 fi
20466 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20467 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20468 if test $ac_cv_lib_svld_dlopen = yes; then
20469   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20470 else
20471   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20472 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20473 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476   ac_check_lib_save_LIBS=$LIBS
20477 LIBS="-ldld  $LIBS"
20478 cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h.  */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h.  */
20484
20485 /* Override any gcc2 internal prototype to avoid an error.  */
20486 #ifdef __cplusplus
20487 extern "C"
20488 #endif
20489 /* We use char because int might match the return type of a gcc2
20490    builtin and then its argument prototype would still apply.  */
20491 char dld_link ();
20492 int
20493 main ()
20494 {
20495 dld_link ();
20496   ;
20497   return 0;
20498 }
20499 _ACEOF
20500 rm -f conftest.$ac_objext conftest$ac_exeext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502   (eval $ac_link) 2>conftest.er1
20503   ac_status=$?
20504   grep -v '^ *+' conftest.er1 >conftest.err
20505   rm -f conftest.er1
20506   cat conftest.err >&5
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); } &&
20509          { ac_try='test -z "$ac_c_werror_flag"
20510                          || test ! -s conftest.err'
20511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512   (eval $ac_try) 2>&5
20513   ac_status=$?
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); }; } &&
20516          { ac_try='test -s conftest$ac_exeext'
20517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518   (eval $ac_try) 2>&5
20519   ac_status=$?
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); }; }; then
20522   ac_cv_lib_dld_dld_link=yes
20523 else
20524   echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20526
20527 ac_cv_lib_dld_dld_link=no
20528 fi
20529 rm -f conftest.err conftest.$ac_objext \
20530       conftest$ac_exeext conftest.$ac_ext
20531 LIBS=$ac_check_lib_save_LIBS
20532 fi
20533 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20534 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20535 if test $ac_cv_lib_dld_dld_link = yes; then
20536   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20537 fi
20538
20539
20540 fi
20541
20542
20543 fi
20544
20545
20546 fi
20547
20548
20549 fi
20550
20551
20552 fi
20553
20554     ;;
20555   esac
20556
20557   if test "x$lt_cv_dlopen" != xno; then
20558     enable_dlopen=yes
20559   else
20560     enable_dlopen=no
20561   fi
20562
20563   case $lt_cv_dlopen in
20564   dlopen)
20565     save_CPPFLAGS="$CPPFLAGS"
20566     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20567
20568     save_LDFLAGS="$LDFLAGS"
20569     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20570
20571     save_LIBS="$LIBS"
20572     LIBS="$lt_cv_dlopen_libs $LIBS"
20573
20574     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20575 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20576 if test "${lt_cv_dlopen_self+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579           if test "$cross_compiling" = yes; then :
20580   lt_cv_dlopen_self=cross
20581 else
20582   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20583   lt_status=$lt_dlunknown
20584   cat > conftest.$ac_ext <<EOF
20585 #line 20585 "configure"
20586 #include "confdefs.h"
20587
20588 #if HAVE_DLFCN_H
20589 #include <dlfcn.h>
20590 #endif
20591
20592 #include <stdio.h>
20593
20594 #ifdef RTLD_GLOBAL
20595 #  define LT_DLGLOBAL           RTLD_GLOBAL
20596 #else
20597 #  ifdef DL_GLOBAL
20598 #    define LT_DLGLOBAL         DL_GLOBAL
20599 #  else
20600 #    define LT_DLGLOBAL         0
20601 #  endif
20602 #endif
20603
20604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20605    find out it does not work in some platform. */
20606 #ifndef LT_DLLAZY_OR_NOW
20607 #  ifdef RTLD_LAZY
20608 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20609 #  else
20610 #    ifdef DL_LAZY
20611 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20612 #    else
20613 #      ifdef RTLD_NOW
20614 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20615 #      else
20616 #        ifdef DL_NOW
20617 #          define LT_DLLAZY_OR_NOW      DL_NOW
20618 #        else
20619 #          define LT_DLLAZY_OR_NOW      0
20620 #        endif
20621 #      endif
20622 #    endif
20623 #  endif
20624 #endif
20625
20626 #ifdef __cplusplus
20627 extern "C" void exit (int);
20628 #endif
20629
20630 void fnord() { int i=42;}
20631 int main ()
20632 {
20633   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20634   int status = $lt_dlunknown;
20635
20636   if (self)
20637     {
20638       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20639       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20640       /* dlclose (self); */
20641     }
20642
20643     exit (status);
20644 }
20645 EOF
20646   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20647   (eval $ac_link) 2>&5
20648   ac_status=$?
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20651     (./conftest; exit; ) 2>/dev/null
20652     lt_status=$?
20653     case x$lt_status in
20654       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20655       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20656       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20657     esac
20658   else :
20659     # compilation failed
20660     lt_cv_dlopen_self=no
20661   fi
20662 fi
20663 rm -fr conftest*
20664
20665
20666 fi
20667 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20668 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20669
20670     if test "x$lt_cv_dlopen_self" = xyes; then
20671       LDFLAGS="$LDFLAGS $link_static_flag"
20672       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20673 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20674 if test "${lt_cv_dlopen_self_static+set}" = set; then
20675   echo $ECHO_N "(cached) $ECHO_C" >&6
20676 else
20677           if test "$cross_compiling" = yes; then :
20678   lt_cv_dlopen_self_static=cross
20679 else
20680   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20681   lt_status=$lt_dlunknown
20682   cat > conftest.$ac_ext <<EOF
20683 #line 20683 "configure"
20684 #include "confdefs.h"
20685
20686 #if HAVE_DLFCN_H
20687 #include <dlfcn.h>
20688 #endif
20689
20690 #include <stdio.h>
20691
20692 #ifdef RTLD_GLOBAL
20693 #  define LT_DLGLOBAL           RTLD_GLOBAL
20694 #else
20695 #  ifdef DL_GLOBAL
20696 #    define LT_DLGLOBAL         DL_GLOBAL
20697 #  else
20698 #    define LT_DLGLOBAL         0
20699 #  endif
20700 #endif
20701
20702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20703    find out it does not work in some platform. */
20704 #ifndef LT_DLLAZY_OR_NOW
20705 #  ifdef RTLD_LAZY
20706 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20707 #  else
20708 #    ifdef DL_LAZY
20709 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20710 #    else
20711 #      ifdef RTLD_NOW
20712 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20713 #      else
20714 #        ifdef DL_NOW
20715 #          define LT_DLLAZY_OR_NOW      DL_NOW
20716 #        else
20717 #          define LT_DLLAZY_OR_NOW      0
20718 #        endif
20719 #      endif
20720 #    endif
20721 #  endif
20722 #endif
20723
20724 #ifdef __cplusplus
20725 extern "C" void exit (int);
20726 #endif
20727
20728 void fnord() { int i=42;}
20729 int main ()
20730 {
20731   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20732   int status = $lt_dlunknown;
20733
20734   if (self)
20735     {
20736       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20737       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20738       /* dlclose (self); */
20739     }
20740
20741     exit (status);
20742 }
20743 EOF
20744   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20745   (eval $ac_link) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20749     (./conftest; exit; ) 2>/dev/null
20750     lt_status=$?
20751     case x$lt_status in
20752       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20753       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20754       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20755     esac
20756   else :
20757     # compilation failed
20758     lt_cv_dlopen_self_static=no
20759   fi
20760 fi
20761 rm -fr conftest*
20762
20763
20764 fi
20765 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20766 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20767     fi
20768
20769     CPPFLAGS="$save_CPPFLAGS"
20770     LDFLAGS="$save_LDFLAGS"
20771     LIBS="$save_LIBS"
20772     ;;
20773   esac
20774
20775   case $lt_cv_dlopen_self in
20776   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20777   *) enable_dlopen_self=unknown ;;
20778   esac
20779
20780   case $lt_cv_dlopen_self_static in
20781   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20782   *) enable_dlopen_self_static=unknown ;;
20783   esac
20784 fi
20785
20786
20787 # The else clause should only fire when bootstrapping the
20788 # libtool distribution, otherwise you forgot to ship ltmain.sh
20789 # with your package, and you will get complaints that there are
20790 # no rules to generate ltmain.sh.
20791 if test -f "$ltmain"; then
20792   # See if we are running on zsh, and set the options which allow our commands through
20793   # without removal of \ escapes.
20794   if test -n "${ZSH_VERSION+set}" ; then
20795     setopt NO_GLOB_SUBST
20796   fi
20797   # Now quote all the things that may contain metacharacters while being
20798   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20799   # variables and quote the copies for generation of the libtool script.
20800   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20801     SED SHELL STRIP \
20802     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20803     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20804     deplibs_check_method reload_flag reload_cmds need_locks \
20805     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20806     lt_cv_sys_global_symbol_to_c_name_address \
20807     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20808     old_postinstall_cmds old_postuninstall_cmds \
20809     compiler_GCJ \
20810     CC_GCJ \
20811     LD_GCJ \
20812     lt_prog_compiler_wl_GCJ \
20813     lt_prog_compiler_pic_GCJ \
20814     lt_prog_compiler_static_GCJ \
20815     lt_prog_compiler_no_builtin_flag_GCJ \
20816     export_dynamic_flag_spec_GCJ \
20817     thread_safe_flag_spec_GCJ \
20818     whole_archive_flag_spec_GCJ \
20819     enable_shared_with_static_runtimes_GCJ \
20820     old_archive_cmds_GCJ \
20821     old_archive_from_new_cmds_GCJ \
20822     predep_objects_GCJ \
20823     postdep_objects_GCJ \
20824     predeps_GCJ \
20825     postdeps_GCJ \
20826     compiler_lib_search_path_GCJ \
20827     archive_cmds_GCJ \
20828     archive_expsym_cmds_GCJ \
20829     postinstall_cmds_GCJ \
20830     postuninstall_cmds_GCJ \
20831     old_archive_from_expsyms_cmds_GCJ \
20832     allow_undefined_flag_GCJ \
20833     no_undefined_flag_GCJ \
20834     export_symbols_cmds_GCJ \
20835     hardcode_libdir_flag_spec_GCJ \
20836     hardcode_libdir_flag_spec_ld_GCJ \
20837     hardcode_libdir_separator_GCJ \
20838     hardcode_automatic_GCJ \
20839     module_cmds_GCJ \
20840     module_expsym_cmds_GCJ \
20841     lt_cv_prog_compiler_c_o_GCJ \
20842     exclude_expsyms_GCJ \
20843     include_expsyms_GCJ; do
20844
20845     case $var in
20846     old_archive_cmds_GCJ | \
20847     old_archive_from_new_cmds_GCJ | \
20848     archive_cmds_GCJ | \
20849     archive_expsym_cmds_GCJ | \
20850     module_cmds_GCJ | \
20851     module_expsym_cmds_GCJ | \
20852     old_archive_from_expsyms_cmds_GCJ | \
20853     export_symbols_cmds_GCJ | \
20854     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20855     postinstall_cmds | postuninstall_cmds | \
20856     old_postinstall_cmds | old_postuninstall_cmds | \
20857     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20858       # Double-quote double-evaled strings.
20859       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20860       ;;
20861     *)
20862       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20863       ;;
20864     esac
20865   done
20866
20867   case $lt_echo in
20868   *'\$0 --fallback-echo"')
20869     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20870     ;;
20871   esac
20872
20873 cfgfile="$ofile"
20874
20875   cat <<__EOF__ >> "$cfgfile"
20876 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20877
20878 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20879
20880 # Shell to use when invoking shell scripts.
20881 SHELL=$lt_SHELL
20882
20883 # Whether or not to build shared libraries.
20884 build_libtool_libs=$enable_shared
20885
20886 # Whether or not to build static libraries.
20887 build_old_libs=$enable_static
20888
20889 # Whether or not to add -lc for building shared libraries.
20890 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20891
20892 # Whether or not to disallow shared libs when runtime libs are static
20893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20894
20895 # Whether or not to optimize for fast installation.
20896 fast_install=$enable_fast_install
20897
20898 # The host system.
20899 host_alias=$host_alias
20900 host=$host
20901 host_os=$host_os
20902
20903 # The build system.
20904 build_alias=$build_alias
20905 build=$build
20906 build_os=$build_os
20907
20908 # An echo program that does not interpret backslashes.
20909 echo=$lt_echo
20910
20911 # The archiver.
20912 AR=$lt_AR
20913 AR_FLAGS=$lt_AR_FLAGS
20914
20915 # A C compiler.
20916 LTCC=$lt_LTCC
20917
20918 # A language-specific compiler.
20919 CC=$lt_compiler_GCJ
20920
20921 # Is the compiler the GNU C compiler?
20922 with_gcc=$GCC_GCJ
20923
20924 # An ERE matcher.
20925 EGREP=$lt_EGREP
20926
20927 # The linker used to build libraries.
20928 LD=$lt_LD_GCJ
20929
20930 # Whether we need hard or soft links.
20931 LN_S=$lt_LN_S
20932
20933 # A BSD-compatible nm program.
20934 NM=$lt_NM
20935
20936 # A symbol stripping program
20937 STRIP=$lt_STRIP
20938
20939 # Used to examine libraries when file_magic_cmd begins "file"
20940 MAGIC_CMD=$MAGIC_CMD
20941
20942 # Used on cygwin: DLL creation program.
20943 DLLTOOL="$DLLTOOL"
20944
20945 # Used on cygwin: object dumper.
20946 OBJDUMP="$OBJDUMP"
20947
20948 # Used on cygwin: assembler.
20949 AS="$AS"
20950
20951 # The name of the directory that contains temporary libtool files.
20952 objdir=$objdir
20953
20954 # How to create reloadable object files.
20955 reload_flag=$lt_reload_flag
20956 reload_cmds=$lt_reload_cmds
20957
20958 # How to pass a linker flag through the compiler.
20959 wl=$lt_lt_prog_compiler_wl_GCJ
20960
20961 # Object file suffix (normally "o").
20962 objext="$ac_objext"
20963
20964 # Old archive suffix (normally "a").
20965 libext="$libext"
20966
20967 # Shared library suffix (normally ".so").
20968 shrext_cmds='$shrext_cmds'
20969
20970 # Executable file suffix (normally "").
20971 exeext="$exeext"
20972
20973 # Additional compiler flags for building library objects.
20974 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20975 pic_mode=$pic_mode
20976
20977 # What is the maximum length of a command?
20978 max_cmd_len=$lt_cv_sys_max_cmd_len
20979
20980 # Does compiler simultaneously support -c and -o options?
20981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20982
20983 # Must we lock files when doing compilation?
20984 need_locks=$lt_need_locks
20985
20986 # Do we need the lib prefix for modules?
20987 need_lib_prefix=$need_lib_prefix
20988
20989 # Do we need a version for libraries?
20990 need_version=$need_version
20991
20992 # Whether dlopen is supported.
20993 dlopen_support=$enable_dlopen
20994
20995 # Whether dlopen of programs is supported.
20996 dlopen_self=$enable_dlopen_self
20997
20998 # Whether dlopen of statically linked programs is supported.
20999 dlopen_self_static=$enable_dlopen_self_static
21000
21001 # Compiler flag to prevent dynamic linking.
21002 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21003
21004 # Compiler flag to turn off builtin functions.
21005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21006
21007 # Compiler flag to allow reflexive dlopens.
21008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21009
21010 # Compiler flag to generate shared objects directly from archives.
21011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21012
21013 # Compiler flag to generate thread-safe objects.
21014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21015
21016 # Library versioning type.
21017 version_type=$version_type
21018
21019 # Format of library name prefix.
21020 libname_spec=$lt_libname_spec
21021
21022 # List of archive names.  First name is the real one, the rest are links.
21023 # The last name is the one that the linker finds with -lNAME.
21024 library_names_spec=$lt_library_names_spec
21025
21026 # The coded name of the library, if different from the real name.
21027 soname_spec=$lt_soname_spec
21028
21029 # Commands used to build and install an old-style archive.
21030 RANLIB=$lt_RANLIB
21031 old_archive_cmds=$lt_old_archive_cmds_GCJ
21032 old_postinstall_cmds=$lt_old_postinstall_cmds
21033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21034
21035 # Create an old-style archive from a shared archive.
21036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21037
21038 # Create a temporary old-style archive to link instead of a shared archive.
21039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21040
21041 # Commands used to build and install a shared archive.
21042 archive_cmds=$lt_archive_cmds_GCJ
21043 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21044 postinstall_cmds=$lt_postinstall_cmds
21045 postuninstall_cmds=$lt_postuninstall_cmds
21046
21047 # Commands used to build a loadable module (assumed same as above if empty)
21048 module_cmds=$lt_module_cmds_GCJ
21049 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21050
21051 # Commands to strip libraries.
21052 old_striplib=$lt_old_striplib
21053 striplib=$lt_striplib
21054
21055 # Dependencies to place before the objects being linked to create a
21056 # shared library.
21057 predep_objects=$lt_predep_objects_GCJ
21058
21059 # Dependencies to place after the objects being linked to create a
21060 # shared library.
21061 postdep_objects=$lt_postdep_objects_GCJ
21062
21063 # Dependencies to place before the objects being linked to create a
21064 # shared library.
21065 predeps=$lt_predeps_GCJ
21066
21067 # Dependencies to place after the objects being linked to create a
21068 # shared library.
21069 postdeps=$lt_postdeps_GCJ
21070
21071 # The library search path used internally by the compiler when linking
21072 # a shared library.
21073 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21074
21075 # Method to check whether dependent libraries are shared objects.
21076 deplibs_check_method=$lt_deplibs_check_method
21077
21078 # Command to use when deplibs_check_method == file_magic.
21079 file_magic_cmd=$lt_file_magic_cmd
21080
21081 # Flag that allows shared libraries with undefined symbols to be built.
21082 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21083
21084 # Flag that forces no undefined symbols.
21085 no_undefined_flag=$lt_no_undefined_flag_GCJ
21086
21087 # Commands used to finish a libtool library installation in a directory.
21088 finish_cmds=$lt_finish_cmds
21089
21090 # Same as above, but a single script fragment to be evaled but not shown.
21091 finish_eval=$lt_finish_eval
21092
21093 # Take the output of nm and produce a listing of raw symbols and C names.
21094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21095
21096 # Transform the output of nm in a proper C declaration
21097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21098
21099 # Transform the output of nm in a C name address pair
21100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21101
21102 # This is the shared library runtime path variable.
21103 runpath_var=$runpath_var
21104
21105 # This is the shared library path variable.
21106 shlibpath_var=$shlibpath_var
21107
21108 # Is shlibpath searched before the hard-coded library search path?
21109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21110
21111 # How to hardcode a shared library path into an executable.
21112 hardcode_action=$hardcode_action_GCJ
21113
21114 # Whether we should hardcode library paths into libraries.
21115 hardcode_into_libs=$hardcode_into_libs
21116
21117 # Flag to hardcode \$libdir into a binary during linking.
21118 # This must work even if \$libdir does not exist.
21119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21120
21121 # If ld is used when linking, flag to hardcode \$libdir into
21122 # a binary during linking. This must work even if \$libdir does
21123 # not exist.
21124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21125
21126 # Whether we need a single -rpath flag with a separated argument.
21127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21128
21129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21130 # resulting binary.
21131 hardcode_direct=$hardcode_direct_GCJ
21132
21133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21134 # resulting binary.
21135 hardcode_minus_L=$hardcode_minus_L_GCJ
21136
21137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21138 # the resulting binary.
21139 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21140
21141 # Set to yes if building a shared library automatically hardcodes DIR into the library
21142 # and all subsequent libraries and executables linked against it.
21143 hardcode_automatic=$hardcode_automatic_GCJ
21144
21145 # Variables whose values should be saved in libtool wrapper scripts and
21146 # restored at relink time.
21147 variables_saved_for_relink="$variables_saved_for_relink"
21148
21149 # Whether libtool must link a program against all its dependency libraries.
21150 link_all_deplibs=$link_all_deplibs_GCJ
21151
21152 # Compile-time system search path for libraries
21153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21154
21155 # Run-time system search path for libraries
21156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21157
21158 # Fix the shell variable \$srcfile for the compiler.
21159 fix_srcfile_path="$fix_srcfile_path_GCJ"
21160
21161 # Set to yes if exported symbols are required.
21162 always_export_symbols=$always_export_symbols_GCJ
21163
21164 # The commands to list exported symbols.
21165 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21166
21167 # The commands to extract the exported symbol list from a shared archive.
21168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21169
21170 # Symbols that should not be listed in the preloaded symbols.
21171 exclude_expsyms=$lt_exclude_expsyms_GCJ
21172
21173 # Symbols that must always be exported.
21174 include_expsyms=$lt_include_expsyms_GCJ
21175
21176 # ### END LIBTOOL TAG CONFIG: $tagname
21177
21178 __EOF__
21179
21180
21181 else
21182   # If there is no Makefile yet, we rely on a make rule to execute
21183   # `config.status --recheck' to rerun these tests and create the
21184   # libtool script then.
21185   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21186   if test -f "$ltmain_in"; then
21187     test -f Makefile && make "$ltmain"
21188   fi
21189 fi
21190
21191
21192 ac_ext=c
21193 ac_cpp='$CPP $CPPFLAGS'
21194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21197
21198 CC="$lt_save_CC"
21199
21200         else
21201           tagname=""
21202         fi
21203         ;;
21204
21205       RC)
21206
21207
21208
21209 # Source file extension for RC test sources.
21210 ac_ext=rc
21211
21212 # Object file extension for compiled RC test sources.
21213 objext=o
21214 objext_RC=$objext
21215
21216 # Code to be used in simple compile tests
21217 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21218
21219 # Code to be used in simple link tests
21220 lt_simple_link_test_code="$lt_simple_compile_test_code"
21221
21222 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21223
21224 # If no C compiler was specified, use CC.
21225 LTCC=${LTCC-"$CC"}
21226
21227 # Allow CC to be a program name with arguments.
21228 compiler=$CC
21229
21230
21231 # save warnings/boilerplate of simple test code
21232 ac_outfile=conftest.$ac_objext
21233 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21235 _lt_compiler_boilerplate=`cat conftest.err`
21236 $rm conftest*
21237
21238 ac_outfile=conftest.$ac_objext
21239 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21241 _lt_linker_boilerplate=`cat conftest.err`
21242 $rm conftest*
21243
21244
21245 # Allow CC to be a program name with arguments.
21246 lt_save_CC="$CC"
21247 CC=${RC-"windres"}
21248 compiler=$CC
21249 compiler_RC=$CC
21250 for cc_temp in $compiler""; do
21251   case $cc_temp in
21252     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21253     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21254     \-*) ;;
21255     *) break;;
21256   esac
21257 done
21258 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21259
21260 lt_cv_prog_compiler_c_o_RC=yes
21261
21262 # The else clause should only fire when bootstrapping the
21263 # libtool distribution, otherwise you forgot to ship ltmain.sh
21264 # with your package, and you will get complaints that there are
21265 # no rules to generate ltmain.sh.
21266 if test -f "$ltmain"; then
21267   # See if we are running on zsh, and set the options which allow our commands through
21268   # without removal of \ escapes.
21269   if test -n "${ZSH_VERSION+set}" ; then
21270     setopt NO_GLOB_SUBST
21271   fi
21272   # Now quote all the things that may contain metacharacters while being
21273   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21274   # variables and quote the copies for generation of the libtool script.
21275   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21276     SED SHELL STRIP \
21277     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21278     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21279     deplibs_check_method reload_flag reload_cmds need_locks \
21280     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21281     lt_cv_sys_global_symbol_to_c_name_address \
21282     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21283     old_postinstall_cmds old_postuninstall_cmds \
21284     compiler_RC \
21285     CC_RC \
21286     LD_RC \
21287     lt_prog_compiler_wl_RC \
21288     lt_prog_compiler_pic_RC \
21289     lt_prog_compiler_static_RC \
21290     lt_prog_compiler_no_builtin_flag_RC \
21291     export_dynamic_flag_spec_RC \
21292     thread_safe_flag_spec_RC \
21293     whole_archive_flag_spec_RC \
21294     enable_shared_with_static_runtimes_RC \
21295     old_archive_cmds_RC \
21296     old_archive_from_new_cmds_RC \
21297     predep_objects_RC \
21298     postdep_objects_RC \
21299     predeps_RC \
21300     postdeps_RC \
21301     compiler_lib_search_path_RC \
21302     archive_cmds_RC \
21303     archive_expsym_cmds_RC \
21304     postinstall_cmds_RC \
21305     postuninstall_cmds_RC \
21306     old_archive_from_expsyms_cmds_RC \
21307     allow_undefined_flag_RC \
21308     no_undefined_flag_RC \
21309     export_symbols_cmds_RC \
21310     hardcode_libdir_flag_spec_RC \
21311     hardcode_libdir_flag_spec_ld_RC \
21312     hardcode_libdir_separator_RC \
21313     hardcode_automatic_RC \
21314     module_cmds_RC \
21315     module_expsym_cmds_RC \
21316     lt_cv_prog_compiler_c_o_RC \
21317     exclude_expsyms_RC \
21318     include_expsyms_RC; do
21319
21320     case $var in
21321     old_archive_cmds_RC | \
21322     old_archive_from_new_cmds_RC | \
21323     archive_cmds_RC | \
21324     archive_expsym_cmds_RC | \
21325     module_cmds_RC | \
21326     module_expsym_cmds_RC | \
21327     old_archive_from_expsyms_cmds_RC | \
21328     export_symbols_cmds_RC | \
21329     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21330     postinstall_cmds | postuninstall_cmds | \
21331     old_postinstall_cmds | old_postuninstall_cmds | \
21332     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21333       # Double-quote double-evaled strings.
21334       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21335       ;;
21336     *)
21337       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21338       ;;
21339     esac
21340   done
21341
21342   case $lt_echo in
21343   *'\$0 --fallback-echo"')
21344     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21345     ;;
21346   esac
21347
21348 cfgfile="$ofile"
21349
21350   cat <<__EOF__ >> "$cfgfile"
21351 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21352
21353 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21354
21355 # Shell to use when invoking shell scripts.
21356 SHELL=$lt_SHELL
21357
21358 # Whether or not to build shared libraries.
21359 build_libtool_libs=$enable_shared
21360
21361 # Whether or not to build static libraries.
21362 build_old_libs=$enable_static
21363
21364 # Whether or not to add -lc for building shared libraries.
21365 build_libtool_need_lc=$archive_cmds_need_lc_RC
21366
21367 # Whether or not to disallow shared libs when runtime libs are static
21368 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21369
21370 # Whether or not to optimize for fast installation.
21371 fast_install=$enable_fast_install
21372
21373 # The host system.
21374 host_alias=$host_alias
21375 host=$host
21376 host_os=$host_os
21377
21378 # The build system.
21379 build_alias=$build_alias
21380 build=$build
21381 build_os=$build_os
21382
21383 # An echo program that does not interpret backslashes.
21384 echo=$lt_echo
21385
21386 # The archiver.
21387 AR=$lt_AR
21388 AR_FLAGS=$lt_AR_FLAGS
21389
21390 # A C compiler.
21391 LTCC=$lt_LTCC
21392
21393 # A language-specific compiler.
21394 CC=$lt_compiler_RC
21395
21396 # Is the compiler the GNU C compiler?
21397 with_gcc=$GCC_RC
21398
21399 # An ERE matcher.
21400 EGREP=$lt_EGREP
21401
21402 # The linker used to build libraries.
21403 LD=$lt_LD_RC
21404
21405 # Whether we need hard or soft links.
21406 LN_S=$lt_LN_S
21407
21408 # A BSD-compatible nm program.
21409 NM=$lt_NM
21410
21411 # A symbol stripping program
21412 STRIP=$lt_STRIP
21413
21414 # Used to examine libraries when file_magic_cmd begins "file"
21415 MAGIC_CMD=$MAGIC_CMD
21416
21417 # Used on cygwin: DLL creation program.
21418 DLLTOOL="$DLLTOOL"
21419
21420 # Used on cygwin: object dumper.
21421 OBJDUMP="$OBJDUMP"
21422
21423 # Used on cygwin: assembler.
21424 AS="$AS"
21425
21426 # The name of the directory that contains temporary libtool files.
21427 objdir=$objdir
21428
21429 # How to create reloadable object files.
21430 reload_flag=$lt_reload_flag
21431 reload_cmds=$lt_reload_cmds
21432
21433 # How to pass a linker flag through the compiler.
21434 wl=$lt_lt_prog_compiler_wl_RC
21435
21436 # Object file suffix (normally "o").
21437 objext="$ac_objext"
21438
21439 # Old archive suffix (normally "a").
21440 libext="$libext"
21441
21442 # Shared library suffix (normally ".so").
21443 shrext_cmds='$shrext_cmds'
21444
21445 # Executable file suffix (normally "").
21446 exeext="$exeext"
21447
21448 # Additional compiler flags for building library objects.
21449 pic_flag=$lt_lt_prog_compiler_pic_RC
21450 pic_mode=$pic_mode
21451
21452 # What is the maximum length of a command?
21453 max_cmd_len=$lt_cv_sys_max_cmd_len
21454
21455 # Does compiler simultaneously support -c and -o options?
21456 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21457
21458 # Must we lock files when doing compilation?
21459 need_locks=$lt_need_locks
21460
21461 # Do we need the lib prefix for modules?
21462 need_lib_prefix=$need_lib_prefix
21463
21464 # Do we need a version for libraries?
21465 need_version=$need_version
21466
21467 # Whether dlopen is supported.
21468 dlopen_support=$enable_dlopen
21469
21470 # Whether dlopen of programs is supported.
21471 dlopen_self=$enable_dlopen_self
21472
21473 # Whether dlopen of statically linked programs is supported.
21474 dlopen_self_static=$enable_dlopen_self_static
21475
21476 # Compiler flag to prevent dynamic linking.
21477 link_static_flag=$lt_lt_prog_compiler_static_RC
21478
21479 # Compiler flag to turn off builtin functions.
21480 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21481
21482 # Compiler flag to allow reflexive dlopens.
21483 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21484
21485 # Compiler flag to generate shared objects directly from archives.
21486 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21487
21488 # Compiler flag to generate thread-safe objects.
21489 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21490
21491 # Library versioning type.
21492 version_type=$version_type
21493
21494 # Format of library name prefix.
21495 libname_spec=$lt_libname_spec
21496
21497 # List of archive names.  First name is the real one, the rest are links.
21498 # The last name is the one that the linker finds with -lNAME.
21499 library_names_spec=$lt_library_names_spec
21500
21501 # The coded name of the library, if different from the real name.
21502 soname_spec=$lt_soname_spec
21503
21504 # Commands used to build and install an old-style archive.
21505 RANLIB=$lt_RANLIB
21506 old_archive_cmds=$lt_old_archive_cmds_RC
21507 old_postinstall_cmds=$lt_old_postinstall_cmds
21508 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21509
21510 # Create an old-style archive from a shared archive.
21511 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21512
21513 # Create a temporary old-style archive to link instead of a shared archive.
21514 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21515
21516 # Commands used to build and install a shared archive.
21517 archive_cmds=$lt_archive_cmds_RC
21518 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21519 postinstall_cmds=$lt_postinstall_cmds
21520 postuninstall_cmds=$lt_postuninstall_cmds
21521
21522 # Commands used to build a loadable module (assumed same as above if empty)
21523 module_cmds=$lt_module_cmds_RC
21524 module_expsym_cmds=$lt_module_expsym_cmds_RC
21525
21526 # Commands to strip libraries.
21527 old_striplib=$lt_old_striplib
21528 striplib=$lt_striplib
21529
21530 # Dependencies to place before the objects being linked to create a
21531 # shared library.
21532 predep_objects=$lt_predep_objects_RC
21533
21534 # Dependencies to place after the objects being linked to create a
21535 # shared library.
21536 postdep_objects=$lt_postdep_objects_RC
21537
21538 # Dependencies to place before the objects being linked to create a
21539 # shared library.
21540 predeps=$lt_predeps_RC
21541
21542 # Dependencies to place after the objects being linked to create a
21543 # shared library.
21544 postdeps=$lt_postdeps_RC
21545
21546 # The library search path used internally by the compiler when linking
21547 # a shared library.
21548 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21549
21550 # Method to check whether dependent libraries are shared objects.
21551 deplibs_check_method=$lt_deplibs_check_method
21552
21553 # Command to use when deplibs_check_method == file_magic.
21554 file_magic_cmd=$lt_file_magic_cmd
21555
21556 # Flag that allows shared libraries with undefined symbols to be built.
21557 allow_undefined_flag=$lt_allow_undefined_flag_RC
21558
21559 # Flag that forces no undefined symbols.
21560 no_undefined_flag=$lt_no_undefined_flag_RC
21561
21562 # Commands used to finish a libtool library installation in a directory.
21563 finish_cmds=$lt_finish_cmds
21564
21565 # Same as above, but a single script fragment to be evaled but not shown.
21566 finish_eval=$lt_finish_eval
21567
21568 # Take the output of nm and produce a listing of raw symbols and C names.
21569 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21570
21571 # Transform the output of nm in a proper C declaration
21572 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21573
21574 # Transform the output of nm in a C name address pair
21575 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21576
21577 # This is the shared library runtime path variable.
21578 runpath_var=$runpath_var
21579
21580 # This is the shared library path variable.
21581 shlibpath_var=$shlibpath_var
21582
21583 # Is shlibpath searched before the hard-coded library search path?
21584 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21585
21586 # How to hardcode a shared library path into an executable.
21587 hardcode_action=$hardcode_action_RC
21588
21589 # Whether we should hardcode library paths into libraries.
21590 hardcode_into_libs=$hardcode_into_libs
21591
21592 # Flag to hardcode \$libdir into a binary during linking.
21593 # This must work even if \$libdir does not exist.
21594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21595
21596 # If ld is used when linking, flag to hardcode \$libdir into
21597 # a binary during linking. This must work even if \$libdir does
21598 # not exist.
21599 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21600
21601 # Whether we need a single -rpath flag with a separated argument.
21602 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21603
21604 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21605 # resulting binary.
21606 hardcode_direct=$hardcode_direct_RC
21607
21608 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21609 # resulting binary.
21610 hardcode_minus_L=$hardcode_minus_L_RC
21611
21612 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21613 # the resulting binary.
21614 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21615
21616 # Set to yes if building a shared library automatically hardcodes DIR into the library
21617 # and all subsequent libraries and executables linked against it.
21618 hardcode_automatic=$hardcode_automatic_RC
21619
21620 # Variables whose values should be saved in libtool wrapper scripts and
21621 # restored at relink time.
21622 variables_saved_for_relink="$variables_saved_for_relink"
21623
21624 # Whether libtool must link a program against all its dependency libraries.
21625 link_all_deplibs=$link_all_deplibs_RC
21626
21627 # Compile-time system search path for libraries
21628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21629
21630 # Run-time system search path for libraries
21631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21632
21633 # Fix the shell variable \$srcfile for the compiler.
21634 fix_srcfile_path="$fix_srcfile_path_RC"
21635
21636 # Set to yes if exported symbols are required.
21637 always_export_symbols=$always_export_symbols_RC
21638
21639 # The commands to list exported symbols.
21640 export_symbols_cmds=$lt_export_symbols_cmds_RC
21641
21642 # The commands to extract the exported symbol list from a shared archive.
21643 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21644
21645 # Symbols that should not be listed in the preloaded symbols.
21646 exclude_expsyms=$lt_exclude_expsyms_RC
21647
21648 # Symbols that must always be exported.
21649 include_expsyms=$lt_include_expsyms_RC
21650
21651 # ### END LIBTOOL TAG CONFIG: $tagname
21652
21653 __EOF__
21654
21655
21656 else
21657   # If there is no Makefile yet, we rely on a make rule to execute
21658   # `config.status --recheck' to rerun these tests and create the
21659   # libtool script then.
21660   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21661   if test -f "$ltmain_in"; then
21662     test -f Makefile && make "$ltmain"
21663   fi
21664 fi
21665
21666
21667 ac_ext=c
21668 ac_cpp='$CPP $CPPFLAGS'
21669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21672
21673 CC="$lt_save_CC"
21674
21675         ;;
21676
21677       *)
21678         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21679 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21680    { (exit 1); exit 1; }; }
21681         ;;
21682       esac
21683
21684       # Append the new tag name to the list of available tags.
21685       if test -n "$tagname" ; then
21686       available_tags="$available_tags $tagname"
21687     fi
21688     fi
21689   done
21690   IFS="$lt_save_ifs"
21691
21692   # Now substitute the updated list of available tags.
21693   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21694     mv "${ofile}T" "$ofile"
21695     chmod +x "$ofile"
21696   else
21697     rm -f "${ofile}T"
21698     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21699 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21700    { (exit 1); exit 1; }; }
21701   fi
21702 fi
21703
21704
21705
21706 # This can be used to rebuild libtool when needed
21707 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21708
21709 # Always use our own libtool.
21710 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21711
21712 # Prevent multiple expansion
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734 ol_link_perl=no
21735 if test $ol_enable_perl != no ; then
21736         # Extract the first word of "perl", so it can be a program name with args.
21737 set dummy perl; ac_word=$2
21738 echo "$as_me:$LINENO: checking for $ac_word" >&5
21739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21740 if test "${ac_cv_path_PERLBIN+set}" = set; then
21741   echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743   case $PERLBIN in
21744   [\\/]* | ?:[\\/]*)
21745   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21746   ;;
21747   *)
21748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21749 for as_dir in $PATH
21750 do
21751   IFS=$as_save_IFS
21752   test -z "$as_dir" && as_dir=.
21753   for ac_exec_ext in '' $ac_executable_extensions; do
21754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21755     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21757     break 2
21758   fi
21759 done
21760 done
21761
21762   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21763   ;;
21764 esac
21765 fi
21766 PERLBIN=$ac_cv_path_PERLBIN
21767
21768 if test -n "$PERLBIN"; then
21769   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21770 echo "${ECHO_T}$PERLBIN" >&6
21771 else
21772   echo "$as_me:$LINENO: result: no" >&5
21773 echo "${ECHO_T}no" >&6
21774 fi
21775
21776
21777         if test "no$PERLBIN" = "no" ; then
21778                 if test $ol_enable_perl = yes ; then
21779                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21780 echo "$as_me: error: could not locate perl" >&2;}
21781    { (exit 1); exit 1; }; }
21782                 fi
21783
21784         else
21785                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21786                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21787
21788                 if test x"$ol_enable_perl" = "xyes" ; then
21789                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21790                 else
21791                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21792                 fi
21793                                 ol_link_perl=yes
21794         fi
21795 fi
21796
21797 ac_ext=c
21798 ac_cpp='$CPP $CPPFLAGS'
21799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21802 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21803 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21804 # On Suns, sometimes $CPP names a directory.
21805 if test -n "$CPP" && test -d "$CPP"; then
21806   CPP=
21807 fi
21808 if test -z "$CPP"; then
21809   if test "${ac_cv_prog_CPP+set}" = set; then
21810   echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812       # Double quotes because CPP needs to be expanded
21813     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21814     do
21815       ac_preproc_ok=false
21816 for ac_c_preproc_warn_flag in '' yes
21817 do
21818   # Use a header file that comes with gcc, so configuring glibc
21819   # with a fresh cross-compiler works.
21820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21821   # <limits.h> exists even on freestanding compilers.
21822   # On the NeXT, cc -E runs the code through the compiler's parser,
21823   # not just through cpp. "Syntax error" is here to catch this case.
21824   cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h.  */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h.  */
21830 #ifdef __STDC__
21831 # include <limits.h>
21832 #else
21833 # include <assert.h>
21834 #endif
21835                      Syntax error
21836 _ACEOF
21837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21839   ac_status=$?
21840   grep -v '^ *+' conftest.er1 >conftest.err
21841   rm -f conftest.er1
21842   cat conftest.err >&5
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); } >/dev/null; then
21845   if test -s conftest.err; then
21846     ac_cpp_err=$ac_c_preproc_warn_flag
21847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21848   else
21849     ac_cpp_err=
21850   fi
21851 else
21852   ac_cpp_err=yes
21853 fi
21854 if test -z "$ac_cpp_err"; then
21855   :
21856 else
21857   echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860   # Broken: fails on valid input.
21861 continue
21862 fi
21863 rm -f conftest.err conftest.$ac_ext
21864
21865   # OK, works on sane cases.  Now check whether non-existent headers
21866   # can be detected and how.
21867   cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h.  */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h.  */
21873 #include <ac_nonexistent.h>
21874 _ACEOF
21875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21877   ac_status=$?
21878   grep -v '^ *+' conftest.er1 >conftest.err
21879   rm -f conftest.er1
21880   cat conftest.err >&5
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); } >/dev/null; then
21883   if test -s conftest.err; then
21884     ac_cpp_err=$ac_c_preproc_warn_flag
21885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21886   else
21887     ac_cpp_err=
21888   fi
21889 else
21890   ac_cpp_err=yes
21891 fi
21892 if test -z "$ac_cpp_err"; then
21893   # Broken: success on invalid input.
21894 continue
21895 else
21896   echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21898
21899   # Passes both tests.
21900 ac_preproc_ok=:
21901 break
21902 fi
21903 rm -f conftest.err conftest.$ac_ext
21904
21905 done
21906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21907 rm -f conftest.err conftest.$ac_ext
21908 if $ac_preproc_ok; then
21909   break
21910 fi
21911
21912     done
21913     ac_cv_prog_CPP=$CPP
21914
21915 fi
21916   CPP=$ac_cv_prog_CPP
21917 else
21918   ac_cv_prog_CPP=$CPP
21919 fi
21920 echo "$as_me:$LINENO: result: $CPP" >&5
21921 echo "${ECHO_T}$CPP" >&6
21922 ac_preproc_ok=false
21923 for ac_c_preproc_warn_flag in '' yes
21924 do
21925   # Use a header file that comes with gcc, so configuring glibc
21926   # with a fresh cross-compiler works.
21927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21928   # <limits.h> exists even on freestanding compilers.
21929   # On the NeXT, cc -E runs the code through the compiler's parser,
21930   # not just through cpp. "Syntax error" is here to catch this case.
21931   cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h.  */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h.  */
21937 #ifdef __STDC__
21938 # include <limits.h>
21939 #else
21940 # include <assert.h>
21941 #endif
21942                      Syntax error
21943 _ACEOF
21944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21946   ac_status=$?
21947   grep -v '^ *+' conftest.er1 >conftest.err
21948   rm -f conftest.er1
21949   cat conftest.err >&5
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); } >/dev/null; then
21952   if test -s conftest.err; then
21953     ac_cpp_err=$ac_c_preproc_warn_flag
21954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21955   else
21956     ac_cpp_err=
21957   fi
21958 else
21959   ac_cpp_err=yes
21960 fi
21961 if test -z "$ac_cpp_err"; then
21962   :
21963 else
21964   echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21966
21967   # Broken: fails on valid input.
21968 continue
21969 fi
21970 rm -f conftest.err conftest.$ac_ext
21971
21972   # OK, works on sane cases.  Now check whether non-existent headers
21973   # can be detected and how.
21974   cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h.  */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h.  */
21980 #include <ac_nonexistent.h>
21981 _ACEOF
21982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21984   ac_status=$?
21985   grep -v '^ *+' conftest.er1 >conftest.err
21986   rm -f conftest.er1
21987   cat conftest.err >&5
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); } >/dev/null; then
21990   if test -s conftest.err; then
21991     ac_cpp_err=$ac_c_preproc_warn_flag
21992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21993   else
21994     ac_cpp_err=
21995   fi
21996 else
21997   ac_cpp_err=yes
21998 fi
21999 if test -z "$ac_cpp_err"; then
22000   # Broken: success on invalid input.
22001 continue
22002 else
22003   echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006   # Passes both tests.
22007 ac_preproc_ok=:
22008 break
22009 fi
22010 rm -f conftest.err conftest.$ac_ext
22011
22012 done
22013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22014 rm -f conftest.err conftest.$ac_ext
22015 if $ac_preproc_ok; then
22016   :
22017 else
22018   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22019 See \`config.log' for more details." >&5
22020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22021 See \`config.log' for more details." >&2;}
22022    { (exit 1); exit 1; }; }
22023 fi
22024
22025 ac_ext=c
22026 ac_cpp='$CPP $CPPFLAGS'
22027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22030
22031
22032
22033
22034
22035 cat >>confdefs.h <<_ACEOF
22036 #define EXEEXT "${EXEEXT}"
22037 _ACEOF
22038
22039
22040 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22041 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22042 if test "${ac_cv_lib_be_be_app+set}" = set; then
22043   echo $ECHO_N "(cached) $ECHO_C" >&6
22044 else
22045   ac_check_lib_save_LIBS=$LIBS
22046 LIBS="-lbe -lroot -lnet $LIBS"
22047 cat >conftest.$ac_ext <<_ACEOF
22048 /* confdefs.h.  */
22049 _ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h.  */
22053
22054 /* Override any gcc2 internal prototype to avoid an error.  */
22055 #ifdef __cplusplus
22056 extern "C"
22057 #endif
22058 /* We use char because int might match the return type of a gcc2
22059    builtin and then its argument prototype would still apply.  */
22060 char be_app ();
22061 int
22062 main ()
22063 {
22064 be_app ();
22065   ;
22066   return 0;
22067 }
22068 _ACEOF
22069 rm -f conftest.$ac_objext conftest$ac_exeext
22070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22071   (eval $ac_link) 2>conftest.er1
22072   ac_status=$?
22073   grep -v '^ *+' conftest.er1 >conftest.err
22074   rm -f conftest.er1
22075   cat conftest.err >&5
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); } &&
22078          { ac_try='test -z "$ac_c_werror_flag"
22079                          || test ! -s conftest.err'
22080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081   (eval $ac_try) 2>&5
22082   ac_status=$?
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); }; } &&
22085          { ac_try='test -s conftest$ac_exeext'
22086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087   (eval $ac_try) 2>&5
22088   ac_status=$?
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); }; }; then
22091   ac_cv_lib_be_be_app=yes
22092 else
22093   echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22095
22096 ac_cv_lib_be_be_app=no
22097 fi
22098 rm -f conftest.err conftest.$ac_objext \
22099       conftest$ac_exeext conftest.$ac_ext
22100 LIBS=$ac_check_lib_save_LIBS
22101 fi
22102 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22103 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22104 if test $ac_cv_lib_be_be_app = yes; then
22105   LIBS="$LIBS -lbe -lroot -lnet"
22106 else
22107   :
22108 fi
22109
22110
22111 ac_ext=c
22112 ac_cpp='$CPP $CPPFLAGS'
22113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22116 if test -n "$ac_tool_prefix"; then
22117   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22118 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22119 echo "$as_me:$LINENO: checking for $ac_word" >&5
22120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22121 if test "${ac_cv_prog_CC+set}" = set; then
22122   echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124   if test -n "$CC"; then
22125   ac_cv_prog_CC="$CC" # Let the user override the test.
22126 else
22127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22128 for as_dir in $PATH
22129 do
22130   IFS=$as_save_IFS
22131   test -z "$as_dir" && as_dir=.
22132   for ac_exec_ext in '' $ac_executable_extensions; do
22133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22134     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22136     break 2
22137   fi
22138 done
22139 done
22140
22141 fi
22142 fi
22143 CC=$ac_cv_prog_CC
22144 if test -n "$CC"; then
22145   echo "$as_me:$LINENO: result: $CC" >&5
22146 echo "${ECHO_T}$CC" >&6
22147 else
22148   echo "$as_me:$LINENO: result: no" >&5
22149 echo "${ECHO_T}no" >&6
22150 fi
22151
22152 fi
22153 if test -z "$ac_cv_prog_CC"; then
22154   ac_ct_CC=$CC
22155   # Extract the first word of "gcc", so it can be a program name with args.
22156 set dummy gcc; ac_word=$2
22157 echo "$as_me:$LINENO: checking for $ac_word" >&5
22158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22160   echo $ECHO_N "(cached) $ECHO_C" >&6
22161 else
22162   if test -n "$ac_ct_CC"; then
22163   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22164 else
22165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22166 for as_dir in $PATH
22167 do
22168   IFS=$as_save_IFS
22169   test -z "$as_dir" && as_dir=.
22170   for ac_exec_ext in '' $ac_executable_extensions; do
22171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22172     ac_cv_prog_ac_ct_CC="gcc"
22173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22174     break 2
22175   fi
22176 done
22177 done
22178
22179 fi
22180 fi
22181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22182 if test -n "$ac_ct_CC"; then
22183   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22184 echo "${ECHO_T}$ac_ct_CC" >&6
22185 else
22186   echo "$as_me:$LINENO: result: no" >&5
22187 echo "${ECHO_T}no" >&6
22188 fi
22189
22190   CC=$ac_ct_CC
22191 else
22192   CC="$ac_cv_prog_CC"
22193 fi
22194
22195 if test -z "$CC"; then
22196   if test -n "$ac_tool_prefix"; then
22197   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22198 set dummy ${ac_tool_prefix}cc; ac_word=$2
22199 echo "$as_me:$LINENO: checking for $ac_word" >&5
22200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22201 if test "${ac_cv_prog_CC+set}" = set; then
22202   echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204   if test -n "$CC"; then
22205   ac_cv_prog_CC="$CC" # Let the user override the test.
22206 else
22207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22208 for as_dir in $PATH
22209 do
22210   IFS=$as_save_IFS
22211   test -z "$as_dir" && as_dir=.
22212   for ac_exec_ext in '' $ac_executable_extensions; do
22213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22214     ac_cv_prog_CC="${ac_tool_prefix}cc"
22215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22216     break 2
22217   fi
22218 done
22219 done
22220
22221 fi
22222 fi
22223 CC=$ac_cv_prog_CC
22224 if test -n "$CC"; then
22225   echo "$as_me:$LINENO: result: $CC" >&5
22226 echo "${ECHO_T}$CC" >&6
22227 else
22228   echo "$as_me:$LINENO: result: no" >&5
22229 echo "${ECHO_T}no" >&6
22230 fi
22231
22232 fi
22233 if test -z "$ac_cv_prog_CC"; then
22234   ac_ct_CC=$CC
22235   # Extract the first word of "cc", so it can be a program name with args.
22236 set dummy cc; ac_word=$2
22237 echo "$as_me:$LINENO: checking for $ac_word" >&5
22238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22240   echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242   if test -n "$ac_ct_CC"; then
22243   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22244 else
22245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22246 for as_dir in $PATH
22247 do
22248   IFS=$as_save_IFS
22249   test -z "$as_dir" && as_dir=.
22250   for ac_exec_ext in '' $ac_executable_extensions; do
22251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22252     ac_cv_prog_ac_ct_CC="cc"
22253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22254     break 2
22255   fi
22256 done
22257 done
22258
22259 fi
22260 fi
22261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22262 if test -n "$ac_ct_CC"; then
22263   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22264 echo "${ECHO_T}$ac_ct_CC" >&6
22265 else
22266   echo "$as_me:$LINENO: result: no" >&5
22267 echo "${ECHO_T}no" >&6
22268 fi
22269
22270   CC=$ac_ct_CC
22271 else
22272   CC="$ac_cv_prog_CC"
22273 fi
22274
22275 fi
22276 if test -z "$CC"; then
22277   # Extract the first word of "cc", so it can be a program name with args.
22278 set dummy cc; ac_word=$2
22279 echo "$as_me:$LINENO: checking for $ac_word" >&5
22280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22281 if test "${ac_cv_prog_CC+set}" = set; then
22282   echo $ECHO_N "(cached) $ECHO_C" >&6
22283 else
22284   if test -n "$CC"; then
22285   ac_cv_prog_CC="$CC" # Let the user override the test.
22286 else
22287   ac_prog_rejected=no
22288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22289 for as_dir in $PATH
22290 do
22291   IFS=$as_save_IFS
22292   test -z "$as_dir" && as_dir=.
22293   for ac_exec_ext in '' $ac_executable_extensions; do
22294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22295     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22296        ac_prog_rejected=yes
22297        continue
22298      fi
22299     ac_cv_prog_CC="cc"
22300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22301     break 2
22302   fi
22303 done
22304 done
22305
22306 if test $ac_prog_rejected = yes; then
22307   # We found a bogon in the path, so make sure we never use it.
22308   set dummy $ac_cv_prog_CC
22309   shift
22310   if test $# != 0; then
22311     # We chose a different compiler from the bogus one.
22312     # However, it has the same basename, so the bogon will be chosen
22313     # first if we set CC to just the basename; use the full file name.
22314     shift
22315     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22316   fi
22317 fi
22318 fi
22319 fi
22320 CC=$ac_cv_prog_CC
22321 if test -n "$CC"; then
22322   echo "$as_me:$LINENO: result: $CC" >&5
22323 echo "${ECHO_T}$CC" >&6
22324 else
22325   echo "$as_me:$LINENO: result: no" >&5
22326 echo "${ECHO_T}no" >&6
22327 fi
22328
22329 fi
22330 if test -z "$CC"; then
22331   if test -n "$ac_tool_prefix"; then
22332   for ac_prog in cl
22333   do
22334     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22336 echo "$as_me:$LINENO: checking for $ac_word" >&5
22337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22338 if test "${ac_cv_prog_CC+set}" = set; then
22339   echo $ECHO_N "(cached) $ECHO_C" >&6
22340 else
22341   if test -n "$CC"; then
22342   ac_cv_prog_CC="$CC" # Let the user override the test.
22343 else
22344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22345 for as_dir in $PATH
22346 do
22347   IFS=$as_save_IFS
22348   test -z "$as_dir" && as_dir=.
22349   for ac_exec_ext in '' $ac_executable_extensions; do
22350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22351     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22353     break 2
22354   fi
22355 done
22356 done
22357
22358 fi
22359 fi
22360 CC=$ac_cv_prog_CC
22361 if test -n "$CC"; then
22362   echo "$as_me:$LINENO: result: $CC" >&5
22363 echo "${ECHO_T}$CC" >&6
22364 else
22365   echo "$as_me:$LINENO: result: no" >&5
22366 echo "${ECHO_T}no" >&6
22367 fi
22368
22369     test -n "$CC" && break
22370   done
22371 fi
22372 if test -z "$CC"; then
22373   ac_ct_CC=$CC
22374   for ac_prog in cl
22375 do
22376   # Extract the first word of "$ac_prog", so it can be a program name with args.
22377 set dummy $ac_prog; ac_word=$2
22378 echo "$as_me:$LINENO: checking for $ac_word" >&5
22379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22381   echo $ECHO_N "(cached) $ECHO_C" >&6
22382 else
22383   if test -n "$ac_ct_CC"; then
22384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22385 else
22386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22387 for as_dir in $PATH
22388 do
22389   IFS=$as_save_IFS
22390   test -z "$as_dir" && as_dir=.
22391   for ac_exec_ext in '' $ac_executable_extensions; do
22392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22393     ac_cv_prog_ac_ct_CC="$ac_prog"
22394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22395     break 2
22396   fi
22397 done
22398 done
22399
22400 fi
22401 fi
22402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22403 if test -n "$ac_ct_CC"; then
22404   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22405 echo "${ECHO_T}$ac_ct_CC" >&6
22406 else
22407   echo "$as_me:$LINENO: result: no" >&5
22408 echo "${ECHO_T}no" >&6
22409 fi
22410
22411   test -n "$ac_ct_CC" && break
22412 done
22413
22414   CC=$ac_ct_CC
22415 fi
22416
22417 fi
22418
22419
22420 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22421 See \`config.log' for more details." >&5
22422 echo "$as_me: error: no acceptable C compiler found in \$PATH
22423 See \`config.log' for more details." >&2;}
22424    { (exit 1); exit 1; }; }
22425
22426 # Provide some information about the compiler.
22427 echo "$as_me:$LINENO:" \
22428      "checking for C compiler version" >&5
22429 ac_compiler=`set X $ac_compile; echo $2`
22430 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22431   (eval $ac_compiler --version </dev/null >&5) 2>&5
22432   ac_status=$?
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); }
22435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22436   (eval $ac_compiler -v </dev/null >&5) 2>&5
22437   ac_status=$?
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); }
22440 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22441   (eval $ac_compiler -V </dev/null >&5) 2>&5
22442   ac_status=$?
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); }
22445
22446 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22447 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22448 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22449   echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451   cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h.  */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h.  */
22457
22458 int
22459 main ()
22460 {
22461 #ifndef __GNUC__
22462        choke me
22463 #endif
22464
22465   ;
22466   return 0;
22467 }
22468 _ACEOF
22469 rm -f conftest.$ac_objext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22471   (eval $ac_compile) 2>conftest.er1
22472   ac_status=$?
22473   grep -v '^ *+' conftest.er1 >conftest.err
22474   rm -f conftest.er1
22475   cat conftest.err >&5
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } &&
22478          { ac_try='test -z "$ac_c_werror_flag"
22479                          || test ! -s conftest.err'
22480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481   (eval $ac_try) 2>&5
22482   ac_status=$?
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); }; } &&
22485          { ac_try='test -s conftest.$ac_objext'
22486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487   (eval $ac_try) 2>&5
22488   ac_status=$?
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); }; }; then
22491   ac_compiler_gnu=yes
22492 else
22493   echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22495
22496 ac_compiler_gnu=no
22497 fi
22498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22500
22501 fi
22502 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22504 GCC=`test $ac_compiler_gnu = yes && echo yes`
22505 ac_test_CFLAGS=${CFLAGS+set}
22506 ac_save_CFLAGS=$CFLAGS
22507 CFLAGS="-g"
22508 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22509 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22510 if test "${ac_cv_prog_cc_g+set}" = set; then
22511   echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513   cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519
22520 int
22521 main ()
22522 {
22523
22524   ;
22525   return 0;
22526 }
22527 _ACEOF
22528 rm -f conftest.$ac_objext
22529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22530   (eval $ac_compile) 2>conftest.er1
22531   ac_status=$?
22532   grep -v '^ *+' conftest.er1 >conftest.err
22533   rm -f conftest.er1
22534   cat conftest.err >&5
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); } &&
22537          { ac_try='test -z "$ac_c_werror_flag"
22538                          || test ! -s conftest.err'
22539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540   (eval $ac_try) 2>&5
22541   ac_status=$?
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); }; } &&
22544          { ac_try='test -s conftest.$ac_objext'
22545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546   (eval $ac_try) 2>&5
22547   ac_status=$?
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); }; }; then
22550   ac_cv_prog_cc_g=yes
22551 else
22552   echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22554
22555 ac_cv_prog_cc_g=no
22556 fi
22557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22558 fi
22559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22560 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22561 if test "$ac_test_CFLAGS" = set; then
22562   CFLAGS=$ac_save_CFLAGS
22563 elif test $ac_cv_prog_cc_g = yes; then
22564   if test "$GCC" = yes; then
22565     CFLAGS="-g -O2"
22566   else
22567     CFLAGS="-g"
22568   fi
22569 else
22570   if test "$GCC" = yes; then
22571     CFLAGS="-O2"
22572   else
22573     CFLAGS=
22574   fi
22575 fi
22576 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22577 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22578 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22579   echo $ECHO_N "(cached) $ECHO_C" >&6
22580 else
22581   ac_cv_prog_cc_stdc=no
22582 ac_save_CC=$CC
22583 cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 #include <stdarg.h>
22590 #include <stdio.h>
22591 #include <sys/types.h>
22592 #include <sys/stat.h>
22593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22594 struct buf { int x; };
22595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22596 static char *e (p, i)
22597      char **p;
22598      int i;
22599 {
22600   return p[i];
22601 }
22602 static char *f (char * (*g) (char **, int), char **p, ...)
22603 {
22604   char *s;
22605   va_list v;
22606   va_start (v,p);
22607   s = g (p, va_arg (v,int));
22608   va_end (v);
22609   return s;
22610 }
22611
22612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22613    function prototypes and stuff, but not '\xHH' hex character constants.
22614    These don't provoke an error unfortunately, instead are silently treated
22615    as 'x'.  The following induces an error, until -std1 is added to get
22616    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22617    array size at least.  It's necessary to write '\x00'==0 to get something
22618    that's true only with -std1.  */
22619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22620
22621 int test (int i, double x);
22622 struct s1 {int (*f) (int a);};
22623 struct s2 {int (*f) (double a);};
22624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22625 int argc;
22626 char **argv;
22627 int
22628 main ()
22629 {
22630 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22631   ;
22632   return 0;
22633 }
22634 _ACEOF
22635 # Don't try gcc -ansi; that turns off useful extensions and
22636 # breaks some systems' header files.
22637 # AIX                   -qlanglvl=ansi
22638 # Ultrix and OSF/1      -std1
22639 # HP-UX 10.20 and later -Ae
22640 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22641 # SVR4                  -Xc -D__EXTENSIONS__
22642 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22643 do
22644   CC="$ac_save_CC $ac_arg"
22645   rm -f conftest.$ac_objext
22646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22647   (eval $ac_compile) 2>conftest.er1
22648   ac_status=$?
22649   grep -v '^ *+' conftest.er1 >conftest.err
22650   rm -f conftest.er1
22651   cat conftest.err >&5
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); } &&
22654          { ac_try='test -z "$ac_c_werror_flag"
22655                          || test ! -s conftest.err'
22656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22657   (eval $ac_try) 2>&5
22658   ac_status=$?
22659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); }; } &&
22661          { ac_try='test -s conftest.$ac_objext'
22662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663   (eval $ac_try) 2>&5
22664   ac_status=$?
22665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666   (exit $ac_status); }; }; then
22667   ac_cv_prog_cc_stdc=$ac_arg
22668 break
22669 else
22670   echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22672
22673 fi
22674 rm -f conftest.err conftest.$ac_objext
22675 done
22676 rm -f conftest.$ac_ext conftest.$ac_objext
22677 CC=$ac_save_CC
22678
22679 fi
22680
22681 case "x$ac_cv_prog_cc_stdc" in
22682   x|xno)
22683     echo "$as_me:$LINENO: result: none needed" >&5
22684 echo "${ECHO_T}none needed" >&6 ;;
22685   *)
22686     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22687 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22688     CC="$CC $ac_cv_prog_cc_stdc" ;;
22689 esac
22690
22691 # Some people use a C++ compiler to compile C.  Since we use `exit',
22692 # in C++ we need to declare it.  In case someone uses the same compiler
22693 # for both compiling C and C++ we need to have the C++ compiler decide
22694 # the declaration of exit, since it's the most demanding environment.
22695 cat >conftest.$ac_ext <<_ACEOF
22696 #ifndef __cplusplus
22697   choke me
22698 #endif
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22702   (eval $ac_compile) 2>conftest.er1
22703   ac_status=$?
22704   grep -v '^ *+' conftest.er1 >conftest.err
22705   rm -f conftest.er1
22706   cat conftest.err >&5
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); } &&
22709          { ac_try='test -z "$ac_c_werror_flag"
22710                          || test ! -s conftest.err'
22711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712   (eval $ac_try) 2>&5
22713   ac_status=$?
22714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715   (exit $ac_status); }; } &&
22716          { ac_try='test -s conftest.$ac_objext'
22717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718   (eval $ac_try) 2>&5
22719   ac_status=$?
22720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721   (exit $ac_status); }; }; then
22722   for ac_declaration in \
22723    '' \
22724    'extern "C" void std::exit (int) throw (); using std::exit;' \
22725    'extern "C" void std::exit (int); using std::exit;' \
22726    'extern "C" void exit (int) throw ();' \
22727    'extern "C" void exit (int);' \
22728    'void exit (int);'
22729 do
22730   cat >conftest.$ac_ext <<_ACEOF
22731 /* confdefs.h.  */
22732 _ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h.  */
22736 $ac_declaration
22737 #include <stdlib.h>
22738 int
22739 main ()
22740 {
22741 exit (42);
22742   ;
22743   return 0;
22744 }
22745 _ACEOF
22746 rm -f conftest.$ac_objext
22747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22748   (eval $ac_compile) 2>conftest.er1
22749   ac_status=$?
22750   grep -v '^ *+' conftest.er1 >conftest.err
22751   rm -f conftest.er1
22752   cat conftest.err >&5
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); } &&
22755          { ac_try='test -z "$ac_c_werror_flag"
22756                          || test ! -s conftest.err'
22757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758   (eval $ac_try) 2>&5
22759   ac_status=$?
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); }; } &&
22762          { ac_try='test -s conftest.$ac_objext'
22763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764   (eval $ac_try) 2>&5
22765   ac_status=$?
22766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767   (exit $ac_status); }; }; then
22768   :
22769 else
22770   echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22772
22773 continue
22774 fi
22775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22776   cat >conftest.$ac_ext <<_ACEOF
22777 /* confdefs.h.  */
22778 _ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h.  */
22782 $ac_declaration
22783 int
22784 main ()
22785 {
22786 exit (42);
22787   ;
22788   return 0;
22789 }
22790 _ACEOF
22791 rm -f conftest.$ac_objext
22792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22793   (eval $ac_compile) 2>conftest.er1
22794   ac_status=$?
22795   grep -v '^ *+' conftest.er1 >conftest.err
22796   rm -f conftest.er1
22797   cat conftest.err >&5
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); } &&
22800          { ac_try='test -z "$ac_c_werror_flag"
22801                          || test ! -s conftest.err'
22802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803   (eval $ac_try) 2>&5
22804   ac_status=$?
22805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806   (exit $ac_status); }; } &&
22807          { ac_try='test -s conftest.$ac_objext'
22808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809   (eval $ac_try) 2>&5
22810   ac_status=$?
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); }; }; then
22813   break
22814 else
22815   echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22817
22818 fi
22819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22820 done
22821 rm -f conftest*
22822 if test -n "$ac_declaration"; then
22823   echo '#ifdef __cplusplus' >>confdefs.h
22824   echo $ac_declaration      >>confdefs.h
22825   echo '#endif'             >>confdefs.h
22826 fi
22827
22828 else
22829   echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22831
22832 fi
22833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22834 ac_ext=c
22835 ac_cpp='$CPP $CPPFLAGS'
22836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22839
22840 depcc="$CC"   am_compiler_list=
22841
22842 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22843 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22845   echo $ECHO_N "(cached) $ECHO_C" >&6
22846 else
22847   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22848   # We make a subdir and do the tests there.  Otherwise we can end up
22849   # making bogus files that we don't know about and never remove.  For
22850   # instance it was reported that on HP-UX the gcc test will end up
22851   # making a dummy file named `D' -- because `-MD' means `put the output
22852   # in D'.
22853   mkdir conftest.dir
22854   # Copy depcomp to subdir because otherwise we won't find it if we're
22855   # using a relative directory.
22856   cp "$am_depcomp" conftest.dir
22857   cd conftest.dir
22858   # We will build objects and dependencies in a subdirectory because
22859   # it helps to detect inapplicable dependency modes.  For instance
22860   # both Tru64's cc and ICC support -MD to output dependencies as a
22861   # side effect of compilation, but ICC will put the dependencies in
22862   # the current directory while Tru64 will put them in the object
22863   # directory.
22864   mkdir sub
22865
22866   am_cv_CC_dependencies_compiler_type=none
22867   if test "$am_compiler_list" = ""; then
22868      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22869   fi
22870   for depmode in $am_compiler_list; do
22871     # Setup a source with many dependencies, because some compilers
22872     # like to wrap large dependency lists on column 80 (with \), and
22873     # we should not choose a depcomp mode which is confused by this.
22874     #
22875     # We need to recreate these files for each test, as the compiler may
22876     # overwrite some of them when testing with obscure command lines.
22877     # This happens at least with the AIX C compiler.
22878     : > sub/conftest.c
22879     for i in 1 2 3 4 5 6; do
22880       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22881       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22882       # Solaris 8's {/usr,}/bin/sh.
22883       touch sub/conftst$i.h
22884     done
22885     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22886
22887     case $depmode in
22888     nosideeffect)
22889       # after this tag, mechanisms are not by side-effect, so they'll
22890       # only be used when explicitly requested
22891       if test "x$enable_dependency_tracking" = xyes; then
22892         continue
22893       else
22894         break
22895       fi
22896       ;;
22897     none) break ;;
22898     esac
22899     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22900     # mode.  It turns out that the SunPro C++ compiler does not properly
22901     # handle `-M -o', and we need to detect this.
22902     if depmode=$depmode \
22903        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22904        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22905        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22906          >/dev/null 2>conftest.err &&
22907        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22908        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22909        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22910       # icc doesn't choke on unknown options, it will just issue warnings
22911       # or remarks (even with -Werror).  So we grep stderr for any message
22912       # that says an option was ignored or not supported.
22913       # When given -MP, icc 7.0 and 7.1 complain thusly:
22914       #   icc: Command line warning: ignoring option '-M'; no argument required
22915       # The diagnosis changed in icc 8.0:
22916       #   icc: Command line remark: option '-MP' not supported
22917       if (grep 'ignoring option' conftest.err ||
22918           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22919         am_cv_CC_dependencies_compiler_type=$depmode
22920         break
22921       fi
22922     fi
22923   done
22924
22925   cd ..
22926   rm -rf conftest.dir
22927 else
22928   am_cv_CC_dependencies_compiler_type=none
22929 fi
22930
22931 fi
22932 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22933 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22935
22936
22937
22938 if
22939   test "x$enable_dependency_tracking" != xno \
22940   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22941   am__fastdepCC_TRUE=
22942   am__fastdepCC_FALSE='#'
22943 else
22944   am__fastdepCC_TRUE='#'
22945   am__fastdepCC_FALSE=
22946 fi
22947
22948
22949 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22950         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22951 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22952    { (exit 1); exit 1; }; }
22953 fi
22954
22955 # test for make depend flag
22956 OL_MKDEP=
22957 OL_MKDEP_FLAGS=
22958 if test -z "${MKDEP}"; then
22959         OL_MKDEP="${CC-cc}"
22960         if test -z "${MKDEP_FLAGS}"; then
22961                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22962 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22963 if test "${ol_cv_mkdep+set}" = set; then
22964   echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966
22967                         ol_cv_mkdep=no
22968                         for flag in "-M" "-xM"; do
22969                                 cat > conftest.c <<EOF
22970  noCode;
22971 EOF
22972                                 if { ac_try='$OL_MKDEP $flag conftest.c'
22973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22974   (eval $ac_try) 2>&5
22975   ac_status=$?
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); }; } \
22978                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22979                                 then
22980                                         if test ! -f conftest."${ac_object}" ; then
22981                                                 ol_cv_mkdep=$flag
22982                                                 OL_MKDEP_FLAGS="$flag"
22983                                                 break
22984                                         fi
22985                                 fi
22986                         done
22987                         rm -f conftest*
22988
22989 fi
22990 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22991 echo "${ECHO_T}$ol_cv_mkdep" >&6
22992         else
22993                 cc_cv_mkdep=yes
22994                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22995         fi
22996 else
22997         cc_cv_mkdep=yes
22998         OL_MKDEP="${MKDEP}"
22999         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23000 fi
23001
23002
23003
23004 if test "${ol_cv_mkdep}" = no ; then
23005         # this will soon become an error
23006         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23007 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23008 fi
23009
23010 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23011 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23012 if test "${ac_cv_lib_s_afopen+set}" = set; then
23013   echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015   ac_check_lib_save_LIBS=$LIBS
23016 LIBS="-ls  $LIBS"
23017 cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h.  */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h.  */
23023
23024 /* Override any gcc2 internal prototype to avoid an error.  */
23025 #ifdef __cplusplus
23026 extern "C"
23027 #endif
23028 /* We use char because int might match the return type of a gcc2
23029    builtin and then its argument prototype would still apply.  */
23030 char afopen ();
23031 int
23032 main ()
23033 {
23034 afopen ();
23035   ;
23036   return 0;
23037 }
23038 _ACEOF
23039 rm -f conftest.$ac_objext conftest$ac_exeext
23040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23041   (eval $ac_link) 2>conftest.er1
23042   ac_status=$?
23043   grep -v '^ *+' conftest.er1 >conftest.err
23044   rm -f conftest.er1
23045   cat conftest.err >&5
23046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047   (exit $ac_status); } &&
23048          { ac_try='test -z "$ac_c_werror_flag"
23049                          || test ! -s conftest.err'
23050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051   (eval $ac_try) 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; } &&
23055          { ac_try='test -s conftest$ac_exeext'
23056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057   (eval $ac_try) 2>&5
23058   ac_status=$?
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); }; }; then
23061   ac_cv_lib_s_afopen=yes
23062 else
23063   echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23065
23066 ac_cv_lib_s_afopen=no
23067 fi
23068 rm -f conftest.err conftest.$ac_objext \
23069       conftest$ac_exeext conftest.$ac_ext
23070 LIBS=$ac_check_lib_save_LIBS
23071 fi
23072 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23073 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23074 if test $ac_cv_lib_s_afopen = yes; then
23075
23076         AUTH_LIBS=-ls
23077
23078 cat >>confdefs.h <<\_ACEOF
23079 #define HAVE_AIX_SECURITY 1
23080 _ACEOF
23081
23082
23083 fi
23084
23085
23086 case "$target" in
23087 *-ibm-openedition)
23088         ac_cv_func_getopt=no
23089
23090 cat >>confdefs.h <<\_ACEOF
23091 #define BOTH_STRINGS_H 1
23092 _ACEOF
23093
23094         ;;
23095 esac
23096
23097 ol_link_modules=no
23098 WITH_MODULES_ENABLED=no
23099 if test $ol_enable_modules != no ; then
23100
23101 for ac_header in ltdl.h
23102 do
23103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23105   echo "$as_me:$LINENO: checking for $ac_header" >&5
23106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23108   echo $ECHO_N "(cached) $ECHO_C" >&6
23109 fi
23110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23112 else
23113   # Is the header compilable?
23114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23116 cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h.  */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h.  */
23122 $ac_includes_default
23123 #include <$ac_header>
23124 _ACEOF
23125 rm -f conftest.$ac_objext
23126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23127   (eval $ac_compile) 2>conftest.er1
23128   ac_status=$?
23129   grep -v '^ *+' conftest.er1 >conftest.err
23130   rm -f conftest.er1
23131   cat conftest.err >&5
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); } &&
23134          { ac_try='test -z "$ac_c_werror_flag"
23135                          || test ! -s conftest.err'
23136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137   (eval $ac_try) 2>&5
23138   ac_status=$?
23139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140   (exit $ac_status); }; } &&
23141          { ac_try='test -s conftest.$ac_objext'
23142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143   (eval $ac_try) 2>&5
23144   ac_status=$?
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); }; }; then
23147   ac_header_compiler=yes
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ac_header_compiler=no
23153 fi
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23156 echo "${ECHO_T}$ac_header_compiler" >&6
23157
23158 # Is the header present?
23159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23161 cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h.  */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h.  */
23167 #include <$ac_header>
23168 _ACEOF
23169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23171   ac_status=$?
23172   grep -v '^ *+' conftest.er1 >conftest.err
23173   rm -f conftest.er1
23174   cat conftest.err >&5
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } >/dev/null; then
23177   if test -s conftest.err; then
23178     ac_cpp_err=$ac_c_preproc_warn_flag
23179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23180   else
23181     ac_cpp_err=
23182   fi
23183 else
23184   ac_cpp_err=yes
23185 fi
23186 if test -z "$ac_cpp_err"; then
23187   ac_header_preproc=yes
23188 else
23189   echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23191
23192   ac_header_preproc=no
23193 fi
23194 rm -f conftest.err conftest.$ac_ext
23195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23196 echo "${ECHO_T}$ac_header_preproc" >&6
23197
23198 # So?  What about this header?
23199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23200   yes:no: )
23201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23205     ac_header_preproc=yes
23206     ;;
23207   no:yes:* )
23208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23220     (
23221       cat <<\_ASBOX
23222 ## ------------------------------------------ ##
23223 ## Report this to the AC_PACKAGE_NAME lists.  ##
23224 ## ------------------------------------------ ##
23225 _ASBOX
23226     ) |
23227       sed "s/^/$as_me: WARNING:     /" >&2
23228     ;;
23229 esac
23230 echo "$as_me:$LINENO: checking for $ac_header" >&5
23231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23233   echo $ECHO_N "(cached) $ECHO_C" >&6
23234 else
23235   eval "$as_ac_Header=\$ac_header_preproc"
23236 fi
23237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23239
23240 fi
23241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23242   cat >>confdefs.h <<_ACEOF
23243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23244 _ACEOF
23245
23246 fi
23247
23248 done
23249
23250
23251         if test $ac_cv_header_ltdl_h = no ; then
23252                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23253 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23254    { (exit 1); exit 1; }; }
23255         fi
23256
23257         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23258 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23259 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23260   echo $ECHO_N "(cached) $ECHO_C" >&6
23261 else
23262   ac_check_lib_save_LIBS=$LIBS
23263 LIBS="-lltdl  $LIBS"
23264 cat >conftest.$ac_ext <<_ACEOF
23265 /* confdefs.h.  */
23266 _ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h.  */
23270
23271 /* Override any gcc2 internal prototype to avoid an error.  */
23272 #ifdef __cplusplus
23273 extern "C"
23274 #endif
23275 /* We use char because int might match the return type of a gcc2
23276    builtin and then its argument prototype would still apply.  */
23277 char lt_dlinit ();
23278 int
23279 main ()
23280 {
23281 lt_dlinit ();
23282   ;
23283   return 0;
23284 }
23285 _ACEOF
23286 rm -f conftest.$ac_objext conftest$ac_exeext
23287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23288   (eval $ac_link) 2>conftest.er1
23289   ac_status=$?
23290   grep -v '^ *+' conftest.er1 >conftest.err
23291   rm -f conftest.er1
23292   cat conftest.err >&5
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); } &&
23295          { ac_try='test -z "$ac_c_werror_flag"
23296                          || test ! -s conftest.err'
23297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298   (eval $ac_try) 2>&5
23299   ac_status=$?
23300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301   (exit $ac_status); }; } &&
23302          { ac_try='test -s conftest$ac_exeext'
23303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304   (eval $ac_try) 2>&5
23305   ac_status=$?
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); }; }; then
23308   ac_cv_lib_ltdl_lt_dlinit=yes
23309 else
23310   echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23312
23313 ac_cv_lib_ltdl_lt_dlinit=no
23314 fi
23315 rm -f conftest.err conftest.$ac_objext \
23316       conftest$ac_exeext conftest.$ac_ext
23317 LIBS=$ac_check_lib_save_LIBS
23318 fi
23319 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23320 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23321 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23322
23323                 MODULES_LIBS=-lltdl
23324
23325 cat >>confdefs.h <<\_ACEOF
23326 #define HAVE_LIBLTDL 1
23327 _ACEOF
23328
23329
23330 fi
23331
23332
23333         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23334                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23335 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23336    { (exit 1); exit 1; }; }
23337         fi
23338         ol_link_modules=yes
23339         WITH_MODULES_ENABLED=yes
23340
23341 else
23342         for i in $Backends; do
23343                 eval "ol_tmp=\$ol_enable_$i"
23344                 if test $ol_tmp = mod ; then
23345                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23346 echo "$as_me: WARNING: building static $i backend" >&2;}
23347                         eval "ol_enable_$i=yes"
23348                 fi
23349         done
23350         for i in $Overlays; do
23351                 eval "ol_tmp=\$ol_enable_$i"
23352                 if test $ol_tmp = mod ; then
23353                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23354 echo "$as_me: WARNING: building static $i overlay" >&2;}
23355                         eval "ol_enable_$i=yes"
23356                 fi
23357         done
23358 fi
23359
23360 # test for EBCDIC
23361 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23362 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23363 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23364   echo $ECHO_N "(cached) $ECHO_C" >&6
23365 else
23366
23367         cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h.  */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h.  */
23373
23374 #if !('M' == 0xd4)
23375 #include <__ASCII__/generate_error.h>
23376 #endif
23377
23378 _ACEOF
23379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23381   ac_status=$?
23382   grep -v '^ *+' conftest.er1 >conftest.err
23383   rm -f conftest.er1
23384   cat conftest.err >&5
23385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386   (exit $ac_status); } >/dev/null; then
23387   if test -s conftest.err; then
23388     ac_cpp_err=$ac_c_preproc_warn_flag
23389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23390   else
23391     ac_cpp_err=
23392   fi
23393 else
23394   ac_cpp_err=yes
23395 fi
23396 if test -z "$ac_cpp_err"; then
23397   ol_cv_cpp_ebcdic=yes
23398 else
23399   echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23401
23402   ol_cv_cpp_ebcdic=no
23403 fi
23404 rm -f conftest.err conftest.$ac_ext
23405 fi
23406 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23407 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23408 if test $ol_cv_cpp_ebcdic = yes ; then
23409
23410 cat >>confdefs.h <<\_ACEOF
23411 #define HAVE_EBCDIC 1
23412 _ACEOF
23413
23414 fi
23415
23416 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23417 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23418 if test "${ol_cv_header_stdc+set}" = set; then
23419   echo $ECHO_N "(cached) $ECHO_C" >&6
23420 else
23421   cat >conftest.$ac_ext <<_ACEOF
23422 /* confdefs.h.  */
23423 _ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h.  */
23427 #include <stdlib.h>
23428 #include <stdarg.h>
23429 #include <string.h>
23430 #include <float.h>
23431 _ACEOF
23432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23434   ac_status=$?
23435   grep -v '^ *+' conftest.er1 >conftest.err
23436   rm -f conftest.er1
23437   cat conftest.err >&5
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); } >/dev/null; then
23440   if test -s conftest.err; then
23441     ac_cpp_err=$ac_c_preproc_warn_flag
23442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23443   else
23444     ac_cpp_err=
23445   fi
23446 else
23447   ac_cpp_err=yes
23448 fi
23449 if test -z "$ac_cpp_err"; then
23450   ol_cv_header_stdc=yes
23451 else
23452   echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23454
23455   ol_cv_header_stdc=no
23456 fi
23457 rm -f conftest.err conftest.$ac_ext
23458
23459 if test $ol_cv_header_stdc = yes; then
23460   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23461 cat >conftest.$ac_ext <<_ACEOF
23462 /* confdefs.h.  */
23463 _ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h.  */
23467 #include <string.h>
23468
23469 _ACEOF
23470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23471   $EGREP "memchr" >/dev/null 2>&1; then
23472   :
23473 else
23474   ol_cv_header_stdc=no
23475 fi
23476 rm -f conftest*
23477
23478 fi
23479
23480 if test $ol_cv_header_stdc = yes; then
23481   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23482 cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h.  */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h.  */
23488 #include <stdlib.h>
23489
23490 _ACEOF
23491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23492   $EGREP "free" >/dev/null 2>&1; then
23493   :
23494 else
23495   ol_cv_header_stdc=no
23496 fi
23497 rm -f conftest*
23498
23499 fi
23500
23501 if test $ol_cv_header_stdc = yes; then
23502   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23503 if test "$cross_compiling" = yes; then
23504   :
23505 else
23506   cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512 #include <ctype.h>
23513 #ifndef HAVE_EBCDIC
23514 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23515 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23516 #else
23517 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23518                 || ('j' <= (c) && (c) <= 'r') \
23519                 || ('s' <= (c) && (c) <= 'z'))
23520 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23521 #endif
23522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23523 int main () { int i; for (i = 0; i < 256; i++)
23524 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23525 exit (0); }
23526
23527 _ACEOF
23528 rm -f conftest$ac_exeext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23530   (eval $ac_link) 2>&5
23531   ac_status=$?
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535   (eval $ac_try) 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); }; }; then
23539   :
23540 else
23541   echo "$as_me: program exited with status $ac_status" >&5
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23544
23545 ( exit $ac_status )
23546 ol_cv_header_stdc=no
23547 fi
23548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23549 fi
23550 fi
23551 fi
23552 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23553 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23554 if test $ol_cv_header_stdc = yes; then
23555   cat >>confdefs.h <<\_ACEOF
23556 #define STDC_HEADERS 1
23557 _ACEOF
23558
23559 fi
23560 ac_cv_header_stdc=disable
23561
23562
23563 if test $ol_cv_header_stdc != yes; then
23564         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23565 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23566 fi
23567
23568
23569
23570
23571
23572
23573 ac_header_dirent=no
23574 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23575   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23576 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23577 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23579   echo $ECHO_N "(cached) $ECHO_C" >&6
23580 else
23581   cat >conftest.$ac_ext <<_ACEOF
23582 /* confdefs.h.  */
23583 _ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h.  */
23587 #include <sys/types.h>
23588 #include <$ac_hdr>
23589
23590 int
23591 main ()
23592 {
23593 if ((DIR *) 0)
23594 return 0;
23595   ;
23596   return 0;
23597 }
23598 _ACEOF
23599 rm -f conftest.$ac_objext
23600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23601   (eval $ac_compile) 2>conftest.er1
23602   ac_status=$?
23603   grep -v '^ *+' conftest.er1 >conftest.err
23604   rm -f conftest.er1
23605   cat conftest.err >&5
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); } &&
23608          { ac_try='test -z "$ac_c_werror_flag"
23609                          || test ! -s conftest.err'
23610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611   (eval $ac_try) 2>&5
23612   ac_status=$?
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); }; } &&
23615          { ac_try='test -s conftest.$ac_objext'
23616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617   (eval $ac_try) 2>&5
23618   ac_status=$?
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); }; }; then
23621   eval "$as_ac_Header=yes"
23622 else
23623   echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23625
23626 eval "$as_ac_Header=no"
23627 fi
23628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23629 fi
23630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23633   cat >>confdefs.h <<_ACEOF
23634 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23635 _ACEOF
23636
23637 ac_header_dirent=$ac_hdr; break
23638 fi
23639
23640 done
23641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23642 if test $ac_header_dirent = dirent.h; then
23643   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23644 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23645 if test "${ac_cv_search_opendir+set}" = set; then
23646   echo $ECHO_N "(cached) $ECHO_C" >&6
23647 else
23648   ac_func_search_save_LIBS=$LIBS
23649 ac_cv_search_opendir=no
23650 cat >conftest.$ac_ext <<_ACEOF
23651 /* confdefs.h.  */
23652 _ACEOF
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h.  */
23656
23657 /* Override any gcc2 internal prototype to avoid an error.  */
23658 #ifdef __cplusplus
23659 extern "C"
23660 #endif
23661 /* We use char because int might match the return type of a gcc2
23662    builtin and then its argument prototype would still apply.  */
23663 char opendir ();
23664 int
23665 main ()
23666 {
23667 opendir ();
23668   ;
23669   return 0;
23670 }
23671 _ACEOF
23672 rm -f conftest.$ac_objext conftest$ac_exeext
23673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23674   (eval $ac_link) 2>conftest.er1
23675   ac_status=$?
23676   grep -v '^ *+' conftest.er1 >conftest.err
23677   rm -f conftest.er1
23678   cat conftest.err >&5
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); } &&
23681          { ac_try='test -z "$ac_c_werror_flag"
23682                          || test ! -s conftest.err'
23683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684   (eval $ac_try) 2>&5
23685   ac_status=$?
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); }; } &&
23688          { ac_try='test -s conftest$ac_exeext'
23689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690   (eval $ac_try) 2>&5
23691   ac_status=$?
23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); }; }; then
23694   ac_cv_search_opendir="none required"
23695 else
23696   echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699 fi
23700 rm -f conftest.err conftest.$ac_objext \
23701       conftest$ac_exeext conftest.$ac_ext
23702 if test "$ac_cv_search_opendir" = no; then
23703   for ac_lib in dir; do
23704     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23705     cat >conftest.$ac_ext <<_ACEOF
23706 /* confdefs.h.  */
23707 _ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h.  */
23711
23712 /* Override any gcc2 internal prototype to avoid an error.  */
23713 #ifdef __cplusplus
23714 extern "C"
23715 #endif
23716 /* We use char because int might match the return type of a gcc2
23717    builtin and then its argument prototype would still apply.  */
23718 char opendir ();
23719 int
23720 main ()
23721 {
23722 opendir ();
23723   ;
23724   return 0;
23725 }
23726 _ACEOF
23727 rm -f conftest.$ac_objext conftest$ac_exeext
23728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23729   (eval $ac_link) 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } &&
23736          { ac_try='test -z "$ac_c_werror_flag"
23737                          || test ! -s conftest.err'
23738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739   (eval $ac_try) 2>&5
23740   ac_status=$?
23741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742   (exit $ac_status); }; } &&
23743          { ac_try='test -s conftest$ac_exeext'
23744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745   (eval $ac_try) 2>&5
23746   ac_status=$?
23747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748   (exit $ac_status); }; }; then
23749   ac_cv_search_opendir="-l$ac_lib"
23750 break
23751 else
23752   echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23754
23755 fi
23756 rm -f conftest.err conftest.$ac_objext \
23757       conftest$ac_exeext conftest.$ac_ext
23758   done
23759 fi
23760 LIBS=$ac_func_search_save_LIBS
23761 fi
23762 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23763 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23764 if test "$ac_cv_search_opendir" != no; then
23765   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23766
23767 fi
23768
23769 else
23770   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23772 if test "${ac_cv_search_opendir+set}" = set; then
23773   echo $ECHO_N "(cached) $ECHO_C" >&6
23774 else
23775   ac_func_search_save_LIBS=$LIBS
23776 ac_cv_search_opendir=no
23777 cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h.  */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h.  */
23783
23784 /* Override any gcc2 internal prototype to avoid an error.  */
23785 #ifdef __cplusplus
23786 extern "C"
23787 #endif
23788 /* We use char because int might match the return type of a gcc2
23789    builtin and then its argument prototype would still apply.  */
23790 char opendir ();
23791 int
23792 main ()
23793 {
23794 opendir ();
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23801   (eval $ac_link) 2>conftest.er1
23802   ac_status=$?
23803   grep -v '^ *+' conftest.er1 >conftest.err
23804   rm -f conftest.er1
23805   cat conftest.err >&5
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } &&
23808          { ac_try='test -z "$ac_c_werror_flag"
23809                          || test ! -s conftest.err'
23810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811   (eval $ac_try) 2>&5
23812   ac_status=$?
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); }; } &&
23815          { ac_try='test -s conftest$ac_exeext'
23816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817   (eval $ac_try) 2>&5
23818   ac_status=$?
23819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820   (exit $ac_status); }; }; then
23821   ac_cv_search_opendir="none required"
23822 else
23823   echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23825
23826 fi
23827 rm -f conftest.err conftest.$ac_objext \
23828       conftest$ac_exeext conftest.$ac_ext
23829 if test "$ac_cv_search_opendir" = no; then
23830   for ac_lib in x; do
23831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23832     cat >conftest.$ac_ext <<_ACEOF
23833 /* confdefs.h.  */
23834 _ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h.  */
23838
23839 /* Override any gcc2 internal prototype to avoid an error.  */
23840 #ifdef __cplusplus
23841 extern "C"
23842 #endif
23843 /* We use char because int might match the return type of a gcc2
23844    builtin and then its argument prototype would still apply.  */
23845 char opendir ();
23846 int
23847 main ()
23848 {
23849 opendir ();
23850   ;
23851   return 0;
23852 }
23853 _ACEOF
23854 rm -f conftest.$ac_objext conftest$ac_exeext
23855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23856   (eval $ac_link) 2>conftest.er1
23857   ac_status=$?
23858   grep -v '^ *+' conftest.er1 >conftest.err
23859   rm -f conftest.er1
23860   cat conftest.err >&5
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); } &&
23863          { ac_try='test -z "$ac_c_werror_flag"
23864                          || test ! -s conftest.err'
23865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23866   (eval $ac_try) 2>&5
23867   ac_status=$?
23868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869   (exit $ac_status); }; } &&
23870          { ac_try='test -s conftest$ac_exeext'
23871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23872   (eval $ac_try) 2>&5
23873   ac_status=$?
23874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875   (exit $ac_status); }; }; then
23876   ac_cv_search_opendir="-l$ac_lib"
23877 break
23878 else
23879   echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882 fi
23883 rm -f conftest.err conftest.$ac_objext \
23884       conftest$ac_exeext conftest.$ac_ext
23885   done
23886 fi
23887 LIBS=$ac_func_search_save_LIBS
23888 fi
23889 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23890 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23891 if test "$ac_cv_search_opendir" != no; then
23892   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23893
23894 fi
23895
23896 fi
23897
23898 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23899 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23900 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23901   echo $ECHO_N "(cached) $ECHO_C" >&6
23902 else
23903   cat >conftest.$ac_ext <<_ACEOF
23904 /* confdefs.h.  */
23905 _ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h.  */
23909 #include <sys/types.h>
23910 #include <sys/wait.h>
23911 #ifndef WEXITSTATUS
23912 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23913 #endif
23914 #ifndef WIFEXITED
23915 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23916 #endif
23917
23918 int
23919 main ()
23920 {
23921   int s;
23922   wait (&s);
23923   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23924   ;
23925   return 0;
23926 }
23927 _ACEOF
23928 rm -f conftest.$ac_objext
23929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23930   (eval $ac_compile) 2>conftest.er1
23931   ac_status=$?
23932   grep -v '^ *+' conftest.er1 >conftest.err
23933   rm -f conftest.er1
23934   cat conftest.err >&5
23935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); } &&
23937          { ac_try='test -z "$ac_c_werror_flag"
23938                          || test ! -s conftest.err'
23939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940   (eval $ac_try) 2>&5
23941   ac_status=$?
23942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943   (exit $ac_status); }; } &&
23944          { ac_try='test -s conftest.$ac_objext'
23945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23946   (eval $ac_try) 2>&5
23947   ac_status=$?
23948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949   (exit $ac_status); }; }; then
23950   ac_cv_header_sys_wait_h=yes
23951 else
23952   echo "$as_me: failed program was:" >&5
23953 sed 's/^/| /' conftest.$ac_ext >&5
23954
23955 ac_cv_header_sys_wait_h=no
23956 fi
23957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23958 fi
23959 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23960 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23961 if test $ac_cv_header_sys_wait_h = yes; then
23962
23963 cat >>confdefs.h <<\_ACEOF
23964 #define HAVE_SYS_WAIT_H 1
23965 _ACEOF
23966
23967 fi
23968
23969 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23970 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23971 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23972   echo $ECHO_N "(cached) $ECHO_C" >&6
23973 else
23974   cat >conftest.$ac_ext <<_ACEOF
23975 /* confdefs.h.  */
23976 _ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h.  */
23980 #include <sys/types.h>
23981 #include <termios.h>
23982 #ifdef TIOCGWINSZ
23983   yes
23984 #endif
23985
23986 _ACEOF
23987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23988   $EGREP "yes" >/dev/null 2>&1; then
23989   ac_cv_sys_tiocgwinsz_in_termios_h=yes
23990 else
23991   ac_cv_sys_tiocgwinsz_in_termios_h=no
23992 fi
23993 rm -f conftest*
23994
23995 fi
23996 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23997 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23998
23999 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24000   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24001 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24002 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24003   echo $ECHO_N "(cached) $ECHO_C" >&6
24004 else
24005   cat >conftest.$ac_ext <<_ACEOF
24006 /* confdefs.h.  */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h.  */
24011 #include <sys/types.h>
24012 #include <sys/ioctl.h>
24013 #ifdef TIOCGWINSZ
24014   yes
24015 #endif
24016
24017 _ACEOF
24018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24019   $EGREP "yes" >/dev/null 2>&1; then
24020   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24021 else
24022   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24023 fi
24024 rm -f conftest*
24025
24026 fi
24027 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24028 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24029
24030   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24031
24032 cat >>confdefs.h <<\_ACEOF
24033 #define GWINSZ_IN_SYS_IOCTL 1
24034 _ACEOF
24035
24036   fi
24037 fi
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087 for ac_header in \
24088         arpa/inet.h             \
24089         arpa/nameser.h          \
24090         assert.h                \
24091         bits/types.h            \
24092         conio.h                 \
24093         crypt.h                 \
24094         direct.h                \
24095         errno.h                 \
24096         fcntl.h                 \
24097         filio.h                 \
24098         getopt.h                \
24099         grp.h                   \
24100         io.h                    \
24101         libutil.h               \
24102         limits.h                \
24103         locale.h                \
24104         netinet/tcp.h           \
24105         malloc.h                \
24106         memory.h                \
24107         psap.h                  \
24108         pwd.h                   \
24109         process.h               \
24110         sgtty.h                 \
24111         shadow.h                \
24112         stddef.h                \
24113         string.h                \
24114         strings.h               \
24115         sysexits.h              \
24116         sys/file.h              \
24117         sys/filio.h             \
24118         sys/errno.h             \
24119         sys/ioctl.h             \
24120         sys/param.h             \
24121         sys/resource.h          \
24122         sys/select.h            \
24123         sys/socket.h            \
24124         sys/stat.h              \
24125         sys/syslog.h            \
24126         sys/time.h              \
24127         sys/types.h             \
24128         sys/uio.h               \
24129         syslog.h                \
24130         termios.h               \
24131         unistd.h                \
24132         utime.h                 \
24133         winsock.h               \
24134         winsock2.h              \
24135
24136 do
24137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24139   echo "$as_me:$LINENO: checking for $ac_header" >&5
24140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24142   echo $ECHO_N "(cached) $ECHO_C" >&6
24143 fi
24144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24146 else
24147   # Is the header compilable?
24148 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24150 cat >conftest.$ac_ext <<_ACEOF
24151 /* confdefs.h.  */
24152 _ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h.  */
24156 $ac_includes_default
24157 #include <$ac_header>
24158 _ACEOF
24159 rm -f conftest.$ac_objext
24160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24161   (eval $ac_compile) 2>conftest.er1
24162   ac_status=$?
24163   grep -v '^ *+' conftest.er1 >conftest.err
24164   rm -f conftest.er1
24165   cat conftest.err >&5
24166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167   (exit $ac_status); } &&
24168          { ac_try='test -z "$ac_c_werror_flag"
24169                          || test ! -s conftest.err'
24170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171   (eval $ac_try) 2>&5
24172   ac_status=$?
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); }; } &&
24175          { ac_try='test -s conftest.$ac_objext'
24176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177   (eval $ac_try) 2>&5
24178   ac_status=$?
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); }; }; then
24181   ac_header_compiler=yes
24182 else
24183   echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24185
24186 ac_header_compiler=no
24187 fi
24188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24190 echo "${ECHO_T}$ac_header_compiler" >&6
24191
24192 # Is the header present?
24193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24195 cat >conftest.$ac_ext <<_ACEOF
24196 /* confdefs.h.  */
24197 _ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h.  */
24201 #include <$ac_header>
24202 _ACEOF
24203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24205   ac_status=$?
24206   grep -v '^ *+' conftest.er1 >conftest.err
24207   rm -f conftest.er1
24208   cat conftest.err >&5
24209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210   (exit $ac_status); } >/dev/null; then
24211   if test -s conftest.err; then
24212     ac_cpp_err=$ac_c_preproc_warn_flag
24213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24214   else
24215     ac_cpp_err=
24216   fi
24217 else
24218   ac_cpp_err=yes
24219 fi
24220 if test -z "$ac_cpp_err"; then
24221   ac_header_preproc=yes
24222 else
24223   echo "$as_me: failed program was:" >&5
24224 sed 's/^/| /' conftest.$ac_ext >&5
24225
24226   ac_header_preproc=no
24227 fi
24228 rm -f conftest.err conftest.$ac_ext
24229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24230 echo "${ECHO_T}$ac_header_preproc" >&6
24231
24232 # So?  What about this header?
24233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24234   yes:no: )
24235     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24239     ac_header_preproc=yes
24240     ;;
24241   no:yes:* )
24242     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24244     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24245 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24246     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24248     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24249 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24252     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24254     (
24255       cat <<\_ASBOX
24256 ## ------------------------------------------ ##
24257 ## Report this to the AC_PACKAGE_NAME lists.  ##
24258 ## ------------------------------------------ ##
24259 _ASBOX
24260     ) |
24261       sed "s/^/$as_me: WARNING:     /" >&2
24262     ;;
24263 esac
24264 echo "$as_me:$LINENO: checking for $ac_header" >&5
24265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24267   echo $ECHO_N "(cached) $ECHO_C" >&6
24268 else
24269   eval "$as_ac_Header=\$ac_header_preproc"
24270 fi
24271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24273
24274 fi
24275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24276   cat >>confdefs.h <<_ACEOF
24277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24278 _ACEOF
24279
24280 fi
24281
24282 done
24283
24284
24285
24286 for ac_header in resolv.h
24287 do
24288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24289 echo "$as_me:$LINENO: checking for $ac_header" >&5
24290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24292   echo $ECHO_N "(cached) $ECHO_C" >&6
24293 else
24294   cat >conftest.$ac_ext <<_ACEOF
24295 /* confdefs.h.  */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h.  */
24300 $ac_includes_default
24301 #include <netinet/in.h>
24302
24303
24304 #include <$ac_header>
24305 _ACEOF
24306 rm -f conftest.$ac_objext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24308   (eval $ac_compile) 2>conftest.er1
24309   ac_status=$?
24310   grep -v '^ *+' conftest.er1 >conftest.err
24311   rm -f conftest.er1
24312   cat conftest.err >&5
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } &&
24315          { ac_try='test -z "$ac_c_werror_flag"
24316                          || test ! -s conftest.err'
24317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318   (eval $ac_try) 2>&5
24319   ac_status=$?
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); }; } &&
24322          { ac_try='test -s conftest.$ac_objext'
24323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324   (eval $ac_try) 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); }; }; then
24328   eval "$as_ac_Header=yes"
24329 else
24330   echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24332
24333 eval "$as_ac_Header=no"
24334 fi
24335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24336 fi
24337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24340   cat >>confdefs.h <<_ACEOF
24341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24342 _ACEOF
24343
24344 fi
24345
24346 done
24347
24348
24349
24350 for ac_header in sys/ucred.h
24351 do
24352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24353 echo "$as_me:$LINENO: checking for $ac_header" >&5
24354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24356   echo $ECHO_N "(cached) $ECHO_C" >&6
24357 else
24358   cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364 $ac_includes_default
24365 #ifdef HAVE_SYS_PARAM_H
24366 #include <sys/param.h>
24367 #endif
24368
24369
24370 #include <$ac_header>
24371 _ACEOF
24372 rm -f conftest.$ac_objext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24374   (eval $ac_compile) 2>conftest.er1
24375   ac_status=$?
24376   grep -v '^ *+' conftest.er1 >conftest.err
24377   rm -f conftest.er1
24378   cat conftest.err >&5
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); } &&
24381          { ac_try='test -z "$ac_c_werror_flag"
24382                          || test ! -s conftest.err'
24383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384   (eval $ac_try) 2>&5
24385   ac_status=$?
24386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387   (exit $ac_status); }; } &&
24388          { ac_try='test -s conftest.$ac_objext'
24389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390   (eval $ac_try) 2>&5
24391   ac_status=$?
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); }; }; then
24394   eval "$as_ac_Header=yes"
24395 else
24396   echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24398
24399 eval "$as_ac_Header=no"
24400 fi
24401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24402 fi
24403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24406   cat >>confdefs.h <<_ACEOF
24407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24408 _ACEOF
24409
24410 fi
24411
24412 done
24413
24414
24415
24416
24417
24418 for ac_func in sigaction sigset
24419 do
24420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24421 echo "$as_me:$LINENO: checking for $ac_func" >&5
24422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24423 if eval "test \"\${$as_ac_var+set}\" = set"; then
24424   echo $ECHO_N "(cached) $ECHO_C" >&6
24425 else
24426   cat >conftest.$ac_ext <<_ACEOF
24427 /* confdefs.h.  */
24428 _ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h.  */
24432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24434 #define $ac_func innocuous_$ac_func
24435
24436 /* System header to define __stub macros and hopefully few prototypes,
24437     which can conflict with char $ac_func (); below.
24438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24439     <limits.h> exists even on freestanding compilers.  */
24440
24441 #ifdef __STDC__
24442 # include <limits.h>
24443 #else
24444 # include <assert.h>
24445 #endif
24446
24447 #undef $ac_func
24448
24449 /* Override any gcc2 internal prototype to avoid an error.  */
24450 #ifdef __cplusplus
24451 extern "C"
24452 {
24453 #endif
24454 /* We use char because int might match the return type of a gcc2
24455    builtin and then its argument prototype would still apply.  */
24456 char $ac_func ();
24457 /* The GNU C library defines this for functions which it implements
24458     to always fail with ENOSYS.  Some functions are actually named
24459     something starting with __ and the normal name is an alias.  */
24460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24461 choke me
24462 #else
24463 char (*f) () = $ac_func;
24464 #endif
24465 #ifdef __cplusplus
24466 }
24467 #endif
24468
24469 int
24470 main ()
24471 {
24472 return f != $ac_func;
24473   ;
24474   return 0;
24475 }
24476 _ACEOF
24477 rm -f conftest.$ac_objext conftest$ac_exeext
24478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24479   (eval $ac_link) 2>conftest.er1
24480   ac_status=$?
24481   grep -v '^ *+' conftest.er1 >conftest.err
24482   rm -f conftest.er1
24483   cat conftest.err >&5
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); } &&
24486          { ac_try='test -z "$ac_c_werror_flag"
24487                          || test ! -s conftest.err'
24488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; } &&
24493          { ac_try='test -s conftest$ac_exeext'
24494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495   (eval $ac_try) 2>&5
24496   ac_status=$?
24497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498   (exit $ac_status); }; }; then
24499   eval "$as_ac_var=yes"
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504 eval "$as_ac_var=no"
24505 fi
24506 rm -f conftest.err conftest.$ac_objext \
24507       conftest$ac_exeext conftest.$ac_ext
24508 fi
24509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24511 if test `eval echo '${'$as_ac_var'}'` = yes; then
24512   cat >>confdefs.h <<_ACEOF
24513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24514 _ACEOF
24515
24516 fi
24517 done
24518
24519
24520 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24521
24522 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24523 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24524 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24525   echo $ECHO_N "(cached) $ECHO_C" >&6
24526 else
24527   ac_check_lib_save_LIBS=$LIBS
24528 LIBS="-lV3  $LIBS"
24529 cat >conftest.$ac_ext <<_ACEOF
24530 /* confdefs.h.  */
24531 _ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h.  */
24535
24536 /* Override any gcc2 internal prototype to avoid an error.  */
24537 #ifdef __cplusplus
24538 extern "C"
24539 #endif
24540 /* We use char because int might match the return type of a gcc2
24541    builtin and then its argument prototype would still apply.  */
24542 char sigset ();
24543 int
24544 main ()
24545 {
24546 sigset ();
24547   ;
24548   return 0;
24549 }
24550 _ACEOF
24551 rm -f conftest.$ac_objext conftest$ac_exeext
24552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24553   (eval $ac_link) 2>conftest.er1
24554   ac_status=$?
24555   grep -v '^ *+' conftest.er1 >conftest.err
24556   rm -f conftest.er1
24557   cat conftest.err >&5
24558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); } &&
24560          { ac_try='test -z "$ac_c_werror_flag"
24561                          || test ! -s conftest.err'
24562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24563   (eval $ac_try) 2>&5
24564   ac_status=$?
24565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566   (exit $ac_status); }; } &&
24567          { ac_try='test -s conftest$ac_exeext'
24568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24569   (eval $ac_try) 2>&5
24570   ac_status=$?
24571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572   (exit $ac_status); }; }; then
24573   ac_cv_lib_V3_sigset=yes
24574 else
24575   echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24577
24578 ac_cv_lib_V3_sigset=no
24579 fi
24580 rm -f conftest.err conftest.$ac_objext \
24581       conftest$ac_exeext conftest.$ac_ext
24582 LIBS=$ac_check_lib_save_LIBS
24583 fi
24584 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24585 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24586 if test $ac_cv_lib_V3_sigset = yes; then
24587   cat >>confdefs.h <<_ACEOF
24588 #define HAVE_LIBV3 1
24589 _ACEOF
24590
24591   LIBS="-lV3 $LIBS"
24592
24593 fi
24594
24595 fi
24596
24597 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24598 echo "$as_me:$LINENO: checking for winsock" >&5
24599 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24600 if test "${ol_cv_winsock+set}" = set; then
24601   echo $ECHO_N "(cached) $ECHO_C" >&6
24602 else
24603   save_LIBS="$LIBS"
24604 for curlib in ws2_32 wsock32; do
24605         LIBS="$LIBS -l$curlib"
24606         cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 #include <winsock.h>
24613
24614 int
24615 main ()
24616 {
24617
24618                         socket(0,0,0);
24619                         select(0,NULL,NULL,NULL,NULL);
24620                         closesocket(0);
24621                         gethostname(NULL,0);
24622
24623   ;
24624   return 0;
24625 }
24626 _ACEOF
24627 rm -f conftest.$ac_objext conftest$ac_exeext
24628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24629   (eval $ac_link) 2>conftest.er1
24630   ac_status=$?
24631   grep -v '^ *+' conftest.er1 >conftest.err
24632   rm -f conftest.er1
24633   cat conftest.err >&5
24634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635   (exit $ac_status); } &&
24636          { ac_try='test -z "$ac_c_werror_flag"
24637                          || test ! -s conftest.err'
24638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639   (eval $ac_try) 2>&5
24640   ac_status=$?
24641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642   (exit $ac_status); }; } &&
24643          { ac_try='test -s conftest$ac_exeext'
24644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645   (eval $ac_try) 2>&5
24646   ac_status=$?
24647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648   (exit $ac_status); }; }; then
24649   ol_cv_winsock=yes
24650 else
24651   echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24653
24654 ol_cv_winsock=no
24655 fi
24656 rm -f conftest.err conftest.$ac_objext \
24657       conftest$ac_exeext conftest.$ac_ext
24658
24659         if test $ol_cv_winsock = yes; then
24660
24661 cat >>confdefs.h <<\_ACEOF
24662 #define HAVE_WINSOCK 1
24663 _ACEOF
24664
24665                 ac_cv_func_socket=yes
24666                 ac_cv_func_select=yes
24667                 ac_cv_func_closesocket=yes
24668                 ac_cv_func_gethostname=yes
24669                 if test $curlib = ws2_32; then
24670                         ol_cv_winsock=winsock2
24671
24672 cat >>confdefs.h <<\_ACEOF
24673 #define HAVE_WINSOCK2 1
24674 _ACEOF
24675
24676                 fi
24677                 break
24678         fi
24679         LIBS="$save_LIBS"
24680 done
24681 fi
24682 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24683 echo "${ECHO_T}$ol_cv_winsock" >&6
24684 fi
24685
24686
24687 echo "$as_me:$LINENO: checking for socket" >&5
24688 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24689 if test "${ac_cv_func_socket+set}" = set; then
24690   echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692   cat >conftest.$ac_ext <<_ACEOF
24693 /* confdefs.h.  */
24694 _ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h.  */
24698 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24700 #define socket innocuous_socket
24701
24702 /* System header to define __stub macros and hopefully few prototypes,
24703     which can conflict with char socket (); below.
24704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24705     <limits.h> exists even on freestanding compilers.  */
24706
24707 #ifdef __STDC__
24708 # include <limits.h>
24709 #else
24710 # include <assert.h>
24711 #endif
24712
24713 #undef socket
24714
24715 /* Override any gcc2 internal prototype to avoid an error.  */
24716 #ifdef __cplusplus
24717 extern "C"
24718 {
24719 #endif
24720 /* We use char because int might match the return type of a gcc2
24721    builtin and then its argument prototype would still apply.  */
24722 char socket ();
24723 /* The GNU C library defines this for functions which it implements
24724     to always fail with ENOSYS.  Some functions are actually named
24725     something starting with __ and the normal name is an alias.  */
24726 #if defined (__stub_socket) || defined (__stub___socket)
24727 choke me
24728 #else
24729 char (*f) () = socket;
24730 #endif
24731 #ifdef __cplusplus
24732 }
24733 #endif
24734
24735 int
24736 main ()
24737 {
24738 return f != socket;
24739   ;
24740   return 0;
24741 }
24742 _ACEOF
24743 rm -f conftest.$ac_objext conftest$ac_exeext
24744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24745   (eval $ac_link) 2>conftest.er1
24746   ac_status=$?
24747   grep -v '^ *+' conftest.er1 >conftest.err
24748   rm -f conftest.er1
24749   cat conftest.err >&5
24750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751   (exit $ac_status); } &&
24752          { ac_try='test -z "$ac_c_werror_flag"
24753                          || test ! -s conftest.err'
24754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755   (eval $ac_try) 2>&5
24756   ac_status=$?
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); }; } &&
24759          { ac_try='test -s conftest$ac_exeext'
24760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761   (eval $ac_try) 2>&5
24762   ac_status=$?
24763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764   (exit $ac_status); }; }; then
24765   ac_cv_func_socket=yes
24766 else
24767   echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24769
24770 ac_cv_func_socket=no
24771 fi
24772 rm -f conftest.err conftest.$ac_objext \
24773       conftest$ac_exeext conftest.$ac_ext
24774 fi
24775 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24776 echo "${ECHO_T}$ac_cv_func_socket" >&6
24777 if test $ac_cv_func_socket = yes; then
24778   :
24779 else
24780
24781
24782 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24783 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24784 if test "${ac_cv_lib_socket_main+set}" = set; then
24785   echo $ECHO_N "(cached) $ECHO_C" >&6
24786 else
24787   ac_check_lib_save_LIBS=$LIBS
24788 LIBS="-lsocket  $LIBS"
24789 cat >conftest.$ac_ext <<_ACEOF
24790 /* confdefs.h.  */
24791 _ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h.  */
24795
24796
24797 int
24798 main ()
24799 {
24800 main ();
24801   ;
24802   return 0;
24803 }
24804 _ACEOF
24805 rm -f conftest.$ac_objext conftest$ac_exeext
24806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24807   (eval $ac_link) 2>conftest.er1
24808   ac_status=$?
24809   grep -v '^ *+' conftest.er1 >conftest.err
24810   rm -f conftest.er1
24811   cat conftest.err >&5
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); } &&
24814          { ac_try='test -z "$ac_c_werror_flag"
24815                          || test ! -s conftest.err'
24816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817   (eval $ac_try) 2>&5
24818   ac_status=$?
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); }; } &&
24821          { ac_try='test -s conftest$ac_exeext'
24822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823   (eval $ac_try) 2>&5
24824   ac_status=$?
24825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); }; }; then
24827   ac_cv_lib_socket_main=yes
24828 else
24829   echo "$as_me: failed program was:" >&5
24830 sed 's/^/| /' conftest.$ac_ext >&5
24831
24832 ac_cv_lib_socket_main=no
24833 fi
24834 rm -f conftest.err conftest.$ac_objext \
24835       conftest$ac_exeext conftest.$ac_ext
24836 LIBS=$ac_check_lib_save_LIBS
24837 fi
24838 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24839 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24840 if test $ac_cv_lib_socket_main = yes; then
24841   cat >>confdefs.h <<_ACEOF
24842 #define HAVE_LIBSOCKET 1
24843 _ACEOF
24844
24845   LIBS="-lsocket $LIBS"
24846
24847 fi
24848
24849
24850 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24851 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24852 if test "${ac_cv_lib_net_main+set}" = set; then
24853   echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855   ac_check_lib_save_LIBS=$LIBS
24856 LIBS="-lnet  $LIBS"
24857 cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h.  */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h.  */
24863
24864
24865 int
24866 main ()
24867 {
24868 main ();
24869   ;
24870   return 0;
24871 }
24872 _ACEOF
24873 rm -f conftest.$ac_objext conftest$ac_exeext
24874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24875   (eval $ac_link) 2>conftest.er1
24876   ac_status=$?
24877   grep -v '^ *+' conftest.er1 >conftest.err
24878   rm -f conftest.er1
24879   cat conftest.err >&5
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } &&
24882          { ac_try='test -z "$ac_c_werror_flag"
24883                          || test ! -s conftest.err'
24884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885   (eval $ac_try) 2>&5
24886   ac_status=$?
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); }; } &&
24889          { ac_try='test -s conftest$ac_exeext'
24890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891   (eval $ac_try) 2>&5
24892   ac_status=$?
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); }; }; then
24895   ac_cv_lib_net_main=yes
24896 else
24897   echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24899
24900 ac_cv_lib_net_main=no
24901 fi
24902 rm -f conftest.err conftest.$ac_objext \
24903       conftest$ac_exeext conftest.$ac_ext
24904 LIBS=$ac_check_lib_save_LIBS
24905 fi
24906 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24907 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24908 if test $ac_cv_lib_net_main = yes; then
24909   cat >>confdefs.h <<_ACEOF
24910 #define HAVE_LIBNET 1
24911 _ACEOF
24912
24913   LIBS="-lnet $LIBS"
24914
24915 fi
24916
24917
24918 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24919 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24920 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24921   echo $ECHO_N "(cached) $ECHO_C" >&6
24922 else
24923   ac_check_lib_save_LIBS=$LIBS
24924 LIBS="-lnsl_s  $LIBS"
24925 cat >conftest.$ac_ext <<_ACEOF
24926 /* confdefs.h.  */
24927 _ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h.  */
24931
24932
24933 int
24934 main ()
24935 {
24936 main ();
24937   ;
24938   return 0;
24939 }
24940 _ACEOF
24941 rm -f conftest.$ac_objext conftest$ac_exeext
24942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24943   (eval $ac_link) 2>conftest.er1
24944   ac_status=$?
24945   grep -v '^ *+' conftest.er1 >conftest.err
24946   rm -f conftest.er1
24947   cat conftest.err >&5
24948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949   (exit $ac_status); } &&
24950          { ac_try='test -z "$ac_c_werror_flag"
24951                          || test ! -s conftest.err'
24952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24953   (eval $ac_try) 2>&5
24954   ac_status=$?
24955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); }; } &&
24957          { ac_try='test -s conftest$ac_exeext'
24958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959   (eval $ac_try) 2>&5
24960   ac_status=$?
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); }; }; then
24963   ac_cv_lib_nsl_s_main=yes
24964 else
24965   echo "$as_me: failed program was:" >&5
24966 sed 's/^/| /' conftest.$ac_ext >&5
24967
24968 ac_cv_lib_nsl_s_main=no
24969 fi
24970 rm -f conftest.err conftest.$ac_objext \
24971       conftest$ac_exeext conftest.$ac_ext
24972 LIBS=$ac_check_lib_save_LIBS
24973 fi
24974 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24975 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24976 if test $ac_cv_lib_nsl_s_main = yes; then
24977   cat >>confdefs.h <<_ACEOF
24978 #define HAVE_LIBNSL_S 1
24979 _ACEOF
24980
24981   LIBS="-lnsl_s $LIBS"
24982
24983 fi
24984
24985
24986 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24987 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24988 if test "${ac_cv_lib_nsl_main+set}" = set; then
24989   echo $ECHO_N "(cached) $ECHO_C" >&6
24990 else
24991   ac_check_lib_save_LIBS=$LIBS
24992 LIBS="-lnsl  $LIBS"
24993 cat >conftest.$ac_ext <<_ACEOF
24994 /* confdefs.h.  */
24995 _ACEOF
24996 cat confdefs.h >>conftest.$ac_ext
24997 cat >>conftest.$ac_ext <<_ACEOF
24998 /* end confdefs.h.  */
24999
25000
25001 int
25002 main ()
25003 {
25004 main ();
25005   ;
25006   return 0;
25007 }
25008 _ACEOF
25009 rm -f conftest.$ac_objext conftest$ac_exeext
25010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25011   (eval $ac_link) 2>conftest.er1
25012   ac_status=$?
25013   grep -v '^ *+' conftest.er1 >conftest.err
25014   rm -f conftest.er1
25015   cat conftest.err >&5
25016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017   (exit $ac_status); } &&
25018          { ac_try='test -z "$ac_c_werror_flag"
25019                          || test ! -s conftest.err'
25020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021   (eval $ac_try) 2>&5
25022   ac_status=$?
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); }; } &&
25025          { ac_try='test -s conftest$ac_exeext'
25026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027   (eval $ac_try) 2>&5
25028   ac_status=$?
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); }; }; then
25031   ac_cv_lib_nsl_main=yes
25032 else
25033   echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25035
25036 ac_cv_lib_nsl_main=no
25037 fi
25038 rm -f conftest.err conftest.$ac_objext \
25039       conftest$ac_exeext conftest.$ac_ext
25040 LIBS=$ac_check_lib_save_LIBS
25041 fi
25042 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25043 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25044 if test $ac_cv_lib_nsl_main = yes; then
25045   cat >>confdefs.h <<_ACEOF
25046 #define HAVE_LIBNSL 1
25047 _ACEOF
25048
25049   LIBS="-lnsl $LIBS"
25050
25051 fi
25052
25053
25054 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25055 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25056 if test "${ac_cv_lib_inet_socket+set}" = set; then
25057   echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059   ac_check_lib_save_LIBS=$LIBS
25060 LIBS="-linet  $LIBS"
25061 cat >conftest.$ac_ext <<_ACEOF
25062 /* confdefs.h.  */
25063 _ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h.  */
25067
25068 /* Override any gcc2 internal prototype to avoid an error.  */
25069 #ifdef __cplusplus
25070 extern "C"
25071 #endif
25072 /* We use char because int might match the return type of a gcc2
25073    builtin and then its argument prototype would still apply.  */
25074 char socket ();
25075 int
25076 main ()
25077 {
25078 socket ();
25079   ;
25080   return 0;
25081 }
25082 _ACEOF
25083 rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25085   (eval $ac_link) 2>conftest.er1
25086   ac_status=$?
25087   grep -v '^ *+' conftest.er1 >conftest.err
25088   rm -f conftest.er1
25089   cat conftest.err >&5
25090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091   (exit $ac_status); } &&
25092          { ac_try='test -z "$ac_c_werror_flag"
25093                          || test ! -s conftest.err'
25094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25095   (eval $ac_try) 2>&5
25096   ac_status=$?
25097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098   (exit $ac_status); }; } &&
25099          { ac_try='test -s conftest$ac_exeext'
25100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101   (eval $ac_try) 2>&5
25102   ac_status=$?
25103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); }; }; then
25105   ac_cv_lib_inet_socket=yes
25106 else
25107   echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25109
25110 ac_cv_lib_inet_socket=no
25111 fi
25112 rm -f conftest.err conftest.$ac_objext \
25113       conftest$ac_exeext conftest.$ac_ext
25114 LIBS=$ac_check_lib_save_LIBS
25115 fi
25116 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25117 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25118 if test $ac_cv_lib_inet_socket = yes; then
25119   cat >>confdefs.h <<_ACEOF
25120 #define HAVE_LIBINET 1
25121 _ACEOF
25122
25123   LIBS="-linet $LIBS"
25124
25125 fi
25126
25127
25128 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25129 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25130 if test "${ac_cv_lib_gen_main+set}" = set; then
25131   echo $ECHO_N "(cached) $ECHO_C" >&6
25132 else
25133   ac_check_lib_save_LIBS=$LIBS
25134 LIBS="-lgen  $LIBS"
25135 cat >conftest.$ac_ext <<_ACEOF
25136 /* confdefs.h.  */
25137 _ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h.  */
25141
25142
25143 int
25144 main ()
25145 {
25146 main ();
25147   ;
25148   return 0;
25149 }
25150 _ACEOF
25151 rm -f conftest.$ac_objext conftest$ac_exeext
25152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25153   (eval $ac_link) 2>conftest.er1
25154   ac_status=$?
25155   grep -v '^ *+' conftest.er1 >conftest.err
25156   rm -f conftest.er1
25157   cat conftest.err >&5
25158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159   (exit $ac_status); } &&
25160          { ac_try='test -z "$ac_c_werror_flag"
25161                          || test ! -s conftest.err'
25162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163   (eval $ac_try) 2>&5
25164   ac_status=$?
25165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166   (exit $ac_status); }; } &&
25167          { ac_try='test -s conftest$ac_exeext'
25168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169   (eval $ac_try) 2>&5
25170   ac_status=$?
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); }; }; then
25173   ac_cv_lib_gen_main=yes
25174 else
25175   echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25177
25178 ac_cv_lib_gen_main=no
25179 fi
25180 rm -f conftest.err conftest.$ac_objext \
25181       conftest$ac_exeext conftest.$ac_ext
25182 LIBS=$ac_check_lib_save_LIBS
25183 fi
25184 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25185 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25186 if test $ac_cv_lib_gen_main = yes; then
25187   cat >>confdefs.h <<_ACEOF
25188 #define HAVE_LIBGEN 1
25189 _ACEOF
25190
25191   LIBS="-lgen $LIBS"
25192
25193 fi
25194
25195
25196 fi
25197
25198
25199 echo "$as_me:$LINENO: checking for select" >&5
25200 echo $ECHO_N "checking for select... $ECHO_C" >&6
25201 if test "${ac_cv_func_select+set}" = set; then
25202   echo $ECHO_N "(cached) $ECHO_C" >&6
25203 else
25204   cat >conftest.$ac_ext <<_ACEOF
25205 /* confdefs.h.  */
25206 _ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h.  */
25210 /* Define select to an innocuous variant, in case <limits.h> declares select.
25211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25212 #define select innocuous_select
25213
25214 /* System header to define __stub macros and hopefully few prototypes,
25215     which can conflict with char select (); below.
25216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25217     <limits.h> exists even on freestanding compilers.  */
25218
25219 #ifdef __STDC__
25220 # include <limits.h>
25221 #else
25222 # include <assert.h>
25223 #endif
25224
25225 #undef select
25226
25227 /* Override any gcc2 internal prototype to avoid an error.  */
25228 #ifdef __cplusplus
25229 extern "C"
25230 {
25231 #endif
25232 /* We use char because int might match the return type of a gcc2
25233    builtin and then its argument prototype would still apply.  */
25234 char select ();
25235 /* The GNU C library defines this for functions which it implements
25236     to always fail with ENOSYS.  Some functions are actually named
25237     something starting with __ and the normal name is an alias.  */
25238 #if defined (__stub_select) || defined (__stub___select)
25239 choke me
25240 #else
25241 char (*f) () = select;
25242 #endif
25243 #ifdef __cplusplus
25244 }
25245 #endif
25246
25247 int
25248 main ()
25249 {
25250 return f != select;
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest.$ac_objext conftest$ac_exeext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257   (eval $ac_link) 2>conftest.er1
25258   ac_status=$?
25259   grep -v '^ *+' conftest.er1 >conftest.err
25260   rm -f conftest.er1
25261   cat conftest.err >&5
25262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); } &&
25264          { ac_try='test -z "$ac_c_werror_flag"
25265                          || test ! -s conftest.err'
25266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267   (eval $ac_try) 2>&5
25268   ac_status=$?
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); }; } &&
25271          { ac_try='test -s conftest$ac_exeext'
25272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273   (eval $ac_try) 2>&5
25274   ac_status=$?
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); }; }; then
25277   ac_cv_func_select=yes
25278 else
25279   echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 ac_cv_func_select=no
25283 fi
25284 rm -f conftest.err conftest.$ac_objext \
25285       conftest$ac_exeext conftest.$ac_ext
25286 fi
25287 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25288 echo "${ECHO_T}$ac_cv_func_select" >&6
25289 if test $ac_cv_func_select = yes; then
25290   :
25291 else
25292   { { echo "$as_me:$LINENO: error: select() required." >&5
25293 echo "$as_me: error: select() required." >&2;}
25294    { (exit 1); exit 1; }; }
25295 fi
25296
25297
25298 if test "${ac_cv_header_winsock_h}" != yes; then
25299
25300
25301 for ac_header in sys/select.h sys/socket.h
25302 do
25303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25305   echo "$as_me:$LINENO: checking for $ac_header" >&5
25306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25308   echo $ECHO_N "(cached) $ECHO_C" >&6
25309 fi
25310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25312 else
25313   # Is the header compilable?
25314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25316 cat >conftest.$ac_ext <<_ACEOF
25317 /* confdefs.h.  */
25318 _ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h.  */
25322 $ac_includes_default
25323 #include <$ac_header>
25324 _ACEOF
25325 rm -f conftest.$ac_objext
25326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25327   (eval $ac_compile) 2>conftest.er1
25328   ac_status=$?
25329   grep -v '^ *+' conftest.er1 >conftest.err
25330   rm -f conftest.er1
25331   cat conftest.err >&5
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); } &&
25334          { ac_try='test -z "$ac_c_werror_flag"
25335                          || test ! -s conftest.err'
25336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337   (eval $ac_try) 2>&5
25338   ac_status=$?
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); }; } &&
25341          { ac_try='test -s conftest.$ac_objext'
25342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343   (eval $ac_try) 2>&5
25344   ac_status=$?
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); }; }; then
25347   ac_header_compiler=yes
25348 else
25349   echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25351
25352 ac_header_compiler=no
25353 fi
25354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25356 echo "${ECHO_T}$ac_header_compiler" >&6
25357
25358 # Is the header present?
25359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25361 cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h.  */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h.  */
25367 #include <$ac_header>
25368 _ACEOF
25369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25371   ac_status=$?
25372   grep -v '^ *+' conftest.er1 >conftest.err
25373   rm -f conftest.er1
25374   cat conftest.err >&5
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); } >/dev/null; then
25377   if test -s conftest.err; then
25378     ac_cpp_err=$ac_c_preproc_warn_flag
25379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25380   else
25381     ac_cpp_err=
25382   fi
25383 else
25384   ac_cpp_err=yes
25385 fi
25386 if test -z "$ac_cpp_err"; then
25387   ac_header_preproc=yes
25388 else
25389   echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25391
25392   ac_header_preproc=no
25393 fi
25394 rm -f conftest.err conftest.$ac_ext
25395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25396 echo "${ECHO_T}$ac_header_preproc" >&6
25397
25398 # So?  What about this header?
25399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25400   yes:no: )
25401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25405     ac_header_preproc=yes
25406     ;;
25407   no:yes:* )
25408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25420     (
25421       cat <<\_ASBOX
25422 ## ------------------------------------------ ##
25423 ## Report this to the AC_PACKAGE_NAME lists.  ##
25424 ## ------------------------------------------ ##
25425 _ASBOX
25426     ) |
25427       sed "s/^/$as_me: WARNING:     /" >&2
25428     ;;
25429 esac
25430 echo "$as_me:$LINENO: checking for $ac_header" >&5
25431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25433   echo $ECHO_N "(cached) $ECHO_C" >&6
25434 else
25435   eval "$as_ac_Header=\$ac_header_preproc"
25436 fi
25437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25439
25440 fi
25441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25442   cat >>confdefs.h <<_ACEOF
25443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25444 _ACEOF
25445
25446 fi
25447
25448 done
25449
25450 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25451 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25452 if test "${ac_cv_func_select_args+set}" = set; then
25453   echo $ECHO_N "(cached) $ECHO_C" >&6
25454 else
25455   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25456  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25457   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25458    cat >conftest.$ac_ext <<_ACEOF
25459 /* confdefs.h.  */
25460 _ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h.  */
25464 $ac_includes_default
25465 #if HAVE_SYS_SELECT_H
25466 # include <sys/select.h>
25467 #endif
25468 #if HAVE_SYS_SOCKET_H
25469 # include <sys/socket.h>
25470 #endif
25471
25472 int
25473 main ()
25474 {
25475 extern int select ($ac_arg1,
25476                                             $ac_arg234, $ac_arg234, $ac_arg234,
25477                                             $ac_arg5);
25478   ;
25479   return 0;
25480 }
25481 _ACEOF
25482 rm -f conftest.$ac_objext
25483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25484   (eval $ac_compile) 2>conftest.er1
25485   ac_status=$?
25486   grep -v '^ *+' conftest.er1 >conftest.err
25487   rm -f conftest.er1
25488   cat conftest.err >&5
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } &&
25491          { ac_try='test -z "$ac_c_werror_flag"
25492                          || test ! -s conftest.err'
25493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25494   (eval $ac_try) 2>&5
25495   ac_status=$?
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); }; } &&
25498          { ac_try='test -s conftest.$ac_objext'
25499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25500   (eval $ac_try) 2>&5
25501   ac_status=$?
25502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503   (exit $ac_status); }; }; then
25504   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25505 else
25506   echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25508
25509 fi
25510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25511   done
25512  done
25513 done
25514 # Provide a safe default value.
25515 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25516
25517 fi
25518 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25519 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25520 ac_save_IFS=$IFS; IFS=','
25521 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25522 IFS=$ac_save_IFS
25523 shift
25524
25525 cat >>confdefs.h <<_ACEOF
25526 #define SELECT_TYPE_ARG1 $1
25527 _ACEOF
25528
25529
25530 cat >>confdefs.h <<_ACEOF
25531 #define SELECT_TYPE_ARG234 ($2)
25532 _ACEOF
25533
25534
25535 cat >>confdefs.h <<_ACEOF
25536 #define SELECT_TYPE_ARG5 ($3)
25537 _ACEOF
25538
25539 rm -f conftest*
25540
25541 fi
25542
25543
25544
25545 for ac_func in poll
25546 do
25547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25548 echo "$as_me:$LINENO: checking for $ac_func" >&5
25549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25550 if eval "test \"\${$as_ac_var+set}\" = set"; then
25551   echo $ECHO_N "(cached) $ECHO_C" >&6
25552 else
25553   cat >conftest.$ac_ext <<_ACEOF
25554 /* confdefs.h.  */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h.  */
25559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25561 #define $ac_func innocuous_$ac_func
25562
25563 /* System header to define __stub macros and hopefully few prototypes,
25564     which can conflict with char $ac_func (); below.
25565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25566     <limits.h> exists even on freestanding compilers.  */
25567
25568 #ifdef __STDC__
25569 # include <limits.h>
25570 #else
25571 # include <assert.h>
25572 #endif
25573
25574 #undef $ac_func
25575
25576 /* Override any gcc2 internal prototype to avoid an error.  */
25577 #ifdef __cplusplus
25578 extern "C"
25579 {
25580 #endif
25581 /* We use char because int might match the return type of a gcc2
25582    builtin and then its argument prototype would still apply.  */
25583 char $ac_func ();
25584 /* The GNU C library defines this for functions which it implements
25585     to always fail with ENOSYS.  Some functions are actually named
25586     something starting with __ and the normal name is an alias.  */
25587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25588 choke me
25589 #else
25590 char (*f) () = $ac_func;
25591 #endif
25592 #ifdef __cplusplus
25593 }
25594 #endif
25595
25596 int
25597 main ()
25598 {
25599 return f != $ac_func;
25600   ;
25601   return 0;
25602 }
25603 _ACEOF
25604 rm -f conftest.$ac_objext conftest$ac_exeext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25606   (eval $ac_link) 2>conftest.er1
25607   ac_status=$?
25608   grep -v '^ *+' conftest.er1 >conftest.err
25609   rm -f conftest.er1
25610   cat conftest.err >&5
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); } &&
25613          { ac_try='test -z "$ac_c_werror_flag"
25614                          || test ! -s conftest.err'
25615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616   (eval $ac_try) 2>&5
25617   ac_status=$?
25618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619   (exit $ac_status); }; } &&
25620          { ac_try='test -s conftest$ac_exeext'
25621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622   (eval $ac_try) 2>&5
25623   ac_status=$?
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); }; }; then
25626   eval "$as_ac_var=yes"
25627 else
25628   echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25630
25631 eval "$as_ac_var=no"
25632 fi
25633 rm -f conftest.err conftest.$ac_objext \
25634       conftest$ac_exeext conftest.$ac_ext
25635 fi
25636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25638 if test `eval echo '${'$as_ac_var'}'` = yes; then
25639   cat >>confdefs.h <<_ACEOF
25640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25641 _ACEOF
25642
25643 fi
25644 done
25645
25646
25647 for ac_header in poll.h
25648 do
25649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25651   echo "$as_me:$LINENO: checking for $ac_header" >&5
25652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25654   echo $ECHO_N "(cached) $ECHO_C" >&6
25655 fi
25656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25658 else
25659   # Is the header compilable?
25660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25662 cat >conftest.$ac_ext <<_ACEOF
25663 /* confdefs.h.  */
25664 _ACEOF
25665 cat confdefs.h >>conftest.$ac_ext
25666 cat >>conftest.$ac_ext <<_ACEOF
25667 /* end confdefs.h.  */
25668 $ac_includes_default
25669 #include <$ac_header>
25670 _ACEOF
25671 rm -f conftest.$ac_objext
25672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25673   (eval $ac_compile) 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } &&
25680          { ac_try='test -z "$ac_c_werror_flag"
25681                          || test ! -s conftest.err'
25682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25683   (eval $ac_try) 2>&5
25684   ac_status=$?
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); }; } &&
25687          { ac_try='test -s conftest.$ac_objext'
25688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689   (eval $ac_try) 2>&5
25690   ac_status=$?
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); }; }; then
25693   ac_header_compiler=yes
25694 else
25695   echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698 ac_header_compiler=no
25699 fi
25700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25702 echo "${ECHO_T}$ac_header_compiler" >&6
25703
25704 # Is the header present?
25705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25707 cat >conftest.$ac_ext <<_ACEOF
25708 /* confdefs.h.  */
25709 _ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h.  */
25713 #include <$ac_header>
25714 _ACEOF
25715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25717   ac_status=$?
25718   grep -v '^ *+' conftest.er1 >conftest.err
25719   rm -f conftest.er1
25720   cat conftest.err >&5
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); } >/dev/null; then
25723   if test -s conftest.err; then
25724     ac_cpp_err=$ac_c_preproc_warn_flag
25725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25726   else
25727     ac_cpp_err=
25728   fi
25729 else
25730   ac_cpp_err=yes
25731 fi
25732 if test -z "$ac_cpp_err"; then
25733   ac_header_preproc=yes
25734 else
25735   echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25737
25738   ac_header_preproc=no
25739 fi
25740 rm -f conftest.err conftest.$ac_ext
25741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25742 echo "${ECHO_T}$ac_header_preproc" >&6
25743
25744 # So?  What about this header?
25745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25746   yes:no: )
25747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25751     ac_header_preproc=yes
25752     ;;
25753   no:yes:* )
25754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25766     (
25767       cat <<\_ASBOX
25768 ## ------------------------------------------ ##
25769 ## Report this to the AC_PACKAGE_NAME lists.  ##
25770 ## ------------------------------------------ ##
25771 _ASBOX
25772     ) |
25773       sed "s/^/$as_me: WARNING:     /" >&2
25774     ;;
25775 esac
25776 echo "$as_me:$LINENO: checking for $ac_header" >&5
25777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25779   echo $ECHO_N "(cached) $ECHO_C" >&6
25780 else
25781   eval "$as_ac_Header=\$ac_header_preproc"
25782 fi
25783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25785
25786 fi
25787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25788   cat >>confdefs.h <<_ACEOF
25789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25790 _ACEOF
25791
25792 fi
25793
25794 done
25795
25796
25797
25798 for ac_header in sys/epoll.h
25799 do
25800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25802   echo "$as_me:$LINENO: checking for $ac_header" >&5
25803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25805   echo $ECHO_N "(cached) $ECHO_C" >&6
25806 fi
25807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25809 else
25810   # Is the header compilable?
25811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25813 cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h.  */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h.  */
25819 $ac_includes_default
25820 #include <$ac_header>
25821 _ACEOF
25822 rm -f conftest.$ac_objext
25823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25824   (eval $ac_compile) 2>conftest.er1
25825   ac_status=$?
25826   grep -v '^ *+' conftest.er1 >conftest.err
25827   rm -f conftest.er1
25828   cat conftest.err >&5
25829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830   (exit $ac_status); } &&
25831          { ac_try='test -z "$ac_c_werror_flag"
25832                          || test ! -s conftest.err'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; } &&
25838          { ac_try='test -s conftest.$ac_objext'
25839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840   (eval $ac_try) 2>&5
25841   ac_status=$?
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); }; }; then
25844   ac_header_compiler=yes
25845 else
25846   echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25848
25849 ac_header_compiler=no
25850 fi
25851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25853 echo "${ECHO_T}$ac_header_compiler" >&6
25854
25855 # Is the header present?
25856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25858 cat >conftest.$ac_ext <<_ACEOF
25859 /* confdefs.h.  */
25860 _ACEOF
25861 cat confdefs.h >>conftest.$ac_ext
25862 cat >>conftest.$ac_ext <<_ACEOF
25863 /* end confdefs.h.  */
25864 #include <$ac_header>
25865 _ACEOF
25866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25868   ac_status=$?
25869   grep -v '^ *+' conftest.er1 >conftest.err
25870   rm -f conftest.er1
25871   cat conftest.err >&5
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); } >/dev/null; then
25874   if test -s conftest.err; then
25875     ac_cpp_err=$ac_c_preproc_warn_flag
25876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25877   else
25878     ac_cpp_err=
25879   fi
25880 else
25881   ac_cpp_err=yes
25882 fi
25883 if test -z "$ac_cpp_err"; then
25884   ac_header_preproc=yes
25885 else
25886   echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25888
25889   ac_header_preproc=no
25890 fi
25891 rm -f conftest.err conftest.$ac_ext
25892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25893 echo "${ECHO_T}$ac_header_preproc" >&6
25894
25895 # So?  What about this header?
25896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25897   yes:no: )
25898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25902     ac_header_preproc=yes
25903     ;;
25904   no:yes:* )
25905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25917     (
25918       cat <<\_ASBOX
25919 ## ------------------------------------------ ##
25920 ## Report this to the AC_PACKAGE_NAME lists.  ##
25921 ## ------------------------------------------ ##
25922 _ASBOX
25923     ) |
25924       sed "s/^/$as_me: WARNING:     /" >&2
25925     ;;
25926 esac
25927 echo "$as_me:$LINENO: checking for $ac_header" >&5
25928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25930   echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932   eval "$as_ac_Header=\$ac_header_preproc"
25933 fi
25934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25936
25937 fi
25938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25939   cat >>confdefs.h <<_ACEOF
25940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25941 _ACEOF
25942
25943 fi
25944
25945 done
25946
25947 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25948 echo "$as_me:$LINENO: checking for epoll system call" >&5
25949 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25950 if test "$cross_compiling" = yes; then
25951   echo "$as_me:$LINENO: result: no" >&5
25952 echo "${ECHO_T}no" >&6
25953 else
25954   cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h.  */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h.  */
25960 int main(int argc, char *argv)
25961 {
25962         int epfd = epoll_create(256);
25963         exit (epfd == -1 ? 1 : 0);
25964 }
25965 _ACEOF
25966 rm -f conftest$ac_exeext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968   (eval $ac_link) 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973   (eval $ac_try) 2>&5
25974   ac_status=$?
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); }; }; then
25977   echo "$as_me:$LINENO: result: yes" >&5
25978 echo "${ECHO_T}yes" >&6
25979
25980 cat >>confdefs.h <<\_ACEOF
25981 #define HAVE_EPOLL 1
25982 _ACEOF
25983
25984 else
25985   echo "$as_me: program exited with status $ac_status" >&5
25986 echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25988
25989 ( exit $ac_status )
25990 echo "$as_me:$LINENO: result: no" >&5
25991 echo "${ECHO_T}no" >&6
25992 fi
25993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25994 fi
25995 fi
25996
25997 # strerror checks
25998 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25999 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26000 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26001   echo $ECHO_N "(cached) $ECHO_C" >&6
26002 else
26003
26004         cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h.  */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h.  */
26010
26011 #include <stdio.h>
26012 #include <sys/types.h>
26013 #include <errno.h>
26014 #ifdef WINNT
26015 #include <stdlib.h>
26016 #endif
26017 int
26018 main ()
26019 {
26020 char *c = (char *) *sys_errlist
26021   ;
26022   return 0;
26023 }
26024 _ACEOF
26025 rm -f conftest.$ac_objext
26026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26027   (eval $ac_compile) 2>conftest.er1
26028   ac_status=$?
26029   grep -v '^ *+' conftest.er1 >conftest.err
26030   rm -f conftest.er1
26031   cat conftest.err >&5
26032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033   (exit $ac_status); } &&
26034          { ac_try='test -z "$ac_c_werror_flag"
26035                          || test ! -s conftest.err'
26036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037   (eval $ac_try) 2>&5
26038   ac_status=$?
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); }; } &&
26041          { ac_try='test -s conftest.$ac_objext'
26042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043   (eval $ac_try) 2>&5
26044   ac_status=$?
26045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); }; }; then
26047   ol_cv_dcl_sys_errlist=yes
26048         ol_cv_have_sys_errlist=yes
26049 else
26050   echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053 ol_cv_dcl_sys_errlist=no
26054 fi
26055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056 fi
26057 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26058 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26059 #
26060 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26061 if test $ol_cv_dcl_sys_errlist = no ; then
26062
26063 cat >>confdefs.h <<\_ACEOF
26064 #define DECL_SYS_ERRLIST 1
26065 _ACEOF
26066
26067
26068         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26069 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26070 if test "${ol_cv_have_sys_errlist+set}" = set; then
26071   echo $ECHO_N "(cached) $ECHO_C" >&6
26072 else
26073
26074                 cat >conftest.$ac_ext <<_ACEOF
26075 /* confdefs.h.  */
26076 _ACEOF
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h.  */
26080 #include <errno.h>
26081 int
26082 main ()
26083 {
26084 char *c = (char *) *sys_errlist
26085   ;
26086   return 0;
26087 }
26088 _ACEOF
26089 rm -f conftest.$ac_objext conftest$ac_exeext
26090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26091   (eval $ac_link) 2>conftest.er1
26092   ac_status=$?
26093   grep -v '^ *+' conftest.er1 >conftest.err
26094   rm -f conftest.er1
26095   cat conftest.err >&5
26096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097   (exit $ac_status); } &&
26098          { ac_try='test -z "$ac_c_werror_flag"
26099                          || test ! -s conftest.err'
26100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101   (eval $ac_try) 2>&5
26102   ac_status=$?
26103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104   (exit $ac_status); }; } &&
26105          { ac_try='test -s conftest$ac_exeext'
26106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107   (eval $ac_try) 2>&5
26108   ac_status=$?
26109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110   (exit $ac_status); }; }; then
26111   ol_cv_have_sys_errlist=yes
26112 else
26113   echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26115
26116 ol_cv_have_sys_errlist=no
26117 fi
26118 rm -f conftest.err conftest.$ac_objext \
26119       conftest$ac_exeext conftest.$ac_ext
26120 fi
26121 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26122 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26123 fi
26124 if test $ol_cv_have_sys_errlist = yes ; then
26125
26126 cat >>confdefs.h <<\_ACEOF
26127 #define HAVE_SYS_ERRLIST 1
26128 _ACEOF
26129
26130 fi
26131
26132
26133 for ac_func in strerror strerror_r
26134 do
26135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26136 echo "$as_me:$LINENO: checking for $ac_func" >&5
26137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26138 if eval "test \"\${$as_ac_var+set}\" = set"; then
26139   echo $ECHO_N "(cached) $ECHO_C" >&6
26140 else
26141   cat >conftest.$ac_ext <<_ACEOF
26142 /* confdefs.h.  */
26143 _ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h.  */
26147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26149 #define $ac_func innocuous_$ac_func
26150
26151 /* System header to define __stub macros and hopefully few prototypes,
26152     which can conflict with char $ac_func (); below.
26153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26154     <limits.h> exists even on freestanding compilers.  */
26155
26156 #ifdef __STDC__
26157 # include <limits.h>
26158 #else
26159 # include <assert.h>
26160 #endif
26161
26162 #undef $ac_func
26163
26164 /* Override any gcc2 internal prototype to avoid an error.  */
26165 #ifdef __cplusplus
26166 extern "C"
26167 {
26168 #endif
26169 /* We use char because int might match the return type of a gcc2
26170    builtin and then its argument prototype would still apply.  */
26171 char $ac_func ();
26172 /* The GNU C library defines this for functions which it implements
26173     to always fail with ENOSYS.  Some functions are actually named
26174     something starting with __ and the normal name is an alias.  */
26175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26176 choke me
26177 #else
26178 char (*f) () = $ac_func;
26179 #endif
26180 #ifdef __cplusplus
26181 }
26182 #endif
26183
26184 int
26185 main ()
26186 {
26187 return f != $ac_func;
26188   ;
26189   return 0;
26190 }
26191 _ACEOF
26192 rm -f conftest.$ac_objext conftest$ac_exeext
26193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26194   (eval $ac_link) 2>conftest.er1
26195   ac_status=$?
26196   grep -v '^ *+' conftest.er1 >conftest.err
26197   rm -f conftest.er1
26198   cat conftest.err >&5
26199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200   (exit $ac_status); } &&
26201          { ac_try='test -z "$ac_c_werror_flag"
26202                          || test ! -s conftest.err'
26203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204   (eval $ac_try) 2>&5
26205   ac_status=$?
26206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207   (exit $ac_status); }; } &&
26208          { ac_try='test -s conftest$ac_exeext'
26209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26210   (eval $ac_try) 2>&5
26211   ac_status=$?
26212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213   (exit $ac_status); }; }; then
26214   eval "$as_ac_var=yes"
26215 else
26216   echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26218
26219 eval "$as_ac_var=no"
26220 fi
26221 rm -f conftest.err conftest.$ac_objext \
26222       conftest$ac_exeext conftest.$ac_ext
26223 fi
26224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26226 if test `eval echo '${'$as_ac_var'}'` = yes; then
26227   cat >>confdefs.h <<_ACEOF
26228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26229 _ACEOF
26230
26231 fi
26232 done
26233
26234 ol_cv_func_strerror_r=no
26235 if test "${ac_cv_func_strerror_r}" = yes ; then
26236         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26237 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26238 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26239   echo $ECHO_N "(cached) $ECHO_C" >&6
26240 else
26241
26242         cat >conftest.$ac_ext <<_ACEOF
26243 /* confdefs.h.  */
26244 _ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h.  */
26248 #include <string.h>
26249 _ACEOF
26250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26251   $EGREP "strerror_r" >/dev/null 2>&1; then
26252   ol_decl_strerror_r=yes
26253 else
26254   ol_decl_strerror_r=no
26255 fi
26256 rm -f conftest*
26257
26258         if test $ol_decl_strerror_r = yes ; then
26259                 cat >conftest.$ac_ext <<_ACEOF
26260 /* confdefs.h.  */
26261 _ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h.  */
26265 #include <string.h>
26266 int
26267 main ()
26268 {
26269    /* from autoconf 2.59 */
26270                                 char buf[100];
26271                                 char x = *strerror_r (0, buf, sizeof buf);
26272                                 char *p = strerror_r (0, buf, sizeof buf);
26273
26274   ;
26275   return 0;
26276 }
26277 _ACEOF
26278 rm -f conftest.$ac_objext
26279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26280   (eval $ac_compile) 2>conftest.er1
26281   ac_status=$?
26282   grep -v '^ *+' conftest.er1 >conftest.err
26283   rm -f conftest.er1
26284   cat conftest.err >&5
26285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286   (exit $ac_status); } &&
26287          { ac_try='test -z "$ac_c_werror_flag"
26288                          || test ! -s conftest.err'
26289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26290   (eval $ac_try) 2>&5
26291   ac_status=$?
26292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293   (exit $ac_status); }; } &&
26294          { ac_try='test -s conftest.$ac_objext'
26295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296   (eval $ac_try) 2>&5
26297   ac_status=$?
26298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); }; }; then
26300   ol_cv_nonposix_strerror_r=yes
26301 else
26302   echo "$as_me: failed program was:" >&5
26303 sed 's/^/| /' conftest.$ac_ext >&5
26304
26305 ol_cv_nonposix_strerror_r=no
26306 fi
26307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26308         else
26309                 if test "$cross_compiling" = yes; then
26310   ol_cv_nonposix_strerror=no
26311 else
26312   cat >conftest.$ac_ext <<_ACEOF
26313 /* confdefs.h.  */
26314 _ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h.  */
26318
26319                         main() {
26320                                 char buf[100];
26321                                 buf[0] = 0;
26322                                 strerror_r( 1, buf, sizeof buf );
26323                                 exit( buf[0] == 0 );
26324                         }
26325
26326 _ACEOF
26327 rm -f conftest$ac_exeext
26328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26329   (eval $ac_link) 2>&5
26330   ac_status=$?
26331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334   (eval $ac_try) 2>&5
26335   ac_status=$?
26336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337   (exit $ac_status); }; }; then
26338   ol_cv_nonposix_strerror_r=yes
26339 else
26340   echo "$as_me: program exited with status $ac_status" >&5
26341 echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26343
26344 ( exit $ac_status )
26345 ol_cv_nonposix_strerror=no
26346 fi
26347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26348 fi
26349         fi
26350
26351 fi
26352 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26353 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26354 if test $ol_cv_nonposix_strerror_r = yes ; then
26355
26356 cat >>confdefs.h <<\_ACEOF
26357 #define HAVE_NONPOSIX_STRERROR_R 1
26358 _ACEOF
26359
26360 fi
26361
26362 elif test "${ac_cv_func_strerror}" = no ; then
26363         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26364 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26365 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26366   echo $ECHO_N "(cached) $ECHO_C" >&6
26367 else
26368
26369         cat >conftest.$ac_ext <<_ACEOF
26370 /* confdefs.h.  */
26371 _ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h.  */
26375
26376 #include <stdio.h>
26377 #include <sys/types.h>
26378 #include <errno.h>
26379 #ifdef WINNT
26380 #include <stdlib.h>
26381 #endif
26382 int
26383 main ()
26384 {
26385 char *c = (char *) *sys_errlist
26386   ;
26387   return 0;
26388 }
26389 _ACEOF
26390 rm -f conftest.$ac_objext
26391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26392   (eval $ac_compile) 2>conftest.er1
26393   ac_status=$?
26394   grep -v '^ *+' conftest.er1 >conftest.err
26395   rm -f conftest.er1
26396   cat conftest.err >&5
26397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398   (exit $ac_status); } &&
26399          { ac_try='test -z "$ac_c_werror_flag"
26400                          || test ! -s conftest.err'
26401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402   (eval $ac_try) 2>&5
26403   ac_status=$?
26404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405   (exit $ac_status); }; } &&
26406          { ac_try='test -s conftest.$ac_objext'
26407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408   (eval $ac_try) 2>&5
26409   ac_status=$?
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); }; }; then
26412   ol_cv_dcl_sys_errlist=yes
26413         ol_cv_have_sys_errlist=yes
26414 else
26415   echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26417
26418 ol_cv_dcl_sys_errlist=no
26419 fi
26420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26421 fi
26422 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26423 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26424 #
26425 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26426 if test $ol_cv_dcl_sys_errlist = no ; then
26427
26428 cat >>confdefs.h <<\_ACEOF
26429 #define DECL_SYS_ERRLIST 1
26430 _ACEOF
26431
26432
26433         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26434 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26435 if test "${ol_cv_have_sys_errlist+set}" = set; then
26436   echo $ECHO_N "(cached) $ECHO_C" >&6
26437 else
26438
26439                 cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h.  */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h.  */
26445 #include <errno.h>
26446 int
26447 main ()
26448 {
26449 char *c = (char *) *sys_errlist
26450   ;
26451   return 0;
26452 }
26453 _ACEOF
26454 rm -f conftest.$ac_objext conftest$ac_exeext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26456   (eval $ac_link) 2>conftest.er1
26457   ac_status=$?
26458   grep -v '^ *+' conftest.er1 >conftest.err
26459   rm -f conftest.er1
26460   cat conftest.err >&5
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); } &&
26463          { ac_try='test -z "$ac_c_werror_flag"
26464                          || test ! -s conftest.err'
26465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466   (eval $ac_try) 2>&5
26467   ac_status=$?
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); }; } &&
26470          { ac_try='test -s conftest$ac_exeext'
26471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472   (eval $ac_try) 2>&5
26473   ac_status=$?
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); }; }; then
26476   ol_cv_have_sys_errlist=yes
26477 else
26478   echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481 ol_cv_have_sys_errlist=no
26482 fi
26483 rm -f conftest.err conftest.$ac_objext \
26484       conftest$ac_exeext conftest.$ac_ext
26485 fi
26486 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26487 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26488 fi
26489 if test $ol_cv_have_sys_errlist = yes ; then
26490
26491 cat >>confdefs.h <<\_ACEOF
26492 #define HAVE_SYS_ERRLIST 1
26493 _ACEOF
26494
26495 fi
26496
26497 fi
26498
26499
26500
26501 for ac_header in regex.h
26502 do
26503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26505   echo "$as_me:$LINENO: checking for $ac_header" >&5
26506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26508   echo $ECHO_N "(cached) $ECHO_C" >&6
26509 fi
26510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26512 else
26513   # Is the header compilable?
26514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26516 cat >conftest.$ac_ext <<_ACEOF
26517 /* confdefs.h.  */
26518 _ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h.  */
26522 $ac_includes_default
26523 #include <$ac_header>
26524 _ACEOF
26525 rm -f conftest.$ac_objext
26526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26527   (eval $ac_compile) 2>conftest.er1
26528   ac_status=$?
26529   grep -v '^ *+' conftest.er1 >conftest.err
26530   rm -f conftest.er1
26531   cat conftest.err >&5
26532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533   (exit $ac_status); } &&
26534          { ac_try='test -z "$ac_c_werror_flag"
26535                          || test ! -s conftest.err'
26536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537   (eval $ac_try) 2>&5
26538   ac_status=$?
26539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540   (exit $ac_status); }; } &&
26541          { ac_try='test -s conftest.$ac_objext'
26542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543   (eval $ac_try) 2>&5
26544   ac_status=$?
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); }; }; then
26547   ac_header_compiler=yes
26548 else
26549   echo "$as_me: failed program was:" >&5
26550 sed 's/^/| /' conftest.$ac_ext >&5
26551
26552 ac_header_compiler=no
26553 fi
26554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26556 echo "${ECHO_T}$ac_header_compiler" >&6
26557
26558 # Is the header present?
26559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26561 cat >conftest.$ac_ext <<_ACEOF
26562 /* confdefs.h.  */
26563 _ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h.  */
26567 #include <$ac_header>
26568 _ACEOF
26569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26571   ac_status=$?
26572   grep -v '^ *+' conftest.er1 >conftest.err
26573   rm -f conftest.er1
26574   cat conftest.err >&5
26575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576   (exit $ac_status); } >/dev/null; then
26577   if test -s conftest.err; then
26578     ac_cpp_err=$ac_c_preproc_warn_flag
26579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26580   else
26581     ac_cpp_err=
26582   fi
26583 else
26584   ac_cpp_err=yes
26585 fi
26586 if test -z "$ac_cpp_err"; then
26587   ac_header_preproc=yes
26588 else
26589   echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26591
26592   ac_header_preproc=no
26593 fi
26594 rm -f conftest.err conftest.$ac_ext
26595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26596 echo "${ECHO_T}$ac_header_preproc" >&6
26597
26598 # So?  What about this header?
26599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26600   yes:no: )
26601     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26605     ac_header_preproc=yes
26606     ;;
26607   no:yes:* )
26608     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26610     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26611 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26612     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26614     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26615 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26618     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26620     (
26621       cat <<\_ASBOX
26622 ## ------------------------------------------ ##
26623 ## Report this to the AC_PACKAGE_NAME lists.  ##
26624 ## ------------------------------------------ ##
26625 _ASBOX
26626     ) |
26627       sed "s/^/$as_me: WARNING:     /" >&2
26628     ;;
26629 esac
26630 echo "$as_me:$LINENO: checking for $ac_header" >&5
26631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633   echo $ECHO_N "(cached) $ECHO_C" >&6
26634 else
26635   eval "$as_ac_Header=\$ac_header_preproc"
26636 fi
26637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26639
26640 fi
26641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26642   cat >>confdefs.h <<_ACEOF
26643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26644 _ACEOF
26645
26646 fi
26647
26648 done
26649
26650 if test "$ac_cv_header_regex_h" != yes ; then
26651         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26652 echo "$as_me: error: POSIX regex.h required." >&2;}
26653    { (exit 1); exit 1; }; }
26654 fi
26655 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26656 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26657 if test "${ac_cv_search_regfree+set}" = set; then
26658   echo $ECHO_N "(cached) $ECHO_C" >&6
26659 else
26660   ac_func_search_save_LIBS=$LIBS
26661 ac_cv_search_regfree=no
26662 cat >conftest.$ac_ext <<_ACEOF
26663 /* confdefs.h.  */
26664 _ACEOF
26665 cat confdefs.h >>conftest.$ac_ext
26666 cat >>conftest.$ac_ext <<_ACEOF
26667 /* end confdefs.h.  */
26668
26669 /* Override any gcc2 internal prototype to avoid an error.  */
26670 #ifdef __cplusplus
26671 extern "C"
26672 #endif
26673 /* We use char because int might match the return type of a gcc2
26674    builtin and then its argument prototype would still apply.  */
26675 char regfree ();
26676 int
26677 main ()
26678 {
26679 regfree ();
26680   ;
26681   return 0;
26682 }
26683 _ACEOF
26684 rm -f conftest.$ac_objext conftest$ac_exeext
26685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26686   (eval $ac_link) 2>conftest.er1
26687   ac_status=$?
26688   grep -v '^ *+' conftest.er1 >conftest.err
26689   rm -f conftest.er1
26690   cat conftest.err >&5
26691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692   (exit $ac_status); } &&
26693          { ac_try='test -z "$ac_c_werror_flag"
26694                          || test ! -s conftest.err'
26695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26696   (eval $ac_try) 2>&5
26697   ac_status=$?
26698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699   (exit $ac_status); }; } &&
26700          { ac_try='test -s conftest$ac_exeext'
26701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26702   (eval $ac_try) 2>&5
26703   ac_status=$?
26704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705   (exit $ac_status); }; }; then
26706   ac_cv_search_regfree="none required"
26707 else
26708   echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26710
26711 fi
26712 rm -f conftest.err conftest.$ac_objext \
26713       conftest$ac_exeext conftest.$ac_ext
26714 if test "$ac_cv_search_regfree" = no; then
26715   for ac_lib in regex gnuregex; do
26716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26717     cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723
26724 /* Override any gcc2 internal prototype to avoid an error.  */
26725 #ifdef __cplusplus
26726 extern "C"
26727 #endif
26728 /* We use char because int might match the return type of a gcc2
26729    builtin and then its argument prototype would still apply.  */
26730 char regfree ();
26731 int
26732 main ()
26733 {
26734 regfree ();
26735   ;
26736   return 0;
26737 }
26738 _ACEOF
26739 rm -f conftest.$ac_objext conftest$ac_exeext
26740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26741   (eval $ac_link) 2>conftest.er1
26742   ac_status=$?
26743   grep -v '^ *+' conftest.er1 >conftest.err
26744   rm -f conftest.er1
26745   cat conftest.err >&5
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); } &&
26748          { ac_try='test -z "$ac_c_werror_flag"
26749                          || test ! -s conftest.err'
26750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751   (eval $ac_try) 2>&5
26752   ac_status=$?
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); }; } &&
26755          { ac_try='test -s conftest$ac_exeext'
26756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26757   (eval $ac_try) 2>&5
26758   ac_status=$?
26759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760   (exit $ac_status); }; }; then
26761   ac_cv_search_regfree="-l$ac_lib"
26762 break
26763 else
26764   echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26766
26767 fi
26768 rm -f conftest.err conftest.$ac_objext \
26769       conftest$ac_exeext conftest.$ac_ext
26770   done
26771 fi
26772 LIBS=$ac_func_search_save_LIBS
26773 fi
26774 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26775 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26776 if test "$ac_cv_search_regfree" != no; then
26777   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26778   :
26779 else
26780   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26781 echo "$as_me: error: POSIX regex required." >&2;}
26782    { (exit 1); exit 1; }; }
26783 fi
26784
26785
26786
26787 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26788 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26789 if test "${ol_cv_c_posix_regex+set}" = set; then
26790   echo $ECHO_N "(cached) $ECHO_C" >&6
26791 else
26792
26793         if test "$cross_compiling" = yes; then
26794   ol_cv_c_posix_regex=cross
26795 else
26796   cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802
26803 #include <sys/types.h>
26804 #include <regex.h>
26805 static char *pattern, *string;
26806 main()
26807 {
26808         int rc;
26809         regex_t re;
26810
26811         pattern = "^A";
26812
26813         if(regcomp(&re, pattern, 0)) {
26814                 return -1;
26815         }
26816
26817         string = "ALL MATCH";
26818
26819         rc = regexec(&re, string, 0, (void*)0, 0);
26820
26821         regfree(&re);
26822
26823         return rc;
26824 }
26825 _ACEOF
26826 rm -f conftest$ac_exeext
26827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26828   (eval $ac_link) 2>&5
26829   ac_status=$?
26830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833   (eval $ac_try) 2>&5
26834   ac_status=$?
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); }; }; then
26837   ol_cv_c_posix_regex=yes
26838 else
26839   echo "$as_me: program exited with status $ac_status" >&5
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26842
26843 ( exit $ac_status )
26844 ol_cv_c_posix_regex=no
26845 fi
26846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26847 fi
26848 fi
26849 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26850 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26851
26852 if test "$ol_cv_c_posix_regex" = no ; then
26853         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26854 echo "$as_me: error: broken POSIX regex!" >&2;}
26855    { (exit 1); exit 1; }; }
26856 fi
26857
26858
26859 have_uuid=no
26860
26861 for ac_header in sys/uuid.h
26862 do
26863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26865   echo "$as_me:$LINENO: checking for $ac_header" >&5
26866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26868   echo $ECHO_N "(cached) $ECHO_C" >&6
26869 fi
26870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26872 else
26873   # Is the header compilable?
26874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26876 cat >conftest.$ac_ext <<_ACEOF
26877 /* confdefs.h.  */
26878 _ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h.  */
26882 $ac_includes_default
26883 #include <$ac_header>
26884 _ACEOF
26885 rm -f conftest.$ac_objext
26886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26887   (eval $ac_compile) 2>conftest.er1
26888   ac_status=$?
26889   grep -v '^ *+' conftest.er1 >conftest.err
26890   rm -f conftest.er1
26891   cat conftest.err >&5
26892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893   (exit $ac_status); } &&
26894          { ac_try='test -z "$ac_c_werror_flag"
26895                          || test ! -s conftest.err'
26896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897   (eval $ac_try) 2>&5
26898   ac_status=$?
26899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900   (exit $ac_status); }; } &&
26901          { ac_try='test -s conftest.$ac_objext'
26902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903   (eval $ac_try) 2>&5
26904   ac_status=$?
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); }; }; then
26907   ac_header_compiler=yes
26908 else
26909   echo "$as_me: failed program was:" >&5
26910 sed 's/^/| /' conftest.$ac_ext >&5
26911
26912 ac_header_compiler=no
26913 fi
26914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26916 echo "${ECHO_T}$ac_header_compiler" >&6
26917
26918 # Is the header present?
26919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26921 cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h.  */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h.  */
26927 #include <$ac_header>
26928 _ACEOF
26929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26931   ac_status=$?
26932   grep -v '^ *+' conftest.er1 >conftest.err
26933   rm -f conftest.er1
26934   cat conftest.err >&5
26935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936   (exit $ac_status); } >/dev/null; then
26937   if test -s conftest.err; then
26938     ac_cpp_err=$ac_c_preproc_warn_flag
26939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26940   else
26941     ac_cpp_err=
26942   fi
26943 else
26944   ac_cpp_err=yes
26945 fi
26946 if test -z "$ac_cpp_err"; then
26947   ac_header_preproc=yes
26948 else
26949   echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26951
26952   ac_header_preproc=no
26953 fi
26954 rm -f conftest.err conftest.$ac_ext
26955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26956 echo "${ECHO_T}$ac_header_preproc" >&6
26957
26958 # So?  What about this header?
26959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26960   yes:no: )
26961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26965     ac_header_preproc=yes
26966     ;;
26967   no:yes:* )
26968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26970     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26971 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26972     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26974     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26975 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26978     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26980     (
26981       cat <<\_ASBOX
26982 ## ------------------------------------------ ##
26983 ## Report this to the AC_PACKAGE_NAME lists.  ##
26984 ## ------------------------------------------ ##
26985 _ASBOX
26986     ) |
26987       sed "s/^/$as_me: WARNING:     /" >&2
26988     ;;
26989 esac
26990 echo "$as_me:$LINENO: checking for $ac_header" >&5
26991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26993   echo $ECHO_N "(cached) $ECHO_C" >&6
26994 else
26995   eval "$as_ac_Header=\$ac_header_preproc"
26996 fi
26997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26999
27000 fi
27001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27002   cat >>confdefs.h <<_ACEOF
27003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27004 _ACEOF
27005
27006 fi
27007
27008 done
27009
27010 if test $ac_cv_header_sys_uuid_h = yes ; then
27011         save_LIBS="$LIBS"
27012         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27013 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27014 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27015   echo $ECHO_N "(cached) $ECHO_C" >&6
27016 else
27017   ac_func_search_save_LIBS=$LIBS
27018 ac_cv_search_uuid_to_str=no
27019 cat >conftest.$ac_ext <<_ACEOF
27020 /* confdefs.h.  */
27021 _ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h.  */
27025
27026 /* Override any gcc2 internal prototype to avoid an error.  */
27027 #ifdef __cplusplus
27028 extern "C"
27029 #endif
27030 /* We use char because int might match the return type of a gcc2
27031    builtin and then its argument prototype would still apply.  */
27032 char uuid_to_str ();
27033 int
27034 main ()
27035 {
27036 uuid_to_str ();
27037   ;
27038   return 0;
27039 }
27040 _ACEOF
27041 rm -f conftest.$ac_objext conftest$ac_exeext
27042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27043   (eval $ac_link) 2>conftest.er1
27044   ac_status=$?
27045   grep -v '^ *+' conftest.er1 >conftest.err
27046   rm -f conftest.er1
27047   cat conftest.err >&5
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); } &&
27050          { ac_try='test -z "$ac_c_werror_flag"
27051                          || test ! -s conftest.err'
27052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053   (eval $ac_try) 2>&5
27054   ac_status=$?
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); }; } &&
27057          { ac_try='test -s conftest$ac_exeext'
27058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059   (eval $ac_try) 2>&5
27060   ac_status=$?
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); }; }; then
27063   ac_cv_search_uuid_to_str="none required"
27064 else
27065   echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27067
27068 fi
27069 rm -f conftest.err conftest.$ac_objext \
27070       conftest$ac_exeext conftest.$ac_ext
27071 if test "$ac_cv_search_uuid_to_str" = no; then
27072   for ac_lib in uuid; do
27073     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27074     cat >conftest.$ac_ext <<_ACEOF
27075 /* confdefs.h.  */
27076 _ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h.  */
27080
27081 /* Override any gcc2 internal prototype to avoid an error.  */
27082 #ifdef __cplusplus
27083 extern "C"
27084 #endif
27085 /* We use char because int might match the return type of a gcc2
27086    builtin and then its argument prototype would still apply.  */
27087 char uuid_to_str ();
27088 int
27089 main ()
27090 {
27091 uuid_to_str ();
27092   ;
27093   return 0;
27094 }
27095 _ACEOF
27096 rm -f conftest.$ac_objext conftest$ac_exeext
27097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27098   (eval $ac_link) 2>conftest.er1
27099   ac_status=$?
27100   grep -v '^ *+' conftest.er1 >conftest.err
27101   rm -f conftest.er1
27102   cat conftest.err >&5
27103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); } &&
27105          { ac_try='test -z "$ac_c_werror_flag"
27106                          || test ! -s conftest.err'
27107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108   (eval $ac_try) 2>&5
27109   ac_status=$?
27110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111   (exit $ac_status); }; } &&
27112          { ac_try='test -s conftest$ac_exeext'
27113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114   (eval $ac_try) 2>&5
27115   ac_status=$?
27116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117   (exit $ac_status); }; }; then
27118   ac_cv_search_uuid_to_str="-l$ac_lib"
27119 break
27120 else
27121   echo "$as_me: failed program was:" >&5
27122 sed 's/^/| /' conftest.$ac_ext >&5
27123
27124 fi
27125 rm -f conftest.err conftest.$ac_objext \
27126       conftest$ac_exeext conftest.$ac_ext
27127   done
27128 fi
27129 LIBS=$ac_func_search_save_LIBS
27130 fi
27131 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27132 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27133 if test "$ac_cv_search_uuid_to_str" != no; then
27134   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27135   have_uuid=yes
27136 else
27137   :
27138 fi
27139
27140         LIBS="$save_LIBS"
27141
27142         if test have_uuid = yes ; then
27143
27144 cat >>confdefs.h <<\_ACEOF
27145 #define HAVE_UUID_TO_STR 1
27146 _ACEOF
27147
27148
27149                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27150                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27151         fi
27152 fi
27153
27154 if test $have_uuid = no ; then
27155         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27156 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27157         save_LIBS="$LIBS"
27158         LIBS="$LIBS -lrpcrt4"
27159         cat >conftest.$ac_ext <<_ACEOF
27160 /* confdefs.h.  */
27161 _ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h.  */
27165
27166                 int __stdcall UuidCreate(void *);
27167                 int __stdcall UuidToStringA(void *,void **);
27168
27169 int
27170 main ()
27171 {
27172
27173                 UuidCreate(0);
27174                 UuidToStringA(0,0);
27175
27176   ;
27177   return 0;
27178 }
27179 _ACEOF
27180 rm -f conftest.$ac_objext conftest$ac_exeext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27182   (eval $ac_link) 2>conftest.er1
27183   ac_status=$?
27184   grep -v '^ *+' conftest.er1 >conftest.err
27185   rm -f conftest.er1
27186   cat conftest.err >&5
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); } &&
27189          { ac_try='test -z "$ac_c_werror_flag"
27190                          || test ! -s conftest.err'
27191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192   (eval $ac_try) 2>&5
27193   ac_status=$?
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); }; } &&
27196          { ac_try='test -s conftest$ac_exeext'
27197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198   (eval $ac_try) 2>&5
27199   ac_status=$?
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); }; }; then
27202   need_rpcrt=yes
27203 else
27204   echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27206
27207 need_rpcrt=no
27208 fi
27209 rm -f conftest.err conftest.$ac_objext \
27210       conftest$ac_exeext conftest.$ac_ext
27211         if test $need_rpcrt = yes; then
27212                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27213         fi
27214         LIBS="$save_LIBS"
27215         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27216 echo "${ECHO_T}$need_rpcrt" >&6
27217 fi
27218
27219 ol_cv_lib_resolver=no
27220 if test $ol_cv_lib_resolver = no ; then
27221         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27222 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27223 if test "${ol_cv_resolver_none+set}" = set; then
27224   echo $ECHO_N "(cached) $ECHO_C" >&6
27225 else
27226
27227         ol_RESOLVER_LIB=
27228         ol_LIBS=$LIBS
27229         LIBS="$ol_RESOLVER_LIB $LIBS"
27230
27231         cat >conftest.$ac_ext <<_ACEOF
27232 /* confdefs.h.  */
27233 _ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h.  */
27237
27238 #ifdef HAVE_SYS_TYPES_H
27239 #       include <sys/types.h>
27240 #endif
27241 #include <netinet/in.h>
27242 #ifdef HAVE_ARPA_NAMESER_H
27243 #       include <arpa/nameser.h>
27244 #endif
27245 #ifdef HAVE_RESOLV_H
27246 #       include <resolv.h>
27247 #endif
27248
27249 int
27250 main ()
27251 {
27252 {
27253         int len, status;
27254         char *request = NULL;
27255         unsigned char reply[64*1024];
27256         unsigned char host[64*1024];
27257         unsigned char *p;
27258
27259 #ifdef NS_HFIXEDSZ
27260         /* Bind 8/9 interface */
27261         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27262 #else
27263         /* Bind 4 interface */
27264 # ifndef T_SRV
27265 #  define T_SRV 33
27266 # endif
27267         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27268 #endif
27269         p = reply;
27270 #ifdef NS_HFIXEDSZ
27271         /* Bind 8/9 interface */
27272         p += NS_HFIXEDSZ;
27273 #elif defined(HFIXEDSZ)
27274         /* Bind 4 interface w/ HFIXEDSZ */
27275         p += HFIXEDSZ;
27276 #else
27277         /* Bind 4 interface w/o HFIXEDSZ */
27278         p += sizeof(HEADER);
27279 #endif
27280         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27281 }
27282   ;
27283   return 0;
27284 }
27285 _ACEOF
27286 rm -f conftest.$ac_objext conftest$ac_exeext
27287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27288   (eval $ac_link) 2>conftest.er1
27289   ac_status=$?
27290   grep -v '^ *+' conftest.er1 >conftest.err
27291   rm -f conftest.er1
27292   cat conftest.err >&5
27293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294   (exit $ac_status); } &&
27295          { ac_try='test -z "$ac_c_werror_flag"
27296                          || test ! -s conftest.err'
27297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298   (eval $ac_try) 2>&5
27299   ac_status=$?
27300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301   (exit $ac_status); }; } &&
27302          { ac_try='test -s conftest$ac_exeext'
27303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304   (eval $ac_try) 2>&5
27305   ac_status=$?
27306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307   (exit $ac_status); }; }; then
27308   ol_cv_resolver_none=yes
27309 else
27310   echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27312
27313 ol_cv_resolver_none=no
27314 fi
27315 rm -f conftest.err conftest.$ac_objext \
27316       conftest$ac_exeext conftest.$ac_ext
27317
27318         LIBS="$ol_LIBS"
27319
27320 fi
27321 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27322 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27323
27324         if test $ol_cv_resolver_none = yes ; then
27325                 ol_cv_lib_resolver=yes
27326         fi
27327 fi
27328
27329 if test $ol_cv_lib_resolver = no ; then
27330         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27331 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27332 if test "${ol_cv_resolver_resolv+set}" = set; then
27333   echo $ECHO_N "(cached) $ECHO_C" >&6
27334 else
27335
27336         ol_RESOLVER_LIB=-lresolv
27337         ol_LIBS=$LIBS
27338         LIBS="$ol_RESOLVER_LIB $LIBS"
27339
27340         cat >conftest.$ac_ext <<_ACEOF
27341 /* confdefs.h.  */
27342 _ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h.  */
27346
27347 #ifdef HAVE_SYS_TYPES_H
27348 #       include <sys/types.h>
27349 #endif
27350 #include <netinet/in.h>
27351 #ifdef HAVE_ARPA_NAMESER_H
27352 #       include <arpa/nameser.h>
27353 #endif
27354 #ifdef HAVE_RESOLV_H
27355 #       include <resolv.h>
27356 #endif
27357
27358 int
27359 main ()
27360 {
27361 {
27362         int len, status;
27363         char *request = NULL;
27364         unsigned char reply[64*1024];
27365         unsigned char host[64*1024];
27366         unsigned char *p;
27367
27368 #ifdef NS_HFIXEDSZ
27369         /* Bind 8/9 interface */
27370         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27371 #else
27372         /* Bind 4 interface */
27373 # ifndef T_SRV
27374 #  define T_SRV 33
27375 # endif
27376         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27377 #endif
27378         p = reply;
27379 #ifdef NS_HFIXEDSZ
27380         /* Bind 8/9 interface */
27381         p += NS_HFIXEDSZ;
27382 #elif defined(HFIXEDSZ)
27383         /* Bind 4 interface w/ HFIXEDSZ */
27384         p += HFIXEDSZ;
27385 #else
27386         /* Bind 4 interface w/o HFIXEDSZ */
27387         p += sizeof(HEADER);
27388 #endif
27389         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27390 }
27391   ;
27392   return 0;
27393 }
27394 _ACEOF
27395 rm -f conftest.$ac_objext conftest$ac_exeext
27396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27397   (eval $ac_link) 2>conftest.er1
27398   ac_status=$?
27399   grep -v '^ *+' conftest.er1 >conftest.err
27400   rm -f conftest.er1
27401   cat conftest.err >&5
27402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403   (exit $ac_status); } &&
27404          { ac_try='test -z "$ac_c_werror_flag"
27405                          || test ! -s conftest.err'
27406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407   (eval $ac_try) 2>&5
27408   ac_status=$?
27409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410   (exit $ac_status); }; } &&
27411          { ac_try='test -s conftest$ac_exeext'
27412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27413   (eval $ac_try) 2>&5
27414   ac_status=$?
27415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416   (exit $ac_status); }; }; then
27417   ol_cv_resolver_resolv=yes
27418 else
27419   echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27421
27422 ol_cv_resolver_resolv=no
27423 fi
27424 rm -f conftest.err conftest.$ac_objext \
27425       conftest$ac_exeext conftest.$ac_ext
27426
27427         LIBS="$ol_LIBS"
27428
27429 fi
27430 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27431 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27432
27433         if test $ol_cv_resolver_resolv = yes ; then
27434                 ol_cv_lib_resolver=-lresolv
27435         fi
27436 fi
27437
27438 if test $ol_cv_lib_resolver = no ; then
27439         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27440 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27441 if test "${ol_cv_resolver_bind+set}" = set; then
27442   echo $ECHO_N "(cached) $ECHO_C" >&6
27443 else
27444
27445         ol_RESOLVER_LIB=-lbind
27446         ol_LIBS=$LIBS
27447         LIBS="$ol_RESOLVER_LIB $LIBS"
27448
27449         cat >conftest.$ac_ext <<_ACEOF
27450 /* confdefs.h.  */
27451 _ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h.  */
27455
27456 #ifdef HAVE_SYS_TYPES_H
27457 #       include <sys/types.h>
27458 #endif
27459 #include <netinet/in.h>
27460 #ifdef HAVE_ARPA_NAMESER_H
27461 #       include <arpa/nameser.h>
27462 #endif
27463 #ifdef HAVE_RESOLV_H
27464 #       include <resolv.h>
27465 #endif
27466
27467 int
27468 main ()
27469 {
27470 {
27471         int len, status;
27472         char *request = NULL;
27473         unsigned char reply[64*1024];
27474         unsigned char host[64*1024];
27475         unsigned char *p;
27476
27477 #ifdef NS_HFIXEDSZ
27478         /* Bind 8/9 interface */
27479         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27480 #else
27481         /* Bind 4 interface */
27482 # ifndef T_SRV
27483 #  define T_SRV 33
27484 # endif
27485         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27486 #endif
27487         p = reply;
27488 #ifdef NS_HFIXEDSZ
27489         /* Bind 8/9 interface */
27490         p += NS_HFIXEDSZ;
27491 #elif defined(HFIXEDSZ)
27492         /* Bind 4 interface w/ HFIXEDSZ */
27493         p += HFIXEDSZ;
27494 #else
27495         /* Bind 4 interface w/o HFIXEDSZ */
27496         p += sizeof(HEADER);
27497 #endif
27498         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27499 }
27500   ;
27501   return 0;
27502 }
27503 _ACEOF
27504 rm -f conftest.$ac_objext conftest$ac_exeext
27505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27506   (eval $ac_link) 2>conftest.er1
27507   ac_status=$?
27508   grep -v '^ *+' conftest.er1 >conftest.err
27509   rm -f conftest.er1
27510   cat conftest.err >&5
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); } &&
27513          { ac_try='test -z "$ac_c_werror_flag"
27514                          || test ! -s conftest.err'
27515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516   (eval $ac_try) 2>&5
27517   ac_status=$?
27518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); }; } &&
27520          { ac_try='test -s conftest$ac_exeext'
27521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522   (eval $ac_try) 2>&5
27523   ac_status=$?
27524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525   (exit $ac_status); }; }; then
27526   ol_cv_resolver_bind=yes
27527 else
27528   echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27530
27531 ol_cv_resolver_bind=no
27532 fi
27533 rm -f conftest.err conftest.$ac_objext \
27534       conftest$ac_exeext conftest.$ac_ext
27535
27536         LIBS="$ol_LIBS"
27537
27538 fi
27539 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27540 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27541
27542         if test $ol_cv_resolver_bind = yes ; then
27543                 ol_cv_lib_resolver=-lbind
27544         fi
27545 fi
27546
27547
27548
27549 ol_link_dnssrv=no
27550 if test "$ol_cv_lib_resolver" != no ; then
27551
27552 cat >>confdefs.h <<\_ACEOF
27553 #define HAVE_RES_QUERY 1
27554 _ACEOF
27555
27556
27557         if test "$ol_enable_dnssrv" != no ; then
27558                 ol_link_dnssrv=yes
27559         fi
27560
27561         if test "$ol_cv_lib_resolver" != yes ; then
27562                 LIBS="$ol_cv_lib_resolver $LIBS"
27563         fi
27564 fi
27565
27566 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27567         if test "$ol_link_dnssrv" = no ; then
27568                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27569 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27570    { (exit 1); exit 1; }; }
27571         fi
27572 else
27573         ol_enable_dnssrv=no
27574 fi
27575
27576
27577 for ac_func in hstrerror
27578 do
27579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27580 echo "$as_me:$LINENO: checking for $ac_func" >&5
27581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27582 if eval "test \"\${$as_ac_var+set}\" = set"; then
27583   echo $ECHO_N "(cached) $ECHO_C" >&6
27584 else
27585   cat >conftest.$ac_ext <<_ACEOF
27586 /* confdefs.h.  */
27587 _ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h.  */
27591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27593 #define $ac_func innocuous_$ac_func
27594
27595 /* System header to define __stub macros and hopefully few prototypes,
27596     which can conflict with char $ac_func (); below.
27597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27598     <limits.h> exists even on freestanding compilers.  */
27599
27600 #ifdef __STDC__
27601 # include <limits.h>
27602 #else
27603 # include <assert.h>
27604 #endif
27605
27606 #undef $ac_func
27607
27608 /* Override any gcc2 internal prototype to avoid an error.  */
27609 #ifdef __cplusplus
27610 extern "C"
27611 {
27612 #endif
27613 /* We use char because int might match the return type of a gcc2
27614    builtin and then its argument prototype would still apply.  */
27615 char $ac_func ();
27616 /* The GNU C library defines this for functions which it implements
27617     to always fail with ENOSYS.  Some functions are actually named
27618     something starting with __ and the normal name is an alias.  */
27619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27620 choke me
27621 #else
27622 char (*f) () = $ac_func;
27623 #endif
27624 #ifdef __cplusplus
27625 }
27626 #endif
27627
27628 int
27629 main ()
27630 {
27631 return f != $ac_func;
27632   ;
27633   return 0;
27634 }
27635 _ACEOF
27636 rm -f conftest.$ac_objext conftest$ac_exeext
27637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27638   (eval $ac_link) 2>conftest.er1
27639   ac_status=$?
27640   grep -v '^ *+' conftest.er1 >conftest.err
27641   rm -f conftest.er1
27642   cat conftest.err >&5
27643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644   (exit $ac_status); } &&
27645          { ac_try='test -z "$ac_c_werror_flag"
27646                          || test ! -s conftest.err'
27647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648   (eval $ac_try) 2>&5
27649   ac_status=$?
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); }; } &&
27652          { ac_try='test -s conftest$ac_exeext'
27653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654   (eval $ac_try) 2>&5
27655   ac_status=$?
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); }; }; then
27658   eval "$as_ac_var=yes"
27659 else
27660   echo "$as_me: failed program was:" >&5
27661 sed 's/^/| /' conftest.$ac_ext >&5
27662
27663 eval "$as_ac_var=no"
27664 fi
27665 rm -f conftest.err conftest.$ac_objext \
27666       conftest$ac_exeext conftest.$ac_ext
27667 fi
27668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27670 if test `eval echo '${'$as_ac_var'}'` = yes; then
27671   cat >>confdefs.h <<_ACEOF
27672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27673 _ACEOF
27674
27675 fi
27676 done
27677
27678
27679
27680
27681
27682
27683 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27684 do
27685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27686 echo "$as_me:$LINENO: checking for $ac_func" >&5
27687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27688 if eval "test \"\${$as_ac_var+set}\" = set"; then
27689   echo $ECHO_N "(cached) $ECHO_C" >&6
27690 else
27691   cat >conftest.$ac_ext <<_ACEOF
27692 /* confdefs.h.  */
27693 _ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h.  */
27697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27699 #define $ac_func innocuous_$ac_func
27700
27701 /* System header to define __stub macros and hopefully few prototypes,
27702     which can conflict with char $ac_func (); below.
27703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27704     <limits.h> exists even on freestanding compilers.  */
27705
27706 #ifdef __STDC__
27707 # include <limits.h>
27708 #else
27709 # include <assert.h>
27710 #endif
27711
27712 #undef $ac_func
27713
27714 /* Override any gcc2 internal prototype to avoid an error.  */
27715 #ifdef __cplusplus
27716 extern "C"
27717 {
27718 #endif
27719 /* We use char because int might match the return type of a gcc2
27720    builtin and then its argument prototype would still apply.  */
27721 char $ac_func ();
27722 /* The GNU C library defines this for functions which it implements
27723     to always fail with ENOSYS.  Some functions are actually named
27724     something starting with __ and the normal name is an alias.  */
27725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27726 choke me
27727 #else
27728 char (*f) () = $ac_func;
27729 #endif
27730 #ifdef __cplusplus
27731 }
27732 #endif
27733
27734 int
27735 main ()
27736 {
27737 return f != $ac_func;
27738   ;
27739   return 0;
27740 }
27741 _ACEOF
27742 rm -f conftest.$ac_objext conftest$ac_exeext
27743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27744   (eval $ac_link) 2>conftest.er1
27745   ac_status=$?
27746   grep -v '^ *+' conftest.er1 >conftest.err
27747   rm -f conftest.er1
27748   cat conftest.err >&5
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); } &&
27751          { ac_try='test -z "$ac_c_werror_flag"
27752                          || test ! -s conftest.err'
27753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754   (eval $ac_try) 2>&5
27755   ac_status=$?
27756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); }; } &&
27758          { ac_try='test -s conftest$ac_exeext'
27759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760   (eval $ac_try) 2>&5
27761   ac_status=$?
27762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); }; }; then
27764   eval "$as_ac_var=yes"
27765 else
27766   echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27768
27769 eval "$as_ac_var=no"
27770 fi
27771 rm -f conftest.err conftest.$ac_objext \
27772       conftest$ac_exeext conftest.$ac_ext
27773 fi
27774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27776 if test `eval echo '${'$as_ac_var'}'` = yes; then
27777   cat >>confdefs.h <<_ACEOF
27778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27779 _ACEOF
27780
27781 fi
27782 done
27783
27784
27785 ol_link_ipv6=no
27786 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27787         if test $ol_enable_ipv6 = yes ; then
27788                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27789 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27790    { (exit 1); exit 1; }; }
27791         fi
27792 elif test $ol_enable_ipv6 != no ; then
27793         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27794 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27795 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27796   echo $ECHO_N "(cached) $ECHO_C" >&6
27797 else
27798
27799                 cat >conftest.$ac_ext <<_ACEOF
27800 /* confdefs.h.  */
27801 _ACEOF
27802 cat confdefs.h >>conftest.$ac_ext
27803 cat >>conftest.$ac_ext <<_ACEOF
27804 /* end confdefs.h.  */
27805
27806 #                       include <netinet/in.h>
27807 #                       ifdef INET6_ADDRSTRLEN
27808                                 __has_inet6_addrstrlen__;
27809 #                       endif
27810
27811 _ACEOF
27812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27813   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27814   ol_cv_inet6_addrstrlen=yes
27815 else
27816   ol_cv_inet6_addrstrlen=no
27817 fi
27818 rm -f conftest*
27819
27820 fi
27821 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27822 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27823
27824
27825         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27826 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27827 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27828   echo $ECHO_N "(cached) $ECHO_C" >&6
27829 else
27830
27831                 cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h.  */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h.  */
27837
27838 #include <sys/types.h>
27839 #include <sys/socket.h>
27840
27841 int
27842 main ()
27843 {
27844
27845                         struct sockaddr_storage ss;
27846
27847   ;
27848   return 0;
27849 }
27850 _ACEOF
27851 rm -f conftest.$ac_objext
27852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27853   (eval $ac_compile) 2>conftest.er1
27854   ac_status=$?
27855   grep -v '^ *+' conftest.er1 >conftest.err
27856   rm -f conftest.er1
27857   cat conftest.err >&5
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); } &&
27860          { ac_try='test -z "$ac_c_werror_flag"
27861                          || test ! -s conftest.err'
27862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863   (eval $ac_try) 2>&5
27864   ac_status=$?
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); }; } &&
27867          { ac_try='test -s conftest.$ac_objext'
27868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869   (eval $ac_try) 2>&5
27870   ac_status=$?
27871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872   (exit $ac_status); }; }; then
27873   ol_cv_struct_sockaddr_storage=yes
27874 else
27875   echo "$as_me: failed program was:" >&5
27876 sed 's/^/| /' conftest.$ac_ext >&5
27877
27878 ol_cv_struct_sockaddr_storage=no
27879 fi
27880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27881 fi
27882 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27883 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27884
27885         if test $ol_cv_inet6_addrstrlen = yes \
27886                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27887                 ol_link_ipv6=yes
27888         elif test $ol_enable_ipv6 = yes \
27889                         -a $ol_cv_inet6_addrstrlen = no ; then
27890                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27891 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27892    { (exit 1); exit 1; }; }
27893         elif test $ol_enable_ipv6 = yes \
27894                         -a $ol_cv_struct_sockaddr_storage = no ; then
27895                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27896 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27897    { (exit 1); exit 1; }; }
27898         fi
27899 fi
27900
27901 if test $ol_enable_local != no ; then
27902
27903 for ac_header in sys/un.h
27904 do
27905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27907   echo "$as_me:$LINENO: checking for $ac_header" >&5
27908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27910   echo $ECHO_N "(cached) $ECHO_C" >&6
27911 fi
27912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27914 else
27915   # Is the header compilable?
27916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27918 cat >conftest.$ac_ext <<_ACEOF
27919 /* confdefs.h.  */
27920 _ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h.  */
27924 $ac_includes_default
27925 #include <$ac_header>
27926 _ACEOF
27927 rm -f conftest.$ac_objext
27928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27929   (eval $ac_compile) 2>conftest.er1
27930   ac_status=$?
27931   grep -v '^ *+' conftest.er1 >conftest.err
27932   rm -f conftest.er1
27933   cat conftest.err >&5
27934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935   (exit $ac_status); } &&
27936          { ac_try='test -z "$ac_c_werror_flag"
27937                          || test ! -s conftest.err'
27938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939   (eval $ac_try) 2>&5
27940   ac_status=$?
27941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942   (exit $ac_status); }; } &&
27943          { ac_try='test -s conftest.$ac_objext'
27944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945   (eval $ac_try) 2>&5
27946   ac_status=$?
27947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948   (exit $ac_status); }; }; then
27949   ac_header_compiler=yes
27950 else
27951   echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27953
27954 ac_header_compiler=no
27955 fi
27956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27958 echo "${ECHO_T}$ac_header_compiler" >&6
27959
27960 # Is the header present?
27961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27963 cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h.  */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h.  */
27969 #include <$ac_header>
27970 _ACEOF
27971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27973   ac_status=$?
27974   grep -v '^ *+' conftest.er1 >conftest.err
27975   rm -f conftest.er1
27976   cat conftest.err >&5
27977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); } >/dev/null; then
27979   if test -s conftest.err; then
27980     ac_cpp_err=$ac_c_preproc_warn_flag
27981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27982   else
27983     ac_cpp_err=
27984   fi
27985 else
27986   ac_cpp_err=yes
27987 fi
27988 if test -z "$ac_cpp_err"; then
27989   ac_header_preproc=yes
27990 else
27991   echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27993
27994   ac_header_preproc=no
27995 fi
27996 rm -f conftest.err conftest.$ac_ext
27997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27998 echo "${ECHO_T}$ac_header_preproc" >&6
27999
28000 # So?  What about this header?
28001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28002   yes:no: )
28003     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28007     ac_header_preproc=yes
28008     ;;
28009   no:yes:* )
28010     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28012     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28013 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28014     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28016     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28017 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28020     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28022     (
28023       cat <<\_ASBOX
28024 ## ------------------------------------------ ##
28025 ## Report this to the AC_PACKAGE_NAME lists.  ##
28026 ## ------------------------------------------ ##
28027 _ASBOX
28028     ) |
28029       sed "s/^/$as_me: WARNING:     /" >&2
28030     ;;
28031 esac
28032 echo "$as_me:$LINENO: checking for $ac_header" >&5
28033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28035   echo $ECHO_N "(cached) $ECHO_C" >&6
28036 else
28037   eval "$as_ac_Header=\$ac_header_preproc"
28038 fi
28039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28041
28042 fi
28043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28044   cat >>confdefs.h <<_ACEOF
28045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28046 _ACEOF
28047
28048 fi
28049
28050 done
28051
28052
28053         if test $ol_enable_local = auto ; then
28054                 ol_enable_local=$ac_cv_header_sys_un_h
28055         elif test $ac_cv_header_sys_un_h = no ; then
28056                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28057 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28058    { (exit 1); exit 1; }; }
28059         fi
28060 fi
28061
28062 ol_link_kbind=no
28063 ol_link_krb5=no
28064 ol_link_krb4=no
28065
28066 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28067         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28068         -o $ol_with_kerberos = k425 ; then
28069
28070
28071 for ac_header in krb5.h
28072 do
28073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28075   echo "$as_me:$LINENO: checking for $ac_header" >&5
28076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28078   echo $ECHO_N "(cached) $ECHO_C" >&6
28079 fi
28080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28082 else
28083   # Is the header compilable?
28084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28086 cat >conftest.$ac_ext <<_ACEOF
28087 /* confdefs.h.  */
28088 _ACEOF
28089 cat confdefs.h >>conftest.$ac_ext
28090 cat >>conftest.$ac_ext <<_ACEOF
28091 /* end confdefs.h.  */
28092 $ac_includes_default
28093 #include <$ac_header>
28094 _ACEOF
28095 rm -f conftest.$ac_objext
28096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28097   (eval $ac_compile) 2>conftest.er1
28098   ac_status=$?
28099   grep -v '^ *+' conftest.er1 >conftest.err
28100   rm -f conftest.er1
28101   cat conftest.err >&5
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); } &&
28104          { ac_try='test -z "$ac_c_werror_flag"
28105                          || test ! -s conftest.err'
28106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28107   (eval $ac_try) 2>&5
28108   ac_status=$?
28109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110   (exit $ac_status); }; } &&
28111          { ac_try='test -s conftest.$ac_objext'
28112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28113   (eval $ac_try) 2>&5
28114   ac_status=$?
28115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116   (exit $ac_status); }; }; then
28117   ac_header_compiler=yes
28118 else
28119   echo "$as_me: failed program was:" >&5
28120 sed 's/^/| /' conftest.$ac_ext >&5
28121
28122 ac_header_compiler=no
28123 fi
28124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28126 echo "${ECHO_T}$ac_header_compiler" >&6
28127
28128 # Is the header present?
28129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28131 cat >conftest.$ac_ext <<_ACEOF
28132 /* confdefs.h.  */
28133 _ACEOF
28134 cat confdefs.h >>conftest.$ac_ext
28135 cat >>conftest.$ac_ext <<_ACEOF
28136 /* end confdefs.h.  */
28137 #include <$ac_header>
28138 _ACEOF
28139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28141   ac_status=$?
28142   grep -v '^ *+' conftest.er1 >conftest.err
28143   rm -f conftest.er1
28144   cat conftest.err >&5
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); } >/dev/null; then
28147   if test -s conftest.err; then
28148     ac_cpp_err=$ac_c_preproc_warn_flag
28149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28150   else
28151     ac_cpp_err=
28152   fi
28153 else
28154   ac_cpp_err=yes
28155 fi
28156 if test -z "$ac_cpp_err"; then
28157   ac_header_preproc=yes
28158 else
28159   echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28161
28162   ac_header_preproc=no
28163 fi
28164 rm -f conftest.err conftest.$ac_ext
28165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28166 echo "${ECHO_T}$ac_header_preproc" >&6
28167
28168 # So?  What about this header?
28169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28170   yes:no: )
28171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28175     ac_header_preproc=yes
28176     ;;
28177   no:yes:* )
28178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28190     (
28191       cat <<\_ASBOX
28192 ## ------------------------------------------ ##
28193 ## Report this to the AC_PACKAGE_NAME lists.  ##
28194 ## ------------------------------------------ ##
28195 _ASBOX
28196     ) |
28197       sed "s/^/$as_me: WARNING:     /" >&2
28198     ;;
28199 esac
28200 echo "$as_me:$LINENO: checking for $ac_header" >&5
28201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28203   echo $ECHO_N "(cached) $ECHO_C" >&6
28204 else
28205   eval "$as_ac_Header=\$ac_header_preproc"
28206 fi
28207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28209
28210 fi
28211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28212   cat >>confdefs.h <<_ACEOF
28213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28214 _ACEOF
28215
28216 fi
28217
28218 done
28219
28220
28221         if test $ac_cv_header_krb5_h = yes ; then
28222
28223 for ac_header in heim_err.h
28224 do
28225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28227   echo "$as_me:$LINENO: checking for $ac_header" >&5
28228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28230   echo $ECHO_N "(cached) $ECHO_C" >&6
28231 fi
28232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28234 else
28235   # Is the header compilable?
28236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28238 cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h.  */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h.  */
28244 $ac_includes_default
28245 #include <$ac_header>
28246 _ACEOF
28247 rm -f conftest.$ac_objext
28248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28249   (eval $ac_compile) 2>conftest.er1
28250   ac_status=$?
28251   grep -v '^ *+' conftest.er1 >conftest.err
28252   rm -f conftest.er1
28253   cat conftest.err >&5
28254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255   (exit $ac_status); } &&
28256          { ac_try='test -z "$ac_c_werror_flag"
28257                          || test ! -s conftest.err'
28258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259   (eval $ac_try) 2>&5
28260   ac_status=$?
28261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262   (exit $ac_status); }; } &&
28263          { ac_try='test -s conftest.$ac_objext'
28264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265   (eval $ac_try) 2>&5
28266   ac_status=$?
28267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268   (exit $ac_status); }; }; then
28269   ac_header_compiler=yes
28270 else
28271   echo "$as_me: failed program was:" >&5
28272 sed 's/^/| /' conftest.$ac_ext >&5
28273
28274 ac_header_compiler=no
28275 fi
28276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28278 echo "${ECHO_T}$ac_header_compiler" >&6
28279
28280 # Is the header present?
28281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28283 cat >conftest.$ac_ext <<_ACEOF
28284 /* confdefs.h.  */
28285 _ACEOF
28286 cat confdefs.h >>conftest.$ac_ext
28287 cat >>conftest.$ac_ext <<_ACEOF
28288 /* end confdefs.h.  */
28289 #include <$ac_header>
28290 _ACEOF
28291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28293   ac_status=$?
28294   grep -v '^ *+' conftest.er1 >conftest.err
28295   rm -f conftest.er1
28296   cat conftest.err >&5
28297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298   (exit $ac_status); } >/dev/null; then
28299   if test -s conftest.err; then
28300     ac_cpp_err=$ac_c_preproc_warn_flag
28301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28302   else
28303     ac_cpp_err=
28304   fi
28305 else
28306   ac_cpp_err=yes
28307 fi
28308 if test -z "$ac_cpp_err"; then
28309   ac_header_preproc=yes
28310 else
28311   echo "$as_me: failed program was:" >&5
28312 sed 's/^/| /' conftest.$ac_ext >&5
28313
28314   ac_header_preproc=no
28315 fi
28316 rm -f conftest.err conftest.$ac_ext
28317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28318 echo "${ECHO_T}$ac_header_preproc" >&6
28319
28320 # So?  What about this header?
28321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28322   yes:no: )
28323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28327     ac_header_preproc=yes
28328     ;;
28329   no:yes:* )
28330     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28332     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28333 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28334     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28336     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28337 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28340     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28342     (
28343       cat <<\_ASBOX
28344 ## ------------------------------------------ ##
28345 ## Report this to the AC_PACKAGE_NAME lists.  ##
28346 ## ------------------------------------------ ##
28347 _ASBOX
28348     ) |
28349       sed "s/^/$as_me: WARNING:     /" >&2
28350     ;;
28351 esac
28352 echo "$as_me:$LINENO: checking for $ac_header" >&5
28353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28355   echo $ECHO_N "(cached) $ECHO_C" >&6
28356 else
28357   eval "$as_ac_Header=\$ac_header_preproc"
28358 fi
28359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28361
28362 fi
28363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28364   cat >>confdefs.h <<_ACEOF
28365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28366 _ACEOF
28367
28368 fi
28369
28370 done
28371
28372                 if test $ac_cv_header_heim_err_h = yes ; then
28373                         krb5_impl=heimdal
28374                 else
28375                         krb5_impl=mit
28376                 fi
28377
28378                 if test $krb5_impl = mit; then
28379                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28380 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28381 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28382   echo $ECHO_N "(cached) $ECHO_C" >&6
28383 else
28384   ac_check_lib_save_LIBS=$LIBS
28385 LIBS="-lk5crypto  $LIBS"
28386 cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392
28393
28394 int
28395 main ()
28396 {
28397 main ();
28398   ;
28399   return 0;
28400 }
28401 _ACEOF
28402 rm -f conftest.$ac_objext conftest$ac_exeext
28403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28404   (eval $ac_link) 2>conftest.er1
28405   ac_status=$?
28406   grep -v '^ *+' conftest.er1 >conftest.err
28407   rm -f conftest.er1
28408   cat conftest.err >&5
28409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410   (exit $ac_status); } &&
28411          { ac_try='test -z "$ac_c_werror_flag"
28412                          || test ! -s conftest.err'
28413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414   (eval $ac_try) 2>&5
28415   ac_status=$?
28416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417   (exit $ac_status); }; } &&
28418          { ac_try='test -s conftest$ac_exeext'
28419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28420   (eval $ac_try) 2>&5
28421   ac_status=$?
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); }; }; then
28424   ac_cv_lib_k5crypto_main=yes
28425 else
28426   echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28428
28429 ac_cv_lib_k5crypto_main=no
28430 fi
28431 rm -f conftest.err conftest.$ac_objext \
28432       conftest$ac_exeext conftest.$ac_ext
28433 LIBS=$ac_check_lib_save_LIBS
28434 fi
28435 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28436 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28437 if test $ac_cv_lib_k5crypto_main = yes; then
28438   krb5crypto=k5crypto
28439 else
28440   krb5crypto=crypto
28441 fi
28442
28443
28444                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28445 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28446 if test "${ac_cv_lib_krb5_main+set}" = set; then
28447   echo $ECHO_N "(cached) $ECHO_C" >&6
28448 else
28449   ac_check_lib_save_LIBS=$LIBS
28450 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28451 cat >conftest.$ac_ext <<_ACEOF
28452 /* confdefs.h.  */
28453 _ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h.  */
28457
28458
28459 int
28460 main ()
28461 {
28462 main ();
28463   ;
28464   return 0;
28465 }
28466 _ACEOF
28467 rm -f conftest.$ac_objext conftest$ac_exeext
28468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28469   (eval $ac_link) 2>conftest.er1
28470   ac_status=$?
28471   grep -v '^ *+' conftest.er1 >conftest.err
28472   rm -f conftest.er1
28473   cat conftest.err >&5
28474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475   (exit $ac_status); } &&
28476          { ac_try='test -z "$ac_c_werror_flag"
28477                          || test ! -s conftest.err'
28478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479   (eval $ac_try) 2>&5
28480   ac_status=$?
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); }; } &&
28483          { ac_try='test -s conftest$ac_exeext'
28484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485   (eval $ac_try) 2>&5
28486   ac_status=$?
28487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488   (exit $ac_status); }; }; then
28489   ac_cv_lib_krb5_main=yes
28490 else
28491   echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28493
28494 ac_cv_lib_krb5_main=no
28495 fi
28496 rm -f conftest.err conftest.$ac_objext \
28497       conftest$ac_exeext conftest.$ac_ext
28498 LIBS=$ac_check_lib_save_LIBS
28499 fi
28500 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28501 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28502 if test $ac_cv_lib_krb5_main = yes; then
28503   have_krb5=yes
28504                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28505 else
28506   have_krb5=no
28507 fi
28508
28509
28510                 elif test $krb5_impl = heimdal; then
28511                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28512 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28513 if test "${ac_cv_lib_des_main+set}" = set; then
28514   echo $ECHO_N "(cached) $ECHO_C" >&6
28515 else
28516   ac_check_lib_save_LIBS=$LIBS
28517 LIBS="-ldes  $LIBS"
28518 cat >conftest.$ac_ext <<_ACEOF
28519 /* confdefs.h.  */
28520 _ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h.  */
28524
28525
28526 int
28527 main ()
28528 {
28529 main ();
28530   ;
28531   return 0;
28532 }
28533 _ACEOF
28534 rm -f conftest.$ac_objext conftest$ac_exeext
28535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28536   (eval $ac_link) 2>conftest.er1
28537   ac_status=$?
28538   grep -v '^ *+' conftest.er1 >conftest.err
28539   rm -f conftest.er1
28540   cat conftest.err >&5
28541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542   (exit $ac_status); } &&
28543          { ac_try='test -z "$ac_c_werror_flag"
28544                          || test ! -s conftest.err'
28545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28546   (eval $ac_try) 2>&5
28547   ac_status=$?
28548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549   (exit $ac_status); }; } &&
28550          { ac_try='test -s conftest$ac_exeext'
28551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552   (eval $ac_try) 2>&5
28553   ac_status=$?
28554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555   (exit $ac_status); }; }; then
28556   ac_cv_lib_des_main=yes
28557 else
28558   echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28560
28561 ac_cv_lib_des_main=no
28562 fi
28563 rm -f conftest.err conftest.$ac_objext \
28564       conftest$ac_exeext conftest.$ac_ext
28565 LIBS=$ac_check_lib_save_LIBS
28566 fi
28567 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28568 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28569 if test $ac_cv_lib_des_main = yes; then
28570   krb5crypto=des
28571 else
28572   krb5crypto=crypto
28573 fi
28574
28575
28576                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28577 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28578 if test "${ac_cv_lib_krb5_main+set}" = set; then
28579   echo $ECHO_N "(cached) $ECHO_C" >&6
28580 else
28581   ac_check_lib_save_LIBS=$LIBS
28582 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28583 cat >conftest.$ac_ext <<_ACEOF
28584 /* confdefs.h.  */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h.  */
28589
28590
28591 int
28592 main ()
28593 {
28594 main ();
28595   ;
28596   return 0;
28597 }
28598 _ACEOF
28599 rm -f conftest.$ac_objext conftest$ac_exeext
28600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28601   (eval $ac_link) 2>conftest.er1
28602   ac_status=$?
28603   grep -v '^ *+' conftest.er1 >conftest.err
28604   rm -f conftest.er1
28605   cat conftest.err >&5
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); } &&
28608          { ac_try='test -z "$ac_c_werror_flag"
28609                          || test ! -s conftest.err'
28610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611   (eval $ac_try) 2>&5
28612   ac_status=$?
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); }; } &&
28615          { ac_try='test -s conftest$ac_exeext'
28616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617   (eval $ac_try) 2>&5
28618   ac_status=$?
28619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620   (exit $ac_status); }; }; then
28621   ac_cv_lib_krb5_main=yes
28622 else
28623   echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28625
28626 ac_cv_lib_krb5_main=no
28627 fi
28628 rm -f conftest.err conftest.$ac_objext \
28629       conftest$ac_exeext conftest.$ac_ext
28630 LIBS=$ac_check_lib_save_LIBS
28631 fi
28632 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28633 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28634 if test $ac_cv_lib_krb5_main = yes; then
28635   have_krb5=yes
28636                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28637 else
28638   have_krb5=no
28639 fi
28640
28641
28642
28643 cat >>confdefs.h <<\_ACEOF
28644 #define HAVE_HEIMDAL_KERBEROS 1
28645 _ACEOF
28646
28647
28648                 else
28649                         have_krb5=no
28650                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28651 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28652                 fi
28653
28654                 if test $have_krb5 = yes ; then
28655                         ol_link_krb5=yes
28656
28657
28658 cat >>confdefs.h <<\_ACEOF
28659 #define HAVE_KRB5 1
28660 _ACEOF
28661
28662
28663                         if test $ol_with_kerberos = k5only ; then
28664                                 ol_with_kerberos=found
28665                         fi
28666
28667                 elif test $ol_with_kerberos != auto ; then
28668                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28669 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28670    { (exit 1); exit 1; }; }
28671                 fi
28672
28673         fi
28674 fi
28675
28676 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28677         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28678
28679
28680
28681 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28682 do
28683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28685   echo "$as_me:$LINENO: checking for $ac_header" >&5
28686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28688   echo $ECHO_N "(cached) $ECHO_C" >&6
28689 fi
28690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28692 else
28693   # Is the header compilable?
28694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28696 cat >conftest.$ac_ext <<_ACEOF
28697 /* confdefs.h.  */
28698 _ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h.  */
28702 $ac_includes_default
28703 #include <$ac_header>
28704 _ACEOF
28705 rm -f conftest.$ac_objext
28706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28707   (eval $ac_compile) 2>conftest.er1
28708   ac_status=$?
28709   grep -v '^ *+' conftest.er1 >conftest.err
28710   rm -f conftest.er1
28711   cat conftest.err >&5
28712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713   (exit $ac_status); } &&
28714          { ac_try='test -z "$ac_c_werror_flag"
28715                          || test ! -s conftest.err'
28716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717   (eval $ac_try) 2>&5
28718   ac_status=$?
28719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); }; } &&
28721          { ac_try='test -s conftest.$ac_objext'
28722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723   (eval $ac_try) 2>&5
28724   ac_status=$?
28725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726   (exit $ac_status); }; }; then
28727   ac_header_compiler=yes
28728 else
28729   echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28731
28732 ac_header_compiler=no
28733 fi
28734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28736 echo "${ECHO_T}$ac_header_compiler" >&6
28737
28738 # Is the header present?
28739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28741 cat >conftest.$ac_ext <<_ACEOF
28742 /* confdefs.h.  */
28743 _ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h.  */
28747 #include <$ac_header>
28748 _ACEOF
28749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28751   ac_status=$?
28752   grep -v '^ *+' conftest.er1 >conftest.err
28753   rm -f conftest.er1
28754   cat conftest.err >&5
28755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756   (exit $ac_status); } >/dev/null; then
28757   if test -s conftest.err; then
28758     ac_cpp_err=$ac_c_preproc_warn_flag
28759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28760   else
28761     ac_cpp_err=
28762   fi
28763 else
28764   ac_cpp_err=yes
28765 fi
28766 if test -z "$ac_cpp_err"; then
28767   ac_header_preproc=yes
28768 else
28769   echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28771
28772   ac_header_preproc=no
28773 fi
28774 rm -f conftest.err conftest.$ac_ext
28775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28776 echo "${ECHO_T}$ac_header_preproc" >&6
28777
28778 # So?  What about this header?
28779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28780   yes:no: )
28781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28785     ac_header_preproc=yes
28786     ;;
28787   no:yes:* )
28788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28800     (
28801       cat <<\_ASBOX
28802 ## ------------------------------------------ ##
28803 ## Report this to the AC_PACKAGE_NAME lists.  ##
28804 ## ------------------------------------------ ##
28805 _ASBOX
28806     ) |
28807       sed "s/^/$as_me: WARNING:     /" >&2
28808     ;;
28809 esac
28810 echo "$as_me:$LINENO: checking for $ac_header" >&5
28811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28813   echo $ECHO_N "(cached) $ECHO_C" >&6
28814 else
28815   eval "$as_ac_Header=\$ac_header_preproc"
28816 fi
28817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28819
28820 fi
28821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28822   cat >>confdefs.h <<_ACEOF
28823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28824 _ACEOF
28825
28826 fi
28827
28828 done
28829
28830
28831         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28832                 if test $krb5_impl = mit; then
28833                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28834 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28835 if test "${ac_cv_lib_krb4_main+set}" = set; then
28836   echo $ECHO_N "(cached) $ECHO_C" >&6
28837 else
28838   ac_check_lib_save_LIBS=$LIBS
28839 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28840 cat >conftest.$ac_ext <<_ACEOF
28841 /* confdefs.h.  */
28842 _ACEOF
28843 cat confdefs.h >>conftest.$ac_ext
28844 cat >>conftest.$ac_ext <<_ACEOF
28845 /* end confdefs.h.  */
28846
28847
28848 int
28849 main ()
28850 {
28851 main ();
28852   ;
28853   return 0;
28854 }
28855 _ACEOF
28856 rm -f conftest.$ac_objext conftest$ac_exeext
28857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28858   (eval $ac_link) 2>conftest.er1
28859   ac_status=$?
28860   grep -v '^ *+' conftest.er1 >conftest.err
28861   rm -f conftest.er1
28862   cat conftest.err >&5
28863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864   (exit $ac_status); } &&
28865          { ac_try='test -z "$ac_c_werror_flag"
28866                          || test ! -s conftest.err'
28867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28868   (eval $ac_try) 2>&5
28869   ac_status=$?
28870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871   (exit $ac_status); }; } &&
28872          { ac_try='test -s conftest$ac_exeext'
28873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874   (eval $ac_try) 2>&5
28875   ac_status=$?
28876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); }; }; then
28878   ac_cv_lib_krb4_main=yes
28879 else
28880   echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28882
28883 ac_cv_lib_krb4_main=no
28884 fi
28885 rm -f conftest.err conftest.$ac_objext \
28886       conftest$ac_exeext conftest.$ac_ext
28887 LIBS=$ac_check_lib_save_LIBS
28888 fi
28889 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28890 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28891 if test $ac_cv_lib_krb4_main = yes; then
28892   have_k425=yes
28893                                 KRB4_LIBS="-lkrb4 -ldes425"
28894 else
28895   have_k425=no
28896 fi
28897
28898
28899                 elif test $krb5_impl = heimdal; then
28900                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28901 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28902 if test "${ac_cv_lib_krb4_main+set}" = set; then
28903   echo $ECHO_N "(cached) $ECHO_C" >&6
28904 else
28905   ac_check_lib_save_LIBS=$LIBS
28906 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28907 cat >conftest.$ac_ext <<_ACEOF
28908 /* confdefs.h.  */
28909 _ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h.  */
28913
28914
28915 int
28916 main ()
28917 {
28918 main ();
28919   ;
28920   return 0;
28921 }
28922 _ACEOF
28923 rm -f conftest.$ac_objext conftest$ac_exeext
28924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28925   (eval $ac_link) 2>conftest.er1
28926   ac_status=$?
28927   grep -v '^ *+' conftest.er1 >conftest.err
28928   rm -f conftest.er1
28929   cat conftest.err >&5
28930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931   (exit $ac_status); } &&
28932          { ac_try='test -z "$ac_c_werror_flag"
28933                          || test ! -s conftest.err'
28934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935   (eval $ac_try) 2>&5
28936   ac_status=$?
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); }; } &&
28939          { ac_try='test -s conftest$ac_exeext'
28940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941   (eval $ac_try) 2>&5
28942   ac_status=$?
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); }; }; then
28945   ac_cv_lib_krb4_main=yes
28946 else
28947   echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28949
28950 ac_cv_lib_krb4_main=no
28951 fi
28952 rm -f conftest.err conftest.$ac_objext \
28953       conftest$ac_exeext conftest.$ac_ext
28954 LIBS=$ac_check_lib_save_LIBS
28955 fi
28956 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28957 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28958 if test $ac_cv_lib_krb4_main = yes; then
28959   have_k425=yes
28960                                 KRB4_LIBS="-lkrb4"
28961 else
28962   have_k425=no
28963 fi
28964
28965
28966                 else
28967                         have_425=no
28968                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28969 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28970                 fi
28971
28972                 if test $have_k425 = yes ; then
28973                         ol_with_kerberos=found
28974                         ol_link_krb4=yes
28975
28976
28977 cat >>confdefs.h <<\_ACEOF
28978 #define HAVE_KRB425 1
28979 _ACEOF
28980
28981
28982 cat >>confdefs.h <<\_ACEOF
28983 #define HAVE_KRB4 1
28984 _ACEOF
28985
28986
28987                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28988 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28989 if test "${ol_cv_var_des_debug+set}" = set; then
28990   echo $ECHO_N "(cached) $ECHO_C" >&6
28991 else
28992
28993                                                                 save_LIBS="$LIBS"
28994                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28995                                 cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h.  */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h.  */
29001
29002 #include <kerberosIV/krb.h>
29003 #include <kerberosIV/des.h>
29004 extern int des_debug;
29005
29006 int
29007 main ()
29008 {
29009
29010 des_debug = 1;
29011
29012   ;
29013   return 0;
29014 }
29015 _ACEOF
29016 rm -f conftest.$ac_objext conftest$ac_exeext
29017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29018   (eval $ac_link) 2>conftest.er1
29019   ac_status=$?
29020   grep -v '^ *+' conftest.er1 >conftest.err
29021   rm -f conftest.er1
29022   cat conftest.err >&5
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); } &&
29025          { ac_try='test -z "$ac_c_werror_flag"
29026                          || test ! -s conftest.err'
29027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028   (eval $ac_try) 2>&5
29029   ac_status=$?
29030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031   (exit $ac_status); }; } &&
29032          { ac_try='test -s conftest$ac_exeext'
29033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034   (eval $ac_try) 2>&5
29035   ac_status=$?
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); }; }; then
29038   ol_cv_var_des_debug=yes
29039 else
29040   echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29042
29043 ol_cv_var_des_debug=no
29044 fi
29045 rm -f conftest.err conftest.$ac_objext \
29046       conftest$ac_exeext conftest.$ac_ext
29047                                                                 LIBS="$save_LIBS"
29048
29049 fi
29050 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29051 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29052
29053                         if test $ol_cv_var_des_debug = yes ; then
29054
29055 cat >>confdefs.h <<\_ACEOF
29056 #define HAVE_DES_DEBUG 1
29057 _ACEOF
29058
29059                         fi
29060
29061                         LIBS="$save_LIBS"
29062                 fi
29063         fi
29064 fi
29065
29066 if test $ol_link_krb5 = yes ; then
29067         ol_with_kerberos=found
29068 fi
29069
29070 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29071         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29072
29073
29074
29075
29076 for ac_header in krb.h des.h krb-archaeology.h
29077 do
29078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29080   echo "$as_me:$LINENO: checking for $ac_header" >&5
29081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29083   echo $ECHO_N "(cached) $ECHO_C" >&6
29084 fi
29085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29087 else
29088   # Is the header compilable?
29089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29091 cat >conftest.$ac_ext <<_ACEOF
29092 /* confdefs.h.  */
29093 _ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h.  */
29097 $ac_includes_default
29098 #include <$ac_header>
29099 _ACEOF
29100 rm -f conftest.$ac_objext
29101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29102   (eval $ac_compile) 2>conftest.er1
29103   ac_status=$?
29104   grep -v '^ *+' conftest.er1 >conftest.err
29105   rm -f conftest.er1
29106   cat conftest.err >&5
29107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108   (exit $ac_status); } &&
29109          { ac_try='test -z "$ac_c_werror_flag"
29110                          || test ! -s conftest.err'
29111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112   (eval $ac_try) 2>&5
29113   ac_status=$?
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); }; } &&
29116          { ac_try='test -s conftest.$ac_objext'
29117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118   (eval $ac_try) 2>&5
29119   ac_status=$?
29120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121   (exit $ac_status); }; }; then
29122   ac_header_compiler=yes
29123 else
29124   echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29126
29127 ac_header_compiler=no
29128 fi
29129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29131 echo "${ECHO_T}$ac_header_compiler" >&6
29132
29133 # Is the header present?
29134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29136 cat >conftest.$ac_ext <<_ACEOF
29137 /* confdefs.h.  */
29138 _ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h.  */
29142 #include <$ac_header>
29143 _ACEOF
29144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29146   ac_status=$?
29147   grep -v '^ *+' conftest.er1 >conftest.err
29148   rm -f conftest.er1
29149   cat conftest.err >&5
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } >/dev/null; then
29152   if test -s conftest.err; then
29153     ac_cpp_err=$ac_c_preproc_warn_flag
29154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29155   else
29156     ac_cpp_err=
29157   fi
29158 else
29159   ac_cpp_err=yes
29160 fi
29161 if test -z "$ac_cpp_err"; then
29162   ac_header_preproc=yes
29163 else
29164   echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29166
29167   ac_header_preproc=no
29168 fi
29169 rm -f conftest.err conftest.$ac_ext
29170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29171 echo "${ECHO_T}$ac_header_preproc" >&6
29172
29173 # So?  What about this header?
29174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29175   yes:no: )
29176     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29180     ac_header_preproc=yes
29181     ;;
29182   no:yes:* )
29183     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29185     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29186 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29187     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29189     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29190 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29193     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29195     (
29196       cat <<\_ASBOX
29197 ## ------------------------------------------ ##
29198 ## Report this to the AC_PACKAGE_NAME lists.  ##
29199 ## ------------------------------------------ ##
29200 _ASBOX
29201     ) |
29202       sed "s/^/$as_me: WARNING:     /" >&2
29203     ;;
29204 esac
29205 echo "$as_me:$LINENO: checking for $ac_header" >&5
29206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29208   echo $ECHO_N "(cached) $ECHO_C" >&6
29209 else
29210   eval "$as_ac_Header=\$ac_header_preproc"
29211 fi
29212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29214
29215 fi
29216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29217   cat >>confdefs.h <<_ACEOF
29218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29219 _ACEOF
29220
29221 fi
29222
29223 done
29224
29225
29226         if test $ac_cv_header_krb_h = yes ; then
29227                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29228 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29229 if test "${ac_cv_lib_krb_main+set}" = set; then
29230   echo $ECHO_N "(cached) $ECHO_C" >&6
29231 else
29232   ac_check_lib_save_LIBS=$LIBS
29233 LIBS="-lkrb -ldes $LIBS"
29234 cat >conftest.$ac_ext <<_ACEOF
29235 /* confdefs.h.  */
29236 _ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h.  */
29240
29241
29242 int
29243 main ()
29244 {
29245 main ();
29246   ;
29247   return 0;
29248 }
29249 _ACEOF
29250 rm -f conftest.$ac_objext conftest$ac_exeext
29251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29252   (eval $ac_link) 2>conftest.er1
29253   ac_status=$?
29254   grep -v '^ *+' conftest.er1 >conftest.err
29255   rm -f conftest.er1
29256   cat conftest.err >&5
29257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258   (exit $ac_status); } &&
29259          { ac_try='test -z "$ac_c_werror_flag"
29260                          || test ! -s conftest.err'
29261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262   (eval $ac_try) 2>&5
29263   ac_status=$?
29264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265   (exit $ac_status); }; } &&
29266          { ac_try='test -s conftest$ac_exeext'
29267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29268   (eval $ac_try) 2>&5
29269   ac_status=$?
29270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271   (exit $ac_status); }; }; then
29272   ac_cv_lib_krb_main=yes
29273 else
29274   echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29276
29277 ac_cv_lib_krb_main=no
29278 fi
29279 rm -f conftest.err conftest.$ac_objext \
29280       conftest$ac_exeext conftest.$ac_ext
29281 LIBS=$ac_check_lib_save_LIBS
29282 fi
29283 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29284 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29285 if test $ac_cv_lib_krb_main = yes; then
29286   have_k4=yes
29287 else
29288   have_k4=no
29289 fi
29290
29291
29292                 if test $have_k4 = yes ; then
29293                         ol_with_kerberos=found
29294                         ol_link_krb4=yes
29295
29296
29297 cat >>confdefs.h <<\_ACEOF
29298 #define HAVE_KRB4 1
29299 _ACEOF
29300
29301
29302                         KRB4_LIBS="-lkrb -ldes"
29303
29304                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29305
29306 cat >>confdefs.h <<\_ACEOF
29307 #define HAVE_KTH_KERBEROS 1
29308 _ACEOF
29309
29310                         fi
29311                 fi
29312         fi
29313 fi
29314
29315 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29316         ol_link_kbind=yes
29317
29318 elif test $ol_enable_kbind = yes ; then
29319         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29320 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29321    { (exit 1); exit 1; }; }
29322 fi
29323
29324 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29325
29326 cat >>confdefs.h <<\_ACEOF
29327 #define HAVE_KERBEROS 1
29328 _ACEOF
29329
29330
29331 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29332         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29333 echo "$as_me: error: Kerberos detection failed" >&2;}
29334    { (exit 1); exit 1; }; }
29335 fi
29336
29337
29338 ol_link_tls=no
29339 if test $ol_with_tls != no ; then
29340
29341
29342 for ac_header in openssl/ssl.h ssl.h
29343 do
29344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29346   echo "$as_me:$LINENO: checking for $ac_header" >&5
29347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29349   echo $ECHO_N "(cached) $ECHO_C" >&6
29350 fi
29351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29353 else
29354   # Is the header compilable?
29355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29357 cat >conftest.$ac_ext <<_ACEOF
29358 /* confdefs.h.  */
29359 _ACEOF
29360 cat confdefs.h >>conftest.$ac_ext
29361 cat >>conftest.$ac_ext <<_ACEOF
29362 /* end confdefs.h.  */
29363 $ac_includes_default
29364 #include <$ac_header>
29365 _ACEOF
29366 rm -f conftest.$ac_objext
29367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29368   (eval $ac_compile) 2>conftest.er1
29369   ac_status=$?
29370   grep -v '^ *+' conftest.er1 >conftest.err
29371   rm -f conftest.er1
29372   cat conftest.err >&5
29373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); } &&
29375          { ac_try='test -z "$ac_c_werror_flag"
29376                          || test ! -s conftest.err'
29377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29378   (eval $ac_try) 2>&5
29379   ac_status=$?
29380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381   (exit $ac_status); }; } &&
29382          { ac_try='test -s conftest.$ac_objext'
29383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29384   (eval $ac_try) 2>&5
29385   ac_status=$?
29386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387   (exit $ac_status); }; }; then
29388   ac_header_compiler=yes
29389 else
29390   echo "$as_me: failed program was:" >&5
29391 sed 's/^/| /' conftest.$ac_ext >&5
29392
29393 ac_header_compiler=no
29394 fi
29395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29397 echo "${ECHO_T}$ac_header_compiler" >&6
29398
29399 # Is the header present?
29400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29402 cat >conftest.$ac_ext <<_ACEOF
29403 /* confdefs.h.  */
29404 _ACEOF
29405 cat confdefs.h >>conftest.$ac_ext
29406 cat >>conftest.$ac_ext <<_ACEOF
29407 /* end confdefs.h.  */
29408 #include <$ac_header>
29409 _ACEOF
29410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29412   ac_status=$?
29413   grep -v '^ *+' conftest.er1 >conftest.err
29414   rm -f conftest.er1
29415   cat conftest.err >&5
29416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417   (exit $ac_status); } >/dev/null; then
29418   if test -s conftest.err; then
29419     ac_cpp_err=$ac_c_preproc_warn_flag
29420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29421   else
29422     ac_cpp_err=
29423   fi
29424 else
29425   ac_cpp_err=yes
29426 fi
29427 if test -z "$ac_cpp_err"; then
29428   ac_header_preproc=yes
29429 else
29430   echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29432
29433   ac_header_preproc=no
29434 fi
29435 rm -f conftest.err conftest.$ac_ext
29436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29437 echo "${ECHO_T}$ac_header_preproc" >&6
29438
29439 # So?  What about this header?
29440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29441   yes:no: )
29442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29446     ac_header_preproc=yes
29447     ;;
29448   no:yes:* )
29449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29461     (
29462       cat <<\_ASBOX
29463 ## ------------------------------------------ ##
29464 ## Report this to the AC_PACKAGE_NAME lists.  ##
29465 ## ------------------------------------------ ##
29466 _ASBOX
29467     ) |
29468       sed "s/^/$as_me: WARNING:     /" >&2
29469     ;;
29470 esac
29471 echo "$as_me:$LINENO: checking for $ac_header" >&5
29472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29474   echo $ECHO_N "(cached) $ECHO_C" >&6
29475 else
29476   eval "$as_ac_Header=\$ac_header_preproc"
29477 fi
29478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29480
29481 fi
29482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29483   cat >>confdefs.h <<_ACEOF
29484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29485 _ACEOF
29486
29487 fi
29488
29489 done
29490
29491
29492         if test $ac_cv_header_openssl_ssl_h = yes \
29493                 -o $ac_cv_header_ssl_h = yes ; then
29494                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29495 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29496 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29497   echo $ECHO_N "(cached) $ECHO_C" >&6
29498 else
29499   ac_check_lib_save_LIBS=$LIBS
29500 LIBS="-lssl -lcrypto $LIBS"
29501 cat >conftest.$ac_ext <<_ACEOF
29502 /* confdefs.h.  */
29503 _ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h.  */
29507
29508 /* Override any gcc2 internal prototype to avoid an error.  */
29509 #ifdef __cplusplus
29510 extern "C"
29511 #endif
29512 /* We use char because int might match the return type of a gcc2
29513    builtin and then its argument prototype would still apply.  */
29514 char SSLeay_add_ssl_algorithms ();
29515 int
29516 main ()
29517 {
29518 SSLeay_add_ssl_algorithms ();
29519   ;
29520   return 0;
29521 }
29522 _ACEOF
29523 rm -f conftest.$ac_objext conftest$ac_exeext
29524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29525   (eval $ac_link) 2>conftest.er1
29526   ac_status=$?
29527   grep -v '^ *+' conftest.er1 >conftest.err
29528   rm -f conftest.er1
29529   cat conftest.err >&5
29530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531   (exit $ac_status); } &&
29532          { ac_try='test -z "$ac_c_werror_flag"
29533                          || test ! -s conftest.err'
29534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535   (eval $ac_try) 2>&5
29536   ac_status=$?
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); }; } &&
29539          { ac_try='test -s conftest$ac_exeext'
29540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541   (eval $ac_try) 2>&5
29542   ac_status=$?
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); }; }; then
29545   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29546 else
29547   echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29549
29550 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29551 fi
29552 rm -f conftest.err conftest.$ac_objext \
29553       conftest$ac_exeext conftest.$ac_ext
29554 LIBS=$ac_check_lib_save_LIBS
29555 fi
29556 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29557 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29558 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29559   have_ssleay=yes
29560                         need_rsaref=no
29561 else
29562   have_ssleay=no
29563 fi
29564
29565
29566                 if test $have_ssleay = no ; then
29567                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29568 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29569 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29570   echo $ECHO_N "(cached) $ECHO_C" >&6
29571 else
29572   ac_check_lib_save_LIBS=$LIBS
29573 LIBS="-lssl -lcrypto $LIBS"
29574 cat >conftest.$ac_ext <<_ACEOF
29575 /* confdefs.h.  */
29576 _ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h.  */
29580
29581 /* Override any gcc2 internal prototype to avoid an error.  */
29582 #ifdef __cplusplus
29583 extern "C"
29584 #endif
29585 /* We use char because int might match the return type of a gcc2
29586    builtin and then its argument prototype would still apply.  */
29587 char SSL_library_init ();
29588 int
29589 main ()
29590 {
29591 SSL_library_init ();
29592   ;
29593   return 0;
29594 }
29595 _ACEOF
29596 rm -f conftest.$ac_objext conftest$ac_exeext
29597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29598   (eval $ac_link) 2>conftest.er1
29599   ac_status=$?
29600   grep -v '^ *+' conftest.er1 >conftest.err
29601   rm -f conftest.er1
29602   cat conftest.err >&5
29603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604   (exit $ac_status); } &&
29605          { ac_try='test -z "$ac_c_werror_flag"
29606                          || test ! -s conftest.err'
29607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29608   (eval $ac_try) 2>&5
29609   ac_status=$?
29610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611   (exit $ac_status); }; } &&
29612          { ac_try='test -s conftest$ac_exeext'
29613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29614   (eval $ac_try) 2>&5
29615   ac_status=$?
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); }; }; then
29618   ac_cv_lib_ssl_SSL_library_init=yes
29619 else
29620   echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29622
29623 ac_cv_lib_ssl_SSL_library_init=no
29624 fi
29625 rm -f conftest.err conftest.$ac_objext \
29626       conftest$ac_exeext conftest.$ac_ext
29627 LIBS=$ac_check_lib_save_LIBS
29628 fi
29629 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29630 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29631 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29632   have_ssleay=yes
29633                                 need_rsaref=no
29634 else
29635   have_ssleay=no
29636 fi
29637
29638                 fi
29639
29640                 if test $have_ssleay = no ; then
29641                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29642 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29643 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29644   echo $ECHO_N "(cached) $ECHO_C" >&6
29645 else
29646   ac_check_lib_save_LIBS=$LIBS
29647 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29648 cat >conftest.$ac_ext <<_ACEOF
29649 /* confdefs.h.  */
29650 _ACEOF
29651 cat confdefs.h >>conftest.$ac_ext
29652 cat >>conftest.$ac_ext <<_ACEOF
29653 /* end confdefs.h.  */
29654
29655 /* Override any gcc2 internal prototype to avoid an error.  */
29656 #ifdef __cplusplus
29657 extern "C"
29658 #endif
29659 /* We use char because int might match the return type of a gcc2
29660    builtin and then its argument prototype would still apply.  */
29661 char ssl3_accept ();
29662 int
29663 main ()
29664 {
29665 ssl3_accept ();
29666   ;
29667   return 0;
29668 }
29669 _ACEOF
29670 rm -f conftest.$ac_objext conftest$ac_exeext
29671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29672   (eval $ac_link) 2>conftest.er1
29673   ac_status=$?
29674   grep -v '^ *+' conftest.er1 >conftest.err
29675   rm -f conftest.er1
29676   cat conftest.err >&5
29677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678   (exit $ac_status); } &&
29679          { ac_try='test -z "$ac_c_werror_flag"
29680                          || test ! -s conftest.err'
29681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682   (eval $ac_try) 2>&5
29683   ac_status=$?
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); }; } &&
29686          { ac_try='test -s conftest$ac_exeext'
29687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688   (eval $ac_try) 2>&5
29689   ac_status=$?
29690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691   (exit $ac_status); }; }; then
29692   ac_cv_lib_ssl_ssl3_accept=yes
29693 else
29694   echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29696
29697 ac_cv_lib_ssl_ssl3_accept=no
29698 fi
29699 rm -f conftest.err conftest.$ac_objext \
29700       conftest$ac_exeext conftest.$ac_ext
29701 LIBS=$ac_check_lib_save_LIBS
29702 fi
29703 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29704 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29705 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29706   have_ssleay=yes
29707                                 need_rsaref=yes
29708 else
29709   have_ssleay=no
29710 fi
29711
29712                 fi
29713
29714                 if test $have_ssleay = yes ; then
29715                         ol_with_tls=found
29716                         ol_link_tls=yes
29717
29718
29719 cat >>confdefs.h <<\_ACEOF
29720 #define HAVE_SSLEAY 1
29721 _ACEOF
29722
29723
29724                         if test $need_rsaref = yes; then
29725
29726 cat >>confdefs.h <<\_ACEOF
29727 #define HAVE_RSAREF 1
29728 _ACEOF
29729
29730
29731                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29732                         else
29733                                 TLS_LIBS="-lssl -lcrypto"
29734                         fi
29735                 fi
29736                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29737 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29738 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29739   echo $ECHO_N "(cached) $ECHO_C" >&6
29740 else
29741
29742         cat >conftest.$ac_ext <<_ACEOF
29743 /* confdefs.h.  */
29744 _ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h.  */
29748
29749 #ifdef HAVE_OPENSSL_SSL_H
29750 #include <openssl/ssl.h>
29751 #else
29752 #include <ssl.h>
29753 #endif
29754
29755 /* Require 0.9.7d+ */
29756 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29757         char *__ssl_compat = "0.9.7d";
29758 #endif
29759
29760 _ACEOF
29761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29762   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29763   ol_cv_ssl_crl_compat=yes
29764 else
29765   ol_cv_ssl_crl_compat=no
29766 fi
29767 rm -f conftest*
29768
29769 fi
29770 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29771 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29772
29773                 if test $ol_cv_ssl_crl_compat = no ; then
29774                         ol_link_ssl=no
29775                 else
29776
29777 cat >>confdefs.h <<\_ACEOF
29778 #define HAVE_OPENSSL_CRL 1
29779 _ACEOF
29780
29781                 fi
29782         fi
29783
29784 else
29785         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29786 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29787 fi
29788
29789 WITH_TLS=no
29790 if test $ol_link_tls = yes ; then
29791
29792 cat >>confdefs.h <<\_ACEOF
29793 #define HAVE_TLS 1
29794 _ACEOF
29795
29796         WITH_TLS=yes
29797
29798 elif test $ol_with_tls = auto ; then
29799         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29800 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29801         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29802 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29803
29804 elif test $ol_with_tls != no ; then
29805         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29806 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29807    { (exit 1); exit 1; }; }
29808 fi
29809
29810 if test $ol_enable_lmpasswd != no; then
29811         if test $ol_link_tls != yes ; then
29812                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29813 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29814    { (exit 1); exit 1; }; }
29815         fi
29816
29817
29818 cat >>confdefs.h <<\_ACEOF
29819 #define SLAPD_LMHASH 1
29820 _ACEOF
29821
29822 fi
29823
29824 ol_link_threads=no
29825
29826 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29827         -o $ol_with_threads = nt ; then
29828
29829
29830         echo "$as_me:$LINENO: checking for _beginthread" >&5
29831 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29832 if test "${ac_cv_func__beginthread+set}" = set; then
29833   echo $ECHO_N "(cached) $ECHO_C" >&6
29834 else
29835   cat >conftest.$ac_ext <<_ACEOF
29836 /* confdefs.h.  */
29837 _ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h.  */
29841 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29843 #define _beginthread innocuous__beginthread
29844
29845 /* System header to define __stub macros and hopefully few prototypes,
29846     which can conflict with char _beginthread (); below.
29847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29848     <limits.h> exists even on freestanding compilers.  */
29849
29850 #ifdef __STDC__
29851 # include <limits.h>
29852 #else
29853 # include <assert.h>
29854 #endif
29855
29856 #undef _beginthread
29857
29858 /* Override any gcc2 internal prototype to avoid an error.  */
29859 #ifdef __cplusplus
29860 extern "C"
29861 {
29862 #endif
29863 /* We use char because int might match the return type of a gcc2
29864    builtin and then its argument prototype would still apply.  */
29865 char _beginthread ();
29866 /* The GNU C library defines this for functions which it implements
29867     to always fail with ENOSYS.  Some functions are actually named
29868     something starting with __ and the normal name is an alias.  */
29869 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29870 choke me
29871 #else
29872 char (*f) () = _beginthread;
29873 #endif
29874 #ifdef __cplusplus
29875 }
29876 #endif
29877
29878 int
29879 main ()
29880 {
29881 return f != _beginthread;
29882   ;
29883   return 0;
29884 }
29885 _ACEOF
29886 rm -f conftest.$ac_objext conftest$ac_exeext
29887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29888   (eval $ac_link) 2>conftest.er1
29889   ac_status=$?
29890   grep -v '^ *+' conftest.er1 >conftest.err
29891   rm -f conftest.er1
29892   cat conftest.err >&5
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); } &&
29895          { ac_try='test -z "$ac_c_werror_flag"
29896                          || test ! -s conftest.err'
29897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898   (eval $ac_try) 2>&5
29899   ac_status=$?
29900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901   (exit $ac_status); }; } &&
29902          { ac_try='test -s conftest$ac_exeext'
29903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29904   (eval $ac_try) 2>&5
29905   ac_status=$?
29906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907   (exit $ac_status); }; }; then
29908   ac_cv_func__beginthread=yes
29909 else
29910   echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29912
29913 ac_cv_func__beginthread=no
29914 fi
29915 rm -f conftest.err conftest.$ac_objext \
29916       conftest$ac_exeext conftest.$ac_ext
29917 fi
29918 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29919 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29920
29921
29922         if test $ac_cv_func__beginthread = yes ; then
29923
29924 cat >>confdefs.h <<\_ACEOF
29925 #define HAVE_NT_THREADS 1
29926 _ACEOF
29927
29928                 ol_cv_nt_threads=yes
29929         fi
29930
29931
29932         if test "$ol_cv_nt_threads" = yes ; then
29933                 ol_link_threads=nt
29934                 ol_with_threads=found
29935                 ol_with_yielding_select=yes
29936
29937
29938 cat >>confdefs.h <<\_ACEOF
29939 #define HAVE_NT_SERVICE_MANAGER 1
29940 _ACEOF
29941
29942
29943 cat >>confdefs.h <<\_ACEOF
29944 #define HAVE_NT_EVENT_LOG 1
29945 _ACEOF
29946
29947         fi
29948
29949         if test $ol_with_threads = nt ; then
29950                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29951 echo "$as_me: error: could not locate NT Threads" >&2;}
29952    { (exit 1); exit 1; }; }
29953         fi
29954 fi
29955
29956 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29957         -o $ol_with_threads = posix ; then
29958
29959
29960 for ac_header in pthread.h
29961 do
29962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29964   echo "$as_me:$LINENO: checking for $ac_header" >&5
29965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29967   echo $ECHO_N "(cached) $ECHO_C" >&6
29968 fi
29969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29971 else
29972   # Is the header compilable?
29973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29975 cat >conftest.$ac_ext <<_ACEOF
29976 /* confdefs.h.  */
29977 _ACEOF
29978 cat confdefs.h >>conftest.$ac_ext
29979 cat >>conftest.$ac_ext <<_ACEOF
29980 /* end confdefs.h.  */
29981 $ac_includes_default
29982 #include <$ac_header>
29983 _ACEOF
29984 rm -f conftest.$ac_objext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29986   (eval $ac_compile) 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } &&
29993          { ac_try='test -z "$ac_c_werror_flag"
29994                          || test ! -s conftest.err'
29995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996   (eval $ac_try) 2>&5
29997   ac_status=$?
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); }; } &&
30000          { ac_try='test -s conftest.$ac_objext'
30001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002   (eval $ac_try) 2>&5
30003   ac_status=$?
30004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005   (exit $ac_status); }; }; then
30006   ac_header_compiler=yes
30007 else
30008   echo "$as_me: failed program was:" >&5
30009 sed 's/^/| /' conftest.$ac_ext >&5
30010
30011 ac_header_compiler=no
30012 fi
30013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30015 echo "${ECHO_T}$ac_header_compiler" >&6
30016
30017 # Is the header present?
30018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30020 cat >conftest.$ac_ext <<_ACEOF
30021 /* confdefs.h.  */
30022 _ACEOF
30023 cat confdefs.h >>conftest.$ac_ext
30024 cat >>conftest.$ac_ext <<_ACEOF
30025 /* end confdefs.h.  */
30026 #include <$ac_header>
30027 _ACEOF
30028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30030   ac_status=$?
30031   grep -v '^ *+' conftest.er1 >conftest.err
30032   rm -f conftest.er1
30033   cat conftest.err >&5
30034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035   (exit $ac_status); } >/dev/null; then
30036   if test -s conftest.err; then
30037     ac_cpp_err=$ac_c_preproc_warn_flag
30038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30039   else
30040     ac_cpp_err=
30041   fi
30042 else
30043   ac_cpp_err=yes
30044 fi
30045 if test -z "$ac_cpp_err"; then
30046   ac_header_preproc=yes
30047 else
30048   echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30050
30051   ac_header_preproc=no
30052 fi
30053 rm -f conftest.err conftest.$ac_ext
30054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30055 echo "${ECHO_T}$ac_header_preproc" >&6
30056
30057 # So?  What about this header?
30058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30059   yes:no: )
30060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30064     ac_header_preproc=yes
30065     ;;
30066   no:yes:* )
30067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30079     (
30080       cat <<\_ASBOX
30081 ## ------------------------------------------ ##
30082 ## Report this to the AC_PACKAGE_NAME lists.  ##
30083 ## ------------------------------------------ ##
30084 _ASBOX
30085     ) |
30086       sed "s/^/$as_me: WARNING:     /" >&2
30087     ;;
30088 esac
30089 echo "$as_me:$LINENO: checking for $ac_header" >&5
30090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30092   echo $ECHO_N "(cached) $ECHO_C" >&6
30093 else
30094   eval "$as_ac_Header=\$ac_header_preproc"
30095 fi
30096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30098
30099 fi
30100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30101   cat >>confdefs.h <<_ACEOF
30102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30103 _ACEOF
30104
30105 fi
30106
30107 done
30108
30109
30110         if test $ac_cv_header_pthread_h = yes ; then
30111                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30112 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30113 if test "${ol_cv_pthread_version+set}" = set; then
30114   echo $ECHO_N "(cached) $ECHO_C" >&6
30115 else
30116
30117         cat >conftest.$ac_ext <<_ACEOF
30118 /* confdefs.h.  */
30119 _ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h.  */
30123
30124 #               include <pthread.h>
30125
30126 int
30127 main ()
30128 {
30129
30130                 int i = PTHREAD_CREATE_JOINABLE;
30131
30132   ;
30133   return 0;
30134 }
30135 _ACEOF
30136 rm -f conftest.$ac_objext
30137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30138   (eval $ac_compile) 2>conftest.er1
30139   ac_status=$?
30140   grep -v '^ *+' conftest.er1 >conftest.err
30141   rm -f conftest.er1
30142   cat conftest.err >&5
30143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144   (exit $ac_status); } &&
30145          { ac_try='test -z "$ac_c_werror_flag"
30146                          || test ! -s conftest.err'
30147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148   (eval $ac_try) 2>&5
30149   ac_status=$?
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); }; } &&
30152          { ac_try='test -s conftest.$ac_objext'
30153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154   (eval $ac_try) 2>&5
30155   ac_status=$?
30156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157   (exit $ac_status); }; }; then
30158
30159         cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h.  */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h.  */
30165 #include <pthread.h>
30166
30167 _ACEOF
30168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30169   $EGREP "pthread_detach" >/dev/null 2>&1; then
30170   ol_cv_pthread_version=10
30171 else
30172   ol_cv_pthread_version=8
30173 fi
30174 rm -f conftest*
30175
30176 else
30177   echo "$as_me: failed program was:" >&5
30178 sed 's/^/| /' conftest.$ac_ext >&5
30179
30180
30181         cat >conftest.$ac_ext <<_ACEOF
30182 /* confdefs.h.  */
30183 _ACEOF
30184 cat confdefs.h >>conftest.$ac_ext
30185 cat >>conftest.$ac_ext <<_ACEOF
30186 /* end confdefs.h.  */
30187
30188 #               include <pthread.h>
30189 #               ifdef PTHREAD_CREATE_UNDETACHED
30190                 draft7
30191 #               endif
30192
30193 _ACEOF
30194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30195   $EGREP "draft7" >/dev/null 2>&1; then
30196   ol_cv_pthread_version=7
30197 else
30198
30199         cat >conftest.$ac_ext <<_ACEOF
30200 /* confdefs.h.  */
30201 _ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h.  */
30205 #include <pthread.h>
30206
30207 _ACEOF
30208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30209   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30210   ol_cv_pthread_version=6
30211 else
30212
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
30220 #               include <pthread.h>
30221 #ifdef          PTHREAD_MUTEX_INITIALIZER
30222                 draft5
30223 #endif
30224
30225 _ACEOF
30226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30227   $EGREP "draft5" >/dev/null 2>&1; then
30228   ol_cv_pthread_version=5
30229 else
30230   ol_cv_pthread_version=4
30231 fi
30232 rm -f conftest*
30233
30234 fi
30235 rm -f conftest*
30236
30237 fi
30238 rm -f conftest*
30239
30240 fi
30241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30242
30243 fi
30244 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30245 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30246
30247
30248                 if test $ol_cv_pthread_version != 0 ; then
30249
30250 cat >>confdefs.h <<_ACEOF
30251 #define HAVE_PTHREADS $ol_cv_pthread_version
30252 _ACEOF
30253
30254                 else
30255                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30256 echo "$as_me: error: unknown pthread version" >&2;}
30257    { (exit 1); exit 1; }; }
30258                 fi
30259
30260                 # consider threads found
30261                 ol_with_threads=found
30262
30263
30264         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30265 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30266 if test "${ol_cv_header_linux_threads+set}" = set; then
30267   echo $ECHO_N "(cached) $ECHO_C" >&6
30268 else
30269   cat >conftest.$ac_ext <<_ACEOF
30270 /* confdefs.h.  */
30271 _ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h.  */
30275 #include <pthread.h>
30276 _ACEOF
30277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30278   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30279   ol_cv_header_linux_threads=yes
30280 else
30281   ol_cv_header_linux_threads=no
30282 fi
30283 rm -f conftest*
30284
30285
30286 fi
30287 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30288 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30289         if test $ol_cv_header_linux_threads = yes; then
30290
30291 cat >>confdefs.h <<\_ACEOF
30292 #define HAVE_LINUX_THREADS 1
30293 _ACEOF
30294
30295         fi
30296
30297
30298         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30299 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30300 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30301   echo $ECHO_N "(cached) $ECHO_C" >&6
30302 else
30303   cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30309 #include <pthread.h>
30310 #ifdef _POSIX_THREAD_IS_GNU_PTH
30311         __gnu_pth__;
30312 #endif
30313
30314 _ACEOF
30315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30316   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30317   ol_cv_header_gnu_pth_pthread_h=yes
30318 else
30319   ol_cv_header_gnu_pth_pthread_h=no
30320 fi
30321 rm -f conftest*
30322
30323
30324 fi
30325 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30326 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30327
30328
30329                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30330
30331 for ac_header in sched.h
30332 do
30333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30335   echo "$as_me:$LINENO: checking for $ac_header" >&5
30336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30338   echo $ECHO_N "(cached) $ECHO_C" >&6
30339 fi
30340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30342 else
30343   # Is the header compilable?
30344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30346 cat >conftest.$ac_ext <<_ACEOF
30347 /* confdefs.h.  */
30348 _ACEOF
30349 cat confdefs.h >>conftest.$ac_ext
30350 cat >>conftest.$ac_ext <<_ACEOF
30351 /* end confdefs.h.  */
30352 $ac_includes_default
30353 #include <$ac_header>
30354 _ACEOF
30355 rm -f conftest.$ac_objext
30356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30357   (eval $ac_compile) 2>conftest.er1
30358   ac_status=$?
30359   grep -v '^ *+' conftest.er1 >conftest.err
30360   rm -f conftest.er1
30361   cat conftest.err >&5
30362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363   (exit $ac_status); } &&
30364          { ac_try='test -z "$ac_c_werror_flag"
30365                          || test ! -s conftest.err'
30366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30367   (eval $ac_try) 2>&5
30368   ac_status=$?
30369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370   (exit $ac_status); }; } &&
30371          { ac_try='test -s conftest.$ac_objext'
30372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30373   (eval $ac_try) 2>&5
30374   ac_status=$?
30375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376   (exit $ac_status); }; }; then
30377   ac_header_compiler=yes
30378 else
30379   echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30381
30382 ac_header_compiler=no
30383 fi
30384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30386 echo "${ECHO_T}$ac_header_compiler" >&6
30387
30388 # Is the header present?
30389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30391 cat >conftest.$ac_ext <<_ACEOF
30392 /* confdefs.h.  */
30393 _ACEOF
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h.  */
30397 #include <$ac_header>
30398 _ACEOF
30399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30401   ac_status=$?
30402   grep -v '^ *+' conftest.er1 >conftest.err
30403   rm -f conftest.er1
30404   cat conftest.err >&5
30405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406   (exit $ac_status); } >/dev/null; then
30407   if test -s conftest.err; then
30408     ac_cpp_err=$ac_c_preproc_warn_flag
30409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30410   else
30411     ac_cpp_err=
30412   fi
30413 else
30414   ac_cpp_err=yes
30415 fi
30416 if test -z "$ac_cpp_err"; then
30417   ac_header_preproc=yes
30418 else
30419   echo "$as_me: failed program was:" >&5
30420 sed 's/^/| /' conftest.$ac_ext >&5
30421
30422   ac_header_preproc=no
30423 fi
30424 rm -f conftest.err conftest.$ac_ext
30425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30426 echo "${ECHO_T}$ac_header_preproc" >&6
30427
30428 # So?  What about this header?
30429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30430   yes:no: )
30431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30435     ac_header_preproc=yes
30436     ;;
30437   no:yes:* )
30438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30450     (
30451       cat <<\_ASBOX
30452 ## ------------------------------------------ ##
30453 ## Report this to the AC_PACKAGE_NAME lists.  ##
30454 ## ------------------------------------------ ##
30455 _ASBOX
30456     ) |
30457       sed "s/^/$as_me: WARNING:     /" >&2
30458     ;;
30459 esac
30460 echo "$as_me:$LINENO: checking for $ac_header" >&5
30461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30463   echo $ECHO_N "(cached) $ECHO_C" >&6
30464 else
30465   eval "$as_ac_Header=\$ac_header_preproc"
30466 fi
30467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30469
30470 fi
30471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30472   cat >>confdefs.h <<_ACEOF
30473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30474 _ACEOF
30475
30476 fi
30477
30478 done
30479
30480                 fi
30481
30482
30483                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30484 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30485 if test "${ol_cv_pthread_create+set}" = set; then
30486   echo $ECHO_N "(cached) $ECHO_C" >&6
30487 else
30488
30489                         if test "$cross_compiling" = yes; then
30490   cat >conftest.$ac_ext <<_ACEOF
30491 /* confdefs.h.  */
30492 _ACEOF
30493 cat confdefs.h >>conftest.$ac_ext
30494 cat >>conftest.$ac_ext <<_ACEOF
30495 /* end confdefs.h.  */
30496
30497 /* pthread test headers */
30498 #include <pthread.h>
30499 #if HAVE_PTHREADS < 7
30500 #include <errno.h>
30501 #endif
30502 #ifndef NULL
30503 #define NULL (void*)0
30504 #endif
30505
30506 static void *task(p)
30507         void *p;
30508 {
30509         return (void *) (p == NULL);
30510 }
30511
30512 int
30513 main ()
30514 {
30515
30516         /* pthread test function */
30517 #ifndef PTHREAD_CREATE_DETACHED
30518 #define PTHREAD_CREATE_DETACHED 1
30519 #endif
30520         pthread_t t;
30521         int status;
30522         int detach = PTHREAD_CREATE_DETACHED;
30523
30524 #if HAVE_PTHREADS > 4
30525         /* Final pthreads */
30526         pthread_attr_t attr;
30527
30528         status = pthread_attr_init(&attr);
30529         if( status ) return status;
30530
30531 #if HAVE_PTHREADS < 7
30532         status = pthread_attr_setdetachstate(&attr, &detach);
30533         if( status < 0 ) status = errno;
30534 #else
30535         status = pthread_attr_setdetachstate(&attr, detach);
30536 #endif
30537         if( status ) return status;
30538         status = pthread_create( &t, &attr, task, NULL );
30539 #if HAVE_PTHREADS < 7
30540         if( status < 0 ) status = errno;
30541 #endif
30542         if( status ) return status;
30543 #else
30544         /* Draft 4 pthreads */
30545         status = pthread_create( &t, pthread_attr_default, task, NULL );
30546         if( status ) return errno;
30547
30548         /* give thread a chance to complete */
30549         /* it should remain joinable and hence detachable */
30550         sleep( 1 );
30551
30552         status = pthread_detach( &t );
30553         if( status ) return errno;
30554 #endif
30555
30556 #ifdef HAVE_LINUX_THREADS
30557         pthread_kill_other_threads_np();
30558 #endif
30559
30560         return 0;
30561
30562   ;
30563   return 0;
30564 }
30565 _ACEOF
30566 rm -f conftest.$ac_objext conftest$ac_exeext
30567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30568   (eval $ac_link) 2>conftest.er1
30569   ac_status=$?
30570   grep -v '^ *+' conftest.er1 >conftest.err
30571   rm -f conftest.er1
30572   cat conftest.err >&5
30573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574   (exit $ac_status); } &&
30575          { ac_try='test -z "$ac_c_werror_flag"
30576                          || test ! -s conftest.err'
30577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578   (eval $ac_try) 2>&5
30579   ac_status=$?
30580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581   (exit $ac_status); }; } &&
30582          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30588   ol_cv_pthread_create=yes
30589 else
30590   echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30592
30593 ol_cv_pthread_create=no
30594 fi
30595 rm -f conftest.err conftest.$ac_objext \
30596       conftest$ac_exeext conftest.$ac_ext
30597 else
30598   cat >conftest.$ac_ext <<_ACEOF
30599
30600 /* pthread test headers */
30601 #include <pthread.h>
30602 #if HAVE_PTHREADS < 7
30603 #include <errno.h>
30604 #endif
30605 #ifndef NULL
30606 #define NULL (void*)0
30607 #endif
30608
30609 static void *task(p)
30610         void *p;
30611 {
30612         return (void *) (p == NULL);
30613 }
30614
30615
30616 int main(argc, argv)
30617         int argc;
30618         char **argv;
30619 {
30620
30621         /* pthread test function */
30622 #ifndef PTHREAD_CREATE_DETACHED
30623 #define PTHREAD_CREATE_DETACHED 1
30624 #endif
30625         pthread_t t;
30626         int status;
30627         int detach = PTHREAD_CREATE_DETACHED;
30628
30629 #if HAVE_PTHREADS > 4
30630         /* Final pthreads */
30631         pthread_attr_t attr;
30632
30633         status = pthread_attr_init(&attr);
30634         if( status ) return status;
30635
30636 #if HAVE_PTHREADS < 7
30637         status = pthread_attr_setdetachstate(&attr, &detach);
30638         if( status < 0 ) status = errno;
30639 #else
30640         status = pthread_attr_setdetachstate(&attr, detach);
30641 #endif
30642         if( status ) return status;
30643         status = pthread_create( &t, &attr, task, NULL );
30644 #if HAVE_PTHREADS < 7
30645         if( status < 0 ) status = errno;
30646 #endif
30647         if( status ) return status;
30648 #else
30649         /* Draft 4 pthreads */
30650         status = pthread_create( &t, pthread_attr_default, task, NULL );
30651         if( status ) return errno;
30652
30653         /* give thread a chance to complete */
30654         /* it should remain joinable and hence detachable */
30655         sleep( 1 );
30656
30657         status = pthread_detach( &t );
30658         if( status ) return errno;
30659 #endif
30660
30661 #ifdef HAVE_LINUX_THREADS
30662         pthread_kill_other_threads_np();
30663 #endif
30664
30665         return 0;
30666
30667 }
30668
30669 _ACEOF
30670 rm -f conftest$ac_exeext
30671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30672   (eval $ac_link) 2>&5
30673   ac_status=$?
30674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30677   (eval $ac_try) 2>&5
30678   ac_status=$?
30679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680   (exit $ac_status); }; }; then
30681   ol_cv_pthread_create=yes
30682 else
30683   echo "$as_me: program exited with status $ac_status" >&5
30684 echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30686
30687 ( exit $ac_status )
30688 ol_cv_pthread_create=no
30689 fi
30690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30691 fi
30692 fi
30693 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30694 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30695
30696                 if test $ol_cv_pthread_create != no ; then
30697                         ol_link_threads=posix
30698                         ol_link_pthreads=""
30699                 fi
30700
30701                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30702 if test "$ol_link_threads" = no ; then
30703         # try -kthread
30704         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30705 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30706 if test "${ol_cv_pthread_kthread+set}" = set; then
30707   echo $ECHO_N "(cached) $ECHO_C" >&6
30708 else
30709
30710                 # save the flags
30711                 ol_LIBS="$LIBS"
30712                 LIBS="-kthread $LIBS"
30713
30714                 if test "$cross_compiling" = yes; then
30715   cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h.  */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h.  */
30721
30722 /* pthread test headers */
30723 #include <pthread.h>
30724 #if HAVE_PTHREADS < 7
30725 #include <errno.h>
30726 #endif
30727 #ifndef NULL
30728 #define NULL (void*)0
30729 #endif
30730
30731 static void *task(p)
30732         void *p;
30733 {
30734         return (void *) (p == NULL);
30735 }
30736
30737 int
30738 main ()
30739 {
30740
30741         /* pthread test function */
30742 #ifndef PTHREAD_CREATE_DETACHED
30743 #define PTHREAD_CREATE_DETACHED 1
30744 #endif
30745         pthread_t t;
30746         int status;
30747         int detach = PTHREAD_CREATE_DETACHED;
30748
30749 #if HAVE_PTHREADS > 4
30750         /* Final pthreads */
30751         pthread_attr_t attr;
30752
30753         status = pthread_attr_init(&attr);
30754         if( status ) return status;
30755
30756 #if HAVE_PTHREADS < 7
30757         status = pthread_attr_setdetachstate(&attr, &detach);
30758         if( status < 0 ) status = errno;
30759 #else
30760         status = pthread_attr_setdetachstate(&attr, detach);
30761 #endif
30762         if( status ) return status;
30763         status = pthread_create( &t, &attr, task, NULL );
30764 #if HAVE_PTHREADS < 7
30765         if( status < 0 ) status = errno;
30766 #endif
30767         if( status ) return status;
30768 #else
30769         /* Draft 4 pthreads */
30770         status = pthread_create( &t, pthread_attr_default, task, NULL );
30771         if( status ) return errno;
30772
30773         /* give thread a chance to complete */
30774         /* it should remain joinable and hence detachable */
30775         sleep( 1 );
30776
30777         status = pthread_detach( &t );
30778         if( status ) return errno;
30779 #endif
30780
30781 #ifdef HAVE_LINUX_THREADS
30782         pthread_kill_other_threads_np();
30783 #endif
30784
30785         return 0;
30786
30787   ;
30788   return 0;
30789 }
30790 _ACEOF
30791 rm -f conftest.$ac_objext conftest$ac_exeext
30792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30793   (eval $ac_link) 2>conftest.er1
30794   ac_status=$?
30795   grep -v '^ *+' conftest.er1 >conftest.err
30796   rm -f conftest.er1
30797   cat conftest.err >&5
30798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799   (exit $ac_status); } &&
30800          { ac_try='test -z "$ac_c_werror_flag"
30801                          || test ! -s conftest.err'
30802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803   (eval $ac_try) 2>&5
30804   ac_status=$?
30805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806   (exit $ac_status); }; } &&
30807          { ac_try='test -s conftest$ac_exeext'
30808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809   (eval $ac_try) 2>&5
30810   ac_status=$?
30811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812   (exit $ac_status); }; }; then
30813   ol_cv_pthread_kthread=yes
30814 else
30815   echo "$as_me: failed program was:" >&5
30816 sed 's/^/| /' conftest.$ac_ext >&5
30817
30818 ol_cv_pthread_kthread=no
30819 fi
30820 rm -f conftest.err conftest.$ac_objext \
30821       conftest$ac_exeext conftest.$ac_ext
30822 else
30823   cat >conftest.$ac_ext <<_ACEOF
30824
30825 /* pthread test headers */
30826 #include <pthread.h>
30827 #if HAVE_PTHREADS < 7
30828 #include <errno.h>
30829 #endif
30830 #ifndef NULL
30831 #define NULL (void*)0
30832 #endif
30833
30834 static void *task(p)
30835         void *p;
30836 {
30837         return (void *) (p == NULL);
30838 }
30839
30840
30841 int main(argc, argv)
30842         int argc;
30843         char **argv;
30844 {
30845
30846         /* pthread test function */
30847 #ifndef PTHREAD_CREATE_DETACHED
30848 #define PTHREAD_CREATE_DETACHED 1
30849 #endif
30850         pthread_t t;
30851         int status;
30852         int detach = PTHREAD_CREATE_DETACHED;
30853
30854 #if HAVE_PTHREADS > 4
30855         /* Final pthreads */
30856         pthread_attr_t attr;
30857
30858         status = pthread_attr_init(&attr);
30859         if( status ) return status;
30860
30861 #if HAVE_PTHREADS < 7
30862         status = pthread_attr_setdetachstate(&attr, &detach);
30863         if( status < 0 ) status = errno;
30864 #else
30865         status = pthread_attr_setdetachstate(&attr, detach);
30866 #endif
30867         if( status ) return status;
30868         status = pthread_create( &t, &attr, task, NULL );
30869 #if HAVE_PTHREADS < 7
30870         if( status < 0 ) status = errno;
30871 #endif
30872         if( status ) return status;
30873 #else
30874         /* Draft 4 pthreads */
30875         status = pthread_create( &t, pthread_attr_default, task, NULL );
30876         if( status ) return errno;
30877
30878         /* give thread a chance to complete */
30879         /* it should remain joinable and hence detachable */
30880         sleep( 1 );
30881
30882         status = pthread_detach( &t );
30883         if( status ) return errno;
30884 #endif
30885
30886 #ifdef HAVE_LINUX_THREADS
30887         pthread_kill_other_threads_np();
30888 #endif
30889
30890         return 0;
30891
30892 }
30893
30894 _ACEOF
30895 rm -f conftest$ac_exeext
30896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30897   (eval $ac_link) 2>&5
30898   ac_status=$?
30899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30902   (eval $ac_try) 2>&5
30903   ac_status=$?
30904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905   (exit $ac_status); }; }; then
30906   ol_cv_pthread_kthread=yes
30907 else
30908   echo "$as_me: program exited with status $ac_status" >&5
30909 echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912 ( exit $ac_status )
30913 ol_cv_pthread_kthread=no
30914 fi
30915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30916 fi
30917
30918                 # restore the LIBS
30919                 LIBS="$ol_LIBS"
30920
30921 fi
30922 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30923 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30924
30925         if test $ol_cv_pthread_kthread = yes ; then
30926                 ol_link_pthreads="-kthread"
30927                 ol_link_threads=posix
30928         fi
30929 fi
30930
30931                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30932 if test "$ol_link_threads" = no ; then
30933         # try -pthread
30934         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30935 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30936 if test "${ol_cv_pthread_pthread+set}" = set; then
30937   echo $ECHO_N "(cached) $ECHO_C" >&6
30938 else
30939
30940                 # save the flags
30941                 ol_LIBS="$LIBS"
30942                 LIBS="-pthread $LIBS"
30943
30944                 if test "$cross_compiling" = yes; then
30945   cat >conftest.$ac_ext <<_ACEOF
30946 /* confdefs.h.  */
30947 _ACEOF
30948 cat confdefs.h >>conftest.$ac_ext
30949 cat >>conftest.$ac_ext <<_ACEOF
30950 /* end confdefs.h.  */
30951
30952 /* pthread test headers */
30953 #include <pthread.h>
30954 #if HAVE_PTHREADS < 7
30955 #include <errno.h>
30956 #endif
30957 #ifndef NULL
30958 #define NULL (void*)0
30959 #endif
30960
30961 static void *task(p)
30962         void *p;
30963 {
30964         return (void *) (p == NULL);
30965 }
30966
30967 int
30968 main ()
30969 {
30970
30971         /* pthread test function */
30972 #ifndef PTHREAD_CREATE_DETACHED
30973 #define PTHREAD_CREATE_DETACHED 1
30974 #endif
30975         pthread_t t;
30976         int status;
30977         int detach = PTHREAD_CREATE_DETACHED;
30978
30979 #if HAVE_PTHREADS > 4
30980         /* Final pthreads */
30981         pthread_attr_t attr;
30982
30983         status = pthread_attr_init(&attr);
30984         if( status ) return status;
30985
30986 #if HAVE_PTHREADS < 7
30987         status = pthread_attr_setdetachstate(&attr, &detach);
30988         if( status < 0 ) status = errno;
30989 #else
30990         status = pthread_attr_setdetachstate(&attr, detach);
30991 #endif
30992         if( status ) return status;
30993         status = pthread_create( &t, &attr, task, NULL );
30994 #if HAVE_PTHREADS < 7
30995         if( status < 0 ) status = errno;
30996 #endif
30997         if( status ) return status;
30998 #else
30999         /* Draft 4 pthreads */
31000         status = pthread_create( &t, pthread_attr_default, task, NULL );
31001         if( status ) return errno;
31002
31003         /* give thread a chance to complete */
31004         /* it should remain joinable and hence detachable */
31005         sleep( 1 );
31006
31007         status = pthread_detach( &t );
31008         if( status ) return errno;
31009 #endif
31010
31011 #ifdef HAVE_LINUX_THREADS
31012         pthread_kill_other_threads_np();
31013 #endif
31014
31015         return 0;
31016
31017   ;
31018   return 0;
31019 }
31020 _ACEOF
31021 rm -f conftest.$ac_objext conftest$ac_exeext
31022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31023   (eval $ac_link) 2>conftest.er1
31024   ac_status=$?
31025   grep -v '^ *+' conftest.er1 >conftest.err
31026   rm -f conftest.er1
31027   cat conftest.err >&5
31028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029   (exit $ac_status); } &&
31030          { ac_try='test -z "$ac_c_werror_flag"
31031                          || test ! -s conftest.err'
31032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31033   (eval $ac_try) 2>&5
31034   ac_status=$?
31035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036   (exit $ac_status); }; } &&
31037          { ac_try='test -s conftest$ac_exeext'
31038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31039   (eval $ac_try) 2>&5
31040   ac_status=$?
31041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042   (exit $ac_status); }; }; then
31043   ol_cv_pthread_pthread=yes
31044 else
31045   echo "$as_me: failed program was:" >&5
31046 sed 's/^/| /' conftest.$ac_ext >&5
31047
31048 ol_cv_pthread_pthread=no
31049 fi
31050 rm -f conftest.err conftest.$ac_objext \
31051       conftest$ac_exeext conftest.$ac_ext
31052 else
31053   cat >conftest.$ac_ext <<_ACEOF
31054
31055 /* pthread test headers */
31056 #include <pthread.h>
31057 #if HAVE_PTHREADS < 7
31058 #include <errno.h>
31059 #endif
31060 #ifndef NULL
31061 #define NULL (void*)0
31062 #endif
31063
31064 static void *task(p)
31065         void *p;
31066 {
31067         return (void *) (p == NULL);
31068 }
31069
31070
31071 int main(argc, argv)
31072         int argc;
31073         char **argv;
31074 {
31075
31076         /* pthread test function */
31077 #ifndef PTHREAD_CREATE_DETACHED
31078 #define PTHREAD_CREATE_DETACHED 1
31079 #endif
31080         pthread_t t;
31081         int status;
31082         int detach = PTHREAD_CREATE_DETACHED;
31083
31084 #if HAVE_PTHREADS > 4
31085         /* Final pthreads */
31086         pthread_attr_t attr;
31087
31088         status = pthread_attr_init(&attr);
31089         if( status ) return status;
31090
31091 #if HAVE_PTHREADS < 7
31092         status = pthread_attr_setdetachstate(&attr, &detach);
31093         if( status < 0 ) status = errno;
31094 #else
31095         status = pthread_attr_setdetachstate(&attr, detach);
31096 #endif
31097         if( status ) return status;
31098         status = pthread_create( &t, &attr, task, NULL );
31099 #if HAVE_PTHREADS < 7
31100         if( status < 0 ) status = errno;
31101 #endif
31102         if( status ) return status;
31103 #else
31104         /* Draft 4 pthreads */
31105         status = pthread_create( &t, pthread_attr_default, task, NULL );
31106         if( status ) return errno;
31107
31108         /* give thread a chance to complete */
31109         /* it should remain joinable and hence detachable */
31110         sleep( 1 );
31111
31112         status = pthread_detach( &t );
31113         if( status ) return errno;
31114 #endif
31115
31116 #ifdef HAVE_LINUX_THREADS
31117         pthread_kill_other_threads_np();
31118 #endif
31119
31120         return 0;
31121
31122 }
31123
31124 _ACEOF
31125 rm -f conftest$ac_exeext
31126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31127   (eval $ac_link) 2>&5
31128   ac_status=$?
31129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132   (eval $ac_try) 2>&5
31133   ac_status=$?
31134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135   (exit $ac_status); }; }; then
31136   ol_cv_pthread_pthread=yes
31137 else
31138   echo "$as_me: program exited with status $ac_status" >&5
31139 echo "$as_me: failed program was:" >&5
31140 sed 's/^/| /' conftest.$ac_ext >&5
31141
31142 ( exit $ac_status )
31143 ol_cv_pthread_pthread=no
31144 fi
31145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31146 fi
31147
31148                 # restore the LIBS
31149                 LIBS="$ol_LIBS"
31150
31151 fi
31152 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31153 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31154
31155         if test $ol_cv_pthread_pthread = yes ; then
31156                 ol_link_pthreads="-pthread"
31157                 ol_link_threads=posix
31158         fi
31159 fi
31160
31161                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31162 if test "$ol_link_threads" = no ; then
31163         # try -pthreads
31164         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31165 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31166 if test "${ol_cv_pthread_pthreads+set}" = set; then
31167   echo $ECHO_N "(cached) $ECHO_C" >&6
31168 else
31169
31170                 # save the flags
31171                 ol_LIBS="$LIBS"
31172                 LIBS="-pthreads $LIBS"
31173
31174                 if test "$cross_compiling" = yes; then
31175   cat >conftest.$ac_ext <<_ACEOF
31176 /* confdefs.h.  */
31177 _ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h.  */
31181
31182 /* pthread test headers */
31183 #include <pthread.h>
31184 #if HAVE_PTHREADS < 7
31185 #include <errno.h>
31186 #endif
31187 #ifndef NULL
31188 #define NULL (void*)0
31189 #endif
31190
31191 static void *task(p)
31192         void *p;
31193 {
31194         return (void *) (p == NULL);
31195 }
31196
31197 int
31198 main ()
31199 {
31200
31201         /* pthread test function */
31202 #ifndef PTHREAD_CREATE_DETACHED
31203 #define PTHREAD_CREATE_DETACHED 1
31204 #endif
31205         pthread_t t;
31206         int status;
31207         int detach = PTHREAD_CREATE_DETACHED;
31208
31209 #if HAVE_PTHREADS > 4
31210         /* Final pthreads */
31211         pthread_attr_t attr;
31212
31213         status = pthread_attr_init(&attr);
31214         if( status ) return status;
31215
31216 #if HAVE_PTHREADS < 7
31217         status = pthread_attr_setdetachstate(&attr, &detach);
31218         if( status < 0 ) status = errno;
31219 #else
31220         status = pthread_attr_setdetachstate(&attr, detach);
31221 #endif
31222         if( status ) return status;
31223         status = pthread_create( &t, &attr, task, NULL );
31224 #if HAVE_PTHREADS < 7
31225         if( status < 0 ) status = errno;
31226 #endif
31227         if( status ) return status;
31228 #else
31229         /* Draft 4 pthreads */
31230         status = pthread_create( &t, pthread_attr_default, task, NULL );
31231         if( status ) return errno;
31232
31233         /* give thread a chance to complete */
31234         /* it should remain joinable and hence detachable */
31235         sleep( 1 );
31236
31237         status = pthread_detach( &t );
31238         if( status ) return errno;
31239 #endif
31240
31241 #ifdef HAVE_LINUX_THREADS
31242         pthread_kill_other_threads_np();
31243 #endif
31244
31245         return 0;
31246
31247   ;
31248   return 0;
31249 }
31250 _ACEOF
31251 rm -f conftest.$ac_objext conftest$ac_exeext
31252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31253   (eval $ac_link) 2>conftest.er1
31254   ac_status=$?
31255   grep -v '^ *+' conftest.er1 >conftest.err
31256   rm -f conftest.er1
31257   cat conftest.err >&5
31258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259   (exit $ac_status); } &&
31260          { ac_try='test -z "$ac_c_werror_flag"
31261                          || test ! -s conftest.err'
31262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31263   (eval $ac_try) 2>&5
31264   ac_status=$?
31265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266   (exit $ac_status); }; } &&
31267          { ac_try='test -s conftest$ac_exeext'
31268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269   (eval $ac_try) 2>&5
31270   ac_status=$?
31271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272   (exit $ac_status); }; }; then
31273   ol_cv_pthread_pthreads=yes
31274 else
31275   echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.$ac_ext >&5
31277
31278 ol_cv_pthread_pthreads=no
31279 fi
31280 rm -f conftest.err conftest.$ac_objext \
31281       conftest$ac_exeext conftest.$ac_ext
31282 else
31283   cat >conftest.$ac_ext <<_ACEOF
31284
31285 /* pthread test headers */
31286 #include <pthread.h>
31287 #if HAVE_PTHREADS < 7
31288 #include <errno.h>
31289 #endif
31290 #ifndef NULL
31291 #define NULL (void*)0
31292 #endif
31293
31294 static void *task(p)
31295         void *p;
31296 {
31297         return (void *) (p == NULL);
31298 }
31299
31300
31301 int main(argc, argv)
31302         int argc;
31303         char **argv;
31304 {
31305
31306         /* pthread test function */
31307 #ifndef PTHREAD_CREATE_DETACHED
31308 #define PTHREAD_CREATE_DETACHED 1
31309 #endif
31310         pthread_t t;
31311         int status;
31312         int detach = PTHREAD_CREATE_DETACHED;
31313
31314 #if HAVE_PTHREADS > 4
31315         /* Final pthreads */
31316         pthread_attr_t attr;
31317
31318         status = pthread_attr_init(&attr);
31319         if( status ) return status;
31320
31321 #if HAVE_PTHREADS < 7
31322         status = pthread_attr_setdetachstate(&attr, &detach);
31323         if( status < 0 ) status = errno;
31324 #else
31325         status = pthread_attr_setdetachstate(&attr, detach);
31326 #endif
31327         if( status ) return status;
31328         status = pthread_create( &t, &attr, task, NULL );
31329 #if HAVE_PTHREADS < 7
31330         if( status < 0 ) status = errno;
31331 #endif
31332         if( status ) return status;
31333 #else
31334         /* Draft 4 pthreads */
31335         status = pthread_create( &t, pthread_attr_default, task, NULL );
31336         if( status ) return errno;
31337
31338         /* give thread a chance to complete */
31339         /* it should remain joinable and hence detachable */
31340         sleep( 1 );
31341
31342         status = pthread_detach( &t );
31343         if( status ) return errno;
31344 #endif
31345
31346 #ifdef HAVE_LINUX_THREADS
31347         pthread_kill_other_threads_np();
31348 #endif
31349
31350         return 0;
31351
31352 }
31353
31354 _ACEOF
31355 rm -f conftest$ac_exeext
31356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31357   (eval $ac_link) 2>&5
31358   ac_status=$?
31359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31362   (eval $ac_try) 2>&5
31363   ac_status=$?
31364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365   (exit $ac_status); }; }; then
31366   ol_cv_pthread_pthreads=yes
31367 else
31368   echo "$as_me: program exited with status $ac_status" >&5
31369 echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31371
31372 ( exit $ac_status )
31373 ol_cv_pthread_pthreads=no
31374 fi
31375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31376 fi
31377
31378                 # restore the LIBS
31379                 LIBS="$ol_LIBS"
31380
31381 fi
31382 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31383 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31384
31385         if test $ol_cv_pthread_pthreads = yes ; then
31386                 ol_link_pthreads="-pthreads"
31387                 ol_link_threads=posix
31388         fi
31389 fi
31390
31391                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31392 if test "$ol_link_threads" = no ; then
31393         # try -mthreads
31394         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31395 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31396 if test "${ol_cv_pthread_mthreads+set}" = set; then
31397   echo $ECHO_N "(cached) $ECHO_C" >&6
31398 else
31399
31400                 # save the flags
31401                 ol_LIBS="$LIBS"
31402                 LIBS="-mthreads $LIBS"
31403
31404                 if test "$cross_compiling" = yes; then
31405   cat >conftest.$ac_ext <<_ACEOF
31406 /* confdefs.h.  */
31407 _ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h.  */
31411
31412 /* pthread test headers */
31413 #include <pthread.h>
31414 #if HAVE_PTHREADS < 7
31415 #include <errno.h>
31416 #endif
31417 #ifndef NULL
31418 #define NULL (void*)0
31419 #endif
31420
31421 static void *task(p)
31422         void *p;
31423 {
31424         return (void *) (p == NULL);
31425 }
31426
31427 int
31428 main ()
31429 {
31430
31431         /* pthread test function */
31432 #ifndef PTHREAD_CREATE_DETACHED
31433 #define PTHREAD_CREATE_DETACHED 1
31434 #endif
31435         pthread_t t;
31436         int status;
31437         int detach = PTHREAD_CREATE_DETACHED;
31438
31439 #if HAVE_PTHREADS > 4
31440         /* Final pthreads */
31441         pthread_attr_t attr;
31442
31443         status = pthread_attr_init(&attr);
31444         if( status ) return status;
31445
31446 #if HAVE_PTHREADS < 7
31447         status = pthread_attr_setdetachstate(&attr, &detach);
31448         if( status < 0 ) status = errno;
31449 #else
31450         status = pthread_attr_setdetachstate(&attr, detach);
31451 #endif
31452         if( status ) return status;
31453         status = pthread_create( &t, &attr, task, NULL );
31454 #if HAVE_PTHREADS < 7
31455         if( status < 0 ) status = errno;
31456 #endif
31457         if( status ) return status;
31458 #else
31459         /* Draft 4 pthreads */
31460         status = pthread_create( &t, pthread_attr_default, task, NULL );
31461         if( status ) return errno;
31462
31463         /* give thread a chance to complete */
31464         /* it should remain joinable and hence detachable */
31465         sleep( 1 );
31466
31467         status = pthread_detach( &t );
31468         if( status ) return errno;
31469 #endif
31470
31471 #ifdef HAVE_LINUX_THREADS
31472         pthread_kill_other_threads_np();
31473 #endif
31474
31475         return 0;
31476
31477   ;
31478   return 0;
31479 }
31480 _ACEOF
31481 rm -f conftest.$ac_objext conftest$ac_exeext
31482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31483   (eval $ac_link) 2>conftest.er1
31484   ac_status=$?
31485   grep -v '^ *+' conftest.er1 >conftest.err
31486   rm -f conftest.er1
31487   cat conftest.err >&5
31488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489   (exit $ac_status); } &&
31490          { ac_try='test -z "$ac_c_werror_flag"
31491                          || test ! -s conftest.err'
31492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493   (eval $ac_try) 2>&5
31494   ac_status=$?
31495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496   (exit $ac_status); }; } &&
31497          { ac_try='test -s conftest$ac_exeext'
31498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499   (eval $ac_try) 2>&5
31500   ac_status=$?
31501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502   (exit $ac_status); }; }; then
31503   ol_cv_pthread_mthreads=yes
31504 else
31505   echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31507
31508 ol_cv_pthread_mthreads=no
31509 fi
31510 rm -f conftest.err conftest.$ac_objext \
31511       conftest$ac_exeext conftest.$ac_ext
31512 else
31513   cat >conftest.$ac_ext <<_ACEOF
31514
31515 /* pthread test headers */
31516 #include <pthread.h>
31517 #if HAVE_PTHREADS < 7
31518 #include <errno.h>
31519 #endif
31520 #ifndef NULL
31521 #define NULL (void*)0
31522 #endif
31523
31524 static void *task(p)
31525         void *p;
31526 {
31527         return (void *) (p == NULL);
31528 }
31529
31530
31531 int main(argc, argv)
31532         int argc;
31533         char **argv;
31534 {
31535
31536         /* pthread test function */
31537 #ifndef PTHREAD_CREATE_DETACHED
31538 #define PTHREAD_CREATE_DETACHED 1
31539 #endif
31540         pthread_t t;
31541         int status;
31542         int detach = PTHREAD_CREATE_DETACHED;
31543
31544 #if HAVE_PTHREADS > 4
31545         /* Final pthreads */
31546         pthread_attr_t attr;
31547
31548         status = pthread_attr_init(&attr);
31549         if( status ) return status;
31550
31551 #if HAVE_PTHREADS < 7
31552         status = pthread_attr_setdetachstate(&attr, &detach);
31553         if( status < 0 ) status = errno;
31554 #else
31555         status = pthread_attr_setdetachstate(&attr, detach);
31556 #endif
31557         if( status ) return status;
31558         status = pthread_create( &t, &attr, task, NULL );
31559 #if HAVE_PTHREADS < 7
31560         if( status < 0 ) status = errno;
31561 #endif
31562         if( status ) return status;
31563 #else
31564         /* Draft 4 pthreads */
31565         status = pthread_create( &t, pthread_attr_default, task, NULL );
31566         if( status ) return errno;
31567
31568         /* give thread a chance to complete */
31569         /* it should remain joinable and hence detachable */
31570         sleep( 1 );
31571
31572         status = pthread_detach( &t );
31573         if( status ) return errno;
31574 #endif
31575
31576 #ifdef HAVE_LINUX_THREADS
31577         pthread_kill_other_threads_np();
31578 #endif
31579
31580         return 0;
31581
31582 }
31583
31584 _ACEOF
31585 rm -f conftest$ac_exeext
31586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31587   (eval $ac_link) 2>&5
31588   ac_status=$?
31589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31592   (eval $ac_try) 2>&5
31593   ac_status=$?
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); }; }; then
31596   ol_cv_pthread_mthreads=yes
31597 else
31598   echo "$as_me: program exited with status $ac_status" >&5
31599 echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31601
31602 ( exit $ac_status )
31603 ol_cv_pthread_mthreads=no
31604 fi
31605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31606 fi
31607
31608                 # restore the LIBS
31609                 LIBS="$ol_LIBS"
31610
31611 fi
31612 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31613 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31614
31615         if test $ol_cv_pthread_mthreads = yes ; then
31616                 ol_link_pthreads="-mthreads"
31617                 ol_link_threads=posix
31618         fi
31619 fi
31620
31621                 # Pthread try link: -thread (ol_cv_pthread_thread)
31622 if test "$ol_link_threads" = no ; then
31623         # try -thread
31624         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31625 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31626 if test "${ol_cv_pthread_thread+set}" = set; then
31627   echo $ECHO_N "(cached) $ECHO_C" >&6
31628 else
31629
31630                 # save the flags
31631                 ol_LIBS="$LIBS"
31632                 LIBS="-thread $LIBS"
31633
31634                 if test "$cross_compiling" = yes; then
31635   cat >conftest.$ac_ext <<_ACEOF
31636 /* confdefs.h.  */
31637 _ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h.  */
31641
31642 /* pthread test headers */
31643 #include <pthread.h>
31644 #if HAVE_PTHREADS < 7
31645 #include <errno.h>
31646 #endif
31647 #ifndef NULL
31648 #define NULL (void*)0
31649 #endif
31650
31651 static void *task(p)
31652         void *p;
31653 {
31654         return (void *) (p == NULL);
31655 }
31656
31657 int
31658 main ()
31659 {
31660
31661         /* pthread test function */
31662 #ifndef PTHREAD_CREATE_DETACHED
31663 #define PTHREAD_CREATE_DETACHED 1
31664 #endif
31665         pthread_t t;
31666         int status;
31667         int detach = PTHREAD_CREATE_DETACHED;
31668
31669 #if HAVE_PTHREADS > 4
31670         /* Final pthreads */
31671         pthread_attr_t attr;
31672
31673         status = pthread_attr_init(&attr);
31674         if( status ) return status;
31675
31676 #if HAVE_PTHREADS < 7
31677         status = pthread_attr_setdetachstate(&attr, &detach);
31678         if( status < 0 ) status = errno;
31679 #else
31680         status = pthread_attr_setdetachstate(&attr, detach);
31681 #endif
31682         if( status ) return status;
31683         status = pthread_create( &t, &attr, task, NULL );
31684 #if HAVE_PTHREADS < 7
31685         if( status < 0 ) status = errno;
31686 #endif
31687         if( status ) return status;
31688 #else
31689         /* Draft 4 pthreads */
31690         status = pthread_create( &t, pthread_attr_default, task, NULL );
31691         if( status ) return errno;
31692
31693         /* give thread a chance to complete */
31694         /* it should remain joinable and hence detachable */
31695         sleep( 1 );
31696
31697         status = pthread_detach( &t );
31698         if( status ) return errno;
31699 #endif
31700
31701 #ifdef HAVE_LINUX_THREADS
31702         pthread_kill_other_threads_np();
31703 #endif
31704
31705         return 0;
31706
31707   ;
31708   return 0;
31709 }
31710 _ACEOF
31711 rm -f conftest.$ac_objext conftest$ac_exeext
31712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31713   (eval $ac_link) 2>conftest.er1
31714   ac_status=$?
31715   grep -v '^ *+' conftest.er1 >conftest.err
31716   rm -f conftest.er1
31717   cat conftest.err >&5
31718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719   (exit $ac_status); } &&
31720          { ac_try='test -z "$ac_c_werror_flag"
31721                          || test ! -s conftest.err'
31722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723   (eval $ac_try) 2>&5
31724   ac_status=$?
31725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726   (exit $ac_status); }; } &&
31727          { ac_try='test -s conftest$ac_exeext'
31728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729   (eval $ac_try) 2>&5
31730   ac_status=$?
31731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732   (exit $ac_status); }; }; then
31733   ol_cv_pthread_thread=yes
31734 else
31735   echo "$as_me: failed program was:" >&5
31736 sed 's/^/| /' conftest.$ac_ext >&5
31737
31738 ol_cv_pthread_thread=no
31739 fi
31740 rm -f conftest.err conftest.$ac_objext \
31741       conftest$ac_exeext conftest.$ac_ext
31742 else
31743   cat >conftest.$ac_ext <<_ACEOF
31744
31745 /* pthread test headers */
31746 #include <pthread.h>
31747 #if HAVE_PTHREADS < 7
31748 #include <errno.h>
31749 #endif
31750 #ifndef NULL
31751 #define NULL (void*)0
31752 #endif
31753
31754 static void *task(p)
31755         void *p;
31756 {
31757         return (void *) (p == NULL);
31758 }
31759
31760
31761 int main(argc, argv)
31762         int argc;
31763         char **argv;
31764 {
31765
31766         /* pthread test function */
31767 #ifndef PTHREAD_CREATE_DETACHED
31768 #define PTHREAD_CREATE_DETACHED 1
31769 #endif
31770         pthread_t t;
31771         int status;
31772         int detach = PTHREAD_CREATE_DETACHED;
31773
31774 #if HAVE_PTHREADS > 4
31775         /* Final pthreads */
31776         pthread_attr_t attr;
31777
31778         status = pthread_attr_init(&attr);
31779         if( status ) return status;
31780
31781 #if HAVE_PTHREADS < 7
31782         status = pthread_attr_setdetachstate(&attr, &detach);
31783         if( status < 0 ) status = errno;
31784 #else
31785         status = pthread_attr_setdetachstate(&attr, detach);
31786 #endif
31787         if( status ) return status;
31788         status = pthread_create( &t, &attr, task, NULL );
31789 #if HAVE_PTHREADS < 7
31790         if( status < 0 ) status = errno;
31791 #endif
31792         if( status ) return status;
31793 #else
31794         /* Draft 4 pthreads */
31795         status = pthread_create( &t, pthread_attr_default, task, NULL );
31796         if( status ) return errno;
31797
31798         /* give thread a chance to complete */
31799         /* it should remain joinable and hence detachable */
31800         sleep( 1 );
31801
31802         status = pthread_detach( &t );
31803         if( status ) return errno;
31804 #endif
31805
31806 #ifdef HAVE_LINUX_THREADS
31807         pthread_kill_other_threads_np();
31808 #endif
31809
31810         return 0;
31811
31812 }
31813
31814 _ACEOF
31815 rm -f conftest$ac_exeext
31816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31817   (eval $ac_link) 2>&5
31818   ac_status=$?
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31822   (eval $ac_try) 2>&5
31823   ac_status=$?
31824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825   (exit $ac_status); }; }; then
31826   ol_cv_pthread_thread=yes
31827 else
31828   echo "$as_me: program exited with status $ac_status" >&5
31829 echo "$as_me: failed program was:" >&5
31830 sed 's/^/| /' conftest.$ac_ext >&5
31831
31832 ( exit $ac_status )
31833 ol_cv_pthread_thread=no
31834 fi
31835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31836 fi
31837
31838                 # restore the LIBS
31839                 LIBS="$ol_LIBS"
31840
31841 fi
31842 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31843 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31844
31845         if test $ol_cv_pthread_thread = yes ; then
31846                 ol_link_pthreads="-thread"
31847                 ol_link_threads=posix
31848         fi
31849 fi
31850
31851
31852                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31853 if test "$ol_link_threads" = no ; then
31854         # try -lpthread -lmach -lexc -lc_r
31855         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31856 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31857 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31858   echo $ECHO_N "(cached) $ECHO_C" >&6
31859 else
31860
31861                 # save the flags
31862                 ol_LIBS="$LIBS"
31863                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31864
31865                 if test "$cross_compiling" = yes; then
31866   cat >conftest.$ac_ext <<_ACEOF
31867 /* confdefs.h.  */
31868 _ACEOF
31869 cat confdefs.h >>conftest.$ac_ext
31870 cat >>conftest.$ac_ext <<_ACEOF
31871 /* end confdefs.h.  */
31872
31873 /* pthread test headers */
31874 #include <pthread.h>
31875 #if HAVE_PTHREADS < 7
31876 #include <errno.h>
31877 #endif
31878 #ifndef NULL
31879 #define NULL (void*)0
31880 #endif
31881
31882 static void *task(p)
31883         void *p;
31884 {
31885         return (void *) (p == NULL);
31886 }
31887
31888 int
31889 main ()
31890 {
31891
31892         /* pthread test function */
31893 #ifndef PTHREAD_CREATE_DETACHED
31894 #define PTHREAD_CREATE_DETACHED 1
31895 #endif
31896         pthread_t t;
31897         int status;
31898         int detach = PTHREAD_CREATE_DETACHED;
31899
31900 #if HAVE_PTHREADS > 4
31901         /* Final pthreads */
31902         pthread_attr_t attr;
31903
31904         status = pthread_attr_init(&attr);
31905         if( status ) return status;
31906
31907 #if HAVE_PTHREADS < 7
31908         status = pthread_attr_setdetachstate(&attr, &detach);
31909         if( status < 0 ) status = errno;
31910 #else
31911         status = pthread_attr_setdetachstate(&attr, detach);
31912 #endif
31913         if( status ) return status;
31914         status = pthread_create( &t, &attr, task, NULL );
31915 #if HAVE_PTHREADS < 7
31916         if( status < 0 ) status = errno;
31917 #endif
31918         if( status ) return status;
31919 #else
31920         /* Draft 4 pthreads */
31921         status = pthread_create( &t, pthread_attr_default, task, NULL );
31922         if( status ) return errno;
31923
31924         /* give thread a chance to complete */
31925         /* it should remain joinable and hence detachable */
31926         sleep( 1 );
31927
31928         status = pthread_detach( &t );
31929         if( status ) return errno;
31930 #endif
31931
31932 #ifdef HAVE_LINUX_THREADS
31933         pthread_kill_other_threads_np();
31934 #endif
31935
31936         return 0;
31937
31938   ;
31939   return 0;
31940 }
31941 _ACEOF
31942 rm -f conftest.$ac_objext conftest$ac_exeext
31943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31944   (eval $ac_link) 2>conftest.er1
31945   ac_status=$?
31946   grep -v '^ *+' conftest.er1 >conftest.err
31947   rm -f conftest.er1
31948   cat conftest.err >&5
31949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950   (exit $ac_status); } &&
31951          { ac_try='test -z "$ac_c_werror_flag"
31952                          || test ! -s conftest.err'
31953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31954   (eval $ac_try) 2>&5
31955   ac_status=$?
31956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957   (exit $ac_status); }; } &&
31958          { ac_try='test -s conftest$ac_exeext'
31959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31960   (eval $ac_try) 2>&5
31961   ac_status=$?
31962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963   (exit $ac_status); }; }; then
31964   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31965 else
31966   echo "$as_me: failed program was:" >&5
31967 sed 's/^/| /' conftest.$ac_ext >&5
31968
31969 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31970 fi
31971 rm -f conftest.err conftest.$ac_objext \
31972       conftest$ac_exeext conftest.$ac_ext
31973 else
31974   cat >conftest.$ac_ext <<_ACEOF
31975
31976 /* pthread test headers */
31977 #include <pthread.h>
31978 #if HAVE_PTHREADS < 7
31979 #include <errno.h>
31980 #endif
31981 #ifndef NULL
31982 #define NULL (void*)0
31983 #endif
31984
31985 static void *task(p)
31986         void *p;
31987 {
31988         return (void *) (p == NULL);
31989 }
31990
31991
31992 int main(argc, argv)
31993         int argc;
31994         char **argv;
31995 {
31996
31997         /* pthread test function */
31998 #ifndef PTHREAD_CREATE_DETACHED
31999 #define PTHREAD_CREATE_DETACHED 1
32000 #endif
32001         pthread_t t;
32002         int status;
32003         int detach = PTHREAD_CREATE_DETACHED;
32004
32005 #if HAVE_PTHREADS > 4
32006         /* Final pthreads */
32007         pthread_attr_t attr;
32008
32009         status = pthread_attr_init(&attr);
32010         if( status ) return status;
32011
32012 #if HAVE_PTHREADS < 7
32013         status = pthread_attr_setdetachstate(&attr, &detach);
32014         if( status < 0 ) status = errno;
32015 #else
32016         status = pthread_attr_setdetachstate(&attr, detach);
32017 #endif
32018         if( status ) return status;
32019         status = pthread_create( &t, &attr, task, NULL );
32020 #if HAVE_PTHREADS < 7
32021         if( status < 0 ) status = errno;
32022 #endif
32023         if( status ) return status;
32024 #else
32025         /* Draft 4 pthreads */
32026         status = pthread_create( &t, pthread_attr_default, task, NULL );
32027         if( status ) return errno;
32028
32029         /* give thread a chance to complete */
32030         /* it should remain joinable and hence detachable */
32031         sleep( 1 );
32032
32033         status = pthread_detach( &t );
32034         if( status ) return errno;
32035 #endif
32036
32037 #ifdef HAVE_LINUX_THREADS
32038         pthread_kill_other_threads_np();
32039 #endif
32040
32041         return 0;
32042
32043 }
32044
32045 _ACEOF
32046 rm -f conftest$ac_exeext
32047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32048   (eval $ac_link) 2>&5
32049   ac_status=$?
32050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32053   (eval $ac_try) 2>&5
32054   ac_status=$?
32055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056   (exit $ac_status); }; }; then
32057   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32058 else
32059   echo "$as_me: program exited with status $ac_status" >&5
32060 echo "$as_me: failed program was:" >&5
32061 sed 's/^/| /' conftest.$ac_ext >&5
32062
32063 ( exit $ac_status )
32064 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32065 fi
32066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32067 fi
32068
32069                 # restore the LIBS
32070                 LIBS="$ol_LIBS"
32071
32072 fi
32073 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32074 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32075
32076         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32077                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32078                 ol_link_threads=posix
32079         fi
32080 fi
32081
32082                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32083 if test "$ol_link_threads" = no ; then
32084         # try -lpthread -lmach -lexc
32085         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32086 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32087 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32088   echo $ECHO_N "(cached) $ECHO_C" >&6
32089 else
32090
32091                 # save the flags
32092                 ol_LIBS="$LIBS"
32093                 LIBS="-lpthread -lmach -lexc $LIBS"
32094
32095                 if test "$cross_compiling" = yes; then
32096   cat >conftest.$ac_ext <<_ACEOF
32097 /* confdefs.h.  */
32098 _ACEOF
32099 cat confdefs.h >>conftest.$ac_ext
32100 cat >>conftest.$ac_ext <<_ACEOF
32101 /* end confdefs.h.  */
32102
32103 /* pthread test headers */
32104 #include <pthread.h>
32105 #if HAVE_PTHREADS < 7
32106 #include <errno.h>
32107 #endif
32108 #ifndef NULL
32109 #define NULL (void*)0
32110 #endif
32111
32112 static void *task(p)
32113         void *p;
32114 {
32115         return (void *) (p == NULL);
32116 }
32117
32118 int
32119 main ()
32120 {
32121
32122         /* pthread test function */
32123 #ifndef PTHREAD_CREATE_DETACHED
32124 #define PTHREAD_CREATE_DETACHED 1
32125 #endif
32126         pthread_t t;
32127         int status;
32128         int detach = PTHREAD_CREATE_DETACHED;
32129
32130 #if HAVE_PTHREADS > 4
32131         /* Final pthreads */
32132         pthread_attr_t attr;
32133
32134         status = pthread_attr_init(&attr);
32135         if( status ) return status;
32136
32137 #if HAVE_PTHREADS < 7
32138         status = pthread_attr_setdetachstate(&attr, &detach);
32139         if( status < 0 ) status = errno;
32140 #else
32141         status = pthread_attr_setdetachstate(&attr, detach);
32142 #endif
32143         if( status ) return status;
32144         status = pthread_create( &t, &attr, task, NULL );
32145 #if HAVE_PTHREADS < 7
32146         if( status < 0 ) status = errno;
32147 #endif
32148         if( status ) return status;
32149 #else
32150         /* Draft 4 pthreads */
32151         status = pthread_create( &t, pthread_attr_default, task, NULL );
32152         if( status ) return errno;
32153
32154         /* give thread a chance to complete */
32155         /* it should remain joinable and hence detachable */
32156         sleep( 1 );
32157
32158         status = pthread_detach( &t );
32159         if( status ) return errno;
32160 #endif
32161
32162 #ifdef HAVE_LINUX_THREADS
32163         pthread_kill_other_threads_np();
32164 #endif
32165
32166         return 0;
32167
32168   ;
32169   return 0;
32170 }
32171 _ACEOF
32172 rm -f conftest.$ac_objext conftest$ac_exeext
32173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32174   (eval $ac_link) 2>conftest.er1
32175   ac_status=$?
32176   grep -v '^ *+' conftest.er1 >conftest.err
32177   rm -f conftest.er1
32178   cat conftest.err >&5
32179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180   (exit $ac_status); } &&
32181          { ac_try='test -z "$ac_c_werror_flag"
32182                          || test ! -s conftest.err'
32183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32184   (eval $ac_try) 2>&5
32185   ac_status=$?
32186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187   (exit $ac_status); }; } &&
32188          { ac_try='test -s conftest$ac_exeext'
32189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32190   (eval $ac_try) 2>&5
32191   ac_status=$?
32192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193   (exit $ac_status); }; }; then
32194   ol_cv_pthread_lpthread_lmach_lexc=yes
32195 else
32196   echo "$as_me: failed program was:" >&5
32197 sed 's/^/| /' conftest.$ac_ext >&5
32198
32199 ol_cv_pthread_lpthread_lmach_lexc=no
32200 fi
32201 rm -f conftest.err conftest.$ac_objext \
32202       conftest$ac_exeext conftest.$ac_ext
32203 else
32204   cat >conftest.$ac_ext <<_ACEOF
32205
32206 /* pthread test headers */
32207 #include <pthread.h>
32208 #if HAVE_PTHREADS < 7
32209 #include <errno.h>
32210 #endif
32211 #ifndef NULL
32212 #define NULL (void*)0
32213 #endif
32214
32215 static void *task(p)
32216         void *p;
32217 {
32218         return (void *) (p == NULL);
32219 }
32220
32221
32222 int main(argc, argv)
32223         int argc;
32224         char **argv;
32225 {
32226
32227         /* pthread test function */
32228 #ifndef PTHREAD_CREATE_DETACHED
32229 #define PTHREAD_CREATE_DETACHED 1
32230 #endif
32231         pthread_t t;
32232         int status;
32233         int detach = PTHREAD_CREATE_DETACHED;
32234
32235 #if HAVE_PTHREADS > 4
32236         /* Final pthreads */
32237         pthread_attr_t attr;
32238
32239         status = pthread_attr_init(&attr);
32240         if( status ) return status;
32241
32242 #if HAVE_PTHREADS < 7
32243         status = pthread_attr_setdetachstate(&attr, &detach);
32244         if( status < 0 ) status = errno;
32245 #else
32246         status = pthread_attr_setdetachstate(&attr, detach);
32247 #endif
32248         if( status ) return status;
32249         status = pthread_create( &t, &attr, task, NULL );
32250 #if HAVE_PTHREADS < 7
32251         if( status < 0 ) status = errno;
32252 #endif
32253         if( status ) return status;
32254 #else
32255         /* Draft 4 pthreads */
32256         status = pthread_create( &t, pthread_attr_default, task, NULL );
32257         if( status ) return errno;
32258
32259         /* give thread a chance to complete */
32260         /* it should remain joinable and hence detachable */
32261         sleep( 1 );
32262
32263         status = pthread_detach( &t );
32264         if( status ) return errno;
32265 #endif
32266
32267 #ifdef HAVE_LINUX_THREADS
32268         pthread_kill_other_threads_np();
32269 #endif
32270
32271         return 0;
32272
32273 }
32274
32275 _ACEOF
32276 rm -f conftest$ac_exeext
32277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32278   (eval $ac_link) 2>&5
32279   ac_status=$?
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283   (eval $ac_try) 2>&5
32284   ac_status=$?
32285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); }; }; then
32287   ol_cv_pthread_lpthread_lmach_lexc=yes
32288 else
32289   echo "$as_me: program exited with status $ac_status" >&5
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293 ( exit $ac_status )
32294 ol_cv_pthread_lpthread_lmach_lexc=no
32295 fi
32296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32297 fi
32298
32299                 # restore the LIBS
32300                 LIBS="$ol_LIBS"
32301
32302 fi
32303 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32304 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32305
32306         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32307                 ol_link_pthreads="-lpthread -lmach -lexc"
32308                 ol_link_threads=posix
32309         fi
32310 fi
32311
32312
32313                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32314 if test "$ol_link_threads" = no ; then
32315         # try -lpthread -Wl,-woff,85
32316         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32317 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32318 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32319   echo $ECHO_N "(cached) $ECHO_C" >&6
32320 else
32321
32322                 # save the flags
32323                 ol_LIBS="$LIBS"
32324                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32325
32326                 if test "$cross_compiling" = yes; then
32327   cat >conftest.$ac_ext <<_ACEOF
32328 /* confdefs.h.  */
32329 _ACEOF
32330 cat confdefs.h >>conftest.$ac_ext
32331 cat >>conftest.$ac_ext <<_ACEOF
32332 /* end confdefs.h.  */
32333
32334 /* pthread test headers */
32335 #include <pthread.h>
32336 #if HAVE_PTHREADS < 7
32337 #include <errno.h>
32338 #endif
32339 #ifndef NULL
32340 #define NULL (void*)0
32341 #endif
32342
32343 static void *task(p)
32344         void *p;
32345 {
32346         return (void *) (p == NULL);
32347 }
32348
32349 int
32350 main ()
32351 {
32352
32353         /* pthread test function */
32354 #ifndef PTHREAD_CREATE_DETACHED
32355 #define PTHREAD_CREATE_DETACHED 1
32356 #endif
32357         pthread_t t;
32358         int status;
32359         int detach = PTHREAD_CREATE_DETACHED;
32360
32361 #if HAVE_PTHREADS > 4
32362         /* Final pthreads */
32363         pthread_attr_t attr;
32364
32365         status = pthread_attr_init(&attr);
32366         if( status ) return status;
32367
32368 #if HAVE_PTHREADS < 7
32369         status = pthread_attr_setdetachstate(&attr, &detach);
32370         if( status < 0 ) status = errno;
32371 #else
32372         status = pthread_attr_setdetachstate(&attr, detach);
32373 #endif
32374         if( status ) return status;
32375         status = pthread_create( &t, &attr, task, NULL );
32376 #if HAVE_PTHREADS < 7
32377         if( status < 0 ) status = errno;
32378 #endif
32379         if( status ) return status;
32380 #else
32381         /* Draft 4 pthreads */
32382         status = pthread_create( &t, pthread_attr_default, task, NULL );
32383         if( status ) return errno;
32384
32385         /* give thread a chance to complete */
32386         /* it should remain joinable and hence detachable */
32387         sleep( 1 );
32388
32389         status = pthread_detach( &t );
32390         if( status ) return errno;
32391 #endif
32392
32393 #ifdef HAVE_LINUX_THREADS
32394         pthread_kill_other_threads_np();
32395 #endif
32396
32397         return 0;
32398
32399   ;
32400   return 0;
32401 }
32402 _ACEOF
32403 rm -f conftest.$ac_objext conftest$ac_exeext
32404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32405   (eval $ac_link) 2>conftest.er1
32406   ac_status=$?
32407   grep -v '^ *+' conftest.er1 >conftest.err
32408   rm -f conftest.er1
32409   cat conftest.err >&5
32410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411   (exit $ac_status); } &&
32412          { ac_try='test -z "$ac_c_werror_flag"
32413                          || test ! -s conftest.err'
32414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32415   (eval $ac_try) 2>&5
32416   ac_status=$?
32417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418   (exit $ac_status); }; } &&
32419          { ac_try='test -s conftest$ac_exeext'
32420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32421   (eval $ac_try) 2>&5
32422   ac_status=$?
32423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424   (exit $ac_status); }; }; then
32425   ol_cv_pthread_lib_lpthread_woff=yes
32426 else
32427   echo "$as_me: failed program was:" >&5
32428 sed 's/^/| /' conftest.$ac_ext >&5
32429
32430 ol_cv_pthread_lib_lpthread_woff=no
32431 fi
32432 rm -f conftest.err conftest.$ac_objext \
32433       conftest$ac_exeext conftest.$ac_ext
32434 else
32435   cat >conftest.$ac_ext <<_ACEOF
32436
32437 /* pthread test headers */
32438 #include <pthread.h>
32439 #if HAVE_PTHREADS < 7
32440 #include <errno.h>
32441 #endif
32442 #ifndef NULL
32443 #define NULL (void*)0
32444 #endif
32445
32446 static void *task(p)
32447         void *p;
32448 {
32449         return (void *) (p == NULL);
32450 }
32451
32452
32453 int main(argc, argv)
32454         int argc;
32455         char **argv;
32456 {
32457
32458         /* pthread test function */
32459 #ifndef PTHREAD_CREATE_DETACHED
32460 #define PTHREAD_CREATE_DETACHED 1
32461 #endif
32462         pthread_t t;
32463         int status;
32464         int detach = PTHREAD_CREATE_DETACHED;
32465
32466 #if HAVE_PTHREADS > 4
32467         /* Final pthreads */
32468         pthread_attr_t attr;
32469
32470         status = pthread_attr_init(&attr);
32471         if( status ) return status;
32472
32473 #if HAVE_PTHREADS < 7
32474         status = pthread_attr_setdetachstate(&attr, &detach);
32475         if( status < 0 ) status = errno;
32476 #else
32477         status = pthread_attr_setdetachstate(&attr, detach);
32478 #endif
32479         if( status ) return status;
32480         status = pthread_create( &t, &attr, task, NULL );
32481 #if HAVE_PTHREADS < 7
32482         if( status < 0 ) status = errno;
32483 #endif
32484         if( status ) return status;
32485 #else
32486         /* Draft 4 pthreads */
32487         status = pthread_create( &t, pthread_attr_default, task, NULL );
32488         if( status ) return errno;
32489
32490         /* give thread a chance to complete */
32491         /* it should remain joinable and hence detachable */
32492         sleep( 1 );
32493
32494         status = pthread_detach( &t );
32495         if( status ) return errno;
32496 #endif
32497
32498 #ifdef HAVE_LINUX_THREADS
32499         pthread_kill_other_threads_np();
32500 #endif
32501
32502         return 0;
32503
32504 }
32505
32506 _ACEOF
32507 rm -f conftest$ac_exeext
32508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32509   (eval $ac_link) 2>&5
32510   ac_status=$?
32511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32514   (eval $ac_try) 2>&5
32515   ac_status=$?
32516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517   (exit $ac_status); }; }; then
32518   ol_cv_pthread_lib_lpthread_woff=yes
32519 else
32520   echo "$as_me: program exited with status $ac_status" >&5
32521 echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32523
32524 ( exit $ac_status )
32525 ol_cv_pthread_lib_lpthread_woff=no
32526 fi
32527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32528 fi
32529
32530                 # restore the LIBS
32531                 LIBS="$ol_LIBS"
32532
32533 fi
32534 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32535 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32536
32537         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32538                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32539                 ol_link_threads=posix
32540         fi
32541 fi
32542
32543
32544                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32545 if test "$ol_link_threads" = no ; then
32546         # try -lpthread
32547         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32548 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32549 if test "${ol_cv_pthread_lpthread+set}" = set; then
32550   echo $ECHO_N "(cached) $ECHO_C" >&6
32551 else
32552
32553                 # save the flags
32554                 ol_LIBS="$LIBS"
32555                 LIBS="-lpthread $LIBS"
32556
32557                 if test "$cross_compiling" = yes; then
32558   cat >conftest.$ac_ext <<_ACEOF
32559 /* confdefs.h.  */
32560 _ACEOF
32561 cat confdefs.h >>conftest.$ac_ext
32562 cat >>conftest.$ac_ext <<_ACEOF
32563 /* end confdefs.h.  */
32564
32565 /* pthread test headers */
32566 #include <pthread.h>
32567 #if HAVE_PTHREADS < 7
32568 #include <errno.h>
32569 #endif
32570 #ifndef NULL
32571 #define NULL (void*)0
32572 #endif
32573
32574 static void *task(p)
32575         void *p;
32576 {
32577         return (void *) (p == NULL);
32578 }
32579
32580 int
32581 main ()
32582 {
32583
32584         /* pthread test function */
32585 #ifndef PTHREAD_CREATE_DETACHED
32586 #define PTHREAD_CREATE_DETACHED 1
32587 #endif
32588         pthread_t t;
32589         int status;
32590         int detach = PTHREAD_CREATE_DETACHED;
32591
32592 #if HAVE_PTHREADS > 4
32593         /* Final pthreads */
32594         pthread_attr_t attr;
32595
32596         status = pthread_attr_init(&attr);
32597         if( status ) return status;
32598
32599 #if HAVE_PTHREADS < 7
32600         status = pthread_attr_setdetachstate(&attr, &detach);
32601         if( status < 0 ) status = errno;
32602 #else
32603         status = pthread_attr_setdetachstate(&attr, detach);
32604 #endif
32605         if( status ) return status;
32606         status = pthread_create( &t, &attr, task, NULL );
32607 #if HAVE_PTHREADS < 7
32608         if( status < 0 ) status = errno;
32609 #endif
32610         if( status ) return status;
32611 #else
32612         /* Draft 4 pthreads */
32613         status = pthread_create( &t, pthread_attr_default, task, NULL );
32614         if( status ) return errno;
32615
32616         /* give thread a chance to complete */
32617         /* it should remain joinable and hence detachable */
32618         sleep( 1 );
32619
32620         status = pthread_detach( &t );
32621         if( status ) return errno;
32622 #endif
32623
32624 #ifdef HAVE_LINUX_THREADS
32625         pthread_kill_other_threads_np();
32626 #endif
32627
32628         return 0;
32629
32630   ;
32631   return 0;
32632 }
32633 _ACEOF
32634 rm -f conftest.$ac_objext conftest$ac_exeext
32635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32636   (eval $ac_link) 2>conftest.er1
32637   ac_status=$?
32638   grep -v '^ *+' conftest.er1 >conftest.err
32639   rm -f conftest.er1
32640   cat conftest.err >&5
32641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642   (exit $ac_status); } &&
32643          { ac_try='test -z "$ac_c_werror_flag"
32644                          || test ! -s conftest.err'
32645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32646   (eval $ac_try) 2>&5
32647   ac_status=$?
32648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649   (exit $ac_status); }; } &&
32650          { ac_try='test -s conftest$ac_exeext'
32651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32652   (eval $ac_try) 2>&5
32653   ac_status=$?
32654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655   (exit $ac_status); }; }; then
32656   ol_cv_pthread_lpthread=yes
32657 else
32658   echo "$as_me: failed program was:" >&5
32659 sed 's/^/| /' conftest.$ac_ext >&5
32660
32661 ol_cv_pthread_lpthread=no
32662 fi
32663 rm -f conftest.err conftest.$ac_objext \
32664       conftest$ac_exeext conftest.$ac_ext
32665 else
32666   cat >conftest.$ac_ext <<_ACEOF
32667
32668 /* pthread test headers */
32669 #include <pthread.h>
32670 #if HAVE_PTHREADS < 7
32671 #include <errno.h>
32672 #endif
32673 #ifndef NULL
32674 #define NULL (void*)0
32675 #endif
32676
32677 static void *task(p)
32678         void *p;
32679 {
32680         return (void *) (p == NULL);
32681 }
32682
32683
32684 int main(argc, argv)
32685         int argc;
32686         char **argv;
32687 {
32688
32689         /* pthread test function */
32690 #ifndef PTHREAD_CREATE_DETACHED
32691 #define PTHREAD_CREATE_DETACHED 1
32692 #endif
32693         pthread_t t;
32694         int status;
32695         int detach = PTHREAD_CREATE_DETACHED;
32696
32697 #if HAVE_PTHREADS > 4
32698         /* Final pthreads */
32699         pthread_attr_t attr;
32700
32701         status = pthread_attr_init(&attr);
32702         if( status ) return status;
32703
32704 #if HAVE_PTHREADS < 7
32705         status = pthread_attr_setdetachstate(&attr, &detach);
32706         if( status < 0 ) status = errno;
32707 #else
32708         status = pthread_attr_setdetachstate(&attr, detach);
32709 #endif
32710         if( status ) return status;
32711         status = pthread_create( &t, &attr, task, NULL );
32712 #if HAVE_PTHREADS < 7
32713         if( status < 0 ) status = errno;
32714 #endif
32715         if( status ) return status;
32716 #else
32717         /* Draft 4 pthreads */
32718         status = pthread_create( &t, pthread_attr_default, task, NULL );
32719         if( status ) return errno;
32720
32721         /* give thread a chance to complete */
32722         /* it should remain joinable and hence detachable */
32723         sleep( 1 );
32724
32725         status = pthread_detach( &t );
32726         if( status ) return errno;
32727 #endif
32728
32729 #ifdef HAVE_LINUX_THREADS
32730         pthread_kill_other_threads_np();
32731 #endif
32732
32733         return 0;
32734
32735 }
32736
32737 _ACEOF
32738 rm -f conftest$ac_exeext
32739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32740   (eval $ac_link) 2>&5
32741   ac_status=$?
32742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745   (eval $ac_try) 2>&5
32746   ac_status=$?
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); }; }; then
32749   ol_cv_pthread_lpthread=yes
32750 else
32751   echo "$as_me: program exited with status $ac_status" >&5
32752 echo "$as_me: failed program was:" >&5
32753 sed 's/^/| /' conftest.$ac_ext >&5
32754
32755 ( exit $ac_status )
32756 ol_cv_pthread_lpthread=no
32757 fi
32758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32759 fi
32760
32761                 # restore the LIBS
32762                 LIBS="$ol_LIBS"
32763
32764 fi
32765 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32766 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32767
32768         if test $ol_cv_pthread_lpthread = yes ; then
32769                 ol_link_pthreads="-lpthread"
32770                 ol_link_threads=posix
32771         fi
32772 fi
32773
32774                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32775 if test "$ol_link_threads" = no ; then
32776         # try -lc_r
32777         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32778 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32779 if test "${ol_cv_pthread_lc_r+set}" = set; then
32780   echo $ECHO_N "(cached) $ECHO_C" >&6
32781 else
32782
32783                 # save the flags
32784                 ol_LIBS="$LIBS"
32785                 LIBS="-lc_r $LIBS"
32786
32787                 if test "$cross_compiling" = yes; then
32788   cat >conftest.$ac_ext <<_ACEOF
32789 /* confdefs.h.  */
32790 _ACEOF
32791 cat confdefs.h >>conftest.$ac_ext
32792 cat >>conftest.$ac_ext <<_ACEOF
32793 /* end confdefs.h.  */
32794
32795 /* pthread test headers */
32796 #include <pthread.h>
32797 #if HAVE_PTHREADS < 7
32798 #include <errno.h>
32799 #endif
32800 #ifndef NULL
32801 #define NULL (void*)0
32802 #endif
32803
32804 static void *task(p)
32805         void *p;
32806 {
32807         return (void *) (p == NULL);
32808 }
32809
32810 int
32811 main ()
32812 {
32813
32814         /* pthread test function */
32815 #ifndef PTHREAD_CREATE_DETACHED
32816 #define PTHREAD_CREATE_DETACHED 1
32817 #endif
32818         pthread_t t;
32819         int status;
32820         int detach = PTHREAD_CREATE_DETACHED;
32821
32822 #if HAVE_PTHREADS > 4
32823         /* Final pthreads */
32824         pthread_attr_t attr;
32825
32826         status = pthread_attr_init(&attr);
32827         if( status ) return status;
32828
32829 #if HAVE_PTHREADS < 7
32830         status = pthread_attr_setdetachstate(&attr, &detach);
32831         if( status < 0 ) status = errno;
32832 #else
32833         status = pthread_attr_setdetachstate(&attr, detach);
32834 #endif
32835         if( status ) return status;
32836         status = pthread_create( &t, &attr, task, NULL );
32837 #if HAVE_PTHREADS < 7
32838         if( status < 0 ) status = errno;
32839 #endif
32840         if( status ) return status;
32841 #else
32842         /* Draft 4 pthreads */
32843         status = pthread_create( &t, pthread_attr_default, task, NULL );
32844         if( status ) return errno;
32845
32846         /* give thread a chance to complete */
32847         /* it should remain joinable and hence detachable */
32848         sleep( 1 );
32849
32850         status = pthread_detach( &t );
32851         if( status ) return errno;
32852 #endif
32853
32854 #ifdef HAVE_LINUX_THREADS
32855         pthread_kill_other_threads_np();
32856 #endif
32857
32858         return 0;
32859
32860   ;
32861   return 0;
32862 }
32863 _ACEOF
32864 rm -f conftest.$ac_objext conftest$ac_exeext
32865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32866   (eval $ac_link) 2>conftest.er1
32867   ac_status=$?
32868   grep -v '^ *+' conftest.er1 >conftest.err
32869   rm -f conftest.er1
32870   cat conftest.err >&5
32871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872   (exit $ac_status); } &&
32873          { ac_try='test -z "$ac_c_werror_flag"
32874                          || test ! -s conftest.err'
32875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32876   (eval $ac_try) 2>&5
32877   ac_status=$?
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); }; } &&
32880          { ac_try='test -s conftest$ac_exeext'
32881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32882   (eval $ac_try) 2>&5
32883   ac_status=$?
32884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885   (exit $ac_status); }; }; then
32886   ol_cv_pthread_lc_r=yes
32887 else
32888   echo "$as_me: failed program was:" >&5
32889 sed 's/^/| /' conftest.$ac_ext >&5
32890
32891 ol_cv_pthread_lc_r=no
32892 fi
32893 rm -f conftest.err conftest.$ac_objext \
32894       conftest$ac_exeext conftest.$ac_ext
32895 else
32896   cat >conftest.$ac_ext <<_ACEOF
32897
32898 /* pthread test headers */
32899 #include <pthread.h>
32900 #if HAVE_PTHREADS < 7
32901 #include <errno.h>
32902 #endif
32903 #ifndef NULL
32904 #define NULL (void*)0
32905 #endif
32906
32907 static void *task(p)
32908         void *p;
32909 {
32910         return (void *) (p == NULL);
32911 }
32912
32913
32914 int main(argc, argv)
32915         int argc;
32916         char **argv;
32917 {
32918
32919         /* pthread test function */
32920 #ifndef PTHREAD_CREATE_DETACHED
32921 #define PTHREAD_CREATE_DETACHED 1
32922 #endif
32923         pthread_t t;
32924         int status;
32925         int detach = PTHREAD_CREATE_DETACHED;
32926
32927 #if HAVE_PTHREADS > 4
32928         /* Final pthreads */
32929         pthread_attr_t attr;
32930
32931         status = pthread_attr_init(&attr);
32932         if( status ) return status;
32933
32934 #if HAVE_PTHREADS < 7
32935         status = pthread_attr_setdetachstate(&attr, &detach);
32936         if( status < 0 ) status = errno;
32937 #else
32938         status = pthread_attr_setdetachstate(&attr, detach);
32939 #endif
32940         if( status ) return status;
32941         status = pthread_create( &t, &attr, task, NULL );
32942 #if HAVE_PTHREADS < 7
32943         if( status < 0 ) status = errno;
32944 #endif
32945         if( status ) return status;
32946 #else
32947         /* Draft 4 pthreads */
32948         status = pthread_create( &t, pthread_attr_default, task, NULL );
32949         if( status ) return errno;
32950
32951         /* give thread a chance to complete */
32952         /* it should remain joinable and hence detachable */
32953         sleep( 1 );
32954
32955         status = pthread_detach( &t );
32956         if( status ) return errno;
32957 #endif
32958
32959 #ifdef HAVE_LINUX_THREADS
32960         pthread_kill_other_threads_np();
32961 #endif
32962
32963         return 0;
32964
32965 }
32966
32967 _ACEOF
32968 rm -f conftest$ac_exeext
32969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32970   (eval $ac_link) 2>&5
32971   ac_status=$?
32972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32975   (eval $ac_try) 2>&5
32976   ac_status=$?
32977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978   (exit $ac_status); }; }; then
32979   ol_cv_pthread_lc_r=yes
32980 else
32981   echo "$as_me: program exited with status $ac_status" >&5
32982 echo "$as_me: failed program was:" >&5
32983 sed 's/^/| /' conftest.$ac_ext >&5
32984
32985 ( exit $ac_status )
32986 ol_cv_pthread_lc_r=no
32987 fi
32988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32989 fi
32990
32991                 # restore the LIBS
32992                 LIBS="$ol_LIBS"
32993
32994 fi
32995 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32996 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32997
32998         if test $ol_cv_pthread_lc_r = yes ; then
32999                 ol_link_pthreads="-lc_r"
33000                 ol_link_threads=posix
33001         fi
33002 fi
33003
33004
33005                 # Pthread try link: -threads (ol_cv_pthread_threads)
33006 if test "$ol_link_threads" = no ; then
33007         # try -threads
33008         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33009 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33010 if test "${ol_cv_pthread_threads+set}" = set; then
33011   echo $ECHO_N "(cached) $ECHO_C" >&6
33012 else
33013
33014                 # save the flags
33015                 ol_LIBS="$LIBS"
33016                 LIBS="-threads $LIBS"
33017
33018                 if test "$cross_compiling" = yes; then
33019   cat >conftest.$ac_ext <<_ACEOF
33020 /* confdefs.h.  */
33021 _ACEOF
33022 cat confdefs.h >>conftest.$ac_ext
33023 cat >>conftest.$ac_ext <<_ACEOF
33024 /* end confdefs.h.  */
33025
33026 /* pthread test headers */
33027 #include <pthread.h>
33028 #if HAVE_PTHREADS < 7
33029 #include <errno.h>
33030 #endif
33031 #ifndef NULL
33032 #define NULL (void*)0
33033 #endif
33034
33035 static void *task(p)
33036         void *p;
33037 {
33038         return (void *) (p == NULL);
33039 }
33040
33041 int
33042 main ()
33043 {
33044
33045         /* pthread test function */
33046 #ifndef PTHREAD_CREATE_DETACHED
33047 #define PTHREAD_CREATE_DETACHED 1
33048 #endif
33049         pthread_t t;
33050         int status;
33051         int detach = PTHREAD_CREATE_DETACHED;
33052
33053 #if HAVE_PTHREADS > 4
33054         /* Final pthreads */
33055         pthread_attr_t attr;
33056
33057         status = pthread_attr_init(&attr);
33058         if( status ) return status;
33059
33060 #if HAVE_PTHREADS < 7
33061         status = pthread_attr_setdetachstate(&attr, &detach);
33062         if( status < 0 ) status = errno;
33063 #else
33064         status = pthread_attr_setdetachstate(&attr, detach);
33065 #endif
33066         if( status ) return status;
33067         status = pthread_create( &t, &attr, task, NULL );
33068 #if HAVE_PTHREADS < 7
33069         if( status < 0 ) status = errno;
33070 #endif
33071         if( status ) return status;
33072 #else
33073         /* Draft 4 pthreads */
33074         status = pthread_create( &t, pthread_attr_default, task, NULL );
33075         if( status ) return errno;
33076
33077         /* give thread a chance to complete */
33078         /* it should remain joinable and hence detachable */
33079         sleep( 1 );
33080
33081         status = pthread_detach( &t );
33082         if( status ) return errno;
33083 #endif
33084
33085 #ifdef HAVE_LINUX_THREADS
33086         pthread_kill_other_threads_np();
33087 #endif
33088
33089         return 0;
33090
33091   ;
33092   return 0;
33093 }
33094 _ACEOF
33095 rm -f conftest.$ac_objext conftest$ac_exeext
33096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33097   (eval $ac_link) 2>conftest.er1
33098   ac_status=$?
33099   grep -v '^ *+' conftest.er1 >conftest.err
33100   rm -f conftest.er1
33101   cat conftest.err >&5
33102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103   (exit $ac_status); } &&
33104          { ac_try='test -z "$ac_c_werror_flag"
33105                          || test ! -s conftest.err'
33106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33107   (eval $ac_try) 2>&5
33108   ac_status=$?
33109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110   (exit $ac_status); }; } &&
33111          { ac_try='test -s conftest$ac_exeext'
33112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113   (eval $ac_try) 2>&5
33114   ac_status=$?
33115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116   (exit $ac_status); }; }; then
33117   ol_cv_pthread_threads=yes
33118 else
33119   echo "$as_me: failed program was:" >&5
33120 sed 's/^/| /' conftest.$ac_ext >&5
33121
33122 ol_cv_pthread_threads=no
33123 fi
33124 rm -f conftest.err conftest.$ac_objext \
33125       conftest$ac_exeext conftest.$ac_ext
33126 else
33127   cat >conftest.$ac_ext <<_ACEOF
33128
33129 /* pthread test headers */
33130 #include <pthread.h>
33131 #if HAVE_PTHREADS < 7
33132 #include <errno.h>
33133 #endif
33134 #ifndef NULL
33135 #define NULL (void*)0
33136 #endif
33137
33138 static void *task(p)
33139         void *p;
33140 {
33141         return (void *) (p == NULL);
33142 }
33143
33144
33145 int main(argc, argv)
33146         int argc;
33147         char **argv;
33148 {
33149
33150         /* pthread test function */
33151 #ifndef PTHREAD_CREATE_DETACHED
33152 #define PTHREAD_CREATE_DETACHED 1
33153 #endif
33154         pthread_t t;
33155         int status;
33156         int detach = PTHREAD_CREATE_DETACHED;
33157
33158 #if HAVE_PTHREADS > 4
33159         /* Final pthreads */
33160         pthread_attr_t attr;
33161
33162         status = pthread_attr_init(&attr);
33163         if( status ) return status;
33164
33165 #if HAVE_PTHREADS < 7
33166         status = pthread_attr_setdetachstate(&attr, &detach);
33167         if( status < 0 ) status = errno;
33168 #else
33169         status = pthread_attr_setdetachstate(&attr, detach);
33170 #endif
33171         if( status ) return status;
33172         status = pthread_create( &t, &attr, task, NULL );
33173 #if HAVE_PTHREADS < 7
33174         if( status < 0 ) status = errno;
33175 #endif
33176         if( status ) return status;
33177 #else
33178         /* Draft 4 pthreads */
33179         status = pthread_create( &t, pthread_attr_default, task, NULL );
33180         if( status ) return errno;
33181
33182         /* give thread a chance to complete */
33183         /* it should remain joinable and hence detachable */
33184         sleep( 1 );
33185
33186         status = pthread_detach( &t );
33187         if( status ) return errno;
33188 #endif
33189
33190 #ifdef HAVE_LINUX_THREADS
33191         pthread_kill_other_threads_np();
33192 #endif
33193
33194         return 0;
33195
33196 }
33197
33198 _ACEOF
33199 rm -f conftest$ac_exeext
33200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33201   (eval $ac_link) 2>&5
33202   ac_status=$?
33203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206   (eval $ac_try) 2>&5
33207   ac_status=$?
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); }; }; then
33210   ol_cv_pthread_threads=yes
33211 else
33212   echo "$as_me: program exited with status $ac_status" >&5
33213 echo "$as_me: failed program was:" >&5
33214 sed 's/^/| /' conftest.$ac_ext >&5
33215
33216 ( exit $ac_status )
33217 ol_cv_pthread_threads=no
33218 fi
33219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33220 fi
33221
33222                 # restore the LIBS
33223                 LIBS="$ol_LIBS"
33224
33225 fi
33226 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33227 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33228
33229         if test $ol_cv_pthread_threads = yes ; then
33230                 ol_link_pthreads="-threads"
33231                 ol_link_threads=posix
33232         fi
33233 fi
33234
33235
33236                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33237 if test "$ol_link_threads" = no ; then
33238         # try -lpthreads -lmach -lexc -lc_r
33239         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33240 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33241 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33242   echo $ECHO_N "(cached) $ECHO_C" >&6
33243 else
33244
33245                 # save the flags
33246                 ol_LIBS="$LIBS"
33247                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33248
33249                 if test "$cross_compiling" = yes; then
33250   cat >conftest.$ac_ext <<_ACEOF
33251 /* confdefs.h.  */
33252 _ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h.  */
33256
33257 /* pthread test headers */
33258 #include <pthread.h>
33259 #if HAVE_PTHREADS < 7
33260 #include <errno.h>
33261 #endif
33262 #ifndef NULL
33263 #define NULL (void*)0
33264 #endif
33265
33266 static void *task(p)
33267         void *p;
33268 {
33269         return (void *) (p == NULL);
33270 }
33271
33272 int
33273 main ()
33274 {
33275
33276         /* pthread test function */
33277 #ifndef PTHREAD_CREATE_DETACHED
33278 #define PTHREAD_CREATE_DETACHED 1
33279 #endif
33280         pthread_t t;
33281         int status;
33282         int detach = PTHREAD_CREATE_DETACHED;
33283
33284 #if HAVE_PTHREADS > 4
33285         /* Final pthreads */
33286         pthread_attr_t attr;
33287
33288         status = pthread_attr_init(&attr);
33289         if( status ) return status;
33290
33291 #if HAVE_PTHREADS < 7
33292         status = pthread_attr_setdetachstate(&attr, &detach);
33293         if( status < 0 ) status = errno;
33294 #else
33295         status = pthread_attr_setdetachstate(&attr, detach);
33296 #endif
33297         if( status ) return status;
33298         status = pthread_create( &t, &attr, task, NULL );
33299 #if HAVE_PTHREADS < 7
33300         if( status < 0 ) status = errno;
33301 #endif
33302         if( status ) return status;
33303 #else
33304         /* Draft 4 pthreads */
33305         status = pthread_create( &t, pthread_attr_default, task, NULL );
33306         if( status ) return errno;
33307
33308         /* give thread a chance to complete */
33309         /* it should remain joinable and hence detachable */
33310         sleep( 1 );
33311
33312         status = pthread_detach( &t );
33313         if( status ) return errno;
33314 #endif
33315
33316 #ifdef HAVE_LINUX_THREADS
33317         pthread_kill_other_threads_np();
33318 #endif
33319
33320         return 0;
33321
33322   ;
33323   return 0;
33324 }
33325 _ACEOF
33326 rm -f conftest.$ac_objext conftest$ac_exeext
33327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33328   (eval $ac_link) 2>conftest.er1
33329   ac_status=$?
33330   grep -v '^ *+' conftest.er1 >conftest.err
33331   rm -f conftest.er1
33332   cat conftest.err >&5
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); } &&
33335          { ac_try='test -z "$ac_c_werror_flag"
33336                          || test ! -s conftest.err'
33337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33338   (eval $ac_try) 2>&5
33339   ac_status=$?
33340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341   (exit $ac_status); }; } &&
33342          { ac_try='test -s conftest$ac_exeext'
33343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33344   (eval $ac_try) 2>&5
33345   ac_status=$?
33346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347   (exit $ac_status); }; }; then
33348   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33349 else
33350   echo "$as_me: failed program was:" >&5
33351 sed 's/^/| /' conftest.$ac_ext >&5
33352
33353 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33354 fi
33355 rm -f conftest.err conftest.$ac_objext \
33356       conftest$ac_exeext conftest.$ac_ext
33357 else
33358   cat >conftest.$ac_ext <<_ACEOF
33359
33360 /* pthread test headers */
33361 #include <pthread.h>
33362 #if HAVE_PTHREADS < 7
33363 #include <errno.h>
33364 #endif
33365 #ifndef NULL
33366 #define NULL (void*)0
33367 #endif
33368
33369 static void *task(p)
33370         void *p;
33371 {
33372         return (void *) (p == NULL);
33373 }
33374
33375
33376 int main(argc, argv)
33377         int argc;
33378         char **argv;
33379 {
33380
33381         /* pthread test function */
33382 #ifndef PTHREAD_CREATE_DETACHED
33383 #define PTHREAD_CREATE_DETACHED 1
33384 #endif
33385         pthread_t t;
33386         int status;
33387         int detach = PTHREAD_CREATE_DETACHED;
33388
33389 #if HAVE_PTHREADS > 4
33390         /* Final pthreads */
33391         pthread_attr_t attr;
33392
33393         status = pthread_attr_init(&attr);
33394         if( status ) return status;
33395
33396 #if HAVE_PTHREADS < 7
33397         status = pthread_attr_setdetachstate(&attr, &detach);
33398         if( status < 0 ) status = errno;
33399 #else
33400         status = pthread_attr_setdetachstate(&attr, detach);
33401 #endif
33402         if( status ) return status;
33403         status = pthread_create( &t, &attr, task, NULL );
33404 #if HAVE_PTHREADS < 7
33405         if( status < 0 ) status = errno;
33406 #endif
33407         if( status ) return status;
33408 #else
33409         /* Draft 4 pthreads */
33410         status = pthread_create( &t, pthread_attr_default, task, NULL );
33411         if( status ) return errno;
33412
33413         /* give thread a chance to complete */
33414         /* it should remain joinable and hence detachable */
33415         sleep( 1 );
33416
33417         status = pthread_detach( &t );
33418         if( status ) return errno;
33419 #endif
33420
33421 #ifdef HAVE_LINUX_THREADS
33422         pthread_kill_other_threads_np();
33423 #endif
33424
33425         return 0;
33426
33427 }
33428
33429 _ACEOF
33430 rm -f conftest$ac_exeext
33431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33432   (eval $ac_link) 2>&5
33433   ac_status=$?
33434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437   (eval $ac_try) 2>&5
33438   ac_status=$?
33439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440   (exit $ac_status); }; }; then
33441   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33442 else
33443   echo "$as_me: program exited with status $ac_status" >&5
33444 echo "$as_me: failed program was:" >&5
33445 sed 's/^/| /' conftest.$ac_ext >&5
33446
33447 ( exit $ac_status )
33448 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33449 fi
33450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33451 fi
33452
33453                 # restore the LIBS
33454                 LIBS="$ol_LIBS"
33455
33456 fi
33457 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33458 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33459
33460         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33461                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33462                 ol_link_threads=posix
33463         fi
33464 fi
33465
33466                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33467 if test "$ol_link_threads" = no ; then
33468         # try -lpthreads -lmach -lexc
33469         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33470 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33471 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33472   echo $ECHO_N "(cached) $ECHO_C" >&6
33473 else
33474
33475                 # save the flags
33476                 ol_LIBS="$LIBS"
33477                 LIBS="-lpthreads -lmach -lexc $LIBS"
33478
33479                 if test "$cross_compiling" = yes; then
33480   cat >conftest.$ac_ext <<_ACEOF
33481 /* confdefs.h.  */
33482 _ACEOF
33483 cat confdefs.h >>conftest.$ac_ext
33484 cat >>conftest.$ac_ext <<_ACEOF
33485 /* end confdefs.h.  */
33486
33487 /* pthread test headers */
33488 #include <pthread.h>
33489 #if HAVE_PTHREADS < 7
33490 #include <errno.h>
33491 #endif
33492 #ifndef NULL
33493 #define NULL (void*)0
33494 #endif
33495
33496 static void *task(p)
33497         void *p;
33498 {
33499         return (void *) (p == NULL);
33500 }
33501
33502 int
33503 main ()
33504 {
33505
33506         /* pthread test function */
33507 #ifndef PTHREAD_CREATE_DETACHED
33508 #define PTHREAD_CREATE_DETACHED 1
33509 #endif
33510         pthread_t t;
33511         int status;
33512         int detach = PTHREAD_CREATE_DETACHED;
33513
33514 #if HAVE_PTHREADS > 4
33515         /* Final pthreads */
33516         pthread_attr_t attr;
33517
33518         status = pthread_attr_init(&attr);
33519         if( status ) return status;
33520
33521 #if HAVE_PTHREADS < 7
33522         status = pthread_attr_setdetachstate(&attr, &detach);
33523         if( status < 0 ) status = errno;
33524 #else
33525         status = pthread_attr_setdetachstate(&attr, detach);
33526 #endif
33527         if( status ) return status;
33528         status = pthread_create( &t, &attr, task, NULL );
33529 #if HAVE_PTHREADS < 7
33530         if( status < 0 ) status = errno;
33531 #endif
33532         if( status ) return status;
33533 #else
33534         /* Draft 4 pthreads */
33535         status = pthread_create( &t, pthread_attr_default, task, NULL );
33536         if( status ) return errno;
33537
33538         /* give thread a chance to complete */
33539         /* it should remain joinable and hence detachable */
33540         sleep( 1 );
33541
33542         status = pthread_detach( &t );
33543         if( status ) return errno;
33544 #endif
33545
33546 #ifdef HAVE_LINUX_THREADS
33547         pthread_kill_other_threads_np();
33548 #endif
33549
33550         return 0;
33551
33552   ;
33553   return 0;
33554 }
33555 _ACEOF
33556 rm -f conftest.$ac_objext conftest$ac_exeext
33557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33558   (eval $ac_link) 2>conftest.er1
33559   ac_status=$?
33560   grep -v '^ *+' conftest.er1 >conftest.err
33561   rm -f conftest.er1
33562   cat conftest.err >&5
33563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564   (exit $ac_status); } &&
33565          { ac_try='test -z "$ac_c_werror_flag"
33566                          || test ! -s conftest.err'
33567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568   (eval $ac_try) 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); }; } &&
33572          { ac_try='test -s conftest$ac_exeext'
33573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33574   (eval $ac_try) 2>&5
33575   ac_status=$?
33576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577   (exit $ac_status); }; }; then
33578   ol_cv_pthread_lpthreads_lmach_lexc=yes
33579 else
33580   echo "$as_me: failed program was:" >&5
33581 sed 's/^/| /' conftest.$ac_ext >&5
33582
33583 ol_cv_pthread_lpthreads_lmach_lexc=no
33584 fi
33585 rm -f conftest.err conftest.$ac_objext \
33586       conftest$ac_exeext conftest.$ac_ext
33587 else
33588   cat >conftest.$ac_ext <<_ACEOF
33589
33590 /* pthread test headers */
33591 #include <pthread.h>
33592 #if HAVE_PTHREADS < 7
33593 #include <errno.h>
33594 #endif
33595 #ifndef NULL
33596 #define NULL (void*)0
33597 #endif
33598
33599 static void *task(p)
33600         void *p;
33601 {
33602         return (void *) (p == NULL);
33603 }
33604
33605
33606 int main(argc, argv)
33607         int argc;
33608         char **argv;
33609 {
33610
33611         /* pthread test function */
33612 #ifndef PTHREAD_CREATE_DETACHED
33613 #define PTHREAD_CREATE_DETACHED 1
33614 #endif
33615         pthread_t t;
33616         int status;
33617         int detach = PTHREAD_CREATE_DETACHED;
33618
33619 #if HAVE_PTHREADS > 4
33620         /* Final pthreads */
33621         pthread_attr_t attr;
33622
33623         status = pthread_attr_init(&attr);
33624         if( status ) return status;
33625
33626 #if HAVE_PTHREADS < 7
33627         status = pthread_attr_setdetachstate(&attr, &detach);
33628         if( status < 0 ) status = errno;
33629 #else
33630         status = pthread_attr_setdetachstate(&attr, detach);
33631 #endif
33632         if( status ) return status;
33633         status = pthread_create( &t, &attr, task, NULL );
33634 #if HAVE_PTHREADS < 7
33635         if( status < 0 ) status = errno;
33636 #endif
33637         if( status ) return status;
33638 #else
33639         /* Draft 4 pthreads */
33640         status = pthread_create( &t, pthread_attr_default, task, NULL );
33641         if( status ) return errno;
33642
33643         /* give thread a chance to complete */
33644         /* it should remain joinable and hence detachable */
33645         sleep( 1 );
33646
33647         status = pthread_detach( &t );
33648         if( status ) return errno;
33649 #endif
33650
33651 #ifdef HAVE_LINUX_THREADS
33652         pthread_kill_other_threads_np();
33653 #endif
33654
33655         return 0;
33656
33657 }
33658
33659 _ACEOF
33660 rm -f conftest$ac_exeext
33661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33662   (eval $ac_link) 2>&5
33663   ac_status=$?
33664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33667   (eval $ac_try) 2>&5
33668   ac_status=$?
33669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670   (exit $ac_status); }; }; then
33671   ol_cv_pthread_lpthreads_lmach_lexc=yes
33672 else
33673   echo "$as_me: program exited with status $ac_status" >&5
33674 echo "$as_me: failed program was:" >&5
33675 sed 's/^/| /' conftest.$ac_ext >&5
33676
33677 ( exit $ac_status )
33678 ol_cv_pthread_lpthreads_lmach_lexc=no
33679 fi
33680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33681 fi
33682
33683                 # restore the LIBS
33684                 LIBS="$ol_LIBS"
33685
33686 fi
33687 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33688 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33689
33690         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33691                 ol_link_pthreads="-lpthreads -lmach -lexc"
33692                 ol_link_threads=posix
33693         fi
33694 fi
33695
33696                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33697 if test "$ol_link_threads" = no ; then
33698         # try -lpthreads -lexc
33699         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33700 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33701 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33702   echo $ECHO_N "(cached) $ECHO_C" >&6
33703 else
33704
33705                 # save the flags
33706                 ol_LIBS="$LIBS"
33707                 LIBS="-lpthreads -lexc $LIBS"
33708
33709                 if test "$cross_compiling" = yes; then
33710   cat >conftest.$ac_ext <<_ACEOF
33711 /* confdefs.h.  */
33712 _ACEOF
33713 cat confdefs.h >>conftest.$ac_ext
33714 cat >>conftest.$ac_ext <<_ACEOF
33715 /* end confdefs.h.  */
33716
33717 /* pthread test headers */
33718 #include <pthread.h>
33719 #if HAVE_PTHREADS < 7
33720 #include <errno.h>
33721 #endif
33722 #ifndef NULL
33723 #define NULL (void*)0
33724 #endif
33725
33726 static void *task(p)
33727         void *p;
33728 {
33729         return (void *) (p == NULL);
33730 }
33731
33732 int
33733 main ()
33734 {
33735
33736         /* pthread test function */
33737 #ifndef PTHREAD_CREATE_DETACHED
33738 #define PTHREAD_CREATE_DETACHED 1
33739 #endif
33740         pthread_t t;
33741         int status;
33742         int detach = PTHREAD_CREATE_DETACHED;
33743
33744 #if HAVE_PTHREADS > 4
33745         /* Final pthreads */
33746         pthread_attr_t attr;
33747
33748         status = pthread_attr_init(&attr);
33749         if( status ) return status;
33750
33751 #if HAVE_PTHREADS < 7
33752         status = pthread_attr_setdetachstate(&attr, &detach);
33753         if( status < 0 ) status = errno;
33754 #else
33755         status = pthread_attr_setdetachstate(&attr, detach);
33756 #endif
33757         if( status ) return status;
33758         status = pthread_create( &t, &attr, task, NULL );
33759 #if HAVE_PTHREADS < 7
33760         if( status < 0 ) status = errno;
33761 #endif
33762         if( status ) return status;
33763 #else
33764         /* Draft 4 pthreads */
33765         status = pthread_create( &t, pthread_attr_default, task, NULL );
33766         if( status ) return errno;
33767
33768         /* give thread a chance to complete */
33769         /* it should remain joinable and hence detachable */
33770         sleep( 1 );
33771
33772         status = pthread_detach( &t );
33773         if( status ) return errno;
33774 #endif
33775
33776 #ifdef HAVE_LINUX_THREADS
33777         pthread_kill_other_threads_np();
33778 #endif
33779
33780         return 0;
33781
33782   ;
33783   return 0;
33784 }
33785 _ACEOF
33786 rm -f conftest.$ac_objext conftest$ac_exeext
33787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33788   (eval $ac_link) 2>conftest.er1
33789   ac_status=$?
33790   grep -v '^ *+' conftest.er1 >conftest.err
33791   rm -f conftest.er1
33792   cat conftest.err >&5
33793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); } &&
33795          { ac_try='test -z "$ac_c_werror_flag"
33796                          || test ! -s conftest.err'
33797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798   (eval $ac_try) 2>&5
33799   ac_status=$?
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); }; } &&
33802          { ac_try='test -s conftest$ac_exeext'
33803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804   (eval $ac_try) 2>&5
33805   ac_status=$?
33806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807   (exit $ac_status); }; }; then
33808   ol_cv_pthread_lpthreads_lexc=yes
33809 else
33810   echo "$as_me: failed program was:" >&5
33811 sed 's/^/| /' conftest.$ac_ext >&5
33812
33813 ol_cv_pthread_lpthreads_lexc=no
33814 fi
33815 rm -f conftest.err conftest.$ac_objext \
33816       conftest$ac_exeext conftest.$ac_ext
33817 else
33818   cat >conftest.$ac_ext <<_ACEOF
33819
33820 /* pthread test headers */
33821 #include <pthread.h>
33822 #if HAVE_PTHREADS < 7
33823 #include <errno.h>
33824 #endif
33825 #ifndef NULL
33826 #define NULL (void*)0
33827 #endif
33828
33829 static void *task(p)
33830         void *p;
33831 {
33832         return (void *) (p == NULL);
33833 }
33834
33835
33836 int main(argc, argv)
33837         int argc;
33838         char **argv;
33839 {
33840
33841         /* pthread test function */
33842 #ifndef PTHREAD_CREATE_DETACHED
33843 #define PTHREAD_CREATE_DETACHED 1
33844 #endif
33845         pthread_t t;
33846         int status;
33847         int detach = PTHREAD_CREATE_DETACHED;
33848
33849 #if HAVE_PTHREADS > 4
33850         /* Final pthreads */
33851         pthread_attr_t attr;
33852
33853         status = pthread_attr_init(&attr);
33854         if( status ) return status;
33855
33856 #if HAVE_PTHREADS < 7
33857         status = pthread_attr_setdetachstate(&attr, &detach);
33858         if( status < 0 ) status = errno;
33859 #else
33860         status = pthread_attr_setdetachstate(&attr, detach);
33861 #endif
33862         if( status ) return status;
33863         status = pthread_create( &t, &attr, task, NULL );
33864 #if HAVE_PTHREADS < 7
33865         if( status < 0 ) status = errno;
33866 #endif
33867         if( status ) return status;
33868 #else
33869         /* Draft 4 pthreads */
33870         status = pthread_create( &t, pthread_attr_default, task, NULL );
33871         if( status ) return errno;
33872
33873         /* give thread a chance to complete */
33874         /* it should remain joinable and hence detachable */
33875         sleep( 1 );
33876
33877         status = pthread_detach( &t );
33878         if( status ) return errno;
33879 #endif
33880
33881 #ifdef HAVE_LINUX_THREADS
33882         pthread_kill_other_threads_np();
33883 #endif
33884
33885         return 0;
33886
33887 }
33888
33889 _ACEOF
33890 rm -f conftest$ac_exeext
33891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33892   (eval $ac_link) 2>&5
33893   ac_status=$?
33894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33897   (eval $ac_try) 2>&5
33898   ac_status=$?
33899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900   (exit $ac_status); }; }; then
33901   ol_cv_pthread_lpthreads_lexc=yes
33902 else
33903   echo "$as_me: program exited with status $ac_status" >&5
33904 echo "$as_me: failed program was:" >&5
33905 sed 's/^/| /' conftest.$ac_ext >&5
33906
33907 ( exit $ac_status )
33908 ol_cv_pthread_lpthreads_lexc=no
33909 fi
33910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33911 fi
33912
33913                 # restore the LIBS
33914                 LIBS="$ol_LIBS"
33915
33916 fi
33917 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33918 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33919
33920         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33921                 ol_link_pthreads="-lpthreads -lexc"
33922                 ol_link_threads=posix
33923         fi
33924 fi
33925
33926
33927                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33928 if test "$ol_link_threads" = no ; then
33929         # try -lpthreads
33930         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33931 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33932 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33933   echo $ECHO_N "(cached) $ECHO_C" >&6
33934 else
33935
33936                 # save the flags
33937                 ol_LIBS="$LIBS"
33938                 LIBS="-lpthreads $LIBS"
33939
33940                 if test "$cross_compiling" = yes; then
33941   cat >conftest.$ac_ext <<_ACEOF
33942 /* confdefs.h.  */
33943 _ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h.  */
33947
33948 /* pthread test headers */
33949 #include <pthread.h>
33950 #if HAVE_PTHREADS < 7
33951 #include <errno.h>
33952 #endif
33953 #ifndef NULL
33954 #define NULL (void*)0
33955 #endif
33956
33957 static void *task(p)
33958         void *p;
33959 {
33960         return (void *) (p == NULL);
33961 }
33962
33963 int
33964 main ()
33965 {
33966
33967         /* pthread test function */
33968 #ifndef PTHREAD_CREATE_DETACHED
33969 #define PTHREAD_CREATE_DETACHED 1
33970 #endif
33971         pthread_t t;
33972         int status;
33973         int detach = PTHREAD_CREATE_DETACHED;
33974
33975 #if HAVE_PTHREADS > 4
33976         /* Final pthreads */
33977         pthread_attr_t attr;
33978
33979         status = pthread_attr_init(&attr);
33980         if( status ) return status;
33981
33982 #if HAVE_PTHREADS < 7
33983         status = pthread_attr_setdetachstate(&attr, &detach);
33984         if( status < 0 ) status = errno;
33985 #else
33986         status = pthread_attr_setdetachstate(&attr, detach);
33987 #endif
33988         if( status ) return status;
33989         status = pthread_create( &t, &attr, task, NULL );
33990 #if HAVE_PTHREADS < 7
33991         if( status < 0 ) status = errno;
33992 #endif
33993         if( status ) return status;
33994 #else
33995         /* Draft 4 pthreads */
33996         status = pthread_create( &t, pthread_attr_default, task, NULL );
33997         if( status ) return errno;
33998
33999         /* give thread a chance to complete */
34000         /* it should remain joinable and hence detachable */
34001         sleep( 1 );
34002
34003         status = pthread_detach( &t );
34004         if( status ) return errno;
34005 #endif
34006
34007 #ifdef HAVE_LINUX_THREADS
34008         pthread_kill_other_threads_np();
34009 #endif
34010
34011         return 0;
34012
34013   ;
34014   return 0;
34015 }
34016 _ACEOF
34017 rm -f conftest.$ac_objext conftest$ac_exeext
34018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34019   (eval $ac_link) 2>conftest.er1
34020   ac_status=$?
34021   grep -v '^ *+' conftest.er1 >conftest.err
34022   rm -f conftest.er1
34023   cat conftest.err >&5
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); } &&
34026          { ac_try='test -z "$ac_c_werror_flag"
34027                          || test ! -s conftest.err'
34028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029   (eval $ac_try) 2>&5
34030   ac_status=$?
34031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032   (exit $ac_status); }; } &&
34033          { ac_try='test -s conftest$ac_exeext'
34034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035   (eval $ac_try) 2>&5
34036   ac_status=$?
34037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038   (exit $ac_status); }; }; then
34039   ol_cv_pthread_lib_lpthreads=yes
34040 else
34041   echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34043
34044 ol_cv_pthread_lib_lpthreads=no
34045 fi
34046 rm -f conftest.err conftest.$ac_objext \
34047       conftest$ac_exeext conftest.$ac_ext
34048 else
34049   cat >conftest.$ac_ext <<_ACEOF
34050
34051 /* pthread test headers */
34052 #include <pthread.h>
34053 #if HAVE_PTHREADS < 7
34054 #include <errno.h>
34055 #endif
34056 #ifndef NULL
34057 #define NULL (void*)0
34058 #endif
34059
34060 static void *task(p)
34061         void *p;
34062 {
34063         return (void *) (p == NULL);
34064 }
34065
34066
34067 int main(argc, argv)
34068         int argc;
34069         char **argv;
34070 {
34071
34072         /* pthread test function */
34073 #ifndef PTHREAD_CREATE_DETACHED
34074 #define PTHREAD_CREATE_DETACHED 1
34075 #endif
34076         pthread_t t;
34077         int status;
34078         int detach = PTHREAD_CREATE_DETACHED;
34079
34080 #if HAVE_PTHREADS > 4
34081         /* Final pthreads */
34082         pthread_attr_t attr;
34083
34084         status = pthread_attr_init(&attr);
34085         if( status ) return status;
34086
34087 #if HAVE_PTHREADS < 7
34088         status = pthread_attr_setdetachstate(&attr, &detach);
34089         if( status < 0 ) status = errno;
34090 #else
34091         status = pthread_attr_setdetachstate(&attr, detach);
34092 #endif
34093         if( status ) return status;
34094         status = pthread_create( &t, &attr, task, NULL );
34095 #if HAVE_PTHREADS < 7
34096         if( status < 0 ) status = errno;
34097 #endif
34098         if( status ) return status;
34099 #else
34100         /* Draft 4 pthreads */
34101         status = pthread_create( &t, pthread_attr_default, task, NULL );
34102         if( status ) return errno;
34103
34104         /* give thread a chance to complete */
34105         /* it should remain joinable and hence detachable */
34106         sleep( 1 );
34107
34108         status = pthread_detach( &t );
34109         if( status ) return errno;
34110 #endif
34111
34112 #ifdef HAVE_LINUX_THREADS
34113         pthread_kill_other_threads_np();
34114 #endif
34115
34116         return 0;
34117
34118 }
34119
34120 _ACEOF
34121 rm -f conftest$ac_exeext
34122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34123   (eval $ac_link) 2>&5
34124   ac_status=$?
34125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34128   (eval $ac_try) 2>&5
34129   ac_status=$?
34130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131   (exit $ac_status); }; }; then
34132   ol_cv_pthread_lib_lpthreads=yes
34133 else
34134   echo "$as_me: program exited with status $ac_status" >&5
34135 echo "$as_me: failed program was:" >&5
34136 sed 's/^/| /' conftest.$ac_ext >&5
34137
34138 ( exit $ac_status )
34139 ol_cv_pthread_lib_lpthreads=no
34140 fi
34141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34142 fi
34143
34144                 # restore the LIBS
34145                 LIBS="$ol_LIBS"
34146
34147 fi
34148 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34149 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34150
34151         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34152                 ol_link_pthreads="-lpthreads"
34153                 ol_link_threads=posix
34154         fi
34155 fi
34156
34157
34158                 if test $ol_link_threads != no ; then
34159                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34160
34161                                                 save_CPPFLAGS="$CPPFLAGS"
34162                         save_LIBS="$LIBS"
34163                         LIBS="$LTHREAD_LIBS $LIBS"
34164
34165
34166
34167
34168 for ac_func in sched_yield pthread_yield thr_yield
34169 do
34170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34171 echo "$as_me:$LINENO: checking for $ac_func" >&5
34172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34173 if eval "test \"\${$as_ac_var+set}\" = set"; then
34174   echo $ECHO_N "(cached) $ECHO_C" >&6
34175 else
34176   cat >conftest.$ac_ext <<_ACEOF
34177 /* confdefs.h.  */
34178 _ACEOF
34179 cat confdefs.h >>conftest.$ac_ext
34180 cat >>conftest.$ac_ext <<_ACEOF
34181 /* end confdefs.h.  */
34182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34184 #define $ac_func innocuous_$ac_func
34185
34186 /* System header to define __stub macros and hopefully few prototypes,
34187     which can conflict with char $ac_func (); below.
34188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34189     <limits.h> exists even on freestanding compilers.  */
34190
34191 #ifdef __STDC__
34192 # include <limits.h>
34193 #else
34194 # include <assert.h>
34195 #endif
34196
34197 #undef $ac_func
34198
34199 /* Override any gcc2 internal prototype to avoid an error.  */
34200 #ifdef __cplusplus
34201 extern "C"
34202 {
34203 #endif
34204 /* We use char because int might match the return type of a gcc2
34205    builtin and then its argument prototype would still apply.  */
34206 char $ac_func ();
34207 /* The GNU C library defines this for functions which it implements
34208     to always fail with ENOSYS.  Some functions are actually named
34209     something starting with __ and the normal name is an alias.  */
34210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34211 choke me
34212 #else
34213 char (*f) () = $ac_func;
34214 #endif
34215 #ifdef __cplusplus
34216 }
34217 #endif
34218
34219 int
34220 main ()
34221 {
34222 return f != $ac_func;
34223   ;
34224   return 0;
34225 }
34226 _ACEOF
34227 rm -f conftest.$ac_objext conftest$ac_exeext
34228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34229   (eval $ac_link) 2>conftest.er1
34230   ac_status=$?
34231   grep -v '^ *+' conftest.er1 >conftest.err
34232   rm -f conftest.er1
34233   cat conftest.err >&5
34234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235   (exit $ac_status); } &&
34236          { ac_try='test -z "$ac_c_werror_flag"
34237                          || test ! -s conftest.err'
34238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34239   (eval $ac_try) 2>&5
34240   ac_status=$?
34241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242   (exit $ac_status); }; } &&
34243          { ac_try='test -s conftest$ac_exeext'
34244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34245   (eval $ac_try) 2>&5
34246   ac_status=$?
34247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248   (exit $ac_status); }; }; then
34249   eval "$as_ac_var=yes"
34250 else
34251   echo "$as_me: failed program was:" >&5
34252 sed 's/^/| /' conftest.$ac_ext >&5
34253
34254 eval "$as_ac_var=no"
34255 fi
34256 rm -f conftest.err conftest.$ac_objext \
34257       conftest$ac_exeext conftest.$ac_ext
34258 fi
34259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34261 if test `eval echo '${'$as_ac_var'}'` = yes; then
34262   cat >>confdefs.h <<_ACEOF
34263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34264 _ACEOF
34265
34266 fi
34267 done
34268
34269
34270                         if test $ac_cv_func_sched_yield = no -a \
34271                                 $ac_cv_func_pthread_yield = no -a \
34272                                 $ac_cv_func_thr_yield = no ; then
34273                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34274 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34275 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34276   echo $ECHO_N "(cached) $ECHO_C" >&6
34277 else
34278   ac_check_lib_save_LIBS=$LIBS
34279 LIBS="-lrt  $LIBS"
34280 cat >conftest.$ac_ext <<_ACEOF
34281 /* confdefs.h.  */
34282 _ACEOF
34283 cat confdefs.h >>conftest.$ac_ext
34284 cat >>conftest.$ac_ext <<_ACEOF
34285 /* end confdefs.h.  */
34286
34287 /* Override any gcc2 internal prototype to avoid an error.  */
34288 #ifdef __cplusplus
34289 extern "C"
34290 #endif
34291 /* We use char because int might match the return type of a gcc2
34292    builtin and then its argument prototype would still apply.  */
34293 char sched_yield ();
34294 int
34295 main ()
34296 {
34297 sched_yield ();
34298   ;
34299   return 0;
34300 }
34301 _ACEOF
34302 rm -f conftest.$ac_objext conftest$ac_exeext
34303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34304   (eval $ac_link) 2>conftest.er1
34305   ac_status=$?
34306   grep -v '^ *+' conftest.er1 >conftest.err
34307   rm -f conftest.er1
34308   cat conftest.err >&5
34309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310   (exit $ac_status); } &&
34311          { ac_try='test -z "$ac_c_werror_flag"
34312                          || test ! -s conftest.err'
34313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34314   (eval $ac_try) 2>&5
34315   ac_status=$?
34316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317   (exit $ac_status); }; } &&
34318          { ac_try='test -s conftest$ac_exeext'
34319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34320   (eval $ac_try) 2>&5
34321   ac_status=$?
34322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323   (exit $ac_status); }; }; then
34324   ac_cv_lib_rt_sched_yield=yes
34325 else
34326   echo "$as_me: failed program was:" >&5
34327 sed 's/^/| /' conftest.$ac_ext >&5
34328
34329 ac_cv_lib_rt_sched_yield=no
34330 fi
34331 rm -f conftest.err conftest.$ac_objext \
34332       conftest$ac_exeext conftest.$ac_ext
34333 LIBS=$ac_check_lib_save_LIBS
34334 fi
34335 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34336 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34337 if test $ac_cv_lib_rt_sched_yield = yes; then
34338   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34339
34340 cat >>confdefs.h <<\_ACEOF
34341 #define HAVE_SCHED_YIELD 1
34342 _ACEOF
34343
34344                                         ac_cv_func_sched_yield=yes
34345 else
34346   ac_cv_func_sched_yield=no
34347 fi
34348
34349                         fi
34350                         if test $ac_cv_func_sched_yield = no -a \
34351                                 $ac_cv_func_pthread_yield = no -a \
34352                                 "$ac_cv_func_thr_yield" = no ; then
34353                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34354 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34355                         fi
34356
34357
34358
34359 for ac_func in pthread_kill pthread_rwlock_destroy
34360 do
34361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34362 echo "$as_me:$LINENO: checking for $ac_func" >&5
34363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34364 if eval "test \"\${$as_ac_var+set}\" = set"; then
34365   echo $ECHO_N "(cached) $ECHO_C" >&6
34366 else
34367   cat >conftest.$ac_ext <<_ACEOF
34368 /* confdefs.h.  */
34369 _ACEOF
34370 cat confdefs.h >>conftest.$ac_ext
34371 cat >>conftest.$ac_ext <<_ACEOF
34372 /* end confdefs.h.  */
34373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34375 #define $ac_func innocuous_$ac_func
34376
34377 /* System header to define __stub macros and hopefully few prototypes,
34378     which can conflict with char $ac_func (); below.
34379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34380     <limits.h> exists even on freestanding compilers.  */
34381
34382 #ifdef __STDC__
34383 # include <limits.h>
34384 #else
34385 # include <assert.h>
34386 #endif
34387
34388 #undef $ac_func
34389
34390 /* Override any gcc2 internal prototype to avoid an error.  */
34391 #ifdef __cplusplus
34392 extern "C"
34393 {
34394 #endif
34395 /* We use char because int might match the return type of a gcc2
34396    builtin and then its argument prototype would still apply.  */
34397 char $ac_func ();
34398 /* The GNU C library defines this for functions which it implements
34399     to always fail with ENOSYS.  Some functions are actually named
34400     something starting with __ and the normal name is an alias.  */
34401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34402 choke me
34403 #else
34404 char (*f) () = $ac_func;
34405 #endif
34406 #ifdef __cplusplus
34407 }
34408 #endif
34409
34410 int
34411 main ()
34412 {
34413 return f != $ac_func;
34414   ;
34415   return 0;
34416 }
34417 _ACEOF
34418 rm -f conftest.$ac_objext conftest$ac_exeext
34419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34420   (eval $ac_link) 2>conftest.er1
34421   ac_status=$?
34422   grep -v '^ *+' conftest.er1 >conftest.err
34423   rm -f conftest.er1
34424   cat conftest.err >&5
34425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426   (exit $ac_status); } &&
34427          { ac_try='test -z "$ac_c_werror_flag"
34428                          || test ! -s conftest.err'
34429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34430   (eval $ac_try) 2>&5
34431   ac_status=$?
34432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433   (exit $ac_status); }; } &&
34434          { ac_try='test -s conftest$ac_exeext'
34435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436   (eval $ac_try) 2>&5
34437   ac_status=$?
34438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439   (exit $ac_status); }; }; then
34440   eval "$as_ac_var=yes"
34441 else
34442   echo "$as_me: failed program was:" >&5
34443 sed 's/^/| /' conftest.$ac_ext >&5
34444
34445 eval "$as_ac_var=no"
34446 fi
34447 rm -f conftest.err conftest.$ac_objext \
34448       conftest$ac_exeext conftest.$ac_ext
34449 fi
34450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34452 if test `eval echo '${'$as_ac_var'}'` = yes; then
34453   cat >>confdefs.h <<_ACEOF
34454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34455 _ACEOF
34456
34457 fi
34458 done
34459
34460
34461                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34462 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34463 if test "${ol_cv_func_pthread_detach+set}" = set; then
34464   echo $ECHO_N "(cached) $ECHO_C" >&6
34465 else
34466
34467                                                                 cat >conftest.$ac_ext <<_ACEOF
34468 /* confdefs.h.  */
34469 _ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h.  */
34473
34474 #include <pthread.h>
34475 #ifndef NULL
34476 #define NULL (void*)0
34477 #endif
34478
34479 int
34480 main ()
34481 {
34482 pthread_detach(NULL);
34483   ;
34484   return 0;
34485 }
34486 _ACEOF
34487 rm -f conftest.$ac_objext conftest$ac_exeext
34488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34489   (eval $ac_link) 2>conftest.er1
34490   ac_status=$?
34491   grep -v '^ *+' conftest.er1 >conftest.err
34492   rm -f conftest.er1
34493   cat conftest.err >&5
34494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495   (exit $ac_status); } &&
34496          { ac_try='test -z "$ac_c_werror_flag"
34497                          || test ! -s conftest.err'
34498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34499   (eval $ac_try) 2>&5
34500   ac_status=$?
34501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502   (exit $ac_status); }; } &&
34503          { ac_try='test -s conftest$ac_exeext'
34504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34505   (eval $ac_try) 2>&5
34506   ac_status=$?
34507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34508   (exit $ac_status); }; }; then
34509   ol_cv_func_pthread_detach=yes
34510 else
34511   echo "$as_me: failed program was:" >&5
34512 sed 's/^/| /' conftest.$ac_ext >&5
34513
34514 ol_cv_func_pthread_detach=no
34515 fi
34516 rm -f conftest.err conftest.$ac_objext \
34517       conftest$ac_exeext conftest.$ac_ext
34518
34519 fi
34520 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34521 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34522
34523                         if test $ol_cv_func_pthread_detach = no ; then
34524                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34525 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34526    { (exit 1); exit 1; }; }
34527                         fi
34528
34529
34530 cat >>confdefs.h <<\_ACEOF
34531 #define HAVE_PTHREAD_DETACH 1
34532 _ACEOF
34533
34534
34535
34536
34537
34538
34539 for ac_func in \
34540                                 pthread_setconcurrency \
34541                                 pthread_getconcurrency \
34542                                 thr_setconcurrency \
34543                                 thr_getconcurrency \
34544
34545 do
34546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34547 echo "$as_me:$LINENO: checking for $ac_func" >&5
34548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34549 if eval "test \"\${$as_ac_var+set}\" = set"; then
34550   echo $ECHO_N "(cached) $ECHO_C" >&6
34551 else
34552   cat >conftest.$ac_ext <<_ACEOF
34553 /* confdefs.h.  */
34554 _ACEOF
34555 cat confdefs.h >>conftest.$ac_ext
34556 cat >>conftest.$ac_ext <<_ACEOF
34557 /* end confdefs.h.  */
34558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34560 #define $ac_func innocuous_$ac_func
34561
34562 /* System header to define __stub macros and hopefully few prototypes,
34563     which can conflict with char $ac_func (); below.
34564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34565     <limits.h> exists even on freestanding compilers.  */
34566
34567 #ifdef __STDC__
34568 # include <limits.h>
34569 #else
34570 # include <assert.h>
34571 #endif
34572
34573 #undef $ac_func
34574
34575 /* Override any gcc2 internal prototype to avoid an error.  */
34576 #ifdef __cplusplus
34577 extern "C"
34578 {
34579 #endif
34580 /* We use char because int might match the return type of a gcc2
34581    builtin and then its argument prototype would still apply.  */
34582 char $ac_func ();
34583 /* The GNU C library defines this for functions which it implements
34584     to always fail with ENOSYS.  Some functions are actually named
34585     something starting with __ and the normal name is an alias.  */
34586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34587 choke me
34588 #else
34589 char (*f) () = $ac_func;
34590 #endif
34591 #ifdef __cplusplus
34592 }
34593 #endif
34594
34595 int
34596 main ()
34597 {
34598 return f != $ac_func;
34599   ;
34600   return 0;
34601 }
34602 _ACEOF
34603 rm -f conftest.$ac_objext conftest$ac_exeext
34604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34605   (eval $ac_link) 2>conftest.er1
34606   ac_status=$?
34607   grep -v '^ *+' conftest.er1 >conftest.err
34608   rm -f conftest.er1
34609   cat conftest.err >&5
34610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611   (exit $ac_status); } &&
34612          { ac_try='test -z "$ac_c_werror_flag"
34613                          || test ! -s conftest.err'
34614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34615   (eval $ac_try) 2>&5
34616   ac_status=$?
34617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618   (exit $ac_status); }; } &&
34619          { ac_try='test -s conftest$ac_exeext'
34620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34621   (eval $ac_try) 2>&5
34622   ac_status=$?
34623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624   (exit $ac_status); }; }; then
34625   eval "$as_ac_var=yes"
34626 else
34627   echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.$ac_ext >&5
34629
34630 eval "$as_ac_var=no"
34631 fi
34632 rm -f conftest.err conftest.$ac_objext \
34633       conftest$ac_exeext conftest.$ac_ext
34634 fi
34635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34637 if test `eval echo '${'$as_ac_var'}'` = yes; then
34638   cat >>confdefs.h <<_ACEOF
34639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34640 _ACEOF
34641
34642 fi
34643 done
34644
34645
34646
34647
34648 for ac_func in pthread_kill_other_threads_np
34649 do
34650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34651 echo "$as_me:$LINENO: checking for $ac_func" >&5
34652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34653 if eval "test \"\${$as_ac_var+set}\" = set"; then
34654   echo $ECHO_N "(cached) $ECHO_C" >&6
34655 else
34656   cat >conftest.$ac_ext <<_ACEOF
34657 /* confdefs.h.  */
34658 _ACEOF
34659 cat confdefs.h >>conftest.$ac_ext
34660 cat >>conftest.$ac_ext <<_ACEOF
34661 /* end confdefs.h.  */
34662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34664 #define $ac_func innocuous_$ac_func
34665
34666 /* System header to define __stub macros and hopefully few prototypes,
34667     which can conflict with char $ac_func (); below.
34668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34669     <limits.h> exists even on freestanding compilers.  */
34670
34671 #ifdef __STDC__
34672 # include <limits.h>
34673 #else
34674 # include <assert.h>
34675 #endif
34676
34677 #undef $ac_func
34678
34679 /* Override any gcc2 internal prototype to avoid an error.  */
34680 #ifdef __cplusplus
34681 extern "C"
34682 {
34683 #endif
34684 /* We use char because int might match the return type of a gcc2
34685    builtin and then its argument prototype would still apply.  */
34686 char $ac_func ();
34687 /* The GNU C library defines this for functions which it implements
34688     to always fail with ENOSYS.  Some functions are actually named
34689     something starting with __ and the normal name is an alias.  */
34690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34691 choke me
34692 #else
34693 char (*f) () = $ac_func;
34694 #endif
34695 #ifdef __cplusplus
34696 }
34697 #endif
34698
34699 int
34700 main ()
34701 {
34702 return f != $ac_func;
34703   ;
34704   return 0;
34705 }
34706 _ACEOF
34707 rm -f conftest.$ac_objext conftest$ac_exeext
34708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34709   (eval $ac_link) 2>conftest.er1
34710   ac_status=$?
34711   grep -v '^ *+' conftest.er1 >conftest.err
34712   rm -f conftest.er1
34713   cat conftest.err >&5
34714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715   (exit $ac_status); } &&
34716          { ac_try='test -z "$ac_c_werror_flag"
34717                          || test ! -s conftest.err'
34718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34719   (eval $ac_try) 2>&5
34720   ac_status=$?
34721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722   (exit $ac_status); }; } &&
34723          { ac_try='test -s conftest$ac_exeext'
34724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34725   (eval $ac_try) 2>&5
34726   ac_status=$?
34727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728   (exit $ac_status); }; }; then
34729   eval "$as_ac_var=yes"
34730 else
34731   echo "$as_me: failed program was:" >&5
34732 sed 's/^/| /' conftest.$ac_ext >&5
34733
34734 eval "$as_ac_var=no"
34735 fi
34736 rm -f conftest.err conftest.$ac_objext \
34737       conftest$ac_exeext conftest.$ac_ext
34738 fi
34739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34741 if test `eval echo '${'$as_ac_var'}'` = yes; then
34742   cat >>confdefs.h <<_ACEOF
34743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34744 _ACEOF
34745
34746 fi
34747 done
34748
34749         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34750 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34751 if test "${ol_cv_sys_linux_threads+set}" = set; then
34752   echo $ECHO_N "(cached) $ECHO_C" >&6
34753 else
34754   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34755 fi
34756 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34757 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34758
34759
34760
34761
34762         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34763 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34764 if test "${ol_cv_linux_threads+set}" = set; then
34765   echo $ECHO_N "(cached) $ECHO_C" >&6
34766 else
34767
34768                 if test $ol_cv_header_linux_threads = yes -a \
34769                         $ol_cv_sys_linux_threads = yes; then
34770                         ol_cv_linux_threads=yes
34771                 elif test $ol_cv_header_linux_threads = no -a \
34772                         $ol_cv_sys_linux_threads = no; then
34773                         ol_cv_linux_threads=no
34774                 else
34775                         ol_cv_linux_threads=error
34776                 fi
34777
34778 fi
34779 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34780 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34781
34782
34783                         if test $ol_cv_linux_threads = error; then
34784                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34785 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34786    { (exit 1); exit 1; }; };
34787                         fi
34788
34789                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34790 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34791 if test "${ol_cv_pthread_create_works+set}" = set; then
34792   echo $ECHO_N "(cached) $ECHO_C" >&6
34793 else
34794
34795                         if test "$cross_compiling" = yes; then
34796                                 ol_cv_pthread_create_works=yes
34797 else
34798   cat >conftest.$ac_ext <<_ACEOF
34799
34800 /* pthread test headers */
34801 #include <pthread.h>
34802 #if HAVE_PTHREADS < 7
34803 #include <errno.h>
34804 #endif
34805 #ifndef NULL
34806 #define NULL (void*)0
34807 #endif
34808
34809 static void *task(p)
34810         void *p;
34811 {
34812         return (void *) (p == NULL);
34813 }
34814
34815
34816 int main(argc, argv)
34817         int argc;
34818         char **argv;
34819 {
34820
34821         /* pthread test function */
34822 #ifndef PTHREAD_CREATE_DETACHED
34823 #define PTHREAD_CREATE_DETACHED 1
34824 #endif
34825         pthread_t t;
34826         int status;
34827         int detach = PTHREAD_CREATE_DETACHED;
34828
34829 #if HAVE_PTHREADS > 4
34830         /* Final pthreads */
34831         pthread_attr_t attr;
34832
34833         status = pthread_attr_init(&attr);
34834         if( status ) return status;
34835
34836 #if HAVE_PTHREADS < 7
34837         status = pthread_attr_setdetachstate(&attr, &detach);
34838         if( status < 0 ) status = errno;
34839 #else
34840         status = pthread_attr_setdetachstate(&attr, detach);
34841 #endif
34842         if( status ) return status;
34843         status = pthread_create( &t, &attr, task, NULL );
34844 #if HAVE_PTHREADS < 7
34845         if( status < 0 ) status = errno;
34846 #endif
34847         if( status ) return status;
34848 #else
34849         /* Draft 4 pthreads */
34850         status = pthread_create( &t, pthread_attr_default, task, NULL );
34851         if( status ) return errno;
34852
34853         /* give thread a chance to complete */
34854         /* it should remain joinable and hence detachable */
34855         sleep( 1 );
34856
34857         status = pthread_detach( &t );
34858         if( status ) return errno;
34859 #endif
34860
34861 #ifdef HAVE_LINUX_THREADS
34862         pthread_kill_other_threads_np();
34863 #endif
34864
34865         return 0;
34866
34867 }
34868
34869 _ACEOF
34870 rm -f conftest$ac_exeext
34871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34872   (eval $ac_link) 2>&5
34873   ac_status=$?
34874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877   (eval $ac_try) 2>&5
34878   ac_status=$?
34879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880   (exit $ac_status); }; }; then
34881   ol_cv_pthread_create_works=yes
34882 else
34883   echo "$as_me: program exited with status $ac_status" >&5
34884 echo "$as_me: failed program was:" >&5
34885 sed 's/^/| /' conftest.$ac_ext >&5
34886
34887 ( exit $ac_status )
34888 ol_cv_pthread_create_works=no
34889 fi
34890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34891 fi
34892 fi
34893 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34894 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34895
34896                         if test $ol_cv_pthread_create_works = no ; then
34897                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34898 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34899    { (exit 1); exit 1; }; }
34900                         fi
34901
34902                                                 if test $ol_with_yielding_select = auto ; then
34903                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34904 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34905 if test "${ol_cv_pthread_select_yields+set}" = set; then
34906   echo $ECHO_N "(cached) $ECHO_C" >&6
34907 else
34908
34909                                 if test "$cross_compiling" = yes; then
34910   ol_cv_pthread_select_yields=cross
34911 else
34912   cat >conftest.$ac_ext <<_ACEOF
34913 /* confdefs.h.  */
34914 _ACEOF
34915 cat confdefs.h >>conftest.$ac_ext
34916 cat >>conftest.$ac_ext <<_ACEOF
34917 /* end confdefs.h.  */
34918
34919 #include <sys/types.h>
34920 #include <sys/time.h>
34921 #include <unistd.h>
34922 #include <pthread.h>
34923 #ifndef NULL
34924 #define NULL (void*) 0
34925 #endif
34926
34927 static int fildes[2];
34928
34929 static void *task(p)
34930         void *p;
34931 {
34932         int i;
34933         struct timeval tv;
34934
34935         fd_set rfds;
34936
34937         tv.tv_sec=10;
34938         tv.tv_usec=0;
34939
34940         FD_ZERO(&rfds);
34941         FD_SET(fildes[0], &rfds);
34942
34943         /* we're not interested in any fds */
34944         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34945
34946         if(i < 0) {
34947                 perror("select");
34948                 exit(10);
34949         }
34950
34951         exit(0); /* if we exit here, the select blocked the whole process */
34952 }
34953
34954 int main(argc, argv)
34955         int argc;
34956         char **argv;
34957 {
34958         pthread_t t;
34959
34960         /* create a pipe to select */
34961         if(pipe(&fildes[0])) {
34962                 perror("select");
34963                 exit(1);
34964         }
34965
34966 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34967         (void) pthread_setconcurrency(2);
34968 #else
34969 #ifdef HAVE_THR_SETCONCURRENCY
34970         /* Set Solaris LWP concurrency to 2 */
34971         thr_setconcurrency(2);
34972 #endif
34973 #endif
34974
34975 #if HAVE_PTHREADS < 6
34976         pthread_create(&t, pthread_attr_default, task, NULL);
34977 #else
34978         pthread_create(&t, NULL, task, NULL);
34979 #endif
34980
34981         /* make sure task runs first */
34982 #if HAVE_THR_YIELD
34983         thr_yield();
34984 #elif defined( HAVE_SCHED_YIELD )
34985         sched_yield();
34986 #elif defined( HAVE_PTHREAD_YIELD )
34987         pthread_yield();
34988 #endif
34989
34990         exit(2);
34991 }
34992 _ACEOF
34993 rm -f conftest$ac_exeext
34994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34995   (eval $ac_link) 2>&5
34996   ac_status=$?
34997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000   (eval $ac_try) 2>&5
35001   ac_status=$?
35002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003   (exit $ac_status); }; }; then
35004   ol_cv_pthread_select_yields=no
35005 else
35006   echo "$as_me: program exited with status $ac_status" >&5
35007 echo "$as_me: failed program was:" >&5
35008 sed 's/^/| /' conftest.$ac_ext >&5
35009
35010 ( exit $ac_status )
35011 ol_cv_pthread_select_yields=yes
35012 fi
35013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35014 fi
35015 fi
35016 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35017 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35018
35019                                 if test $ol_cv_pthread_select_yields = cross ; then
35020                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35021 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35022    { (exit 1); exit 1; }; }
35023                                 fi
35024
35025                                 if test $ol_cv_pthread_select_yields = yes ; then
35026                                         ol_with_yielding_select=yes
35027                                 fi
35028                         fi
35029
35030                                                 CPPFLAGS="$save_CPPFLAGS"
35031                         LIBS="$save_LIBS"
35032                 else
35033                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35034 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35035    { (exit 1); exit 1; }; }
35036                 fi
35037         fi
35038
35039         if test $ol_with_threads = posix ; then
35040                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35041 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35042    { (exit 1); exit 1; }; }
35043         fi
35044 fi
35045
35046 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35047         -o $ol_with_threads = mach ; then
35048
35049
35050
35051 for ac_header in mach/cthreads.h cthreads.h
35052 do
35053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35055   echo "$as_me:$LINENO: checking for $ac_header" >&5
35056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35058   echo $ECHO_N "(cached) $ECHO_C" >&6
35059 fi
35060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35062 else
35063   # Is the header compilable?
35064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35066 cat >conftest.$ac_ext <<_ACEOF
35067 /* confdefs.h.  */
35068 _ACEOF
35069 cat confdefs.h >>conftest.$ac_ext
35070 cat >>conftest.$ac_ext <<_ACEOF
35071 /* end confdefs.h.  */
35072 $ac_includes_default
35073 #include <$ac_header>
35074 _ACEOF
35075 rm -f conftest.$ac_objext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35077   (eval $ac_compile) 2>conftest.er1
35078   ac_status=$?
35079   grep -v '^ *+' conftest.er1 >conftest.err
35080   rm -f conftest.er1
35081   cat conftest.err >&5
35082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083   (exit $ac_status); } &&
35084          { ac_try='test -z "$ac_c_werror_flag"
35085                          || test ! -s conftest.err'
35086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087   (eval $ac_try) 2>&5
35088   ac_status=$?
35089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090   (exit $ac_status); }; } &&
35091          { ac_try='test -s conftest.$ac_objext'
35092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093   (eval $ac_try) 2>&5
35094   ac_status=$?
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); }; }; then
35097   ac_header_compiler=yes
35098 else
35099   echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35101
35102 ac_header_compiler=no
35103 fi
35104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35106 echo "${ECHO_T}$ac_header_compiler" >&6
35107
35108 # Is the header present?
35109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35111 cat >conftest.$ac_ext <<_ACEOF
35112 /* confdefs.h.  */
35113 _ACEOF
35114 cat confdefs.h >>conftest.$ac_ext
35115 cat >>conftest.$ac_ext <<_ACEOF
35116 /* end confdefs.h.  */
35117 #include <$ac_header>
35118 _ACEOF
35119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35121   ac_status=$?
35122   grep -v '^ *+' conftest.er1 >conftest.err
35123   rm -f conftest.er1
35124   cat conftest.err >&5
35125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126   (exit $ac_status); } >/dev/null; then
35127   if test -s conftest.err; then
35128     ac_cpp_err=$ac_c_preproc_warn_flag
35129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35130   else
35131     ac_cpp_err=
35132   fi
35133 else
35134   ac_cpp_err=yes
35135 fi
35136 if test -z "$ac_cpp_err"; then
35137   ac_header_preproc=yes
35138 else
35139   echo "$as_me: failed program was:" >&5
35140 sed 's/^/| /' conftest.$ac_ext >&5
35141
35142   ac_header_preproc=no
35143 fi
35144 rm -f conftest.err conftest.$ac_ext
35145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35146 echo "${ECHO_T}$ac_header_preproc" >&6
35147
35148 # So?  What about this header?
35149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35150   yes:no: )
35151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35155     ac_header_preproc=yes
35156     ;;
35157   no:yes:* )
35158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35160     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35161 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35162     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35164     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35165 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35168     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35170     (
35171       cat <<\_ASBOX
35172 ## ------------------------------------------ ##
35173 ## Report this to the AC_PACKAGE_NAME lists.  ##
35174 ## ------------------------------------------ ##
35175 _ASBOX
35176     ) |
35177       sed "s/^/$as_me: WARNING:     /" >&2
35178     ;;
35179 esac
35180 echo "$as_me:$LINENO: checking for $ac_header" >&5
35181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35183   echo $ECHO_N "(cached) $ECHO_C" >&6
35184 else
35185   eval "$as_ac_Header=\$ac_header_preproc"
35186 fi
35187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35189
35190 fi
35191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35192   cat >>confdefs.h <<_ACEOF
35193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35194 _ACEOF
35195
35196 fi
35197
35198 done
35199
35200         if test $ac_cv_header_mach_cthreads_h = yes ; then
35201                 ol_with_threads=found
35202
35203                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35204 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35205 if test "${ac_cv_func_cthread_fork+set}" = set; then
35206   echo $ECHO_N "(cached) $ECHO_C" >&6
35207 else
35208   cat >conftest.$ac_ext <<_ACEOF
35209 /* confdefs.h.  */
35210 _ACEOF
35211 cat confdefs.h >>conftest.$ac_ext
35212 cat >>conftest.$ac_ext <<_ACEOF
35213 /* end confdefs.h.  */
35214 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35216 #define cthread_fork innocuous_cthread_fork
35217
35218 /* System header to define __stub macros and hopefully few prototypes,
35219     which can conflict with char cthread_fork (); below.
35220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35221     <limits.h> exists even on freestanding compilers.  */
35222
35223 #ifdef __STDC__
35224 # include <limits.h>
35225 #else
35226 # include <assert.h>
35227 #endif
35228
35229 #undef cthread_fork
35230
35231 /* Override any gcc2 internal prototype to avoid an error.  */
35232 #ifdef __cplusplus
35233 extern "C"
35234 {
35235 #endif
35236 /* We use char because int might match the return type of a gcc2
35237    builtin and then its argument prototype would still apply.  */
35238 char cthread_fork ();
35239 /* The GNU C library defines this for functions which it implements
35240     to always fail with ENOSYS.  Some functions are actually named
35241     something starting with __ and the normal name is an alias.  */
35242 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35243 choke me
35244 #else
35245 char (*f) () = cthread_fork;
35246 #endif
35247 #ifdef __cplusplus
35248 }
35249 #endif
35250
35251 int
35252 main ()
35253 {
35254 return f != cthread_fork;
35255   ;
35256   return 0;
35257 }
35258 _ACEOF
35259 rm -f conftest.$ac_objext conftest$ac_exeext
35260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35261   (eval $ac_link) 2>conftest.er1
35262   ac_status=$?
35263   grep -v '^ *+' conftest.er1 >conftest.err
35264   rm -f conftest.er1
35265   cat conftest.err >&5
35266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267   (exit $ac_status); } &&
35268          { ac_try='test -z "$ac_c_werror_flag"
35269                          || test ! -s conftest.err'
35270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35271   (eval $ac_try) 2>&5
35272   ac_status=$?
35273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274   (exit $ac_status); }; } &&
35275          { ac_try='test -s conftest$ac_exeext'
35276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277   (eval $ac_try) 2>&5
35278   ac_status=$?
35279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280   (exit $ac_status); }; }; then
35281   ac_cv_func_cthread_fork=yes
35282 else
35283   echo "$as_me: failed program was:" >&5
35284 sed 's/^/| /' conftest.$ac_ext >&5
35285
35286 ac_cv_func_cthread_fork=no
35287 fi
35288 rm -f conftest.err conftest.$ac_objext \
35289       conftest$ac_exeext conftest.$ac_ext
35290 fi
35291 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35292 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35293 if test $ac_cv_func_cthread_fork = yes; then
35294   ol_link_threads=yes
35295 fi
35296
35297
35298                 if test $ol_link_threads = no ; then
35299                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35300 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35301 if test "${ol_cv_cthread_all_load+set}" = set; then
35302   echo $ECHO_N "(cached) $ECHO_C" >&6
35303 else
35304
35305                                                                 save_LIBS="$LIBS"
35306                                 LIBS="-all_load $LIBS"
35307                                 cat >conftest.$ac_ext <<_ACEOF
35308 /* confdefs.h.  */
35309 _ACEOF
35310 cat confdefs.h >>conftest.$ac_ext
35311 cat >>conftest.$ac_ext <<_ACEOF
35312 /* end confdefs.h.  */
35313 #include <mach/cthreads.h>
35314 int
35315 main ()
35316 {
35317
35318                                         cthread_fork((void *)0, (void *)0);
35319
35320   ;
35321   return 0;
35322 }
35323 _ACEOF
35324 rm -f conftest.$ac_objext conftest$ac_exeext
35325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35326   (eval $ac_link) 2>conftest.er1
35327   ac_status=$?
35328   grep -v '^ *+' conftest.er1 >conftest.err
35329   rm -f conftest.er1
35330   cat conftest.err >&5
35331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332   (exit $ac_status); } &&
35333          { ac_try='test -z "$ac_c_werror_flag"
35334                          || test ! -s conftest.err'
35335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35336   (eval $ac_try) 2>&5
35337   ac_status=$?
35338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339   (exit $ac_status); }; } &&
35340          { ac_try='test -s conftest$ac_exeext'
35341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35342   (eval $ac_try) 2>&5
35343   ac_status=$?
35344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345   (exit $ac_status); }; }; then
35346   ol_cv_cthread_all_load=yes
35347 else
35348   echo "$as_me: failed program was:" >&5
35349 sed 's/^/| /' conftest.$ac_ext >&5
35350
35351 ol_cv_cthread_all_load=no
35352 fi
35353 rm -f conftest.err conftest.$ac_objext \
35354       conftest$ac_exeext conftest.$ac_ext
35355                                                                 LIBS="$save_LIBS"
35356
35357 fi
35358 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35359 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35360
35361                         if test $ol_cv_cthread_all_load = yes ; then
35362                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35363                                 ol_link_threads=mach
35364                                 ol_with_threads=found
35365                         fi
35366                 fi
35367
35368         elif test $ac_cv_header_cthreads_h = yes ; then
35369
35370                 ol_with_threads=found
35371
35372                                 save_LIBS="$LIBS"
35373                 LIBS="$LIBS -lthreads"
35374                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35375 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35376 if test "${ac_cv_func_cthread_fork+set}" = set; then
35377   echo $ECHO_N "(cached) $ECHO_C" >&6
35378 else
35379   cat >conftest.$ac_ext <<_ACEOF
35380 /* confdefs.h.  */
35381 _ACEOF
35382 cat confdefs.h >>conftest.$ac_ext
35383 cat >>conftest.$ac_ext <<_ACEOF
35384 /* end confdefs.h.  */
35385 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35387 #define cthread_fork innocuous_cthread_fork
35388
35389 /* System header to define __stub macros and hopefully few prototypes,
35390     which can conflict with char cthread_fork (); below.
35391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35392     <limits.h> exists even on freestanding compilers.  */
35393
35394 #ifdef __STDC__
35395 # include <limits.h>
35396 #else
35397 # include <assert.h>
35398 #endif
35399
35400 #undef cthread_fork
35401
35402 /* Override any gcc2 internal prototype to avoid an error.  */
35403 #ifdef __cplusplus
35404 extern "C"
35405 {
35406 #endif
35407 /* We use char because int might match the return type of a gcc2
35408    builtin and then its argument prototype would still apply.  */
35409 char cthread_fork ();
35410 /* The GNU C library defines this for functions which it implements
35411     to always fail with ENOSYS.  Some functions are actually named
35412     something starting with __ and the normal name is an alias.  */
35413 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35414 choke me
35415 #else
35416 char (*f) () = cthread_fork;
35417 #endif
35418 #ifdef __cplusplus
35419 }
35420 #endif
35421
35422 int
35423 main ()
35424 {
35425 return f != cthread_fork;
35426   ;
35427   return 0;
35428 }
35429 _ACEOF
35430 rm -f conftest.$ac_objext conftest$ac_exeext
35431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35432   (eval $ac_link) 2>conftest.er1
35433   ac_status=$?
35434   grep -v '^ *+' conftest.er1 >conftest.err
35435   rm -f conftest.er1
35436   cat conftest.err >&5
35437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438   (exit $ac_status); } &&
35439          { ac_try='test -z "$ac_c_werror_flag"
35440                          || test ! -s conftest.err'
35441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442   (eval $ac_try) 2>&5
35443   ac_status=$?
35444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445   (exit $ac_status); }; } &&
35446          { ac_try='test -s conftest$ac_exeext'
35447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35448   (eval $ac_try) 2>&5
35449   ac_status=$?
35450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451   (exit $ac_status); }; }; then
35452   ac_cv_func_cthread_fork=yes
35453 else
35454   echo "$as_me: failed program was:" >&5
35455 sed 's/^/| /' conftest.$ac_ext >&5
35456
35457 ac_cv_func_cthread_fork=no
35458 fi
35459 rm -f conftest.err conftest.$ac_objext \
35460       conftest$ac_exeext conftest.$ac_ext
35461 fi
35462 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35463 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35464 if test $ac_cv_func_cthread_fork = yes; then
35465   ol_link_threads=yes
35466 fi
35467
35468                 LIBS="$save_LIBS"
35469
35470                 if test $ol_link_threads = yes ; then
35471                         LTHREAD_LIBS="-lthreads"
35472                         ol_link_threads=mach
35473                         ol_with_threads=found
35474                 else
35475                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35476 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35477    { (exit 1); exit 1; }; }
35478                 fi
35479
35480         elif test $ol_with_threads = mach ; then
35481                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35482 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35483    { (exit 1); exit 1; }; }
35484         fi
35485
35486         if test $ol_link_threads = mach ; then
35487
35488 cat >>confdefs.h <<\_ACEOF
35489 #define HAVE_MACH_CTHREADS 1
35490 _ACEOF
35491
35492         elif test $ol_with_threads = found ; then
35493                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35494 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35495    { (exit 1); exit 1; }; }
35496         fi
35497 fi
35498
35499 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35500         -o $ol_with_threads = pth ; then
35501
35502
35503 for ac_header in pth.h
35504 do
35505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35507   echo "$as_me:$LINENO: checking for $ac_header" >&5
35508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35510   echo $ECHO_N "(cached) $ECHO_C" >&6
35511 fi
35512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35514 else
35515   # Is the header compilable?
35516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35518 cat >conftest.$ac_ext <<_ACEOF
35519 /* confdefs.h.  */
35520 _ACEOF
35521 cat confdefs.h >>conftest.$ac_ext
35522 cat >>conftest.$ac_ext <<_ACEOF
35523 /* end confdefs.h.  */
35524 $ac_includes_default
35525 #include <$ac_header>
35526 _ACEOF
35527 rm -f conftest.$ac_objext
35528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35529   (eval $ac_compile) 2>conftest.er1
35530   ac_status=$?
35531   grep -v '^ *+' conftest.er1 >conftest.err
35532   rm -f conftest.er1
35533   cat conftest.err >&5
35534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35535   (exit $ac_status); } &&
35536          { ac_try='test -z "$ac_c_werror_flag"
35537                          || test ! -s conftest.err'
35538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35539   (eval $ac_try) 2>&5
35540   ac_status=$?
35541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542   (exit $ac_status); }; } &&
35543          { ac_try='test -s conftest.$ac_objext'
35544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545   (eval $ac_try) 2>&5
35546   ac_status=$?
35547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548   (exit $ac_status); }; }; then
35549   ac_header_compiler=yes
35550 else
35551   echo "$as_me: failed program was:" >&5
35552 sed 's/^/| /' conftest.$ac_ext >&5
35553
35554 ac_header_compiler=no
35555 fi
35556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35558 echo "${ECHO_T}$ac_header_compiler" >&6
35559
35560 # Is the header present?
35561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35563 cat >conftest.$ac_ext <<_ACEOF
35564 /* confdefs.h.  */
35565 _ACEOF
35566 cat confdefs.h >>conftest.$ac_ext
35567 cat >>conftest.$ac_ext <<_ACEOF
35568 /* end confdefs.h.  */
35569 #include <$ac_header>
35570 _ACEOF
35571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35573   ac_status=$?
35574   grep -v '^ *+' conftest.er1 >conftest.err
35575   rm -f conftest.er1
35576   cat conftest.err >&5
35577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578   (exit $ac_status); } >/dev/null; then
35579   if test -s conftest.err; then
35580     ac_cpp_err=$ac_c_preproc_warn_flag
35581     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35582   else
35583     ac_cpp_err=
35584   fi
35585 else
35586   ac_cpp_err=yes
35587 fi
35588 if test -z "$ac_cpp_err"; then
35589   ac_header_preproc=yes
35590 else
35591   echo "$as_me: failed program was:" >&5
35592 sed 's/^/| /' conftest.$ac_ext >&5
35593
35594   ac_header_preproc=no
35595 fi
35596 rm -f conftest.err conftest.$ac_ext
35597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35598 echo "${ECHO_T}$ac_header_preproc" >&6
35599
35600 # So?  What about this header?
35601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35602   yes:no: )
35603     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35607     ac_header_preproc=yes
35608     ;;
35609   no:yes:* )
35610     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35612     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35613 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35614     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35616     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35617 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35620     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35622     (
35623       cat <<\_ASBOX
35624 ## ------------------------------------------ ##
35625 ## Report this to the AC_PACKAGE_NAME lists.  ##
35626 ## ------------------------------------------ ##
35627 _ASBOX
35628     ) |
35629       sed "s/^/$as_me: WARNING:     /" >&2
35630     ;;
35631 esac
35632 echo "$as_me:$LINENO: checking for $ac_header" >&5
35633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35635   echo $ECHO_N "(cached) $ECHO_C" >&6
35636 else
35637   eval "$as_ac_Header=\$ac_header_preproc"
35638 fi
35639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35641
35642 fi
35643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35644   cat >>confdefs.h <<_ACEOF
35645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35646 _ACEOF
35647
35648 fi
35649
35650 done
35651
35652
35653         if test $ac_cv_header_pth_h = yes ; then
35654                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35655 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35656 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35657   echo $ECHO_N "(cached) $ECHO_C" >&6
35658 else
35659   ac_check_lib_save_LIBS=$LIBS
35660 LIBS="-lpth  $LIBS"
35661 cat >conftest.$ac_ext <<_ACEOF
35662 /* confdefs.h.  */
35663 _ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h.  */
35667
35668 /* Override any gcc2 internal prototype to avoid an error.  */
35669 #ifdef __cplusplus
35670 extern "C"
35671 #endif
35672 /* We use char because int might match the return type of a gcc2
35673    builtin and then its argument prototype would still apply.  */
35674 char pth_version ();
35675 int
35676 main ()
35677 {
35678 pth_version ();
35679   ;
35680   return 0;
35681 }
35682 _ACEOF
35683 rm -f conftest.$ac_objext conftest$ac_exeext
35684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35685   (eval $ac_link) 2>conftest.er1
35686   ac_status=$?
35687   grep -v '^ *+' conftest.er1 >conftest.err
35688   rm -f conftest.er1
35689   cat conftest.err >&5
35690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691   (exit $ac_status); } &&
35692          { ac_try='test -z "$ac_c_werror_flag"
35693                          || test ! -s conftest.err'
35694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695   (eval $ac_try) 2>&5
35696   ac_status=$?
35697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698   (exit $ac_status); }; } &&
35699          { ac_try='test -s conftest$ac_exeext'
35700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701   (eval $ac_try) 2>&5
35702   ac_status=$?
35703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704   (exit $ac_status); }; }; then
35705   ac_cv_lib_pth_pth_version=yes
35706 else
35707   echo "$as_me: failed program was:" >&5
35708 sed 's/^/| /' conftest.$ac_ext >&5
35709
35710 ac_cv_lib_pth_pth_version=no
35711 fi
35712 rm -f conftest.err conftest.$ac_objext \
35713       conftest$ac_exeext conftest.$ac_ext
35714 LIBS=$ac_check_lib_save_LIBS
35715 fi
35716 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35717 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35718 if test $ac_cv_lib_pth_pth_version = yes; then
35719   have_pth=yes
35720 else
35721   have_pth=no
35722 fi
35723
35724
35725                 if test $have_pth = yes ; then
35726
35727 cat >>confdefs.h <<\_ACEOF
35728 #define HAVE_GNU_PTH 1
35729 _ACEOF
35730
35731                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35732                         ol_link_threads=pth
35733                         ol_with_threads=found
35734
35735                         if test $ol_with_yielding_select = auto ; then
35736                                 ol_with_yielding_select=yes
35737                         fi
35738                 fi
35739         fi
35740 fi
35741
35742 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35743         -o $ol_with_threads = lwp ; then
35744
35745
35746
35747 for ac_header in thread.h synch.h
35748 do
35749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35751   echo "$as_me:$LINENO: checking for $ac_header" >&5
35752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35754   echo $ECHO_N "(cached) $ECHO_C" >&6
35755 fi
35756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35758 else
35759   # Is the header compilable?
35760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35762 cat >conftest.$ac_ext <<_ACEOF
35763 /* confdefs.h.  */
35764 _ACEOF
35765 cat confdefs.h >>conftest.$ac_ext
35766 cat >>conftest.$ac_ext <<_ACEOF
35767 /* end confdefs.h.  */
35768 $ac_includes_default
35769 #include <$ac_header>
35770 _ACEOF
35771 rm -f conftest.$ac_objext
35772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35773   (eval $ac_compile) 2>conftest.er1
35774   ac_status=$?
35775   grep -v '^ *+' conftest.er1 >conftest.err
35776   rm -f conftest.er1
35777   cat conftest.err >&5
35778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779   (exit $ac_status); } &&
35780          { ac_try='test -z "$ac_c_werror_flag"
35781                          || test ! -s conftest.err'
35782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35783   (eval $ac_try) 2>&5
35784   ac_status=$?
35785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786   (exit $ac_status); }; } &&
35787          { ac_try='test -s conftest.$ac_objext'
35788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35789   (eval $ac_try) 2>&5
35790   ac_status=$?
35791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35792   (exit $ac_status); }; }; then
35793   ac_header_compiler=yes
35794 else
35795   echo "$as_me: failed program was:" >&5
35796 sed 's/^/| /' conftest.$ac_ext >&5
35797
35798 ac_header_compiler=no
35799 fi
35800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35802 echo "${ECHO_T}$ac_header_compiler" >&6
35803
35804 # Is the header present?
35805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35807 cat >conftest.$ac_ext <<_ACEOF
35808 /* confdefs.h.  */
35809 _ACEOF
35810 cat confdefs.h >>conftest.$ac_ext
35811 cat >>conftest.$ac_ext <<_ACEOF
35812 /* end confdefs.h.  */
35813 #include <$ac_header>
35814 _ACEOF
35815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35817   ac_status=$?
35818   grep -v '^ *+' conftest.er1 >conftest.err
35819   rm -f conftest.er1
35820   cat conftest.err >&5
35821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822   (exit $ac_status); } >/dev/null; then
35823   if test -s conftest.err; then
35824     ac_cpp_err=$ac_c_preproc_warn_flag
35825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35826   else
35827     ac_cpp_err=
35828   fi
35829 else
35830   ac_cpp_err=yes
35831 fi
35832 if test -z "$ac_cpp_err"; then
35833   ac_header_preproc=yes
35834 else
35835   echo "$as_me: failed program was:" >&5
35836 sed 's/^/| /' conftest.$ac_ext >&5
35837
35838   ac_header_preproc=no
35839 fi
35840 rm -f conftest.err conftest.$ac_ext
35841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35842 echo "${ECHO_T}$ac_header_preproc" >&6
35843
35844 # So?  What about this header?
35845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35846   yes:no: )
35847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35851     ac_header_preproc=yes
35852     ;;
35853   no:yes:* )
35854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35856     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35857 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35858     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35860     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35861 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35864     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35866     (
35867       cat <<\_ASBOX
35868 ## ------------------------------------------ ##
35869 ## Report this to the AC_PACKAGE_NAME lists.  ##
35870 ## ------------------------------------------ ##
35871 _ASBOX
35872     ) |
35873       sed "s/^/$as_me: WARNING:     /" >&2
35874     ;;
35875 esac
35876 echo "$as_me:$LINENO: checking for $ac_header" >&5
35877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35879   echo $ECHO_N "(cached) $ECHO_C" >&6
35880 else
35881   eval "$as_ac_Header=\$ac_header_preproc"
35882 fi
35883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35885
35886 fi
35887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35888   cat >>confdefs.h <<_ACEOF
35889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35890 _ACEOF
35891
35892 fi
35893
35894 done
35895
35896         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35897                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35898 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35899 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35900   echo $ECHO_N "(cached) $ECHO_C" >&6
35901 else
35902   ac_check_lib_save_LIBS=$LIBS
35903 LIBS="-lthread  $LIBS"
35904 cat >conftest.$ac_ext <<_ACEOF
35905 /* confdefs.h.  */
35906 _ACEOF
35907 cat confdefs.h >>conftest.$ac_ext
35908 cat >>conftest.$ac_ext <<_ACEOF
35909 /* end confdefs.h.  */
35910
35911 /* Override any gcc2 internal prototype to avoid an error.  */
35912 #ifdef __cplusplus
35913 extern "C"
35914 #endif
35915 /* We use char because int might match the return type of a gcc2
35916    builtin and then its argument prototype would still apply.  */
35917 char thr_create ();
35918 int
35919 main ()
35920 {
35921 thr_create ();
35922   ;
35923   return 0;
35924 }
35925 _ACEOF
35926 rm -f conftest.$ac_objext conftest$ac_exeext
35927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35928   (eval $ac_link) 2>conftest.er1
35929   ac_status=$?
35930   grep -v '^ *+' conftest.er1 >conftest.err
35931   rm -f conftest.er1
35932   cat conftest.err >&5
35933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35934   (exit $ac_status); } &&
35935          { ac_try='test -z "$ac_c_werror_flag"
35936                          || test ! -s conftest.err'
35937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938   (eval $ac_try) 2>&5
35939   ac_status=$?
35940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941   (exit $ac_status); }; } &&
35942          { ac_try='test -s conftest$ac_exeext'
35943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35944   (eval $ac_try) 2>&5
35945   ac_status=$?
35946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947   (exit $ac_status); }; }; then
35948   ac_cv_lib_thread_thr_create=yes
35949 else
35950   echo "$as_me: failed program was:" >&5
35951 sed 's/^/| /' conftest.$ac_ext >&5
35952
35953 ac_cv_lib_thread_thr_create=no
35954 fi
35955 rm -f conftest.err conftest.$ac_objext \
35956       conftest$ac_exeext conftest.$ac_ext
35957 LIBS=$ac_check_lib_save_LIBS
35958 fi
35959 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35960 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35961 if test $ac_cv_lib_thread_thr_create = yes; then
35962   have_thr=yes
35963 else
35964   have_thr=no
35965 fi
35966
35967
35968                 if test $have_thr = yes ; then
35969
35970 cat >>confdefs.h <<\_ACEOF
35971 #define HAVE_THR 1
35972 _ACEOF
35973
35974                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35975                         ol_link_threads=thr
35976
35977                         if test $ol_with_yielding_select = auto ; then
35978                                 ol_with_yielding_select=yes
35979                         fi
35980
35981
35982
35983 for ac_func in \
35984                                 thr_setconcurrency \
35985                                 thr_getconcurrency \
35986
35987 do
35988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35989 echo "$as_me:$LINENO: checking for $ac_func" >&5
35990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35991 if eval "test \"\${$as_ac_var+set}\" = set"; then
35992   echo $ECHO_N "(cached) $ECHO_C" >&6
35993 else
35994   cat >conftest.$ac_ext <<_ACEOF
35995 /* confdefs.h.  */
35996 _ACEOF
35997 cat confdefs.h >>conftest.$ac_ext
35998 cat >>conftest.$ac_ext <<_ACEOF
35999 /* end confdefs.h.  */
36000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36002 #define $ac_func innocuous_$ac_func
36003
36004 /* System header to define __stub macros and hopefully few prototypes,
36005     which can conflict with char $ac_func (); below.
36006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36007     <limits.h> exists even on freestanding compilers.  */
36008
36009 #ifdef __STDC__
36010 # include <limits.h>
36011 #else
36012 # include <assert.h>
36013 #endif
36014
36015 #undef $ac_func
36016
36017 /* Override any gcc2 internal prototype to avoid an error.  */
36018 #ifdef __cplusplus
36019 extern "C"
36020 {
36021 #endif
36022 /* We use char because int might match the return type of a gcc2
36023    builtin and then its argument prototype would still apply.  */
36024 char $ac_func ();
36025 /* The GNU C library defines this for functions which it implements
36026     to always fail with ENOSYS.  Some functions are actually named
36027     something starting with __ and the normal name is an alias.  */
36028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36029 choke me
36030 #else
36031 char (*f) () = $ac_func;
36032 #endif
36033 #ifdef __cplusplus
36034 }
36035 #endif
36036
36037 int
36038 main ()
36039 {
36040 return f != $ac_func;
36041   ;
36042   return 0;
36043 }
36044 _ACEOF
36045 rm -f conftest.$ac_objext conftest$ac_exeext
36046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36047   (eval $ac_link) 2>conftest.er1
36048   ac_status=$?
36049   grep -v '^ *+' conftest.er1 >conftest.err
36050   rm -f conftest.er1
36051   cat conftest.err >&5
36052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053   (exit $ac_status); } &&
36054          { ac_try='test -z "$ac_c_werror_flag"
36055                          || test ! -s conftest.err'
36056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36057   (eval $ac_try) 2>&5
36058   ac_status=$?
36059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060   (exit $ac_status); }; } &&
36061          { ac_try='test -s conftest$ac_exeext'
36062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063   (eval $ac_try) 2>&5
36064   ac_status=$?
36065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066   (exit $ac_status); }; }; then
36067   eval "$as_ac_var=yes"
36068 else
36069   echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36071
36072 eval "$as_ac_var=no"
36073 fi
36074 rm -f conftest.err conftest.$ac_objext \
36075       conftest$ac_exeext conftest.$ac_ext
36076 fi
36077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36079 if test `eval echo '${'$as_ac_var'}'` = yes; then
36080   cat >>confdefs.h <<_ACEOF
36081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36082 _ACEOF
36083
36084 fi
36085 done
36086
36087                 fi
36088         fi
36089
36090
36091 for ac_header in lwp/lwp.h
36092 do
36093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36095   echo "$as_me:$LINENO: checking for $ac_header" >&5
36096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36098   echo $ECHO_N "(cached) $ECHO_C" >&6
36099 fi
36100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36102 else
36103   # Is the header compilable?
36104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36106 cat >conftest.$ac_ext <<_ACEOF
36107 /* confdefs.h.  */
36108 _ACEOF
36109 cat confdefs.h >>conftest.$ac_ext
36110 cat >>conftest.$ac_ext <<_ACEOF
36111 /* end confdefs.h.  */
36112 $ac_includes_default
36113 #include <$ac_header>
36114 _ACEOF
36115 rm -f conftest.$ac_objext
36116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36117   (eval $ac_compile) 2>conftest.er1
36118   ac_status=$?
36119   grep -v '^ *+' conftest.er1 >conftest.err
36120   rm -f conftest.er1
36121   cat conftest.err >&5
36122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123   (exit $ac_status); } &&
36124          { ac_try='test -z "$ac_c_werror_flag"
36125                          || test ! -s conftest.err'
36126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36127   (eval $ac_try) 2>&5
36128   ac_status=$?
36129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36130   (exit $ac_status); }; } &&
36131          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
36138 else
36139   echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36141
36142 ac_header_compiler=no
36143 fi
36144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36146 echo "${ECHO_T}$ac_header_compiler" >&6
36147
36148 # Is the header present?
36149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36151 cat >conftest.$ac_ext <<_ACEOF
36152 /* confdefs.h.  */
36153 _ACEOF
36154 cat confdefs.h >>conftest.$ac_ext
36155 cat >>conftest.$ac_ext <<_ACEOF
36156 /* end confdefs.h.  */
36157 #include <$ac_header>
36158 _ACEOF
36159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36161   ac_status=$?
36162   grep -v '^ *+' conftest.er1 >conftest.err
36163   rm -f conftest.er1
36164   cat conftest.err >&5
36165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166   (exit $ac_status); } >/dev/null; then
36167   if test -s conftest.err; then
36168     ac_cpp_err=$ac_c_preproc_warn_flag
36169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36170   else
36171     ac_cpp_err=
36172   fi
36173 else
36174   ac_cpp_err=yes
36175 fi
36176 if test -z "$ac_cpp_err"; then
36177   ac_header_preproc=yes
36178 else
36179   echo "$as_me: failed program was:" >&5
36180 sed 's/^/| /' conftest.$ac_ext >&5
36181
36182   ac_header_preproc=no
36183 fi
36184 rm -f conftest.err conftest.$ac_ext
36185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36186 echo "${ECHO_T}$ac_header_preproc" >&6
36187
36188 # So?  What about this header?
36189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36190   yes:no: )
36191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36195     ac_header_preproc=yes
36196     ;;
36197   no:yes:* )
36198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36210     (
36211       cat <<\_ASBOX
36212 ## ------------------------------------------ ##
36213 ## Report this to the AC_PACKAGE_NAME lists.  ##
36214 ## ------------------------------------------ ##
36215 _ASBOX
36216     ) |
36217       sed "s/^/$as_me: WARNING:     /" >&2
36218     ;;
36219 esac
36220 echo "$as_me:$LINENO: checking for $ac_header" >&5
36221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36223   echo $ECHO_N "(cached) $ECHO_C" >&6
36224 else
36225   eval "$as_ac_Header=\$ac_header_preproc"
36226 fi
36227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36229
36230 fi
36231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36232   cat >>confdefs.h <<_ACEOF
36233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36234 _ACEOF
36235
36236 fi
36237
36238 done
36239
36240         if test $ac_cv_header_lwp_lwp_h = yes ; then
36241                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36242 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36243 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36244   echo $ECHO_N "(cached) $ECHO_C" >&6
36245 else
36246   ac_check_lib_save_LIBS=$LIBS
36247 LIBS="-llwp  $LIBS"
36248 cat >conftest.$ac_ext <<_ACEOF
36249 /* confdefs.h.  */
36250 _ACEOF
36251 cat confdefs.h >>conftest.$ac_ext
36252 cat >>conftest.$ac_ext <<_ACEOF
36253 /* end confdefs.h.  */
36254
36255 /* Override any gcc2 internal prototype to avoid an error.  */
36256 #ifdef __cplusplus
36257 extern "C"
36258 #endif
36259 /* We use char because int might match the return type of a gcc2
36260    builtin and then its argument prototype would still apply.  */
36261 char lwp_create ();
36262 int
36263 main ()
36264 {
36265 lwp_create ();
36266   ;
36267   return 0;
36268 }
36269 _ACEOF
36270 rm -f conftest.$ac_objext conftest$ac_exeext
36271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36272   (eval $ac_link) 2>conftest.er1
36273   ac_status=$?
36274   grep -v '^ *+' conftest.er1 >conftest.err
36275   rm -f conftest.er1
36276   cat conftest.err >&5
36277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278   (exit $ac_status); } &&
36279          { ac_try='test -z "$ac_c_werror_flag"
36280                          || test ! -s conftest.err'
36281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36282   (eval $ac_try) 2>&5
36283   ac_status=$?
36284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285   (exit $ac_status); }; } &&
36286          { ac_try='test -s conftest$ac_exeext'
36287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36288   (eval $ac_try) 2>&5
36289   ac_status=$?
36290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291   (exit $ac_status); }; }; then
36292   ac_cv_lib_lwp_lwp_create=yes
36293 else
36294   echo "$as_me: failed program was:" >&5
36295 sed 's/^/| /' conftest.$ac_ext >&5
36296
36297 ac_cv_lib_lwp_lwp_create=no
36298 fi
36299 rm -f conftest.err conftest.$ac_objext \
36300       conftest$ac_exeext conftest.$ac_ext
36301 LIBS=$ac_check_lib_save_LIBS
36302 fi
36303 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36304 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36305 if test $ac_cv_lib_lwp_lwp_create = yes; then
36306   have_lwp=yes
36307 else
36308   have_lwp=no
36309 fi
36310
36311
36312                 if test $have_lwp = yes ; then
36313
36314 cat >>confdefs.h <<\_ACEOF
36315 #define HAVE_LWP 1
36316 _ACEOF
36317
36318                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36319                         ol_link_threads=lwp
36320
36321                         if test $ol_with_yielding_select = auto ; then
36322                                 ol_with_yielding_select=no
36323                         fi
36324                 fi
36325         fi
36326 fi
36327
36328 if test $ol_with_yielding_select = yes ; then
36329
36330 cat >>confdefs.h <<\_ACEOF
36331 #define HAVE_YIELDING_SELECT 1
36332 _ACEOF
36333
36334 fi
36335
36336 if test $ol_with_threads = manual ; then
36337                 ol_link_threads=yes
36338
36339         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36340 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36341
36342
36343
36344 for ac_header in pthread.h sched.h
36345 do
36346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36348   echo "$as_me:$LINENO: checking for $ac_header" >&5
36349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36351   echo $ECHO_N "(cached) $ECHO_C" >&6
36352 fi
36353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36355 else
36356   # Is the header compilable?
36357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36359 cat >conftest.$ac_ext <<_ACEOF
36360 /* confdefs.h.  */
36361 _ACEOF
36362 cat confdefs.h >>conftest.$ac_ext
36363 cat >>conftest.$ac_ext <<_ACEOF
36364 /* end confdefs.h.  */
36365 $ac_includes_default
36366 #include <$ac_header>
36367 _ACEOF
36368 rm -f conftest.$ac_objext
36369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36370   (eval $ac_compile) 2>conftest.er1
36371   ac_status=$?
36372   grep -v '^ *+' conftest.er1 >conftest.err
36373   rm -f conftest.er1
36374   cat conftest.err >&5
36375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376   (exit $ac_status); } &&
36377          { ac_try='test -z "$ac_c_werror_flag"
36378                          || test ! -s conftest.err'
36379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36380   (eval $ac_try) 2>&5
36381   ac_status=$?
36382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383   (exit $ac_status); }; } &&
36384          { ac_try='test -s conftest.$ac_objext'
36385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36386   (eval $ac_try) 2>&5
36387   ac_status=$?
36388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389   (exit $ac_status); }; }; then
36390   ac_header_compiler=yes
36391 else
36392   echo "$as_me: failed program was:" >&5
36393 sed 's/^/| /' conftest.$ac_ext >&5
36394
36395 ac_header_compiler=no
36396 fi
36397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36399 echo "${ECHO_T}$ac_header_compiler" >&6
36400
36401 # Is the header present?
36402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36404 cat >conftest.$ac_ext <<_ACEOF
36405 /* confdefs.h.  */
36406 _ACEOF
36407 cat confdefs.h >>conftest.$ac_ext
36408 cat >>conftest.$ac_ext <<_ACEOF
36409 /* end confdefs.h.  */
36410 #include <$ac_header>
36411 _ACEOF
36412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36414   ac_status=$?
36415   grep -v '^ *+' conftest.er1 >conftest.err
36416   rm -f conftest.er1
36417   cat conftest.err >&5
36418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419   (exit $ac_status); } >/dev/null; then
36420   if test -s conftest.err; then
36421     ac_cpp_err=$ac_c_preproc_warn_flag
36422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36423   else
36424     ac_cpp_err=
36425   fi
36426 else
36427   ac_cpp_err=yes
36428 fi
36429 if test -z "$ac_cpp_err"; then
36430   ac_header_preproc=yes
36431 else
36432   echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36434
36435   ac_header_preproc=no
36436 fi
36437 rm -f conftest.err conftest.$ac_ext
36438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36439 echo "${ECHO_T}$ac_header_preproc" >&6
36440
36441 # So?  What about this header?
36442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36443   yes:no: )
36444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36448     ac_header_preproc=yes
36449     ;;
36450   no:yes:* )
36451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36463     (
36464       cat <<\_ASBOX
36465 ## ------------------------------------------ ##
36466 ## Report this to the AC_PACKAGE_NAME lists.  ##
36467 ## ------------------------------------------ ##
36468 _ASBOX
36469     ) |
36470       sed "s/^/$as_me: WARNING:     /" >&2
36471     ;;
36472 esac
36473 echo "$as_me:$LINENO: checking for $ac_header" >&5
36474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36476   echo $ECHO_N "(cached) $ECHO_C" >&6
36477 else
36478   eval "$as_ac_Header=\$ac_header_preproc"
36479 fi
36480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36482
36483 fi
36484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36485   cat >>confdefs.h <<_ACEOF
36486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36487 _ACEOF
36488
36489 fi
36490
36491 done
36492
36493
36494
36495 for ac_func in sched_yield pthread_yield
36496 do
36497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36498 echo "$as_me:$LINENO: checking for $ac_func" >&5
36499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36500 if eval "test \"\${$as_ac_var+set}\" = set"; then
36501   echo $ECHO_N "(cached) $ECHO_C" >&6
36502 else
36503   cat >conftest.$ac_ext <<_ACEOF
36504 /* confdefs.h.  */
36505 _ACEOF
36506 cat confdefs.h >>conftest.$ac_ext
36507 cat >>conftest.$ac_ext <<_ACEOF
36508 /* end confdefs.h.  */
36509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36511 #define $ac_func innocuous_$ac_func
36512
36513 /* System header to define __stub macros and hopefully few prototypes,
36514     which can conflict with char $ac_func (); below.
36515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36516     <limits.h> exists even on freestanding compilers.  */
36517
36518 #ifdef __STDC__
36519 # include <limits.h>
36520 #else
36521 # include <assert.h>
36522 #endif
36523
36524 #undef $ac_func
36525
36526 /* Override any gcc2 internal prototype to avoid an error.  */
36527 #ifdef __cplusplus
36528 extern "C"
36529 {
36530 #endif
36531 /* We use char because int might match the return type of a gcc2
36532    builtin and then its argument prototype would still apply.  */
36533 char $ac_func ();
36534 /* The GNU C library defines this for functions which it implements
36535     to always fail with ENOSYS.  Some functions are actually named
36536     something starting with __ and the normal name is an alias.  */
36537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36538 choke me
36539 #else
36540 char (*f) () = $ac_func;
36541 #endif
36542 #ifdef __cplusplus
36543 }
36544 #endif
36545
36546 int
36547 main ()
36548 {
36549 return f != $ac_func;
36550   ;
36551   return 0;
36552 }
36553 _ACEOF
36554 rm -f conftest.$ac_objext conftest$ac_exeext
36555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36556   (eval $ac_link) 2>conftest.er1
36557   ac_status=$?
36558   grep -v '^ *+' conftest.er1 >conftest.err
36559   rm -f conftest.er1
36560   cat conftest.err >&5
36561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562   (exit $ac_status); } &&
36563          { ac_try='test -z "$ac_c_werror_flag"
36564                          || test ! -s conftest.err'
36565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36566   (eval $ac_try) 2>&5
36567   ac_status=$?
36568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569   (exit $ac_status); }; } &&
36570          { ac_try='test -s conftest$ac_exeext'
36571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36572   (eval $ac_try) 2>&5
36573   ac_status=$?
36574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575   (exit $ac_status); }; }; then
36576   eval "$as_ac_var=yes"
36577 else
36578   echo "$as_me: failed program was:" >&5
36579 sed 's/^/| /' conftest.$ac_ext >&5
36580
36581 eval "$as_ac_var=no"
36582 fi
36583 rm -f conftest.err conftest.$ac_objext \
36584       conftest$ac_exeext conftest.$ac_ext
36585 fi
36586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36588 if test `eval echo '${'$as_ac_var'}'` = yes; then
36589   cat >>confdefs.h <<_ACEOF
36590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36591 _ACEOF
36592
36593 fi
36594 done
36595
36596
36597         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36598 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36599 if test "${ol_cv_header_linux_threads+set}" = set; then
36600   echo $ECHO_N "(cached) $ECHO_C" >&6
36601 else
36602   cat >conftest.$ac_ext <<_ACEOF
36603 /* confdefs.h.  */
36604 _ACEOF
36605 cat confdefs.h >>conftest.$ac_ext
36606 cat >>conftest.$ac_ext <<_ACEOF
36607 /* end confdefs.h.  */
36608 #include <pthread.h>
36609 _ACEOF
36610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36611   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36612   ol_cv_header_linux_threads=yes
36613 else
36614   ol_cv_header_linux_threads=no
36615 fi
36616 rm -f conftest*
36617
36618
36619 fi
36620 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36621 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36622         if test $ol_cv_header_linux_threads = yes; then
36623
36624 cat >>confdefs.h <<\_ACEOF
36625 #define HAVE_LINUX_THREADS 1
36626 _ACEOF
36627
36628         fi
36629
36630
36631
36632 for ac_header in mach/cthreads.h
36633 do
36634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36636   echo "$as_me:$LINENO: checking for $ac_header" >&5
36637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36639   echo $ECHO_N "(cached) $ECHO_C" >&6
36640 fi
36641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36643 else
36644   # Is the header compilable?
36645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36647 cat >conftest.$ac_ext <<_ACEOF
36648 /* confdefs.h.  */
36649 _ACEOF
36650 cat confdefs.h >>conftest.$ac_ext
36651 cat >>conftest.$ac_ext <<_ACEOF
36652 /* end confdefs.h.  */
36653 $ac_includes_default
36654 #include <$ac_header>
36655 _ACEOF
36656 rm -f conftest.$ac_objext
36657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36658   (eval $ac_compile) 2>conftest.er1
36659   ac_status=$?
36660   grep -v '^ *+' conftest.er1 >conftest.err
36661   rm -f conftest.er1
36662   cat conftest.err >&5
36663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664   (exit $ac_status); } &&
36665          { ac_try='test -z "$ac_c_werror_flag"
36666                          || test ! -s conftest.err'
36667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36668   (eval $ac_try) 2>&5
36669   ac_status=$?
36670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671   (exit $ac_status); }; } &&
36672          { ac_try='test -s conftest.$ac_objext'
36673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36674   (eval $ac_try) 2>&5
36675   ac_status=$?
36676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36677   (exit $ac_status); }; }; then
36678   ac_header_compiler=yes
36679 else
36680   echo "$as_me: failed program was:" >&5
36681 sed 's/^/| /' conftest.$ac_ext >&5
36682
36683 ac_header_compiler=no
36684 fi
36685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36687 echo "${ECHO_T}$ac_header_compiler" >&6
36688
36689 # Is the header present?
36690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36692 cat >conftest.$ac_ext <<_ACEOF
36693 /* confdefs.h.  */
36694 _ACEOF
36695 cat confdefs.h >>conftest.$ac_ext
36696 cat >>conftest.$ac_ext <<_ACEOF
36697 /* end confdefs.h.  */
36698 #include <$ac_header>
36699 _ACEOF
36700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36702   ac_status=$?
36703   grep -v '^ *+' conftest.er1 >conftest.err
36704   rm -f conftest.er1
36705   cat conftest.err >&5
36706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707   (exit $ac_status); } >/dev/null; then
36708   if test -s conftest.err; then
36709     ac_cpp_err=$ac_c_preproc_warn_flag
36710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36711   else
36712     ac_cpp_err=
36713   fi
36714 else
36715   ac_cpp_err=yes
36716 fi
36717 if test -z "$ac_cpp_err"; then
36718   ac_header_preproc=yes
36719 else
36720   echo "$as_me: failed program was:" >&5
36721 sed 's/^/| /' conftest.$ac_ext >&5
36722
36723   ac_header_preproc=no
36724 fi
36725 rm -f conftest.err conftest.$ac_ext
36726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36727 echo "${ECHO_T}$ac_header_preproc" >&6
36728
36729 # So?  What about this header?
36730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36731   yes:no: )
36732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36736     ac_header_preproc=yes
36737     ;;
36738   no:yes:* )
36739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36741     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36742 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36743     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36745     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36746 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36749     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36751     (
36752       cat <<\_ASBOX
36753 ## ------------------------------------------ ##
36754 ## Report this to the AC_PACKAGE_NAME lists.  ##
36755 ## ------------------------------------------ ##
36756 _ASBOX
36757     ) |
36758       sed "s/^/$as_me: WARNING:     /" >&2
36759     ;;
36760 esac
36761 echo "$as_me:$LINENO: checking for $ac_header" >&5
36762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36764   echo $ECHO_N "(cached) $ECHO_C" >&6
36765 else
36766   eval "$as_ac_Header=\$ac_header_preproc"
36767 fi
36768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36770
36771 fi
36772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36773   cat >>confdefs.h <<_ACEOF
36774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36775 _ACEOF
36776
36777 fi
36778
36779 done
36780
36781
36782 for ac_header in lwp/lwp.h
36783 do
36784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36786   echo "$as_me:$LINENO: checking for $ac_header" >&5
36787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36789   echo $ECHO_N "(cached) $ECHO_C" >&6
36790 fi
36791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36793 else
36794   # Is the header compilable?
36795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36797 cat >conftest.$ac_ext <<_ACEOF
36798 /* confdefs.h.  */
36799 _ACEOF
36800 cat confdefs.h >>conftest.$ac_ext
36801 cat >>conftest.$ac_ext <<_ACEOF
36802 /* end confdefs.h.  */
36803 $ac_includes_default
36804 #include <$ac_header>
36805 _ACEOF
36806 rm -f conftest.$ac_objext
36807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36808   (eval $ac_compile) 2>conftest.er1
36809   ac_status=$?
36810   grep -v '^ *+' conftest.er1 >conftest.err
36811   rm -f conftest.er1
36812   cat conftest.err >&5
36813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814   (exit $ac_status); } &&
36815          { ac_try='test -z "$ac_c_werror_flag"
36816                          || test ! -s conftest.err'
36817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36818   (eval $ac_try) 2>&5
36819   ac_status=$?
36820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821   (exit $ac_status); }; } &&
36822          { ac_try='test -s conftest.$ac_objext'
36823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36824   (eval $ac_try) 2>&5
36825   ac_status=$?
36826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827   (exit $ac_status); }; }; then
36828   ac_header_compiler=yes
36829 else
36830   echo "$as_me: failed program was:" >&5
36831 sed 's/^/| /' conftest.$ac_ext >&5
36832
36833 ac_header_compiler=no
36834 fi
36835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36837 echo "${ECHO_T}$ac_header_compiler" >&6
36838
36839 # Is the header present?
36840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36842 cat >conftest.$ac_ext <<_ACEOF
36843 /* confdefs.h.  */
36844 _ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h.  */
36848 #include <$ac_header>
36849 _ACEOF
36850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36852   ac_status=$?
36853   grep -v '^ *+' conftest.er1 >conftest.err
36854   rm -f conftest.er1
36855   cat conftest.err >&5
36856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857   (exit $ac_status); } >/dev/null; then
36858   if test -s conftest.err; then
36859     ac_cpp_err=$ac_c_preproc_warn_flag
36860     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36861   else
36862     ac_cpp_err=
36863   fi
36864 else
36865   ac_cpp_err=yes
36866 fi
36867 if test -z "$ac_cpp_err"; then
36868   ac_header_preproc=yes
36869 else
36870   echo "$as_me: failed program was:" >&5
36871 sed 's/^/| /' conftest.$ac_ext >&5
36872
36873   ac_header_preproc=no
36874 fi
36875 rm -f conftest.err conftest.$ac_ext
36876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36877 echo "${ECHO_T}$ac_header_preproc" >&6
36878
36879 # So?  What about this header?
36880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36881   yes:no: )
36882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36886     ac_header_preproc=yes
36887     ;;
36888   no:yes:* )
36889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36901     (
36902       cat <<\_ASBOX
36903 ## ------------------------------------------ ##
36904 ## Report this to the AC_PACKAGE_NAME lists.  ##
36905 ## ------------------------------------------ ##
36906 _ASBOX
36907     ) |
36908       sed "s/^/$as_me: WARNING:     /" >&2
36909     ;;
36910 esac
36911 echo "$as_me:$LINENO: checking for $ac_header" >&5
36912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36914   echo $ECHO_N "(cached) $ECHO_C" >&6
36915 else
36916   eval "$as_ac_Header=\$ac_header_preproc"
36917 fi
36918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36920
36921 fi
36922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36923   cat >>confdefs.h <<_ACEOF
36924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36925 _ACEOF
36926
36927 fi
36928
36929 done
36930
36931
36932
36933 for ac_header in thread.h synch.h
36934 do
36935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36937   echo "$as_me:$LINENO: checking for $ac_header" >&5
36938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36940   echo $ECHO_N "(cached) $ECHO_C" >&6
36941 fi
36942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36944 else
36945   # Is the header compilable?
36946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36948 cat >conftest.$ac_ext <<_ACEOF
36949 /* confdefs.h.  */
36950 _ACEOF
36951 cat confdefs.h >>conftest.$ac_ext
36952 cat >>conftest.$ac_ext <<_ACEOF
36953 /* end confdefs.h.  */
36954 $ac_includes_default
36955 #include <$ac_header>
36956 _ACEOF
36957 rm -f conftest.$ac_objext
36958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36959   (eval $ac_compile) 2>conftest.er1
36960   ac_status=$?
36961   grep -v '^ *+' conftest.er1 >conftest.err
36962   rm -f conftest.er1
36963   cat conftest.err >&5
36964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965   (exit $ac_status); } &&
36966          { ac_try='test -z "$ac_c_werror_flag"
36967                          || test ! -s conftest.err'
36968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36969   (eval $ac_try) 2>&5
36970   ac_status=$?
36971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972   (exit $ac_status); }; } &&
36973          { ac_try='test -s conftest.$ac_objext'
36974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36975   (eval $ac_try) 2>&5
36976   ac_status=$?
36977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36978   (exit $ac_status); }; }; then
36979   ac_header_compiler=yes
36980 else
36981   echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36983
36984 ac_header_compiler=no
36985 fi
36986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36988 echo "${ECHO_T}$ac_header_compiler" >&6
36989
36990 # Is the header present?
36991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36993 cat >conftest.$ac_ext <<_ACEOF
36994 /* confdefs.h.  */
36995 _ACEOF
36996 cat confdefs.h >>conftest.$ac_ext
36997 cat >>conftest.$ac_ext <<_ACEOF
36998 /* end confdefs.h.  */
36999 #include <$ac_header>
37000 _ACEOF
37001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37003   ac_status=$?
37004   grep -v '^ *+' conftest.er1 >conftest.err
37005   rm -f conftest.er1
37006   cat conftest.err >&5
37007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37008   (exit $ac_status); } >/dev/null; then
37009   if test -s conftest.err; then
37010     ac_cpp_err=$ac_c_preproc_warn_flag
37011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37012   else
37013     ac_cpp_err=
37014   fi
37015 else
37016   ac_cpp_err=yes
37017 fi
37018 if test -z "$ac_cpp_err"; then
37019   ac_header_preproc=yes
37020 else
37021   echo "$as_me: failed program was:" >&5
37022 sed 's/^/| /' conftest.$ac_ext >&5
37023
37024   ac_header_preproc=no
37025 fi
37026 rm -f conftest.err conftest.$ac_ext
37027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37028 echo "${ECHO_T}$ac_header_preproc" >&6
37029
37030 # So?  What about this header?
37031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37032   yes:no: )
37033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37037     ac_header_preproc=yes
37038     ;;
37039   no:yes:* )
37040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37042     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37043 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37044     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37046     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37047 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37050     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37052     (
37053       cat <<\_ASBOX
37054 ## ------------------------------------------ ##
37055 ## Report this to the AC_PACKAGE_NAME lists.  ##
37056 ## ------------------------------------------ ##
37057 _ASBOX
37058     ) |
37059       sed "s/^/$as_me: WARNING:     /" >&2
37060     ;;
37061 esac
37062 echo "$as_me:$LINENO: checking for $ac_header" >&5
37063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37065   echo $ECHO_N "(cached) $ECHO_C" >&6
37066 else
37067   eval "$as_ac_Header=\$ac_header_preproc"
37068 fi
37069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37071
37072 fi
37073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37074   cat >>confdefs.h <<_ACEOF
37075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37076 _ACEOF
37077
37078 fi
37079
37080 done
37081
37082 fi
37083
37084 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37085                         cat >>confdefs.h <<\_ACEOF
37086 #define REENTRANT 1
37087 _ACEOF
37088
37089         cat >>confdefs.h <<\_ACEOF
37090 #define _REENTRANT 1
37091 _ACEOF
37092
37093         cat >>confdefs.h <<\_ACEOF
37094 #define THREAD_SAFE 1
37095 _ACEOF
37096
37097         cat >>confdefs.h <<\_ACEOF
37098 #define _THREAD_SAFE 1
37099 _ACEOF
37100
37101         cat >>confdefs.h <<\_ACEOF
37102 #define THREADSAFE 1
37103 _ACEOF
37104
37105         cat >>confdefs.h <<\_ACEOF
37106 #define _THREADSAFE 1
37107 _ACEOF
37108
37109         cat >>confdefs.h <<\_ACEOF
37110 #define _SGI_MP_SOURCE 1
37111 _ACEOF
37112
37113
37114                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37115 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37116 if test "${ol_cv_errno_thread_specific+set}" = set; then
37117   echo $ECHO_N "(cached) $ECHO_C" >&6
37118 else
37119
37120                 cat >conftest.$ac_ext <<_ACEOF
37121 /* confdefs.h.  */
37122 _ACEOF
37123 cat confdefs.h >>conftest.$ac_ext
37124 cat >>conftest.$ac_ext <<_ACEOF
37125 /* end confdefs.h.  */
37126 #include <errno.h>
37127 int
37128 main ()
37129 {
37130 errno = 0;
37131   ;
37132   return 0;
37133 }
37134 _ACEOF
37135 rm -f conftest.$ac_objext conftest$ac_exeext
37136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37137   (eval $ac_link) 2>conftest.er1
37138   ac_status=$?
37139   grep -v '^ *+' conftest.er1 >conftest.err
37140   rm -f conftest.er1
37141   cat conftest.err >&5
37142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143   (exit $ac_status); } &&
37144          { ac_try='test -z "$ac_c_werror_flag"
37145                          || test ! -s conftest.err'
37146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37147   (eval $ac_try) 2>&5
37148   ac_status=$?
37149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150   (exit $ac_status); }; } &&
37151          { ac_try='test -s conftest$ac_exeext'
37152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37153   (eval $ac_try) 2>&5
37154   ac_status=$?
37155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156   (exit $ac_status); }; }; then
37157   ol_cv_errno_thread_specific=yes
37158 else
37159   echo "$as_me: failed program was:" >&5
37160 sed 's/^/| /' conftest.$ac_ext >&5
37161
37162 ol_cv_errno_thread_specific=no
37163 fi
37164 rm -f conftest.err conftest.$ac_objext \
37165       conftest$ac_exeext conftest.$ac_ext
37166
37167 fi
37168 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37169 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37170
37171                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37172 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37173 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37174   echo $ECHO_N "(cached) $ECHO_C" >&6
37175 else
37176
37177                 cat >conftest.$ac_ext <<_ACEOF
37178 /* confdefs.h.  */
37179 _ACEOF
37180 cat confdefs.h >>conftest.$ac_ext
37181 cat >>conftest.$ac_ext <<_ACEOF
37182 /* end confdefs.h.  */
37183 #include <netdb.h>
37184 int
37185 main ()
37186 {
37187 h_errno = 0;
37188   ;
37189   return 0;
37190 }
37191 _ACEOF
37192 rm -f conftest.$ac_objext conftest$ac_exeext
37193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37194   (eval $ac_link) 2>conftest.er1
37195   ac_status=$?
37196   grep -v '^ *+' conftest.er1 >conftest.err
37197   rm -f conftest.er1
37198   cat conftest.err >&5
37199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200   (exit $ac_status); } &&
37201          { ac_try='test -z "$ac_c_werror_flag"
37202                          || test ! -s conftest.err'
37203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37204   (eval $ac_try) 2>&5
37205   ac_status=$?
37206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207   (exit $ac_status); }; } &&
37208          { ac_try='test -s conftest$ac_exeext'
37209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210   (eval $ac_try) 2>&5
37211   ac_status=$?
37212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213   (exit $ac_status); }; }; then
37214   ol_cv_h_errno_thread_specific=yes
37215 else
37216   echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37218
37219 ol_cv_h_errno_thread_specific=no
37220 fi
37221 rm -f conftest.err conftest.$ac_objext \
37222       conftest$ac_exeext conftest.$ac_ext
37223
37224 fi
37225 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37226 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37227
37228         if test $ol_cv_errno_thread_specific != yes \
37229                 -o $ol_cv_h_errno_thread_specific != yes ; then
37230                 LIBS="$LTHREAD_LIBS $LIBS"
37231                 LTHREAD_LIBS=""
37232         fi
37233
37234 fi
37235
37236 if test $ol_link_threads = no ; then
37237         if test $ol_with_threads = yes ; then
37238                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37239 echo "$as_me: error: no suitable thread support" >&2;}
37240    { (exit 1); exit 1; }; }
37241         fi
37242
37243         if test $ol_with_threads = auto ; then
37244                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37245 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37246                 ol_with_threads=no
37247         fi
37248
37249
37250 cat >>confdefs.h <<\_ACEOF
37251 #define NO_THREADS 1
37252 _ACEOF
37253
37254         LTHREAD_LIBS=""
37255 fi
37256
37257 if test $ol_link_threads != no ; then
37258
37259 cat >>confdefs.h <<\_ACEOF
37260 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37261 _ACEOF
37262
37263 fi
37264
37265
37266
37267
37268 for ac_func in \
37269         ctime_r                 \
37270         gethostbyname_r gethostbyaddr_r \
37271
37272 do
37273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37274 echo "$as_me:$LINENO: checking for $ac_func" >&5
37275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37276 if eval "test \"\${$as_ac_var+set}\" = set"; then
37277   echo $ECHO_N "(cached) $ECHO_C" >&6
37278 else
37279   cat >conftest.$ac_ext <<_ACEOF
37280 /* confdefs.h.  */
37281 _ACEOF
37282 cat confdefs.h >>conftest.$ac_ext
37283 cat >>conftest.$ac_ext <<_ACEOF
37284 /* end confdefs.h.  */
37285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37287 #define $ac_func innocuous_$ac_func
37288
37289 /* System header to define __stub macros and hopefully few prototypes,
37290     which can conflict with char $ac_func (); below.
37291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37292     <limits.h> exists even on freestanding compilers.  */
37293
37294 #ifdef __STDC__
37295 # include <limits.h>
37296 #else
37297 # include <assert.h>
37298 #endif
37299
37300 #undef $ac_func
37301
37302 /* Override any gcc2 internal prototype to avoid an error.  */
37303 #ifdef __cplusplus
37304 extern "C"
37305 {
37306 #endif
37307 /* We use char because int might match the return type of a gcc2
37308    builtin and then its argument prototype would still apply.  */
37309 char $ac_func ();
37310 /* The GNU C library defines this for functions which it implements
37311     to always fail with ENOSYS.  Some functions are actually named
37312     something starting with __ and the normal name is an alias.  */
37313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37314 choke me
37315 #else
37316 char (*f) () = $ac_func;
37317 #endif
37318 #ifdef __cplusplus
37319 }
37320 #endif
37321
37322 int
37323 main ()
37324 {
37325 return f != $ac_func;
37326   ;
37327   return 0;
37328 }
37329 _ACEOF
37330 rm -f conftest.$ac_objext conftest$ac_exeext
37331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37332   (eval $ac_link) 2>conftest.er1
37333   ac_status=$?
37334   grep -v '^ *+' conftest.er1 >conftest.err
37335   rm -f conftest.er1
37336   cat conftest.err >&5
37337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37338   (exit $ac_status); } &&
37339          { ac_try='test -z "$ac_c_werror_flag"
37340                          || test ! -s conftest.err'
37341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37342   (eval $ac_try) 2>&5
37343   ac_status=$?
37344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345   (exit $ac_status); }; } &&
37346          { ac_try='test -s conftest$ac_exeext'
37347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37348   (eval $ac_try) 2>&5
37349   ac_status=$?
37350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351   (exit $ac_status); }; }; then
37352   eval "$as_ac_var=yes"
37353 else
37354   echo "$as_me: failed program was:" >&5
37355 sed 's/^/| /' conftest.$ac_ext >&5
37356
37357 eval "$as_ac_var=no"
37358 fi
37359 rm -f conftest.err conftest.$ac_objext \
37360       conftest$ac_exeext conftest.$ac_ext
37361 fi
37362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37364 if test `eval echo '${'$as_ac_var'}'` = yes; then
37365   cat >>confdefs.h <<_ACEOF
37366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37367 _ACEOF
37368
37369 fi
37370 done
37371
37372
37373 if test "$ac_cv_func_ctime_r" = no ; then
37374         ol_cv_func_ctime_r_nargs=0
37375 else
37376         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37377 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37378 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37379   echo $ECHO_N "(cached) $ECHO_C" >&6
37380 else
37381   cat >conftest.$ac_ext <<_ACEOF
37382 /* confdefs.h.  */
37383 _ACEOF
37384 cat confdefs.h >>conftest.$ac_ext
37385 cat >>conftest.$ac_ext <<_ACEOF
37386 /* end confdefs.h.  */
37387 #include <time.h>
37388 int
37389 main ()
37390 {
37391 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37392   ;
37393   return 0;
37394 }
37395 _ACEOF
37396 rm -f conftest.$ac_objext
37397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37398   (eval $ac_compile) 2>conftest.er1
37399   ac_status=$?
37400   grep -v '^ *+' conftest.er1 >conftest.err
37401   rm -f conftest.er1
37402   cat conftest.err >&5
37403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404   (exit $ac_status); } &&
37405          { ac_try='test -z "$ac_c_werror_flag"
37406                          || test ! -s conftest.err'
37407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37408   (eval $ac_try) 2>&5
37409   ac_status=$?
37410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411   (exit $ac_status); }; } &&
37412          { ac_try='test -s conftest.$ac_objext'
37413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37414   (eval $ac_try) 2>&5
37415   ac_status=$?
37416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417   (exit $ac_status); }; }; then
37418   ol_cv_func_ctime_r_nargs3=yes
37419 else
37420   echo "$as_me: failed program was:" >&5
37421 sed 's/^/| /' conftest.$ac_ext >&5
37422
37423 ol_cv_func_ctime_r_nargs3=no
37424 fi
37425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37426
37427         cat >conftest.$ac_ext <<_ACEOF
37428 /* confdefs.h.  */
37429 _ACEOF
37430 cat confdefs.h >>conftest.$ac_ext
37431 cat >>conftest.$ac_ext <<_ACEOF
37432 /* end confdefs.h.  */
37433 #include <time.h>
37434 int
37435 main ()
37436 {
37437 time_t ti; char *buffer; ctime_r(&ti,buffer);
37438   ;
37439   return 0;
37440 }
37441 _ACEOF
37442 rm -f conftest.$ac_objext
37443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37444   (eval $ac_compile) 2>conftest.er1
37445   ac_status=$?
37446   grep -v '^ *+' conftest.er1 >conftest.err
37447   rm -f conftest.er1
37448   cat conftest.err >&5
37449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450   (exit $ac_status); } &&
37451          { ac_try='test -z "$ac_c_werror_flag"
37452                          || test ! -s conftest.err'
37453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37454   (eval $ac_try) 2>&5
37455   ac_status=$?
37456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457   (exit $ac_status); }; } &&
37458          { ac_try='test -s conftest.$ac_objext'
37459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37460   (eval $ac_try) 2>&5
37461   ac_status=$?
37462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463   (exit $ac_status); }; }; then
37464   ol_cv_func_ctime_r_nargs2=yes
37465 else
37466   echo "$as_me: failed program was:" >&5
37467 sed 's/^/| /' conftest.$ac_ext >&5
37468
37469 ol_cv_func_ctime_r_nargs2=no
37470 fi
37471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37472
37473         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37474                 $ol_cv_func_ctime_r_nargs2 = no ; then
37475
37476                 ol_cv_func_ctime_r_nargs=3
37477
37478         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37479                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37480
37481                 ol_cv_func_ctime_r_nargs=2
37482
37483         else
37484                 ol_cv_func_ctime_r_nargs=0
37485         fi
37486
37487 fi
37488 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37489 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37490
37491   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37492
37493 cat >>confdefs.h <<_ACEOF
37494 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37495 _ACEOF
37496
37497   fi
37498
37499 fi
37500
37501 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37502         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37503 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37504 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37505   echo $ECHO_N "(cached) $ECHO_C" >&6
37506 else
37507   cat >conftest.$ac_ext <<_ACEOF
37508 /* confdefs.h.  */
37509 _ACEOF
37510 cat confdefs.h >>conftest.$ac_ext
37511 cat >>conftest.$ac_ext <<_ACEOF
37512 /* end confdefs.h.  */
37513 #include <sys/types.h>
37514 #include <sys/socket.h>
37515 #include <netinet/in.h>
37516 #include <netdb.h>
37517 #define BUFSIZE (sizeof(struct hostent)+10)
37518 int
37519 main ()
37520 {
37521 struct hostent hent; char buffer[BUFSIZE];
37522                 int bufsize=BUFSIZE;int h_errno;
37523                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37524                         buffer, bufsize, &h_errno);
37525   ;
37526   return 0;
37527 }
37528 _ACEOF
37529 rm -f conftest.$ac_objext
37530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37531   (eval $ac_compile) 2>conftest.er1
37532   ac_status=$?
37533   grep -v '^ *+' conftest.er1 >conftest.err
37534   rm -f conftest.er1
37535   cat conftest.err >&5
37536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537   (exit $ac_status); } &&
37538          { ac_try='test -z "$ac_c_werror_flag"
37539                          || test ! -s conftest.err'
37540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37541   (eval $ac_try) 2>&5
37542   ac_status=$?
37543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37544   (exit $ac_status); }; } &&
37545          { ac_try='test -s conftest.$ac_objext'
37546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37547   (eval $ac_try) 2>&5
37548   ac_status=$?
37549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550   (exit $ac_status); }; }; then
37551   ol_cv_func_gethostbyname_r_nargs5=yes
37552 else
37553   echo "$as_me: failed program was:" >&5
37554 sed 's/^/| /' conftest.$ac_ext >&5
37555
37556 ol_cv_func_gethostbyname_r_nargs5=no
37557 fi
37558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37559
37560         cat >conftest.$ac_ext <<_ACEOF
37561 /* confdefs.h.  */
37562 _ACEOF
37563 cat confdefs.h >>conftest.$ac_ext
37564 cat >>conftest.$ac_ext <<_ACEOF
37565 /* end confdefs.h.  */
37566 #include <sys/types.h>
37567 #include <sys/socket.h>
37568 #include <netinet/in.h>
37569 #include <netdb.h>
37570 #define BUFSIZE (sizeof(struct hostent)+10)
37571 int
37572 main ()
37573 {
37574 struct hostent hent;struct hostent *rhent;
37575                 char buffer[BUFSIZE];
37576                 int bufsize=BUFSIZE;int h_errno;
37577                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37578                         &rhent, &h_errno);
37579   ;
37580   return 0;
37581 }
37582 _ACEOF
37583 rm -f conftest.$ac_objext
37584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37585   (eval $ac_compile) 2>conftest.er1
37586   ac_status=$?
37587   grep -v '^ *+' conftest.er1 >conftest.err
37588   rm -f conftest.er1
37589   cat conftest.err >&5
37590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591   (exit $ac_status); } &&
37592          { ac_try='test -z "$ac_c_werror_flag"
37593                          || test ! -s conftest.err'
37594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595   (eval $ac_try) 2>&5
37596   ac_status=$?
37597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598   (exit $ac_status); }; } &&
37599          { ac_try='test -s conftest.$ac_objext'
37600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601   (eval $ac_try) 2>&5
37602   ac_status=$?
37603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604   (exit $ac_status); }; }; then
37605   ol_cv_func_gethostbyname_r_nargs6=yes
37606 else
37607   echo "$as_me: failed program was:" >&5
37608 sed 's/^/| /' conftest.$ac_ext >&5
37609
37610 ol_cv_func_gethostbyname_r_nargs6=no
37611 fi
37612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37613
37614         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37615                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37616
37617                 ol_cv_func_gethostbyname_r_nargs=5
37618
37619         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37620                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37621
37622                 ol_cv_func_gethostbyname_r_nargs=6
37623
37624         else
37625                 ol_cv_func_gethostbyname_r_nargs=0
37626         fi
37627
37628 fi
37629 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37630 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37631   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37632
37633 cat >>confdefs.h <<_ACEOF
37634 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37635 _ACEOF
37636
37637   fi
37638
37639 else
37640         ol_cv_func_gethostbyname_r_nargs=0
37641 fi
37642
37643 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37644         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37645 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37646 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37647   echo $ECHO_N "(cached) $ECHO_C" >&6
37648 else
37649   cat >conftest.$ac_ext <<_ACEOF
37650 /* confdefs.h.  */
37651 _ACEOF
37652 cat confdefs.h >>conftest.$ac_ext
37653 cat >>conftest.$ac_ext <<_ACEOF
37654 /* end confdefs.h.  */
37655 #include <sys/types.h>
37656 #include <sys/socket.h>
37657 #include <netinet/in.h>
37658 #include <netdb.h>
37659 #define BUFSIZE (sizeof(struct hostent)+10)
37660 int
37661 main ()
37662 {
37663 struct hostent hent; char buffer[BUFSIZE];
37664             struct in_addr add;
37665             size_t alen=sizeof(struct in_addr);
37666             int bufsize=BUFSIZE;int h_errno;
37667                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37668                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37669   ;
37670   return 0;
37671 }
37672 _ACEOF
37673 rm -f conftest.$ac_objext
37674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37675   (eval $ac_compile) 2>conftest.er1
37676   ac_status=$?
37677   grep -v '^ *+' conftest.er1 >conftest.err
37678   rm -f conftest.er1
37679   cat conftest.err >&5
37680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37681   (exit $ac_status); } &&
37682          { ac_try='test -z "$ac_c_werror_flag"
37683                          || test ! -s conftest.err'
37684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37685   (eval $ac_try) 2>&5
37686   ac_status=$?
37687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688   (exit $ac_status); }; } &&
37689          { ac_try='test -s conftest.$ac_objext'
37690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37691   (eval $ac_try) 2>&5
37692   ac_status=$?
37693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694   (exit $ac_status); }; }; then
37695   ol_cv_func_gethostbyaddr_r_nargs7=yes
37696 else
37697   echo "$as_me: failed program was:" >&5
37698 sed 's/^/| /' conftest.$ac_ext >&5
37699
37700 ol_cv_func_gethostbyaddr_r_nargs7=no
37701 fi
37702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37703
37704         cat >conftest.$ac_ext <<_ACEOF
37705 /* confdefs.h.  */
37706 _ACEOF
37707 cat confdefs.h >>conftest.$ac_ext
37708 cat >>conftest.$ac_ext <<_ACEOF
37709 /* end confdefs.h.  */
37710 #include <sys/types.h>
37711 #include <sys/socket.h>
37712 #include <netinet/in.h>
37713 #include <netdb.h>
37714 #define BUFSIZE (sizeof(struct hostent)+10)
37715 int
37716 main ()
37717 {
37718 struct hostent hent;
37719                 struct hostent *rhent; char buffer[BUFSIZE];
37720                 struct in_addr add;
37721                 size_t alen=sizeof(struct in_addr);
37722                 int bufsize=BUFSIZE;int h_errno;
37723                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37724                         alen, AF_INET, &hent, buffer, bufsize,
37725                         &rhent, &h_errno);
37726   ;
37727   return 0;
37728 }
37729 _ACEOF
37730 rm -f conftest.$ac_objext
37731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37732   (eval $ac_compile) 2>conftest.er1
37733   ac_status=$?
37734   grep -v '^ *+' conftest.er1 >conftest.err
37735   rm -f conftest.er1
37736   cat conftest.err >&5
37737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738   (exit $ac_status); } &&
37739          { ac_try='test -z "$ac_c_werror_flag"
37740                          || test ! -s conftest.err'
37741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37742   (eval $ac_try) 2>&5
37743   ac_status=$?
37744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745   (exit $ac_status); }; } &&
37746          { ac_try='test -s conftest.$ac_objext'
37747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37748   (eval $ac_try) 2>&5
37749   ac_status=$?
37750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751   (exit $ac_status); }; }; then
37752   ol_cv_func_gethostbyaddr_r_nargs8=yes
37753 else
37754   echo "$as_me: failed program was:" >&5
37755 sed 's/^/| /' conftest.$ac_ext >&5
37756
37757 ol_cv_func_gethostbyaddr_r_nargs8=no
37758 fi
37759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37760
37761         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37762                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37763
37764                 ol_cv_func_gethostbyaddr_r_nargs=7
37765
37766         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37767                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37768
37769                 ol_cv_func_gethostbyaddr_r_nargs=8
37770
37771         else
37772                 ol_cv_func_gethostbyaddr_r_nargs=0
37773         fi
37774
37775 fi
37776 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37777 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37778   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37779
37780 cat >>confdefs.h <<_ACEOF
37781 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37782 _ACEOF
37783
37784   fi
37785
37786 else
37787         ol_cv_func_gethostbyaddr_r_nargs=0
37788 fi
37789
37790 ol_link_ldbm=no
37791
37792 if test $ol_with_ldbm_api = auto \
37793         -o $ol_with_ldbm_api = berkeley \
37794         -o $ol_with_ldbm_api = bcompat ; then
37795
37796         if test $ol_with_ldbm_api = bcompat; then \
37797
37798
37799 for ac_header in db_185.h db.h
37800 do
37801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37803   echo "$as_me:$LINENO: checking for $ac_header" >&5
37804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37806   echo $ECHO_N "(cached) $ECHO_C" >&6
37807 fi
37808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37810 else
37811   # Is the header compilable?
37812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37814 cat >conftest.$ac_ext <<_ACEOF
37815 /* confdefs.h.  */
37816 _ACEOF
37817 cat confdefs.h >>conftest.$ac_ext
37818 cat >>conftest.$ac_ext <<_ACEOF
37819 /* end confdefs.h.  */
37820 $ac_includes_default
37821 #include <$ac_header>
37822 _ACEOF
37823 rm -f conftest.$ac_objext
37824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37825   (eval $ac_compile) 2>conftest.er1
37826   ac_status=$?
37827   grep -v '^ *+' conftest.er1 >conftest.err
37828   rm -f conftest.er1
37829   cat conftest.err >&5
37830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831   (exit $ac_status); } &&
37832          { ac_try='test -z "$ac_c_werror_flag"
37833                          || test ! -s conftest.err'
37834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37835   (eval $ac_try) 2>&5
37836   ac_status=$?
37837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838   (exit $ac_status); }; } &&
37839          { ac_try='test -s conftest.$ac_objext'
37840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37841   (eval $ac_try) 2>&5
37842   ac_status=$?
37843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37844   (exit $ac_status); }; }; then
37845   ac_header_compiler=yes
37846 else
37847   echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37849
37850 ac_header_compiler=no
37851 fi
37852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37854 echo "${ECHO_T}$ac_header_compiler" >&6
37855
37856 # Is the header present?
37857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37859 cat >conftest.$ac_ext <<_ACEOF
37860 /* confdefs.h.  */
37861 _ACEOF
37862 cat confdefs.h >>conftest.$ac_ext
37863 cat >>conftest.$ac_ext <<_ACEOF
37864 /* end confdefs.h.  */
37865 #include <$ac_header>
37866 _ACEOF
37867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37869   ac_status=$?
37870   grep -v '^ *+' conftest.er1 >conftest.err
37871   rm -f conftest.er1
37872   cat conftest.err >&5
37873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874   (exit $ac_status); } >/dev/null; then
37875   if test -s conftest.err; then
37876     ac_cpp_err=$ac_c_preproc_warn_flag
37877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37878   else
37879     ac_cpp_err=
37880   fi
37881 else
37882   ac_cpp_err=yes
37883 fi
37884 if test -z "$ac_cpp_err"; then
37885   ac_header_preproc=yes
37886 else
37887   echo "$as_me: failed program was:" >&5
37888 sed 's/^/| /' conftest.$ac_ext >&5
37889
37890   ac_header_preproc=no
37891 fi
37892 rm -f conftest.err conftest.$ac_ext
37893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37894 echo "${ECHO_T}$ac_header_preproc" >&6
37895
37896 # So?  What about this header?
37897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37898   yes:no: )
37899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37903     ac_header_preproc=yes
37904     ;;
37905   no:yes:* )
37906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37908     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37909 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37912     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37913 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37918     (
37919       cat <<\_ASBOX
37920 ## ------------------------------------------ ##
37921 ## Report this to the AC_PACKAGE_NAME lists.  ##
37922 ## ------------------------------------------ ##
37923 _ASBOX
37924     ) |
37925       sed "s/^/$as_me: WARNING:     /" >&2
37926     ;;
37927 esac
37928 echo "$as_me:$LINENO: checking for $ac_header" >&5
37929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37931   echo $ECHO_N "(cached) $ECHO_C" >&6
37932 else
37933   eval "$as_ac_Header=\$ac_header_preproc"
37934 fi
37935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37937
37938 fi
37939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37940   cat >>confdefs.h <<_ACEOF
37941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37942 _ACEOF
37943
37944 fi
37945
37946 done
37947
37948 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37949         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37950 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37951 if test "${ol_cv_header_db1+set}" = set; then
37952   echo $ECHO_N "(cached) $ECHO_C" >&6
37953 else
37954
37955                 cat >conftest.$ac_ext <<_ACEOF
37956 /* confdefs.h.  */
37957 _ACEOF
37958 cat confdefs.h >>conftest.$ac_ext
37959 cat >>conftest.$ac_ext <<_ACEOF
37960 /* end confdefs.h.  */
37961
37962 #if HAVE_DB_185_H
37963 #       include <db_185.h>
37964 #else
37965 #       include <db.h>
37966 #endif
37967
37968  /* this check could be improved */
37969 #ifndef DB_VERSION_MAJOR
37970 #       define DB_VERSION_MAJOR 1
37971 #endif
37972
37973 #if DB_VERSION_MAJOR == 1
37974         __db_version_1
37975 #endif
37976
37977 _ACEOF
37978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37979   $EGREP "__db_version_1" >/dev/null 2>&1; then
37980   ol_cv_header_db1=yes
37981 else
37982   ol_cv_header_db1=no
37983 fi
37984 rm -f conftest*
37985
37986 fi
37987 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37988 echo "${ECHO_T}$ol_cv_header_db1" >&6
37989
37990         if test $ol_cv_header_db1 = yes ; then
37991                 ol_cv_lib_db=no
37992 if test $ol_cv_lib_db = no ; then
37993         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37994 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37995 if test "${ol_cv_db_none+set}" = set; then
37996   echo $ECHO_N "(cached) $ECHO_C" >&6
37997 else
37998
37999         ol_DB_LIB=
38000         ol_LIBS=$LIBS
38001         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38002
38003         cat >conftest.$ac_ext <<_ACEOF
38004 /* confdefs.h.  */
38005 _ACEOF
38006 cat confdefs.h >>conftest.$ac_ext
38007 cat >>conftest.$ac_ext <<_ACEOF
38008 /* end confdefs.h.  */
38009
38010 #ifdef HAVE_DB_185_H
38011 # include <db_185.h>
38012 #else
38013 # include <db.h>
38014 #endif
38015
38016 #ifndef DB_VERSION_MAJOR
38017 # define DB_VERSION_MAJOR 1
38018 #endif
38019
38020 #ifndef NULL
38021 #define NULL ((void*)0)
38022 #endif
38023
38024 int
38025 main ()
38026 {
38027
38028 #if DB_VERSION_MAJOR > 1
38029         {
38030                 char *version;
38031                 int major, minor, patch;
38032
38033                 version = db_version( &major, &minor, &patch );
38034
38035                 if( major != DB_VERSION_MAJOR ||
38036                         minor < DB_VERSION_MINOR )
38037                 {
38038                         printf("Berkeley DB version mismatch\n"
38039                                 "\theader: %s\n\tlibrary: %s\n",
38040                                 DB_VERSION_STRING, version);
38041                         return 1;
38042                 }
38043         }
38044 #endif
38045
38046 #if DB_VERSION_MAJOR > 2
38047         db_env_create( NULL, 0 );
38048 #elif DB_VERSION_MAJOR > 1
38049         db_appexit( NULL );
38050 #else
38051         (void) dbopen( NULL, 0, 0, 0, NULL);
38052 #endif
38053
38054   ;
38055   return 0;
38056 }
38057 _ACEOF
38058 rm -f conftest.$ac_objext conftest$ac_exeext
38059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38060   (eval $ac_link) 2>conftest.er1
38061   ac_status=$?
38062   grep -v '^ *+' conftest.er1 >conftest.err
38063   rm -f conftest.er1
38064   cat conftest.err >&5
38065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066   (exit $ac_status); } &&
38067          { ac_try='test -z "$ac_c_werror_flag"
38068                          || test ! -s conftest.err'
38069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38070   (eval $ac_try) 2>&5
38071   ac_status=$?
38072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073   (exit $ac_status); }; } &&
38074          { ac_try='test -s conftest$ac_exeext'
38075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38076   (eval $ac_try) 2>&5
38077   ac_status=$?
38078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079   (exit $ac_status); }; }; then
38080   ol_cv_db_none=yes
38081 else
38082   echo "$as_me: failed program was:" >&5
38083 sed 's/^/| /' conftest.$ac_ext >&5
38084
38085 ol_cv_db_none=no
38086 fi
38087 rm -f conftest.err conftest.$ac_objext \
38088       conftest$ac_exeext conftest.$ac_ext
38089
38090         LIBS="$ol_LIBS"
38091
38092 fi
38093 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38094 echo "${ECHO_T}$ol_cv_db_none" >&6
38095
38096         if test $ol_cv_db_none = yes ; then
38097                 ol_cv_lib_db=yes
38098         fi
38099 fi
38100
38101 if test $ol_cv_lib_db = no ; then
38102         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38103 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38104 if test "${ol_cv_db_db43+set}" = set; then
38105   echo $ECHO_N "(cached) $ECHO_C" >&6
38106 else
38107
38108         ol_DB_LIB=-ldb43
38109         ol_LIBS=$LIBS
38110         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38111
38112         cat >conftest.$ac_ext <<_ACEOF
38113 /* confdefs.h.  */
38114 _ACEOF
38115 cat confdefs.h >>conftest.$ac_ext
38116 cat >>conftest.$ac_ext <<_ACEOF
38117 /* end confdefs.h.  */
38118
38119 #ifdef HAVE_DB_185_H
38120 # include <db_185.h>
38121 #else
38122 # include <db.h>
38123 #endif
38124
38125 #ifndef DB_VERSION_MAJOR
38126 # define DB_VERSION_MAJOR 1
38127 #endif
38128
38129 #ifndef NULL
38130 #define NULL ((void*)0)
38131 #endif
38132
38133 int
38134 main ()
38135 {
38136
38137 #if DB_VERSION_MAJOR > 1
38138         {
38139                 char *version;
38140                 int major, minor, patch;
38141
38142                 version = db_version( &major, &minor, &patch );
38143
38144                 if( major != DB_VERSION_MAJOR ||
38145                         minor < DB_VERSION_MINOR )
38146                 {
38147                         printf("Berkeley DB version mismatch\n"
38148                                 "\theader: %s\n\tlibrary: %s\n",
38149                                 DB_VERSION_STRING, version);
38150                         return 1;
38151                 }
38152         }
38153 #endif
38154
38155 #if DB_VERSION_MAJOR > 2
38156         db_env_create( NULL, 0 );
38157 #elif DB_VERSION_MAJOR > 1
38158         db_appexit( NULL );
38159 #else
38160         (void) dbopen( NULL, 0, 0, 0, NULL);
38161 #endif
38162
38163   ;
38164   return 0;
38165 }
38166 _ACEOF
38167 rm -f conftest.$ac_objext conftest$ac_exeext
38168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38169   (eval $ac_link) 2>conftest.er1
38170   ac_status=$?
38171   grep -v '^ *+' conftest.er1 >conftest.err
38172   rm -f conftest.er1
38173   cat conftest.err >&5
38174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175   (exit $ac_status); } &&
38176          { ac_try='test -z "$ac_c_werror_flag"
38177                          || test ! -s conftest.err'
38178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38179   (eval $ac_try) 2>&5
38180   ac_status=$?
38181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182   (exit $ac_status); }; } &&
38183          { ac_try='test -s conftest$ac_exeext'
38184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185   (eval $ac_try) 2>&5
38186   ac_status=$?
38187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188   (exit $ac_status); }; }; then
38189   ol_cv_db_db43=yes
38190 else
38191   echo "$as_me: failed program was:" >&5
38192 sed 's/^/| /' conftest.$ac_ext >&5
38193
38194 ol_cv_db_db43=no
38195 fi
38196 rm -f conftest.err conftest.$ac_objext \
38197       conftest$ac_exeext conftest.$ac_ext
38198
38199         LIBS="$ol_LIBS"
38200
38201 fi
38202 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38203 echo "${ECHO_T}$ol_cv_db_db43" >&6
38204
38205         if test $ol_cv_db_db43 = yes ; then
38206                 ol_cv_lib_db=-ldb43
38207         fi
38208 fi
38209
38210 if test $ol_cv_lib_db = no ; then
38211         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38212 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38213 if test "${ol_cv_db_db_43+set}" = set; then
38214   echo $ECHO_N "(cached) $ECHO_C" >&6
38215 else
38216
38217         ol_DB_LIB=-ldb-43
38218         ol_LIBS=$LIBS
38219         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38220
38221         cat >conftest.$ac_ext <<_ACEOF
38222 /* confdefs.h.  */
38223 _ACEOF
38224 cat confdefs.h >>conftest.$ac_ext
38225 cat >>conftest.$ac_ext <<_ACEOF
38226 /* end confdefs.h.  */
38227
38228 #ifdef HAVE_DB_185_H
38229 # include <db_185.h>
38230 #else
38231 # include <db.h>
38232 #endif
38233
38234 #ifndef DB_VERSION_MAJOR
38235 # define DB_VERSION_MAJOR 1
38236 #endif
38237
38238 #ifndef NULL
38239 #define NULL ((void*)0)
38240 #endif
38241
38242 int
38243 main ()
38244 {
38245
38246 #if DB_VERSION_MAJOR > 1
38247         {
38248                 char *version;
38249                 int major, minor, patch;
38250
38251                 version = db_version( &major, &minor, &patch );
38252
38253                 if( major != DB_VERSION_MAJOR ||
38254                         minor < DB_VERSION_MINOR )
38255                 {
38256                         printf("Berkeley DB version mismatch\n"
38257                                 "\theader: %s\n\tlibrary: %s\n",
38258                                 DB_VERSION_STRING, version);
38259                         return 1;
38260                 }
38261         }
38262 #endif
38263
38264 #if DB_VERSION_MAJOR > 2
38265         db_env_create( NULL, 0 );
38266 #elif DB_VERSION_MAJOR > 1
38267         db_appexit( NULL );
38268 #else
38269         (void) dbopen( NULL, 0, 0, 0, NULL);
38270 #endif
38271
38272   ;
38273   return 0;
38274 }
38275 _ACEOF
38276 rm -f conftest.$ac_objext conftest$ac_exeext
38277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38278   (eval $ac_link) 2>conftest.er1
38279   ac_status=$?
38280   grep -v '^ *+' conftest.er1 >conftest.err
38281   rm -f conftest.er1
38282   cat conftest.err >&5
38283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284   (exit $ac_status); } &&
38285          { ac_try='test -z "$ac_c_werror_flag"
38286                          || test ! -s conftest.err'
38287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288   (eval $ac_try) 2>&5
38289   ac_status=$?
38290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291   (exit $ac_status); }; } &&
38292          { ac_try='test -s conftest$ac_exeext'
38293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294   (eval $ac_try) 2>&5
38295   ac_status=$?
38296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297   (exit $ac_status); }; }; then
38298   ol_cv_db_db_43=yes
38299 else
38300   echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.$ac_ext >&5
38302
38303 ol_cv_db_db_43=no
38304 fi
38305 rm -f conftest.err conftest.$ac_objext \
38306       conftest$ac_exeext conftest.$ac_ext
38307
38308         LIBS="$ol_LIBS"
38309
38310 fi
38311 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38312 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38313
38314         if test $ol_cv_db_db_43 = yes ; then
38315                 ol_cv_lib_db=-ldb-43
38316         fi
38317 fi
38318
38319 if test $ol_cv_lib_db = no ; then
38320         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38321 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38322 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38323   echo $ECHO_N "(cached) $ECHO_C" >&6
38324 else
38325
38326         ol_DB_LIB=-ldb-4.3
38327         ol_LIBS=$LIBS
38328         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38329
38330         cat >conftest.$ac_ext <<_ACEOF
38331 /* confdefs.h.  */
38332 _ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h.  */
38336
38337 #ifdef HAVE_DB_185_H
38338 # include <db_185.h>
38339 #else
38340 # include <db.h>
38341 #endif
38342
38343 #ifndef DB_VERSION_MAJOR
38344 # define DB_VERSION_MAJOR 1
38345 #endif
38346
38347 #ifndef NULL
38348 #define NULL ((void*)0)
38349 #endif
38350
38351 int
38352 main ()
38353 {
38354
38355 #if DB_VERSION_MAJOR > 1
38356         {
38357                 char *version;
38358                 int major, minor, patch;
38359
38360                 version = db_version( &major, &minor, &patch );
38361
38362                 if( major != DB_VERSION_MAJOR ||
38363                         minor < DB_VERSION_MINOR )
38364                 {
38365                         printf("Berkeley DB version mismatch\n"
38366                                 "\theader: %s\n\tlibrary: %s\n",
38367                                 DB_VERSION_STRING, version);
38368                         return 1;
38369                 }
38370         }
38371 #endif
38372
38373 #if DB_VERSION_MAJOR > 2
38374         db_env_create( NULL, 0 );
38375 #elif DB_VERSION_MAJOR > 1
38376         db_appexit( NULL );
38377 #else
38378         (void) dbopen( NULL, 0, 0, 0, NULL);
38379 #endif
38380
38381   ;
38382   return 0;
38383 }
38384 _ACEOF
38385 rm -f conftest.$ac_objext conftest$ac_exeext
38386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38387   (eval $ac_link) 2>conftest.er1
38388   ac_status=$?
38389   grep -v '^ *+' conftest.er1 >conftest.err
38390   rm -f conftest.er1
38391   cat conftest.err >&5
38392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393   (exit $ac_status); } &&
38394          { ac_try='test -z "$ac_c_werror_flag"
38395                          || test ! -s conftest.err'
38396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38397   (eval $ac_try) 2>&5
38398   ac_status=$?
38399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400   (exit $ac_status); }; } &&
38401          { ac_try='test -s conftest$ac_exeext'
38402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38403   (eval $ac_try) 2>&5
38404   ac_status=$?
38405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406   (exit $ac_status); }; }; then
38407   ol_cv_db_db_4_dot_3=yes
38408 else
38409   echo "$as_me: failed program was:" >&5
38410 sed 's/^/| /' conftest.$ac_ext >&5
38411
38412 ol_cv_db_db_4_dot_3=no
38413 fi
38414 rm -f conftest.err conftest.$ac_objext \
38415       conftest$ac_exeext conftest.$ac_ext
38416
38417         LIBS="$ol_LIBS"
38418
38419 fi
38420 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38421 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38422
38423         if test $ol_cv_db_db_4_dot_3 = yes ; then
38424                 ol_cv_lib_db=-ldb-4.3
38425         fi
38426 fi
38427
38428 if test $ol_cv_lib_db = no ; then
38429         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38430 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38431 if test "${ol_cv_db_db_4_3+set}" = set; then
38432   echo $ECHO_N "(cached) $ECHO_C" >&6
38433 else
38434
38435         ol_DB_LIB=-ldb-4-3
38436         ol_LIBS=$LIBS
38437         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38438
38439         cat >conftest.$ac_ext <<_ACEOF
38440 /* confdefs.h.  */
38441 _ACEOF
38442 cat confdefs.h >>conftest.$ac_ext
38443 cat >>conftest.$ac_ext <<_ACEOF
38444 /* end confdefs.h.  */
38445
38446 #ifdef HAVE_DB_185_H
38447 # include <db_185.h>
38448 #else
38449 # include <db.h>
38450 #endif
38451
38452 #ifndef DB_VERSION_MAJOR
38453 # define DB_VERSION_MAJOR 1
38454 #endif
38455
38456 #ifndef NULL
38457 #define NULL ((void*)0)
38458 #endif
38459
38460 int
38461 main ()
38462 {
38463
38464 #if DB_VERSION_MAJOR > 1
38465         {
38466                 char *version;
38467                 int major, minor, patch;
38468
38469                 version = db_version( &major, &minor, &patch );
38470
38471                 if( major != DB_VERSION_MAJOR ||
38472                         minor < DB_VERSION_MINOR )
38473                 {
38474                         printf("Berkeley DB version mismatch\n"
38475                                 "\theader: %s\n\tlibrary: %s\n",
38476                                 DB_VERSION_STRING, version);
38477                         return 1;
38478                 }
38479         }
38480 #endif
38481
38482 #if DB_VERSION_MAJOR > 2
38483         db_env_create( NULL, 0 );
38484 #elif DB_VERSION_MAJOR > 1
38485         db_appexit( NULL );
38486 #else
38487         (void) dbopen( NULL, 0, 0, 0, NULL);
38488 #endif
38489
38490   ;
38491   return 0;
38492 }
38493 _ACEOF
38494 rm -f conftest.$ac_objext conftest$ac_exeext
38495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38496   (eval $ac_link) 2>conftest.er1
38497   ac_status=$?
38498   grep -v '^ *+' conftest.er1 >conftest.err
38499   rm -f conftest.er1
38500   cat conftest.err >&5
38501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502   (exit $ac_status); } &&
38503          { ac_try='test -z "$ac_c_werror_flag"
38504                          || test ! -s conftest.err'
38505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38506   (eval $ac_try) 2>&5
38507   ac_status=$?
38508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509   (exit $ac_status); }; } &&
38510          { ac_try='test -s conftest$ac_exeext'
38511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38512   (eval $ac_try) 2>&5
38513   ac_status=$?
38514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38515   (exit $ac_status); }; }; then
38516   ol_cv_db_db_4_3=yes
38517 else
38518   echo "$as_me: failed program was:" >&5
38519 sed 's/^/| /' conftest.$ac_ext >&5
38520
38521 ol_cv_db_db_4_3=no
38522 fi
38523 rm -f conftest.err conftest.$ac_objext \
38524       conftest$ac_exeext conftest.$ac_ext
38525
38526         LIBS="$ol_LIBS"
38527
38528 fi
38529 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38530 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38531
38532         if test $ol_cv_db_db_4_3 = yes ; then
38533                 ol_cv_lib_db=-ldb-4-3
38534         fi
38535 fi
38536
38537 if test $ol_cv_lib_db = no ; then
38538         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38539 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38540 if test "${ol_cv_db_db42+set}" = set; then
38541   echo $ECHO_N "(cached) $ECHO_C" >&6
38542 else
38543
38544         ol_DB_LIB=-ldb42
38545         ol_LIBS=$LIBS
38546         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38547
38548         cat >conftest.$ac_ext <<_ACEOF
38549 /* confdefs.h.  */
38550 _ACEOF
38551 cat confdefs.h >>conftest.$ac_ext
38552 cat >>conftest.$ac_ext <<_ACEOF
38553 /* end confdefs.h.  */
38554
38555 #ifdef HAVE_DB_185_H
38556 # include <db_185.h>
38557 #else
38558 # include <db.h>
38559 #endif
38560
38561 #ifndef DB_VERSION_MAJOR
38562 # define DB_VERSION_MAJOR 1
38563 #endif
38564
38565 #ifndef NULL
38566 #define NULL ((void*)0)
38567 #endif
38568
38569 int
38570 main ()
38571 {
38572
38573 #if DB_VERSION_MAJOR > 1
38574         {
38575                 char *version;
38576                 int major, minor, patch;
38577
38578                 version = db_version( &major, &minor, &patch );
38579
38580                 if( major != DB_VERSION_MAJOR ||
38581                         minor < DB_VERSION_MINOR )
38582                 {
38583                         printf("Berkeley DB version mismatch\n"
38584                                 "\theader: %s\n\tlibrary: %s\n",
38585                                 DB_VERSION_STRING, version);
38586                         return 1;
38587                 }
38588         }
38589 #endif
38590
38591 #if DB_VERSION_MAJOR > 2
38592         db_env_create( NULL, 0 );
38593 #elif DB_VERSION_MAJOR > 1
38594         db_appexit( NULL );
38595 #else
38596         (void) dbopen( NULL, 0, 0, 0, NULL);
38597 #endif
38598
38599   ;
38600   return 0;
38601 }
38602 _ACEOF
38603 rm -f conftest.$ac_objext conftest$ac_exeext
38604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38605   (eval $ac_link) 2>conftest.er1
38606   ac_status=$?
38607   grep -v '^ *+' conftest.er1 >conftest.err
38608   rm -f conftest.er1
38609   cat conftest.err >&5
38610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611   (exit $ac_status); } &&
38612          { ac_try='test -z "$ac_c_werror_flag"
38613                          || test ! -s conftest.err'
38614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38615   (eval $ac_try) 2>&5
38616   ac_status=$?
38617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618   (exit $ac_status); }; } &&
38619          { ac_try='test -s conftest$ac_exeext'
38620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38621   (eval $ac_try) 2>&5
38622   ac_status=$?
38623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624   (exit $ac_status); }; }; then
38625   ol_cv_db_db42=yes
38626 else
38627   echo "$as_me: failed program was:" >&5
38628 sed 's/^/| /' conftest.$ac_ext >&5
38629
38630 ol_cv_db_db42=no
38631 fi
38632 rm -f conftest.err conftest.$ac_objext \
38633       conftest$ac_exeext conftest.$ac_ext
38634
38635         LIBS="$ol_LIBS"
38636
38637 fi
38638 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38639 echo "${ECHO_T}$ol_cv_db_db42" >&6
38640
38641         if test $ol_cv_db_db42 = yes ; then
38642                 ol_cv_lib_db=-ldb42
38643         fi
38644 fi
38645
38646 if test $ol_cv_lib_db = no ; then
38647         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38648 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38649 if test "${ol_cv_db_db_42+set}" = set; then
38650   echo $ECHO_N "(cached) $ECHO_C" >&6
38651 else
38652
38653         ol_DB_LIB=-ldb-42
38654         ol_LIBS=$LIBS
38655         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38656
38657         cat >conftest.$ac_ext <<_ACEOF
38658 /* confdefs.h.  */
38659 _ACEOF
38660 cat confdefs.h >>conftest.$ac_ext
38661 cat >>conftest.$ac_ext <<_ACEOF
38662 /* end confdefs.h.  */
38663
38664 #ifdef HAVE_DB_185_H
38665 # include <db_185.h>
38666 #else
38667 # include <db.h>
38668 #endif
38669
38670 #ifndef DB_VERSION_MAJOR
38671 # define DB_VERSION_MAJOR 1
38672 #endif
38673
38674 #ifndef NULL
38675 #define NULL ((void*)0)
38676 #endif
38677
38678 int
38679 main ()
38680 {
38681
38682 #if DB_VERSION_MAJOR > 1
38683         {
38684                 char *version;
38685                 int major, minor, patch;
38686
38687                 version = db_version( &major, &minor, &patch );
38688
38689                 if( major != DB_VERSION_MAJOR ||
38690                         minor < DB_VERSION_MINOR )
38691                 {
38692                         printf("Berkeley DB version mismatch\n"
38693                                 "\theader: %s\n\tlibrary: %s\n",
38694                                 DB_VERSION_STRING, version);
38695                         return 1;
38696                 }
38697         }
38698 #endif
38699
38700 #if DB_VERSION_MAJOR > 2
38701         db_env_create( NULL, 0 );
38702 #elif DB_VERSION_MAJOR > 1
38703         db_appexit( NULL );
38704 #else
38705         (void) dbopen( NULL, 0, 0, 0, NULL);
38706 #endif
38707
38708   ;
38709   return 0;
38710 }
38711 _ACEOF
38712 rm -f conftest.$ac_objext conftest$ac_exeext
38713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38714   (eval $ac_link) 2>conftest.er1
38715   ac_status=$?
38716   grep -v '^ *+' conftest.er1 >conftest.err
38717   rm -f conftest.er1
38718   cat conftest.err >&5
38719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720   (exit $ac_status); } &&
38721          { ac_try='test -z "$ac_c_werror_flag"
38722                          || test ! -s conftest.err'
38723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38724   (eval $ac_try) 2>&5
38725   ac_status=$?
38726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727   (exit $ac_status); }; } &&
38728          { ac_try='test -s conftest$ac_exeext'
38729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38730   (eval $ac_try) 2>&5
38731   ac_status=$?
38732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38733   (exit $ac_status); }; }; then
38734   ol_cv_db_db_42=yes
38735 else
38736   echo "$as_me: failed program was:" >&5
38737 sed 's/^/| /' conftest.$ac_ext >&5
38738
38739 ol_cv_db_db_42=no
38740 fi
38741 rm -f conftest.err conftest.$ac_objext \
38742       conftest$ac_exeext conftest.$ac_ext
38743
38744         LIBS="$ol_LIBS"
38745
38746 fi
38747 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38748 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38749
38750         if test $ol_cv_db_db_42 = yes ; then
38751                 ol_cv_lib_db=-ldb-42
38752         fi
38753 fi
38754
38755 if test $ol_cv_lib_db = no ; then
38756         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38757 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38758 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38759   echo $ECHO_N "(cached) $ECHO_C" >&6
38760 else
38761
38762         ol_DB_LIB=-ldb-4.2
38763         ol_LIBS=$LIBS
38764         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38765
38766         cat >conftest.$ac_ext <<_ACEOF
38767 /* confdefs.h.  */
38768 _ACEOF
38769 cat confdefs.h >>conftest.$ac_ext
38770 cat >>conftest.$ac_ext <<_ACEOF
38771 /* end confdefs.h.  */
38772
38773 #ifdef HAVE_DB_185_H
38774 # include <db_185.h>
38775 #else
38776 # include <db.h>
38777 #endif
38778
38779 #ifndef DB_VERSION_MAJOR
38780 # define DB_VERSION_MAJOR 1
38781 #endif
38782
38783 #ifndef NULL
38784 #define NULL ((void*)0)
38785 #endif
38786
38787 int
38788 main ()
38789 {
38790
38791 #if DB_VERSION_MAJOR > 1
38792         {
38793                 char *version;
38794                 int major, minor, patch;
38795
38796                 version = db_version( &major, &minor, &patch );
38797
38798                 if( major != DB_VERSION_MAJOR ||
38799                         minor < DB_VERSION_MINOR )
38800                 {
38801                         printf("Berkeley DB version mismatch\n"
38802                                 "\theader: %s\n\tlibrary: %s\n",
38803                                 DB_VERSION_STRING, version);
38804                         return 1;
38805                 }
38806         }
38807 #endif
38808
38809 #if DB_VERSION_MAJOR > 2
38810         db_env_create( NULL, 0 );
38811 #elif DB_VERSION_MAJOR > 1
38812         db_appexit( NULL );
38813 #else
38814         (void) dbopen( NULL, 0, 0, 0, NULL);
38815 #endif
38816
38817   ;
38818   return 0;
38819 }
38820 _ACEOF
38821 rm -f conftest.$ac_objext conftest$ac_exeext
38822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38823   (eval $ac_link) 2>conftest.er1
38824   ac_status=$?
38825   grep -v '^ *+' conftest.er1 >conftest.err
38826   rm -f conftest.er1
38827   cat conftest.err >&5
38828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829   (exit $ac_status); } &&
38830          { ac_try='test -z "$ac_c_werror_flag"
38831                          || test ! -s conftest.err'
38832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38833   (eval $ac_try) 2>&5
38834   ac_status=$?
38835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836   (exit $ac_status); }; } &&
38837          { ac_try='test -s conftest$ac_exeext'
38838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38839   (eval $ac_try) 2>&5
38840   ac_status=$?
38841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842   (exit $ac_status); }; }; then
38843   ol_cv_db_db_4_dot_2=yes
38844 else
38845   echo "$as_me: failed program was:" >&5
38846 sed 's/^/| /' conftest.$ac_ext >&5
38847
38848 ol_cv_db_db_4_dot_2=no
38849 fi
38850 rm -f conftest.err conftest.$ac_objext \
38851       conftest$ac_exeext conftest.$ac_ext
38852
38853         LIBS="$ol_LIBS"
38854
38855 fi
38856 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38857 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38858
38859         if test $ol_cv_db_db_4_dot_2 = yes ; then
38860                 ol_cv_lib_db=-ldb-4.2
38861         fi
38862 fi
38863
38864 if test $ol_cv_lib_db = no ; then
38865         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38866 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38867 if test "${ol_cv_db_db_4_2+set}" = set; then
38868   echo $ECHO_N "(cached) $ECHO_C" >&6
38869 else
38870
38871         ol_DB_LIB=-ldb-4-2
38872         ol_LIBS=$LIBS
38873         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38874
38875         cat >conftest.$ac_ext <<_ACEOF
38876 /* confdefs.h.  */
38877 _ACEOF
38878 cat confdefs.h >>conftest.$ac_ext
38879 cat >>conftest.$ac_ext <<_ACEOF
38880 /* end confdefs.h.  */
38881
38882 #ifdef HAVE_DB_185_H
38883 # include <db_185.h>
38884 #else
38885 # include <db.h>
38886 #endif
38887
38888 #ifndef DB_VERSION_MAJOR
38889 # define DB_VERSION_MAJOR 1
38890 #endif
38891
38892 #ifndef NULL
38893 #define NULL ((void*)0)
38894 #endif
38895
38896 int
38897 main ()
38898 {
38899
38900 #if DB_VERSION_MAJOR > 1
38901         {
38902                 char *version;
38903                 int major, minor, patch;
38904
38905                 version = db_version( &major, &minor, &patch );
38906
38907                 if( major != DB_VERSION_MAJOR ||
38908                         minor < DB_VERSION_MINOR )
38909                 {
38910                         printf("Berkeley DB version mismatch\n"
38911                                 "\theader: %s\n\tlibrary: %s\n",
38912                                 DB_VERSION_STRING, version);
38913                         return 1;
38914                 }
38915         }
38916 #endif
38917
38918 #if DB_VERSION_MAJOR > 2
38919         db_env_create( NULL, 0 );
38920 #elif DB_VERSION_MAJOR > 1
38921         db_appexit( NULL );
38922 #else
38923         (void) dbopen( NULL, 0, 0, 0, NULL);
38924 #endif
38925
38926   ;
38927   return 0;
38928 }
38929 _ACEOF
38930 rm -f conftest.$ac_objext conftest$ac_exeext
38931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38932   (eval $ac_link) 2>conftest.er1
38933   ac_status=$?
38934   grep -v '^ *+' conftest.er1 >conftest.err
38935   rm -f conftest.er1
38936   cat conftest.err >&5
38937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938   (exit $ac_status); } &&
38939          { ac_try='test -z "$ac_c_werror_flag"
38940                          || test ! -s conftest.err'
38941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38942   (eval $ac_try) 2>&5
38943   ac_status=$?
38944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945   (exit $ac_status); }; } &&
38946          { ac_try='test -s conftest$ac_exeext'
38947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38948   (eval $ac_try) 2>&5
38949   ac_status=$?
38950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951   (exit $ac_status); }; }; then
38952   ol_cv_db_db_4_2=yes
38953 else
38954   echo "$as_me: failed program was:" >&5
38955 sed 's/^/| /' conftest.$ac_ext >&5
38956
38957 ol_cv_db_db_4_2=no
38958 fi
38959 rm -f conftest.err conftest.$ac_objext \
38960       conftest$ac_exeext conftest.$ac_ext
38961
38962         LIBS="$ol_LIBS"
38963
38964 fi
38965 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38966 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38967
38968         if test $ol_cv_db_db_4_2 = yes ; then
38969                 ol_cv_lib_db=-ldb-4-2
38970         fi
38971 fi
38972
38973 if test $ol_cv_lib_db = no ; then
38974         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38975 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38976 if test "${ol_cv_db_db_4+set}" = set; then
38977   echo $ECHO_N "(cached) $ECHO_C" >&6
38978 else
38979
38980         ol_DB_LIB=-ldb-4
38981         ol_LIBS=$LIBS
38982         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38983
38984         cat >conftest.$ac_ext <<_ACEOF
38985 /* confdefs.h.  */
38986 _ACEOF
38987 cat confdefs.h >>conftest.$ac_ext
38988 cat >>conftest.$ac_ext <<_ACEOF
38989 /* end confdefs.h.  */
38990
38991 #ifdef HAVE_DB_185_H
38992 # include <db_185.h>
38993 #else
38994 # include <db.h>
38995 #endif
38996
38997 #ifndef DB_VERSION_MAJOR
38998 # define DB_VERSION_MAJOR 1
38999 #endif
39000
39001 #ifndef NULL
39002 #define NULL ((void*)0)
39003 #endif
39004
39005 int
39006 main ()
39007 {
39008
39009 #if DB_VERSION_MAJOR > 1
39010         {
39011                 char *version;
39012                 int major, minor, patch;
39013
39014                 version = db_version( &major, &minor, &patch );
39015
39016                 if( major != DB_VERSION_MAJOR ||
39017                         minor < DB_VERSION_MINOR )
39018                 {
39019                         printf("Berkeley DB version mismatch\n"
39020                                 "\theader: %s\n\tlibrary: %s\n",
39021                                 DB_VERSION_STRING, version);
39022                         return 1;
39023                 }
39024         }
39025 #endif
39026
39027 #if DB_VERSION_MAJOR > 2
39028         db_env_create( NULL, 0 );
39029 #elif DB_VERSION_MAJOR > 1
39030         db_appexit( NULL );
39031 #else
39032         (void) dbopen( NULL, 0, 0, 0, NULL);
39033 #endif
39034
39035   ;
39036   return 0;
39037 }
39038 _ACEOF
39039 rm -f conftest.$ac_objext conftest$ac_exeext
39040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39041   (eval $ac_link) 2>conftest.er1
39042   ac_status=$?
39043   grep -v '^ *+' conftest.er1 >conftest.err
39044   rm -f conftest.er1
39045   cat conftest.err >&5
39046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047   (exit $ac_status); } &&
39048          { ac_try='test -z "$ac_c_werror_flag"
39049                          || test ! -s conftest.err'
39050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39051   (eval $ac_try) 2>&5
39052   ac_status=$?
39053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054   (exit $ac_status); }; } &&
39055          { ac_try='test -s conftest$ac_exeext'
39056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39057   (eval $ac_try) 2>&5
39058   ac_status=$?
39059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060   (exit $ac_status); }; }; then
39061   ol_cv_db_db_4=yes
39062 else
39063   echo "$as_me: failed program was:" >&5
39064 sed 's/^/| /' conftest.$ac_ext >&5
39065
39066 ol_cv_db_db_4=no
39067 fi
39068 rm -f conftest.err conftest.$ac_objext \
39069       conftest$ac_exeext conftest.$ac_ext
39070
39071         LIBS="$ol_LIBS"
39072
39073 fi
39074 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39075 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39076
39077         if test $ol_cv_db_db_4 = yes ; then
39078                 ol_cv_lib_db=-ldb-4
39079         fi
39080 fi
39081
39082 if test $ol_cv_lib_db = no ; then
39083         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39084 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39085 if test "${ol_cv_db_db4+set}" = set; then
39086   echo $ECHO_N "(cached) $ECHO_C" >&6
39087 else
39088
39089         ol_DB_LIB=-ldb4
39090         ol_LIBS=$LIBS
39091         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39092
39093         cat >conftest.$ac_ext <<_ACEOF
39094 /* confdefs.h.  */
39095 _ACEOF
39096 cat confdefs.h >>conftest.$ac_ext
39097 cat >>conftest.$ac_ext <<_ACEOF
39098 /* end confdefs.h.  */
39099
39100 #ifdef HAVE_DB_185_H
39101 # include <db_185.h>
39102 #else
39103 # include <db.h>
39104 #endif
39105
39106 #ifndef DB_VERSION_MAJOR
39107 # define DB_VERSION_MAJOR 1
39108 #endif
39109
39110 #ifndef NULL
39111 #define NULL ((void*)0)
39112 #endif
39113
39114 int
39115 main ()
39116 {
39117
39118 #if DB_VERSION_MAJOR > 1
39119         {
39120                 char *version;
39121                 int major, minor, patch;
39122
39123                 version = db_version( &major, &minor, &patch );
39124
39125                 if( major != DB_VERSION_MAJOR ||
39126                         minor < DB_VERSION_MINOR )
39127                 {
39128                         printf("Berkeley DB version mismatch\n"
39129                                 "\theader: %s\n\tlibrary: %s\n",
39130                                 DB_VERSION_STRING, version);
39131                         return 1;
39132                 }
39133         }
39134 #endif
39135
39136 #if DB_VERSION_MAJOR > 2
39137         db_env_create( NULL, 0 );
39138 #elif DB_VERSION_MAJOR > 1
39139         db_appexit( NULL );
39140 #else
39141         (void) dbopen( NULL, 0, 0, 0, NULL);
39142 #endif
39143
39144   ;
39145   return 0;
39146 }
39147 _ACEOF
39148 rm -f conftest.$ac_objext conftest$ac_exeext
39149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39150   (eval $ac_link) 2>conftest.er1
39151   ac_status=$?
39152   grep -v '^ *+' conftest.er1 >conftest.err
39153   rm -f conftest.er1
39154   cat conftest.err >&5
39155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156   (exit $ac_status); } &&
39157          { ac_try='test -z "$ac_c_werror_flag"
39158                          || test ! -s conftest.err'
39159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39160   (eval $ac_try) 2>&5
39161   ac_status=$?
39162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163   (exit $ac_status); }; } &&
39164          { ac_try='test -s conftest$ac_exeext'
39165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39166   (eval $ac_try) 2>&5
39167   ac_status=$?
39168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39169   (exit $ac_status); }; }; then
39170   ol_cv_db_db4=yes
39171 else
39172   echo "$as_me: failed program was:" >&5
39173 sed 's/^/| /' conftest.$ac_ext >&5
39174
39175 ol_cv_db_db4=no
39176 fi
39177 rm -f conftest.err conftest.$ac_objext \
39178       conftest$ac_exeext conftest.$ac_ext
39179
39180         LIBS="$ol_LIBS"
39181
39182 fi
39183 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39184 echo "${ECHO_T}$ol_cv_db_db4" >&6
39185
39186         if test $ol_cv_db_db4 = yes ; then
39187                 ol_cv_lib_db=-ldb4
39188         fi
39189 fi
39190
39191 if test $ol_cv_lib_db = no ; then
39192         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39193 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39194 if test "${ol_cv_db_db+set}" = set; then
39195   echo $ECHO_N "(cached) $ECHO_C" >&6
39196 else
39197
39198         ol_DB_LIB=-ldb
39199         ol_LIBS=$LIBS
39200         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39201
39202         cat >conftest.$ac_ext <<_ACEOF
39203 /* confdefs.h.  */
39204 _ACEOF
39205 cat confdefs.h >>conftest.$ac_ext
39206 cat >>conftest.$ac_ext <<_ACEOF
39207 /* end confdefs.h.  */
39208
39209 #ifdef HAVE_DB_185_H
39210 # include <db_185.h>
39211 #else
39212 # include <db.h>
39213 #endif
39214
39215 #ifndef DB_VERSION_MAJOR
39216 # define DB_VERSION_MAJOR 1
39217 #endif
39218
39219 #ifndef NULL
39220 #define NULL ((void*)0)
39221 #endif
39222
39223 int
39224 main ()
39225 {
39226
39227 #if DB_VERSION_MAJOR > 1
39228         {
39229                 char *version;
39230                 int major, minor, patch;
39231
39232                 version = db_version( &major, &minor, &patch );
39233
39234                 if( major != DB_VERSION_MAJOR ||
39235                         minor < DB_VERSION_MINOR )
39236                 {
39237                         printf("Berkeley DB version mismatch\n"
39238                                 "\theader: %s\n\tlibrary: %s\n",
39239                                 DB_VERSION_STRING, version);
39240                         return 1;
39241                 }
39242         }
39243 #endif
39244
39245 #if DB_VERSION_MAJOR > 2
39246         db_env_create( NULL, 0 );
39247 #elif DB_VERSION_MAJOR > 1
39248         db_appexit( NULL );
39249 #else
39250         (void) dbopen( NULL, 0, 0, 0, NULL);
39251 #endif
39252
39253   ;
39254   return 0;
39255 }
39256 _ACEOF
39257 rm -f conftest.$ac_objext conftest$ac_exeext
39258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39259   (eval $ac_link) 2>conftest.er1
39260   ac_status=$?
39261   grep -v '^ *+' conftest.er1 >conftest.err
39262   rm -f conftest.er1
39263   cat conftest.err >&5
39264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265   (exit $ac_status); } &&
39266          { ac_try='test -z "$ac_c_werror_flag"
39267                          || test ! -s conftest.err'
39268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39269   (eval $ac_try) 2>&5
39270   ac_status=$?
39271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272   (exit $ac_status); }; } &&
39273          { ac_try='test -s conftest$ac_exeext'
39274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39275   (eval $ac_try) 2>&5
39276   ac_status=$?
39277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278   (exit $ac_status); }; }; then
39279   ol_cv_db_db=yes
39280 else
39281   echo "$as_me: failed program was:" >&5
39282 sed 's/^/| /' conftest.$ac_ext >&5
39283
39284 ol_cv_db_db=no
39285 fi
39286 rm -f conftest.err conftest.$ac_objext \
39287       conftest$ac_exeext conftest.$ac_ext
39288
39289         LIBS="$ol_LIBS"
39290
39291 fi
39292 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39293 echo "${ECHO_T}$ol_cv_db_db" >&6
39294
39295         if test $ol_cv_db_db = yes ; then
39296                 ol_cv_lib_db=-ldb
39297         fi
39298 fi
39299
39300 if test $ol_cv_lib_db = no ; then
39301         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39302 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39303 if test "${ol_cv_db_db41+set}" = set; then
39304   echo $ECHO_N "(cached) $ECHO_C" >&6
39305 else
39306
39307         ol_DB_LIB=-ldb41
39308         ol_LIBS=$LIBS
39309         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39310
39311         cat >conftest.$ac_ext <<_ACEOF
39312 /* confdefs.h.  */
39313 _ACEOF
39314 cat confdefs.h >>conftest.$ac_ext
39315 cat >>conftest.$ac_ext <<_ACEOF
39316 /* end confdefs.h.  */
39317
39318 #ifdef HAVE_DB_185_H
39319 # include <db_185.h>
39320 #else
39321 # include <db.h>
39322 #endif
39323
39324 #ifndef DB_VERSION_MAJOR
39325 # define DB_VERSION_MAJOR 1
39326 #endif
39327
39328 #ifndef NULL
39329 #define NULL ((void*)0)
39330 #endif
39331
39332 int
39333 main ()
39334 {
39335
39336 #if DB_VERSION_MAJOR > 1
39337         {
39338                 char *version;
39339                 int major, minor, patch;
39340
39341                 version = db_version( &major, &minor, &patch );
39342
39343                 if( major != DB_VERSION_MAJOR ||
39344                         minor < DB_VERSION_MINOR )
39345                 {
39346                         printf("Berkeley DB version mismatch\n"
39347                                 "\theader: %s\n\tlibrary: %s\n",
39348                                 DB_VERSION_STRING, version);
39349                         return 1;
39350                 }
39351         }
39352 #endif
39353
39354 #if DB_VERSION_MAJOR > 2
39355         db_env_create( NULL, 0 );
39356 #elif DB_VERSION_MAJOR > 1
39357         db_appexit( NULL );
39358 #else
39359         (void) dbopen( NULL, 0, 0, 0, NULL);
39360 #endif
39361
39362   ;
39363   return 0;
39364 }
39365 _ACEOF
39366 rm -f conftest.$ac_objext conftest$ac_exeext
39367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39368   (eval $ac_link) 2>conftest.er1
39369   ac_status=$?
39370   grep -v '^ *+' conftest.er1 >conftest.err
39371   rm -f conftest.er1
39372   cat conftest.err >&5
39373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39374   (exit $ac_status); } &&
39375          { ac_try='test -z "$ac_c_werror_flag"
39376                          || test ! -s conftest.err'
39377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39378   (eval $ac_try) 2>&5
39379   ac_status=$?
39380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381   (exit $ac_status); }; } &&
39382          { ac_try='test -s conftest$ac_exeext'
39383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39384   (eval $ac_try) 2>&5
39385   ac_status=$?
39386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387   (exit $ac_status); }; }; then
39388   ol_cv_db_db41=yes
39389 else
39390   echo "$as_me: failed program was:" >&5
39391 sed 's/^/| /' conftest.$ac_ext >&5
39392
39393 ol_cv_db_db41=no
39394 fi
39395 rm -f conftest.err conftest.$ac_objext \
39396       conftest$ac_exeext conftest.$ac_ext
39397
39398         LIBS="$ol_LIBS"
39399
39400 fi
39401 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39402 echo "${ECHO_T}$ol_cv_db_db41" >&6
39403
39404         if test $ol_cv_db_db41 = yes ; then
39405                 ol_cv_lib_db=-ldb41
39406         fi
39407 fi
39408
39409 if test $ol_cv_lib_db = no ; then
39410         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39411 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39412 if test "${ol_cv_db_db_41+set}" = set; then
39413   echo $ECHO_N "(cached) $ECHO_C" >&6
39414 else
39415
39416         ol_DB_LIB=-ldb-41
39417         ol_LIBS=$LIBS
39418         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39419
39420         cat >conftest.$ac_ext <<_ACEOF
39421 /* confdefs.h.  */
39422 _ACEOF
39423 cat confdefs.h >>conftest.$ac_ext
39424 cat >>conftest.$ac_ext <<_ACEOF
39425 /* end confdefs.h.  */
39426
39427 #ifdef HAVE_DB_185_H
39428 # include <db_185.h>
39429 #else
39430 # include <db.h>
39431 #endif
39432
39433 #ifndef DB_VERSION_MAJOR
39434 # define DB_VERSION_MAJOR 1
39435 #endif
39436
39437 #ifndef NULL
39438 #define NULL ((void*)0)
39439 #endif
39440
39441 int
39442 main ()
39443 {
39444
39445 #if DB_VERSION_MAJOR > 1
39446         {
39447                 char *version;
39448                 int major, minor, patch;
39449
39450                 version = db_version( &major, &minor, &patch );
39451
39452                 if( major != DB_VERSION_MAJOR ||
39453                         minor < DB_VERSION_MINOR )
39454                 {
39455                         printf("Berkeley DB version mismatch\n"
39456                                 "\theader: %s\n\tlibrary: %s\n",
39457                                 DB_VERSION_STRING, version);
39458                         return 1;
39459                 }
39460         }
39461 #endif
39462
39463 #if DB_VERSION_MAJOR > 2
39464         db_env_create( NULL, 0 );
39465 #elif DB_VERSION_MAJOR > 1
39466         db_appexit( NULL );
39467 #else
39468         (void) dbopen( NULL, 0, 0, 0, NULL);
39469 #endif
39470
39471   ;
39472   return 0;
39473 }
39474 _ACEOF
39475 rm -f conftest.$ac_objext conftest$ac_exeext
39476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39477   (eval $ac_link) 2>conftest.er1
39478   ac_status=$?
39479   grep -v '^ *+' conftest.er1 >conftest.err
39480   rm -f conftest.er1
39481   cat conftest.err >&5
39482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483   (exit $ac_status); } &&
39484          { ac_try='test -z "$ac_c_werror_flag"
39485                          || test ! -s conftest.err'
39486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39487   (eval $ac_try) 2>&5
39488   ac_status=$?
39489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490   (exit $ac_status); }; } &&
39491          { ac_try='test -s conftest$ac_exeext'
39492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493   (eval $ac_try) 2>&5
39494   ac_status=$?
39495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496   (exit $ac_status); }; }; then
39497   ol_cv_db_db_41=yes
39498 else
39499   echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39501
39502 ol_cv_db_db_41=no
39503 fi
39504 rm -f conftest.err conftest.$ac_objext \
39505       conftest$ac_exeext conftest.$ac_ext
39506
39507         LIBS="$ol_LIBS"
39508
39509 fi
39510 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39511 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39512
39513         if test $ol_cv_db_db_41 = yes ; then
39514                 ol_cv_lib_db=-ldb-41
39515         fi
39516 fi
39517
39518 if test $ol_cv_lib_db = no ; then
39519         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39520 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39521 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39522   echo $ECHO_N "(cached) $ECHO_C" >&6
39523 else
39524
39525         ol_DB_LIB=-ldb-4.1
39526         ol_LIBS=$LIBS
39527         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39528
39529         cat >conftest.$ac_ext <<_ACEOF
39530 /* confdefs.h.  */
39531 _ACEOF
39532 cat confdefs.h >>conftest.$ac_ext
39533 cat >>conftest.$ac_ext <<_ACEOF
39534 /* end confdefs.h.  */
39535
39536 #ifdef HAVE_DB_185_H
39537 # include <db_185.h>
39538 #else
39539 # include <db.h>
39540 #endif
39541
39542 #ifndef DB_VERSION_MAJOR
39543 # define DB_VERSION_MAJOR 1
39544 #endif
39545
39546 #ifndef NULL
39547 #define NULL ((void*)0)
39548 #endif
39549
39550 int
39551 main ()
39552 {
39553
39554 #if DB_VERSION_MAJOR > 1
39555         {
39556                 char *version;
39557                 int major, minor, patch;
39558
39559                 version = db_version( &major, &minor, &patch );
39560
39561                 if( major != DB_VERSION_MAJOR ||
39562                         minor < DB_VERSION_MINOR )
39563                 {
39564                         printf("Berkeley DB version mismatch\n"
39565                                 "\theader: %s\n\tlibrary: %s\n",
39566                                 DB_VERSION_STRING, version);
39567                         return 1;
39568                 }
39569         }
39570 #endif
39571
39572 #if DB_VERSION_MAJOR > 2
39573         db_env_create( NULL, 0 );
39574 #elif DB_VERSION_MAJOR > 1
39575         db_appexit( NULL );
39576 #else
39577         (void) dbopen( NULL, 0, 0, 0, NULL);
39578 #endif
39579
39580   ;
39581   return 0;
39582 }
39583 _ACEOF
39584 rm -f conftest.$ac_objext conftest$ac_exeext
39585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39586   (eval $ac_link) 2>conftest.er1
39587   ac_status=$?
39588   grep -v '^ *+' conftest.er1 >conftest.err
39589   rm -f conftest.er1
39590   cat conftest.err >&5
39591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592   (exit $ac_status); } &&
39593          { ac_try='test -z "$ac_c_werror_flag"
39594                          || test ! -s conftest.err'
39595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596   (eval $ac_try) 2>&5
39597   ac_status=$?
39598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599   (exit $ac_status); }; } &&
39600          { ac_try='test -s conftest$ac_exeext'
39601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39602   (eval $ac_try) 2>&5
39603   ac_status=$?
39604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605   (exit $ac_status); }; }; then
39606   ol_cv_db_db_4_dot_1=yes
39607 else
39608   echo "$as_me: failed program was:" >&5
39609 sed 's/^/| /' conftest.$ac_ext >&5
39610
39611 ol_cv_db_db_4_dot_1=no
39612 fi
39613 rm -f conftest.err conftest.$ac_objext \
39614       conftest$ac_exeext conftest.$ac_ext
39615
39616         LIBS="$ol_LIBS"
39617
39618 fi
39619 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39620 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39621
39622         if test $ol_cv_db_db_4_dot_1 = yes ; then
39623                 ol_cv_lib_db=-ldb-4.1
39624         fi
39625 fi
39626
39627 if test $ol_cv_lib_db = no ; then
39628         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39629 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39630 if test "${ol_cv_db_db_4_1+set}" = set; then
39631   echo $ECHO_N "(cached) $ECHO_C" >&6
39632 else
39633
39634         ol_DB_LIB=-ldb-4-1
39635         ol_LIBS=$LIBS
39636         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39637
39638         cat >conftest.$ac_ext <<_ACEOF
39639 /* confdefs.h.  */
39640 _ACEOF
39641 cat confdefs.h >>conftest.$ac_ext
39642 cat >>conftest.$ac_ext <<_ACEOF
39643 /* end confdefs.h.  */
39644
39645 #ifdef HAVE_DB_185_H
39646 # include <db_185.h>
39647 #else
39648 # include <db.h>
39649 #endif
39650
39651 #ifndef DB_VERSION_MAJOR
39652 # define DB_VERSION_MAJOR 1
39653 #endif
39654
39655 #ifndef NULL
39656 #define NULL ((void*)0)
39657 #endif
39658
39659 int
39660 main ()
39661 {
39662
39663 #if DB_VERSION_MAJOR > 1
39664         {
39665                 char *version;
39666                 int major, minor, patch;
39667
39668                 version = db_version( &major, &minor, &patch );
39669
39670                 if( major != DB_VERSION_MAJOR ||
39671                         minor < DB_VERSION_MINOR )
39672                 {
39673                         printf("Berkeley DB version mismatch\n"
39674                                 "\theader: %s\n\tlibrary: %s\n",
39675                                 DB_VERSION_STRING, version);
39676                         return 1;
39677                 }
39678         }
39679 #endif
39680
39681 #if DB_VERSION_MAJOR > 2
39682         db_env_create( NULL, 0 );
39683 #elif DB_VERSION_MAJOR > 1
39684         db_appexit( NULL );
39685 #else
39686         (void) dbopen( NULL, 0, 0, 0, NULL);
39687 #endif
39688
39689   ;
39690   return 0;
39691 }
39692 _ACEOF
39693 rm -f conftest.$ac_objext conftest$ac_exeext
39694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39695   (eval $ac_link) 2>conftest.er1
39696   ac_status=$?
39697   grep -v '^ *+' conftest.er1 >conftest.err
39698   rm -f conftest.er1
39699   cat conftest.err >&5
39700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701   (exit $ac_status); } &&
39702          { ac_try='test -z "$ac_c_werror_flag"
39703                          || test ! -s conftest.err'
39704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39705   (eval $ac_try) 2>&5
39706   ac_status=$?
39707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708   (exit $ac_status); }; } &&
39709          { ac_try='test -s conftest$ac_exeext'
39710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39711   (eval $ac_try) 2>&5
39712   ac_status=$?
39713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714   (exit $ac_status); }; }; then
39715   ol_cv_db_db_4_1=yes
39716 else
39717   echo "$as_me: failed program was:" >&5
39718 sed 's/^/| /' conftest.$ac_ext >&5
39719
39720 ol_cv_db_db_4_1=no
39721 fi
39722 rm -f conftest.err conftest.$ac_objext \
39723       conftest$ac_exeext conftest.$ac_ext
39724
39725         LIBS="$ol_LIBS"
39726
39727 fi
39728 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39729 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39730
39731         if test $ol_cv_db_db_4_1 = yes ; then
39732                 ol_cv_lib_db=-ldb-4-1
39733         fi
39734 fi
39735
39736 if test $ol_cv_lib_db = no ; then
39737         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39738 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39739 if test "${ol_cv_db_db3+set}" = set; then
39740   echo $ECHO_N "(cached) $ECHO_C" >&6
39741 else
39742
39743         ol_DB_LIB=-ldb3
39744         ol_LIBS=$LIBS
39745         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39746
39747         cat >conftest.$ac_ext <<_ACEOF
39748 /* confdefs.h.  */
39749 _ACEOF
39750 cat confdefs.h >>conftest.$ac_ext
39751 cat >>conftest.$ac_ext <<_ACEOF
39752 /* end confdefs.h.  */
39753
39754 #ifdef HAVE_DB_185_H
39755 # include <db_185.h>
39756 #else
39757 # include <db.h>
39758 #endif
39759
39760 #ifndef DB_VERSION_MAJOR
39761 # define DB_VERSION_MAJOR 1
39762 #endif
39763
39764 #ifndef NULL
39765 #define NULL ((void*)0)
39766 #endif
39767
39768 int
39769 main ()
39770 {
39771
39772 #if DB_VERSION_MAJOR > 1
39773         {
39774                 char *version;
39775                 int major, minor, patch;
39776
39777                 version = db_version( &major, &minor, &patch );
39778
39779                 if( major != DB_VERSION_MAJOR ||
39780                         minor < DB_VERSION_MINOR )
39781                 {
39782                         printf("Berkeley DB version mismatch\n"
39783                                 "\theader: %s\n\tlibrary: %s\n",
39784                                 DB_VERSION_STRING, version);
39785                         return 1;
39786                 }
39787         }
39788 #endif
39789
39790 #if DB_VERSION_MAJOR > 2
39791         db_env_create( NULL, 0 );
39792 #elif DB_VERSION_MAJOR > 1
39793         db_appexit( NULL );
39794 #else
39795         (void) dbopen( NULL, 0, 0, 0, NULL);
39796 #endif
39797
39798   ;
39799   return 0;
39800 }
39801 _ACEOF
39802 rm -f conftest.$ac_objext conftest$ac_exeext
39803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39804   (eval $ac_link) 2>conftest.er1
39805   ac_status=$?
39806   grep -v '^ *+' conftest.er1 >conftest.err
39807   rm -f conftest.er1
39808   cat conftest.err >&5
39809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810   (exit $ac_status); } &&
39811          { ac_try='test -z "$ac_c_werror_flag"
39812                          || test ! -s conftest.err'
39813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39814   (eval $ac_try) 2>&5
39815   ac_status=$?
39816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817   (exit $ac_status); }; } &&
39818          { ac_try='test -s conftest$ac_exeext'
39819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39820   (eval $ac_try) 2>&5
39821   ac_status=$?
39822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823   (exit $ac_status); }; }; then
39824   ol_cv_db_db3=yes
39825 else
39826   echo "$as_me: failed program was:" >&5
39827 sed 's/^/| /' conftest.$ac_ext >&5
39828
39829 ol_cv_db_db3=no
39830 fi
39831 rm -f conftest.err conftest.$ac_objext \
39832       conftest$ac_exeext conftest.$ac_ext
39833
39834         LIBS="$ol_LIBS"
39835
39836 fi
39837 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39838 echo "${ECHO_T}$ol_cv_db_db3" >&6
39839
39840         if test $ol_cv_db_db3 = yes ; then
39841                 ol_cv_lib_db=-ldb3
39842         fi
39843 fi
39844
39845 if test $ol_cv_lib_db = no ; then
39846         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39847 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39848 if test "${ol_cv_db_db_3+set}" = set; then
39849   echo $ECHO_N "(cached) $ECHO_C" >&6
39850 else
39851
39852         ol_DB_LIB=-ldb-3
39853         ol_LIBS=$LIBS
39854         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39855
39856         cat >conftest.$ac_ext <<_ACEOF
39857 /* confdefs.h.  */
39858 _ACEOF
39859 cat confdefs.h >>conftest.$ac_ext
39860 cat >>conftest.$ac_ext <<_ACEOF
39861 /* end confdefs.h.  */
39862
39863 #ifdef HAVE_DB_185_H
39864 # include <db_185.h>
39865 #else
39866 # include <db.h>
39867 #endif
39868
39869 #ifndef DB_VERSION_MAJOR
39870 # define DB_VERSION_MAJOR 1
39871 #endif
39872
39873 #ifndef NULL
39874 #define NULL ((void*)0)
39875 #endif
39876
39877 int
39878 main ()
39879 {
39880
39881 #if DB_VERSION_MAJOR > 1
39882         {
39883                 char *version;
39884                 int major, minor, patch;
39885
39886                 version = db_version( &major, &minor, &patch );
39887
39888                 if( major != DB_VERSION_MAJOR ||
39889                         minor < DB_VERSION_MINOR )
39890                 {
39891                         printf("Berkeley DB version mismatch\n"
39892                                 "\theader: %s\n\tlibrary: %s\n",
39893                                 DB_VERSION_STRING, version);
39894                         return 1;
39895                 }
39896         }
39897 #endif
39898
39899 #if DB_VERSION_MAJOR > 2
39900         db_env_create( NULL, 0 );
39901 #elif DB_VERSION_MAJOR > 1
39902         db_appexit( NULL );
39903 #else
39904         (void) dbopen( NULL, 0, 0, 0, NULL);
39905 #endif
39906
39907   ;
39908   return 0;
39909 }
39910 _ACEOF
39911 rm -f conftest.$ac_objext conftest$ac_exeext
39912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39913   (eval $ac_link) 2>conftest.er1
39914   ac_status=$?
39915   grep -v '^ *+' conftest.er1 >conftest.err
39916   rm -f conftest.er1
39917   cat conftest.err >&5
39918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919   (exit $ac_status); } &&
39920          { ac_try='test -z "$ac_c_werror_flag"
39921                          || test ! -s conftest.err'
39922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39923   (eval $ac_try) 2>&5
39924   ac_status=$?
39925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926   (exit $ac_status); }; } &&
39927          { ac_try='test -s conftest$ac_exeext'
39928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39929   (eval $ac_try) 2>&5
39930   ac_status=$?
39931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39932   (exit $ac_status); }; }; then
39933   ol_cv_db_db_3=yes
39934 else
39935   echo "$as_me: failed program was:" >&5
39936 sed 's/^/| /' conftest.$ac_ext >&5
39937
39938 ol_cv_db_db_3=no
39939 fi
39940 rm -f conftest.err conftest.$ac_objext \
39941       conftest$ac_exeext conftest.$ac_ext
39942
39943         LIBS="$ol_LIBS"
39944
39945 fi
39946 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39947 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39948
39949         if test $ol_cv_db_db_3 = yes ; then
39950                 ol_cv_lib_db=-ldb-3
39951         fi
39952 fi
39953
39954 if test $ol_cv_lib_db = no ; then
39955         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39956 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39957 if test "${ol_cv_db_db2+set}" = set; then
39958   echo $ECHO_N "(cached) $ECHO_C" >&6
39959 else
39960
39961         ol_DB_LIB=-ldb2
39962         ol_LIBS=$LIBS
39963         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39964
39965         cat >conftest.$ac_ext <<_ACEOF
39966 /* confdefs.h.  */
39967 _ACEOF
39968 cat confdefs.h >>conftest.$ac_ext
39969 cat >>conftest.$ac_ext <<_ACEOF
39970 /* end confdefs.h.  */
39971
39972 #ifdef HAVE_DB_185_H
39973 # include <db_185.h>
39974 #else
39975 # include <db.h>
39976 #endif
39977
39978 #ifndef DB_VERSION_MAJOR
39979 # define DB_VERSION_MAJOR 1
39980 #endif
39981
39982 #ifndef NULL
39983 #define NULL ((void*)0)
39984 #endif
39985
39986 int
39987 main ()
39988 {
39989
39990 #if DB_VERSION_MAJOR > 1
39991         {
39992                 char *version;
39993                 int major, minor, patch;
39994
39995                 version = db_version( &major, &minor, &patch );
39996
39997                 if( major != DB_VERSION_MAJOR ||
39998                         minor < DB_VERSION_MINOR )
39999                 {
40000                         printf("Berkeley DB version mismatch\n"
40001                                 "\theader: %s\n\tlibrary: %s\n",
40002                                 DB_VERSION_STRING, version);
40003                         return 1;
40004                 }
40005         }
40006 #endif
40007
40008 #if DB_VERSION_MAJOR > 2
40009         db_env_create( NULL, 0 );
40010 #elif DB_VERSION_MAJOR > 1
40011         db_appexit( NULL );
40012 #else
40013         (void) dbopen( NULL, 0, 0, 0, NULL);
40014 #endif
40015
40016   ;
40017   return 0;
40018 }
40019 _ACEOF
40020 rm -f conftest.$ac_objext conftest$ac_exeext
40021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40022   (eval $ac_link) 2>conftest.er1
40023   ac_status=$?
40024   grep -v '^ *+' conftest.er1 >conftest.err
40025   rm -f conftest.er1
40026   cat conftest.err >&5
40027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40028   (exit $ac_status); } &&
40029          { ac_try='test -z "$ac_c_werror_flag"
40030                          || test ! -s conftest.err'
40031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40032   (eval $ac_try) 2>&5
40033   ac_status=$?
40034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035   (exit $ac_status); }; } &&
40036          { ac_try='test -s conftest$ac_exeext'
40037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038   (eval $ac_try) 2>&5
40039   ac_status=$?
40040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041   (exit $ac_status); }; }; then
40042   ol_cv_db_db2=yes
40043 else
40044   echo "$as_me: failed program was:" >&5
40045 sed 's/^/| /' conftest.$ac_ext >&5
40046
40047 ol_cv_db_db2=no
40048 fi
40049 rm -f conftest.err conftest.$ac_objext \
40050       conftest$ac_exeext conftest.$ac_ext
40051
40052         LIBS="$ol_LIBS"
40053
40054 fi
40055 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40056 echo "${ECHO_T}$ol_cv_db_db2" >&6
40057
40058         if test $ol_cv_db_db2 = yes ; then
40059                 ol_cv_lib_db=-ldb2
40060         fi
40061 fi
40062
40063 if test $ol_cv_lib_db = no ; then
40064         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40065 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40066 if test "${ol_cv_db_db_2+set}" = set; then
40067   echo $ECHO_N "(cached) $ECHO_C" >&6
40068 else
40069
40070         ol_DB_LIB=-ldb-2
40071         ol_LIBS=$LIBS
40072         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40073
40074         cat >conftest.$ac_ext <<_ACEOF
40075 /* confdefs.h.  */
40076 _ACEOF
40077 cat confdefs.h >>conftest.$ac_ext
40078 cat >>conftest.$ac_ext <<_ACEOF
40079 /* end confdefs.h.  */
40080
40081 #ifdef HAVE_DB_185_H
40082 # include <db_185.h>
40083 #else
40084 # include <db.h>
40085 #endif
40086
40087 #ifndef DB_VERSION_MAJOR
40088 # define DB_VERSION_MAJOR 1
40089 #endif
40090
40091 #ifndef NULL
40092 #define NULL ((void*)0)
40093 #endif
40094
40095 int
40096 main ()
40097 {
40098
40099 #if DB_VERSION_MAJOR > 1
40100         {
40101                 char *version;
40102                 int major, minor, patch;
40103
40104                 version = db_version( &major, &minor, &patch );
40105
40106                 if( major != DB_VERSION_MAJOR ||
40107                         minor < DB_VERSION_MINOR )
40108                 {
40109                         printf("Berkeley DB version mismatch\n"
40110                                 "\theader: %s\n\tlibrary: %s\n",
40111                                 DB_VERSION_STRING, version);
40112                         return 1;
40113                 }
40114         }
40115 #endif
40116
40117 #if DB_VERSION_MAJOR > 2
40118         db_env_create( NULL, 0 );
40119 #elif DB_VERSION_MAJOR > 1
40120         db_appexit( NULL );
40121 #else
40122         (void) dbopen( NULL, 0, 0, 0, NULL);
40123 #endif
40124
40125   ;
40126   return 0;
40127 }
40128 _ACEOF
40129 rm -f conftest.$ac_objext conftest$ac_exeext
40130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40131   (eval $ac_link) 2>conftest.er1
40132   ac_status=$?
40133   grep -v '^ *+' conftest.er1 >conftest.err
40134   rm -f conftest.er1
40135   cat conftest.err >&5
40136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137   (exit $ac_status); } &&
40138          { ac_try='test -z "$ac_c_werror_flag"
40139                          || test ! -s conftest.err'
40140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40141   (eval $ac_try) 2>&5
40142   ac_status=$?
40143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40144   (exit $ac_status); }; } &&
40145          { ac_try='test -s conftest$ac_exeext'
40146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40147   (eval $ac_try) 2>&5
40148   ac_status=$?
40149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40150   (exit $ac_status); }; }; then
40151   ol_cv_db_db_2=yes
40152 else
40153   echo "$as_me: failed program was:" >&5
40154 sed 's/^/| /' conftest.$ac_ext >&5
40155
40156 ol_cv_db_db_2=no
40157 fi
40158 rm -f conftest.err conftest.$ac_objext \
40159       conftest$ac_exeext conftest.$ac_ext
40160
40161         LIBS="$ol_LIBS"
40162
40163 fi
40164 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40165 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40166
40167         if test $ol_cv_db_db_2 = yes ; then
40168                 ol_cv_lib_db=-ldb-2
40169         fi
40170 fi
40171
40172 if test $ol_cv_lib_db = no ; then
40173         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40174 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40175 if test "${ol_cv_db_db1+set}" = set; then
40176   echo $ECHO_N "(cached) $ECHO_C" >&6
40177 else
40178
40179         ol_DB_LIB=-ldb1
40180         ol_LIBS=$LIBS
40181         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40182
40183         cat >conftest.$ac_ext <<_ACEOF
40184 /* confdefs.h.  */
40185 _ACEOF
40186 cat confdefs.h >>conftest.$ac_ext
40187 cat >>conftest.$ac_ext <<_ACEOF
40188 /* end confdefs.h.  */
40189
40190 #ifdef HAVE_DB_185_H
40191 # include <db_185.h>
40192 #else
40193 # include <db.h>
40194 #endif
40195
40196 #ifndef DB_VERSION_MAJOR
40197 # define DB_VERSION_MAJOR 1
40198 #endif
40199
40200 #ifndef NULL
40201 #define NULL ((void*)0)
40202 #endif
40203
40204 int
40205 main ()
40206 {
40207
40208 #if DB_VERSION_MAJOR > 1
40209         {
40210                 char *version;
40211                 int major, minor, patch;
40212
40213                 version = db_version( &major, &minor, &patch );
40214
40215                 if( major != DB_VERSION_MAJOR ||
40216                         minor < DB_VERSION_MINOR )
40217                 {
40218                         printf("Berkeley DB version mismatch\n"
40219                                 "\theader: %s\n\tlibrary: %s\n",
40220                                 DB_VERSION_STRING, version);
40221                         return 1;
40222                 }
40223         }
40224 #endif
40225
40226 #if DB_VERSION_MAJOR > 2
40227         db_env_create( NULL, 0 );
40228 #elif DB_VERSION_MAJOR > 1
40229         db_appexit( NULL );
40230 #else
40231         (void) dbopen( NULL, 0, 0, 0, NULL);
40232 #endif
40233
40234   ;
40235   return 0;
40236 }
40237 _ACEOF
40238 rm -f conftest.$ac_objext conftest$ac_exeext
40239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40240   (eval $ac_link) 2>conftest.er1
40241   ac_status=$?
40242   grep -v '^ *+' conftest.er1 >conftest.err
40243   rm -f conftest.er1
40244   cat conftest.err >&5
40245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40246   (exit $ac_status); } &&
40247          { ac_try='test -z "$ac_c_werror_flag"
40248                          || test ! -s conftest.err'
40249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40250   (eval $ac_try) 2>&5
40251   ac_status=$?
40252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253   (exit $ac_status); }; } &&
40254          { ac_try='test -s conftest$ac_exeext'
40255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40256   (eval $ac_try) 2>&5
40257   ac_status=$?
40258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40259   (exit $ac_status); }; }; then
40260   ol_cv_db_db1=yes
40261 else
40262   echo "$as_me: failed program was:" >&5
40263 sed 's/^/| /' conftest.$ac_ext >&5
40264
40265 ol_cv_db_db1=no
40266 fi
40267 rm -f conftest.err conftest.$ac_objext \
40268       conftest$ac_exeext conftest.$ac_ext
40269
40270         LIBS="$ol_LIBS"
40271
40272 fi
40273 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40274 echo "${ECHO_T}$ol_cv_db_db1" >&6
40275
40276         if test $ol_cv_db_db1 = yes ; then
40277                 ol_cv_lib_db=-ldb1
40278         fi
40279 fi
40280
40281 if test $ol_cv_lib_db = no ; then
40282         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40283 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40284 if test "${ol_cv_db_db_1+set}" = set; then
40285   echo $ECHO_N "(cached) $ECHO_C" >&6
40286 else
40287
40288         ol_DB_LIB=-ldb-1
40289         ol_LIBS=$LIBS
40290         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40291
40292         cat >conftest.$ac_ext <<_ACEOF
40293 /* confdefs.h.  */
40294 _ACEOF
40295 cat confdefs.h >>conftest.$ac_ext
40296 cat >>conftest.$ac_ext <<_ACEOF
40297 /* end confdefs.h.  */
40298
40299 #ifdef HAVE_DB_185_H
40300 # include <db_185.h>
40301 #else
40302 # include <db.h>
40303 #endif
40304
40305 #ifndef DB_VERSION_MAJOR
40306 # define DB_VERSION_MAJOR 1
40307 #endif
40308
40309 #ifndef NULL
40310 #define NULL ((void*)0)
40311 #endif
40312
40313 int
40314 main ()
40315 {
40316
40317 #if DB_VERSION_MAJOR > 1
40318         {
40319                 char *version;
40320                 int major, minor, patch;
40321
40322                 version = db_version( &major, &minor, &patch );
40323
40324                 if( major != DB_VERSION_MAJOR ||
40325                         minor < DB_VERSION_MINOR )
40326                 {
40327                         printf("Berkeley DB version mismatch\n"
40328                                 "\theader: %s\n\tlibrary: %s\n",
40329                                 DB_VERSION_STRING, version);
40330                         return 1;
40331                 }
40332         }
40333 #endif
40334
40335 #if DB_VERSION_MAJOR > 2
40336         db_env_create( NULL, 0 );
40337 #elif DB_VERSION_MAJOR > 1
40338         db_appexit( NULL );
40339 #else
40340         (void) dbopen( NULL, 0, 0, 0, NULL);
40341 #endif
40342
40343   ;
40344   return 0;
40345 }
40346 _ACEOF
40347 rm -f conftest.$ac_objext conftest$ac_exeext
40348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40349   (eval $ac_link) 2>conftest.er1
40350   ac_status=$?
40351   grep -v '^ *+' conftest.er1 >conftest.err
40352   rm -f conftest.er1
40353   cat conftest.err >&5
40354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40355   (exit $ac_status); } &&
40356          { ac_try='test -z "$ac_c_werror_flag"
40357                          || test ! -s conftest.err'
40358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40359   (eval $ac_try) 2>&5
40360   ac_status=$?
40361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40362   (exit $ac_status); }; } &&
40363          { ac_try='test -s conftest$ac_exeext'
40364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40365   (eval $ac_try) 2>&5
40366   ac_status=$?
40367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368   (exit $ac_status); }; }; then
40369   ol_cv_db_db_1=yes
40370 else
40371   echo "$as_me: failed program was:" >&5
40372 sed 's/^/| /' conftest.$ac_ext >&5
40373
40374 ol_cv_db_db_1=no
40375 fi
40376 rm -f conftest.err conftest.$ac_objext \
40377       conftest$ac_exeext conftest.$ac_ext
40378
40379         LIBS="$ol_LIBS"
40380
40381 fi
40382 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40383 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40384
40385         if test $ol_cv_db_db_1 = yes ; then
40386                 ol_cv_lib_db=-ldb-1
40387         fi
40388 fi
40389
40390
40391                 if test "$ol_cv_lib_db" != no ; then
40392                         ol_cv_berkeley_db=yes
40393                 fi
40394         fi
40395 fi
40396
40397         else
40398                 ol_cv_berkeley_db=no
40399
40400 for ac_header in db.h
40401 do
40402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40404   echo "$as_me:$LINENO: checking for $ac_header" >&5
40405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40407   echo $ECHO_N "(cached) $ECHO_C" >&6
40408 fi
40409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40411 else
40412   # Is the header compilable?
40413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40415 cat >conftest.$ac_ext <<_ACEOF
40416 /* confdefs.h.  */
40417 _ACEOF
40418 cat confdefs.h >>conftest.$ac_ext
40419 cat >>conftest.$ac_ext <<_ACEOF
40420 /* end confdefs.h.  */
40421 $ac_includes_default
40422 #include <$ac_header>
40423 _ACEOF
40424 rm -f conftest.$ac_objext
40425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40426   (eval $ac_compile) 2>conftest.er1
40427   ac_status=$?
40428   grep -v '^ *+' conftest.er1 >conftest.err
40429   rm -f conftest.er1
40430   cat conftest.err >&5
40431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40432   (exit $ac_status); } &&
40433          { ac_try='test -z "$ac_c_werror_flag"
40434                          || test ! -s conftest.err'
40435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40436   (eval $ac_try) 2>&5
40437   ac_status=$?
40438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439   (exit $ac_status); }; } &&
40440          { ac_try='test -s conftest.$ac_objext'
40441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40442   (eval $ac_try) 2>&5
40443   ac_status=$?
40444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445   (exit $ac_status); }; }; then
40446   ac_header_compiler=yes
40447 else
40448   echo "$as_me: failed program was:" >&5
40449 sed 's/^/| /' conftest.$ac_ext >&5
40450
40451 ac_header_compiler=no
40452 fi
40453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40455 echo "${ECHO_T}$ac_header_compiler" >&6
40456
40457 # Is the header present?
40458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40460 cat >conftest.$ac_ext <<_ACEOF
40461 /* confdefs.h.  */
40462 _ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h.  */
40466 #include <$ac_header>
40467 _ACEOF
40468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40470   ac_status=$?
40471   grep -v '^ *+' conftest.er1 >conftest.err
40472   rm -f conftest.er1
40473   cat conftest.err >&5
40474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475   (exit $ac_status); } >/dev/null; then
40476   if test -s conftest.err; then
40477     ac_cpp_err=$ac_c_preproc_warn_flag
40478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40479   else
40480     ac_cpp_err=
40481   fi
40482 else
40483   ac_cpp_err=yes
40484 fi
40485 if test -z "$ac_cpp_err"; then
40486   ac_header_preproc=yes
40487 else
40488   echo "$as_me: failed program was:" >&5
40489 sed 's/^/| /' conftest.$ac_ext >&5
40490
40491   ac_header_preproc=no
40492 fi
40493 rm -f conftest.err conftest.$ac_ext
40494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40495 echo "${ECHO_T}$ac_header_preproc" >&6
40496
40497 # So?  What about this header?
40498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40499   yes:no: )
40500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40504     ac_header_preproc=yes
40505     ;;
40506   no:yes:* )
40507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40509     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40510 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40511     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40513     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40514 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40517     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40519     (
40520       cat <<\_ASBOX
40521 ## ------------------------------------------ ##
40522 ## Report this to the AC_PACKAGE_NAME lists.  ##
40523 ## ------------------------------------------ ##
40524 _ASBOX
40525     ) |
40526       sed "s/^/$as_me: WARNING:     /" >&2
40527     ;;
40528 esac
40529 echo "$as_me:$LINENO: checking for $ac_header" >&5
40530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40532   echo $ECHO_N "(cached) $ECHO_C" >&6
40533 else
40534   eval "$as_ac_Header=\$ac_header_preproc"
40535 fi
40536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40538
40539 fi
40540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40541   cat >>confdefs.h <<_ACEOF
40542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40543 _ACEOF
40544
40545 fi
40546
40547 done
40548
40549 if test $ac_cv_header_db_h = yes; then
40550         ol_cv_lib_db=no
40551 if test $ol_cv_lib_db = no ; then
40552         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40553 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40554 if test "${ol_cv_db_none+set}" = set; then
40555   echo $ECHO_N "(cached) $ECHO_C" >&6
40556 else
40557
40558         ol_DB_LIB=
40559         ol_LIBS=$LIBS
40560         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40561
40562         cat >conftest.$ac_ext <<_ACEOF
40563 /* confdefs.h.  */
40564 _ACEOF
40565 cat confdefs.h >>conftest.$ac_ext
40566 cat >>conftest.$ac_ext <<_ACEOF
40567 /* end confdefs.h.  */
40568
40569 #ifdef HAVE_DB_185_H
40570 # include <db_185.h>
40571 #else
40572 # include <db.h>
40573 #endif
40574
40575 #ifndef DB_VERSION_MAJOR
40576 # define DB_VERSION_MAJOR 1
40577 #endif
40578
40579 #ifndef NULL
40580 #define NULL ((void*)0)
40581 #endif
40582
40583 int
40584 main ()
40585 {
40586
40587 #if DB_VERSION_MAJOR > 1
40588         {
40589                 char *version;
40590                 int major, minor, patch;
40591
40592                 version = db_version( &major, &minor, &patch );
40593
40594                 if( major != DB_VERSION_MAJOR ||
40595                         minor < DB_VERSION_MINOR )
40596                 {
40597                         printf("Berkeley DB version mismatch\n"
40598                                 "\theader: %s\n\tlibrary: %s\n",
40599                                 DB_VERSION_STRING, version);
40600                         return 1;
40601                 }
40602         }
40603 #endif
40604
40605 #if DB_VERSION_MAJOR > 2
40606         db_env_create( NULL, 0 );
40607 #elif DB_VERSION_MAJOR > 1
40608         db_appexit( NULL );
40609 #else
40610         (void) dbopen( NULL, 0, 0, 0, NULL);
40611 #endif
40612
40613   ;
40614   return 0;
40615 }
40616 _ACEOF
40617 rm -f conftest.$ac_objext conftest$ac_exeext
40618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40619   (eval $ac_link) 2>conftest.er1
40620   ac_status=$?
40621   grep -v '^ *+' conftest.er1 >conftest.err
40622   rm -f conftest.er1
40623   cat conftest.err >&5
40624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40625   (exit $ac_status); } &&
40626          { ac_try='test -z "$ac_c_werror_flag"
40627                          || test ! -s conftest.err'
40628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40629   (eval $ac_try) 2>&5
40630   ac_status=$?
40631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632   (exit $ac_status); }; } &&
40633          { ac_try='test -s conftest$ac_exeext'
40634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40635   (eval $ac_try) 2>&5
40636   ac_status=$?
40637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638   (exit $ac_status); }; }; then
40639   ol_cv_db_none=yes
40640 else
40641   echo "$as_me: failed program was:" >&5
40642 sed 's/^/| /' conftest.$ac_ext >&5
40643
40644 ol_cv_db_none=no
40645 fi
40646 rm -f conftest.err conftest.$ac_objext \
40647       conftest$ac_exeext conftest.$ac_ext
40648
40649         LIBS="$ol_LIBS"
40650
40651 fi
40652 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40653 echo "${ECHO_T}$ol_cv_db_none" >&6
40654
40655         if test $ol_cv_db_none = yes ; then
40656                 ol_cv_lib_db=yes
40657         fi
40658 fi
40659
40660 if test $ol_cv_lib_db = no ; then
40661         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40662 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40663 if test "${ol_cv_db_db43+set}" = set; then
40664   echo $ECHO_N "(cached) $ECHO_C" >&6
40665 else
40666
40667         ol_DB_LIB=-ldb43
40668         ol_LIBS=$LIBS
40669         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40670
40671         cat >conftest.$ac_ext <<_ACEOF
40672 /* confdefs.h.  */
40673 _ACEOF
40674 cat confdefs.h >>conftest.$ac_ext
40675 cat >>conftest.$ac_ext <<_ACEOF
40676 /* end confdefs.h.  */
40677
40678 #ifdef HAVE_DB_185_H
40679 # include <db_185.h>
40680 #else
40681 # include <db.h>
40682 #endif
40683
40684 #ifndef DB_VERSION_MAJOR
40685 # define DB_VERSION_MAJOR 1
40686 #endif
40687
40688 #ifndef NULL
40689 #define NULL ((void*)0)
40690 #endif
40691
40692 int
40693 main ()
40694 {
40695
40696 #if DB_VERSION_MAJOR > 1
40697         {
40698                 char *version;
40699                 int major, minor, patch;
40700
40701                 version = db_version( &major, &minor, &patch );
40702
40703                 if( major != DB_VERSION_MAJOR ||
40704                         minor < DB_VERSION_MINOR )
40705                 {
40706                         printf("Berkeley DB version mismatch\n"
40707                                 "\theader: %s\n\tlibrary: %s\n",
40708                                 DB_VERSION_STRING, version);
40709                         return 1;
40710                 }
40711         }
40712 #endif
40713
40714 #if DB_VERSION_MAJOR > 2
40715         db_env_create( NULL, 0 );
40716 #elif DB_VERSION_MAJOR > 1
40717         db_appexit( NULL );
40718 #else
40719         (void) dbopen( NULL, 0, 0, 0, NULL);
40720 #endif
40721
40722   ;
40723   return 0;
40724 }
40725 _ACEOF
40726 rm -f conftest.$ac_objext conftest$ac_exeext
40727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40728   (eval $ac_link) 2>conftest.er1
40729   ac_status=$?
40730   grep -v '^ *+' conftest.er1 >conftest.err
40731   rm -f conftest.er1
40732   cat conftest.err >&5
40733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734   (exit $ac_status); } &&
40735          { ac_try='test -z "$ac_c_werror_flag"
40736                          || test ! -s conftest.err'
40737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40738   (eval $ac_try) 2>&5
40739   ac_status=$?
40740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40741   (exit $ac_status); }; } &&
40742          { ac_try='test -s conftest$ac_exeext'
40743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40744   (eval $ac_try) 2>&5
40745   ac_status=$?
40746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747   (exit $ac_status); }; }; then
40748   ol_cv_db_db43=yes
40749 else
40750   echo "$as_me: failed program was:" >&5
40751 sed 's/^/| /' conftest.$ac_ext >&5
40752
40753 ol_cv_db_db43=no
40754 fi
40755 rm -f conftest.err conftest.$ac_objext \
40756       conftest$ac_exeext conftest.$ac_ext
40757
40758         LIBS="$ol_LIBS"
40759
40760 fi
40761 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40762 echo "${ECHO_T}$ol_cv_db_db43" >&6
40763
40764         if test $ol_cv_db_db43 = yes ; then
40765                 ol_cv_lib_db=-ldb43
40766         fi
40767 fi
40768
40769 if test $ol_cv_lib_db = no ; then
40770         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40771 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40772 if test "${ol_cv_db_db_43+set}" = set; then
40773   echo $ECHO_N "(cached) $ECHO_C" >&6
40774 else
40775
40776         ol_DB_LIB=-ldb-43
40777         ol_LIBS=$LIBS
40778         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40779
40780         cat >conftest.$ac_ext <<_ACEOF
40781 /* confdefs.h.  */
40782 _ACEOF
40783 cat confdefs.h >>conftest.$ac_ext
40784 cat >>conftest.$ac_ext <<_ACEOF
40785 /* end confdefs.h.  */
40786
40787 #ifdef HAVE_DB_185_H
40788 # include <db_185.h>
40789 #else
40790 # include <db.h>
40791 #endif
40792
40793 #ifndef DB_VERSION_MAJOR
40794 # define DB_VERSION_MAJOR 1
40795 #endif
40796
40797 #ifndef NULL
40798 #define NULL ((void*)0)
40799 #endif
40800
40801 int
40802 main ()
40803 {
40804
40805 #if DB_VERSION_MAJOR > 1
40806         {
40807                 char *version;
40808                 int major, minor, patch;
40809
40810                 version = db_version( &major, &minor, &patch );
40811
40812                 if( major != DB_VERSION_MAJOR ||
40813                         minor < DB_VERSION_MINOR )
40814                 {
40815                         printf("Berkeley DB version mismatch\n"
40816                                 "\theader: %s\n\tlibrary: %s\n",
40817                                 DB_VERSION_STRING, version);
40818                         return 1;
40819                 }
40820         }
40821 #endif
40822
40823 #if DB_VERSION_MAJOR > 2
40824         db_env_create( NULL, 0 );
40825 #elif DB_VERSION_MAJOR > 1
40826         db_appexit( NULL );
40827 #else
40828         (void) dbopen( NULL, 0, 0, 0, NULL);
40829 #endif
40830
40831   ;
40832   return 0;
40833 }
40834 _ACEOF
40835 rm -f conftest.$ac_objext conftest$ac_exeext
40836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40837   (eval $ac_link) 2>conftest.er1
40838   ac_status=$?
40839   grep -v '^ *+' conftest.er1 >conftest.err
40840   rm -f conftest.er1
40841   cat conftest.err >&5
40842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843   (exit $ac_status); } &&
40844          { ac_try='test -z "$ac_c_werror_flag"
40845                          || test ! -s conftest.err'
40846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40847   (eval $ac_try) 2>&5
40848   ac_status=$?
40849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850   (exit $ac_status); }; } &&
40851          { ac_try='test -s conftest$ac_exeext'
40852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40853   (eval $ac_try) 2>&5
40854   ac_status=$?
40855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856   (exit $ac_status); }; }; then
40857   ol_cv_db_db_43=yes
40858 else
40859   echo "$as_me: failed program was:" >&5
40860 sed 's/^/| /' conftest.$ac_ext >&5
40861
40862 ol_cv_db_db_43=no
40863 fi
40864 rm -f conftest.err conftest.$ac_objext \
40865       conftest$ac_exeext conftest.$ac_ext
40866
40867         LIBS="$ol_LIBS"
40868
40869 fi
40870 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40871 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40872
40873         if test $ol_cv_db_db_43 = yes ; then
40874                 ol_cv_lib_db=-ldb-43
40875         fi
40876 fi
40877
40878 if test $ol_cv_lib_db = no ; then
40879         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40880 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40881 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40882   echo $ECHO_N "(cached) $ECHO_C" >&6
40883 else
40884
40885         ol_DB_LIB=-ldb-4.3
40886         ol_LIBS=$LIBS
40887         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40888
40889         cat >conftest.$ac_ext <<_ACEOF
40890 /* confdefs.h.  */
40891 _ACEOF
40892 cat confdefs.h >>conftest.$ac_ext
40893 cat >>conftest.$ac_ext <<_ACEOF
40894 /* end confdefs.h.  */
40895
40896 #ifdef HAVE_DB_185_H
40897 # include <db_185.h>
40898 #else
40899 # include <db.h>
40900 #endif
40901
40902 #ifndef DB_VERSION_MAJOR
40903 # define DB_VERSION_MAJOR 1
40904 #endif
40905
40906 #ifndef NULL
40907 #define NULL ((void*)0)
40908 #endif
40909
40910 int
40911 main ()
40912 {
40913
40914 #if DB_VERSION_MAJOR > 1
40915         {
40916                 char *version;
40917                 int major, minor, patch;
40918
40919                 version = db_version( &major, &minor, &patch );
40920
40921                 if( major != DB_VERSION_MAJOR ||
40922                         minor < DB_VERSION_MINOR )
40923                 {
40924                         printf("Berkeley DB version mismatch\n"
40925                                 "\theader: %s\n\tlibrary: %s\n",
40926                                 DB_VERSION_STRING, version);
40927                         return 1;
40928                 }
40929         }
40930 #endif
40931
40932 #if DB_VERSION_MAJOR > 2
40933         db_env_create( NULL, 0 );
40934 #elif DB_VERSION_MAJOR > 1
40935         db_appexit( NULL );
40936 #else
40937         (void) dbopen( NULL, 0, 0, 0, NULL);
40938 #endif
40939
40940   ;
40941   return 0;
40942 }
40943 _ACEOF
40944 rm -f conftest.$ac_objext conftest$ac_exeext
40945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40946   (eval $ac_link) 2>conftest.er1
40947   ac_status=$?
40948   grep -v '^ *+' conftest.er1 >conftest.err
40949   rm -f conftest.er1
40950   cat conftest.err >&5
40951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40952   (exit $ac_status); } &&
40953          { ac_try='test -z "$ac_c_werror_flag"
40954                          || test ! -s conftest.err'
40955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40956   (eval $ac_try) 2>&5
40957   ac_status=$?
40958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959   (exit $ac_status); }; } &&
40960          { ac_try='test -s conftest$ac_exeext'
40961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40962   (eval $ac_try) 2>&5
40963   ac_status=$?
40964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965   (exit $ac_status); }; }; then
40966   ol_cv_db_db_4_dot_3=yes
40967 else
40968   echo "$as_me: failed program was:" >&5
40969 sed 's/^/| /' conftest.$ac_ext >&5
40970
40971 ol_cv_db_db_4_dot_3=no
40972 fi
40973 rm -f conftest.err conftest.$ac_objext \
40974       conftest$ac_exeext conftest.$ac_ext
40975
40976         LIBS="$ol_LIBS"
40977
40978 fi
40979 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40980 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40981
40982         if test $ol_cv_db_db_4_dot_3 = yes ; then
40983                 ol_cv_lib_db=-ldb-4.3
40984         fi
40985 fi
40986
40987 if test $ol_cv_lib_db = no ; then
40988         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40989 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40990 if test "${ol_cv_db_db_4_3+set}" = set; then
40991   echo $ECHO_N "(cached) $ECHO_C" >&6
40992 else
40993
40994         ol_DB_LIB=-ldb-4-3
40995         ol_LIBS=$LIBS
40996         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40997
40998         cat >conftest.$ac_ext <<_ACEOF
40999 /* confdefs.h.  */
41000 _ACEOF
41001 cat confdefs.h >>conftest.$ac_ext
41002 cat >>conftest.$ac_ext <<_ACEOF
41003 /* end confdefs.h.  */
41004
41005 #ifdef HAVE_DB_185_H
41006 # include <db_185.h>
41007 #else
41008 # include <db.h>
41009 #endif
41010
41011 #ifndef DB_VERSION_MAJOR
41012 # define DB_VERSION_MAJOR 1
41013 #endif
41014
41015 #ifndef NULL
41016 #define NULL ((void*)0)
41017 #endif
41018
41019 int
41020 main ()
41021 {
41022
41023 #if DB_VERSION_MAJOR > 1
41024         {
41025                 char *version;
41026                 int major, minor, patch;
41027
41028                 version = db_version( &major, &minor, &patch );
41029
41030                 if( major != DB_VERSION_MAJOR ||
41031                         minor < DB_VERSION_MINOR )
41032                 {
41033                         printf("Berkeley DB version mismatch\n"
41034                                 "\theader: %s\n\tlibrary: %s\n",
41035                                 DB_VERSION_STRING, version);
41036                         return 1;
41037                 }
41038         }
41039 #endif
41040
41041 #if DB_VERSION_MAJOR > 2
41042         db_env_create( NULL, 0 );
41043 #elif DB_VERSION_MAJOR > 1
41044         db_appexit( NULL );
41045 #else
41046         (void) dbopen( NULL, 0, 0, 0, NULL);
41047 #endif
41048
41049   ;
41050   return 0;
41051 }
41052 _ACEOF
41053 rm -f conftest.$ac_objext conftest$ac_exeext
41054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41055   (eval $ac_link) 2>conftest.er1
41056   ac_status=$?
41057   grep -v '^ *+' conftest.er1 >conftest.err
41058   rm -f conftest.er1
41059   cat conftest.err >&5
41060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061   (exit $ac_status); } &&
41062          { ac_try='test -z "$ac_c_werror_flag"
41063                          || test ! -s conftest.err'
41064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41065   (eval $ac_try) 2>&5
41066   ac_status=$?
41067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068   (exit $ac_status); }; } &&
41069          { ac_try='test -s conftest$ac_exeext'
41070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41071   (eval $ac_try) 2>&5
41072   ac_status=$?
41073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41074   (exit $ac_status); }; }; then
41075   ol_cv_db_db_4_3=yes
41076 else
41077   echo "$as_me: failed program was:" >&5
41078 sed 's/^/| /' conftest.$ac_ext >&5
41079
41080 ol_cv_db_db_4_3=no
41081 fi
41082 rm -f conftest.err conftest.$ac_objext \
41083       conftest$ac_exeext conftest.$ac_ext
41084
41085         LIBS="$ol_LIBS"
41086
41087 fi
41088 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41089 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41090
41091         if test $ol_cv_db_db_4_3 = yes ; then
41092                 ol_cv_lib_db=-ldb-4-3
41093         fi
41094 fi
41095
41096 if test $ol_cv_lib_db = no ; then
41097         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41098 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41099 if test "${ol_cv_db_db42+set}" = set; then
41100   echo $ECHO_N "(cached) $ECHO_C" >&6
41101 else
41102
41103         ol_DB_LIB=-ldb42
41104         ol_LIBS=$LIBS
41105         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41106
41107         cat >conftest.$ac_ext <<_ACEOF
41108 /* confdefs.h.  */
41109 _ACEOF
41110 cat confdefs.h >>conftest.$ac_ext
41111 cat >>conftest.$ac_ext <<_ACEOF
41112 /* end confdefs.h.  */
41113
41114 #ifdef HAVE_DB_185_H
41115 # include <db_185.h>
41116 #else
41117 # include <db.h>
41118 #endif
41119
41120 #ifndef DB_VERSION_MAJOR
41121 # define DB_VERSION_MAJOR 1
41122 #endif
41123
41124 #ifndef NULL
41125 #define NULL ((void*)0)
41126 #endif
41127
41128 int
41129 main ()
41130 {
41131
41132 #if DB_VERSION_MAJOR > 1
41133         {
41134                 char *version;
41135                 int major, minor, patch;
41136
41137                 version = db_version( &major, &minor, &patch );
41138
41139                 if( major != DB_VERSION_MAJOR ||
41140                         minor < DB_VERSION_MINOR )
41141                 {
41142                         printf("Berkeley DB version mismatch\n"
41143                                 "\theader: %s\n\tlibrary: %s\n",
41144                                 DB_VERSION_STRING, version);
41145                         return 1;
41146                 }
41147         }
41148 #endif
41149
41150 #if DB_VERSION_MAJOR > 2
41151         db_env_create( NULL, 0 );
41152 #elif DB_VERSION_MAJOR > 1
41153         db_appexit( NULL );
41154 #else
41155         (void) dbopen( NULL, 0, 0, 0, NULL);
41156 #endif
41157
41158   ;
41159   return 0;
41160 }
41161 _ACEOF
41162 rm -f conftest.$ac_objext conftest$ac_exeext
41163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41164   (eval $ac_link) 2>conftest.er1
41165   ac_status=$?
41166   grep -v '^ *+' conftest.er1 >conftest.err
41167   rm -f conftest.er1
41168   cat conftest.err >&5
41169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41170   (exit $ac_status); } &&
41171          { ac_try='test -z "$ac_c_werror_flag"
41172                          || test ! -s conftest.err'
41173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41174   (eval $ac_try) 2>&5
41175   ac_status=$?
41176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41177   (exit $ac_status); }; } &&
41178          { ac_try='test -s conftest$ac_exeext'
41179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41180   (eval $ac_try) 2>&5
41181   ac_status=$?
41182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41183   (exit $ac_status); }; }; then
41184   ol_cv_db_db42=yes
41185 else
41186   echo "$as_me: failed program was:" >&5
41187 sed 's/^/| /' conftest.$ac_ext >&5
41188
41189 ol_cv_db_db42=no
41190 fi
41191 rm -f conftest.err conftest.$ac_objext \
41192       conftest$ac_exeext conftest.$ac_ext
41193
41194         LIBS="$ol_LIBS"
41195
41196 fi
41197 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41198 echo "${ECHO_T}$ol_cv_db_db42" >&6
41199
41200         if test $ol_cv_db_db42 = yes ; then
41201                 ol_cv_lib_db=-ldb42
41202         fi
41203 fi
41204
41205 if test $ol_cv_lib_db = no ; then
41206         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41207 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41208 if test "${ol_cv_db_db_42+set}" = set; then
41209   echo $ECHO_N "(cached) $ECHO_C" >&6
41210 else
41211
41212         ol_DB_LIB=-ldb-42
41213         ol_LIBS=$LIBS
41214         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41215
41216         cat >conftest.$ac_ext <<_ACEOF
41217 /* confdefs.h.  */
41218 _ACEOF
41219 cat confdefs.h >>conftest.$ac_ext
41220 cat >>conftest.$ac_ext <<_ACEOF
41221 /* end confdefs.h.  */
41222
41223 #ifdef HAVE_DB_185_H
41224 # include <db_185.h>
41225 #else
41226 # include <db.h>
41227 #endif
41228
41229 #ifndef DB_VERSION_MAJOR
41230 # define DB_VERSION_MAJOR 1
41231 #endif
41232
41233 #ifndef NULL
41234 #define NULL ((void*)0)
41235 #endif
41236
41237 int
41238 main ()
41239 {
41240
41241 #if DB_VERSION_MAJOR > 1
41242         {
41243                 char *version;
41244                 int major, minor, patch;
41245
41246                 version = db_version( &major, &minor, &patch );
41247
41248                 if( major != DB_VERSION_MAJOR ||
41249                         minor < DB_VERSION_MINOR )
41250                 {
41251                         printf("Berkeley DB version mismatch\n"
41252                                 "\theader: %s\n\tlibrary: %s\n",
41253                                 DB_VERSION_STRING, version);
41254                         return 1;
41255                 }
41256         }
41257 #endif
41258
41259 #if DB_VERSION_MAJOR > 2
41260         db_env_create( NULL, 0 );
41261 #elif DB_VERSION_MAJOR > 1
41262         db_appexit( NULL );
41263 #else
41264         (void) dbopen( NULL, 0, 0, 0, NULL);
41265 #endif
41266
41267   ;
41268   return 0;
41269 }
41270 _ACEOF
41271 rm -f conftest.$ac_objext conftest$ac_exeext
41272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41273   (eval $ac_link) 2>conftest.er1
41274   ac_status=$?
41275   grep -v '^ *+' conftest.er1 >conftest.err
41276   rm -f conftest.er1
41277   cat conftest.err >&5
41278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279   (exit $ac_status); } &&
41280          { ac_try='test -z "$ac_c_werror_flag"
41281                          || test ! -s conftest.err'
41282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41283   (eval $ac_try) 2>&5
41284   ac_status=$?
41285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286   (exit $ac_status); }; } &&
41287          { ac_try='test -s conftest$ac_exeext'
41288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41289   (eval $ac_try) 2>&5
41290   ac_status=$?
41291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41292   (exit $ac_status); }; }; then
41293   ol_cv_db_db_42=yes
41294 else
41295   echo "$as_me: failed program was:" >&5
41296 sed 's/^/| /' conftest.$ac_ext >&5
41297
41298 ol_cv_db_db_42=no
41299 fi
41300 rm -f conftest.err conftest.$ac_objext \
41301       conftest$ac_exeext conftest.$ac_ext
41302
41303         LIBS="$ol_LIBS"
41304
41305 fi
41306 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41307 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41308
41309         if test $ol_cv_db_db_42 = yes ; then
41310                 ol_cv_lib_db=-ldb-42
41311         fi
41312 fi
41313
41314 if test $ol_cv_lib_db = no ; then
41315         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41316 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41317 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41318   echo $ECHO_N "(cached) $ECHO_C" >&6
41319 else
41320
41321         ol_DB_LIB=-ldb-4.2
41322         ol_LIBS=$LIBS
41323         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41324
41325         cat >conftest.$ac_ext <<_ACEOF
41326 /* confdefs.h.  */
41327 _ACEOF
41328 cat confdefs.h >>conftest.$ac_ext
41329 cat >>conftest.$ac_ext <<_ACEOF
41330 /* end confdefs.h.  */
41331
41332 #ifdef HAVE_DB_185_H
41333 # include <db_185.h>
41334 #else
41335 # include <db.h>
41336 #endif
41337
41338 #ifndef DB_VERSION_MAJOR
41339 # define DB_VERSION_MAJOR 1
41340 #endif
41341
41342 #ifndef NULL
41343 #define NULL ((void*)0)
41344 #endif
41345
41346 int
41347 main ()
41348 {
41349
41350 #if DB_VERSION_MAJOR > 1
41351         {
41352                 char *version;
41353                 int major, minor, patch;
41354
41355                 version = db_version( &major, &minor, &patch );
41356
41357                 if( major != DB_VERSION_MAJOR ||
41358                         minor < DB_VERSION_MINOR )
41359                 {
41360                         printf("Berkeley DB version mismatch\n"
41361                                 "\theader: %s\n\tlibrary: %s\n",
41362                                 DB_VERSION_STRING, version);
41363                         return 1;
41364                 }
41365         }
41366 #endif
41367
41368 #if DB_VERSION_MAJOR > 2
41369         db_env_create( NULL, 0 );
41370 #elif DB_VERSION_MAJOR > 1
41371         db_appexit( NULL );
41372 #else
41373         (void) dbopen( NULL, 0, 0, 0, NULL);
41374 #endif
41375
41376   ;
41377   return 0;
41378 }
41379 _ACEOF
41380 rm -f conftest.$ac_objext conftest$ac_exeext
41381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41382   (eval $ac_link) 2>conftest.er1
41383   ac_status=$?
41384   grep -v '^ *+' conftest.er1 >conftest.err
41385   rm -f conftest.er1
41386   cat conftest.err >&5
41387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388   (exit $ac_status); } &&
41389          { ac_try='test -z "$ac_c_werror_flag"
41390                          || test ! -s conftest.err'
41391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41392   (eval $ac_try) 2>&5
41393   ac_status=$?
41394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41395   (exit $ac_status); }; } &&
41396          { ac_try='test -s conftest$ac_exeext'
41397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41398   (eval $ac_try) 2>&5
41399   ac_status=$?
41400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41401   (exit $ac_status); }; }; then
41402   ol_cv_db_db_4_dot_2=yes
41403 else
41404   echo "$as_me: failed program was:" >&5
41405 sed 's/^/| /' conftest.$ac_ext >&5
41406
41407 ol_cv_db_db_4_dot_2=no
41408 fi
41409 rm -f conftest.err conftest.$ac_objext \
41410       conftest$ac_exeext conftest.$ac_ext
41411
41412         LIBS="$ol_LIBS"
41413
41414 fi
41415 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41416 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41417
41418         if test $ol_cv_db_db_4_dot_2 = yes ; then
41419                 ol_cv_lib_db=-ldb-4.2
41420         fi
41421 fi
41422
41423 if test $ol_cv_lib_db = no ; then
41424         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41425 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41426 if test "${ol_cv_db_db_4_2+set}" = set; then
41427   echo $ECHO_N "(cached) $ECHO_C" >&6
41428 else
41429
41430         ol_DB_LIB=-ldb-4-2
41431         ol_LIBS=$LIBS
41432         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41433
41434         cat >conftest.$ac_ext <<_ACEOF
41435 /* confdefs.h.  */
41436 _ACEOF
41437 cat confdefs.h >>conftest.$ac_ext
41438 cat >>conftest.$ac_ext <<_ACEOF
41439 /* end confdefs.h.  */
41440
41441 #ifdef HAVE_DB_185_H
41442 # include <db_185.h>
41443 #else
41444 # include <db.h>
41445 #endif
41446
41447 #ifndef DB_VERSION_MAJOR
41448 # define DB_VERSION_MAJOR 1
41449 #endif
41450
41451 #ifndef NULL
41452 #define NULL ((void*)0)
41453 #endif
41454
41455 int
41456 main ()
41457 {
41458
41459 #if DB_VERSION_MAJOR > 1
41460         {
41461                 char *version;
41462                 int major, minor, patch;
41463
41464                 version = db_version( &major, &minor, &patch );
41465
41466                 if( major != DB_VERSION_MAJOR ||
41467                         minor < DB_VERSION_MINOR )
41468                 {
41469                         printf("Berkeley DB version mismatch\n"
41470                                 "\theader: %s\n\tlibrary: %s\n",
41471                                 DB_VERSION_STRING, version);
41472                         return 1;
41473                 }
41474         }
41475 #endif
41476
41477 #if DB_VERSION_MAJOR > 2
41478         db_env_create( NULL, 0 );
41479 #elif DB_VERSION_MAJOR > 1
41480         db_appexit( NULL );
41481 #else
41482         (void) dbopen( NULL, 0, 0, 0, NULL);
41483 #endif
41484
41485   ;
41486   return 0;
41487 }
41488 _ACEOF
41489 rm -f conftest.$ac_objext conftest$ac_exeext
41490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41491   (eval $ac_link) 2>conftest.er1
41492   ac_status=$?
41493   grep -v '^ *+' conftest.er1 >conftest.err
41494   rm -f conftest.er1
41495   cat conftest.err >&5
41496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497   (exit $ac_status); } &&
41498          { ac_try='test -z "$ac_c_werror_flag"
41499                          || test ! -s conftest.err'
41500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41501   (eval $ac_try) 2>&5
41502   ac_status=$?
41503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504   (exit $ac_status); }; } &&
41505          { ac_try='test -s conftest$ac_exeext'
41506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41507   (eval $ac_try) 2>&5
41508   ac_status=$?
41509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510   (exit $ac_status); }; }; then
41511   ol_cv_db_db_4_2=yes
41512 else
41513   echo "$as_me: failed program was:" >&5
41514 sed 's/^/| /' conftest.$ac_ext >&5
41515
41516 ol_cv_db_db_4_2=no
41517 fi
41518 rm -f conftest.err conftest.$ac_objext \
41519       conftest$ac_exeext conftest.$ac_ext
41520
41521         LIBS="$ol_LIBS"
41522
41523 fi
41524 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41525 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41526
41527         if test $ol_cv_db_db_4_2 = yes ; then
41528                 ol_cv_lib_db=-ldb-4-2
41529         fi
41530 fi
41531
41532 if test $ol_cv_lib_db = no ; then
41533         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41534 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41535 if test "${ol_cv_db_db_4+set}" = set; then
41536   echo $ECHO_N "(cached) $ECHO_C" >&6
41537 else
41538
41539         ol_DB_LIB=-ldb-4
41540         ol_LIBS=$LIBS
41541         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41542
41543         cat >conftest.$ac_ext <<_ACEOF
41544 /* confdefs.h.  */
41545 _ACEOF
41546 cat confdefs.h >>conftest.$ac_ext
41547 cat >>conftest.$ac_ext <<_ACEOF
41548 /* end confdefs.h.  */
41549
41550 #ifdef HAVE_DB_185_H
41551 # include <db_185.h>
41552 #else
41553 # include <db.h>
41554 #endif
41555
41556 #ifndef DB_VERSION_MAJOR
41557 # define DB_VERSION_MAJOR 1
41558 #endif
41559
41560 #ifndef NULL
41561 #define NULL ((void*)0)
41562 #endif
41563
41564 int
41565 main ()
41566 {
41567
41568 #if DB_VERSION_MAJOR > 1
41569         {
41570                 char *version;
41571                 int major, minor, patch;
41572
41573                 version = db_version( &major, &minor, &patch );
41574
41575                 if( major != DB_VERSION_MAJOR ||
41576                         minor < DB_VERSION_MINOR )
41577                 {
41578                         printf("Berkeley DB version mismatch\n"
41579                                 "\theader: %s\n\tlibrary: %s\n",
41580                                 DB_VERSION_STRING, version);
41581                         return 1;
41582                 }
41583         }
41584 #endif
41585
41586 #if DB_VERSION_MAJOR > 2
41587         db_env_create( NULL, 0 );
41588 #elif DB_VERSION_MAJOR > 1
41589         db_appexit( NULL );
41590 #else
41591         (void) dbopen( NULL, 0, 0, 0, NULL);
41592 #endif
41593
41594   ;
41595   return 0;
41596 }
41597 _ACEOF
41598 rm -f conftest.$ac_objext conftest$ac_exeext
41599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41600   (eval $ac_link) 2>conftest.er1
41601   ac_status=$?
41602   grep -v '^ *+' conftest.er1 >conftest.err
41603   rm -f conftest.er1
41604   cat conftest.err >&5
41605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41606   (exit $ac_status); } &&
41607          { ac_try='test -z "$ac_c_werror_flag"
41608                          || test ! -s conftest.err'
41609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41610   (eval $ac_try) 2>&5
41611   ac_status=$?
41612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613   (exit $ac_status); }; } &&
41614          { ac_try='test -s conftest$ac_exeext'
41615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616   (eval $ac_try) 2>&5
41617   ac_status=$?
41618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619   (exit $ac_status); }; }; then
41620   ol_cv_db_db_4=yes
41621 else
41622   echo "$as_me: failed program was:" >&5
41623 sed 's/^/| /' conftest.$ac_ext >&5
41624
41625 ol_cv_db_db_4=no
41626 fi
41627 rm -f conftest.err conftest.$ac_objext \
41628       conftest$ac_exeext conftest.$ac_ext
41629
41630         LIBS="$ol_LIBS"
41631
41632 fi
41633 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41634 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41635
41636         if test $ol_cv_db_db_4 = yes ; then
41637                 ol_cv_lib_db=-ldb-4
41638         fi
41639 fi
41640
41641 if test $ol_cv_lib_db = no ; then
41642         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41643 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41644 if test "${ol_cv_db_db4+set}" = set; then
41645   echo $ECHO_N "(cached) $ECHO_C" >&6
41646 else
41647
41648         ol_DB_LIB=-ldb4
41649         ol_LIBS=$LIBS
41650         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41651
41652         cat >conftest.$ac_ext <<_ACEOF
41653 /* confdefs.h.  */
41654 _ACEOF
41655 cat confdefs.h >>conftest.$ac_ext
41656 cat >>conftest.$ac_ext <<_ACEOF
41657 /* end confdefs.h.  */
41658
41659 #ifdef HAVE_DB_185_H
41660 # include <db_185.h>
41661 #else
41662 # include <db.h>
41663 #endif
41664
41665 #ifndef DB_VERSION_MAJOR
41666 # define DB_VERSION_MAJOR 1
41667 #endif
41668
41669 #ifndef NULL
41670 #define NULL ((void*)0)
41671 #endif
41672
41673 int
41674 main ()
41675 {
41676
41677 #if DB_VERSION_MAJOR > 1
41678         {
41679                 char *version;
41680                 int major, minor, patch;
41681
41682                 version = db_version( &major, &minor, &patch );
41683
41684                 if( major != DB_VERSION_MAJOR ||
41685                         minor < DB_VERSION_MINOR )
41686                 {
41687                         printf("Berkeley DB version mismatch\n"
41688                                 "\theader: %s\n\tlibrary: %s\n",
41689                                 DB_VERSION_STRING, version);
41690                         return 1;
41691                 }
41692         }
41693 #endif
41694
41695 #if DB_VERSION_MAJOR > 2
41696         db_env_create( NULL, 0 );
41697 #elif DB_VERSION_MAJOR > 1
41698         db_appexit( NULL );
41699 #else
41700         (void) dbopen( NULL, 0, 0, 0, NULL);
41701 #endif
41702
41703   ;
41704   return 0;
41705 }
41706 _ACEOF
41707 rm -f conftest.$ac_objext conftest$ac_exeext
41708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41709   (eval $ac_link) 2>conftest.er1
41710   ac_status=$?
41711   grep -v '^ *+' conftest.er1 >conftest.err
41712   rm -f conftest.er1
41713   cat conftest.err >&5
41714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715   (exit $ac_status); } &&
41716          { ac_try='test -z "$ac_c_werror_flag"
41717                          || test ! -s conftest.err'
41718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41719   (eval $ac_try) 2>&5
41720   ac_status=$?
41721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722   (exit $ac_status); }; } &&
41723          { ac_try='test -s conftest$ac_exeext'
41724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41725   (eval $ac_try) 2>&5
41726   ac_status=$?
41727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728   (exit $ac_status); }; }; then
41729   ol_cv_db_db4=yes
41730 else
41731   echo "$as_me: failed program was:" >&5
41732 sed 's/^/| /' conftest.$ac_ext >&5
41733
41734 ol_cv_db_db4=no
41735 fi
41736 rm -f conftest.err conftest.$ac_objext \
41737       conftest$ac_exeext conftest.$ac_ext
41738
41739         LIBS="$ol_LIBS"
41740
41741 fi
41742 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41743 echo "${ECHO_T}$ol_cv_db_db4" >&6
41744
41745         if test $ol_cv_db_db4 = yes ; then
41746                 ol_cv_lib_db=-ldb4
41747         fi
41748 fi
41749
41750 if test $ol_cv_lib_db = no ; then
41751         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41752 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41753 if test "${ol_cv_db_db+set}" = set; then
41754   echo $ECHO_N "(cached) $ECHO_C" >&6
41755 else
41756
41757         ol_DB_LIB=-ldb
41758         ol_LIBS=$LIBS
41759         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41760
41761         cat >conftest.$ac_ext <<_ACEOF
41762 /* confdefs.h.  */
41763 _ACEOF
41764 cat confdefs.h >>conftest.$ac_ext
41765 cat >>conftest.$ac_ext <<_ACEOF
41766 /* end confdefs.h.  */
41767
41768 #ifdef HAVE_DB_185_H
41769 # include <db_185.h>
41770 #else
41771 # include <db.h>
41772 #endif
41773
41774 #ifndef DB_VERSION_MAJOR
41775 # define DB_VERSION_MAJOR 1
41776 #endif
41777
41778 #ifndef NULL
41779 #define NULL ((void*)0)
41780 #endif
41781
41782 int
41783 main ()
41784 {
41785
41786 #if DB_VERSION_MAJOR > 1
41787         {
41788                 char *version;
41789                 int major, minor, patch;
41790
41791                 version = db_version( &major, &minor, &patch );
41792
41793                 if( major != DB_VERSION_MAJOR ||
41794                         minor < DB_VERSION_MINOR )
41795                 {
41796                         printf("Berkeley DB version mismatch\n"
41797                                 "\theader: %s\n\tlibrary: %s\n",
41798                                 DB_VERSION_STRING, version);
41799                         return 1;
41800                 }
41801         }
41802 #endif
41803
41804 #if DB_VERSION_MAJOR > 2
41805         db_env_create( NULL, 0 );
41806 #elif DB_VERSION_MAJOR > 1
41807         db_appexit( NULL );
41808 #else
41809         (void) dbopen( NULL, 0, 0, 0, NULL);
41810 #endif
41811
41812   ;
41813   return 0;
41814 }
41815 _ACEOF
41816 rm -f conftest.$ac_objext conftest$ac_exeext
41817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41818   (eval $ac_link) 2>conftest.er1
41819   ac_status=$?
41820   grep -v '^ *+' conftest.er1 >conftest.err
41821   rm -f conftest.er1
41822   cat conftest.err >&5
41823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824   (exit $ac_status); } &&
41825          { ac_try='test -z "$ac_c_werror_flag"
41826                          || test ! -s conftest.err'
41827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41828   (eval $ac_try) 2>&5
41829   ac_status=$?
41830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831   (exit $ac_status); }; } &&
41832          { ac_try='test -s conftest$ac_exeext'
41833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41834   (eval $ac_try) 2>&5
41835   ac_status=$?
41836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41837   (exit $ac_status); }; }; then
41838   ol_cv_db_db=yes
41839 else
41840   echo "$as_me: failed program was:" >&5
41841 sed 's/^/| /' conftest.$ac_ext >&5
41842
41843 ol_cv_db_db=no
41844 fi
41845 rm -f conftest.err conftest.$ac_objext \
41846       conftest$ac_exeext conftest.$ac_ext
41847
41848         LIBS="$ol_LIBS"
41849
41850 fi
41851 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41852 echo "${ECHO_T}$ol_cv_db_db" >&6
41853
41854         if test $ol_cv_db_db = yes ; then
41855                 ol_cv_lib_db=-ldb
41856         fi
41857 fi
41858
41859 if test $ol_cv_lib_db = no ; then
41860         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41861 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41862 if test "${ol_cv_db_db41+set}" = set; then
41863   echo $ECHO_N "(cached) $ECHO_C" >&6
41864 else
41865
41866         ol_DB_LIB=-ldb41
41867         ol_LIBS=$LIBS
41868         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41869
41870         cat >conftest.$ac_ext <<_ACEOF
41871 /* confdefs.h.  */
41872 _ACEOF
41873 cat confdefs.h >>conftest.$ac_ext
41874 cat >>conftest.$ac_ext <<_ACEOF
41875 /* end confdefs.h.  */
41876
41877 #ifdef HAVE_DB_185_H
41878 # include <db_185.h>
41879 #else
41880 # include <db.h>
41881 #endif
41882
41883 #ifndef DB_VERSION_MAJOR
41884 # define DB_VERSION_MAJOR 1
41885 #endif
41886
41887 #ifndef NULL
41888 #define NULL ((void*)0)
41889 #endif
41890
41891 int
41892 main ()
41893 {
41894
41895 #if DB_VERSION_MAJOR > 1
41896         {
41897                 char *version;
41898                 int major, minor, patch;
41899
41900                 version = db_version( &major, &minor, &patch );
41901
41902                 if( major != DB_VERSION_MAJOR ||
41903                         minor < DB_VERSION_MINOR )
41904                 {
41905                         printf("Berkeley DB version mismatch\n"
41906                                 "\theader: %s\n\tlibrary: %s\n",
41907                                 DB_VERSION_STRING, version);
41908                         return 1;
41909                 }
41910         }
41911 #endif
41912
41913 #if DB_VERSION_MAJOR > 2
41914         db_env_create( NULL, 0 );
41915 #elif DB_VERSION_MAJOR > 1
41916         db_appexit( NULL );
41917 #else
41918         (void) dbopen( NULL, 0, 0, 0, NULL);
41919 #endif
41920
41921   ;
41922   return 0;
41923 }
41924 _ACEOF
41925 rm -f conftest.$ac_objext conftest$ac_exeext
41926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41927   (eval $ac_link) 2>conftest.er1
41928   ac_status=$?
41929   grep -v '^ *+' conftest.er1 >conftest.err
41930   rm -f conftest.er1
41931   cat conftest.err >&5
41932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933   (exit $ac_status); } &&
41934          { ac_try='test -z "$ac_c_werror_flag"
41935                          || test ! -s conftest.err'
41936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41937   (eval $ac_try) 2>&5
41938   ac_status=$?
41939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940   (exit $ac_status); }; } &&
41941          { ac_try='test -s conftest$ac_exeext'
41942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41943   (eval $ac_try) 2>&5
41944   ac_status=$?
41945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946   (exit $ac_status); }; }; then
41947   ol_cv_db_db41=yes
41948 else
41949   echo "$as_me: failed program was:" >&5
41950 sed 's/^/| /' conftest.$ac_ext >&5
41951
41952 ol_cv_db_db41=no
41953 fi
41954 rm -f conftest.err conftest.$ac_objext \
41955       conftest$ac_exeext conftest.$ac_ext
41956
41957         LIBS="$ol_LIBS"
41958
41959 fi
41960 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41961 echo "${ECHO_T}$ol_cv_db_db41" >&6
41962
41963         if test $ol_cv_db_db41 = yes ; then
41964                 ol_cv_lib_db=-ldb41
41965         fi
41966 fi
41967
41968 if test $ol_cv_lib_db = no ; then
41969         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41970 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41971 if test "${ol_cv_db_db_41+set}" = set; then
41972   echo $ECHO_N "(cached) $ECHO_C" >&6
41973 else
41974
41975         ol_DB_LIB=-ldb-41
41976         ol_LIBS=$LIBS
41977         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41978
41979         cat >conftest.$ac_ext <<_ACEOF
41980 /* confdefs.h.  */
41981 _ACEOF
41982 cat confdefs.h >>conftest.$ac_ext
41983 cat >>conftest.$ac_ext <<_ACEOF
41984 /* end confdefs.h.  */
41985
41986 #ifdef HAVE_DB_185_H
41987 # include <db_185.h>
41988 #else
41989 # include <db.h>
41990 #endif
41991
41992 #ifndef DB_VERSION_MAJOR
41993 # define DB_VERSION_MAJOR 1
41994 #endif
41995
41996 #ifndef NULL
41997 #define NULL ((void*)0)
41998 #endif
41999
42000 int
42001 main ()
42002 {
42003
42004 #if DB_VERSION_MAJOR > 1
42005         {
42006                 char *version;
42007                 int major, minor, patch;
42008
42009                 version = db_version( &major, &minor, &patch );
42010
42011                 if( major != DB_VERSION_MAJOR ||
42012                         minor < DB_VERSION_MINOR )
42013                 {
42014                         printf("Berkeley DB version mismatch\n"
42015                                 "\theader: %s\n\tlibrary: %s\n",
42016                                 DB_VERSION_STRING, version);
42017                         return 1;
42018                 }
42019         }
42020 #endif
42021
42022 #if DB_VERSION_MAJOR > 2
42023         db_env_create( NULL, 0 );
42024 #elif DB_VERSION_MAJOR > 1
42025         db_appexit( NULL );
42026 #else
42027         (void) dbopen( NULL, 0, 0, 0, NULL);
42028 #endif
42029
42030   ;
42031   return 0;
42032 }
42033 _ACEOF
42034 rm -f conftest.$ac_objext conftest$ac_exeext
42035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42036   (eval $ac_link) 2>conftest.er1
42037   ac_status=$?
42038   grep -v '^ *+' conftest.er1 >conftest.err
42039   rm -f conftest.er1
42040   cat conftest.err >&5
42041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42042   (exit $ac_status); } &&
42043          { ac_try='test -z "$ac_c_werror_flag"
42044                          || test ! -s conftest.err'
42045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42046   (eval $ac_try) 2>&5
42047   ac_status=$?
42048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049   (exit $ac_status); }; } &&
42050          { ac_try='test -s conftest$ac_exeext'
42051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42052   (eval $ac_try) 2>&5
42053   ac_status=$?
42054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42055   (exit $ac_status); }; }; then
42056   ol_cv_db_db_41=yes
42057 else
42058   echo "$as_me: failed program was:" >&5
42059 sed 's/^/| /' conftest.$ac_ext >&5
42060
42061 ol_cv_db_db_41=no
42062 fi
42063 rm -f conftest.err conftest.$ac_objext \
42064       conftest$ac_exeext conftest.$ac_ext
42065
42066         LIBS="$ol_LIBS"
42067
42068 fi
42069 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42070 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42071
42072         if test $ol_cv_db_db_41 = yes ; then
42073                 ol_cv_lib_db=-ldb-41
42074         fi
42075 fi
42076
42077 if test $ol_cv_lib_db = no ; then
42078         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42079 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42080 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42081   echo $ECHO_N "(cached) $ECHO_C" >&6
42082 else
42083
42084         ol_DB_LIB=-ldb-4.1
42085         ol_LIBS=$LIBS
42086         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42087
42088         cat >conftest.$ac_ext <<_ACEOF
42089 /* confdefs.h.  */
42090 _ACEOF
42091 cat confdefs.h >>conftest.$ac_ext
42092 cat >>conftest.$ac_ext <<_ACEOF
42093 /* end confdefs.h.  */
42094
42095 #ifdef HAVE_DB_185_H
42096 # include <db_185.h>
42097 #else
42098 # include <db.h>
42099 #endif
42100
42101 #ifndef DB_VERSION_MAJOR
42102 # define DB_VERSION_MAJOR 1
42103 #endif
42104
42105 #ifndef NULL
42106 #define NULL ((void*)0)
42107 #endif
42108
42109 int
42110 main ()
42111 {
42112
42113 #if DB_VERSION_MAJOR > 1
42114         {
42115                 char *version;
42116                 int major, minor, patch;
42117
42118                 version = db_version( &major, &minor, &patch );
42119
42120                 if( major != DB_VERSION_MAJOR ||
42121                         minor < DB_VERSION_MINOR )
42122                 {
42123                         printf("Berkeley DB version mismatch\n"
42124                                 "\theader: %s\n\tlibrary: %s\n",
42125                                 DB_VERSION_STRING, version);
42126                         return 1;
42127                 }
42128         }
42129 #endif
42130
42131 #if DB_VERSION_MAJOR > 2
42132         db_env_create( NULL, 0 );
42133 #elif DB_VERSION_MAJOR > 1
42134         db_appexit( NULL );
42135 #else
42136         (void) dbopen( NULL, 0, 0, 0, NULL);
42137 #endif
42138
42139   ;
42140   return 0;
42141 }
42142 _ACEOF
42143 rm -f conftest.$ac_objext conftest$ac_exeext
42144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42145   (eval $ac_link) 2>conftest.er1
42146   ac_status=$?
42147   grep -v '^ *+' conftest.er1 >conftest.err
42148   rm -f conftest.er1
42149   cat conftest.err >&5
42150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151   (exit $ac_status); } &&
42152          { ac_try='test -z "$ac_c_werror_flag"
42153                          || test ! -s conftest.err'
42154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42155   (eval $ac_try) 2>&5
42156   ac_status=$?
42157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42158   (exit $ac_status); }; } &&
42159          { ac_try='test -s conftest$ac_exeext'
42160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42161   (eval $ac_try) 2>&5
42162   ac_status=$?
42163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42164   (exit $ac_status); }; }; then
42165   ol_cv_db_db_4_dot_1=yes
42166 else
42167   echo "$as_me: failed program was:" >&5
42168 sed 's/^/| /' conftest.$ac_ext >&5
42169
42170 ol_cv_db_db_4_dot_1=no
42171 fi
42172 rm -f conftest.err conftest.$ac_objext \
42173       conftest$ac_exeext conftest.$ac_ext
42174
42175         LIBS="$ol_LIBS"
42176
42177 fi
42178 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42179 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42180
42181         if test $ol_cv_db_db_4_dot_1 = yes ; then
42182                 ol_cv_lib_db=-ldb-4.1
42183         fi
42184 fi
42185
42186 if test $ol_cv_lib_db = no ; then
42187         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42188 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42189 if test "${ol_cv_db_db_4_1+set}" = set; then
42190   echo $ECHO_N "(cached) $ECHO_C" >&6
42191 else
42192
42193         ol_DB_LIB=-ldb-4-1
42194         ol_LIBS=$LIBS
42195         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42196
42197         cat >conftest.$ac_ext <<_ACEOF
42198 /* confdefs.h.  */
42199 _ACEOF
42200 cat confdefs.h >>conftest.$ac_ext
42201 cat >>conftest.$ac_ext <<_ACEOF
42202 /* end confdefs.h.  */
42203
42204 #ifdef HAVE_DB_185_H
42205 # include <db_185.h>
42206 #else
42207 # include <db.h>
42208 #endif
42209
42210 #ifndef DB_VERSION_MAJOR
42211 # define DB_VERSION_MAJOR 1
42212 #endif
42213
42214 #ifndef NULL
42215 #define NULL ((void*)0)
42216 #endif
42217
42218 int
42219 main ()
42220 {
42221
42222 #if DB_VERSION_MAJOR > 1
42223         {
42224                 char *version;
42225                 int major, minor, patch;
42226
42227                 version = db_version( &major, &minor, &patch );
42228
42229                 if( major != DB_VERSION_MAJOR ||
42230                         minor < DB_VERSION_MINOR )
42231                 {
42232                         printf("Berkeley DB version mismatch\n"
42233                                 "\theader: %s\n\tlibrary: %s\n",
42234                                 DB_VERSION_STRING, version);
42235                         return 1;
42236                 }
42237         }
42238 #endif
42239
42240 #if DB_VERSION_MAJOR > 2
42241         db_env_create( NULL, 0 );
42242 #elif DB_VERSION_MAJOR > 1
42243         db_appexit( NULL );
42244 #else
42245         (void) dbopen( NULL, 0, 0, 0, NULL);
42246 #endif
42247
42248   ;
42249   return 0;
42250 }
42251 _ACEOF
42252 rm -f conftest.$ac_objext conftest$ac_exeext
42253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42254   (eval $ac_link) 2>conftest.er1
42255   ac_status=$?
42256   grep -v '^ *+' conftest.er1 >conftest.err
42257   rm -f conftest.er1
42258   cat conftest.err >&5
42259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42260   (exit $ac_status); } &&
42261          { ac_try='test -z "$ac_c_werror_flag"
42262                          || test ! -s conftest.err'
42263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42264   (eval $ac_try) 2>&5
42265   ac_status=$?
42266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42267   (exit $ac_status); }; } &&
42268          { ac_try='test -s conftest$ac_exeext'
42269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42270   (eval $ac_try) 2>&5
42271   ac_status=$?
42272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42273   (exit $ac_status); }; }; then
42274   ol_cv_db_db_4_1=yes
42275 else
42276   echo "$as_me: failed program was:" >&5
42277 sed 's/^/| /' conftest.$ac_ext >&5
42278
42279 ol_cv_db_db_4_1=no
42280 fi
42281 rm -f conftest.err conftest.$ac_objext \
42282       conftest$ac_exeext conftest.$ac_ext
42283
42284         LIBS="$ol_LIBS"
42285
42286 fi
42287 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42288 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42289
42290         if test $ol_cv_db_db_4_1 = yes ; then
42291                 ol_cv_lib_db=-ldb-4-1
42292         fi
42293 fi
42294
42295 if test $ol_cv_lib_db = no ; then
42296         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42297 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42298 if test "${ol_cv_db_db3+set}" = set; then
42299   echo $ECHO_N "(cached) $ECHO_C" >&6
42300 else
42301
42302         ol_DB_LIB=-ldb3
42303         ol_LIBS=$LIBS
42304         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42305
42306         cat >conftest.$ac_ext <<_ACEOF
42307 /* confdefs.h.  */
42308 _ACEOF
42309 cat confdefs.h >>conftest.$ac_ext
42310 cat >>conftest.$ac_ext <<_ACEOF
42311 /* end confdefs.h.  */
42312
42313 #ifdef HAVE_DB_185_H
42314 # include <db_185.h>
42315 #else
42316 # include <db.h>
42317 #endif
42318
42319 #ifndef DB_VERSION_MAJOR
42320 # define DB_VERSION_MAJOR 1
42321 #endif
42322
42323 #ifndef NULL
42324 #define NULL ((void*)0)
42325 #endif
42326
42327 int
42328 main ()
42329 {
42330
42331 #if DB_VERSION_MAJOR > 1
42332         {
42333                 char *version;
42334                 int major, minor, patch;
42335
42336                 version = db_version( &major, &minor, &patch );
42337
42338                 if( major != DB_VERSION_MAJOR ||
42339                         minor < DB_VERSION_MINOR )
42340                 {
42341                         printf("Berkeley DB version mismatch\n"
42342                                 "\theader: %s\n\tlibrary: %s\n",
42343                                 DB_VERSION_STRING, version);
42344                         return 1;
42345                 }
42346         }
42347 #endif
42348
42349 #if DB_VERSION_MAJOR > 2
42350         db_env_create( NULL, 0 );
42351 #elif DB_VERSION_MAJOR > 1
42352         db_appexit( NULL );
42353 #else
42354         (void) dbopen( NULL, 0, 0, 0, NULL);
42355 #endif
42356
42357   ;
42358   return 0;
42359 }
42360 _ACEOF
42361 rm -f conftest.$ac_objext conftest$ac_exeext
42362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42363   (eval $ac_link) 2>conftest.er1
42364   ac_status=$?
42365   grep -v '^ *+' conftest.er1 >conftest.err
42366   rm -f conftest.er1
42367   cat conftest.err >&5
42368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42369   (exit $ac_status); } &&
42370          { ac_try='test -z "$ac_c_werror_flag"
42371                          || test ! -s conftest.err'
42372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42373   (eval $ac_try) 2>&5
42374   ac_status=$?
42375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376   (exit $ac_status); }; } &&
42377          { ac_try='test -s conftest$ac_exeext'
42378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42379   (eval $ac_try) 2>&5
42380   ac_status=$?
42381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42382   (exit $ac_status); }; }; then
42383   ol_cv_db_db3=yes
42384 else
42385   echo "$as_me: failed program was:" >&5
42386 sed 's/^/| /' conftest.$ac_ext >&5
42387
42388 ol_cv_db_db3=no
42389 fi
42390 rm -f conftest.err conftest.$ac_objext \
42391       conftest$ac_exeext conftest.$ac_ext
42392
42393         LIBS="$ol_LIBS"
42394
42395 fi
42396 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42397 echo "${ECHO_T}$ol_cv_db_db3" >&6
42398
42399         if test $ol_cv_db_db3 = yes ; then
42400                 ol_cv_lib_db=-ldb3
42401         fi
42402 fi
42403
42404 if test $ol_cv_lib_db = no ; then
42405         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42406 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42407 if test "${ol_cv_db_db_3+set}" = set; then
42408   echo $ECHO_N "(cached) $ECHO_C" >&6
42409 else
42410
42411         ol_DB_LIB=-ldb-3
42412         ol_LIBS=$LIBS
42413         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42414
42415         cat >conftest.$ac_ext <<_ACEOF
42416 /* confdefs.h.  */
42417 _ACEOF
42418 cat confdefs.h >>conftest.$ac_ext
42419 cat >>conftest.$ac_ext <<_ACEOF
42420 /* end confdefs.h.  */
42421
42422 #ifdef HAVE_DB_185_H
42423 # include <db_185.h>
42424 #else
42425 # include <db.h>
42426 #endif
42427
42428 #ifndef DB_VERSION_MAJOR
42429 # define DB_VERSION_MAJOR 1
42430 #endif
42431
42432 #ifndef NULL
42433 #define NULL ((void*)0)
42434 #endif
42435
42436 int
42437 main ()
42438 {
42439
42440 #if DB_VERSION_MAJOR > 1
42441         {
42442                 char *version;
42443                 int major, minor, patch;
42444
42445                 version = db_version( &major, &minor, &patch );
42446
42447                 if( major != DB_VERSION_MAJOR ||
42448                         minor < DB_VERSION_MINOR )
42449                 {
42450                         printf("Berkeley DB version mismatch\n"
42451                                 "\theader: %s\n\tlibrary: %s\n",
42452                                 DB_VERSION_STRING, version);
42453                         return 1;
42454                 }
42455         }
42456 #endif
42457
42458 #if DB_VERSION_MAJOR > 2
42459         db_env_create( NULL, 0 );
42460 #elif DB_VERSION_MAJOR > 1
42461         db_appexit( NULL );
42462 #else
42463         (void) dbopen( NULL, 0, 0, 0, NULL);
42464 #endif
42465
42466   ;
42467   return 0;
42468 }
42469 _ACEOF
42470 rm -f conftest.$ac_objext conftest$ac_exeext
42471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42472   (eval $ac_link) 2>conftest.er1
42473   ac_status=$?
42474   grep -v '^ *+' conftest.er1 >conftest.err
42475   rm -f conftest.er1
42476   cat conftest.err >&5
42477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478   (exit $ac_status); } &&
42479          { ac_try='test -z "$ac_c_werror_flag"
42480                          || test ! -s conftest.err'
42481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42482   (eval $ac_try) 2>&5
42483   ac_status=$?
42484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485   (exit $ac_status); }; } &&
42486          { ac_try='test -s conftest$ac_exeext'
42487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42488   (eval $ac_try) 2>&5
42489   ac_status=$?
42490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42491   (exit $ac_status); }; }; then
42492   ol_cv_db_db_3=yes
42493 else
42494   echo "$as_me: failed program was:" >&5
42495 sed 's/^/| /' conftest.$ac_ext >&5
42496
42497 ol_cv_db_db_3=no
42498 fi
42499 rm -f conftest.err conftest.$ac_objext \
42500       conftest$ac_exeext conftest.$ac_ext
42501
42502         LIBS="$ol_LIBS"
42503
42504 fi
42505 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42506 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42507
42508         if test $ol_cv_db_db_3 = yes ; then
42509                 ol_cv_lib_db=-ldb-3
42510         fi
42511 fi
42512
42513 if test $ol_cv_lib_db = no ; then
42514         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42515 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42516 if test "${ol_cv_db_db2+set}" = set; then
42517   echo $ECHO_N "(cached) $ECHO_C" >&6
42518 else
42519
42520         ol_DB_LIB=-ldb2
42521         ol_LIBS=$LIBS
42522         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42523
42524         cat >conftest.$ac_ext <<_ACEOF
42525 /* confdefs.h.  */
42526 _ACEOF
42527 cat confdefs.h >>conftest.$ac_ext
42528 cat >>conftest.$ac_ext <<_ACEOF
42529 /* end confdefs.h.  */
42530
42531 #ifdef HAVE_DB_185_H
42532 # include <db_185.h>
42533 #else
42534 # include <db.h>
42535 #endif
42536
42537 #ifndef DB_VERSION_MAJOR
42538 # define DB_VERSION_MAJOR 1
42539 #endif
42540
42541 #ifndef NULL
42542 #define NULL ((void*)0)
42543 #endif
42544
42545 int
42546 main ()
42547 {
42548
42549 #if DB_VERSION_MAJOR > 1
42550         {
42551                 char *version;
42552                 int major, minor, patch;
42553
42554                 version = db_version( &major, &minor, &patch );
42555
42556                 if( major != DB_VERSION_MAJOR ||
42557                         minor < DB_VERSION_MINOR )
42558                 {
42559                         printf("Berkeley DB version mismatch\n"
42560                                 "\theader: %s\n\tlibrary: %s\n",
42561                                 DB_VERSION_STRING, version);
42562                         return 1;
42563                 }
42564         }
42565 #endif
42566
42567 #if DB_VERSION_MAJOR > 2
42568         db_env_create( NULL, 0 );
42569 #elif DB_VERSION_MAJOR > 1
42570         db_appexit( NULL );
42571 #else
42572         (void) dbopen( NULL, 0, 0, 0, NULL);
42573 #endif
42574
42575   ;
42576   return 0;
42577 }
42578 _ACEOF
42579 rm -f conftest.$ac_objext conftest$ac_exeext
42580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42581   (eval $ac_link) 2>conftest.er1
42582   ac_status=$?
42583   grep -v '^ *+' conftest.er1 >conftest.err
42584   rm -f conftest.er1
42585   cat conftest.err >&5
42586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587   (exit $ac_status); } &&
42588          { ac_try='test -z "$ac_c_werror_flag"
42589                          || test ! -s conftest.err'
42590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42591   (eval $ac_try) 2>&5
42592   ac_status=$?
42593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42594   (exit $ac_status); }; } &&
42595          { ac_try='test -s conftest$ac_exeext'
42596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42597   (eval $ac_try) 2>&5
42598   ac_status=$?
42599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42600   (exit $ac_status); }; }; then
42601   ol_cv_db_db2=yes
42602 else
42603   echo "$as_me: failed program was:" >&5
42604 sed 's/^/| /' conftest.$ac_ext >&5
42605
42606 ol_cv_db_db2=no
42607 fi
42608 rm -f conftest.err conftest.$ac_objext \
42609       conftest$ac_exeext conftest.$ac_ext
42610
42611         LIBS="$ol_LIBS"
42612
42613 fi
42614 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42615 echo "${ECHO_T}$ol_cv_db_db2" >&6
42616
42617         if test $ol_cv_db_db2 = yes ; then
42618                 ol_cv_lib_db=-ldb2
42619         fi
42620 fi
42621
42622 if test $ol_cv_lib_db = no ; then
42623         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42624 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42625 if test "${ol_cv_db_db_2+set}" = set; then
42626   echo $ECHO_N "(cached) $ECHO_C" >&6
42627 else
42628
42629         ol_DB_LIB=-ldb-2
42630         ol_LIBS=$LIBS
42631         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42632
42633         cat >conftest.$ac_ext <<_ACEOF
42634 /* confdefs.h.  */
42635 _ACEOF
42636 cat confdefs.h >>conftest.$ac_ext
42637 cat >>conftest.$ac_ext <<_ACEOF
42638 /* end confdefs.h.  */
42639
42640 #ifdef HAVE_DB_185_H
42641 # include <db_185.h>
42642 #else
42643 # include <db.h>
42644 #endif
42645
42646 #ifndef DB_VERSION_MAJOR
42647 # define DB_VERSION_MAJOR 1
42648 #endif
42649
42650 #ifndef NULL
42651 #define NULL ((void*)0)
42652 #endif
42653
42654 int
42655 main ()
42656 {
42657
42658 #if DB_VERSION_MAJOR > 1
42659         {
42660                 char *version;
42661                 int major, minor, patch;
42662
42663                 version = db_version( &major, &minor, &patch );
42664
42665                 if( major != DB_VERSION_MAJOR ||
42666                         minor < DB_VERSION_MINOR )
42667                 {
42668                         printf("Berkeley DB version mismatch\n"
42669                                 "\theader: %s\n\tlibrary: %s\n",
42670                                 DB_VERSION_STRING, version);
42671                         return 1;
42672                 }
42673         }
42674 #endif
42675
42676 #if DB_VERSION_MAJOR > 2
42677         db_env_create( NULL, 0 );
42678 #elif DB_VERSION_MAJOR > 1
42679         db_appexit( NULL );
42680 #else
42681         (void) dbopen( NULL, 0, 0, 0, NULL);
42682 #endif
42683
42684   ;
42685   return 0;
42686 }
42687 _ACEOF
42688 rm -f conftest.$ac_objext conftest$ac_exeext
42689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42690   (eval $ac_link) 2>conftest.er1
42691   ac_status=$?
42692   grep -v '^ *+' conftest.er1 >conftest.err
42693   rm -f conftest.er1
42694   cat conftest.err >&5
42695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42696   (exit $ac_status); } &&
42697          { ac_try='test -z "$ac_c_werror_flag"
42698                          || test ! -s conftest.err'
42699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42700   (eval $ac_try) 2>&5
42701   ac_status=$?
42702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42703   (exit $ac_status); }; } &&
42704          { ac_try='test -s conftest$ac_exeext'
42705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42706   (eval $ac_try) 2>&5
42707   ac_status=$?
42708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42709   (exit $ac_status); }; }; then
42710   ol_cv_db_db_2=yes
42711 else
42712   echo "$as_me: failed program was:" >&5
42713 sed 's/^/| /' conftest.$ac_ext >&5
42714
42715 ol_cv_db_db_2=no
42716 fi
42717 rm -f conftest.err conftest.$ac_objext \
42718       conftest$ac_exeext conftest.$ac_ext
42719
42720         LIBS="$ol_LIBS"
42721
42722 fi
42723 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42724 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42725
42726         if test $ol_cv_db_db_2 = yes ; then
42727                 ol_cv_lib_db=-ldb-2
42728         fi
42729 fi
42730
42731 if test $ol_cv_lib_db = no ; then
42732         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42733 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42734 if test "${ol_cv_db_db1+set}" = set; then
42735   echo $ECHO_N "(cached) $ECHO_C" >&6
42736 else
42737
42738         ol_DB_LIB=-ldb1
42739         ol_LIBS=$LIBS
42740         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42741
42742         cat >conftest.$ac_ext <<_ACEOF
42743 /* confdefs.h.  */
42744 _ACEOF
42745 cat confdefs.h >>conftest.$ac_ext
42746 cat >>conftest.$ac_ext <<_ACEOF
42747 /* end confdefs.h.  */
42748
42749 #ifdef HAVE_DB_185_H
42750 # include <db_185.h>
42751 #else
42752 # include <db.h>
42753 #endif
42754
42755 #ifndef DB_VERSION_MAJOR
42756 # define DB_VERSION_MAJOR 1
42757 #endif
42758
42759 #ifndef NULL
42760 #define NULL ((void*)0)
42761 #endif
42762
42763 int
42764 main ()
42765 {
42766
42767 #if DB_VERSION_MAJOR > 1
42768         {
42769                 char *version;
42770                 int major, minor, patch;
42771
42772                 version = db_version( &major, &minor, &patch );
42773
42774                 if( major != DB_VERSION_MAJOR ||
42775                         minor < DB_VERSION_MINOR )
42776                 {
42777                         printf("Berkeley DB version mismatch\n"
42778                                 "\theader: %s\n\tlibrary: %s\n",
42779                                 DB_VERSION_STRING, version);
42780                         return 1;
42781                 }
42782         }
42783 #endif
42784
42785 #if DB_VERSION_MAJOR > 2
42786         db_env_create( NULL, 0 );
42787 #elif DB_VERSION_MAJOR > 1
42788         db_appexit( NULL );
42789 #else
42790         (void) dbopen( NULL, 0, 0, 0, NULL);
42791 #endif
42792
42793   ;
42794   return 0;
42795 }
42796 _ACEOF
42797 rm -f conftest.$ac_objext conftest$ac_exeext
42798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42799   (eval $ac_link) 2>conftest.er1
42800   ac_status=$?
42801   grep -v '^ *+' conftest.er1 >conftest.err
42802   rm -f conftest.er1
42803   cat conftest.err >&5
42804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42805   (exit $ac_status); } &&
42806          { ac_try='test -z "$ac_c_werror_flag"
42807                          || test ! -s conftest.err'
42808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42809   (eval $ac_try) 2>&5
42810   ac_status=$?
42811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812   (exit $ac_status); }; } &&
42813          { ac_try='test -s conftest$ac_exeext'
42814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42815   (eval $ac_try) 2>&5
42816   ac_status=$?
42817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42818   (exit $ac_status); }; }; then
42819   ol_cv_db_db1=yes
42820 else
42821   echo "$as_me: failed program was:" >&5
42822 sed 's/^/| /' conftest.$ac_ext >&5
42823
42824 ol_cv_db_db1=no
42825 fi
42826 rm -f conftest.err conftest.$ac_objext \
42827       conftest$ac_exeext conftest.$ac_ext
42828
42829         LIBS="$ol_LIBS"
42830
42831 fi
42832 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42833 echo "${ECHO_T}$ol_cv_db_db1" >&6
42834
42835         if test $ol_cv_db_db1 = yes ; then
42836                 ol_cv_lib_db=-ldb1
42837         fi
42838 fi
42839
42840 if test $ol_cv_lib_db = no ; then
42841         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42842 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42843 if test "${ol_cv_db_db_1+set}" = set; then
42844   echo $ECHO_N "(cached) $ECHO_C" >&6
42845 else
42846
42847         ol_DB_LIB=-ldb-1
42848         ol_LIBS=$LIBS
42849         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42850
42851         cat >conftest.$ac_ext <<_ACEOF
42852 /* confdefs.h.  */
42853 _ACEOF
42854 cat confdefs.h >>conftest.$ac_ext
42855 cat >>conftest.$ac_ext <<_ACEOF
42856 /* end confdefs.h.  */
42857
42858 #ifdef HAVE_DB_185_H
42859 # include <db_185.h>
42860 #else
42861 # include <db.h>
42862 #endif
42863
42864 #ifndef DB_VERSION_MAJOR
42865 # define DB_VERSION_MAJOR 1
42866 #endif
42867
42868 #ifndef NULL
42869 #define NULL ((void*)0)
42870 #endif
42871
42872 int
42873 main ()
42874 {
42875
42876 #if DB_VERSION_MAJOR > 1
42877         {
42878                 char *version;
42879                 int major, minor, patch;
42880
42881                 version = db_version( &major, &minor, &patch );
42882
42883                 if( major != DB_VERSION_MAJOR ||
42884                         minor < DB_VERSION_MINOR )
42885                 {
42886                         printf("Berkeley DB version mismatch\n"
42887                                 "\theader: %s\n\tlibrary: %s\n",
42888                                 DB_VERSION_STRING, version);
42889                         return 1;
42890                 }
42891         }
42892 #endif
42893
42894 #if DB_VERSION_MAJOR > 2
42895         db_env_create( NULL, 0 );
42896 #elif DB_VERSION_MAJOR > 1
42897         db_appexit( NULL );
42898 #else
42899         (void) dbopen( NULL, 0, 0, 0, NULL);
42900 #endif
42901
42902   ;
42903   return 0;
42904 }
42905 _ACEOF
42906 rm -f conftest.$ac_objext conftest$ac_exeext
42907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42908   (eval $ac_link) 2>conftest.er1
42909   ac_status=$?
42910   grep -v '^ *+' conftest.er1 >conftest.err
42911   rm -f conftest.er1
42912   cat conftest.err >&5
42913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914   (exit $ac_status); } &&
42915          { ac_try='test -z "$ac_c_werror_flag"
42916                          || test ! -s conftest.err'
42917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42918   (eval $ac_try) 2>&5
42919   ac_status=$?
42920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42921   (exit $ac_status); }; } &&
42922          { ac_try='test -s conftest$ac_exeext'
42923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42924   (eval $ac_try) 2>&5
42925   ac_status=$?
42926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42927   (exit $ac_status); }; }; then
42928   ol_cv_db_db_1=yes
42929 else
42930   echo "$as_me: failed program was:" >&5
42931 sed 's/^/| /' conftest.$ac_ext >&5
42932
42933 ol_cv_db_db_1=no
42934 fi
42935 rm -f conftest.err conftest.$ac_objext \
42936       conftest$ac_exeext conftest.$ac_ext
42937
42938         LIBS="$ol_LIBS"
42939
42940 fi
42941 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42942 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42943
42944         if test $ol_cv_db_db_1 = yes ; then
42945                 ol_cv_lib_db=-ldb-1
42946         fi
42947 fi
42948
42949
42950         if test "$ol_cv_lib_db" != no ; then
42951                 ol_cv_berkeley_db=yes
42952                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42953 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42954 if test "${ol_cv_berkeley_db_version+set}" = set; then
42955   echo $ECHO_N "(cached) $ECHO_C" >&6
42956 else
42957
42958         ol_LIBS="$LIBS"
42959         LIBS="$LTHREAD_LIBS $LIBS"
42960         if test $ol_cv_lib_db != yes ; then
42961                 LIBS="$ol_cv_lib_db $LIBS"
42962         fi
42963
42964         if test "$cross_compiling" = yes; then
42965   ol_cv_berkeley_db_version=cross
42966 else
42967   cat >conftest.$ac_ext <<_ACEOF
42968 /* confdefs.h.  */
42969 _ACEOF
42970 cat confdefs.h >>conftest.$ac_ext
42971 cat >>conftest.$ac_ext <<_ACEOF
42972 /* end confdefs.h.  */
42973
42974 #ifdef HAVE_DB_185_H
42975         choke me;
42976 #else
42977 #include <db.h>
42978 #endif
42979 #ifndef DB_VERSION_MAJOR
42980 # define DB_VERSION_MAJOR 1
42981 #endif
42982 #ifndef NULL
42983 #define NULL ((void *)0)
42984 #endif
42985 main()
42986 {
42987 #if DB_VERSION_MAJOR > 1
42988         char *version;
42989         int major, minor, patch;
42990
42991         version = db_version( &major, &minor, &patch );
42992
42993         if( major != DB_VERSION_MAJOR ||
42994                 minor != DB_VERSION_MINOR ||
42995                 patch != DB_VERSION_PATCH )
42996         {
42997                 printf("Berkeley DB version mismatch\n"
42998                         "\theader: %s\n\tlibrary: %s\n",
42999                         DB_VERSION_STRING, version);
43000                 return 1;
43001         }
43002 #endif
43003
43004         return 0;
43005 }
43006 _ACEOF
43007 rm -f conftest$ac_exeext
43008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43009   (eval $ac_link) 2>&5
43010   ac_status=$?
43011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43014   (eval $ac_try) 2>&5
43015   ac_status=$?
43016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43017   (exit $ac_status); }; }; then
43018   ol_cv_berkeley_db_version=yes
43019 else
43020   echo "$as_me: program exited with status $ac_status" >&5
43021 echo "$as_me: failed program was:" >&5
43022 sed 's/^/| /' conftest.$ac_ext >&5
43023
43024 ( exit $ac_status )
43025 ol_cv_berkeley_db_version=no
43026 fi
43027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43028 fi
43029
43030         LIBS="$ol_LIBS"
43031
43032 fi
43033 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43034 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43035
43036         if test $ol_cv_berkeley_db_version = no ; then
43037                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43038 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43039    { (exit 1); exit 1; }; }
43040         fi
43041
43042                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43043 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43044 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43045   echo $ECHO_N "(cached) $ECHO_C" >&6
43046 else
43047
43048         ol_LIBS="$LIBS"
43049         LIBS="$LTHREAD_LIBS $LIBS"
43050         if test $ol_cv_lib_db != yes ; then
43051                 LIBS="$ol_cv_lib_db $LIBS"
43052         fi
43053
43054         if test "$cross_compiling" = yes; then
43055   ol_cv_berkeley_db_thread=cross
43056 else
43057   cat >conftest.$ac_ext <<_ACEOF
43058 /* confdefs.h.  */
43059 _ACEOF
43060 cat confdefs.h >>conftest.$ac_ext
43061 cat >>conftest.$ac_ext <<_ACEOF
43062 /* end confdefs.h.  */
43063
43064 #ifdef HAVE_DB_185_H
43065         choke me;
43066 #else
43067 #include <db.h>
43068 #endif
43069 #ifndef NULL
43070 #define NULL ((void *)0)
43071 #endif
43072 main()
43073 {
43074         int rc;
43075         u_int32_t flags = DB_CREATE |
43076 #ifdef DB_PRIVATE
43077                 DB_PRIVATE |
43078 #endif
43079                 DB_THREAD;
43080
43081 #if DB_VERSION_MAJOR > 2
43082         DB_ENV *env = NULL;
43083
43084         rc = db_env_create( &env, 0 );
43085
43086         flags |= DB_INIT_MPOOL;
43087 #ifdef DB_MPOOL_PRIVATE
43088         flags |= DB_MPOOL_PRIVATE;
43089 #endif
43090
43091         if( rc ) {
43092                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43093                 return rc;
43094         }
43095
43096 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43097         rc = env->open( env, NULL, flags, 0 );
43098 #else
43099         rc = env->open( env, NULL, NULL, flags, 0 );
43100 #endif
43101
43102         if ( rc == 0 ) {
43103                 rc = env->close( env, 0 );
43104         }
43105
43106         if( rc ) {
43107                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43108                 return rc;
43109         }
43110
43111 #else
43112         DB_ENV env;
43113         memset( &env, '\0', sizeof(env) );
43114
43115         rc = db_appinit( NULL, NULL, &env, flags );
43116
43117         if( rc == 0 ) {
43118                 db_appexit( &env );
43119         }
43120
43121         unlink("__db_mpool.share");
43122         unlink("__db_lock.share");
43123 #endif
43124
43125         return rc;
43126 }
43127 _ACEOF
43128 rm -f conftest$ac_exeext
43129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43130   (eval $ac_link) 2>&5
43131   ac_status=$?
43132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43135   (eval $ac_try) 2>&5
43136   ac_status=$?
43137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43138   (exit $ac_status); }; }; then
43139   ol_cv_berkeley_db_thread=yes
43140 else
43141   echo "$as_me: program exited with status $ac_status" >&5
43142 echo "$as_me: failed program was:" >&5
43143 sed 's/^/| /' conftest.$ac_ext >&5
43144
43145 ( exit $ac_status )
43146 ol_cv_berkeley_db_thread=no
43147 fi
43148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43149 fi
43150
43151         LIBS="$ol_LIBS"
43152
43153 fi
43154 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43155 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43156
43157         if test $ol_cv_berkeley_db_thread != no ; then
43158
43159 cat >>confdefs.h <<\_ACEOF
43160 #define HAVE_BERKELEY_DB_THREAD 1
43161 _ACEOF
43162
43163         fi
43164
43165         fi
43166 fi
43167
43168         fi
43169
43170         if test $ol_cv_berkeley_db != no ; then
43171
43172 cat >>confdefs.h <<\_ACEOF
43173 #define HAVE_BERKELEY_DB 1
43174 _ACEOF
43175
43176
43177                 ol_link_ldbm=berkeley
43178                 ol_with_ldbm_api=berkeley
43179
43180                 if test $ol_with_ldbm_type = hash ; then
43181
43182 cat >>confdefs.h <<\_ACEOF
43183 #define LDBM_USE_DBHASH 1
43184 _ACEOF
43185
43186                 else
43187
43188 cat >>confdefs.h <<\_ACEOF
43189 #define LDBM_USE_DBBTREE 1
43190 _ACEOF
43191
43192                 fi
43193
43194                                                 if test $ol_cv_lib_db != yes ; then
43195                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43196                 fi
43197         fi
43198 fi
43199
43200 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43201         if test $ol_link_ldbm != berkeley ; then
43202                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43203 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43204    { (exit 1); exit 1; }; }
43205         else
43206                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43207 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43208 if test "${ol_cv_bdb_compat+set}" = set; then
43209   echo $ECHO_N "(cached) $ECHO_C" >&6
43210 else
43211
43212         cat >conftest.$ac_ext <<_ACEOF
43213 /* confdefs.h.  */
43214 _ACEOF
43215 cat confdefs.h >>conftest.$ac_ext
43216 cat >>conftest.$ac_ext <<_ACEOF
43217 /* end confdefs.h.  */
43218
43219 #include <db.h>
43220
43221  /* this check could be improved */
43222 #ifndef DB_VERSION_MAJOR
43223 #       define DB_VERSION_MAJOR 1
43224 #endif
43225 #ifndef DB_VERSION_MINOR
43226 #       define DB_VERSION_MINOR 0
43227 #endif
43228
43229 /* require 4.2 or later */
43230 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43231         __db_version_compat
43232 #endif
43233
43234 _ACEOF
43235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43236   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43237   ol_cv_bdb_compat=yes
43238 else
43239   ol_cv_bdb_compat=no
43240 fi
43241 rm -f conftest*
43242
43243 fi
43244 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43245 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43246
43247
43248                 if test $ol_cv_bdb_compat != yes ; then
43249                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43250 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43251    { (exit 1); exit 1; }; }
43252                 fi
43253         fi
43254 fi
43255
43256 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43257         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43258 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43259         ol_with_ldbm_api=none
43260 fi
43261
43262 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43263         echo "$as_me:$LINENO: checking for MDBM library" >&5
43264 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43265 if test "${ol_cv_lib_mdbm+set}" = set; then
43266   echo $ECHO_N "(cached) $ECHO_C" >&6
43267 else
43268         ol_LIBS="$LIBS"
43269         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43270 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43271 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43272   echo $ECHO_N "(cached) $ECHO_C" >&6
43273 else
43274   cat >conftest.$ac_ext <<_ACEOF
43275 /* confdefs.h.  */
43276 _ACEOF
43277 cat confdefs.h >>conftest.$ac_ext
43278 cat >>conftest.$ac_ext <<_ACEOF
43279 /* end confdefs.h.  */
43280 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43282 #define mdbm_set_chain innocuous_mdbm_set_chain
43283
43284 /* System header to define __stub macros and hopefully few prototypes,
43285     which can conflict with char mdbm_set_chain (); below.
43286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43287     <limits.h> exists even on freestanding compilers.  */
43288
43289 #ifdef __STDC__
43290 # include <limits.h>
43291 #else
43292 # include <assert.h>
43293 #endif
43294
43295 #undef mdbm_set_chain
43296
43297 /* Override any gcc2 internal prototype to avoid an error.  */
43298 #ifdef __cplusplus
43299 extern "C"
43300 {
43301 #endif
43302 /* We use char because int might match the return type of a gcc2
43303    builtin and then its argument prototype would still apply.  */
43304 char mdbm_set_chain ();
43305 /* The GNU C library defines this for functions which it implements
43306     to always fail with ENOSYS.  Some functions are actually named
43307     something starting with __ and the normal name is an alias.  */
43308 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43309 choke me
43310 #else
43311 char (*f) () = mdbm_set_chain;
43312 #endif
43313 #ifdef __cplusplus
43314 }
43315 #endif
43316
43317 int
43318 main ()
43319 {
43320 return f != mdbm_set_chain;
43321   ;
43322   return 0;
43323 }
43324 _ACEOF
43325 rm -f conftest.$ac_objext conftest$ac_exeext
43326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43327   (eval $ac_link) 2>conftest.er1
43328   ac_status=$?
43329   grep -v '^ *+' conftest.er1 >conftest.err
43330   rm -f conftest.er1
43331   cat conftest.err >&5
43332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333   (exit $ac_status); } &&
43334          { ac_try='test -z "$ac_c_werror_flag"
43335                          || test ! -s conftest.err'
43336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337   (eval $ac_try) 2>&5
43338   ac_status=$?
43339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340   (exit $ac_status); }; } &&
43341          { ac_try='test -s conftest$ac_exeext'
43342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43343   (eval $ac_try) 2>&5
43344   ac_status=$?
43345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43346   (exit $ac_status); }; }; then
43347   ac_cv_func_mdbm_set_chain=yes
43348 else
43349   echo "$as_me: failed program was:" >&5
43350 sed 's/^/| /' conftest.$ac_ext >&5
43351
43352 ac_cv_func_mdbm_set_chain=no
43353 fi
43354 rm -f conftest.err conftest.$ac_objext \
43355       conftest$ac_exeext conftest.$ac_ext
43356 fi
43357 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43358 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43359 if test $ac_cv_func_mdbm_set_chain = yes; then
43360   ol_cv_lib_mdbm=yes
43361 else
43362
43363                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43364 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43365 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43366   echo $ECHO_N "(cached) $ECHO_C" >&6
43367 else
43368   ac_check_lib_save_LIBS=$LIBS
43369 LIBS="-lmdbm  $LIBS"
43370 cat >conftest.$ac_ext <<_ACEOF
43371 /* confdefs.h.  */
43372 _ACEOF
43373 cat confdefs.h >>conftest.$ac_ext
43374 cat >>conftest.$ac_ext <<_ACEOF
43375 /* end confdefs.h.  */
43376
43377 /* Override any gcc2 internal prototype to avoid an error.  */
43378 #ifdef __cplusplus
43379 extern "C"
43380 #endif
43381 /* We use char because int might match the return type of a gcc2
43382    builtin and then its argument prototype would still apply.  */
43383 char mdbm_set_chain ();
43384 int
43385 main ()
43386 {
43387 mdbm_set_chain ();
43388   ;
43389   return 0;
43390 }
43391 _ACEOF
43392 rm -f conftest.$ac_objext conftest$ac_exeext
43393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43394   (eval $ac_link) 2>conftest.er1
43395   ac_status=$?
43396   grep -v '^ *+' conftest.er1 >conftest.err
43397   rm -f conftest.er1
43398   cat conftest.err >&5
43399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43400   (exit $ac_status); } &&
43401          { ac_try='test -z "$ac_c_werror_flag"
43402                          || test ! -s conftest.err'
43403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43404   (eval $ac_try) 2>&5
43405   ac_status=$?
43406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407   (exit $ac_status); }; } &&
43408          { ac_try='test -s conftest$ac_exeext'
43409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43410   (eval $ac_try) 2>&5
43411   ac_status=$?
43412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43413   (exit $ac_status); }; }; then
43414   ac_cv_lib_mdbm_mdbm_set_chain=yes
43415 else
43416   echo "$as_me: failed program was:" >&5
43417 sed 's/^/| /' conftest.$ac_ext >&5
43418
43419 ac_cv_lib_mdbm_mdbm_set_chain=no
43420 fi
43421 rm -f conftest.err conftest.$ac_objext \
43422       conftest$ac_exeext conftest.$ac_ext
43423 LIBS=$ac_check_lib_save_LIBS
43424 fi
43425 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43426 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43427 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43428   ol_cv_lib_mdbm=-lmdbm
43429 else
43430   ol_cv_lib_mdbm=no
43431 fi
43432
43433
43434 fi
43435
43436         LIBS="$ol_LIBS"
43437
43438 fi
43439 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43440 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43441
43442
43443
43444 for ac_header in mdbm.h
43445 do
43446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43448   echo "$as_me:$LINENO: checking for $ac_header" >&5
43449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43451   echo $ECHO_N "(cached) $ECHO_C" >&6
43452 fi
43453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43455 else
43456   # Is the header compilable?
43457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43459 cat >conftest.$ac_ext <<_ACEOF
43460 /* confdefs.h.  */
43461 _ACEOF
43462 cat confdefs.h >>conftest.$ac_ext
43463 cat >>conftest.$ac_ext <<_ACEOF
43464 /* end confdefs.h.  */
43465 $ac_includes_default
43466 #include <$ac_header>
43467 _ACEOF
43468 rm -f conftest.$ac_objext
43469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43470   (eval $ac_compile) 2>conftest.er1
43471   ac_status=$?
43472   grep -v '^ *+' conftest.er1 >conftest.err
43473   rm -f conftest.er1
43474   cat conftest.err >&5
43475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43476   (exit $ac_status); } &&
43477          { ac_try='test -z "$ac_c_werror_flag"
43478                          || test ! -s conftest.err'
43479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43480   (eval $ac_try) 2>&5
43481   ac_status=$?
43482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43483   (exit $ac_status); }; } &&
43484          { ac_try='test -s conftest.$ac_objext'
43485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43486   (eval $ac_try) 2>&5
43487   ac_status=$?
43488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43489   (exit $ac_status); }; }; then
43490   ac_header_compiler=yes
43491 else
43492   echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43494
43495 ac_header_compiler=no
43496 fi
43497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43499 echo "${ECHO_T}$ac_header_compiler" >&6
43500
43501 # Is the header present?
43502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43504 cat >conftest.$ac_ext <<_ACEOF
43505 /* confdefs.h.  */
43506 _ACEOF
43507 cat confdefs.h >>conftest.$ac_ext
43508 cat >>conftest.$ac_ext <<_ACEOF
43509 /* end confdefs.h.  */
43510 #include <$ac_header>
43511 _ACEOF
43512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43514   ac_status=$?
43515   grep -v '^ *+' conftest.er1 >conftest.err
43516   rm -f conftest.er1
43517   cat conftest.err >&5
43518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43519   (exit $ac_status); } >/dev/null; then
43520   if test -s conftest.err; then
43521     ac_cpp_err=$ac_c_preproc_warn_flag
43522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43523   else
43524     ac_cpp_err=
43525   fi
43526 else
43527   ac_cpp_err=yes
43528 fi
43529 if test -z "$ac_cpp_err"; then
43530   ac_header_preproc=yes
43531 else
43532   echo "$as_me: failed program was:" >&5
43533 sed 's/^/| /' conftest.$ac_ext >&5
43534
43535   ac_header_preproc=no
43536 fi
43537 rm -f conftest.err conftest.$ac_ext
43538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43539 echo "${ECHO_T}$ac_header_preproc" >&6
43540
43541 # So?  What about this header?
43542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43543   yes:no: )
43544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43548     ac_header_preproc=yes
43549     ;;
43550   no:yes:* )
43551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43563     (
43564       cat <<\_ASBOX
43565 ## ------------------------------------------ ##
43566 ## Report this to the AC_PACKAGE_NAME lists.  ##
43567 ## ------------------------------------------ ##
43568 _ASBOX
43569     ) |
43570       sed "s/^/$as_me: WARNING:     /" >&2
43571     ;;
43572 esac
43573 echo "$as_me:$LINENO: checking for $ac_header" >&5
43574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43576   echo $ECHO_N "(cached) $ECHO_C" >&6
43577 else
43578   eval "$as_ac_Header=\$ac_header_preproc"
43579 fi
43580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43582
43583 fi
43584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43585   cat >>confdefs.h <<_ACEOF
43586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43587 _ACEOF
43588
43589 fi
43590
43591 done
43592
43593  echo "$as_me:$LINENO: checking for db" >&5
43594 echo $ECHO_N "checking for db... $ECHO_C" >&6
43595 if test "${ol_cv_mdbm+set}" = set; then
43596   echo $ECHO_N "(cached) $ECHO_C" >&6
43597 else
43598
43599         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43600                 ol_cv_mdbm=no
43601         else
43602                 ol_cv_mdbm=yes
43603         fi
43604
43605 fi
43606 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43607 echo "${ECHO_T}$ol_cv_mdbm" >&6
43608  if test $ol_cv_mdbm = yes ; then
43609
43610 cat >>confdefs.h <<\_ACEOF
43611 #define HAVE_MDBM 1
43612 _ACEOF
43613
43614  fi
43615
43616
43617         if test $ol_cv_mdbm = yes ; then
43618                 ol_link_ldbm=mdbm
43619                 ol_with_ldbm_api=mdbm
43620                 if test $ol_cv_lib_mdbm != yes ; then
43621                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43622                 fi
43623         fi
43624 fi
43625
43626 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43627         echo "$as_me:$LINENO: checking for GDBM library" >&5
43628 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43629 if test "${ol_cv_lib_gdbm+set}" = set; then
43630   echo $ECHO_N "(cached) $ECHO_C" >&6
43631 else
43632         ol_LIBS="$LIBS"
43633         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43634 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43635 if test "${ac_cv_func_gdbm_open+set}" = set; then
43636   echo $ECHO_N "(cached) $ECHO_C" >&6
43637 else
43638   cat >conftest.$ac_ext <<_ACEOF
43639 /* confdefs.h.  */
43640 _ACEOF
43641 cat confdefs.h >>conftest.$ac_ext
43642 cat >>conftest.$ac_ext <<_ACEOF
43643 /* end confdefs.h.  */
43644 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43646 #define gdbm_open innocuous_gdbm_open
43647
43648 /* System header to define __stub macros and hopefully few prototypes,
43649     which can conflict with char gdbm_open (); below.
43650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43651     <limits.h> exists even on freestanding compilers.  */
43652
43653 #ifdef __STDC__
43654 # include <limits.h>
43655 #else
43656 # include <assert.h>
43657 #endif
43658
43659 #undef gdbm_open
43660
43661 /* Override any gcc2 internal prototype to avoid an error.  */
43662 #ifdef __cplusplus
43663 extern "C"
43664 {
43665 #endif
43666 /* We use char because int might match the return type of a gcc2
43667    builtin and then its argument prototype would still apply.  */
43668 char gdbm_open ();
43669 /* The GNU C library defines this for functions which it implements
43670     to always fail with ENOSYS.  Some functions are actually named
43671     something starting with __ and the normal name is an alias.  */
43672 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43673 choke me
43674 #else
43675 char (*f) () = gdbm_open;
43676 #endif
43677 #ifdef __cplusplus
43678 }
43679 #endif
43680
43681 int
43682 main ()
43683 {
43684 return f != gdbm_open;
43685   ;
43686   return 0;
43687 }
43688 _ACEOF
43689 rm -f conftest.$ac_objext conftest$ac_exeext
43690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43691   (eval $ac_link) 2>conftest.er1
43692   ac_status=$?
43693   grep -v '^ *+' conftest.er1 >conftest.err
43694   rm -f conftest.er1
43695   cat conftest.err >&5
43696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697   (exit $ac_status); } &&
43698          { ac_try='test -z "$ac_c_werror_flag"
43699                          || test ! -s conftest.err'
43700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43701   (eval $ac_try) 2>&5
43702   ac_status=$?
43703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43704   (exit $ac_status); }; } &&
43705          { ac_try='test -s conftest$ac_exeext'
43706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43707   (eval $ac_try) 2>&5
43708   ac_status=$?
43709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43710   (exit $ac_status); }; }; then
43711   ac_cv_func_gdbm_open=yes
43712 else
43713   echo "$as_me: failed program was:" >&5
43714 sed 's/^/| /' conftest.$ac_ext >&5
43715
43716 ac_cv_func_gdbm_open=no
43717 fi
43718 rm -f conftest.err conftest.$ac_objext \
43719       conftest$ac_exeext conftest.$ac_ext
43720 fi
43721 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43722 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43723 if test $ac_cv_func_gdbm_open = yes; then
43724   ol_cv_lib_gdbm=yes
43725 else
43726
43727                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43728 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43729 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43730   echo $ECHO_N "(cached) $ECHO_C" >&6
43731 else
43732   ac_check_lib_save_LIBS=$LIBS
43733 LIBS="-lgdbm  $LIBS"
43734 cat >conftest.$ac_ext <<_ACEOF
43735 /* confdefs.h.  */
43736 _ACEOF
43737 cat confdefs.h >>conftest.$ac_ext
43738 cat >>conftest.$ac_ext <<_ACEOF
43739 /* end confdefs.h.  */
43740
43741 /* Override any gcc2 internal prototype to avoid an error.  */
43742 #ifdef __cplusplus
43743 extern "C"
43744 #endif
43745 /* We use char because int might match the return type of a gcc2
43746    builtin and then its argument prototype would still apply.  */
43747 char gdbm_open ();
43748 int
43749 main ()
43750 {
43751 gdbm_open ();
43752   ;
43753   return 0;
43754 }
43755 _ACEOF
43756 rm -f conftest.$ac_objext conftest$ac_exeext
43757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43758   (eval $ac_link) 2>conftest.er1
43759   ac_status=$?
43760   grep -v '^ *+' conftest.er1 >conftest.err
43761   rm -f conftest.er1
43762   cat conftest.err >&5
43763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43764   (exit $ac_status); } &&
43765          { ac_try='test -z "$ac_c_werror_flag"
43766                          || test ! -s conftest.err'
43767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43768   (eval $ac_try) 2>&5
43769   ac_status=$?
43770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43771   (exit $ac_status); }; } &&
43772          { ac_try='test -s conftest$ac_exeext'
43773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43774   (eval $ac_try) 2>&5
43775   ac_status=$?
43776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43777   (exit $ac_status); }; }; then
43778   ac_cv_lib_gdbm_gdbm_open=yes
43779 else
43780   echo "$as_me: failed program was:" >&5
43781 sed 's/^/| /' conftest.$ac_ext >&5
43782
43783 ac_cv_lib_gdbm_gdbm_open=no
43784 fi
43785 rm -f conftest.err conftest.$ac_objext \
43786       conftest$ac_exeext conftest.$ac_ext
43787 LIBS=$ac_check_lib_save_LIBS
43788 fi
43789 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43790 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43791 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43792   ol_cv_lib_gdbm=-lgdbm
43793 else
43794   ol_cv_lib_gdbm=no
43795 fi
43796
43797
43798 fi
43799
43800         LIBS="$ol_LIBS"
43801
43802 fi
43803 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43804 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43805
43806
43807
43808 for ac_header in gdbm.h
43809 do
43810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43812   echo "$as_me:$LINENO: checking for $ac_header" >&5
43813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43815   echo $ECHO_N "(cached) $ECHO_C" >&6
43816 fi
43817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43819 else
43820   # Is the header compilable?
43821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43823 cat >conftest.$ac_ext <<_ACEOF
43824 /* confdefs.h.  */
43825 _ACEOF
43826 cat confdefs.h >>conftest.$ac_ext
43827 cat >>conftest.$ac_ext <<_ACEOF
43828 /* end confdefs.h.  */
43829 $ac_includes_default
43830 #include <$ac_header>
43831 _ACEOF
43832 rm -f conftest.$ac_objext
43833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43834   (eval $ac_compile) 2>conftest.er1
43835   ac_status=$?
43836   grep -v '^ *+' conftest.er1 >conftest.err
43837   rm -f conftest.er1
43838   cat conftest.err >&5
43839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43840   (exit $ac_status); } &&
43841          { ac_try='test -z "$ac_c_werror_flag"
43842                          || test ! -s conftest.err'
43843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43844   (eval $ac_try) 2>&5
43845   ac_status=$?
43846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847   (exit $ac_status); }; } &&
43848          { ac_try='test -s conftest.$ac_objext'
43849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43850   (eval $ac_try) 2>&5
43851   ac_status=$?
43852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43853   (exit $ac_status); }; }; then
43854   ac_header_compiler=yes
43855 else
43856   echo "$as_me: failed program was:" >&5
43857 sed 's/^/| /' conftest.$ac_ext >&5
43858
43859 ac_header_compiler=no
43860 fi
43861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43863 echo "${ECHO_T}$ac_header_compiler" >&6
43864
43865 # Is the header present?
43866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43868 cat >conftest.$ac_ext <<_ACEOF
43869 /* confdefs.h.  */
43870 _ACEOF
43871 cat confdefs.h >>conftest.$ac_ext
43872 cat >>conftest.$ac_ext <<_ACEOF
43873 /* end confdefs.h.  */
43874 #include <$ac_header>
43875 _ACEOF
43876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43878   ac_status=$?
43879   grep -v '^ *+' conftest.er1 >conftest.err
43880   rm -f conftest.er1
43881   cat conftest.err >&5
43882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43883   (exit $ac_status); } >/dev/null; then
43884   if test -s conftest.err; then
43885     ac_cpp_err=$ac_c_preproc_warn_flag
43886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43887   else
43888     ac_cpp_err=
43889   fi
43890 else
43891   ac_cpp_err=yes
43892 fi
43893 if test -z "$ac_cpp_err"; then
43894   ac_header_preproc=yes
43895 else
43896   echo "$as_me: failed program was:" >&5
43897 sed 's/^/| /' conftest.$ac_ext >&5
43898
43899   ac_header_preproc=no
43900 fi
43901 rm -f conftest.err conftest.$ac_ext
43902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43903 echo "${ECHO_T}$ac_header_preproc" >&6
43904
43905 # So?  What about this header?
43906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43907   yes:no: )
43908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43912     ac_header_preproc=yes
43913     ;;
43914   no:yes:* )
43915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43927     (
43928       cat <<\_ASBOX
43929 ## ------------------------------------------ ##
43930 ## Report this to the AC_PACKAGE_NAME lists.  ##
43931 ## ------------------------------------------ ##
43932 _ASBOX
43933     ) |
43934       sed "s/^/$as_me: WARNING:     /" >&2
43935     ;;
43936 esac
43937 echo "$as_me:$LINENO: checking for $ac_header" >&5
43938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43940   echo $ECHO_N "(cached) $ECHO_C" >&6
43941 else
43942   eval "$as_ac_Header=\$ac_header_preproc"
43943 fi
43944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43946
43947 fi
43948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43949   cat >>confdefs.h <<_ACEOF
43950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43951 _ACEOF
43952
43953 fi
43954
43955 done
43956
43957  echo "$as_me:$LINENO: checking for db" >&5
43958 echo $ECHO_N "checking for db... $ECHO_C" >&6
43959 if test "${ol_cv_gdbm+set}" = set; then
43960   echo $ECHO_N "(cached) $ECHO_C" >&6
43961 else
43962
43963         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43964                 ol_cv_gdbm=no
43965         else
43966                 ol_cv_gdbm=yes
43967         fi
43968
43969 fi
43970 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43971 echo "${ECHO_T}$ol_cv_gdbm" >&6
43972  if test $ol_cv_gdbm = yes ; then
43973
43974 cat >>confdefs.h <<\_ACEOF
43975 #define HAVE_GDBM 1
43976 _ACEOF
43977
43978  fi
43979
43980
43981         if test $ol_cv_gdbm = yes ; then
43982                 ol_link_ldbm=gdbm
43983                 ol_with_ldbm_api=gdbm
43984
43985                 if test $ol_cv_lib_gdbm != yes ; then
43986                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43987                 fi
43988         fi
43989 fi
43990
43991 if test $ol_with_ldbm_api = ndbm ; then
43992         echo "$as_me:$LINENO: checking for NDBM library" >&5
43993 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43994 if test "${ol_cv_lib_ndbm+set}" = set; then
43995   echo $ECHO_N "(cached) $ECHO_C" >&6
43996 else
43997         ol_LIBS="$LIBS"
43998         echo "$as_me:$LINENO: checking for dbm_open" >&5
43999 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44000 if test "${ac_cv_func_dbm_open+set}" = set; then
44001   echo $ECHO_N "(cached) $ECHO_C" >&6
44002 else
44003   cat >conftest.$ac_ext <<_ACEOF
44004 /* confdefs.h.  */
44005 _ACEOF
44006 cat confdefs.h >>conftest.$ac_ext
44007 cat >>conftest.$ac_ext <<_ACEOF
44008 /* end confdefs.h.  */
44009 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44011 #define dbm_open innocuous_dbm_open
44012
44013 /* System header to define __stub macros and hopefully few prototypes,
44014     which can conflict with char dbm_open (); below.
44015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44016     <limits.h> exists even on freestanding compilers.  */
44017
44018 #ifdef __STDC__
44019 # include <limits.h>
44020 #else
44021 # include <assert.h>
44022 #endif
44023
44024 #undef dbm_open
44025
44026 /* Override any gcc2 internal prototype to avoid an error.  */
44027 #ifdef __cplusplus
44028 extern "C"
44029 {
44030 #endif
44031 /* We use char because int might match the return type of a gcc2
44032    builtin and then its argument prototype would still apply.  */
44033 char dbm_open ();
44034 /* The GNU C library defines this for functions which it implements
44035     to always fail with ENOSYS.  Some functions are actually named
44036     something starting with __ and the normal name is an alias.  */
44037 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44038 choke me
44039 #else
44040 char (*f) () = dbm_open;
44041 #endif
44042 #ifdef __cplusplus
44043 }
44044 #endif
44045
44046 int
44047 main ()
44048 {
44049 return f != dbm_open;
44050   ;
44051   return 0;
44052 }
44053 _ACEOF
44054 rm -f conftest.$ac_objext conftest$ac_exeext
44055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44056   (eval $ac_link) 2>conftest.er1
44057   ac_status=$?
44058   grep -v '^ *+' conftest.er1 >conftest.err
44059   rm -f conftest.er1
44060   cat conftest.err >&5
44061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44062   (exit $ac_status); } &&
44063          { ac_try='test -z "$ac_c_werror_flag"
44064                          || test ! -s conftest.err'
44065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44066   (eval $ac_try) 2>&5
44067   ac_status=$?
44068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44069   (exit $ac_status); }; } &&
44070          { ac_try='test -s conftest$ac_exeext'
44071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44072   (eval $ac_try) 2>&5
44073   ac_status=$?
44074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44075   (exit $ac_status); }; }; then
44076   ac_cv_func_dbm_open=yes
44077 else
44078   echo "$as_me: failed program was:" >&5
44079 sed 's/^/| /' conftest.$ac_ext >&5
44080
44081 ac_cv_func_dbm_open=no
44082 fi
44083 rm -f conftest.err conftest.$ac_objext \
44084       conftest$ac_exeext conftest.$ac_ext
44085 fi
44086 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44087 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44088 if test $ac_cv_func_dbm_open = yes; then
44089   ol_cv_lib_ndbm=yes
44090 else
44091
44092                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44093 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44094 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44095   echo $ECHO_N "(cached) $ECHO_C" >&6
44096 else
44097   ac_check_lib_save_LIBS=$LIBS
44098 LIBS="-lndbm  $LIBS"
44099 cat >conftest.$ac_ext <<_ACEOF
44100 /* confdefs.h.  */
44101 _ACEOF
44102 cat confdefs.h >>conftest.$ac_ext
44103 cat >>conftest.$ac_ext <<_ACEOF
44104 /* end confdefs.h.  */
44105
44106 /* Override any gcc2 internal prototype to avoid an error.  */
44107 #ifdef __cplusplus
44108 extern "C"
44109 #endif
44110 /* We use char because int might match the return type of a gcc2
44111    builtin and then its argument prototype would still apply.  */
44112 char dbm_open ();
44113 int
44114 main ()
44115 {
44116 dbm_open ();
44117   ;
44118   return 0;
44119 }
44120 _ACEOF
44121 rm -f conftest.$ac_objext conftest$ac_exeext
44122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44123   (eval $ac_link) 2>conftest.er1
44124   ac_status=$?
44125   grep -v '^ *+' conftest.er1 >conftest.err
44126   rm -f conftest.er1
44127   cat conftest.err >&5
44128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44129   (exit $ac_status); } &&
44130          { ac_try='test -z "$ac_c_werror_flag"
44131                          || test ! -s conftest.err'
44132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44133   (eval $ac_try) 2>&5
44134   ac_status=$?
44135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44136   (exit $ac_status); }; } &&
44137          { ac_try='test -s conftest$ac_exeext'
44138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44139   (eval $ac_try) 2>&5
44140   ac_status=$?
44141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44142   (exit $ac_status); }; }; then
44143   ac_cv_lib_ndbm_dbm_open=yes
44144 else
44145   echo "$as_me: failed program was:" >&5
44146 sed 's/^/| /' conftest.$ac_ext >&5
44147
44148 ac_cv_lib_ndbm_dbm_open=no
44149 fi
44150 rm -f conftest.err conftest.$ac_objext \
44151       conftest$ac_exeext conftest.$ac_ext
44152 LIBS=$ac_check_lib_save_LIBS
44153 fi
44154 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44155 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44156 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44157   ol_cv_lib_ndbm=-lndbm
44158 else
44159
44160                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44161 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44162 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44163   echo $ECHO_N "(cached) $ECHO_C" >&6
44164 else
44165   ac_check_lib_save_LIBS=$LIBS
44166 LIBS="-ldbm  $LIBS"
44167 cat >conftest.$ac_ext <<_ACEOF
44168 /* confdefs.h.  */
44169 _ACEOF
44170 cat confdefs.h >>conftest.$ac_ext
44171 cat >>conftest.$ac_ext <<_ACEOF
44172 /* end confdefs.h.  */
44173
44174 /* Override any gcc2 internal prototype to avoid an error.  */
44175 #ifdef __cplusplus
44176 extern "C"
44177 #endif
44178 /* We use char because int might match the return type of a gcc2
44179    builtin and then its argument prototype would still apply.  */
44180 char dbm_open ();
44181 int
44182 main ()
44183 {
44184 dbm_open ();
44185   ;
44186   return 0;
44187 }
44188 _ACEOF
44189 rm -f conftest.$ac_objext conftest$ac_exeext
44190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44191   (eval $ac_link) 2>conftest.er1
44192   ac_status=$?
44193   grep -v '^ *+' conftest.er1 >conftest.err
44194   rm -f conftest.er1
44195   cat conftest.err >&5
44196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44197   (exit $ac_status); } &&
44198          { ac_try='test -z "$ac_c_werror_flag"
44199                          || test ! -s conftest.err'
44200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44201   (eval $ac_try) 2>&5
44202   ac_status=$?
44203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44204   (exit $ac_status); }; } &&
44205          { ac_try='test -s conftest$ac_exeext'
44206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44207   (eval $ac_try) 2>&5
44208   ac_status=$?
44209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44210   (exit $ac_status); }; }; then
44211   ac_cv_lib_dbm_dbm_open=yes
44212 else
44213   echo "$as_me: failed program was:" >&5
44214 sed 's/^/| /' conftest.$ac_ext >&5
44215
44216 ac_cv_lib_dbm_dbm_open=no
44217 fi
44218 rm -f conftest.err conftest.$ac_objext \
44219       conftest$ac_exeext conftest.$ac_ext
44220 LIBS=$ac_check_lib_save_LIBS
44221 fi
44222 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44223 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44224 if test $ac_cv_lib_dbm_dbm_open = yes; then
44225   ol_cv_lib_ndbm=-ldbm
44226 else
44227   ol_cv_lib_ndbm=no
44228 fi
44229
44230 fi
44231
44232
44233 fi
44234
44235         LIBS="$ol_LIBS"
44236
44237 fi
44238 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44239 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44240
44241
44242
44243 for ac_header in ndbm.h
44244 do
44245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44247   echo "$as_me:$LINENO: checking for $ac_header" >&5
44248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44250   echo $ECHO_N "(cached) $ECHO_C" >&6
44251 fi
44252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44254 else
44255   # Is the header compilable?
44256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44258 cat >conftest.$ac_ext <<_ACEOF
44259 /* confdefs.h.  */
44260 _ACEOF
44261 cat confdefs.h >>conftest.$ac_ext
44262 cat >>conftest.$ac_ext <<_ACEOF
44263 /* end confdefs.h.  */
44264 $ac_includes_default
44265 #include <$ac_header>
44266 _ACEOF
44267 rm -f conftest.$ac_objext
44268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44269   (eval $ac_compile) 2>conftest.er1
44270   ac_status=$?
44271   grep -v '^ *+' conftest.er1 >conftest.err
44272   rm -f conftest.er1
44273   cat conftest.err >&5
44274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44275   (exit $ac_status); } &&
44276          { ac_try='test -z "$ac_c_werror_flag"
44277                          || test ! -s conftest.err'
44278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44279   (eval $ac_try) 2>&5
44280   ac_status=$?
44281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44282   (exit $ac_status); }; } &&
44283          { ac_try='test -s conftest.$ac_objext'
44284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44285   (eval $ac_try) 2>&5
44286   ac_status=$?
44287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44288   (exit $ac_status); }; }; then
44289   ac_header_compiler=yes
44290 else
44291   echo "$as_me: failed program was:" >&5
44292 sed 's/^/| /' conftest.$ac_ext >&5
44293
44294 ac_header_compiler=no
44295 fi
44296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44298 echo "${ECHO_T}$ac_header_compiler" >&6
44299
44300 # Is the header present?
44301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44303 cat >conftest.$ac_ext <<_ACEOF
44304 /* confdefs.h.  */
44305 _ACEOF
44306 cat confdefs.h >>conftest.$ac_ext
44307 cat >>conftest.$ac_ext <<_ACEOF
44308 /* end confdefs.h.  */
44309 #include <$ac_header>
44310 _ACEOF
44311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44313   ac_status=$?
44314   grep -v '^ *+' conftest.er1 >conftest.err
44315   rm -f conftest.er1
44316   cat conftest.err >&5
44317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44318   (exit $ac_status); } >/dev/null; then
44319   if test -s conftest.err; then
44320     ac_cpp_err=$ac_c_preproc_warn_flag
44321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44322   else
44323     ac_cpp_err=
44324   fi
44325 else
44326   ac_cpp_err=yes
44327 fi
44328 if test -z "$ac_cpp_err"; then
44329   ac_header_preproc=yes
44330 else
44331   echo "$as_me: failed program was:" >&5
44332 sed 's/^/| /' conftest.$ac_ext >&5
44333
44334   ac_header_preproc=no
44335 fi
44336 rm -f conftest.err conftest.$ac_ext
44337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44338 echo "${ECHO_T}$ac_header_preproc" >&6
44339
44340 # So?  What about this header?
44341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44342   yes:no: )
44343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44347     ac_header_preproc=yes
44348     ;;
44349   no:yes:* )
44350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44362     (
44363       cat <<\_ASBOX
44364 ## ------------------------------------------ ##
44365 ## Report this to the AC_PACKAGE_NAME lists.  ##
44366 ## ------------------------------------------ ##
44367 _ASBOX
44368     ) |
44369       sed "s/^/$as_me: WARNING:     /" >&2
44370     ;;
44371 esac
44372 echo "$as_me:$LINENO: checking for $ac_header" >&5
44373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44375   echo $ECHO_N "(cached) $ECHO_C" >&6
44376 else
44377   eval "$as_ac_Header=\$ac_header_preproc"
44378 fi
44379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44381
44382 fi
44383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44384   cat >>confdefs.h <<_ACEOF
44385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44386 _ACEOF
44387
44388 fi
44389
44390 done
44391
44392  echo "$as_me:$LINENO: checking for db" >&5
44393 echo $ECHO_N "checking for db... $ECHO_C" >&6
44394 if test "${ol_cv_ndbm+set}" = set; then
44395   echo $ECHO_N "(cached) $ECHO_C" >&6
44396 else
44397
44398         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44399                 ol_cv_ndbm=no
44400         else
44401                 ol_cv_ndbm=yes
44402         fi
44403
44404 fi
44405 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44406 echo "${ECHO_T}$ol_cv_ndbm" >&6
44407  if test $ol_cv_ndbm = yes ; then
44408
44409 cat >>confdefs.h <<\_ACEOF
44410 #define HAVE_NDBM 1
44411 _ACEOF
44412
44413  fi
44414
44415
44416         if test $ol_cv_ndbm = yes ; then
44417                 ol_link_ldbm=ndbm
44418                 ol_with_ldbm_api=ndbm
44419
44420                 if test $ol_cv_lib_ndbm != yes ; then
44421                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44422                 fi
44423         fi
44424 fi
44425
44426 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44427         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44428 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44429    { (exit 1); exit 1; }; }
44430 fi
44431
44432 if test $ol_enable_bdb = yes -o \
44433         $ol_enable_hdb = yes -o \
44434         $ol_enable_ldbm = yes ; then
44435         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44436 fi
44437
44438
44439 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44440         BUILD_LIBS_DYNAMIC=shared
44441
44442 cat >>confdefs.h <<\_ACEOF
44443 #define LDAP_LIBS_DYNAMIC 1
44444 _ACEOF
44445
44446         LTSTATIC=""
44447 else
44448         BUILD_LIBS_DYNAMIC=static
44449         LTSTATIC="-static"
44450 fi
44451
44452 if test $ol_enable_wrappers != no ; then
44453
44454 for ac_header in tcpd.h
44455 do
44456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44458   echo "$as_me:$LINENO: checking for $ac_header" >&5
44459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44461   echo $ECHO_N "(cached) $ECHO_C" >&6
44462 fi
44463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44465 else
44466   # Is the header compilable?
44467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44469 cat >conftest.$ac_ext <<_ACEOF
44470 /* confdefs.h.  */
44471 _ACEOF
44472 cat confdefs.h >>conftest.$ac_ext
44473 cat >>conftest.$ac_ext <<_ACEOF
44474 /* end confdefs.h.  */
44475 $ac_includes_default
44476 #include <$ac_header>
44477 _ACEOF
44478 rm -f conftest.$ac_objext
44479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44480   (eval $ac_compile) 2>conftest.er1
44481   ac_status=$?
44482   grep -v '^ *+' conftest.er1 >conftest.err
44483   rm -f conftest.er1
44484   cat conftest.err >&5
44485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44486   (exit $ac_status); } &&
44487          { ac_try='test -z "$ac_c_werror_flag"
44488                          || test ! -s conftest.err'
44489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44490   (eval $ac_try) 2>&5
44491   ac_status=$?
44492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44493   (exit $ac_status); }; } &&
44494          { ac_try='test -s conftest.$ac_objext'
44495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44496   (eval $ac_try) 2>&5
44497   ac_status=$?
44498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44499   (exit $ac_status); }; }; then
44500   ac_header_compiler=yes
44501 else
44502   echo "$as_me: failed program was:" >&5
44503 sed 's/^/| /' conftest.$ac_ext >&5
44504
44505 ac_header_compiler=no
44506 fi
44507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44509 echo "${ECHO_T}$ac_header_compiler" >&6
44510
44511 # Is the header present?
44512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44514 cat >conftest.$ac_ext <<_ACEOF
44515 /* confdefs.h.  */
44516 _ACEOF
44517 cat confdefs.h >>conftest.$ac_ext
44518 cat >>conftest.$ac_ext <<_ACEOF
44519 /* end confdefs.h.  */
44520 #include <$ac_header>
44521 _ACEOF
44522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44524   ac_status=$?
44525   grep -v '^ *+' conftest.er1 >conftest.err
44526   rm -f conftest.er1
44527   cat conftest.err >&5
44528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44529   (exit $ac_status); } >/dev/null; then
44530   if test -s conftest.err; then
44531     ac_cpp_err=$ac_c_preproc_warn_flag
44532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44533   else
44534     ac_cpp_err=
44535   fi
44536 else
44537   ac_cpp_err=yes
44538 fi
44539 if test -z "$ac_cpp_err"; then
44540   ac_header_preproc=yes
44541 else
44542   echo "$as_me: failed program was:" >&5
44543 sed 's/^/| /' conftest.$ac_ext >&5
44544
44545   ac_header_preproc=no
44546 fi
44547 rm -f conftest.err conftest.$ac_ext
44548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44549 echo "${ECHO_T}$ac_header_preproc" >&6
44550
44551 # So?  What about this header?
44552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44553   yes:no: )
44554     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44558     ac_header_preproc=yes
44559     ;;
44560   no:yes:* )
44561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44563     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44564 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44565     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44567     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44568 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44571     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44573     (
44574       cat <<\_ASBOX
44575 ## ------------------------------------------ ##
44576 ## Report this to the AC_PACKAGE_NAME lists.  ##
44577 ## ------------------------------------------ ##
44578 _ASBOX
44579     ) |
44580       sed "s/^/$as_me: WARNING:     /" >&2
44581     ;;
44582 esac
44583 echo "$as_me:$LINENO: checking for $ac_header" >&5
44584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44586   echo $ECHO_N "(cached) $ECHO_C" >&6
44587 else
44588   eval "$as_ac_Header=\$ac_header_preproc"
44589 fi
44590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44592
44593 fi
44594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44595   cat >>confdefs.h <<_ACEOF
44596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44597 _ACEOF
44598
44599                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44600 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44601                 save_LIBS="$LIBS"
44602                 LIBS="$LIBS -lwrap"
44603                 cat >conftest.$ac_ext <<_ACEOF
44604 /* confdefs.h.  */
44605 _ACEOF
44606 cat confdefs.h >>conftest.$ac_ext
44607 cat >>conftest.$ac_ext <<_ACEOF
44608 /* end confdefs.h.  */
44609
44610 #include <tcpd.h>
44611 int allow_severity = 0;
44612 int deny_severity  = 0;
44613
44614 struct request_info *req;
44615
44616 int
44617 main ()
44618 {
44619
44620 hosts_access(req)
44621
44622   ;
44623   return 0;
44624 }
44625 _ACEOF
44626 rm -f conftest.$ac_objext conftest$ac_exeext
44627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44628   (eval $ac_link) 2>conftest.er1
44629   ac_status=$?
44630   grep -v '^ *+' conftest.er1 >conftest.err
44631   rm -f conftest.er1
44632   cat conftest.err >&5
44633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44634   (exit $ac_status); } &&
44635          { ac_try='test -z "$ac_c_werror_flag"
44636                          || test ! -s conftest.err'
44637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44638   (eval $ac_try) 2>&5
44639   ac_status=$?
44640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44641   (exit $ac_status); }; } &&
44642          { ac_try='test -s conftest$ac_exeext'
44643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44644   (eval $ac_try) 2>&5
44645   ac_status=$?
44646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44647   (exit $ac_status); }; }; then
44648   echo "$as_me:$LINENO: result: -lwrap" >&5
44649 echo "${ECHO_T}-lwrap" >&6
44650                 have_wrappers=yes
44651                 LIBS="$save_LIBS"
44652 else
44653   echo "$as_me: failed program was:" >&5
44654 sed 's/^/| /' conftest.$ac_ext >&5
44655
44656
44657                                 LIBS="$LIBS -lnsl"
44658                 cat >conftest.$ac_ext <<_ACEOF
44659 /* confdefs.h.  */
44660 _ACEOF
44661 cat confdefs.h >>conftest.$ac_ext
44662 cat >>conftest.$ac_ext <<_ACEOF
44663 /* end confdefs.h.  */
44664
44665 #include <tcpd.h>
44666 int allow_severity = 0;
44667 int deny_severity  = 0;
44668
44669 struct request_info *req;
44670
44671 int
44672 main ()
44673 {
44674
44675 hosts_access(req)
44676
44677   ;
44678   return 0;
44679 }
44680 _ACEOF
44681 rm -f conftest.$ac_objext conftest$ac_exeext
44682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44683   (eval $ac_link) 2>conftest.er1
44684   ac_status=$?
44685   grep -v '^ *+' conftest.er1 >conftest.err
44686   rm -f conftest.er1
44687   cat conftest.err >&5
44688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44689   (exit $ac_status); } &&
44690          { ac_try='test -z "$ac_c_werror_flag"
44691                          || test ! -s conftest.err'
44692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44693   (eval $ac_try) 2>&5
44694   ac_status=$?
44695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44696   (exit $ac_status); }; } &&
44697          { ac_try='test -s conftest$ac_exeext'
44698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44699   (eval $ac_try) 2>&5
44700   ac_status=$?
44701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702   (exit $ac_status); }; }; then
44703   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44704 echo "${ECHO_T}-lwrap -lnsl" >&6
44705                 have_wrappers=yes
44706                 LIBS="$save_LIBS -lnsl"
44707 else
44708   echo "$as_me: failed program was:" >&5
44709 sed 's/^/| /' conftest.$ac_ext >&5
44710
44711
44712                 echo "$as_me:$LINENO: result: no" >&5
44713 echo "${ECHO_T}no" >&6
44714                 have_wrappers=no
44715                 LIBS=$save_LIBS
44716 fi
44717 rm -f conftest.err conftest.$ac_objext \
44718       conftest$ac_exeext conftest.$ac_ext
44719 fi
44720 rm -f conftest.err conftest.$ac_objext \
44721       conftest$ac_exeext conftest.$ac_ext
44722 else
44723   have_wrappers=no
44724 fi
44725
44726 done
44727
44728
44729         if test $have_wrappers = yes ; then
44730
44731 cat >>confdefs.h <<\_ACEOF
44732 #define HAVE_TCPD 1
44733 _ACEOF
44734
44735                 WRAP_LIBS="-lwrap"
44736         elif test $ol_enable_wrappers = yes ; then
44737                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44738 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44739    { (exit 1); exit 1; }; }
44740         else
44741                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44742 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44743                 WRAP_LIBS=""
44744         fi
44745 fi
44746
44747 if test $ol_enable_syslog != no ; then
44748         echo "$as_me:$LINENO: checking for openlog" >&5
44749 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44750 if test "${ac_cv_func_openlog+set}" = set; then
44751   echo $ECHO_N "(cached) $ECHO_C" >&6
44752 else
44753   cat >conftest.$ac_ext <<_ACEOF
44754 /* confdefs.h.  */
44755 _ACEOF
44756 cat confdefs.h >>conftest.$ac_ext
44757 cat >>conftest.$ac_ext <<_ACEOF
44758 /* end confdefs.h.  */
44759 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44761 #define openlog innocuous_openlog
44762
44763 /* System header to define __stub macros and hopefully few prototypes,
44764     which can conflict with char openlog (); below.
44765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44766     <limits.h> exists even on freestanding compilers.  */
44767
44768 #ifdef __STDC__
44769 # include <limits.h>
44770 #else
44771 # include <assert.h>
44772 #endif
44773
44774 #undef openlog
44775
44776 /* Override any gcc2 internal prototype to avoid an error.  */
44777 #ifdef __cplusplus
44778 extern "C"
44779 {
44780 #endif
44781 /* We use char because int might match the return type of a gcc2
44782    builtin and then its argument prototype would still apply.  */
44783 char openlog ();
44784 /* The GNU C library defines this for functions which it implements
44785     to always fail with ENOSYS.  Some functions are actually named
44786     something starting with __ and the normal name is an alias.  */
44787 #if defined (__stub_openlog) || defined (__stub___openlog)
44788 choke me
44789 #else
44790 char (*f) () = openlog;
44791 #endif
44792 #ifdef __cplusplus
44793 }
44794 #endif
44795
44796 int
44797 main ()
44798 {
44799 return f != openlog;
44800   ;
44801   return 0;
44802 }
44803 _ACEOF
44804 rm -f conftest.$ac_objext conftest$ac_exeext
44805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44806   (eval $ac_link) 2>conftest.er1
44807   ac_status=$?
44808   grep -v '^ *+' conftest.er1 >conftest.err
44809   rm -f conftest.er1
44810   cat conftest.err >&5
44811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812   (exit $ac_status); } &&
44813          { ac_try='test -z "$ac_c_werror_flag"
44814                          || test ! -s conftest.err'
44815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44816   (eval $ac_try) 2>&5
44817   ac_status=$?
44818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44819   (exit $ac_status); }; } &&
44820          { ac_try='test -s conftest$ac_exeext'
44821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44822   (eval $ac_try) 2>&5
44823   ac_status=$?
44824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44825   (exit $ac_status); }; }; then
44826   ac_cv_func_openlog=yes
44827 else
44828   echo "$as_me: failed program was:" >&5
44829 sed 's/^/| /' conftest.$ac_ext >&5
44830
44831 ac_cv_func_openlog=no
44832 fi
44833 rm -f conftest.err conftest.$ac_objext \
44834       conftest$ac_exeext conftest.$ac_ext
44835 fi
44836 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44837 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44838
44839         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44840                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44841 echo "$as_me: error: could not find syslog" >&2;}
44842    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44843         fi
44844         ol_enable_syslog=$ac_cv_func_openlog
44845 fi
44846
44847 ol_link_sql=no
44848 if test $ol_enable_sql != no ; then
44849
44850
44851 for ac_header in sql.h sqlext.h
44852 do
44853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44855   echo "$as_me:$LINENO: checking for $ac_header" >&5
44856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44858   echo $ECHO_N "(cached) $ECHO_C" >&6
44859 fi
44860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44862 else
44863   # Is the header compilable?
44864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44866 cat >conftest.$ac_ext <<_ACEOF
44867 /* confdefs.h.  */
44868 _ACEOF
44869 cat confdefs.h >>conftest.$ac_ext
44870 cat >>conftest.$ac_ext <<_ACEOF
44871 /* end confdefs.h.  */
44872 $ac_includes_default
44873 #include <$ac_header>
44874 _ACEOF
44875 rm -f conftest.$ac_objext
44876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44877   (eval $ac_compile) 2>conftest.er1
44878   ac_status=$?
44879   grep -v '^ *+' conftest.er1 >conftest.err
44880   rm -f conftest.er1
44881   cat conftest.err >&5
44882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44883   (exit $ac_status); } &&
44884          { ac_try='test -z "$ac_c_werror_flag"
44885                          || test ! -s conftest.err'
44886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44887   (eval $ac_try) 2>&5
44888   ac_status=$?
44889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44890   (exit $ac_status); }; } &&
44891          { ac_try='test -s conftest.$ac_objext'
44892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44893   (eval $ac_try) 2>&5
44894   ac_status=$?
44895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44896   (exit $ac_status); }; }; then
44897   ac_header_compiler=yes
44898 else
44899   echo "$as_me: failed program was:" >&5
44900 sed 's/^/| /' conftest.$ac_ext >&5
44901
44902 ac_header_compiler=no
44903 fi
44904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44906 echo "${ECHO_T}$ac_header_compiler" >&6
44907
44908 # Is the header present?
44909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44911 cat >conftest.$ac_ext <<_ACEOF
44912 /* confdefs.h.  */
44913 _ACEOF
44914 cat confdefs.h >>conftest.$ac_ext
44915 cat >>conftest.$ac_ext <<_ACEOF
44916 /* end confdefs.h.  */
44917 #include <$ac_header>
44918 _ACEOF
44919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44921   ac_status=$?
44922   grep -v '^ *+' conftest.er1 >conftest.err
44923   rm -f conftest.er1
44924   cat conftest.err >&5
44925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926   (exit $ac_status); } >/dev/null; then
44927   if test -s conftest.err; then
44928     ac_cpp_err=$ac_c_preproc_warn_flag
44929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44930   else
44931     ac_cpp_err=
44932   fi
44933 else
44934   ac_cpp_err=yes
44935 fi
44936 if test -z "$ac_cpp_err"; then
44937   ac_header_preproc=yes
44938 else
44939   echo "$as_me: failed program was:" >&5
44940 sed 's/^/| /' conftest.$ac_ext >&5
44941
44942   ac_header_preproc=no
44943 fi
44944 rm -f conftest.err conftest.$ac_ext
44945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44946 echo "${ECHO_T}$ac_header_preproc" >&6
44947
44948 # So?  What about this header?
44949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44950   yes:no: )
44951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44955     ac_header_preproc=yes
44956     ;;
44957   no:yes:* )
44958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44970     (
44971       cat <<\_ASBOX
44972 ## ------------------------------------------ ##
44973 ## Report this to the AC_PACKAGE_NAME lists.  ##
44974 ## ------------------------------------------ ##
44975 _ASBOX
44976     ) |
44977       sed "s/^/$as_me: WARNING:     /" >&2
44978     ;;
44979 esac
44980 echo "$as_me:$LINENO: checking for $ac_header" >&5
44981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44983   echo $ECHO_N "(cached) $ECHO_C" >&6
44984 else
44985   eval "$as_ac_Header=\$ac_header_preproc"
44986 fi
44987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44989
44990 fi
44991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44992   cat >>confdefs.h <<_ACEOF
44993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44994 _ACEOF
44995
44996 else
44997
44998                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44999 echo "$as_me: error: could not locate SQL headers" >&2;}
45000    { (exit 1); exit 1; }; }
45001
45002 fi
45003
45004 done
45005
45006
45007         sql_LIBS="$LIBS"
45008         LIBS="$LTHREAD_LIBS"
45009
45010         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45011 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45012 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45013   echo $ECHO_N "(cached) $ECHO_C" >&6
45014 else
45015   ac_check_lib_save_LIBS=$LIBS
45016 LIBS="-liodbc  $LIBS"
45017 cat >conftest.$ac_ext <<_ACEOF
45018 /* confdefs.h.  */
45019 _ACEOF
45020 cat confdefs.h >>conftest.$ac_ext
45021 cat >>conftest.$ac_ext <<_ACEOF
45022 /* end confdefs.h.  */
45023
45024 /* Override any gcc2 internal prototype to avoid an error.  */
45025 #ifdef __cplusplus
45026 extern "C"
45027 #endif
45028 /* We use char because int might match the return type of a gcc2
45029    builtin and then its argument prototype would still apply.  */
45030 char SQLDriverConnect ();
45031 int
45032 main ()
45033 {
45034 SQLDriverConnect ();
45035   ;
45036   return 0;
45037 }
45038 _ACEOF
45039 rm -f conftest.$ac_objext conftest$ac_exeext
45040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45041   (eval $ac_link) 2>conftest.er1
45042   ac_status=$?
45043   grep -v '^ *+' conftest.er1 >conftest.err
45044   rm -f conftest.er1
45045   cat conftest.err >&5
45046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45047   (exit $ac_status); } &&
45048          { ac_try='test -z "$ac_c_werror_flag"
45049                          || test ! -s conftest.err'
45050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45051   (eval $ac_try) 2>&5
45052   ac_status=$?
45053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45054   (exit $ac_status); }; } &&
45055          { ac_try='test -s conftest$ac_exeext'
45056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45057   (eval $ac_try) 2>&5
45058   ac_status=$?
45059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45060   (exit $ac_status); }; }; then
45061   ac_cv_lib_iodbc_SQLDriverConnect=yes
45062 else
45063   echo "$as_me: failed program was:" >&5
45064 sed 's/^/| /' conftest.$ac_ext >&5
45065
45066 ac_cv_lib_iodbc_SQLDriverConnect=no
45067 fi
45068 rm -f conftest.err conftest.$ac_objext \
45069       conftest$ac_exeext conftest.$ac_ext
45070 LIBS=$ac_check_lib_save_LIBS
45071 fi
45072 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45073 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45074 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45075   have_iodbc=yes
45076 else
45077   have_iodbc=no
45078 fi
45079
45080         if test $have_iodbc = yes ; then
45081                 ol_link_sql="-liodbc"
45082         else
45083                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45084 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45085 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45086   echo $ECHO_N "(cached) $ECHO_C" >&6
45087 else
45088   ac_check_lib_save_LIBS=$LIBS
45089 LIBS="-lodbc  $LIBS"
45090 cat >conftest.$ac_ext <<_ACEOF
45091 /* confdefs.h.  */
45092 _ACEOF
45093 cat confdefs.h >>conftest.$ac_ext
45094 cat >>conftest.$ac_ext <<_ACEOF
45095 /* end confdefs.h.  */
45096
45097 /* Override any gcc2 internal prototype to avoid an error.  */
45098 #ifdef __cplusplus
45099 extern "C"
45100 #endif
45101 /* We use char because int might match the return type of a gcc2
45102    builtin and then its argument prototype would still apply.  */
45103 char SQLDriverConnect ();
45104 int
45105 main ()
45106 {
45107 SQLDriverConnect ();
45108   ;
45109   return 0;
45110 }
45111 _ACEOF
45112 rm -f conftest.$ac_objext conftest$ac_exeext
45113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45114   (eval $ac_link) 2>conftest.er1
45115   ac_status=$?
45116   grep -v '^ *+' conftest.er1 >conftest.err
45117   rm -f conftest.er1
45118   cat conftest.err >&5
45119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45120   (exit $ac_status); } &&
45121          { ac_try='test -z "$ac_c_werror_flag"
45122                          || test ! -s conftest.err'
45123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45124   (eval $ac_try) 2>&5
45125   ac_status=$?
45126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45127   (exit $ac_status); }; } &&
45128          { ac_try='test -s conftest$ac_exeext'
45129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45130   (eval $ac_try) 2>&5
45131   ac_status=$?
45132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45133   (exit $ac_status); }; }; then
45134   ac_cv_lib_odbc_SQLDriverConnect=yes
45135 else
45136   echo "$as_me: failed program was:" >&5
45137 sed 's/^/| /' conftest.$ac_ext >&5
45138
45139 ac_cv_lib_odbc_SQLDriverConnect=no
45140 fi
45141 rm -f conftest.err conftest.$ac_objext \
45142       conftest$ac_exeext conftest.$ac_ext
45143 LIBS=$ac_check_lib_save_LIBS
45144 fi
45145 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45146 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45147 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45148   have_odbc=yes
45149 else
45150   have_odbc=no
45151 fi
45152
45153                 if test $have_odbc = yes ; then
45154                         ol_link_sql="-lodbc"
45155                 fi
45156         fi
45157
45158         LIBS="$sql_LIBS"
45159
45160         if test $ol_link_sql != no ; then
45161                 SLAPD_SQL_LIBS="$ol_link_sql"
45162
45163         elif test $ol_enable_sql != auto ; then
45164                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45165 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45166    { (exit 1); exit 1; }; }
45167         fi
45168 fi
45169
45170 WITH_SASL=no
45171 ol_link_sasl=no
45172 ol_link_spasswd=no
45173 if test $ol_with_cyrus_sasl != no ; then
45174
45175
45176 for ac_header in sasl/sasl.h sasl.h
45177 do
45178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45180   echo "$as_me:$LINENO: checking for $ac_header" >&5
45181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45183   echo $ECHO_N "(cached) $ECHO_C" >&6
45184 fi
45185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45187 else
45188   # Is the header compilable?
45189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45191 cat >conftest.$ac_ext <<_ACEOF
45192 /* confdefs.h.  */
45193 _ACEOF
45194 cat confdefs.h >>conftest.$ac_ext
45195 cat >>conftest.$ac_ext <<_ACEOF
45196 /* end confdefs.h.  */
45197 $ac_includes_default
45198 #include <$ac_header>
45199 _ACEOF
45200 rm -f conftest.$ac_objext
45201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45202   (eval $ac_compile) 2>conftest.er1
45203   ac_status=$?
45204   grep -v '^ *+' conftest.er1 >conftest.err
45205   rm -f conftest.er1
45206   cat conftest.err >&5
45207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45208   (exit $ac_status); } &&
45209          { ac_try='test -z "$ac_c_werror_flag"
45210                          || test ! -s conftest.err'
45211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45212   (eval $ac_try) 2>&5
45213   ac_status=$?
45214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45215   (exit $ac_status); }; } &&
45216          { ac_try='test -s conftest.$ac_objext'
45217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45218   (eval $ac_try) 2>&5
45219   ac_status=$?
45220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45221   (exit $ac_status); }; }; then
45222   ac_header_compiler=yes
45223 else
45224   echo "$as_me: failed program was:" >&5
45225 sed 's/^/| /' conftest.$ac_ext >&5
45226
45227 ac_header_compiler=no
45228 fi
45229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45231 echo "${ECHO_T}$ac_header_compiler" >&6
45232
45233 # Is the header present?
45234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45236 cat >conftest.$ac_ext <<_ACEOF
45237 /* confdefs.h.  */
45238 _ACEOF
45239 cat confdefs.h >>conftest.$ac_ext
45240 cat >>conftest.$ac_ext <<_ACEOF
45241 /* end confdefs.h.  */
45242 #include <$ac_header>
45243 _ACEOF
45244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45246   ac_status=$?
45247   grep -v '^ *+' conftest.er1 >conftest.err
45248   rm -f conftest.er1
45249   cat conftest.err >&5
45250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45251   (exit $ac_status); } >/dev/null; then
45252   if test -s conftest.err; then
45253     ac_cpp_err=$ac_c_preproc_warn_flag
45254     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45255   else
45256     ac_cpp_err=
45257   fi
45258 else
45259   ac_cpp_err=yes
45260 fi
45261 if test -z "$ac_cpp_err"; then
45262   ac_header_preproc=yes
45263 else
45264   echo "$as_me: failed program was:" >&5
45265 sed 's/^/| /' conftest.$ac_ext >&5
45266
45267   ac_header_preproc=no
45268 fi
45269 rm -f conftest.err conftest.$ac_ext
45270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45271 echo "${ECHO_T}$ac_header_preproc" >&6
45272
45273 # So?  What about this header?
45274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45275   yes:no: )
45276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45280     ac_header_preproc=yes
45281     ;;
45282   no:yes:* )
45283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45295     (
45296       cat <<\_ASBOX
45297 ## ------------------------------------------ ##
45298 ## Report this to the AC_PACKAGE_NAME lists.  ##
45299 ## ------------------------------------------ ##
45300 _ASBOX
45301     ) |
45302       sed "s/^/$as_me: WARNING:     /" >&2
45303     ;;
45304 esac
45305 echo "$as_me:$LINENO: checking for $ac_header" >&5
45306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45308   echo $ECHO_N "(cached) $ECHO_C" >&6
45309 else
45310   eval "$as_ac_Header=\$ac_header_preproc"
45311 fi
45312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45314
45315 fi
45316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45317   cat >>confdefs.h <<_ACEOF
45318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45319 _ACEOF
45320
45321 fi
45322
45323 done
45324
45325
45326         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45327                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45328 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45329 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45330   echo $ECHO_N "(cached) $ECHO_C" >&6
45331 else
45332   ac_check_lib_save_LIBS=$LIBS
45333 LIBS="-lsasl2  $LIBS"
45334 cat >conftest.$ac_ext <<_ACEOF
45335 /* confdefs.h.  */
45336 _ACEOF
45337 cat confdefs.h >>conftest.$ac_ext
45338 cat >>conftest.$ac_ext <<_ACEOF
45339 /* end confdefs.h.  */
45340
45341 /* Override any gcc2 internal prototype to avoid an error.  */
45342 #ifdef __cplusplus
45343 extern "C"
45344 #endif
45345 /* We use char because int might match the return type of a gcc2
45346    builtin and then its argument prototype would still apply.  */
45347 char sasl_client_init ();
45348 int
45349 main ()
45350 {
45351 sasl_client_init ();
45352   ;
45353   return 0;
45354 }
45355 _ACEOF
45356 rm -f conftest.$ac_objext conftest$ac_exeext
45357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45358   (eval $ac_link) 2>conftest.er1
45359   ac_status=$?
45360   grep -v '^ *+' conftest.er1 >conftest.err
45361   rm -f conftest.er1
45362   cat conftest.err >&5
45363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45364   (exit $ac_status); } &&
45365          { ac_try='test -z "$ac_c_werror_flag"
45366                          || test ! -s conftest.err'
45367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45368   (eval $ac_try) 2>&5
45369   ac_status=$?
45370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45371   (exit $ac_status); }; } &&
45372          { ac_try='test -s conftest$ac_exeext'
45373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45374   (eval $ac_try) 2>&5
45375   ac_status=$?
45376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45377   (exit $ac_status); }; }; then
45378   ac_cv_lib_sasl2_sasl_client_init=yes
45379 else
45380   echo "$as_me: failed program was:" >&5
45381 sed 's/^/| /' conftest.$ac_ext >&5
45382
45383 ac_cv_lib_sasl2_sasl_client_init=no
45384 fi
45385 rm -f conftest.err conftest.$ac_objext \
45386       conftest$ac_exeext conftest.$ac_ext
45387 LIBS=$ac_check_lib_save_LIBS
45388 fi
45389 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45390 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45391 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45392   ol_link_sasl="-lsasl2"
45393 else
45394   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45395 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45396 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45397   echo $ECHO_N "(cached) $ECHO_C" >&6
45398 else
45399   ac_check_lib_save_LIBS=$LIBS
45400 LIBS="-lsasl  $LIBS"
45401 cat >conftest.$ac_ext <<_ACEOF
45402 /* confdefs.h.  */
45403 _ACEOF
45404 cat confdefs.h >>conftest.$ac_ext
45405 cat >>conftest.$ac_ext <<_ACEOF
45406 /* end confdefs.h.  */
45407
45408 /* Override any gcc2 internal prototype to avoid an error.  */
45409 #ifdef __cplusplus
45410 extern "C"
45411 #endif
45412 /* We use char because int might match the return type of a gcc2
45413    builtin and then its argument prototype would still apply.  */
45414 char sasl_client_init ();
45415 int
45416 main ()
45417 {
45418 sasl_client_init ();
45419   ;
45420   return 0;
45421 }
45422 _ACEOF
45423 rm -f conftest.$ac_objext conftest$ac_exeext
45424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45425   (eval $ac_link) 2>conftest.er1
45426   ac_status=$?
45427   grep -v '^ *+' conftest.er1 >conftest.err
45428   rm -f conftest.er1
45429   cat conftest.err >&5
45430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45431   (exit $ac_status); } &&
45432          { ac_try='test -z "$ac_c_werror_flag"
45433                          || test ! -s conftest.err'
45434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45435   (eval $ac_try) 2>&5
45436   ac_status=$?
45437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45438   (exit $ac_status); }; } &&
45439          { ac_try='test -s conftest$ac_exeext'
45440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45441   (eval $ac_try) 2>&5
45442   ac_status=$?
45443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45444   (exit $ac_status); }; }; then
45445   ac_cv_lib_sasl_sasl_client_init=yes
45446 else
45447   echo "$as_me: failed program was:" >&5
45448 sed 's/^/| /' conftest.$ac_ext >&5
45449
45450 ac_cv_lib_sasl_sasl_client_init=no
45451 fi
45452 rm -f conftest.err conftest.$ac_objext \
45453       conftest$ac_exeext conftest.$ac_ext
45454 LIBS=$ac_check_lib_save_LIBS
45455 fi
45456 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45457 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45458 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45459   ol_link_sasl="-lsasl"
45460 fi
45461
45462 fi
45463
45464         fi
45465
45466         if test $ol_link_sasl = no ; then
45467                 if test $ol_with_cyrus_sasl != auto ; then
45468                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45469 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45470    { (exit 1); exit 1; }; }
45471                 else
45472                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45473 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45474                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45475 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45476                         if test $ol_link_tls = no ; then
45477                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45478 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45479                         fi
45480                 fi
45481         else
45482                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45483 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45484 if test "${ol_cv_sasl_compat+set}" = set; then
45485   echo $ECHO_N "(cached) $ECHO_C" >&6
45486 else
45487
45488         cat >conftest.$ac_ext <<_ACEOF
45489 /* confdefs.h.  */
45490 _ACEOF
45491 cat confdefs.h >>conftest.$ac_ext
45492 cat >>conftest.$ac_ext <<_ACEOF
45493 /* end confdefs.h.  */
45494
45495 #ifdef HAVE_SASL_SASL_H
45496 #include <sasl/sasl.h>
45497 #else
45498 #include <sasl.h>
45499 #endif
45500
45501 /* Require 2.1.15+ */
45502 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45503         char *__sasl_compat = "2.2+ or better okay (we guess)";
45504 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45505         && SASL_VERSION_STEP >=15
45506         char *__sasl_compat = "2.1.15+ or better okay";
45507 #endif
45508
45509 _ACEOF
45510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45511   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45512   ol_cv_sasl_compat=yes
45513 else
45514   ol_cv_sasl_compat=no
45515 fi
45516 rm -f conftest*
45517
45518 fi
45519 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45520 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45521
45522                 if test $ol_cv_sasl_compat = no ; then
45523                         ol_link_sasl=no
45524                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45525 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45526    { (exit 1); exit 1; }; }
45527                 fi
45528
45529
45530 cat >>confdefs.h <<\_ACEOF
45531 #define HAVE_CYRUS_SASL 1
45532 _ACEOF
45533
45534                 SASL_LIBS="$ol_link_sasl"
45535                 if test $ol_enable_spasswd != no ; then
45536                         ol_link_spasswd=yes
45537                 fi
45538
45539                 ac_save_LIBS="$LIBS"
45540                 LIBS="$LIBS $ol_link_sasl"
45541                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45542 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45543 if test "${ac_cv_func_sasl_version+set}" = set; then
45544   echo $ECHO_N "(cached) $ECHO_C" >&6
45545 else
45546   cat >conftest.$ac_ext <<_ACEOF
45547 /* confdefs.h.  */
45548 _ACEOF
45549 cat confdefs.h >>conftest.$ac_ext
45550 cat >>conftest.$ac_ext <<_ACEOF
45551 /* end confdefs.h.  */
45552 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45554 #define sasl_version innocuous_sasl_version
45555
45556 /* System header to define __stub macros and hopefully few prototypes,
45557     which can conflict with char sasl_version (); below.
45558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45559     <limits.h> exists even on freestanding compilers.  */
45560
45561 #ifdef __STDC__
45562 # include <limits.h>
45563 #else
45564 # include <assert.h>
45565 #endif
45566
45567 #undef sasl_version
45568
45569 /* Override any gcc2 internal prototype to avoid an error.  */
45570 #ifdef __cplusplus
45571 extern "C"
45572 {
45573 #endif
45574 /* We use char because int might match the return type of a gcc2
45575    builtin and then its argument prototype would still apply.  */
45576 char sasl_version ();
45577 /* The GNU C library defines this for functions which it implements
45578     to always fail with ENOSYS.  Some functions are actually named
45579     something starting with __ and the normal name is an alias.  */
45580 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45581 choke me
45582 #else
45583 char (*f) () = sasl_version;
45584 #endif
45585 #ifdef __cplusplus
45586 }
45587 #endif
45588
45589 int
45590 main ()
45591 {
45592 return f != sasl_version;
45593   ;
45594   return 0;
45595 }
45596 _ACEOF
45597 rm -f conftest.$ac_objext conftest$ac_exeext
45598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45599   (eval $ac_link) 2>conftest.er1
45600   ac_status=$?
45601   grep -v '^ *+' conftest.er1 >conftest.err
45602   rm -f conftest.er1
45603   cat conftest.err >&5
45604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45605   (exit $ac_status); } &&
45606          { ac_try='test -z "$ac_c_werror_flag"
45607                          || test ! -s conftest.err'
45608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45609   (eval $ac_try) 2>&5
45610   ac_status=$?
45611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45612   (exit $ac_status); }; } &&
45613          { ac_try='test -s conftest$ac_exeext'
45614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45615   (eval $ac_try) 2>&5
45616   ac_status=$?
45617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45618   (exit $ac_status); }; }; then
45619   ac_cv_func_sasl_version=yes
45620 else
45621   echo "$as_me: failed program was:" >&5
45622 sed 's/^/| /' conftest.$ac_ext >&5
45623
45624 ac_cv_func_sasl_version=no
45625 fi
45626 rm -f conftest.err conftest.$ac_objext \
45627       conftest$ac_exeext conftest.$ac_ext
45628 fi
45629 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45630 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45631 if test $ac_cv_func_sasl_version = yes; then
45632
45633 cat >>confdefs.h <<\_ACEOF
45634 #define HAVE_SASL_VERSION 1
45635 _ACEOF
45636
45637 fi
45638
45639                 LIBS="$ac_save_LIBS"
45640
45641                 WITH_SASL=yes
45642         fi
45643
45644 else
45645         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45646 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45647         if test $ol_link_tls = no ; then
45648                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45649 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45650         fi
45651 fi
45652
45653 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45654         dev=no
45655         if test -r /dev/urandom ; then
45656                 dev="/dev/urandom";
45657         elif test -r /idev/urandom ; then
45658                 dev="/idev/urandom";
45659         elif test -r /dev/srandom ; then
45660                 dev="/dev/srandom";
45661         elif test -r /dev/random ; then
45662                 dev="/dev/random";
45663         elif test -r /idev/random ; then
45664                 dev="/idev/random";
45665         fi
45666
45667         if test $dev != no ; then
45668
45669 cat >>confdefs.h <<_ACEOF
45670 #define URANDOM_DEVICE "$dev"
45671 _ACEOF
45672
45673         fi
45674 fi
45675
45676 ol_link_fetch=no
45677 if test $ol_with_fetch != no ; then
45678         ol_LIBS=$LIBS
45679 LIBS="-lfetch -lcom_err $LIBS"
45680 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45681 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45682 if test "${ol_cv_lib_fetch+set}" = set; then
45683   echo $ECHO_N "(cached) $ECHO_C" >&6
45684 else
45685
45686         cat >conftest.$ac_ext <<_ACEOF
45687 /* confdefs.h.  */
45688 _ACEOF
45689 cat confdefs.h >>conftest.$ac_ext
45690 cat >>conftest.$ac_ext <<_ACEOF
45691 /* end confdefs.h.  */
45692
45693 #include <sys/param.h>
45694 #include <stdio.h>
45695 #include <fetch.h>
45696 int
45697 main ()
45698 {
45699 struct url *u = fetchParseURL("file:///");
45700   ;
45701   return 0;
45702 }
45703 _ACEOF
45704 rm -f conftest.$ac_objext conftest$ac_exeext
45705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45706   (eval $ac_link) 2>conftest.er1
45707   ac_status=$?
45708   grep -v '^ *+' conftest.er1 >conftest.err
45709   rm -f conftest.er1
45710   cat conftest.err >&5
45711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45712   (exit $ac_status); } &&
45713          { ac_try='test -z "$ac_c_werror_flag"
45714                          || test ! -s conftest.err'
45715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45716   (eval $ac_try) 2>&5
45717   ac_status=$?
45718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45719   (exit $ac_status); }; } &&
45720          { ac_try='test -s conftest$ac_exeext'
45721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45722   (eval $ac_try) 2>&5
45723   ac_status=$?
45724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45725   (exit $ac_status); }; }; then
45726   ol_cv_lib_fetch=yes
45727 else
45728   echo "$as_me: failed program was:" >&5
45729 sed 's/^/| /' conftest.$ac_ext >&5
45730
45731 ol_cv_lib_fetch=no
45732 fi
45733 rm -f conftest.err conftest.$ac_objext \
45734       conftest$ac_exeext conftest.$ac_ext
45735 fi
45736 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45737 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45738 LIBS=$ol_LIBS
45739 if test $ol_cv_lib_fetch != no ; then
45740         ol_link_fetch="-lfetch -lcom_err"
45741
45742 cat >>confdefs.h <<\_ACEOF
45743 #define HAVE_FETCH 1
45744 _ACEOF
45745
45746 fi
45747
45748
45749         if test $ol_cv_lib_fetch != no ; then
45750                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45751                 ol_link_fetch=freebsd
45752
45753         elif test $ol_with_fetch != auto ; then
45754                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45755 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45756    { (exit 1); exit 1; }; }
45757         fi
45758 fi
45759
45760 if test $ol_enable_crypt != no ; then
45761         save_LIBS="$LIBS"
45762         LIBS="$TLS_LIBS $LIBS"
45763
45764         echo "$as_me:$LINENO: checking for crypt" >&5
45765 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45766 if test "${ac_cv_func_crypt+set}" = set; then
45767   echo $ECHO_N "(cached) $ECHO_C" >&6
45768 else
45769   cat >conftest.$ac_ext <<_ACEOF
45770 /* confdefs.h.  */
45771 _ACEOF
45772 cat confdefs.h >>conftest.$ac_ext
45773 cat >>conftest.$ac_ext <<_ACEOF
45774 /* end confdefs.h.  */
45775 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45777 #define crypt innocuous_crypt
45778
45779 /* System header to define __stub macros and hopefully few prototypes,
45780     which can conflict with char crypt (); below.
45781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45782     <limits.h> exists even on freestanding compilers.  */
45783
45784 #ifdef __STDC__
45785 # include <limits.h>
45786 #else
45787 # include <assert.h>
45788 #endif
45789
45790 #undef crypt
45791
45792 /* Override any gcc2 internal prototype to avoid an error.  */
45793 #ifdef __cplusplus
45794 extern "C"
45795 {
45796 #endif
45797 /* We use char because int might match the return type of a gcc2
45798    builtin and then its argument prototype would still apply.  */
45799 char crypt ();
45800 /* The GNU C library defines this for functions which it implements
45801     to always fail with ENOSYS.  Some functions are actually named
45802     something starting with __ and the normal name is an alias.  */
45803 #if defined (__stub_crypt) || defined (__stub___crypt)
45804 choke me
45805 #else
45806 char (*f) () = crypt;
45807 #endif
45808 #ifdef __cplusplus
45809 }
45810 #endif
45811
45812 int
45813 main ()
45814 {
45815 return f != crypt;
45816   ;
45817   return 0;
45818 }
45819 _ACEOF
45820 rm -f conftest.$ac_objext conftest$ac_exeext
45821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45822   (eval $ac_link) 2>conftest.er1
45823   ac_status=$?
45824   grep -v '^ *+' conftest.er1 >conftest.err
45825   rm -f conftest.er1
45826   cat conftest.err >&5
45827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45828   (exit $ac_status); } &&
45829          { ac_try='test -z "$ac_c_werror_flag"
45830                          || test ! -s conftest.err'
45831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45832   (eval $ac_try) 2>&5
45833   ac_status=$?
45834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45835   (exit $ac_status); }; } &&
45836          { ac_try='test -s conftest$ac_exeext'
45837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45838   (eval $ac_try) 2>&5
45839   ac_status=$?
45840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45841   (exit $ac_status); }; }; then
45842   ac_cv_func_crypt=yes
45843 else
45844   echo "$as_me: failed program was:" >&5
45845 sed 's/^/| /' conftest.$ac_ext >&5
45846
45847 ac_cv_func_crypt=no
45848 fi
45849 rm -f conftest.err conftest.$ac_objext \
45850       conftest$ac_exeext conftest.$ac_ext
45851 fi
45852 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45853 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45854 if test $ac_cv_func_crypt = yes; then
45855   have_crypt=yes
45856 else
45857
45858                 LIBS="$save_LIBS"
45859                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45860 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45861 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45862   echo $ECHO_N "(cached) $ECHO_C" >&6
45863 else
45864   ac_check_lib_save_LIBS=$LIBS
45865 LIBS="-lcrypt  $LIBS"
45866 cat >conftest.$ac_ext <<_ACEOF
45867 /* confdefs.h.  */
45868 _ACEOF
45869 cat confdefs.h >>conftest.$ac_ext
45870 cat >>conftest.$ac_ext <<_ACEOF
45871 /* end confdefs.h.  */
45872
45873 /* Override any gcc2 internal prototype to avoid an error.  */
45874 #ifdef __cplusplus
45875 extern "C"
45876 #endif
45877 /* We use char because int might match the return type of a gcc2
45878    builtin and then its argument prototype would still apply.  */
45879 char crypt ();
45880 int
45881 main ()
45882 {
45883 crypt ();
45884   ;
45885   return 0;
45886 }
45887 _ACEOF
45888 rm -f conftest.$ac_objext conftest$ac_exeext
45889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45890   (eval $ac_link) 2>conftest.er1
45891   ac_status=$?
45892   grep -v '^ *+' conftest.er1 >conftest.err
45893   rm -f conftest.er1
45894   cat conftest.err >&5
45895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45896   (exit $ac_status); } &&
45897          { ac_try='test -z "$ac_c_werror_flag"
45898                          || test ! -s conftest.err'
45899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45900   (eval $ac_try) 2>&5
45901   ac_status=$?
45902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45903   (exit $ac_status); }; } &&
45904          { ac_try='test -s conftest$ac_exeext'
45905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45906   (eval $ac_try) 2>&5
45907   ac_status=$?
45908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45909   (exit $ac_status); }; }; then
45910   ac_cv_lib_crypt_crypt=yes
45911 else
45912   echo "$as_me: failed program was:" >&5
45913 sed 's/^/| /' conftest.$ac_ext >&5
45914
45915 ac_cv_lib_crypt_crypt=no
45916 fi
45917 rm -f conftest.err conftest.$ac_objext \
45918       conftest$ac_exeext conftest.$ac_ext
45919 LIBS=$ac_check_lib_save_LIBS
45920 fi
45921 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45922 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45923 if test $ac_cv_lib_crypt_crypt = yes; then
45924   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45925                         have_crypt=yes
45926 else
45927   have_crypt=no
45928 fi
45929
45930 fi
45931
45932
45933         LIBS="$save_LIBS"
45934
45935         if test $have_crypt = yes ; then
45936
45937 cat >>confdefs.h <<\_ACEOF
45938 #define HAVE_CRYPT 1
45939 _ACEOF
45940
45941         else
45942                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45943 echo "$as_me: WARNING: could not find crypt" >&2;}
45944                 if test $ol_enable_crypt = yes ; then
45945                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45946 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45947    { (exit 1); exit 1; }; }
45948                 fi
45949
45950                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45951 echo "$as_me: WARNING: disabling crypt support" >&2;}
45952                 ol_enable_crypt=no
45953         fi
45954 fi
45955
45956 if test $ol_enable_proctitle != no ; then
45957         echo "$as_me:$LINENO: checking for setproctitle" >&5
45958 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45959 if test "${ac_cv_func_setproctitle+set}" = set; then
45960   echo $ECHO_N "(cached) $ECHO_C" >&6
45961 else
45962   cat >conftest.$ac_ext <<_ACEOF
45963 /* confdefs.h.  */
45964 _ACEOF
45965 cat confdefs.h >>conftest.$ac_ext
45966 cat >>conftest.$ac_ext <<_ACEOF
45967 /* end confdefs.h.  */
45968 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45970 #define setproctitle innocuous_setproctitle
45971
45972 /* System header to define __stub macros and hopefully few prototypes,
45973     which can conflict with char setproctitle (); below.
45974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45975     <limits.h> exists even on freestanding compilers.  */
45976
45977 #ifdef __STDC__
45978 # include <limits.h>
45979 #else
45980 # include <assert.h>
45981 #endif
45982
45983 #undef setproctitle
45984
45985 /* Override any gcc2 internal prototype to avoid an error.  */
45986 #ifdef __cplusplus
45987 extern "C"
45988 {
45989 #endif
45990 /* We use char because int might match the return type of a gcc2
45991    builtin and then its argument prototype would still apply.  */
45992 char setproctitle ();
45993 /* The GNU C library defines this for functions which it implements
45994     to always fail with ENOSYS.  Some functions are actually named
45995     something starting with __ and the normal name is an alias.  */
45996 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45997 choke me
45998 #else
45999 char (*f) () = setproctitle;
46000 #endif
46001 #ifdef __cplusplus
46002 }
46003 #endif
46004
46005 int
46006 main ()
46007 {
46008 return f != setproctitle;
46009   ;
46010   return 0;
46011 }
46012 _ACEOF
46013 rm -f conftest.$ac_objext conftest$ac_exeext
46014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46015   (eval $ac_link) 2>conftest.er1
46016   ac_status=$?
46017   grep -v '^ *+' conftest.er1 >conftest.err
46018   rm -f conftest.er1
46019   cat conftest.err >&5
46020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46021   (exit $ac_status); } &&
46022          { ac_try='test -z "$ac_c_werror_flag"
46023                          || test ! -s conftest.err'
46024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46025   (eval $ac_try) 2>&5
46026   ac_status=$?
46027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46028   (exit $ac_status); }; } &&
46029          { ac_try='test -s conftest$ac_exeext'
46030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46031   (eval $ac_try) 2>&5
46032   ac_status=$?
46033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46034   (exit $ac_status); }; }; then
46035   ac_cv_func_setproctitle=yes
46036 else
46037   echo "$as_me: failed program was:" >&5
46038 sed 's/^/| /' conftest.$ac_ext >&5
46039
46040 ac_cv_func_setproctitle=no
46041 fi
46042 rm -f conftest.err conftest.$ac_objext \
46043       conftest$ac_exeext conftest.$ac_ext
46044 fi
46045 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46046 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46047 if test $ac_cv_func_setproctitle = yes; then
46048   have_setproctitle=yes
46049 else
46050
46051                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46052 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46053 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46054   echo $ECHO_N "(cached) $ECHO_C" >&6
46055 else
46056   ac_check_lib_save_LIBS=$LIBS
46057 LIBS="-lutil  $LIBS"
46058 cat >conftest.$ac_ext <<_ACEOF
46059 /* confdefs.h.  */
46060 _ACEOF
46061 cat confdefs.h >>conftest.$ac_ext
46062 cat >>conftest.$ac_ext <<_ACEOF
46063 /* end confdefs.h.  */
46064
46065 /* Override any gcc2 internal prototype to avoid an error.  */
46066 #ifdef __cplusplus
46067 extern "C"
46068 #endif
46069 /* We use char because int might match the return type of a gcc2
46070    builtin and then its argument prototype would still apply.  */
46071 char setproctitle ();
46072 int
46073 main ()
46074 {
46075 setproctitle ();
46076   ;
46077   return 0;
46078 }
46079 _ACEOF
46080 rm -f conftest.$ac_objext conftest$ac_exeext
46081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46082   (eval $ac_link) 2>conftest.er1
46083   ac_status=$?
46084   grep -v '^ *+' conftest.er1 >conftest.err
46085   rm -f conftest.er1
46086   cat conftest.err >&5
46087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46088   (exit $ac_status); } &&
46089          { ac_try='test -z "$ac_c_werror_flag"
46090                          || test ! -s conftest.err'
46091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46092   (eval $ac_try) 2>&5
46093   ac_status=$?
46094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46095   (exit $ac_status); }; } &&
46096          { ac_try='test -s conftest$ac_exeext'
46097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46098   (eval $ac_try) 2>&5
46099   ac_status=$?
46100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46101   (exit $ac_status); }; }; then
46102   ac_cv_lib_util_setproctitle=yes
46103 else
46104   echo "$as_me: failed program was:" >&5
46105 sed 's/^/| /' conftest.$ac_ext >&5
46106
46107 ac_cv_lib_util_setproctitle=no
46108 fi
46109 rm -f conftest.err conftest.$ac_objext \
46110       conftest$ac_exeext conftest.$ac_ext
46111 LIBS=$ac_check_lib_save_LIBS
46112 fi
46113 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46114 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46115 if test $ac_cv_lib_util_setproctitle = yes; then
46116   have_setproctitle=yes
46117                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46118 else
46119   have_setproctitle=no
46120                         case $LIBOBJS in
46121     "setproctitle.$ac_objext"   | \
46122   *" setproctitle.$ac_objext"   | \
46123     "setproctitle.$ac_objext "* | \
46124   *" setproctitle.$ac_objext "* ) ;;
46125   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46126 esac
46127
46128                         LIBSRCS="$LIBSRCS setproctitle.c"
46129 fi
46130
46131 fi
46132
46133
46134         if test $have_setproctitle = yes ; then
46135
46136 cat >>confdefs.h <<\_ACEOF
46137 #define HAVE_SETPROCTITLE 1
46138 _ACEOF
46139
46140         fi
46141 fi
46142
46143 if test $ol_enable_slp != no ; then
46144
46145 for ac_header in slp.h
46146 do
46147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46149   echo "$as_me:$LINENO: checking for $ac_header" >&5
46150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46152   echo $ECHO_N "(cached) $ECHO_C" >&6
46153 fi
46154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46156 else
46157   # Is the header compilable?
46158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46160 cat >conftest.$ac_ext <<_ACEOF
46161 /* confdefs.h.  */
46162 _ACEOF
46163 cat confdefs.h >>conftest.$ac_ext
46164 cat >>conftest.$ac_ext <<_ACEOF
46165 /* end confdefs.h.  */
46166 $ac_includes_default
46167 #include <$ac_header>
46168 _ACEOF
46169 rm -f conftest.$ac_objext
46170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46171   (eval $ac_compile) 2>conftest.er1
46172   ac_status=$?
46173   grep -v '^ *+' conftest.er1 >conftest.err
46174   rm -f conftest.er1
46175   cat conftest.err >&5
46176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46177   (exit $ac_status); } &&
46178          { ac_try='test -z "$ac_c_werror_flag"
46179                          || test ! -s conftest.err'
46180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46181   (eval $ac_try) 2>&5
46182   ac_status=$?
46183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46184   (exit $ac_status); }; } &&
46185          { ac_try='test -s conftest.$ac_objext'
46186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46187   (eval $ac_try) 2>&5
46188   ac_status=$?
46189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190   (exit $ac_status); }; }; then
46191   ac_header_compiler=yes
46192 else
46193   echo "$as_me: failed program was:" >&5
46194 sed 's/^/| /' conftest.$ac_ext >&5
46195
46196 ac_header_compiler=no
46197 fi
46198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46200 echo "${ECHO_T}$ac_header_compiler" >&6
46201
46202 # Is the header present?
46203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46205 cat >conftest.$ac_ext <<_ACEOF
46206 /* confdefs.h.  */
46207 _ACEOF
46208 cat confdefs.h >>conftest.$ac_ext
46209 cat >>conftest.$ac_ext <<_ACEOF
46210 /* end confdefs.h.  */
46211 #include <$ac_header>
46212 _ACEOF
46213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46215   ac_status=$?
46216   grep -v '^ *+' conftest.er1 >conftest.err
46217   rm -f conftest.er1
46218   cat conftest.err >&5
46219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46220   (exit $ac_status); } >/dev/null; then
46221   if test -s conftest.err; then
46222     ac_cpp_err=$ac_c_preproc_warn_flag
46223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46224   else
46225     ac_cpp_err=
46226   fi
46227 else
46228   ac_cpp_err=yes
46229 fi
46230 if test -z "$ac_cpp_err"; then
46231   ac_header_preproc=yes
46232 else
46233   echo "$as_me: failed program was:" >&5
46234 sed 's/^/| /' conftest.$ac_ext >&5
46235
46236   ac_header_preproc=no
46237 fi
46238 rm -f conftest.err conftest.$ac_ext
46239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46240 echo "${ECHO_T}$ac_header_preproc" >&6
46241
46242 # So?  What about this header?
46243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46244   yes:no: )
46245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46249     ac_header_preproc=yes
46250     ;;
46251   no:yes:* )
46252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46264     (
46265       cat <<\_ASBOX
46266 ## ------------------------------------------ ##
46267 ## Report this to the AC_PACKAGE_NAME lists.  ##
46268 ## ------------------------------------------ ##
46269 _ASBOX
46270     ) |
46271       sed "s/^/$as_me: WARNING:     /" >&2
46272     ;;
46273 esac
46274 echo "$as_me:$LINENO: checking for $ac_header" >&5
46275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46277   echo $ECHO_N "(cached) $ECHO_C" >&6
46278 else
46279   eval "$as_ac_Header=\$ac_header_preproc"
46280 fi
46281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46283
46284 fi
46285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46286   cat >>confdefs.h <<_ACEOF
46287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46288 _ACEOF
46289
46290 fi
46291
46292 done
46293
46294
46295         if test $ac_cv_header_slp_h = yes ; then
46296                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46297 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46298 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46299   echo $ECHO_N "(cached) $ECHO_C" >&6
46300 else
46301   ac_check_lib_save_LIBS=$LIBS
46302 LIBS="-lslp  $LIBS"
46303 cat >conftest.$ac_ext <<_ACEOF
46304 /* confdefs.h.  */
46305 _ACEOF
46306 cat confdefs.h >>conftest.$ac_ext
46307 cat >>conftest.$ac_ext <<_ACEOF
46308 /* end confdefs.h.  */
46309
46310 /* Override any gcc2 internal prototype to avoid an error.  */
46311 #ifdef __cplusplus
46312 extern "C"
46313 #endif
46314 /* We use char because int might match the return type of a gcc2
46315    builtin and then its argument prototype would still apply.  */
46316 char SLPOpen ();
46317 int
46318 main ()
46319 {
46320 SLPOpen ();
46321   ;
46322   return 0;
46323 }
46324 _ACEOF
46325 rm -f conftest.$ac_objext conftest$ac_exeext
46326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46327   (eval $ac_link) 2>conftest.er1
46328   ac_status=$?
46329   grep -v '^ *+' conftest.er1 >conftest.err
46330   rm -f conftest.er1
46331   cat conftest.err >&5
46332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46333   (exit $ac_status); } &&
46334          { ac_try='test -z "$ac_c_werror_flag"
46335                          || test ! -s conftest.err'
46336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46337   (eval $ac_try) 2>&5
46338   ac_status=$?
46339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340   (exit $ac_status); }; } &&
46341          { ac_try='test -s conftest$ac_exeext'
46342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46343   (eval $ac_try) 2>&5
46344   ac_status=$?
46345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46346   (exit $ac_status); }; }; then
46347   ac_cv_lib_slp_SLPOpen=yes
46348 else
46349   echo "$as_me: failed program was:" >&5
46350 sed 's/^/| /' conftest.$ac_ext >&5
46351
46352 ac_cv_lib_slp_SLPOpen=no
46353 fi
46354 rm -f conftest.err conftest.$ac_objext \
46355       conftest$ac_exeext conftest.$ac_ext
46356 LIBS=$ac_check_lib_save_LIBS
46357 fi
46358 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46359 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46360 if test $ac_cv_lib_slp_SLPOpen = yes; then
46361   have_slp=yes
46362 else
46363   have_slp=no
46364 fi
46365
46366                 if test $have_slp = yes ; then
46367
46368 cat >>confdefs.h <<\_ACEOF
46369 #define HAVE_SLP 1
46370 _ACEOF
46371
46372                         SLAPD_SLP_LIBS=-lslp
46373                 fi
46374
46375         elif test $ol_enable_slp = yes ; then
46376                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46377 echo "$as_me: error: SLP not found" >&2;}
46378    { (exit 1); exit 1; }; }
46379         fi
46380 fi
46381
46382 if test "$ol_with_multiple_precision" != "no" ; then
46383         ol_have_bignum=no
46384         ol_have_gmp=no
46385
46386
46387
46388 for ac_header in openssl/bn.h bn.h
46389 do
46390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46392   echo "$as_me:$LINENO: checking for $ac_header" >&5
46393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46395   echo $ECHO_N "(cached) $ECHO_C" >&6
46396 fi
46397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46399 else
46400   # Is the header compilable?
46401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46403 cat >conftest.$ac_ext <<_ACEOF
46404 /* confdefs.h.  */
46405 _ACEOF
46406 cat confdefs.h >>conftest.$ac_ext
46407 cat >>conftest.$ac_ext <<_ACEOF
46408 /* end confdefs.h.  */
46409 $ac_includes_default
46410 #include <$ac_header>
46411 _ACEOF
46412 rm -f conftest.$ac_objext
46413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46414   (eval $ac_compile) 2>conftest.er1
46415   ac_status=$?
46416   grep -v '^ *+' conftest.er1 >conftest.err
46417   rm -f conftest.er1
46418   cat conftest.err >&5
46419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46420   (exit $ac_status); } &&
46421          { ac_try='test -z "$ac_c_werror_flag"
46422                          || test ! -s conftest.err'
46423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46424   (eval $ac_try) 2>&5
46425   ac_status=$?
46426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46427   (exit $ac_status); }; } &&
46428          { ac_try='test -s conftest.$ac_objext'
46429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46430   (eval $ac_try) 2>&5
46431   ac_status=$?
46432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46433   (exit $ac_status); }; }; then
46434   ac_header_compiler=yes
46435 else
46436   echo "$as_me: failed program was:" >&5
46437 sed 's/^/| /' conftest.$ac_ext >&5
46438
46439 ac_header_compiler=no
46440 fi
46441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46443 echo "${ECHO_T}$ac_header_compiler" >&6
46444
46445 # Is the header present?
46446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46448 cat >conftest.$ac_ext <<_ACEOF
46449 /* confdefs.h.  */
46450 _ACEOF
46451 cat confdefs.h >>conftest.$ac_ext
46452 cat >>conftest.$ac_ext <<_ACEOF
46453 /* end confdefs.h.  */
46454 #include <$ac_header>
46455 _ACEOF
46456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46458   ac_status=$?
46459   grep -v '^ *+' conftest.er1 >conftest.err
46460   rm -f conftest.er1
46461   cat conftest.err >&5
46462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46463   (exit $ac_status); } >/dev/null; then
46464   if test -s conftest.err; then
46465     ac_cpp_err=$ac_c_preproc_warn_flag
46466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46467   else
46468     ac_cpp_err=
46469   fi
46470 else
46471   ac_cpp_err=yes
46472 fi
46473 if test -z "$ac_cpp_err"; then
46474   ac_header_preproc=yes
46475 else
46476   echo "$as_me: failed program was:" >&5
46477 sed 's/^/| /' conftest.$ac_ext >&5
46478
46479   ac_header_preproc=no
46480 fi
46481 rm -f conftest.err conftest.$ac_ext
46482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46483 echo "${ECHO_T}$ac_header_preproc" >&6
46484
46485 # So?  What about this header?
46486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46487   yes:no: )
46488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46492     ac_header_preproc=yes
46493     ;;
46494   no:yes:* )
46495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46507     (
46508       cat <<\_ASBOX
46509 ## ------------------------------------------ ##
46510 ## Report this to the AC_PACKAGE_NAME lists.  ##
46511 ## ------------------------------------------ ##
46512 _ASBOX
46513     ) |
46514       sed "s/^/$as_me: WARNING:     /" >&2
46515     ;;
46516 esac
46517 echo "$as_me:$LINENO: checking for $ac_header" >&5
46518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46520   echo $ECHO_N "(cached) $ECHO_C" >&6
46521 else
46522   eval "$as_ac_Header=\$ac_header_preproc"
46523 fi
46524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46526
46527 fi
46528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46529   cat >>confdefs.h <<_ACEOF
46530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46531 _ACEOF
46532
46533 fi
46534
46535 done
46536
46537
46538
46539 for ac_header in openssl/crypto.h crypto.h
46540 do
46541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46543   echo "$as_me:$LINENO: checking for $ac_header" >&5
46544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46546   echo $ECHO_N "(cached) $ECHO_C" >&6
46547 fi
46548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46550 else
46551   # Is the header compilable?
46552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46554 cat >conftest.$ac_ext <<_ACEOF
46555 /* confdefs.h.  */
46556 _ACEOF
46557 cat confdefs.h >>conftest.$ac_ext
46558 cat >>conftest.$ac_ext <<_ACEOF
46559 /* end confdefs.h.  */
46560 $ac_includes_default
46561 #include <$ac_header>
46562 _ACEOF
46563 rm -f conftest.$ac_objext
46564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46565   (eval $ac_compile) 2>conftest.er1
46566   ac_status=$?
46567   grep -v '^ *+' conftest.er1 >conftest.err
46568   rm -f conftest.er1
46569   cat conftest.err >&5
46570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46571   (exit $ac_status); } &&
46572          { ac_try='test -z "$ac_c_werror_flag"
46573                          || test ! -s conftest.err'
46574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46575   (eval $ac_try) 2>&5
46576   ac_status=$?
46577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46578   (exit $ac_status); }; } &&
46579          { ac_try='test -s conftest.$ac_objext'
46580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46581   (eval $ac_try) 2>&5
46582   ac_status=$?
46583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46584   (exit $ac_status); }; }; then
46585   ac_header_compiler=yes
46586 else
46587   echo "$as_me: failed program was:" >&5
46588 sed 's/^/| /' conftest.$ac_ext >&5
46589
46590 ac_header_compiler=no
46591 fi
46592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46594 echo "${ECHO_T}$ac_header_compiler" >&6
46595
46596 # Is the header present?
46597 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46599 cat >conftest.$ac_ext <<_ACEOF
46600 /* confdefs.h.  */
46601 _ACEOF
46602 cat confdefs.h >>conftest.$ac_ext
46603 cat >>conftest.$ac_ext <<_ACEOF
46604 /* end confdefs.h.  */
46605 #include <$ac_header>
46606 _ACEOF
46607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46609   ac_status=$?
46610   grep -v '^ *+' conftest.er1 >conftest.err
46611   rm -f conftest.er1
46612   cat conftest.err >&5
46613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46614   (exit $ac_status); } >/dev/null; then
46615   if test -s conftest.err; then
46616     ac_cpp_err=$ac_c_preproc_warn_flag
46617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46618   else
46619     ac_cpp_err=
46620   fi
46621 else
46622   ac_cpp_err=yes
46623 fi
46624 if test -z "$ac_cpp_err"; then
46625   ac_header_preproc=yes
46626 else
46627   echo "$as_me: failed program was:" >&5
46628 sed 's/^/| /' conftest.$ac_ext >&5
46629
46630   ac_header_preproc=no
46631 fi
46632 rm -f conftest.err conftest.$ac_ext
46633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46634 echo "${ECHO_T}$ac_header_preproc" >&6
46635
46636 # So?  What about this header?
46637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46638   yes:no: )
46639     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46643     ac_header_preproc=yes
46644     ;;
46645   no:yes:* )
46646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46648     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46649 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46650     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46652     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46653 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46656     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46658     (
46659       cat <<\_ASBOX
46660 ## ------------------------------------------ ##
46661 ## Report this to the AC_PACKAGE_NAME lists.  ##
46662 ## ------------------------------------------ ##
46663 _ASBOX
46664     ) |
46665       sed "s/^/$as_me: WARNING:     /" >&2
46666     ;;
46667 esac
46668 echo "$as_me:$LINENO: checking for $ac_header" >&5
46669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46671   echo $ECHO_N "(cached) $ECHO_C" >&6
46672 else
46673   eval "$as_ac_Header=\$ac_header_preproc"
46674 fi
46675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46677
46678 fi
46679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46680   cat >>confdefs.h <<_ACEOF
46681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46682 _ACEOF
46683
46684 fi
46685
46686 done
46687
46688
46689 for ac_header in gmp.h
46690 do
46691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46693   echo "$as_me:$LINENO: checking for $ac_header" >&5
46694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46696   echo $ECHO_N "(cached) $ECHO_C" >&6
46697 fi
46698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46700 else
46701   # Is the header compilable?
46702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46704 cat >conftest.$ac_ext <<_ACEOF
46705 /* confdefs.h.  */
46706 _ACEOF
46707 cat confdefs.h >>conftest.$ac_ext
46708 cat >>conftest.$ac_ext <<_ACEOF
46709 /* end confdefs.h.  */
46710 $ac_includes_default
46711 #include <$ac_header>
46712 _ACEOF
46713 rm -f conftest.$ac_objext
46714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46715   (eval $ac_compile) 2>conftest.er1
46716   ac_status=$?
46717   grep -v '^ *+' conftest.er1 >conftest.err
46718   rm -f conftest.er1
46719   cat conftest.err >&5
46720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46721   (exit $ac_status); } &&
46722          { ac_try='test -z "$ac_c_werror_flag"
46723                          || test ! -s conftest.err'
46724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46725   (eval $ac_try) 2>&5
46726   ac_status=$?
46727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46728   (exit $ac_status); }; } &&
46729          { ac_try='test -s conftest.$ac_objext'
46730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46731   (eval $ac_try) 2>&5
46732   ac_status=$?
46733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46734   (exit $ac_status); }; }; then
46735   ac_header_compiler=yes
46736 else
46737   echo "$as_me: failed program was:" >&5
46738 sed 's/^/| /' conftest.$ac_ext >&5
46739
46740 ac_header_compiler=no
46741 fi
46742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46744 echo "${ECHO_T}$ac_header_compiler" >&6
46745
46746 # Is the header present?
46747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46749 cat >conftest.$ac_ext <<_ACEOF
46750 /* confdefs.h.  */
46751 _ACEOF
46752 cat confdefs.h >>conftest.$ac_ext
46753 cat >>conftest.$ac_ext <<_ACEOF
46754 /* end confdefs.h.  */
46755 #include <$ac_header>
46756 _ACEOF
46757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46758   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46759   ac_status=$?
46760   grep -v '^ *+' conftest.er1 >conftest.err
46761   rm -f conftest.er1
46762   cat conftest.err >&5
46763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46764   (exit $ac_status); } >/dev/null; then
46765   if test -s conftest.err; then
46766     ac_cpp_err=$ac_c_preproc_warn_flag
46767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46768   else
46769     ac_cpp_err=
46770   fi
46771 else
46772   ac_cpp_err=yes
46773 fi
46774 if test -z "$ac_cpp_err"; then
46775   ac_header_preproc=yes
46776 else
46777   echo "$as_me: failed program was:" >&5
46778 sed 's/^/| /' conftest.$ac_ext >&5
46779
46780   ac_header_preproc=no
46781 fi
46782 rm -f conftest.err conftest.$ac_ext
46783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46784 echo "${ECHO_T}$ac_header_preproc" >&6
46785
46786 # So?  What about this header?
46787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46788   yes:no: )
46789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46793     ac_header_preproc=yes
46794     ;;
46795   no:yes:* )
46796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46808     (
46809       cat <<\_ASBOX
46810 ## ------------------------------------------ ##
46811 ## Report this to the AC_PACKAGE_NAME lists.  ##
46812 ## ------------------------------------------ ##
46813 _ASBOX
46814     ) |
46815       sed "s/^/$as_me: WARNING:     /" >&2
46816     ;;
46817 esac
46818 echo "$as_me:$LINENO: checking for $ac_header" >&5
46819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46821   echo $ECHO_N "(cached) $ECHO_C" >&6
46822 else
46823   eval "$as_ac_Header=\$ac_header_preproc"
46824 fi
46825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46827
46828 fi
46829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46830   cat >>confdefs.h <<_ACEOF
46831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46832 _ACEOF
46833
46834 fi
46835
46836 done
46837
46838
46839         if test "$ol_with_tls" = "found" ; then
46840                 ol_have_bn_h=no
46841                 ol_have_crypto_h=no
46842
46843                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46844                                 -o "$ac_cv_header_bn_h" = "yes" ; then
46845                         ol_have_bn_h=yes
46846                 fi
46847
46848                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46849                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
46850                         ol_have_crypto_h=yes
46851                 fi
46852
46853                 if test "$ol_have_bn_h" = "yes" \
46854                                 -a "$ol_have_crypto_h" = "yes" ; then
46855                         ol_have_bignum=yes
46856                 fi
46857         fi
46858
46859         if test $ac_cv_header_gmp_h = yes ; then
46860                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46861 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46862 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46863   echo $ECHO_N "(cached) $ECHO_C" >&6
46864 else
46865   ac_check_lib_save_LIBS=$LIBS
46866 LIBS="-lgmp  $LIBS"
46867 cat >conftest.$ac_ext <<_ACEOF
46868 /* confdefs.h.  */
46869 _ACEOF
46870 cat confdefs.h >>conftest.$ac_ext
46871 cat >>conftest.$ac_ext <<_ACEOF
46872 /* end confdefs.h.  */
46873
46874 /* Override any gcc2 internal prototype to avoid an error.  */
46875 #ifdef __cplusplus
46876 extern "C"
46877 #endif
46878 /* We use char because int might match the return type of a gcc2
46879    builtin and then its argument prototype would still apply.  */
46880 char __gmpz_add_ui ();
46881 int
46882 main ()
46883 {
46884 __gmpz_add_ui ();
46885   ;
46886   return 0;
46887 }
46888 _ACEOF
46889 rm -f conftest.$ac_objext conftest$ac_exeext
46890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46891   (eval $ac_link) 2>conftest.er1
46892   ac_status=$?
46893   grep -v '^ *+' conftest.er1 >conftest.err
46894   rm -f conftest.er1
46895   cat conftest.err >&5
46896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46897   (exit $ac_status); } &&
46898          { ac_try='test -z "$ac_c_werror_flag"
46899                          || test ! -s conftest.err'
46900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46901   (eval $ac_try) 2>&5
46902   ac_status=$?
46903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46904   (exit $ac_status); }; } &&
46905          { ac_try='test -s conftest$ac_exeext'
46906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46907   (eval $ac_try) 2>&5
46908   ac_status=$?
46909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46910   (exit $ac_status); }; }; then
46911   ac_cv_lib_gmp___gmpz_add_ui=yes
46912 else
46913   echo "$as_me: failed program was:" >&5
46914 sed 's/^/| /' conftest.$ac_ext >&5
46915
46916 ac_cv_lib_gmp___gmpz_add_ui=no
46917 fi
46918 rm -f conftest.err conftest.$ac_objext \
46919       conftest$ac_exeext conftest.$ac_ext
46920 LIBS=$ac_check_lib_save_LIBS
46921 fi
46922 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46923 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46924 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46925   have_gmp=yes
46926 else
46927   have_gmp=no
46928 fi
46929
46930                 if test $have_gmp = yes ; then
46931                         ol_have_gmp=yes
46932                 fi
46933         fi
46934
46935         echo "$as_me:$LINENO: checking for multiple precision support" >&5
46936 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46937
46938         ol_mp_support="none"
46939         case "$ol_with_multiple_precision" in
46940         auto)
46941                                                                                 if test "$ol_have_bignum" = "yes" ; then
46942                         ol_mp_support="bignum"
46943                 else
46944                         if test "$ol_have_gmp" = "yes" ; then
46945                                 ol_mp_support="gmp"
46946                         fi
46947                 fi
46948                 ;;
46949         bignum)
46950                 if test "$ol_have_bignum" != "yes" ; then
46951                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46952 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46953    { (exit 1); exit 1; }; }
46954                 fi
46955                 ol_mp_support="bignum"
46956                 ;;
46957         gmp)
46958                 if test "$ol_have_gmp" != "yes" ; then
46959                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
46960 echo "$as_me: error: GMP not available" >&2;}
46961    { (exit 1); exit 1; }; }
46962                 fi
46963                 ol_mp_support="gmp"
46964                 ;;
46965         yes)
46966                 if test "$ol_have_bignum" = "yes" ; then
46967                         ol_mp_support="bignum"
46968                 elif test "$ol_have_gmp" = "yes" ; then
46969                         ol_mp_support="gmp"
46970                 else
46971                         { { echo "$as_me:$LINENO: error: not available" >&5
46972 echo "$as_me: error: not available" >&2;}
46973    { (exit 1); exit 1; }; }
46974                 fi
46975                 ;;
46976         esac
46977
46978         case "$ol_mp_support" in
46979         bignum)
46980
46981 cat >>confdefs.h <<\_ACEOF
46982 #define HAVE_BIGNUM 1
46983 _ACEOF
46984
46985                 ;;
46986         gmp)
46987
46988 cat >>confdefs.h <<\_ACEOF
46989 #define HAVE_GMP 1
46990 _ACEOF
46991
46992                 SLAPD_GMP_LIBS=-lgmp
46993                 ;;
46994         none)
46995                 ;;
46996         esac
46997
46998         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46999 echo "${ECHO_T}$ol_mp_support" >&6
47000 fi
47001
47002
47003 echo "$as_me:$LINENO: checking for mode_t" >&5
47004 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47005 if test "${ac_cv_type_mode_t+set}" = set; then
47006   echo $ECHO_N "(cached) $ECHO_C" >&6
47007 else
47008   cat >conftest.$ac_ext <<_ACEOF
47009 /* confdefs.h.  */
47010 _ACEOF
47011 cat confdefs.h >>conftest.$ac_ext
47012 cat >>conftest.$ac_ext <<_ACEOF
47013 /* end confdefs.h.  */
47014 $ac_includes_default
47015 int
47016 main ()
47017 {
47018 if ((mode_t *) 0)
47019   return 0;
47020 if (sizeof (mode_t))
47021   return 0;
47022   ;
47023   return 0;
47024 }
47025 _ACEOF
47026 rm -f conftest.$ac_objext
47027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47028   (eval $ac_compile) 2>conftest.er1
47029   ac_status=$?
47030   grep -v '^ *+' conftest.er1 >conftest.err
47031   rm -f conftest.er1
47032   cat conftest.err >&5
47033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47034   (exit $ac_status); } &&
47035          { ac_try='test -z "$ac_c_werror_flag"
47036                          || test ! -s conftest.err'
47037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47038   (eval $ac_try) 2>&5
47039   ac_status=$?
47040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47041   (exit $ac_status); }; } &&
47042          { ac_try='test -s conftest.$ac_objext'
47043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47044   (eval $ac_try) 2>&5
47045   ac_status=$?
47046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47047   (exit $ac_status); }; }; then
47048   ac_cv_type_mode_t=yes
47049 else
47050   echo "$as_me: failed program was:" >&5
47051 sed 's/^/| /' conftest.$ac_ext >&5
47052
47053 ac_cv_type_mode_t=no
47054 fi
47055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47056 fi
47057 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47058 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47059 if test $ac_cv_type_mode_t = yes; then
47060   :
47061 else
47062
47063 cat >>confdefs.h <<_ACEOF
47064 #define mode_t int
47065 _ACEOF
47066
47067 fi
47068
47069 echo "$as_me:$LINENO: checking for off_t" >&5
47070 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47071 if test "${ac_cv_type_off_t+set}" = set; then
47072   echo $ECHO_N "(cached) $ECHO_C" >&6
47073 else
47074   cat >conftest.$ac_ext <<_ACEOF
47075 /* confdefs.h.  */
47076 _ACEOF
47077 cat confdefs.h >>conftest.$ac_ext
47078 cat >>conftest.$ac_ext <<_ACEOF
47079 /* end confdefs.h.  */
47080 $ac_includes_default
47081 int
47082 main ()
47083 {
47084 if ((off_t *) 0)
47085   return 0;
47086 if (sizeof (off_t))
47087   return 0;
47088   ;
47089   return 0;
47090 }
47091 _ACEOF
47092 rm -f conftest.$ac_objext
47093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47094   (eval $ac_compile) 2>conftest.er1
47095   ac_status=$?
47096   grep -v '^ *+' conftest.er1 >conftest.err
47097   rm -f conftest.er1
47098   cat conftest.err >&5
47099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47100   (exit $ac_status); } &&
47101          { ac_try='test -z "$ac_c_werror_flag"
47102                          || test ! -s conftest.err'
47103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47104   (eval $ac_try) 2>&5
47105   ac_status=$?
47106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47107   (exit $ac_status); }; } &&
47108          { ac_try='test -s conftest.$ac_objext'
47109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47110   (eval $ac_try) 2>&5
47111   ac_status=$?
47112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47113   (exit $ac_status); }; }; then
47114   ac_cv_type_off_t=yes
47115 else
47116   echo "$as_me: failed program was:" >&5
47117 sed 's/^/| /' conftest.$ac_ext >&5
47118
47119 ac_cv_type_off_t=no
47120 fi
47121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47122 fi
47123 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47124 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47125 if test $ac_cv_type_off_t = yes; then
47126   :
47127 else
47128
47129 cat >>confdefs.h <<_ACEOF
47130 #define off_t long
47131 _ACEOF
47132
47133 fi
47134
47135 echo "$as_me:$LINENO: checking for pid_t" >&5
47136 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47137 if test "${ac_cv_type_pid_t+set}" = set; then
47138   echo $ECHO_N "(cached) $ECHO_C" >&6
47139 else
47140   cat >conftest.$ac_ext <<_ACEOF
47141 /* confdefs.h.  */
47142 _ACEOF
47143 cat confdefs.h >>conftest.$ac_ext
47144 cat >>conftest.$ac_ext <<_ACEOF
47145 /* end confdefs.h.  */
47146 $ac_includes_default
47147 int
47148 main ()
47149 {
47150 if ((pid_t *) 0)
47151   return 0;
47152 if (sizeof (pid_t))
47153   return 0;
47154   ;
47155   return 0;
47156 }
47157 _ACEOF
47158 rm -f conftest.$ac_objext
47159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47160   (eval $ac_compile) 2>conftest.er1
47161   ac_status=$?
47162   grep -v '^ *+' conftest.er1 >conftest.err
47163   rm -f conftest.er1
47164   cat conftest.err >&5
47165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47166   (exit $ac_status); } &&
47167          { ac_try='test -z "$ac_c_werror_flag"
47168                          || test ! -s conftest.err'
47169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47170   (eval $ac_try) 2>&5
47171   ac_status=$?
47172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47173   (exit $ac_status); }; } &&
47174          { ac_try='test -s conftest.$ac_objext'
47175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47176   (eval $ac_try) 2>&5
47177   ac_status=$?
47178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47179   (exit $ac_status); }; }; then
47180   ac_cv_type_pid_t=yes
47181 else
47182   echo "$as_me: failed program was:" >&5
47183 sed 's/^/| /' conftest.$ac_ext >&5
47184
47185 ac_cv_type_pid_t=no
47186 fi
47187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47188 fi
47189 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47190 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47191 if test $ac_cv_type_pid_t = yes; then
47192   :
47193 else
47194
47195 cat >>confdefs.h <<_ACEOF
47196 #define pid_t int
47197 _ACEOF
47198
47199 fi
47200
47201 echo "$as_me:$LINENO: checking for ssize_t" >&5
47202 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47203 if test "${ac_cv_type_ssize_t+set}" = set; then
47204   echo $ECHO_N "(cached) $ECHO_C" >&6
47205 else
47206   cat >conftest.$ac_ext <<_ACEOF
47207 /* confdefs.h.  */
47208 _ACEOF
47209 cat confdefs.h >>conftest.$ac_ext
47210 cat >>conftest.$ac_ext <<_ACEOF
47211 /* end confdefs.h.  */
47212 $ac_includes_default
47213 int
47214 main ()
47215 {
47216 if ((ssize_t *) 0)
47217   return 0;
47218 if (sizeof (ssize_t))
47219   return 0;
47220   ;
47221   return 0;
47222 }
47223 _ACEOF
47224 rm -f conftest.$ac_objext
47225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47226   (eval $ac_compile) 2>conftest.er1
47227   ac_status=$?
47228   grep -v '^ *+' conftest.er1 >conftest.err
47229   rm -f conftest.er1
47230   cat conftest.err >&5
47231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47232   (exit $ac_status); } &&
47233          { ac_try='test -z "$ac_c_werror_flag"
47234                          || test ! -s conftest.err'
47235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47236   (eval $ac_try) 2>&5
47237   ac_status=$?
47238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47239   (exit $ac_status); }; } &&
47240          { ac_try='test -s conftest.$ac_objext'
47241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47242   (eval $ac_try) 2>&5
47243   ac_status=$?
47244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47245   (exit $ac_status); }; }; then
47246   ac_cv_type_ssize_t=yes
47247 else
47248   echo "$as_me: failed program was:" >&5
47249 sed 's/^/| /' conftest.$ac_ext >&5
47250
47251 ac_cv_type_ssize_t=no
47252 fi
47253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47254 fi
47255 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47256 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47257 if test $ac_cv_type_ssize_t = yes; then
47258   :
47259 else
47260
47261 cat >>confdefs.h <<_ACEOF
47262 #define ssize_t signed int
47263 _ACEOF
47264
47265 fi
47266
47267 echo "$as_me:$LINENO: checking for caddr_t" >&5
47268 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47269 if test "${ac_cv_type_caddr_t+set}" = set; then
47270   echo $ECHO_N "(cached) $ECHO_C" >&6
47271 else
47272   cat >conftest.$ac_ext <<_ACEOF
47273 /* confdefs.h.  */
47274 _ACEOF
47275 cat confdefs.h >>conftest.$ac_ext
47276 cat >>conftest.$ac_ext <<_ACEOF
47277 /* end confdefs.h.  */
47278 $ac_includes_default
47279 int
47280 main ()
47281 {
47282 if ((caddr_t *) 0)
47283   return 0;
47284 if (sizeof (caddr_t))
47285   return 0;
47286   ;
47287   return 0;
47288 }
47289 _ACEOF
47290 rm -f conftest.$ac_objext
47291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47292   (eval $ac_compile) 2>conftest.er1
47293   ac_status=$?
47294   grep -v '^ *+' conftest.er1 >conftest.err
47295   rm -f conftest.er1
47296   cat conftest.err >&5
47297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47298   (exit $ac_status); } &&
47299          { ac_try='test -z "$ac_c_werror_flag"
47300                          || test ! -s conftest.err'
47301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47302   (eval $ac_try) 2>&5
47303   ac_status=$?
47304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47305   (exit $ac_status); }; } &&
47306          { ac_try='test -s conftest.$ac_objext'
47307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47308   (eval $ac_try) 2>&5
47309   ac_status=$?
47310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47311   (exit $ac_status); }; }; then
47312   ac_cv_type_caddr_t=yes
47313 else
47314   echo "$as_me: failed program was:" >&5
47315 sed 's/^/| /' conftest.$ac_ext >&5
47316
47317 ac_cv_type_caddr_t=no
47318 fi
47319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47320 fi
47321 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47322 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47323 if test $ac_cv_type_caddr_t = yes; then
47324   :
47325 else
47326
47327 cat >>confdefs.h <<_ACEOF
47328 #define caddr_t char *
47329 _ACEOF
47330
47331 fi
47332
47333 echo "$as_me:$LINENO: checking for size_t" >&5
47334 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47335 if test "${ac_cv_type_size_t+set}" = set; then
47336   echo $ECHO_N "(cached) $ECHO_C" >&6
47337 else
47338   cat >conftest.$ac_ext <<_ACEOF
47339 /* confdefs.h.  */
47340 _ACEOF
47341 cat confdefs.h >>conftest.$ac_ext
47342 cat >>conftest.$ac_ext <<_ACEOF
47343 /* end confdefs.h.  */
47344 $ac_includes_default
47345 int
47346 main ()
47347 {
47348 if ((size_t *) 0)
47349   return 0;
47350 if (sizeof (size_t))
47351   return 0;
47352   ;
47353   return 0;
47354 }
47355 _ACEOF
47356 rm -f conftest.$ac_objext
47357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47358   (eval $ac_compile) 2>conftest.er1
47359   ac_status=$?
47360   grep -v '^ *+' conftest.er1 >conftest.err
47361   rm -f conftest.er1
47362   cat conftest.err >&5
47363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47364   (exit $ac_status); } &&
47365          { ac_try='test -z "$ac_c_werror_flag"
47366                          || test ! -s conftest.err'
47367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47368   (eval $ac_try) 2>&5
47369   ac_status=$?
47370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47371   (exit $ac_status); }; } &&
47372          { ac_try='test -s conftest.$ac_objext'
47373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47374   (eval $ac_try) 2>&5
47375   ac_status=$?
47376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47377   (exit $ac_status); }; }; then
47378   ac_cv_type_size_t=yes
47379 else
47380   echo "$as_me: failed program was:" >&5
47381 sed 's/^/| /' conftest.$ac_ext >&5
47382
47383 ac_cv_type_size_t=no
47384 fi
47385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47386 fi
47387 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47388 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47389 if test $ac_cv_type_size_t = yes; then
47390   :
47391 else
47392
47393 cat >>confdefs.h <<_ACEOF
47394 #define size_t unsigned
47395 _ACEOF
47396
47397 fi
47398
47399
47400 echo "$as_me:$LINENO: checking for long long" >&5
47401 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47402 if test "${ac_cv_type_long_long+set}" = set; then
47403   echo $ECHO_N "(cached) $ECHO_C" >&6
47404 else
47405   cat >conftest.$ac_ext <<_ACEOF
47406 /* confdefs.h.  */
47407 _ACEOF
47408 cat confdefs.h >>conftest.$ac_ext
47409 cat >>conftest.$ac_ext <<_ACEOF
47410 /* end confdefs.h.  */
47411 $ac_includes_default
47412 int
47413 main ()
47414 {
47415 if ((long long *) 0)
47416   return 0;
47417 if (sizeof (long long))
47418   return 0;
47419   ;
47420   return 0;
47421 }
47422 _ACEOF
47423 rm -f conftest.$ac_objext
47424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47425   (eval $ac_compile) 2>conftest.er1
47426   ac_status=$?
47427   grep -v '^ *+' conftest.er1 >conftest.err
47428   rm -f conftest.er1
47429   cat conftest.err >&5
47430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47431   (exit $ac_status); } &&
47432          { ac_try='test -z "$ac_c_werror_flag"
47433                          || test ! -s conftest.err'
47434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47435   (eval $ac_try) 2>&5
47436   ac_status=$?
47437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47438   (exit $ac_status); }; } &&
47439          { ac_try='test -s conftest.$ac_objext'
47440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47441   (eval $ac_try) 2>&5
47442   ac_status=$?
47443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47444   (exit $ac_status); }; }; then
47445   ac_cv_type_long_long=yes
47446 else
47447   echo "$as_me: failed program was:" >&5
47448 sed 's/^/| /' conftest.$ac_ext >&5
47449
47450 ac_cv_type_long_long=no
47451 fi
47452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47453 fi
47454 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47455 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47456 if test $ac_cv_type_long_long = yes; then
47457
47458 cat >>confdefs.h <<_ACEOF
47459 #define HAVE_LONG_LONG 1
47460 _ACEOF
47461
47462
47463 fi
47464
47465 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47466 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47467 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47468   echo $ECHO_N "(cached) $ECHO_C" >&6
47469 else
47470   cat >conftest.$ac_ext <<_ACEOF
47471 /* confdefs.h.  */
47472 _ACEOF
47473 cat confdefs.h >>conftest.$ac_ext
47474 cat >>conftest.$ac_ext <<_ACEOF
47475 /* end confdefs.h.  */
47476 $ac_includes_default
47477 int
47478 main ()
47479 {
47480 if ((ptrdiff_t *) 0)
47481   return 0;
47482 if (sizeof (ptrdiff_t))
47483   return 0;
47484   ;
47485   return 0;
47486 }
47487 _ACEOF
47488 rm -f conftest.$ac_objext
47489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47490   (eval $ac_compile) 2>conftest.er1
47491   ac_status=$?
47492   grep -v '^ *+' conftest.er1 >conftest.err
47493   rm -f conftest.er1
47494   cat conftest.err >&5
47495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47496   (exit $ac_status); } &&
47497          { ac_try='test -z "$ac_c_werror_flag"
47498                          || test ! -s conftest.err'
47499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47500   (eval $ac_try) 2>&5
47501   ac_status=$?
47502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47503   (exit $ac_status); }; } &&
47504          { ac_try='test -s conftest.$ac_objext'
47505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47506   (eval $ac_try) 2>&5
47507   ac_status=$?
47508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47509   (exit $ac_status); }; }; then
47510   ac_cv_type_ptrdiff_t=yes
47511 else
47512   echo "$as_me: failed program was:" >&5
47513 sed 's/^/| /' conftest.$ac_ext >&5
47514
47515 ac_cv_type_ptrdiff_t=no
47516 fi
47517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47518 fi
47519 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47520 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47521 if test $ac_cv_type_ptrdiff_t = yes; then
47522
47523 cat >>confdefs.h <<_ACEOF
47524 #define HAVE_PTRDIFF_T 1
47525 _ACEOF
47526
47527
47528 fi
47529
47530
47531 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47532 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47533 if test "${ac_cv_type_signal+set}" = set; then
47534   echo $ECHO_N "(cached) $ECHO_C" >&6
47535 else
47536   cat >conftest.$ac_ext <<_ACEOF
47537 /* confdefs.h.  */
47538 _ACEOF
47539 cat confdefs.h >>conftest.$ac_ext
47540 cat >>conftest.$ac_ext <<_ACEOF
47541 /* end confdefs.h.  */
47542 #include <sys/types.h>
47543 #include <signal.h>
47544 #ifdef signal
47545 # undef signal
47546 #endif
47547 #ifdef __cplusplus
47548 extern "C" void (*signal (int, void (*)(int)))(int);
47549 #else
47550 void (*signal ()) ();
47551 #endif
47552
47553 int
47554 main ()
47555 {
47556 int i;
47557   ;
47558   return 0;
47559 }
47560 _ACEOF
47561 rm -f conftest.$ac_objext
47562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47563   (eval $ac_compile) 2>conftest.er1
47564   ac_status=$?
47565   grep -v '^ *+' conftest.er1 >conftest.err
47566   rm -f conftest.er1
47567   cat conftest.err >&5
47568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47569   (exit $ac_status); } &&
47570          { ac_try='test -z "$ac_c_werror_flag"
47571                          || test ! -s conftest.err'
47572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47573   (eval $ac_try) 2>&5
47574   ac_status=$?
47575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47576   (exit $ac_status); }; } &&
47577          { ac_try='test -s conftest.$ac_objext'
47578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47579   (eval $ac_try) 2>&5
47580   ac_status=$?
47581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47582   (exit $ac_status); }; }; then
47583   ac_cv_type_signal=void
47584 else
47585   echo "$as_me: failed program was:" >&5
47586 sed 's/^/| /' conftest.$ac_ext >&5
47587
47588 ac_cv_type_signal=int
47589 fi
47590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47591 fi
47592 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47593 echo "${ECHO_T}$ac_cv_type_signal" >&6
47594
47595 cat >>confdefs.h <<_ACEOF
47596 #define RETSIGTYPE $ac_cv_type_signal
47597 _ACEOF
47598
47599
47600 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47601 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47602 if test "${ac_cv_type_uid_t+set}" = set; then
47603   echo $ECHO_N "(cached) $ECHO_C" >&6
47604 else
47605   cat >conftest.$ac_ext <<_ACEOF
47606 /* confdefs.h.  */
47607 _ACEOF
47608 cat confdefs.h >>conftest.$ac_ext
47609 cat >>conftest.$ac_ext <<_ACEOF
47610 /* end confdefs.h.  */
47611 #include <sys/types.h>
47612
47613 _ACEOF
47614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47615   $EGREP "uid_t" >/dev/null 2>&1; then
47616   ac_cv_type_uid_t=yes
47617 else
47618   ac_cv_type_uid_t=no
47619 fi
47620 rm -f conftest*
47621
47622 fi
47623 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47624 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47625 if test $ac_cv_type_uid_t = no; then
47626
47627 cat >>confdefs.h <<\_ACEOF
47628 #define uid_t int
47629 _ACEOF
47630
47631
47632 cat >>confdefs.h <<\_ACEOF
47633 #define gid_t int
47634 _ACEOF
47635
47636 fi
47637
47638 echo "$as_me:$LINENO: checking for socklen_t" >&5
47639 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47640 if test "${ol_cv_type_socklen_t+set}" = set; then
47641   echo $ECHO_N "(cached) $ECHO_C" >&6
47642 else
47643   cat >conftest.$ac_ext <<_ACEOF
47644 /* confdefs.h.  */
47645 _ACEOF
47646 cat confdefs.h >>conftest.$ac_ext
47647 cat >>conftest.$ac_ext <<_ACEOF
47648 /* end confdefs.h.  */
47649
47650 #ifdef HAVE_SYS_TYPES_H
47651 #include <sys/types.h>
47652 #endif
47653 #ifdef HAVE_SYS_SOCKET_H
47654 #include <sys/socket.h>
47655 #endif
47656
47657 int
47658 main ()
47659 {
47660 socklen_t len;
47661   ;
47662   return 0;
47663 }
47664 _ACEOF
47665 rm -f conftest.$ac_objext
47666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47667   (eval $ac_compile) 2>conftest.er1
47668   ac_status=$?
47669   grep -v '^ *+' conftest.er1 >conftest.err
47670   rm -f conftest.er1
47671   cat conftest.err >&5
47672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47673   (exit $ac_status); } &&
47674          { ac_try='test -z "$ac_c_werror_flag"
47675                          || test ! -s conftest.err'
47676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47677   (eval $ac_try) 2>&5
47678   ac_status=$?
47679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47680   (exit $ac_status); }; } &&
47681          { ac_try='test -s conftest.$ac_objext'
47682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47683   (eval $ac_try) 2>&5
47684   ac_status=$?
47685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47686   (exit $ac_status); }; }; then
47687   ol_cv_type_socklen_t=yes
47688 else
47689   echo "$as_me: failed program was:" >&5
47690 sed 's/^/| /' conftest.$ac_ext >&5
47691
47692 ol_cv_type_socklen_t=no
47693 fi
47694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47695 fi
47696 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47697 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47698   if test $ol_cv_type_socklen_t = no; then
47699
47700 cat >>confdefs.h <<\_ACEOF
47701 #define socklen_t int
47702 _ACEOF
47703
47704   fi
47705
47706 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47707 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47708 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47709   echo $ECHO_N "(cached) $ECHO_C" >&6
47710 else
47711   cat >conftest.$ac_ext <<_ACEOF
47712 /* confdefs.h.  */
47713 _ACEOF
47714 cat confdefs.h >>conftest.$ac_ext
47715 cat >>conftest.$ac_ext <<_ACEOF
47716 /* end confdefs.h.  */
47717 #include <signal.h>
47718 int
47719 main ()
47720 {
47721 sig_atomic_t atomic;
47722   ;
47723   return 0;
47724 }
47725 _ACEOF
47726 rm -f conftest.$ac_objext
47727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47728   (eval $ac_compile) 2>conftest.er1
47729   ac_status=$?
47730   grep -v '^ *+' conftest.er1 >conftest.err
47731   rm -f conftest.er1
47732   cat conftest.err >&5
47733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47734   (exit $ac_status); } &&
47735          { ac_try='test -z "$ac_c_werror_flag"
47736                          || test ! -s conftest.err'
47737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47738   (eval $ac_try) 2>&5
47739   ac_status=$?
47740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47741   (exit $ac_status); }; } &&
47742          { ac_try='test -s conftest.$ac_objext'
47743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47744   (eval $ac_try) 2>&5
47745   ac_status=$?
47746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47747   (exit $ac_status); }; }; then
47748   ol_cv_type_sig_atomic_t=yes
47749 else
47750   echo "$as_me: failed program was:" >&5
47751 sed 's/^/| /' conftest.$ac_ext >&5
47752
47753 ol_cv_type_sig_atomic_t=no
47754 fi
47755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47756 fi
47757 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47758 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47759   if test $ol_cv_type_sig_atomic_t = no; then
47760
47761 cat >>confdefs.h <<\_ACEOF
47762 #define sig_atomic_t int
47763 _ACEOF
47764
47765   fi
47766
47767
47768 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47769 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47770 if test "${ac_cv_header_time+set}" = set; then
47771   echo $ECHO_N "(cached) $ECHO_C" >&6
47772 else
47773   cat >conftest.$ac_ext <<_ACEOF
47774 /* confdefs.h.  */
47775 _ACEOF
47776 cat confdefs.h >>conftest.$ac_ext
47777 cat >>conftest.$ac_ext <<_ACEOF
47778 /* end confdefs.h.  */
47779 #include <sys/types.h>
47780 #include <sys/time.h>
47781 #include <time.h>
47782
47783 int
47784 main ()
47785 {
47786 if ((struct tm *) 0)
47787 return 0;
47788   ;
47789   return 0;
47790 }
47791 _ACEOF
47792 rm -f conftest.$ac_objext
47793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47794   (eval $ac_compile) 2>conftest.er1
47795   ac_status=$?
47796   grep -v '^ *+' conftest.er1 >conftest.err
47797   rm -f conftest.er1
47798   cat conftest.err >&5
47799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47800   (exit $ac_status); } &&
47801          { ac_try='test -z "$ac_c_werror_flag"
47802                          || test ! -s conftest.err'
47803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47804   (eval $ac_try) 2>&5
47805   ac_status=$?
47806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47807   (exit $ac_status); }; } &&
47808          { ac_try='test -s conftest.$ac_objext'
47809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47810   (eval $ac_try) 2>&5
47811   ac_status=$?
47812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47813   (exit $ac_status); }; }; then
47814   ac_cv_header_time=yes
47815 else
47816   echo "$as_me: failed program was:" >&5
47817 sed 's/^/| /' conftest.$ac_ext >&5
47818
47819 ac_cv_header_time=no
47820 fi
47821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47822 fi
47823 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47824 echo "${ECHO_T}$ac_cv_header_time" >&6
47825 if test $ac_cv_header_time = yes; then
47826
47827 cat >>confdefs.h <<\_ACEOF
47828 #define TIME_WITH_SYS_TIME 1
47829 _ACEOF
47830
47831 fi
47832
47833 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47834 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47835 if test "${ac_cv_struct_tm+set}" = set; then
47836   echo $ECHO_N "(cached) $ECHO_C" >&6
47837 else
47838   cat >conftest.$ac_ext <<_ACEOF
47839 /* confdefs.h.  */
47840 _ACEOF
47841 cat confdefs.h >>conftest.$ac_ext
47842 cat >>conftest.$ac_ext <<_ACEOF
47843 /* end confdefs.h.  */
47844 #include <sys/types.h>
47845 #include <time.h>
47846
47847 int
47848 main ()
47849 {
47850 struct tm *tp; tp->tm_sec;
47851   ;
47852   return 0;
47853 }
47854 _ACEOF
47855 rm -f conftest.$ac_objext
47856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47857   (eval $ac_compile) 2>conftest.er1
47858   ac_status=$?
47859   grep -v '^ *+' conftest.er1 >conftest.err
47860   rm -f conftest.er1
47861   cat conftest.err >&5
47862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47863   (exit $ac_status); } &&
47864          { ac_try='test -z "$ac_c_werror_flag"
47865                          || test ! -s conftest.err'
47866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47867   (eval $ac_try) 2>&5
47868   ac_status=$?
47869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47870   (exit $ac_status); }; } &&
47871          { ac_try='test -s conftest.$ac_objext'
47872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47873   (eval $ac_try) 2>&5
47874   ac_status=$?
47875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47876   (exit $ac_status); }; }; then
47877   ac_cv_struct_tm=time.h
47878 else
47879   echo "$as_me: failed program was:" >&5
47880 sed 's/^/| /' conftest.$ac_ext >&5
47881
47882 ac_cv_struct_tm=sys/time.h
47883 fi
47884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47885 fi
47886 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47887 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47888 if test $ac_cv_struct_tm = sys/time.h; then
47889
47890 cat >>confdefs.h <<\_ACEOF
47891 #define TM_IN_SYS_TIME 1
47892 _ACEOF
47893
47894 fi
47895
47896 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47897 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47898 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47899   echo $ECHO_N "(cached) $ECHO_C" >&6
47900 else
47901   cat >conftest.$ac_ext <<_ACEOF
47902 /* confdefs.h.  */
47903 _ACEOF
47904 cat confdefs.h >>conftest.$ac_ext
47905 cat >>conftest.$ac_ext <<_ACEOF
47906 /* end confdefs.h.  */
47907 $ac_includes_default
47908 int
47909 main ()
47910 {
47911 static struct stat ac_aggr;
47912 if (ac_aggr.st_blksize)
47913 return 0;
47914   ;
47915   return 0;
47916 }
47917 _ACEOF
47918 rm -f conftest.$ac_objext
47919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47920   (eval $ac_compile) 2>conftest.er1
47921   ac_status=$?
47922   grep -v '^ *+' conftest.er1 >conftest.err
47923   rm -f conftest.er1
47924   cat conftest.err >&5
47925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47926   (exit $ac_status); } &&
47927          { ac_try='test -z "$ac_c_werror_flag"
47928                          || test ! -s conftest.err'
47929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47930   (eval $ac_try) 2>&5
47931   ac_status=$?
47932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47933   (exit $ac_status); }; } &&
47934          { ac_try='test -s conftest.$ac_objext'
47935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47936   (eval $ac_try) 2>&5
47937   ac_status=$?
47938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47939   (exit $ac_status); }; }; then
47940   ac_cv_member_struct_stat_st_blksize=yes
47941 else
47942   echo "$as_me: failed program was:" >&5
47943 sed 's/^/| /' conftest.$ac_ext >&5
47944
47945 cat >conftest.$ac_ext <<_ACEOF
47946 /* confdefs.h.  */
47947 _ACEOF
47948 cat confdefs.h >>conftest.$ac_ext
47949 cat >>conftest.$ac_ext <<_ACEOF
47950 /* end confdefs.h.  */
47951 $ac_includes_default
47952 int
47953 main ()
47954 {
47955 static struct stat ac_aggr;
47956 if (sizeof ac_aggr.st_blksize)
47957 return 0;
47958   ;
47959   return 0;
47960 }
47961 _ACEOF
47962 rm -f conftest.$ac_objext
47963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47964   (eval $ac_compile) 2>conftest.er1
47965   ac_status=$?
47966   grep -v '^ *+' conftest.er1 >conftest.err
47967   rm -f conftest.er1
47968   cat conftest.err >&5
47969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47970   (exit $ac_status); } &&
47971          { ac_try='test -z "$ac_c_werror_flag"
47972                          || test ! -s conftest.err'
47973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47974   (eval $ac_try) 2>&5
47975   ac_status=$?
47976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47977   (exit $ac_status); }; } &&
47978          { ac_try='test -s conftest.$ac_objext'
47979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47980   (eval $ac_try) 2>&5
47981   ac_status=$?
47982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47983   (exit $ac_status); }; }; then
47984   ac_cv_member_struct_stat_st_blksize=yes
47985 else
47986   echo "$as_me: failed program was:" >&5
47987 sed 's/^/| /' conftest.$ac_ext >&5
47988
47989 ac_cv_member_struct_stat_st_blksize=no
47990 fi
47991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47992 fi
47993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47994 fi
47995 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47996 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47997 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47998
47999 cat >>confdefs.h <<_ACEOF
48000 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48001 _ACEOF
48002
48003
48004 fi
48005
48006 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48007 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48008 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48009   echo $ECHO_N "(cached) $ECHO_C" >&6
48010 else
48011   cat >conftest.$ac_ext <<_ACEOF
48012 /* confdefs.h.  */
48013 _ACEOF
48014 cat confdefs.h >>conftest.$ac_ext
48015 cat >>conftest.$ac_ext <<_ACEOF
48016 /* end confdefs.h.  */
48017 #include <pwd.h>
48018
48019 int
48020 main ()
48021 {
48022 static struct passwd ac_aggr;
48023 if (ac_aggr.pw_gecos)
48024 return 0;
48025   ;
48026   return 0;
48027 }
48028 _ACEOF
48029 rm -f conftest.$ac_objext
48030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48031   (eval $ac_compile) 2>conftest.er1
48032   ac_status=$?
48033   grep -v '^ *+' conftest.er1 >conftest.err
48034   rm -f conftest.er1
48035   cat conftest.err >&5
48036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48037   (exit $ac_status); } &&
48038          { ac_try='test -z "$ac_c_werror_flag"
48039                          || test ! -s conftest.err'
48040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48041   (eval $ac_try) 2>&5
48042   ac_status=$?
48043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48044   (exit $ac_status); }; } &&
48045          { ac_try='test -s conftest.$ac_objext'
48046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48047   (eval $ac_try) 2>&5
48048   ac_status=$?
48049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48050   (exit $ac_status); }; }; then
48051   ac_cv_member_struct_passwd_pw_gecos=yes
48052 else
48053   echo "$as_me: failed program was:" >&5
48054 sed 's/^/| /' conftest.$ac_ext >&5
48055
48056 cat >conftest.$ac_ext <<_ACEOF
48057 /* confdefs.h.  */
48058 _ACEOF
48059 cat confdefs.h >>conftest.$ac_ext
48060 cat >>conftest.$ac_ext <<_ACEOF
48061 /* end confdefs.h.  */
48062 #include <pwd.h>
48063
48064 int
48065 main ()
48066 {
48067 static struct passwd ac_aggr;
48068 if (sizeof ac_aggr.pw_gecos)
48069 return 0;
48070   ;
48071   return 0;
48072 }
48073 _ACEOF
48074 rm -f conftest.$ac_objext
48075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48076   (eval $ac_compile) 2>conftest.er1
48077   ac_status=$?
48078   grep -v '^ *+' conftest.er1 >conftest.err
48079   rm -f conftest.er1
48080   cat conftest.err >&5
48081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48082   (exit $ac_status); } &&
48083          { ac_try='test -z "$ac_c_werror_flag"
48084                          || test ! -s conftest.err'
48085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48086   (eval $ac_try) 2>&5
48087   ac_status=$?
48088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48089   (exit $ac_status); }; } &&
48090          { ac_try='test -s conftest.$ac_objext'
48091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48092   (eval $ac_try) 2>&5
48093   ac_status=$?
48094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48095   (exit $ac_status); }; }; then
48096   ac_cv_member_struct_passwd_pw_gecos=yes
48097 else
48098   echo "$as_me: failed program was:" >&5
48099 sed 's/^/| /' conftest.$ac_ext >&5
48100
48101 ac_cv_member_struct_passwd_pw_gecos=no
48102 fi
48103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48104 fi
48105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48106 fi
48107 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48108 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48109 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48110
48111 cat >>confdefs.h <<_ACEOF
48112 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48113 _ACEOF
48114
48115
48116 fi
48117
48118 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48119 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48120 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48121   echo $ECHO_N "(cached) $ECHO_C" >&6
48122 else
48123   cat >conftest.$ac_ext <<_ACEOF
48124 /* confdefs.h.  */
48125 _ACEOF
48126 cat confdefs.h >>conftest.$ac_ext
48127 cat >>conftest.$ac_ext <<_ACEOF
48128 /* end confdefs.h.  */
48129 #include <pwd.h>
48130
48131 int
48132 main ()
48133 {
48134 static struct passwd ac_aggr;
48135 if (ac_aggr.pw_passwd)
48136 return 0;
48137   ;
48138   return 0;
48139 }
48140 _ACEOF
48141 rm -f conftest.$ac_objext
48142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48143   (eval $ac_compile) 2>conftest.er1
48144   ac_status=$?
48145   grep -v '^ *+' conftest.er1 >conftest.err
48146   rm -f conftest.er1
48147   cat conftest.err >&5
48148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48149   (exit $ac_status); } &&
48150          { ac_try='test -z "$ac_c_werror_flag"
48151                          || test ! -s conftest.err'
48152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48153   (eval $ac_try) 2>&5
48154   ac_status=$?
48155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48156   (exit $ac_status); }; } &&
48157          { ac_try='test -s conftest.$ac_objext'
48158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48159   (eval $ac_try) 2>&5
48160   ac_status=$?
48161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48162   (exit $ac_status); }; }; then
48163   ac_cv_member_struct_passwd_pw_passwd=yes
48164 else
48165   echo "$as_me: failed program was:" >&5
48166 sed 's/^/| /' conftest.$ac_ext >&5
48167
48168 cat >conftest.$ac_ext <<_ACEOF
48169 /* confdefs.h.  */
48170 _ACEOF
48171 cat confdefs.h >>conftest.$ac_ext
48172 cat >>conftest.$ac_ext <<_ACEOF
48173 /* end confdefs.h.  */
48174 #include <pwd.h>
48175
48176 int
48177 main ()
48178 {
48179 static struct passwd ac_aggr;
48180 if (sizeof ac_aggr.pw_passwd)
48181 return 0;
48182   ;
48183   return 0;
48184 }
48185 _ACEOF
48186 rm -f conftest.$ac_objext
48187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48188   (eval $ac_compile) 2>conftest.er1
48189   ac_status=$?
48190   grep -v '^ *+' conftest.er1 >conftest.err
48191   rm -f conftest.er1
48192   cat conftest.err >&5
48193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48194   (exit $ac_status); } &&
48195          { ac_try='test -z "$ac_c_werror_flag"
48196                          || test ! -s conftest.err'
48197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48198   (eval $ac_try) 2>&5
48199   ac_status=$?
48200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48201   (exit $ac_status); }; } &&
48202          { ac_try='test -s conftest.$ac_objext'
48203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48204   (eval $ac_try) 2>&5
48205   ac_status=$?
48206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48207   (exit $ac_status); }; }; then
48208   ac_cv_member_struct_passwd_pw_passwd=yes
48209 else
48210   echo "$as_me: failed program was:" >&5
48211 sed 's/^/| /' conftest.$ac_ext >&5
48212
48213 ac_cv_member_struct_passwd_pw_passwd=no
48214 fi
48215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48216 fi
48217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48218 fi
48219 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48220 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48221 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48222
48223 cat >>confdefs.h <<_ACEOF
48224 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48225 _ACEOF
48226
48227
48228 fi
48229
48230
48231 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48232 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48233 if test "${ol_cv_c_upper_lower+set}" = set; then
48234   echo $ECHO_N "(cached) $ECHO_C" >&6
48235 else
48236
48237         if test "$cross_compiling" = yes; then
48238   ol_cv_c_upper_lower=safe
48239 else
48240   cat >conftest.$ac_ext <<_ACEOF
48241 /* confdefs.h.  */
48242 _ACEOF
48243 cat confdefs.h >>conftest.$ac_ext
48244 cat >>conftest.$ac_ext <<_ACEOF
48245 /* end confdefs.h.  */
48246
48247 #include <ctype.h>
48248 main()
48249 {
48250         if ('C' == toupper('C'))
48251                 exit(0);
48252         else
48253                 exit(1);
48254 }
48255 _ACEOF
48256 rm -f conftest$ac_exeext
48257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48258   (eval $ac_link) 2>&5
48259   ac_status=$?
48260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48263   (eval $ac_try) 2>&5
48264   ac_status=$?
48265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48266   (exit $ac_status); }; }; then
48267   ol_cv_c_upper_lower=no
48268 else
48269   echo "$as_me: program exited with status $ac_status" >&5
48270 echo "$as_me: failed program was:" >&5
48271 sed 's/^/| /' conftest.$ac_ext >&5
48272
48273 ( exit $ac_status )
48274 ol_cv_c_upper_lower=yes
48275 fi
48276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48277 fi
48278 fi
48279 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48280 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48281 if test $ol_cv_c_upper_lower != no ; then
48282
48283 cat >>confdefs.h <<\_ACEOF
48284 #define C_UPPER_LOWER 1
48285 _ACEOF
48286
48287 fi
48288
48289 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48290 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48291 if test "${ac_cv_c_const+set}" = set; then
48292   echo $ECHO_N "(cached) $ECHO_C" >&6
48293 else
48294   cat >conftest.$ac_ext <<_ACEOF
48295 /* confdefs.h.  */
48296 _ACEOF
48297 cat confdefs.h >>conftest.$ac_ext
48298 cat >>conftest.$ac_ext <<_ACEOF
48299 /* end confdefs.h.  */
48300
48301 int
48302 main ()
48303 {
48304 /* FIXME: Include the comments suggested by Paul. */
48305 #ifndef __cplusplus
48306   /* Ultrix mips cc rejects this.  */
48307   typedef int charset[2];
48308   const charset x;
48309   /* SunOS 4.1.1 cc rejects this.  */
48310   char const *const *ccp;
48311   char **p;
48312   /* NEC SVR4.0.2 mips cc rejects this.  */
48313   struct point {int x, y;};
48314   static struct point const zero = {0,0};
48315   /* AIX XL C 1.02.0.0 rejects this.
48316      It does not let you subtract one const X* pointer from another in
48317      an arm of an if-expression whose if-part is not a constant
48318      expression */
48319   const char *g = "string";
48320   ccp = &g + (g ? g-g : 0);
48321   /* HPUX 7.0 cc rejects these. */
48322   ++ccp;
48323   p = (char**) ccp;
48324   ccp = (char const *const *) p;
48325   { /* SCO 3.2v4 cc rejects this.  */
48326     char *t;
48327     char const *s = 0 ? (char *) 0 : (char const *) 0;
48328
48329     *t++ = 0;
48330   }
48331   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48332     int x[] = {25, 17};
48333     const int *foo = &x[0];
48334     ++foo;
48335   }
48336   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48337     typedef const int *iptr;
48338     iptr p = 0;
48339     ++p;
48340   }
48341   { /* AIX XL C 1.02.0.0 rejects this saying
48342        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48343     struct s { int j; const int *ap[3]; };
48344     struct s *b; b->j = 5;
48345   }
48346   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48347     const int foo = 10;
48348   }
48349 #endif
48350
48351   ;
48352   return 0;
48353 }
48354 _ACEOF
48355 rm -f conftest.$ac_objext
48356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48357   (eval $ac_compile) 2>conftest.er1
48358   ac_status=$?
48359   grep -v '^ *+' conftest.er1 >conftest.err
48360   rm -f conftest.er1
48361   cat conftest.err >&5
48362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48363   (exit $ac_status); } &&
48364          { ac_try='test -z "$ac_c_werror_flag"
48365                          || test ! -s conftest.err'
48366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48367   (eval $ac_try) 2>&5
48368   ac_status=$?
48369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48370   (exit $ac_status); }; } &&
48371          { ac_try='test -s conftest.$ac_objext'
48372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48373   (eval $ac_try) 2>&5
48374   ac_status=$?
48375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48376   (exit $ac_status); }; }; then
48377   ac_cv_c_const=yes
48378 else
48379   echo "$as_me: failed program was:" >&5
48380 sed 's/^/| /' conftest.$ac_ext >&5
48381
48382 ac_cv_c_const=no
48383 fi
48384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48385 fi
48386 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48387 echo "${ECHO_T}$ac_cv_c_const" >&6
48388 if test $ac_cv_c_const = no; then
48389
48390 cat >>confdefs.h <<\_ACEOF
48391 #define const
48392 _ACEOF
48393
48394 fi
48395
48396 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48397 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48398 if test "${ol_cv_c_volatile+set}" = set; then
48399   echo $ECHO_N "(cached) $ECHO_C" >&6
48400 else
48401   cat >conftest.$ac_ext <<_ACEOF
48402 /* confdefs.h.  */
48403 _ACEOF
48404 cat confdefs.h >>conftest.$ac_ext
48405 cat >>conftest.$ac_ext <<_ACEOF
48406 /* end confdefs.h.  */
48407 int x, y, z;
48408 int
48409 main ()
48410 {
48411 volatile int a; int * volatile b = x ? &y : &z;
48412       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48413       *b = 0;
48414   ;
48415   return 0;
48416 }
48417 _ACEOF
48418 rm -f conftest.$ac_objext
48419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48420   (eval $ac_compile) 2>conftest.er1
48421   ac_status=$?
48422   grep -v '^ *+' conftest.er1 >conftest.err
48423   rm -f conftest.er1
48424   cat conftest.err >&5
48425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48426   (exit $ac_status); } &&
48427          { ac_try='test -z "$ac_c_werror_flag"
48428                          || test ! -s conftest.err'
48429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48430   (eval $ac_try) 2>&5
48431   ac_status=$?
48432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48433   (exit $ac_status); }; } &&
48434          { ac_try='test -s conftest.$ac_objext'
48435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48436   (eval $ac_try) 2>&5
48437   ac_status=$?
48438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48439   (exit $ac_status); }; }; then
48440   ol_cv_c_volatile=yes
48441 else
48442   echo "$as_me: failed program was:" >&5
48443 sed 's/^/| /' conftest.$ac_ext >&5
48444
48445 ol_cv_c_volatile=no
48446 fi
48447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48448 fi
48449 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48450 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48451   if test $ol_cv_c_volatile = yes; then
48452     :
48453   else
48454
48455 cat >>confdefs.h <<\_ACEOF
48456 #define volatile
48457 _ACEOF
48458
48459   fi
48460
48461
48462 if test $cross_compiling = yes ; then
48463         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48464 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48465
48466 cat >>confdefs.h <<\_ACEOF
48467 #define CROSS_COMPILING 1
48468 _ACEOF
48469
48470 else
48471         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48472 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48473 if test "${ac_cv_c_bigendian+set}" = set; then
48474   echo $ECHO_N "(cached) $ECHO_C" >&6
48475 else
48476   # See if sys/param.h defines the BYTE_ORDER macro.
48477 cat >conftest.$ac_ext <<_ACEOF
48478 /* confdefs.h.  */
48479 _ACEOF
48480 cat confdefs.h >>conftest.$ac_ext
48481 cat >>conftest.$ac_ext <<_ACEOF
48482 /* end confdefs.h.  */
48483 #include <sys/types.h>
48484 #include <sys/param.h>
48485
48486 int
48487 main ()
48488 {
48489 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48490  bogus endian macros
48491 #endif
48492
48493   ;
48494   return 0;
48495 }
48496 _ACEOF
48497 rm -f conftest.$ac_objext
48498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48499   (eval $ac_compile) 2>conftest.er1
48500   ac_status=$?
48501   grep -v '^ *+' conftest.er1 >conftest.err
48502   rm -f conftest.er1
48503   cat conftest.err >&5
48504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48505   (exit $ac_status); } &&
48506          { ac_try='test -z "$ac_c_werror_flag"
48507                          || test ! -s conftest.err'
48508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48509   (eval $ac_try) 2>&5
48510   ac_status=$?
48511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48512   (exit $ac_status); }; } &&
48513          { ac_try='test -s conftest.$ac_objext'
48514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48515   (eval $ac_try) 2>&5
48516   ac_status=$?
48517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48518   (exit $ac_status); }; }; then
48519   # It does; now see whether it defined to BIG_ENDIAN or not.
48520 cat >conftest.$ac_ext <<_ACEOF
48521 /* confdefs.h.  */
48522 _ACEOF
48523 cat confdefs.h >>conftest.$ac_ext
48524 cat >>conftest.$ac_ext <<_ACEOF
48525 /* end confdefs.h.  */
48526 #include <sys/types.h>
48527 #include <sys/param.h>
48528
48529 int
48530 main ()
48531 {
48532 #if BYTE_ORDER != BIG_ENDIAN
48533  not big endian
48534 #endif
48535
48536   ;
48537   return 0;
48538 }
48539 _ACEOF
48540 rm -f conftest.$ac_objext
48541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48542   (eval $ac_compile) 2>conftest.er1
48543   ac_status=$?
48544   grep -v '^ *+' conftest.er1 >conftest.err
48545   rm -f conftest.er1
48546   cat conftest.err >&5
48547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48548   (exit $ac_status); } &&
48549          { ac_try='test -z "$ac_c_werror_flag"
48550                          || test ! -s conftest.err'
48551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48552   (eval $ac_try) 2>&5
48553   ac_status=$?
48554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48555   (exit $ac_status); }; } &&
48556          { ac_try='test -s conftest.$ac_objext'
48557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48558   (eval $ac_try) 2>&5
48559   ac_status=$?
48560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48561   (exit $ac_status); }; }; then
48562   ac_cv_c_bigendian=yes
48563 else
48564   echo "$as_me: failed program was:" >&5
48565 sed 's/^/| /' conftest.$ac_ext >&5
48566
48567 ac_cv_c_bigendian=no
48568 fi
48569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48570 else
48571   echo "$as_me: failed program was:" >&5
48572 sed 's/^/| /' conftest.$ac_ext >&5
48573
48574 # It does not; compile a test program.
48575 if test "$cross_compiling" = yes; then
48576   # try to guess the endianness by grepping values into an object file
48577   ac_cv_c_bigendian=unknown
48578   cat >conftest.$ac_ext <<_ACEOF
48579 /* confdefs.h.  */
48580 _ACEOF
48581 cat confdefs.h >>conftest.$ac_ext
48582 cat >>conftest.$ac_ext <<_ACEOF
48583 /* end confdefs.h.  */
48584 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48585 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48586 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48587 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48588 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48589 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48590 int
48591 main ()
48592 {
48593  _ascii (); _ebcdic ();
48594   ;
48595   return 0;
48596 }
48597 _ACEOF
48598 rm -f conftest.$ac_objext
48599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48600   (eval $ac_compile) 2>conftest.er1
48601   ac_status=$?
48602   grep -v '^ *+' conftest.er1 >conftest.err
48603   rm -f conftest.er1
48604   cat conftest.err >&5
48605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48606   (exit $ac_status); } &&
48607          { ac_try='test -z "$ac_c_werror_flag"
48608                          || test ! -s conftest.err'
48609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48610   (eval $ac_try) 2>&5
48611   ac_status=$?
48612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48613   (exit $ac_status); }; } &&
48614          { ac_try='test -s conftest.$ac_objext'
48615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48616   (eval $ac_try) 2>&5
48617   ac_status=$?
48618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48619   (exit $ac_status); }; }; then
48620   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48621   ac_cv_c_bigendian=yes
48622 fi
48623 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48624   if test "$ac_cv_c_bigendian" = unknown; then
48625     ac_cv_c_bigendian=no
48626   else
48627     # finding both strings is unlikely to happen, but who knows?
48628     ac_cv_c_bigendian=unknown
48629   fi
48630 fi
48631 else
48632   echo "$as_me: failed program was:" >&5
48633 sed 's/^/| /' conftest.$ac_ext >&5
48634
48635 fi
48636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48637 else
48638   cat >conftest.$ac_ext <<_ACEOF
48639 /* confdefs.h.  */
48640 _ACEOF
48641 cat confdefs.h >>conftest.$ac_ext
48642 cat >>conftest.$ac_ext <<_ACEOF
48643 /* end confdefs.h.  */
48644 int
48645 main ()
48646 {
48647   /* Are we little or big endian?  From Harbison&Steele.  */
48648   union
48649   {
48650     long l;
48651     char c[sizeof (long)];
48652   } u;
48653   u.l = 1;
48654   exit (u.c[sizeof (long) - 1] == 1);
48655 }
48656 _ACEOF
48657 rm -f conftest$ac_exeext
48658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48659   (eval $ac_link) 2>&5
48660   ac_status=$?
48661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48664   (eval $ac_try) 2>&5
48665   ac_status=$?
48666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48667   (exit $ac_status); }; }; then
48668   ac_cv_c_bigendian=no
48669 else
48670   echo "$as_me: program exited with status $ac_status" >&5
48671 echo "$as_me: failed program was:" >&5
48672 sed 's/^/| /' conftest.$ac_ext >&5
48673
48674 ( exit $ac_status )
48675 ac_cv_c_bigendian=yes
48676 fi
48677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48678 fi
48679 fi
48680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48681 fi
48682 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48683 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48684 case $ac_cv_c_bigendian in
48685   yes)
48686
48687 cat >>confdefs.h <<\_ACEOF
48688 #define WORDS_BIGENDIAN 1
48689 _ACEOF
48690  ;;
48691   no)
48692      ;;
48693   *)
48694     { { echo "$as_me:$LINENO: error: unknown endianness
48695 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48696 echo "$as_me: error: unknown endianness
48697 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48698    { (exit 1); exit 1; }; } ;;
48699 esac
48700
48701 fi
48702
48703 echo "$as_me:$LINENO: checking for short" >&5
48704 echo $ECHO_N "checking for short... $ECHO_C" >&6
48705 if test "${ac_cv_type_short+set}" = set; then
48706   echo $ECHO_N "(cached) $ECHO_C" >&6
48707 else
48708   cat >conftest.$ac_ext <<_ACEOF
48709 /* confdefs.h.  */
48710 _ACEOF
48711 cat confdefs.h >>conftest.$ac_ext
48712 cat >>conftest.$ac_ext <<_ACEOF
48713 /* end confdefs.h.  */
48714 $ac_includes_default
48715 int
48716 main ()
48717 {
48718 if ((short *) 0)
48719   return 0;
48720 if (sizeof (short))
48721   return 0;
48722   ;
48723   return 0;
48724 }
48725 _ACEOF
48726 rm -f conftest.$ac_objext
48727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48728   (eval $ac_compile) 2>conftest.er1
48729   ac_status=$?
48730   grep -v '^ *+' conftest.er1 >conftest.err
48731   rm -f conftest.er1
48732   cat conftest.err >&5
48733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48734   (exit $ac_status); } &&
48735          { ac_try='test -z "$ac_c_werror_flag"
48736                          || test ! -s conftest.err'
48737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48738   (eval $ac_try) 2>&5
48739   ac_status=$?
48740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48741   (exit $ac_status); }; } &&
48742          { ac_try='test -s conftest.$ac_objext'
48743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48744   (eval $ac_try) 2>&5
48745   ac_status=$?
48746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48747   (exit $ac_status); }; }; then
48748   ac_cv_type_short=yes
48749 else
48750   echo "$as_me: failed program was:" >&5
48751 sed 's/^/| /' conftest.$ac_ext >&5
48752
48753 ac_cv_type_short=no
48754 fi
48755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48756 fi
48757 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48758 echo "${ECHO_T}$ac_cv_type_short" >&6
48759
48760 echo "$as_me:$LINENO: checking size of short" >&5
48761 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48762 if test "${ac_cv_sizeof_short+set}" = set; then
48763   echo $ECHO_N "(cached) $ECHO_C" >&6
48764 else
48765   if test "$ac_cv_type_short" = yes; then
48766   # The cast to unsigned long works around a bug in the HP C Compiler
48767   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48768   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48769   # This bug is HP SR number 8606223364.
48770   if test "$cross_compiling" = yes; then
48771   # Depending upon the size, compute the lo and hi bounds.
48772 cat >conftest.$ac_ext <<_ACEOF
48773 /* confdefs.h.  */
48774 _ACEOF
48775 cat confdefs.h >>conftest.$ac_ext
48776 cat >>conftest.$ac_ext <<_ACEOF
48777 /* end confdefs.h.  */
48778 $ac_includes_default
48779 int
48780 main ()
48781 {
48782 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48783 test_array [0] = 0
48784
48785   ;
48786   return 0;
48787 }
48788 _ACEOF
48789 rm -f conftest.$ac_objext
48790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48791   (eval $ac_compile) 2>conftest.er1
48792   ac_status=$?
48793   grep -v '^ *+' conftest.er1 >conftest.err
48794   rm -f conftest.er1
48795   cat conftest.err >&5
48796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48797   (exit $ac_status); } &&
48798          { ac_try='test -z "$ac_c_werror_flag"
48799                          || test ! -s conftest.err'
48800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48801   (eval $ac_try) 2>&5
48802   ac_status=$?
48803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48804   (exit $ac_status); }; } &&
48805          { ac_try='test -s conftest.$ac_objext'
48806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48807   (eval $ac_try) 2>&5
48808   ac_status=$?
48809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48810   (exit $ac_status); }; }; then
48811   ac_lo=0 ac_mid=0
48812   while :; do
48813     cat >conftest.$ac_ext <<_ACEOF
48814 /* confdefs.h.  */
48815 _ACEOF
48816 cat confdefs.h >>conftest.$ac_ext
48817 cat >>conftest.$ac_ext <<_ACEOF
48818 /* end confdefs.h.  */
48819 $ac_includes_default
48820 int
48821 main ()
48822 {
48823 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48824 test_array [0] = 0
48825
48826   ;
48827   return 0;
48828 }
48829 _ACEOF
48830 rm -f conftest.$ac_objext
48831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48832   (eval $ac_compile) 2>conftest.er1
48833   ac_status=$?
48834   grep -v '^ *+' conftest.er1 >conftest.err
48835   rm -f conftest.er1
48836   cat conftest.err >&5
48837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48838   (exit $ac_status); } &&
48839          { ac_try='test -z "$ac_c_werror_flag"
48840                          || test ! -s conftest.err'
48841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48842   (eval $ac_try) 2>&5
48843   ac_status=$?
48844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48845   (exit $ac_status); }; } &&
48846          { ac_try='test -s conftest.$ac_objext'
48847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48848   (eval $ac_try) 2>&5
48849   ac_status=$?
48850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48851   (exit $ac_status); }; }; then
48852   ac_hi=$ac_mid; break
48853 else
48854   echo "$as_me: failed program was:" >&5
48855 sed 's/^/| /' conftest.$ac_ext >&5
48856
48857 ac_lo=`expr $ac_mid + 1`
48858                     if test $ac_lo -le $ac_mid; then
48859                       ac_lo= ac_hi=
48860                       break
48861                     fi
48862                     ac_mid=`expr 2 '*' $ac_mid + 1`
48863 fi
48864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48865   done
48866 else
48867   echo "$as_me: failed program was:" >&5
48868 sed 's/^/| /' conftest.$ac_ext >&5
48869
48870 cat >conftest.$ac_ext <<_ACEOF
48871 /* confdefs.h.  */
48872 _ACEOF
48873 cat confdefs.h >>conftest.$ac_ext
48874 cat >>conftest.$ac_ext <<_ACEOF
48875 /* end confdefs.h.  */
48876 $ac_includes_default
48877 int
48878 main ()
48879 {
48880 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
48881 test_array [0] = 0
48882
48883   ;
48884   return 0;
48885 }
48886 _ACEOF
48887 rm -f conftest.$ac_objext
48888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48889   (eval $ac_compile) 2>conftest.er1
48890   ac_status=$?
48891   grep -v '^ *+' conftest.er1 >conftest.err
48892   rm -f conftest.er1
48893   cat conftest.err >&5
48894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48895   (exit $ac_status); } &&
48896          { ac_try='test -z "$ac_c_werror_flag"
48897                          || test ! -s conftest.err'
48898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48899   (eval $ac_try) 2>&5
48900   ac_status=$?
48901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48902   (exit $ac_status); }; } &&
48903          { ac_try='test -s conftest.$ac_objext'
48904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48905   (eval $ac_try) 2>&5
48906   ac_status=$?
48907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48908   (exit $ac_status); }; }; then
48909   ac_hi=-1 ac_mid=-1
48910   while :; do
48911     cat >conftest.$ac_ext <<_ACEOF
48912 /* confdefs.h.  */
48913 _ACEOF
48914 cat confdefs.h >>conftest.$ac_ext
48915 cat >>conftest.$ac_ext <<_ACEOF
48916 /* end confdefs.h.  */
48917 $ac_includes_default
48918 int
48919 main ()
48920 {
48921 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
48922 test_array [0] = 0
48923
48924   ;
48925   return 0;
48926 }
48927 _ACEOF
48928 rm -f conftest.$ac_objext
48929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48930   (eval $ac_compile) 2>conftest.er1
48931   ac_status=$?
48932   grep -v '^ *+' conftest.er1 >conftest.err
48933   rm -f conftest.er1
48934   cat conftest.err >&5
48935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48936   (exit $ac_status); } &&
48937          { ac_try='test -z "$ac_c_werror_flag"
48938                          || test ! -s conftest.err'
48939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48940   (eval $ac_try) 2>&5
48941   ac_status=$?
48942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48943   (exit $ac_status); }; } &&
48944          { ac_try='test -s conftest.$ac_objext'
48945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48946   (eval $ac_try) 2>&5
48947   ac_status=$?
48948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48949   (exit $ac_status); }; }; then
48950   ac_lo=$ac_mid; break
48951 else
48952   echo "$as_me: failed program was:" >&5
48953 sed 's/^/| /' conftest.$ac_ext >&5
48954
48955 ac_hi=`expr '(' $ac_mid ')' - 1`
48956                        if test $ac_mid -le $ac_hi; then
48957                          ac_lo= ac_hi=
48958                          break
48959                        fi
48960                        ac_mid=`expr 2 '*' $ac_mid`
48961 fi
48962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48963   done
48964 else
48965   echo "$as_me: failed program was:" >&5
48966 sed 's/^/| /' conftest.$ac_ext >&5
48967
48968 ac_lo= ac_hi=
48969 fi
48970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48971 fi
48972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48973 # Binary search between lo and hi bounds.
48974 while test "x$ac_lo" != "x$ac_hi"; do
48975   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
48976   cat >conftest.$ac_ext <<_ACEOF
48977 /* confdefs.h.  */
48978 _ACEOF
48979 cat confdefs.h >>conftest.$ac_ext
48980 cat >>conftest.$ac_ext <<_ACEOF
48981 /* end confdefs.h.  */
48982 $ac_includes_default
48983 int
48984 main ()
48985 {
48986 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48987 test_array [0] = 0
48988
48989   ;
48990   return 0;
48991 }
48992 _ACEOF
48993 rm -f conftest.$ac_objext
48994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48995   (eval $ac_compile) 2>conftest.er1
48996   ac_status=$?
48997   grep -v '^ *+' conftest.er1 >conftest.err
48998   rm -f conftest.er1
48999   cat conftest.err >&5
49000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001   (exit $ac_status); } &&
49002          { ac_try='test -z "$ac_c_werror_flag"
49003                          || test ! -s conftest.err'
49004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49005   (eval $ac_try) 2>&5
49006   ac_status=$?
49007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49008   (exit $ac_status); }; } &&
49009          { ac_try='test -s conftest.$ac_objext'
49010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49011   (eval $ac_try) 2>&5
49012   ac_status=$?
49013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49014   (exit $ac_status); }; }; then
49015   ac_hi=$ac_mid
49016 else
49017   echo "$as_me: failed program was:" >&5
49018 sed 's/^/| /' conftest.$ac_ext >&5
49019
49020 ac_lo=`expr '(' $ac_mid ')' + 1`
49021 fi
49022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49023 done
49024 case $ac_lo in
49025 ?*) ac_cv_sizeof_short=$ac_lo;;
49026 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49027 See \`config.log' for more details." >&5
49028 echo "$as_me: error: cannot compute sizeof (short), 77
49029 See \`config.log' for more details." >&2;}
49030    { (exit 1); exit 1; }; } ;;
49031 esac
49032 else
49033   if test "$cross_compiling" = yes; then
49034   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49035 See \`config.log' for more details." >&5
49036 echo "$as_me: error: cannot run test program while cross compiling
49037 See \`config.log' for more details." >&2;}
49038    { (exit 1); exit 1; }; }
49039 else
49040   cat >conftest.$ac_ext <<_ACEOF
49041 /* confdefs.h.  */
49042 _ACEOF
49043 cat confdefs.h >>conftest.$ac_ext
49044 cat >>conftest.$ac_ext <<_ACEOF
49045 /* end confdefs.h.  */
49046 $ac_includes_default
49047 long longval () { return (long) (sizeof (short)); }
49048 unsigned long ulongval () { return (long) (sizeof (short)); }
49049 #include <stdio.h>
49050 #include <stdlib.h>
49051 int
49052 main ()
49053 {
49054
49055   FILE *f = fopen ("conftest.val", "w");
49056   if (! f)
49057     exit (1);
49058   if (((long) (sizeof (short))) < 0)
49059     {
49060       long i = longval ();
49061       if (i != ((long) (sizeof (short))))
49062         exit (1);
49063       fprintf (f, "%ld\n", i);
49064     }
49065   else
49066     {
49067       unsigned long i = ulongval ();
49068       if (i != ((long) (sizeof (short))))
49069         exit (1);
49070       fprintf (f, "%lu\n", i);
49071     }
49072   exit (ferror (f) || fclose (f) != 0);
49073
49074   ;
49075   return 0;
49076 }
49077 _ACEOF
49078 rm -f conftest$ac_exeext
49079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49080   (eval $ac_link) 2>&5
49081   ac_status=$?
49082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49085   (eval $ac_try) 2>&5
49086   ac_status=$?
49087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49088   (exit $ac_status); }; }; then
49089   ac_cv_sizeof_short=`cat conftest.val`
49090 else
49091   echo "$as_me: program exited with status $ac_status" >&5
49092 echo "$as_me: failed program was:" >&5
49093 sed 's/^/| /' conftest.$ac_ext >&5
49094
49095 ( exit $ac_status )
49096 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49097 See \`config.log' for more details." >&5
49098 echo "$as_me: error: cannot compute sizeof (short), 77
49099 See \`config.log' for more details." >&2;}
49100    { (exit 1); exit 1; }; }
49101 fi
49102 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49103 fi
49104 fi
49105 rm -f conftest.val
49106 else
49107   ac_cv_sizeof_short=0
49108 fi
49109 fi
49110 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49111 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49112 cat >>confdefs.h <<_ACEOF
49113 #define SIZEOF_SHORT $ac_cv_sizeof_short
49114 _ACEOF
49115
49116
49117 echo "$as_me:$LINENO: checking for int" >&5
49118 echo $ECHO_N "checking for int... $ECHO_C" >&6
49119 if test "${ac_cv_type_int+set}" = set; then
49120   echo $ECHO_N "(cached) $ECHO_C" >&6
49121 else
49122   cat >conftest.$ac_ext <<_ACEOF
49123 /* confdefs.h.  */
49124 _ACEOF
49125 cat confdefs.h >>conftest.$ac_ext
49126 cat >>conftest.$ac_ext <<_ACEOF
49127 /* end confdefs.h.  */
49128 $ac_includes_default
49129 int
49130 main ()
49131 {
49132 if ((int *) 0)
49133   return 0;
49134 if (sizeof (int))
49135   return 0;
49136   ;
49137   return 0;
49138 }
49139 _ACEOF
49140 rm -f conftest.$ac_objext
49141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49142   (eval $ac_compile) 2>conftest.er1
49143   ac_status=$?
49144   grep -v '^ *+' conftest.er1 >conftest.err
49145   rm -f conftest.er1
49146   cat conftest.err >&5
49147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49148   (exit $ac_status); } &&
49149          { ac_try='test -z "$ac_c_werror_flag"
49150                          || test ! -s conftest.err'
49151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49152   (eval $ac_try) 2>&5
49153   ac_status=$?
49154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49155   (exit $ac_status); }; } &&
49156          { ac_try='test -s conftest.$ac_objext'
49157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49158   (eval $ac_try) 2>&5
49159   ac_status=$?
49160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49161   (exit $ac_status); }; }; then
49162   ac_cv_type_int=yes
49163 else
49164   echo "$as_me: failed program was:" >&5
49165 sed 's/^/| /' conftest.$ac_ext >&5
49166
49167 ac_cv_type_int=no
49168 fi
49169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49170 fi
49171 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49172 echo "${ECHO_T}$ac_cv_type_int" >&6
49173
49174 echo "$as_me:$LINENO: checking size of int" >&5
49175 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49176 if test "${ac_cv_sizeof_int+set}" = set; then
49177   echo $ECHO_N "(cached) $ECHO_C" >&6
49178 else
49179   if test "$ac_cv_type_int" = yes; then
49180   # The cast to unsigned long works around a bug in the HP C Compiler
49181   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49182   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49183   # This bug is HP SR number 8606223364.
49184   if test "$cross_compiling" = yes; then
49185   # Depending upon the size, compute the lo and hi bounds.
49186 cat >conftest.$ac_ext <<_ACEOF
49187 /* confdefs.h.  */
49188 _ACEOF
49189 cat confdefs.h >>conftest.$ac_ext
49190 cat >>conftest.$ac_ext <<_ACEOF
49191 /* end confdefs.h.  */
49192 $ac_includes_default
49193 int
49194 main ()
49195 {
49196 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49197 test_array [0] = 0
49198
49199   ;
49200   return 0;
49201 }
49202 _ACEOF
49203 rm -f conftest.$ac_objext
49204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49205   (eval $ac_compile) 2>conftest.er1
49206   ac_status=$?
49207   grep -v '^ *+' conftest.er1 >conftest.err
49208   rm -f conftest.er1
49209   cat conftest.err >&5
49210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49211   (exit $ac_status); } &&
49212          { ac_try='test -z "$ac_c_werror_flag"
49213                          || test ! -s conftest.err'
49214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49215   (eval $ac_try) 2>&5
49216   ac_status=$?
49217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49218   (exit $ac_status); }; } &&
49219          { ac_try='test -s conftest.$ac_objext'
49220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49221   (eval $ac_try) 2>&5
49222   ac_status=$?
49223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49224   (exit $ac_status); }; }; then
49225   ac_lo=0 ac_mid=0
49226   while :; do
49227     cat >conftest.$ac_ext <<_ACEOF
49228 /* confdefs.h.  */
49229 _ACEOF
49230 cat confdefs.h >>conftest.$ac_ext
49231 cat >>conftest.$ac_ext <<_ACEOF
49232 /* end confdefs.h.  */
49233 $ac_includes_default
49234 int
49235 main ()
49236 {
49237 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49238 test_array [0] = 0
49239
49240   ;
49241   return 0;
49242 }
49243 _ACEOF
49244 rm -f conftest.$ac_objext
49245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49246   (eval $ac_compile) 2>conftest.er1
49247   ac_status=$?
49248   grep -v '^ *+' conftest.er1 >conftest.err
49249   rm -f conftest.er1
49250   cat conftest.err >&5
49251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49252   (exit $ac_status); } &&
49253          { ac_try='test -z "$ac_c_werror_flag"
49254                          || test ! -s conftest.err'
49255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49256   (eval $ac_try) 2>&5
49257   ac_status=$?
49258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49259   (exit $ac_status); }; } &&
49260          { ac_try='test -s conftest.$ac_objext'
49261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49262   (eval $ac_try) 2>&5
49263   ac_status=$?
49264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49265   (exit $ac_status); }; }; then
49266   ac_hi=$ac_mid; break
49267 else
49268   echo "$as_me: failed program was:" >&5
49269 sed 's/^/| /' conftest.$ac_ext >&5
49270
49271 ac_lo=`expr $ac_mid + 1`
49272                     if test $ac_lo -le $ac_mid; then
49273                       ac_lo= ac_hi=
49274                       break
49275                     fi
49276                     ac_mid=`expr 2 '*' $ac_mid + 1`
49277 fi
49278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49279   done
49280 else
49281   echo "$as_me: failed program was:" >&5
49282 sed 's/^/| /' conftest.$ac_ext >&5
49283
49284 cat >conftest.$ac_ext <<_ACEOF
49285 /* confdefs.h.  */
49286 _ACEOF
49287 cat confdefs.h >>conftest.$ac_ext
49288 cat >>conftest.$ac_ext <<_ACEOF
49289 /* end confdefs.h.  */
49290 $ac_includes_default
49291 int
49292 main ()
49293 {
49294 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49295 test_array [0] = 0
49296
49297   ;
49298   return 0;
49299 }
49300 _ACEOF
49301 rm -f conftest.$ac_objext
49302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49303   (eval $ac_compile) 2>conftest.er1
49304   ac_status=$?
49305   grep -v '^ *+' conftest.er1 >conftest.err
49306   rm -f conftest.er1
49307   cat conftest.err >&5
49308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49309   (exit $ac_status); } &&
49310          { ac_try='test -z "$ac_c_werror_flag"
49311                          || test ! -s conftest.err'
49312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49313   (eval $ac_try) 2>&5
49314   ac_status=$?
49315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49316   (exit $ac_status); }; } &&
49317          { ac_try='test -s conftest.$ac_objext'
49318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49319   (eval $ac_try) 2>&5
49320   ac_status=$?
49321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49322   (exit $ac_status); }; }; then
49323   ac_hi=-1 ac_mid=-1
49324   while :; do
49325     cat >conftest.$ac_ext <<_ACEOF
49326 /* confdefs.h.  */
49327 _ACEOF
49328 cat confdefs.h >>conftest.$ac_ext
49329 cat >>conftest.$ac_ext <<_ACEOF
49330 /* end confdefs.h.  */
49331 $ac_includes_default
49332 int
49333 main ()
49334 {
49335 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49336 test_array [0] = 0
49337
49338   ;
49339   return 0;
49340 }
49341 _ACEOF
49342 rm -f conftest.$ac_objext
49343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49344   (eval $ac_compile) 2>conftest.er1
49345   ac_status=$?
49346   grep -v '^ *+' conftest.er1 >conftest.err
49347   rm -f conftest.er1
49348   cat conftest.err >&5
49349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49350   (exit $ac_status); } &&
49351          { ac_try='test -z "$ac_c_werror_flag"
49352                          || test ! -s conftest.err'
49353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49354   (eval $ac_try) 2>&5
49355   ac_status=$?
49356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49357   (exit $ac_status); }; } &&
49358          { ac_try='test -s conftest.$ac_objext'
49359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49360   (eval $ac_try) 2>&5
49361   ac_status=$?
49362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49363   (exit $ac_status); }; }; then
49364   ac_lo=$ac_mid; break
49365 else
49366   echo "$as_me: failed program was:" >&5
49367 sed 's/^/| /' conftest.$ac_ext >&5
49368
49369 ac_hi=`expr '(' $ac_mid ')' - 1`
49370                        if test $ac_mid -le $ac_hi; then
49371                          ac_lo= ac_hi=
49372                          break
49373                        fi
49374                        ac_mid=`expr 2 '*' $ac_mid`
49375 fi
49376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49377   done
49378 else
49379   echo "$as_me: failed program was:" >&5
49380 sed 's/^/| /' conftest.$ac_ext >&5
49381
49382 ac_lo= ac_hi=
49383 fi
49384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49385 fi
49386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49387 # Binary search between lo and hi bounds.
49388 while test "x$ac_lo" != "x$ac_hi"; do
49389   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49390   cat >conftest.$ac_ext <<_ACEOF
49391 /* confdefs.h.  */
49392 _ACEOF
49393 cat confdefs.h >>conftest.$ac_ext
49394 cat >>conftest.$ac_ext <<_ACEOF
49395 /* end confdefs.h.  */
49396 $ac_includes_default
49397 int
49398 main ()
49399 {
49400 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49401 test_array [0] = 0
49402
49403   ;
49404   return 0;
49405 }
49406 _ACEOF
49407 rm -f conftest.$ac_objext
49408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49409   (eval $ac_compile) 2>conftest.er1
49410   ac_status=$?
49411   grep -v '^ *+' conftest.er1 >conftest.err
49412   rm -f conftest.er1
49413   cat conftest.err >&5
49414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49415   (exit $ac_status); } &&
49416          { ac_try='test -z "$ac_c_werror_flag"
49417                          || test ! -s conftest.err'
49418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49419   (eval $ac_try) 2>&5
49420   ac_status=$?
49421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49422   (exit $ac_status); }; } &&
49423          { ac_try='test -s conftest.$ac_objext'
49424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49425   (eval $ac_try) 2>&5
49426   ac_status=$?
49427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49428   (exit $ac_status); }; }; then
49429   ac_hi=$ac_mid
49430 else
49431   echo "$as_me: failed program was:" >&5
49432 sed 's/^/| /' conftest.$ac_ext >&5
49433
49434 ac_lo=`expr '(' $ac_mid ')' + 1`
49435 fi
49436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49437 done
49438 case $ac_lo in
49439 ?*) ac_cv_sizeof_int=$ac_lo;;
49440 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49441 See \`config.log' for more details." >&5
49442 echo "$as_me: error: cannot compute sizeof (int), 77
49443 See \`config.log' for more details." >&2;}
49444    { (exit 1); exit 1; }; } ;;
49445 esac
49446 else
49447   if test "$cross_compiling" = yes; then
49448   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49449 See \`config.log' for more details." >&5
49450 echo "$as_me: error: cannot run test program while cross compiling
49451 See \`config.log' for more details." >&2;}
49452    { (exit 1); exit 1; }; }
49453 else
49454   cat >conftest.$ac_ext <<_ACEOF
49455 /* confdefs.h.  */
49456 _ACEOF
49457 cat confdefs.h >>conftest.$ac_ext
49458 cat >>conftest.$ac_ext <<_ACEOF
49459 /* end confdefs.h.  */
49460 $ac_includes_default
49461 long longval () { return (long) (sizeof (int)); }
49462 unsigned long ulongval () { return (long) (sizeof (int)); }
49463 #include <stdio.h>
49464 #include <stdlib.h>
49465 int
49466 main ()
49467 {
49468
49469   FILE *f = fopen ("conftest.val", "w");
49470   if (! f)
49471     exit (1);
49472   if (((long) (sizeof (int))) < 0)
49473     {
49474       long i = longval ();
49475       if (i != ((long) (sizeof (int))))
49476         exit (1);
49477       fprintf (f, "%ld\n", i);
49478     }
49479   else
49480     {
49481       unsigned long i = ulongval ();
49482       if (i != ((long) (sizeof (int))))
49483         exit (1);
49484       fprintf (f, "%lu\n", i);
49485     }
49486   exit (ferror (f) || fclose (f) != 0);
49487
49488   ;
49489   return 0;
49490 }
49491 _ACEOF
49492 rm -f conftest$ac_exeext
49493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49494   (eval $ac_link) 2>&5
49495   ac_status=$?
49496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49499   (eval $ac_try) 2>&5
49500   ac_status=$?
49501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49502   (exit $ac_status); }; }; then
49503   ac_cv_sizeof_int=`cat conftest.val`
49504 else
49505   echo "$as_me: program exited with status $ac_status" >&5
49506 echo "$as_me: failed program was:" >&5
49507 sed 's/^/| /' conftest.$ac_ext >&5
49508
49509 ( exit $ac_status )
49510 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49511 See \`config.log' for more details." >&5
49512 echo "$as_me: error: cannot compute sizeof (int), 77
49513 See \`config.log' for more details." >&2;}
49514    { (exit 1); exit 1; }; }
49515 fi
49516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49517 fi
49518 fi
49519 rm -f conftest.val
49520 else
49521   ac_cv_sizeof_int=0
49522 fi
49523 fi
49524 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49525 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49526 cat >>confdefs.h <<_ACEOF
49527 #define SIZEOF_INT $ac_cv_sizeof_int
49528 _ACEOF
49529
49530
49531 echo "$as_me:$LINENO: checking for long" >&5
49532 echo $ECHO_N "checking for long... $ECHO_C" >&6
49533 if test "${ac_cv_type_long+set}" = set; then
49534   echo $ECHO_N "(cached) $ECHO_C" >&6
49535 else
49536   cat >conftest.$ac_ext <<_ACEOF
49537 /* confdefs.h.  */
49538 _ACEOF
49539 cat confdefs.h >>conftest.$ac_ext
49540 cat >>conftest.$ac_ext <<_ACEOF
49541 /* end confdefs.h.  */
49542 $ac_includes_default
49543 int
49544 main ()
49545 {
49546 if ((long *) 0)
49547   return 0;
49548 if (sizeof (long))
49549   return 0;
49550   ;
49551   return 0;
49552 }
49553 _ACEOF
49554 rm -f conftest.$ac_objext
49555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49556   (eval $ac_compile) 2>conftest.er1
49557   ac_status=$?
49558   grep -v '^ *+' conftest.er1 >conftest.err
49559   rm -f conftest.er1
49560   cat conftest.err >&5
49561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49562   (exit $ac_status); } &&
49563          { ac_try='test -z "$ac_c_werror_flag"
49564                          || test ! -s conftest.err'
49565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49566   (eval $ac_try) 2>&5
49567   ac_status=$?
49568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49569   (exit $ac_status); }; } &&
49570          { ac_try='test -s conftest.$ac_objext'
49571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49572   (eval $ac_try) 2>&5
49573   ac_status=$?
49574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49575   (exit $ac_status); }; }; then
49576   ac_cv_type_long=yes
49577 else
49578   echo "$as_me: failed program was:" >&5
49579 sed 's/^/| /' conftest.$ac_ext >&5
49580
49581 ac_cv_type_long=no
49582 fi
49583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49584 fi
49585 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49586 echo "${ECHO_T}$ac_cv_type_long" >&6
49587
49588 echo "$as_me:$LINENO: checking size of long" >&5
49589 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49590 if test "${ac_cv_sizeof_long+set}" = set; then
49591   echo $ECHO_N "(cached) $ECHO_C" >&6
49592 else
49593   if test "$ac_cv_type_long" = yes; then
49594   # The cast to unsigned long works around a bug in the HP C Compiler
49595   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49596   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49597   # This bug is HP SR number 8606223364.
49598   if test "$cross_compiling" = yes; then
49599   # Depending upon the size, compute the lo and hi bounds.
49600 cat >conftest.$ac_ext <<_ACEOF
49601 /* confdefs.h.  */
49602 _ACEOF
49603 cat confdefs.h >>conftest.$ac_ext
49604 cat >>conftest.$ac_ext <<_ACEOF
49605 /* end confdefs.h.  */
49606 $ac_includes_default
49607 int
49608 main ()
49609 {
49610 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49611 test_array [0] = 0
49612
49613   ;
49614   return 0;
49615 }
49616 _ACEOF
49617 rm -f conftest.$ac_objext
49618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49619   (eval $ac_compile) 2>conftest.er1
49620   ac_status=$?
49621   grep -v '^ *+' conftest.er1 >conftest.err
49622   rm -f conftest.er1
49623   cat conftest.err >&5
49624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49625   (exit $ac_status); } &&
49626          { ac_try='test -z "$ac_c_werror_flag"
49627                          || test ! -s conftest.err'
49628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49629   (eval $ac_try) 2>&5
49630   ac_status=$?
49631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49632   (exit $ac_status); }; } &&
49633          { ac_try='test -s conftest.$ac_objext'
49634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49635   (eval $ac_try) 2>&5
49636   ac_status=$?
49637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49638   (exit $ac_status); }; }; then
49639   ac_lo=0 ac_mid=0
49640   while :; do
49641     cat >conftest.$ac_ext <<_ACEOF
49642 /* confdefs.h.  */
49643 _ACEOF
49644 cat confdefs.h >>conftest.$ac_ext
49645 cat >>conftest.$ac_ext <<_ACEOF
49646 /* end confdefs.h.  */
49647 $ac_includes_default
49648 int
49649 main ()
49650 {
49651 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49652 test_array [0] = 0
49653
49654   ;
49655   return 0;
49656 }
49657 _ACEOF
49658 rm -f conftest.$ac_objext
49659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49660   (eval $ac_compile) 2>conftest.er1
49661   ac_status=$?
49662   grep -v '^ *+' conftest.er1 >conftest.err
49663   rm -f conftest.er1
49664   cat conftest.err >&5
49665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49666   (exit $ac_status); } &&
49667          { ac_try='test -z "$ac_c_werror_flag"
49668                          || test ! -s conftest.err'
49669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49670   (eval $ac_try) 2>&5
49671   ac_status=$?
49672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49673   (exit $ac_status); }; } &&
49674          { ac_try='test -s conftest.$ac_objext'
49675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49676   (eval $ac_try) 2>&5
49677   ac_status=$?
49678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49679   (exit $ac_status); }; }; then
49680   ac_hi=$ac_mid; break
49681 else
49682   echo "$as_me: failed program was:" >&5
49683 sed 's/^/| /' conftest.$ac_ext >&5
49684
49685 ac_lo=`expr $ac_mid + 1`
49686                     if test $ac_lo -le $ac_mid; then
49687                       ac_lo= ac_hi=
49688                       break
49689                     fi
49690                     ac_mid=`expr 2 '*' $ac_mid + 1`
49691 fi
49692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49693   done
49694 else
49695   echo "$as_me: failed program was:" >&5
49696 sed 's/^/| /' conftest.$ac_ext >&5
49697
49698 cat >conftest.$ac_ext <<_ACEOF
49699 /* confdefs.h.  */
49700 _ACEOF
49701 cat confdefs.h >>conftest.$ac_ext
49702 cat >>conftest.$ac_ext <<_ACEOF
49703 /* end confdefs.h.  */
49704 $ac_includes_default
49705 int
49706 main ()
49707 {
49708 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49709 test_array [0] = 0
49710
49711   ;
49712   return 0;
49713 }
49714 _ACEOF
49715 rm -f conftest.$ac_objext
49716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49717   (eval $ac_compile) 2>conftest.er1
49718   ac_status=$?
49719   grep -v '^ *+' conftest.er1 >conftest.err
49720   rm -f conftest.er1
49721   cat conftest.err >&5
49722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49723   (exit $ac_status); } &&
49724          { ac_try='test -z "$ac_c_werror_flag"
49725                          || test ! -s conftest.err'
49726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49727   (eval $ac_try) 2>&5
49728   ac_status=$?
49729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49730   (exit $ac_status); }; } &&
49731          { ac_try='test -s conftest.$ac_objext'
49732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49733   (eval $ac_try) 2>&5
49734   ac_status=$?
49735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49736   (exit $ac_status); }; }; then
49737   ac_hi=-1 ac_mid=-1
49738   while :; do
49739     cat >conftest.$ac_ext <<_ACEOF
49740 /* confdefs.h.  */
49741 _ACEOF
49742 cat confdefs.h >>conftest.$ac_ext
49743 cat >>conftest.$ac_ext <<_ACEOF
49744 /* end confdefs.h.  */
49745 $ac_includes_default
49746 int
49747 main ()
49748 {
49749 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49750 test_array [0] = 0
49751
49752   ;
49753   return 0;
49754 }
49755 _ACEOF
49756 rm -f conftest.$ac_objext
49757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49758   (eval $ac_compile) 2>conftest.er1
49759   ac_status=$?
49760   grep -v '^ *+' conftest.er1 >conftest.err
49761   rm -f conftest.er1
49762   cat conftest.err >&5
49763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49764   (exit $ac_status); } &&
49765          { ac_try='test -z "$ac_c_werror_flag"
49766                          || test ! -s conftest.err'
49767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49768   (eval $ac_try) 2>&5
49769   ac_status=$?
49770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49771   (exit $ac_status); }; } &&
49772          { ac_try='test -s conftest.$ac_objext'
49773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49774   (eval $ac_try) 2>&5
49775   ac_status=$?
49776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49777   (exit $ac_status); }; }; then
49778   ac_lo=$ac_mid; break
49779 else
49780   echo "$as_me: failed program was:" >&5
49781 sed 's/^/| /' conftest.$ac_ext >&5
49782
49783 ac_hi=`expr '(' $ac_mid ')' - 1`
49784                        if test $ac_mid -le $ac_hi; then
49785                          ac_lo= ac_hi=
49786                          break
49787                        fi
49788                        ac_mid=`expr 2 '*' $ac_mid`
49789 fi
49790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49791   done
49792 else
49793   echo "$as_me: failed program was:" >&5
49794 sed 's/^/| /' conftest.$ac_ext >&5
49795
49796 ac_lo= ac_hi=
49797 fi
49798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49799 fi
49800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49801 # Binary search between lo and hi bounds.
49802 while test "x$ac_lo" != "x$ac_hi"; do
49803   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49804   cat >conftest.$ac_ext <<_ACEOF
49805 /* confdefs.h.  */
49806 _ACEOF
49807 cat confdefs.h >>conftest.$ac_ext
49808 cat >>conftest.$ac_ext <<_ACEOF
49809 /* end confdefs.h.  */
49810 $ac_includes_default
49811 int
49812 main ()
49813 {
49814 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49815 test_array [0] = 0
49816
49817   ;
49818   return 0;
49819 }
49820 _ACEOF
49821 rm -f conftest.$ac_objext
49822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49823   (eval $ac_compile) 2>conftest.er1
49824   ac_status=$?
49825   grep -v '^ *+' conftest.er1 >conftest.err
49826   rm -f conftest.er1
49827   cat conftest.err >&5
49828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49829   (exit $ac_status); } &&
49830          { ac_try='test -z "$ac_c_werror_flag"
49831                          || test ! -s conftest.err'
49832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49833   (eval $ac_try) 2>&5
49834   ac_status=$?
49835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49836   (exit $ac_status); }; } &&
49837          { ac_try='test -s conftest.$ac_objext'
49838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49839   (eval $ac_try) 2>&5
49840   ac_status=$?
49841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49842   (exit $ac_status); }; }; then
49843   ac_hi=$ac_mid
49844 else
49845   echo "$as_me: failed program was:" >&5
49846 sed 's/^/| /' conftest.$ac_ext >&5
49847
49848 ac_lo=`expr '(' $ac_mid ')' + 1`
49849 fi
49850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49851 done
49852 case $ac_lo in
49853 ?*) ac_cv_sizeof_long=$ac_lo;;
49854 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49855 See \`config.log' for more details." >&5
49856 echo "$as_me: error: cannot compute sizeof (long), 77
49857 See \`config.log' for more details." >&2;}
49858    { (exit 1); exit 1; }; } ;;
49859 esac
49860 else
49861   if test "$cross_compiling" = yes; then
49862   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49863 See \`config.log' for more details." >&5
49864 echo "$as_me: error: cannot run test program while cross compiling
49865 See \`config.log' for more details." >&2;}
49866    { (exit 1); exit 1; }; }
49867 else
49868   cat >conftest.$ac_ext <<_ACEOF
49869 /* confdefs.h.  */
49870 _ACEOF
49871 cat confdefs.h >>conftest.$ac_ext
49872 cat >>conftest.$ac_ext <<_ACEOF
49873 /* end confdefs.h.  */
49874 $ac_includes_default
49875 long longval () { return (long) (sizeof (long)); }
49876 unsigned long ulongval () { return (long) (sizeof (long)); }
49877 #include <stdio.h>
49878 #include <stdlib.h>
49879 int
49880 main ()
49881 {
49882
49883   FILE *f = fopen ("conftest.val", "w");
49884   if (! f)
49885     exit (1);
49886   if (((long) (sizeof (long))) < 0)
49887     {
49888       long i = longval ();
49889       if (i != ((long) (sizeof (long))))
49890         exit (1);
49891       fprintf (f, "%ld\n", i);
49892     }
49893   else
49894     {
49895       unsigned long i = ulongval ();
49896       if (i != ((long) (sizeof (long))))
49897         exit (1);
49898       fprintf (f, "%lu\n", i);
49899     }
49900   exit (ferror (f) || fclose (f) != 0);
49901
49902   ;
49903   return 0;
49904 }
49905 _ACEOF
49906 rm -f conftest$ac_exeext
49907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49908   (eval $ac_link) 2>&5
49909   ac_status=$?
49910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49913   (eval $ac_try) 2>&5
49914   ac_status=$?
49915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49916   (exit $ac_status); }; }; then
49917   ac_cv_sizeof_long=`cat conftest.val`
49918 else
49919   echo "$as_me: program exited with status $ac_status" >&5
49920 echo "$as_me: failed program was:" >&5
49921 sed 's/^/| /' conftest.$ac_ext >&5
49922
49923 ( exit $ac_status )
49924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49925 See \`config.log' for more details." >&5
49926 echo "$as_me: error: cannot compute sizeof (long), 77
49927 See \`config.log' for more details." >&2;}
49928    { (exit 1); exit 1; }; }
49929 fi
49930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49931 fi
49932 fi
49933 rm -f conftest.val
49934 else
49935   ac_cv_sizeof_long=0
49936 fi
49937 fi
49938 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
49939 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
49940 cat >>confdefs.h <<_ACEOF
49941 #define SIZEOF_LONG $ac_cv_sizeof_long
49942 _ACEOF
49943
49944
49945 echo "$as_me:$LINENO: checking for wchar_t" >&5
49946 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
49947 if test "${ac_cv_type_wchar_t+set}" = set; then
49948   echo $ECHO_N "(cached) $ECHO_C" >&6
49949 else
49950   cat >conftest.$ac_ext <<_ACEOF
49951 /* confdefs.h.  */
49952 _ACEOF
49953 cat confdefs.h >>conftest.$ac_ext
49954 cat >>conftest.$ac_ext <<_ACEOF
49955 /* end confdefs.h.  */
49956 $ac_includes_default
49957 int
49958 main ()
49959 {
49960 if ((wchar_t *) 0)
49961   return 0;
49962 if (sizeof (wchar_t))
49963   return 0;
49964   ;
49965   return 0;
49966 }
49967 _ACEOF
49968 rm -f conftest.$ac_objext
49969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49970   (eval $ac_compile) 2>conftest.er1
49971   ac_status=$?
49972   grep -v '^ *+' conftest.er1 >conftest.err
49973   rm -f conftest.er1
49974   cat conftest.err >&5
49975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49976   (exit $ac_status); } &&
49977          { ac_try='test -z "$ac_c_werror_flag"
49978                          || test ! -s conftest.err'
49979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49980   (eval $ac_try) 2>&5
49981   ac_status=$?
49982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49983   (exit $ac_status); }; } &&
49984          { ac_try='test -s conftest.$ac_objext'
49985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49986   (eval $ac_try) 2>&5
49987   ac_status=$?
49988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49989   (exit $ac_status); }; }; then
49990   ac_cv_type_wchar_t=yes
49991 else
49992   echo "$as_me: failed program was:" >&5
49993 sed 's/^/| /' conftest.$ac_ext >&5
49994
49995 ac_cv_type_wchar_t=no
49996 fi
49997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49998 fi
49999 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50000 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50001
50002 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50003 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50004 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50005   echo $ECHO_N "(cached) $ECHO_C" >&6
50006 else
50007   if test "$ac_cv_type_wchar_t" = yes; then
50008   # The cast to unsigned long works around a bug in the HP C Compiler
50009   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50010   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50011   # This bug is HP SR number 8606223364.
50012   if test "$cross_compiling" = yes; then
50013   # Depending upon the size, compute the lo and hi bounds.
50014 cat >conftest.$ac_ext <<_ACEOF
50015 /* confdefs.h.  */
50016 _ACEOF
50017 cat confdefs.h >>conftest.$ac_ext
50018 cat >>conftest.$ac_ext <<_ACEOF
50019 /* end confdefs.h.  */
50020 $ac_includes_default
50021 int
50022 main ()
50023 {
50024 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50025 test_array [0] = 0
50026
50027   ;
50028   return 0;
50029 }
50030 _ACEOF
50031 rm -f conftest.$ac_objext
50032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50033   (eval $ac_compile) 2>conftest.er1
50034   ac_status=$?
50035   grep -v '^ *+' conftest.er1 >conftest.err
50036   rm -f conftest.er1
50037   cat conftest.err >&5
50038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50039   (exit $ac_status); } &&
50040          { ac_try='test -z "$ac_c_werror_flag"
50041                          || test ! -s conftest.err'
50042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50043   (eval $ac_try) 2>&5
50044   ac_status=$?
50045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50046   (exit $ac_status); }; } &&
50047          { ac_try='test -s conftest.$ac_objext'
50048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50049   (eval $ac_try) 2>&5
50050   ac_status=$?
50051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50052   (exit $ac_status); }; }; then
50053   ac_lo=0 ac_mid=0
50054   while :; do
50055     cat >conftest.$ac_ext <<_ACEOF
50056 /* confdefs.h.  */
50057 _ACEOF
50058 cat confdefs.h >>conftest.$ac_ext
50059 cat >>conftest.$ac_ext <<_ACEOF
50060 /* end confdefs.h.  */
50061 $ac_includes_default
50062 int
50063 main ()
50064 {
50065 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50066 test_array [0] = 0
50067
50068   ;
50069   return 0;
50070 }
50071 _ACEOF
50072 rm -f conftest.$ac_objext
50073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50074   (eval $ac_compile) 2>conftest.er1
50075   ac_status=$?
50076   grep -v '^ *+' conftest.er1 >conftest.err
50077   rm -f conftest.er1
50078   cat conftest.err >&5
50079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50080   (exit $ac_status); } &&
50081          { ac_try='test -z "$ac_c_werror_flag"
50082                          || test ! -s conftest.err'
50083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50084   (eval $ac_try) 2>&5
50085   ac_status=$?
50086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50087   (exit $ac_status); }; } &&
50088          { ac_try='test -s conftest.$ac_objext'
50089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50090   (eval $ac_try) 2>&5
50091   ac_status=$?
50092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50093   (exit $ac_status); }; }; then
50094   ac_hi=$ac_mid; break
50095 else
50096   echo "$as_me: failed program was:" >&5
50097 sed 's/^/| /' conftest.$ac_ext >&5
50098
50099 ac_lo=`expr $ac_mid + 1`
50100                     if test $ac_lo -le $ac_mid; then
50101                       ac_lo= ac_hi=
50102                       break
50103                     fi
50104                     ac_mid=`expr 2 '*' $ac_mid + 1`
50105 fi
50106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50107   done
50108 else
50109   echo "$as_me: failed program was:" >&5
50110 sed 's/^/| /' conftest.$ac_ext >&5
50111
50112 cat >conftest.$ac_ext <<_ACEOF
50113 /* confdefs.h.  */
50114 _ACEOF
50115 cat confdefs.h >>conftest.$ac_ext
50116 cat >>conftest.$ac_ext <<_ACEOF
50117 /* end confdefs.h.  */
50118 $ac_includes_default
50119 int
50120 main ()
50121 {
50122 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50123 test_array [0] = 0
50124
50125   ;
50126   return 0;
50127 }
50128 _ACEOF
50129 rm -f conftest.$ac_objext
50130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50131   (eval $ac_compile) 2>conftest.er1
50132   ac_status=$?
50133   grep -v '^ *+' conftest.er1 >conftest.err
50134   rm -f conftest.er1
50135   cat conftest.err >&5
50136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50137   (exit $ac_status); } &&
50138          { ac_try='test -z "$ac_c_werror_flag"
50139                          || test ! -s conftest.err'
50140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50141   (eval $ac_try) 2>&5
50142   ac_status=$?
50143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50144   (exit $ac_status); }; } &&
50145          { ac_try='test -s conftest.$ac_objext'
50146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50147   (eval $ac_try) 2>&5
50148   ac_status=$?
50149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50150   (exit $ac_status); }; }; then
50151   ac_hi=-1 ac_mid=-1
50152   while :; do
50153     cat >conftest.$ac_ext <<_ACEOF
50154 /* confdefs.h.  */
50155 _ACEOF
50156 cat confdefs.h >>conftest.$ac_ext
50157 cat >>conftest.$ac_ext <<_ACEOF
50158 /* end confdefs.h.  */
50159 $ac_includes_default
50160 int
50161 main ()
50162 {
50163 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50164 test_array [0] = 0
50165
50166   ;
50167   return 0;
50168 }
50169 _ACEOF
50170 rm -f conftest.$ac_objext
50171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50172   (eval $ac_compile) 2>conftest.er1
50173   ac_status=$?
50174   grep -v '^ *+' conftest.er1 >conftest.err
50175   rm -f conftest.er1
50176   cat conftest.err >&5
50177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50178   (exit $ac_status); } &&
50179          { ac_try='test -z "$ac_c_werror_flag"
50180                          || test ! -s conftest.err'
50181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50182   (eval $ac_try) 2>&5
50183   ac_status=$?
50184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50185   (exit $ac_status); }; } &&
50186          { ac_try='test -s conftest.$ac_objext'
50187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50188   (eval $ac_try) 2>&5
50189   ac_status=$?
50190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50191   (exit $ac_status); }; }; then
50192   ac_lo=$ac_mid; break
50193 else
50194   echo "$as_me: failed program was:" >&5
50195 sed 's/^/| /' conftest.$ac_ext >&5
50196
50197 ac_hi=`expr '(' $ac_mid ')' - 1`
50198                        if test $ac_mid -le $ac_hi; then
50199                          ac_lo= ac_hi=
50200                          break
50201                        fi
50202                        ac_mid=`expr 2 '*' $ac_mid`
50203 fi
50204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50205   done
50206 else
50207   echo "$as_me: failed program was:" >&5
50208 sed 's/^/| /' conftest.$ac_ext >&5
50209
50210 ac_lo= ac_hi=
50211 fi
50212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50213 fi
50214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50215 # Binary search between lo and hi bounds.
50216 while test "x$ac_lo" != "x$ac_hi"; do
50217   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50218   cat >conftest.$ac_ext <<_ACEOF
50219 /* confdefs.h.  */
50220 _ACEOF
50221 cat confdefs.h >>conftest.$ac_ext
50222 cat >>conftest.$ac_ext <<_ACEOF
50223 /* end confdefs.h.  */
50224 $ac_includes_default
50225 int
50226 main ()
50227 {
50228 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50229 test_array [0] = 0
50230
50231   ;
50232   return 0;
50233 }
50234 _ACEOF
50235 rm -f conftest.$ac_objext
50236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50237   (eval $ac_compile) 2>conftest.er1
50238   ac_status=$?
50239   grep -v '^ *+' conftest.er1 >conftest.err
50240   rm -f conftest.er1
50241   cat conftest.err >&5
50242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50243   (exit $ac_status); } &&
50244          { ac_try='test -z "$ac_c_werror_flag"
50245                          || test ! -s conftest.err'
50246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50247   (eval $ac_try) 2>&5
50248   ac_status=$?
50249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50250   (exit $ac_status); }; } &&
50251          { ac_try='test -s conftest.$ac_objext'
50252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50253   (eval $ac_try) 2>&5
50254   ac_status=$?
50255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50256   (exit $ac_status); }; }; then
50257   ac_hi=$ac_mid
50258 else
50259   echo "$as_me: failed program was:" >&5
50260 sed 's/^/| /' conftest.$ac_ext >&5
50261
50262 ac_lo=`expr '(' $ac_mid ')' + 1`
50263 fi
50264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50265 done
50266 case $ac_lo in
50267 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50268 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50269 See \`config.log' for more details." >&5
50270 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50271 See \`config.log' for more details." >&2;}
50272    { (exit 1); exit 1; }; } ;;
50273 esac
50274 else
50275   if test "$cross_compiling" = yes; then
50276   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50277 See \`config.log' for more details." >&5
50278 echo "$as_me: error: cannot run test program while cross compiling
50279 See \`config.log' for more details." >&2;}
50280    { (exit 1); exit 1; }; }
50281 else
50282   cat >conftest.$ac_ext <<_ACEOF
50283 /* confdefs.h.  */
50284 _ACEOF
50285 cat confdefs.h >>conftest.$ac_ext
50286 cat >>conftest.$ac_ext <<_ACEOF
50287 /* end confdefs.h.  */
50288 $ac_includes_default
50289 long longval () { return (long) (sizeof (wchar_t)); }
50290 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50291 #include <stdio.h>
50292 #include <stdlib.h>
50293 int
50294 main ()
50295 {
50296
50297   FILE *f = fopen ("conftest.val", "w");
50298   if (! f)
50299     exit (1);
50300   if (((long) (sizeof (wchar_t))) < 0)
50301     {
50302       long i = longval ();
50303       if (i != ((long) (sizeof (wchar_t))))
50304         exit (1);
50305       fprintf (f, "%ld\n", i);
50306     }
50307   else
50308     {
50309       unsigned long i = ulongval ();
50310       if (i != ((long) (sizeof (wchar_t))))
50311         exit (1);
50312       fprintf (f, "%lu\n", i);
50313     }
50314   exit (ferror (f) || fclose (f) != 0);
50315
50316   ;
50317   return 0;
50318 }
50319 _ACEOF
50320 rm -f conftest$ac_exeext
50321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50322   (eval $ac_link) 2>&5
50323   ac_status=$?
50324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50327   (eval $ac_try) 2>&5
50328   ac_status=$?
50329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50330   (exit $ac_status); }; }; then
50331   ac_cv_sizeof_wchar_t=`cat conftest.val`
50332 else
50333   echo "$as_me: program exited with status $ac_status" >&5
50334 echo "$as_me: failed program was:" >&5
50335 sed 's/^/| /' conftest.$ac_ext >&5
50336
50337 ( exit $ac_status )
50338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50339 See \`config.log' for more details." >&5
50340 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50341 See \`config.log' for more details." >&2;}
50342    { (exit 1); exit 1; }; }
50343 fi
50344 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50345 fi
50346 fi
50347 rm -f conftest.val
50348 else
50349   ac_cv_sizeof_wchar_t=0
50350 fi
50351 fi
50352 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50353 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50354 cat >>confdefs.h <<_ACEOF
50355 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50356 _ACEOF
50357
50358
50359
50360 if test "$ac_cv_sizeof_int" -lt 4 ; then
50361         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50362 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50363
50364
50365 cat >>confdefs.h <<\_ACEOF
50366 #define LBER_INT_T long
50367 _ACEOF
50368
50369 else
50370
50371 cat >>confdefs.h <<\_ACEOF
50372 #define LBER_INT_T int
50373 _ACEOF
50374
50375 fi
50376
50377
50378 cat >>confdefs.h <<\_ACEOF
50379 #define LBER_LEN_T long
50380 _ACEOF
50381
50382
50383 cat >>confdefs.h <<\_ACEOF
50384 #define LBER_SOCKET_T int
50385 _ACEOF
50386
50387
50388 cat >>confdefs.h <<\_ACEOF
50389 #define LBER_TAG_T long
50390 _ACEOF
50391
50392
50393 echo "$as_me:$LINENO: checking for working memcmp" >&5
50394 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50395 if test "${ac_cv_func_memcmp_working+set}" = set; then
50396   echo $ECHO_N "(cached) $ECHO_C" >&6
50397 else
50398   if test "$cross_compiling" = yes; then
50399   ac_cv_func_memcmp_working=no
50400 else
50401   cat >conftest.$ac_ext <<_ACEOF
50402 /* confdefs.h.  */
50403 _ACEOF
50404 cat confdefs.h >>conftest.$ac_ext
50405 cat >>conftest.$ac_ext <<_ACEOF
50406 /* end confdefs.h.  */
50407 $ac_includes_default
50408 int
50409 main ()
50410 {
50411
50412   /* Some versions of memcmp are not 8-bit clean.  */
50413   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50414   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50415     exit (1);
50416
50417   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50418      or more and with at least one buffer not starting on a 4-byte boundary.
50419      William Lewis provided this test program.   */
50420   {
50421     char foo[21];
50422     char bar[21];
50423     int i;
50424     for (i = 0; i < 4; i++)
50425       {
50426         char *a = foo + i;
50427         char *b = bar + i;
50428         strcpy (a, "--------01111111");
50429         strcpy (b, "--------10000000");
50430         if (memcmp (a, b, 16) >= 0)
50431           exit (1);
50432       }
50433     exit (0);
50434   }
50435
50436   ;
50437   return 0;
50438 }
50439 _ACEOF
50440 rm -f conftest$ac_exeext
50441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50442   (eval $ac_link) 2>&5
50443   ac_status=$?
50444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50447   (eval $ac_try) 2>&5
50448   ac_status=$?
50449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50450   (exit $ac_status); }; }; then
50451   ac_cv_func_memcmp_working=yes
50452 else
50453   echo "$as_me: program exited with status $ac_status" >&5
50454 echo "$as_me: failed program was:" >&5
50455 sed 's/^/| /' conftest.$ac_ext >&5
50456
50457 ( exit $ac_status )
50458 ac_cv_func_memcmp_working=no
50459 fi
50460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50461 fi
50462 fi
50463 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50464 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50465 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50466     "memcmp.$ac_objext"   | \
50467   *" memcmp.$ac_objext"   | \
50468     "memcmp.$ac_objext "* | \
50469   *" memcmp.$ac_objext "* ) ;;
50470   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50471 esac
50472
50473
50474
50475 if test $ac_cv_func_memcmp_working = no ; then
50476
50477 cat >>confdefs.h <<\_ACEOF
50478 #define NEED_MEMCMP_REPLACEMENT 1
50479 _ACEOF
50480
50481 fi
50482
50483
50484 for ac_func in strftime
50485 do
50486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50487 echo "$as_me:$LINENO: checking for $ac_func" >&5
50488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50489 if eval "test \"\${$as_ac_var+set}\" = set"; then
50490   echo $ECHO_N "(cached) $ECHO_C" >&6
50491 else
50492   cat >conftest.$ac_ext <<_ACEOF
50493 /* confdefs.h.  */
50494 _ACEOF
50495 cat confdefs.h >>conftest.$ac_ext
50496 cat >>conftest.$ac_ext <<_ACEOF
50497 /* end confdefs.h.  */
50498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50500 #define $ac_func innocuous_$ac_func
50501
50502 /* System header to define __stub macros and hopefully few prototypes,
50503     which can conflict with char $ac_func (); below.
50504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50505     <limits.h> exists even on freestanding compilers.  */
50506
50507 #ifdef __STDC__
50508 # include <limits.h>
50509 #else
50510 # include <assert.h>
50511 #endif
50512
50513 #undef $ac_func
50514
50515 /* Override any gcc2 internal prototype to avoid an error.  */
50516 #ifdef __cplusplus
50517 extern "C"
50518 {
50519 #endif
50520 /* We use char because int might match the return type of a gcc2
50521    builtin and then its argument prototype would still apply.  */
50522 char $ac_func ();
50523 /* The GNU C library defines this for functions which it implements
50524     to always fail with ENOSYS.  Some functions are actually named
50525     something starting with __ and the normal name is an alias.  */
50526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50527 choke me
50528 #else
50529 char (*f) () = $ac_func;
50530 #endif
50531 #ifdef __cplusplus
50532 }
50533 #endif
50534
50535 int
50536 main ()
50537 {
50538 return f != $ac_func;
50539   ;
50540   return 0;
50541 }
50542 _ACEOF
50543 rm -f conftest.$ac_objext conftest$ac_exeext
50544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50545   (eval $ac_link) 2>conftest.er1
50546   ac_status=$?
50547   grep -v '^ *+' conftest.er1 >conftest.err
50548   rm -f conftest.er1
50549   cat conftest.err >&5
50550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50551   (exit $ac_status); } &&
50552          { ac_try='test -z "$ac_c_werror_flag"
50553                          || test ! -s conftest.err'
50554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50555   (eval $ac_try) 2>&5
50556   ac_status=$?
50557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50558   (exit $ac_status); }; } &&
50559          { ac_try='test -s conftest$ac_exeext'
50560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50561   (eval $ac_try) 2>&5
50562   ac_status=$?
50563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50564   (exit $ac_status); }; }; then
50565   eval "$as_ac_var=yes"
50566 else
50567   echo "$as_me: failed program was:" >&5
50568 sed 's/^/| /' conftest.$ac_ext >&5
50569
50570 eval "$as_ac_var=no"
50571 fi
50572 rm -f conftest.err conftest.$ac_objext \
50573       conftest$ac_exeext conftest.$ac_ext
50574 fi
50575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50577 if test `eval echo '${'$as_ac_var'}'` = yes; then
50578   cat >>confdefs.h <<_ACEOF
50579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50580 _ACEOF
50581
50582 else
50583   # strftime is in -lintl on SCO UNIX.
50584 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50585 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50586 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50587   echo $ECHO_N "(cached) $ECHO_C" >&6
50588 else
50589   ac_check_lib_save_LIBS=$LIBS
50590 LIBS="-lintl  $LIBS"
50591 cat >conftest.$ac_ext <<_ACEOF
50592 /* confdefs.h.  */
50593 _ACEOF
50594 cat confdefs.h >>conftest.$ac_ext
50595 cat >>conftest.$ac_ext <<_ACEOF
50596 /* end confdefs.h.  */
50597
50598 /* Override any gcc2 internal prototype to avoid an error.  */
50599 #ifdef __cplusplus
50600 extern "C"
50601 #endif
50602 /* We use char because int might match the return type of a gcc2
50603    builtin and then its argument prototype would still apply.  */
50604 char strftime ();
50605 int
50606 main ()
50607 {
50608 strftime ();
50609   ;
50610   return 0;
50611 }
50612 _ACEOF
50613 rm -f conftest.$ac_objext conftest$ac_exeext
50614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50615   (eval $ac_link) 2>conftest.er1
50616   ac_status=$?
50617   grep -v '^ *+' conftest.er1 >conftest.err
50618   rm -f conftest.er1
50619   cat conftest.err >&5
50620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50621   (exit $ac_status); } &&
50622          { ac_try='test -z "$ac_c_werror_flag"
50623                          || test ! -s conftest.err'
50624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50625   (eval $ac_try) 2>&5
50626   ac_status=$?
50627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50628   (exit $ac_status); }; } &&
50629          { ac_try='test -s conftest$ac_exeext'
50630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50631   (eval $ac_try) 2>&5
50632   ac_status=$?
50633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50634   (exit $ac_status); }; }; then
50635   ac_cv_lib_intl_strftime=yes
50636 else
50637   echo "$as_me: failed program was:" >&5
50638 sed 's/^/| /' conftest.$ac_ext >&5
50639
50640 ac_cv_lib_intl_strftime=no
50641 fi
50642 rm -f conftest.err conftest.$ac_objext \
50643       conftest$ac_exeext conftest.$ac_ext
50644 LIBS=$ac_check_lib_save_LIBS
50645 fi
50646 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50647 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50648 if test $ac_cv_lib_intl_strftime = yes; then
50649   cat >>confdefs.h <<\_ACEOF
50650 #define HAVE_STRFTIME 1
50651 _ACEOF
50652
50653 LIBS="-lintl $LIBS"
50654 fi
50655
50656 fi
50657 done
50658
50659
50660 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50661 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50662 if test "${ol_cv_func_inet_aton+set}" = set; then
50663   echo $ECHO_N "(cached) $ECHO_C" >&6
50664 else
50665   cat >conftest.$ac_ext <<_ACEOF
50666 /* confdefs.h.  */
50667 _ACEOF
50668 cat confdefs.h >>conftest.$ac_ext
50669 cat >>conftest.$ac_ext <<_ACEOF
50670 /* end confdefs.h.  */
50671
50672 #ifdef HAVE_SYS_TYPES_H
50673 #       include <sys/types.h>
50674 #endif
50675 #ifdef HAVE_SYS_SOCKET_H
50676 #       include <sys/socket.h>
50677 #       ifdef HAVE_SYS_SELECT_H
50678 #               include <sys/select.h>
50679 #       endif
50680 #       include <netinet/in.h>
50681 #       ifdef HAVE_ARPA_INET_H
50682 #               include <arpa/inet.h>
50683 #       endif
50684 #endif
50685
50686 int
50687 main ()
50688 {
50689 struct in_addr in;
50690 int rc = inet_aton( "255.255.255.255", &in );
50691   ;
50692   return 0;
50693 }
50694 _ACEOF
50695 rm -f conftest.$ac_objext conftest$ac_exeext
50696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50697   (eval $ac_link) 2>conftest.er1
50698   ac_status=$?
50699   grep -v '^ *+' conftest.er1 >conftest.err
50700   rm -f conftest.er1
50701   cat conftest.err >&5
50702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50703   (exit $ac_status); } &&
50704          { ac_try='test -z "$ac_c_werror_flag"
50705                          || test ! -s conftest.err'
50706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50707   (eval $ac_try) 2>&5
50708   ac_status=$?
50709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50710   (exit $ac_status); }; } &&
50711          { ac_try='test -s conftest$ac_exeext'
50712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50713   (eval $ac_try) 2>&5
50714   ac_status=$?
50715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50716   (exit $ac_status); }; }; then
50717   ol_cv_func_inet_aton=yes
50718 else
50719   echo "$as_me: failed program was:" >&5
50720 sed 's/^/| /' conftest.$ac_ext >&5
50721
50722 ol_cv_func_inet_aton=no
50723 fi
50724 rm -f conftest.err conftest.$ac_objext \
50725       conftest$ac_exeext conftest.$ac_ext
50726 fi
50727 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50728 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50729   if test $ol_cv_func_inet_aton != no; then
50730
50731 cat >>confdefs.h <<\_ACEOF
50732 #define HAVE_INET_ATON 1
50733 _ACEOF
50734
50735   fi
50736
50737
50738 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50739 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50740 if test "${ac_cv_func__spawnlp+set}" = set; then
50741   echo $ECHO_N "(cached) $ECHO_C" >&6
50742 else
50743   cat >conftest.$ac_ext <<_ACEOF
50744 /* confdefs.h.  */
50745 _ACEOF
50746 cat confdefs.h >>conftest.$ac_ext
50747 cat >>conftest.$ac_ext <<_ACEOF
50748 /* end confdefs.h.  */
50749 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50751 #define _spawnlp innocuous__spawnlp
50752
50753 /* System header to define __stub macros and hopefully few prototypes,
50754     which can conflict with char _spawnlp (); below.
50755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50756     <limits.h> exists even on freestanding compilers.  */
50757
50758 #ifdef __STDC__
50759 # include <limits.h>
50760 #else
50761 # include <assert.h>
50762 #endif
50763
50764 #undef _spawnlp
50765
50766 /* Override any gcc2 internal prototype to avoid an error.  */
50767 #ifdef __cplusplus
50768 extern "C"
50769 {
50770 #endif
50771 /* We use char because int might match the return type of a gcc2
50772    builtin and then its argument prototype would still apply.  */
50773 char _spawnlp ();
50774 /* The GNU C library defines this for functions which it implements
50775     to always fail with ENOSYS.  Some functions are actually named
50776     something starting with __ and the normal name is an alias.  */
50777 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50778 choke me
50779 #else
50780 char (*f) () = _spawnlp;
50781 #endif
50782 #ifdef __cplusplus
50783 }
50784 #endif
50785
50786 int
50787 main ()
50788 {
50789 return f != _spawnlp;
50790   ;
50791   return 0;
50792 }
50793 _ACEOF
50794 rm -f conftest.$ac_objext conftest$ac_exeext
50795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50796   (eval $ac_link) 2>conftest.er1
50797   ac_status=$?
50798   grep -v '^ *+' conftest.er1 >conftest.err
50799   rm -f conftest.er1
50800   cat conftest.err >&5
50801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50802   (exit $ac_status); } &&
50803          { ac_try='test -z "$ac_c_werror_flag"
50804                          || test ! -s conftest.err'
50805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50806   (eval $ac_try) 2>&5
50807   ac_status=$?
50808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50809   (exit $ac_status); }; } &&
50810          { ac_try='test -s conftest$ac_exeext'
50811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50812   (eval $ac_try) 2>&5
50813   ac_status=$?
50814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50815   (exit $ac_status); }; }; then
50816   ac_cv_func__spawnlp=yes
50817 else
50818   echo "$as_me: failed program was:" >&5
50819 sed 's/^/| /' conftest.$ac_ext >&5
50820
50821 ac_cv_func__spawnlp=no
50822 fi
50823 rm -f conftest.err conftest.$ac_objext \
50824       conftest$ac_exeext conftest.$ac_ext
50825 fi
50826 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
50827 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
50828 if test $ac_cv_func__spawnlp = yes; then
50829
50830 cat >>confdefs.h <<\_ACEOF
50831 #define HAVE_SPAWNLP 1
50832 _ACEOF
50833
50834 fi
50835
50836
50837 echo "$as_me:$LINENO: checking for _snprintf" >&5
50838 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
50839 if test "${ac_cv_func__snprintf+set}" = set; then
50840   echo $ECHO_N "(cached) $ECHO_C" >&6
50841 else
50842   cat >conftest.$ac_ext <<_ACEOF
50843 /* confdefs.h.  */
50844 _ACEOF
50845 cat confdefs.h >>conftest.$ac_ext
50846 cat >>conftest.$ac_ext <<_ACEOF
50847 /* end confdefs.h.  */
50848 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
50849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50850 #define _snprintf innocuous__snprintf
50851
50852 /* System header to define __stub macros and hopefully few prototypes,
50853     which can conflict with char _snprintf (); below.
50854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50855     <limits.h> exists even on freestanding compilers.  */
50856
50857 #ifdef __STDC__
50858 # include <limits.h>
50859 #else
50860 # include <assert.h>
50861 #endif
50862
50863 #undef _snprintf
50864
50865 /* Override any gcc2 internal prototype to avoid an error.  */
50866 #ifdef __cplusplus
50867 extern "C"
50868 {
50869 #endif
50870 /* We use char because int might match the return type of a gcc2
50871    builtin and then its argument prototype would still apply.  */
50872 char _snprintf ();
50873 /* The GNU C library defines this for functions which it implements
50874     to always fail with ENOSYS.  Some functions are actually named
50875     something starting with __ and the normal name is an alias.  */
50876 #if defined (__stub__snprintf) || defined (__stub____snprintf)
50877 choke me
50878 #else
50879 char (*f) () = _snprintf;
50880 #endif
50881 #ifdef __cplusplus
50882 }
50883 #endif
50884
50885 int
50886 main ()
50887 {
50888 return f != _snprintf;
50889   ;
50890   return 0;
50891 }
50892 _ACEOF
50893 rm -f conftest.$ac_objext conftest$ac_exeext
50894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50895   (eval $ac_link) 2>conftest.er1
50896   ac_status=$?
50897   grep -v '^ *+' conftest.er1 >conftest.err
50898   rm -f conftest.er1
50899   cat conftest.err >&5
50900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50901   (exit $ac_status); } &&
50902          { ac_try='test -z "$ac_c_werror_flag"
50903                          || test ! -s conftest.err'
50904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50905   (eval $ac_try) 2>&5
50906   ac_status=$?
50907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50908   (exit $ac_status); }; } &&
50909          { ac_try='test -s conftest$ac_exeext'
50910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50911   (eval $ac_try) 2>&5
50912   ac_status=$?
50913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50914   (exit $ac_status); }; }; then
50915   ac_cv_func__snprintf=yes
50916 else
50917   echo "$as_me: failed program was:" >&5
50918 sed 's/^/| /' conftest.$ac_ext >&5
50919
50920 ac_cv_func__snprintf=no
50921 fi
50922 rm -f conftest.err conftest.$ac_objext \
50923       conftest$ac_exeext conftest.$ac_ext
50924 fi
50925 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
50926 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
50927 if test $ac_cv_func__snprintf = yes; then
50928   ac_cv_func_snprintf=yes
50929
50930 cat >>confdefs.h <<\_ACEOF
50931 #define snprintf _snprintf
50932 _ACEOF
50933
50934
50935 fi
50936
50937
50938 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
50939 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
50940 if test "${ac_cv_func__vsnprintf+set}" = set; then
50941   echo $ECHO_N "(cached) $ECHO_C" >&6
50942 else
50943   cat >conftest.$ac_ext <<_ACEOF
50944 /* confdefs.h.  */
50945 _ACEOF
50946 cat confdefs.h >>conftest.$ac_ext
50947 cat >>conftest.$ac_ext <<_ACEOF
50948 /* end confdefs.h.  */
50949 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
50950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50951 #define _vsnprintf innocuous__vsnprintf
50952
50953 /* System header to define __stub macros and hopefully few prototypes,
50954     which can conflict with char _vsnprintf (); below.
50955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50956     <limits.h> exists even on freestanding compilers.  */
50957
50958 #ifdef __STDC__
50959 # include <limits.h>
50960 #else
50961 # include <assert.h>
50962 #endif
50963
50964 #undef _vsnprintf
50965
50966 /* Override any gcc2 internal prototype to avoid an error.  */
50967 #ifdef __cplusplus
50968 extern "C"
50969 {
50970 #endif
50971 /* We use char because int might match the return type of a gcc2
50972    builtin and then its argument prototype would still apply.  */
50973 char _vsnprintf ();
50974 /* The GNU C library defines this for functions which it implements
50975     to always fail with ENOSYS.  Some functions are actually named
50976     something starting with __ and the normal name is an alias.  */
50977 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
50978 choke me
50979 #else
50980 char (*f) () = _vsnprintf;
50981 #endif
50982 #ifdef __cplusplus
50983 }
50984 #endif
50985
50986 int
50987 main ()
50988 {
50989 return f != _vsnprintf;
50990   ;
50991   return 0;
50992 }
50993 _ACEOF
50994 rm -f conftest.$ac_objext conftest$ac_exeext
50995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50996   (eval $ac_link) 2>conftest.er1
50997   ac_status=$?
50998   grep -v '^ *+' conftest.er1 >conftest.err
50999   rm -f conftest.er1
51000   cat conftest.err >&5
51001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51002   (exit $ac_status); } &&
51003          { ac_try='test -z "$ac_c_werror_flag"
51004                          || test ! -s conftest.err'
51005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51006   (eval $ac_try) 2>&5
51007   ac_status=$?
51008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51009   (exit $ac_status); }; } &&
51010          { ac_try='test -s conftest$ac_exeext'
51011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51012   (eval $ac_try) 2>&5
51013   ac_status=$?
51014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51015   (exit $ac_status); }; }; then
51016   ac_cv_func__vsnprintf=yes
51017 else
51018   echo "$as_me: failed program was:" >&5
51019 sed 's/^/| /' conftest.$ac_ext >&5
51020
51021 ac_cv_func__vsnprintf=no
51022 fi
51023 rm -f conftest.err conftest.$ac_objext \
51024       conftest$ac_exeext conftest.$ac_ext
51025 fi
51026 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51027 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51028 if test $ac_cv_func__vsnprintf = yes; then
51029   ac_cv_func_vsnprintf=yes
51030
51031 cat >>confdefs.h <<\_ACEOF
51032 #define vsnprintf _vsnprintf
51033 _ACEOF
51034
51035
51036 fi
51037
51038
51039
51040 for ac_func in vprintf
51041 do
51042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51043 echo "$as_me:$LINENO: checking for $ac_func" >&5
51044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51045 if eval "test \"\${$as_ac_var+set}\" = set"; then
51046   echo $ECHO_N "(cached) $ECHO_C" >&6
51047 else
51048   cat >conftest.$ac_ext <<_ACEOF
51049 /* confdefs.h.  */
51050 _ACEOF
51051 cat confdefs.h >>conftest.$ac_ext
51052 cat >>conftest.$ac_ext <<_ACEOF
51053 /* end confdefs.h.  */
51054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51056 #define $ac_func innocuous_$ac_func
51057
51058 /* System header to define __stub macros and hopefully few prototypes,
51059     which can conflict with char $ac_func (); below.
51060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51061     <limits.h> exists even on freestanding compilers.  */
51062
51063 #ifdef __STDC__
51064 # include <limits.h>
51065 #else
51066 # include <assert.h>
51067 #endif
51068
51069 #undef $ac_func
51070
51071 /* Override any gcc2 internal prototype to avoid an error.  */
51072 #ifdef __cplusplus
51073 extern "C"
51074 {
51075 #endif
51076 /* We use char because int might match the return type of a gcc2
51077    builtin and then its argument prototype would still apply.  */
51078 char $ac_func ();
51079 /* The GNU C library defines this for functions which it implements
51080     to always fail with ENOSYS.  Some functions are actually named
51081     something starting with __ and the normal name is an alias.  */
51082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51083 choke me
51084 #else
51085 char (*f) () = $ac_func;
51086 #endif
51087 #ifdef __cplusplus
51088 }
51089 #endif
51090
51091 int
51092 main ()
51093 {
51094 return f != $ac_func;
51095   ;
51096   return 0;
51097 }
51098 _ACEOF
51099 rm -f conftest.$ac_objext conftest$ac_exeext
51100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51101   (eval $ac_link) 2>conftest.er1
51102   ac_status=$?
51103   grep -v '^ *+' conftest.er1 >conftest.err
51104   rm -f conftest.er1
51105   cat conftest.err >&5
51106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51107   (exit $ac_status); } &&
51108          { ac_try='test -z "$ac_c_werror_flag"
51109                          || test ! -s conftest.err'
51110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51111   (eval $ac_try) 2>&5
51112   ac_status=$?
51113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51114   (exit $ac_status); }; } &&
51115          { ac_try='test -s conftest$ac_exeext'
51116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51117   (eval $ac_try) 2>&5
51118   ac_status=$?
51119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51120   (exit $ac_status); }; }; then
51121   eval "$as_ac_var=yes"
51122 else
51123   echo "$as_me: failed program was:" >&5
51124 sed 's/^/| /' conftest.$ac_ext >&5
51125
51126 eval "$as_ac_var=no"
51127 fi
51128 rm -f conftest.err conftest.$ac_objext \
51129       conftest$ac_exeext conftest.$ac_ext
51130 fi
51131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51133 if test `eval echo '${'$as_ac_var'}'` = yes; then
51134   cat >>confdefs.h <<_ACEOF
51135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51136 _ACEOF
51137
51138 echo "$as_me:$LINENO: checking for _doprnt" >&5
51139 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51140 if test "${ac_cv_func__doprnt+set}" = set; then
51141   echo $ECHO_N "(cached) $ECHO_C" >&6
51142 else
51143   cat >conftest.$ac_ext <<_ACEOF
51144 /* confdefs.h.  */
51145 _ACEOF
51146 cat confdefs.h >>conftest.$ac_ext
51147 cat >>conftest.$ac_ext <<_ACEOF
51148 /* end confdefs.h.  */
51149 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51151 #define _doprnt innocuous__doprnt
51152
51153 /* System header to define __stub macros and hopefully few prototypes,
51154     which can conflict with char _doprnt (); below.
51155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51156     <limits.h> exists even on freestanding compilers.  */
51157
51158 #ifdef __STDC__
51159 # include <limits.h>
51160 #else
51161 # include <assert.h>
51162 #endif
51163
51164 #undef _doprnt
51165
51166 /* Override any gcc2 internal prototype to avoid an error.  */
51167 #ifdef __cplusplus
51168 extern "C"
51169 {
51170 #endif
51171 /* We use char because int might match the return type of a gcc2
51172    builtin and then its argument prototype would still apply.  */
51173 char _doprnt ();
51174 /* The GNU C library defines this for functions which it implements
51175     to always fail with ENOSYS.  Some functions are actually named
51176     something starting with __ and the normal name is an alias.  */
51177 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51178 choke me
51179 #else
51180 char (*f) () = _doprnt;
51181 #endif
51182 #ifdef __cplusplus
51183 }
51184 #endif
51185
51186 int
51187 main ()
51188 {
51189 return f != _doprnt;
51190   ;
51191   return 0;
51192 }
51193 _ACEOF
51194 rm -f conftest.$ac_objext conftest$ac_exeext
51195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51196   (eval $ac_link) 2>conftest.er1
51197   ac_status=$?
51198   grep -v '^ *+' conftest.er1 >conftest.err
51199   rm -f conftest.er1
51200   cat conftest.err >&5
51201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51202   (exit $ac_status); } &&
51203          { ac_try='test -z "$ac_c_werror_flag"
51204                          || test ! -s conftest.err'
51205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51206   (eval $ac_try) 2>&5
51207   ac_status=$?
51208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51209   (exit $ac_status); }; } &&
51210          { ac_try='test -s conftest$ac_exeext'
51211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51212   (eval $ac_try) 2>&5
51213   ac_status=$?
51214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51215   (exit $ac_status); }; }; then
51216   ac_cv_func__doprnt=yes
51217 else
51218   echo "$as_me: failed program was:" >&5
51219 sed 's/^/| /' conftest.$ac_ext >&5
51220
51221 ac_cv_func__doprnt=no
51222 fi
51223 rm -f conftest.err conftest.$ac_objext \
51224       conftest$ac_exeext conftest.$ac_ext
51225 fi
51226 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51227 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51228 if test $ac_cv_func__doprnt = yes; then
51229
51230 cat >>confdefs.h <<\_ACEOF
51231 #define HAVE_DOPRNT 1
51232 _ACEOF
51233
51234 fi
51235
51236 fi
51237 done
51238
51239
51240
51241 if test $ac_cv_func_vprintf = yes ; then
51242
51243
51244 for ac_func in snprintf vsnprintf
51245 do
51246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51247 echo "$as_me:$LINENO: checking for $ac_func" >&5
51248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51249 if eval "test \"\${$as_ac_var+set}\" = set"; then
51250   echo $ECHO_N "(cached) $ECHO_C" >&6
51251 else
51252   cat >conftest.$ac_ext <<_ACEOF
51253 /* confdefs.h.  */
51254 _ACEOF
51255 cat confdefs.h >>conftest.$ac_ext
51256 cat >>conftest.$ac_ext <<_ACEOF
51257 /* end confdefs.h.  */
51258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51260 #define $ac_func innocuous_$ac_func
51261
51262 /* System header to define __stub macros and hopefully few prototypes,
51263     which can conflict with char $ac_func (); below.
51264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51265     <limits.h> exists even on freestanding compilers.  */
51266
51267 #ifdef __STDC__
51268 # include <limits.h>
51269 #else
51270 # include <assert.h>
51271 #endif
51272
51273 #undef $ac_func
51274
51275 /* Override any gcc2 internal prototype to avoid an error.  */
51276 #ifdef __cplusplus
51277 extern "C"
51278 {
51279 #endif
51280 /* We use char because int might match the return type of a gcc2
51281    builtin and then its argument prototype would still apply.  */
51282 char $ac_func ();
51283 /* The GNU C library defines this for functions which it implements
51284     to always fail with ENOSYS.  Some functions are actually named
51285     something starting with __ and the normal name is an alias.  */
51286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51287 choke me
51288 #else
51289 char (*f) () = $ac_func;
51290 #endif
51291 #ifdef __cplusplus
51292 }
51293 #endif
51294
51295 int
51296 main ()
51297 {
51298 return f != $ac_func;
51299   ;
51300   return 0;
51301 }
51302 _ACEOF
51303 rm -f conftest.$ac_objext conftest$ac_exeext
51304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51305   (eval $ac_link) 2>conftest.er1
51306   ac_status=$?
51307   grep -v '^ *+' conftest.er1 >conftest.err
51308   rm -f conftest.er1
51309   cat conftest.err >&5
51310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51311   (exit $ac_status); } &&
51312          { ac_try='test -z "$ac_c_werror_flag"
51313                          || test ! -s conftest.err'
51314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51315   (eval $ac_try) 2>&5
51316   ac_status=$?
51317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51318   (exit $ac_status); }; } &&
51319          { ac_try='test -s conftest$ac_exeext'
51320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51321   (eval $ac_try) 2>&5
51322   ac_status=$?
51323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51324   (exit $ac_status); }; }; then
51325   eval "$as_ac_var=yes"
51326 else
51327   echo "$as_me: failed program was:" >&5
51328 sed 's/^/| /' conftest.$ac_ext >&5
51329
51330 eval "$as_ac_var=no"
51331 fi
51332 rm -f conftest.err conftest.$ac_objext \
51333       conftest$ac_exeext conftest.$ac_ext
51334 fi
51335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51337 if test `eval echo '${'$as_ac_var'}'` = yes; then
51338   cat >>confdefs.h <<_ACEOF
51339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51340 _ACEOF
51341
51342 fi
51343 done
51344
51345 fi
51346
51347
51348
51349
51350
51351
51352
51353
51354
51355
51356
51357
51358
51359
51360
51361
51362
51363
51364
51365
51366
51367
51368
51369
51370
51371
51372
51373
51374
51375
51376
51377
51378
51379
51380
51381
51382
51383
51384
51385
51386
51387
51388
51389
51390
51391
51392
51393
51394
51395
51396
51397
51398
51399
51400 for ac_func in \
51401         bcopy                   \
51402         closesocket             \
51403         chroot                  \
51404         endgrent                \
51405         endpwent                \
51406         fcntl                   \
51407         flock                   \
51408         fstat                   \
51409         getdtablesize   \
51410         getgrgid                \
51411         gethostname             \
51412         getpass                 \
51413         getpassphrase   \
51414         getpwuid                \
51415         getpwnam                \
51416         getspnam                \
51417         gettimeofday    \
51418         initgroups              \
51419         lockf                   \
51420         memcpy                  \
51421         memmove                 \
51422         mkstemp                 \
51423         mktemp                  \
51424         pipe                    \
51425         read                    \
51426         recv                    \
51427         recvfrom                \
51428         setpwfile               \
51429         setgid                  \
51430         setegid                 \
51431         setsid                  \
51432         setuid                  \
51433         seteuid                 \
51434         signal                  \
51435         strdup                  \
51436         strpbrk                 \
51437         strrchr                 \
51438         strsep                  \
51439         strstr                  \
51440         strtol                  \
51441         strtoul                 \
51442         strtoq                  \
51443         strtouq                 \
51444         strtoll                 \
51445         strspn                  \
51446         sysconf                 \
51447         usleep                  \
51448         waitpid                 \
51449         wait4                   \
51450         write                   \
51451         send                    \
51452         sendmsg                 \
51453         sendto                  \
51454
51455 do
51456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51457 echo "$as_me:$LINENO: checking for $ac_func" >&5
51458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51459 if eval "test \"\${$as_ac_var+set}\" = set"; then
51460   echo $ECHO_N "(cached) $ECHO_C" >&6
51461 else
51462   cat >conftest.$ac_ext <<_ACEOF
51463 /* confdefs.h.  */
51464 _ACEOF
51465 cat confdefs.h >>conftest.$ac_ext
51466 cat >>conftest.$ac_ext <<_ACEOF
51467 /* end confdefs.h.  */
51468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51470 #define $ac_func innocuous_$ac_func
51471
51472 /* System header to define __stub macros and hopefully few prototypes,
51473     which can conflict with char $ac_func (); below.
51474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51475     <limits.h> exists even on freestanding compilers.  */
51476
51477 #ifdef __STDC__
51478 # include <limits.h>
51479 #else
51480 # include <assert.h>
51481 #endif
51482
51483 #undef $ac_func
51484
51485 /* Override any gcc2 internal prototype to avoid an error.  */
51486 #ifdef __cplusplus
51487 extern "C"
51488 {
51489 #endif
51490 /* We use char because int might match the return type of a gcc2
51491    builtin and then its argument prototype would still apply.  */
51492 char $ac_func ();
51493 /* The GNU C library defines this for functions which it implements
51494     to always fail with ENOSYS.  Some functions are actually named
51495     something starting with __ and the normal name is an alias.  */
51496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51497 choke me
51498 #else
51499 char (*f) () = $ac_func;
51500 #endif
51501 #ifdef __cplusplus
51502 }
51503 #endif
51504
51505 int
51506 main ()
51507 {
51508 return f != $ac_func;
51509   ;
51510   return 0;
51511 }
51512 _ACEOF
51513 rm -f conftest.$ac_objext conftest$ac_exeext
51514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51515   (eval $ac_link) 2>conftest.er1
51516   ac_status=$?
51517   grep -v '^ *+' conftest.er1 >conftest.err
51518   rm -f conftest.er1
51519   cat conftest.err >&5
51520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51521   (exit $ac_status); } &&
51522          { ac_try='test -z "$ac_c_werror_flag"
51523                          || test ! -s conftest.err'
51524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51525   (eval $ac_try) 2>&5
51526   ac_status=$?
51527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51528   (exit $ac_status); }; } &&
51529          { ac_try='test -s conftest$ac_exeext'
51530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51531   (eval $ac_try) 2>&5
51532   ac_status=$?
51533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51534   (exit $ac_status); }; }; then
51535   eval "$as_ac_var=yes"
51536 else
51537   echo "$as_me: failed program was:" >&5
51538 sed 's/^/| /' conftest.$ac_ext >&5
51539
51540 eval "$as_ac_var=no"
51541 fi
51542 rm -f conftest.err conftest.$ac_objext \
51543       conftest$ac_exeext conftest.$ac_ext
51544 fi
51545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51547 if test `eval echo '${'$as_ac_var'}'` = yes; then
51548   cat >>confdefs.h <<_ACEOF
51549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51550 _ACEOF
51551
51552 fi
51553 done
51554
51555
51556
51557
51558 for ac_func in getopt getpeereid
51559 do
51560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51561 echo "$as_me:$LINENO: checking for $ac_func" >&5
51562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51563 if eval "test \"\${$as_ac_var+set}\" = set"; then
51564   echo $ECHO_N "(cached) $ECHO_C" >&6
51565 else
51566   cat >conftest.$ac_ext <<_ACEOF
51567 /* confdefs.h.  */
51568 _ACEOF
51569 cat confdefs.h >>conftest.$ac_ext
51570 cat >>conftest.$ac_ext <<_ACEOF
51571 /* end confdefs.h.  */
51572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51574 #define $ac_func innocuous_$ac_func
51575
51576 /* System header to define __stub macros and hopefully few prototypes,
51577     which can conflict with char $ac_func (); below.
51578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51579     <limits.h> exists even on freestanding compilers.  */
51580
51581 #ifdef __STDC__
51582 # include <limits.h>
51583 #else
51584 # include <assert.h>
51585 #endif
51586
51587 #undef $ac_func
51588
51589 /* Override any gcc2 internal prototype to avoid an error.  */
51590 #ifdef __cplusplus
51591 extern "C"
51592 {
51593 #endif
51594 /* We use char because int might match the return type of a gcc2
51595    builtin and then its argument prototype would still apply.  */
51596 char $ac_func ();
51597 /* The GNU C library defines this for functions which it implements
51598     to always fail with ENOSYS.  Some functions are actually named
51599     something starting with __ and the normal name is an alias.  */
51600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51601 choke me
51602 #else
51603 char (*f) () = $ac_func;
51604 #endif
51605 #ifdef __cplusplus
51606 }
51607 #endif
51608
51609 int
51610 main ()
51611 {
51612 return f != $ac_func;
51613   ;
51614   return 0;
51615 }
51616 _ACEOF
51617 rm -f conftest.$ac_objext conftest$ac_exeext
51618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51619   (eval $ac_link) 2>conftest.er1
51620   ac_status=$?
51621   grep -v '^ *+' conftest.er1 >conftest.err
51622   rm -f conftest.er1
51623   cat conftest.err >&5
51624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51625   (exit $ac_status); } &&
51626          { ac_try='test -z "$ac_c_werror_flag"
51627                          || test ! -s conftest.err'
51628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51629   (eval $ac_try) 2>&5
51630   ac_status=$?
51631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51632   (exit $ac_status); }; } &&
51633          { ac_try='test -s conftest$ac_exeext'
51634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51635   (eval $ac_try) 2>&5
51636   ac_status=$?
51637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51638   (exit $ac_status); }; }; then
51639   eval "$as_ac_var=yes"
51640 else
51641   echo "$as_me: failed program was:" >&5
51642 sed 's/^/| /' conftest.$ac_ext >&5
51643
51644 eval "$as_ac_var=no"
51645 fi
51646 rm -f conftest.err conftest.$ac_objext \
51647       conftest$ac_exeext conftest.$ac_ext
51648 fi
51649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51651 if test `eval echo '${'$as_ac_var'}'` = yes; then
51652   cat >>confdefs.h <<_ACEOF
51653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51654 _ACEOF
51655
51656 else
51657   case $LIBOBJS in
51658     "$ac_func.$ac_objext"   | \
51659   *" $ac_func.$ac_objext"   | \
51660     "$ac_func.$ac_objext "* | \
51661   *" $ac_func.$ac_objext "* ) ;;
51662   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51663 esac
51664
51665 fi
51666 done
51667
51668
51669
51670 if test "$ac_cv_func_getopt" != yes; then
51671         LIBSRCS="$LIBSRCS getopt.c"
51672 fi
51673 if test "$ac_cv_func_getpeereid" != yes; then
51674         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51675 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51676 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51677   echo $ECHO_N "(cached) $ECHO_C" >&6
51678 else
51679   cat >conftest.$ac_ext <<_ACEOF
51680 /* confdefs.h.  */
51681 _ACEOF
51682 cat confdefs.h >>conftest.$ac_ext
51683 cat >>conftest.$ac_ext <<_ACEOF
51684 /* end confdefs.h.  */
51685 $ac_includes_default
51686 #ifdef HAVE_SYS_SOCKET_H
51687 #include <sys/socket.h>
51688 #endif
51689
51690 int
51691 main ()
51692 {
51693 static struct msghdr ac_aggr;
51694 if (ac_aggr.msg_accrightslen)
51695 return 0;
51696   ;
51697   return 0;
51698 }
51699 _ACEOF
51700 rm -f conftest.$ac_objext
51701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51702   (eval $ac_compile) 2>conftest.er1
51703   ac_status=$?
51704   grep -v '^ *+' conftest.er1 >conftest.err
51705   rm -f conftest.er1
51706   cat conftest.err >&5
51707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51708   (exit $ac_status); } &&
51709          { ac_try='test -z "$ac_c_werror_flag"
51710                          || test ! -s conftest.err'
51711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51712   (eval $ac_try) 2>&5
51713   ac_status=$?
51714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51715   (exit $ac_status); }; } &&
51716          { ac_try='test -s conftest.$ac_objext'
51717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51718   (eval $ac_try) 2>&5
51719   ac_status=$?
51720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51721   (exit $ac_status); }; }; then
51722   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51723 else
51724   echo "$as_me: failed program was:" >&5
51725 sed 's/^/| /' conftest.$ac_ext >&5
51726
51727 cat >conftest.$ac_ext <<_ACEOF
51728 /* confdefs.h.  */
51729 _ACEOF
51730 cat confdefs.h >>conftest.$ac_ext
51731 cat >>conftest.$ac_ext <<_ACEOF
51732 /* end confdefs.h.  */
51733 $ac_includes_default
51734 #ifdef HAVE_SYS_SOCKET_H
51735 #include <sys/socket.h>
51736 #endif
51737
51738 int
51739 main ()
51740 {
51741 static struct msghdr ac_aggr;
51742 if (sizeof ac_aggr.msg_accrightslen)
51743 return 0;
51744   ;
51745   return 0;
51746 }
51747 _ACEOF
51748 rm -f conftest.$ac_objext
51749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51750   (eval $ac_compile) 2>conftest.er1
51751   ac_status=$?
51752   grep -v '^ *+' conftest.er1 >conftest.err
51753   rm -f conftest.er1
51754   cat conftest.err >&5
51755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51756   (exit $ac_status); } &&
51757          { ac_try='test -z "$ac_c_werror_flag"
51758                          || test ! -s conftest.err'
51759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51760   (eval $ac_try) 2>&5
51761   ac_status=$?
51762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51763   (exit $ac_status); }; } &&
51764          { ac_try='test -s conftest.$ac_objext'
51765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51766   (eval $ac_try) 2>&5
51767   ac_status=$?
51768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51769   (exit $ac_status); }; }; then
51770   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51771 else
51772   echo "$as_me: failed program was:" >&5
51773 sed 's/^/| /' conftest.$ac_ext >&5
51774
51775 ac_cv_member_struct_msghdr_msg_accrightslen=no
51776 fi
51777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51778 fi
51779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51780 fi
51781 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
51782 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
51783 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
51784
51785 cat >>confdefs.h <<_ACEOF
51786 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
51787 _ACEOF
51788
51789
51790 fi
51791
51792         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
51793                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
51794 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
51795 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
51796   echo $ECHO_N "(cached) $ECHO_C" >&6
51797 else
51798   cat >conftest.$ac_ext <<_ACEOF
51799 /* confdefs.h.  */
51800 _ACEOF
51801 cat confdefs.h >>conftest.$ac_ext
51802 cat >>conftest.$ac_ext <<_ACEOF
51803 /* end confdefs.h.  */
51804 $ac_includes_default
51805 #ifdef HAVE_SYS_SOCKET_H
51806 #include <sys/socket.h>
51807 #endif
51808
51809 int
51810 main ()
51811 {
51812 static struct msghdr ac_aggr;
51813 if (ac_aggr.msg_control)
51814 return 0;
51815   ;
51816   return 0;
51817 }
51818 _ACEOF
51819 rm -f conftest.$ac_objext
51820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51821   (eval $ac_compile) 2>conftest.er1
51822   ac_status=$?
51823   grep -v '^ *+' conftest.er1 >conftest.err
51824   rm -f conftest.er1
51825   cat conftest.err >&5
51826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51827   (exit $ac_status); } &&
51828          { ac_try='test -z "$ac_c_werror_flag"
51829                          || test ! -s conftest.err'
51830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51831   (eval $ac_try) 2>&5
51832   ac_status=$?
51833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51834   (exit $ac_status); }; } &&
51835          { ac_try='test -s conftest.$ac_objext'
51836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51837   (eval $ac_try) 2>&5
51838   ac_status=$?
51839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51840   (exit $ac_status); }; }; then
51841   ac_cv_member_struct_msghdr_msg_control=yes
51842 else
51843   echo "$as_me: failed program was:" >&5
51844 sed 's/^/| /' conftest.$ac_ext >&5
51845
51846 cat >conftest.$ac_ext <<_ACEOF
51847 /* confdefs.h.  */
51848 _ACEOF
51849 cat confdefs.h >>conftest.$ac_ext
51850 cat >>conftest.$ac_ext <<_ACEOF
51851 /* end confdefs.h.  */
51852 $ac_includes_default
51853 #ifdef HAVE_SYS_SOCKET_H
51854 #include <sys/socket.h>
51855 #endif
51856
51857 int
51858 main ()
51859 {
51860 static struct msghdr ac_aggr;
51861 if (sizeof ac_aggr.msg_control)
51862 return 0;
51863   ;
51864   return 0;
51865 }
51866 _ACEOF
51867 rm -f conftest.$ac_objext
51868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51869   (eval $ac_compile) 2>conftest.er1
51870   ac_status=$?
51871   grep -v '^ *+' conftest.er1 >conftest.err
51872   rm -f conftest.er1
51873   cat conftest.err >&5
51874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51875   (exit $ac_status); } &&
51876          { ac_try='test -z "$ac_c_werror_flag"
51877                          || test ! -s conftest.err'
51878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51879   (eval $ac_try) 2>&5
51880   ac_status=$?
51881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51882   (exit $ac_status); }; } &&
51883          { ac_try='test -s conftest.$ac_objext'
51884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51885   (eval $ac_try) 2>&5
51886   ac_status=$?
51887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51888   (exit $ac_status); }; }; then
51889   ac_cv_member_struct_msghdr_msg_control=yes
51890 else
51891   echo "$as_me: failed program was:" >&5
51892 sed 's/^/| /' conftest.$ac_ext >&5
51893
51894 ac_cv_member_struct_msghdr_msg_control=no
51895 fi
51896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51897 fi
51898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51899 fi
51900 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
51901 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
51902 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
51903
51904 cat >>confdefs.h <<_ACEOF
51905 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
51906 _ACEOF
51907
51908
51909 fi
51910
51911         fi
51912         LIBSRCS="$LIBSRCS getpeereid.c"
51913 fi
51914 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
51915         if test "$ac_cv_func_snprintf" != yes; then
51916
51917 cat >>confdefs.h <<\_ACEOF
51918 #define snprintf ber_pvt_snprintf
51919 _ACEOF
51920
51921         fi
51922         if test "$ac_cv_func_vsnprintf" != yes; then
51923
51924 cat >>confdefs.h <<\_ACEOF
51925 #define vsnprintf ber_pvt_vsnprintf
51926 _ACEOF
51927
51928         fi
51929 fi
51930
51931
51932 if test "$ol_enable_slapi" != no ; then
51933
51934 for ac_header in ltdl.h
51935 do
51936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51938   echo "$as_me:$LINENO: checking for $ac_header" >&5
51939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51941   echo $ECHO_N "(cached) $ECHO_C" >&6
51942 fi
51943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51945 else
51946   # Is the header compilable?
51947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51949 cat >conftest.$ac_ext <<_ACEOF
51950 /* confdefs.h.  */
51951 _ACEOF
51952 cat confdefs.h >>conftest.$ac_ext
51953 cat >>conftest.$ac_ext <<_ACEOF
51954 /* end confdefs.h.  */
51955 $ac_includes_default
51956 #include <$ac_header>
51957 _ACEOF
51958 rm -f conftest.$ac_objext
51959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51960   (eval $ac_compile) 2>conftest.er1
51961   ac_status=$?
51962   grep -v '^ *+' conftest.er1 >conftest.err
51963   rm -f conftest.er1
51964   cat conftest.err >&5
51965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51966   (exit $ac_status); } &&
51967          { ac_try='test -z "$ac_c_werror_flag"
51968                          || test ! -s conftest.err'
51969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51970   (eval $ac_try) 2>&5
51971   ac_status=$?
51972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51973   (exit $ac_status); }; } &&
51974          { ac_try='test -s conftest.$ac_objext'
51975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51976   (eval $ac_try) 2>&5
51977   ac_status=$?
51978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51979   (exit $ac_status); }; }; then
51980   ac_header_compiler=yes
51981 else
51982   echo "$as_me: failed program was:" >&5
51983 sed 's/^/| /' conftest.$ac_ext >&5
51984
51985 ac_header_compiler=no
51986 fi
51987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51989 echo "${ECHO_T}$ac_header_compiler" >&6
51990
51991 # Is the header present?
51992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51994 cat >conftest.$ac_ext <<_ACEOF
51995 /* confdefs.h.  */
51996 _ACEOF
51997 cat confdefs.h >>conftest.$ac_ext
51998 cat >>conftest.$ac_ext <<_ACEOF
51999 /* end confdefs.h.  */
52000 #include <$ac_header>
52001 _ACEOF
52002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52004   ac_status=$?
52005   grep -v '^ *+' conftest.er1 >conftest.err
52006   rm -f conftest.er1
52007   cat conftest.err >&5
52008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52009   (exit $ac_status); } >/dev/null; then
52010   if test -s conftest.err; then
52011     ac_cpp_err=$ac_c_preproc_warn_flag
52012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52013   else
52014     ac_cpp_err=
52015   fi
52016 else
52017   ac_cpp_err=yes
52018 fi
52019 if test -z "$ac_cpp_err"; then
52020   ac_header_preproc=yes
52021 else
52022   echo "$as_me: failed program was:" >&5
52023 sed 's/^/| /' conftest.$ac_ext >&5
52024
52025   ac_header_preproc=no
52026 fi
52027 rm -f conftest.err conftest.$ac_ext
52028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52029 echo "${ECHO_T}$ac_header_preproc" >&6
52030
52031 # So?  What about this header?
52032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52033   yes:no: )
52034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52038     ac_header_preproc=yes
52039     ;;
52040   no:yes:* )
52041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52053     (
52054       cat <<\_ASBOX
52055 ## ------------------------------------------ ##
52056 ## Report this to the AC_PACKAGE_NAME lists.  ##
52057 ## ------------------------------------------ ##
52058 _ASBOX
52059     ) |
52060       sed "s/^/$as_me: WARNING:     /" >&2
52061     ;;
52062 esac
52063 echo "$as_me:$LINENO: checking for $ac_header" >&5
52064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52066   echo $ECHO_N "(cached) $ECHO_C" >&6
52067 else
52068   eval "$as_ac_Header=\$ac_header_preproc"
52069 fi
52070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52072
52073 fi
52074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52075   cat >>confdefs.h <<_ACEOF
52076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52077 _ACEOF
52078
52079 fi
52080
52081 done
52082
52083
52084         if test $ac_cv_header_ltdl_h != yes ; then
52085                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52086 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52087    { (exit 1); exit 1; }; }
52088         fi
52089         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52090 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52091 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52092   echo $ECHO_N "(cached) $ECHO_C" >&6
52093 else
52094   ac_check_lib_save_LIBS=$LIBS
52095 LIBS="-lltdl  $LIBS"
52096 cat >conftest.$ac_ext <<_ACEOF
52097 /* confdefs.h.  */
52098 _ACEOF
52099 cat confdefs.h >>conftest.$ac_ext
52100 cat >>conftest.$ac_ext <<_ACEOF
52101 /* end confdefs.h.  */
52102
52103 /* Override any gcc2 internal prototype to avoid an error.  */
52104 #ifdef __cplusplus
52105 extern "C"
52106 #endif
52107 /* We use char because int might match the return type of a gcc2
52108    builtin and then its argument prototype would still apply.  */
52109 char lt_dlinit ();
52110 int
52111 main ()
52112 {
52113 lt_dlinit ();
52114   ;
52115   return 0;
52116 }
52117 _ACEOF
52118 rm -f conftest.$ac_objext conftest$ac_exeext
52119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52120   (eval $ac_link) 2>conftest.er1
52121   ac_status=$?
52122   grep -v '^ *+' conftest.er1 >conftest.err
52123   rm -f conftest.er1
52124   cat conftest.err >&5
52125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52126   (exit $ac_status); } &&
52127          { ac_try='test -z "$ac_c_werror_flag"
52128                          || test ! -s conftest.err'
52129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52130   (eval $ac_try) 2>&5
52131   ac_status=$?
52132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52133   (exit $ac_status); }; } &&
52134          { ac_try='test -s conftest$ac_exeext'
52135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52136   (eval $ac_try) 2>&5
52137   ac_status=$?
52138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52139   (exit $ac_status); }; }; then
52140   ac_cv_lib_ltdl_lt_dlinit=yes
52141 else
52142   echo "$as_me: failed program was:" >&5
52143 sed 's/^/| /' conftest.$ac_ext >&5
52144
52145 ac_cv_lib_ltdl_lt_dlinit=no
52146 fi
52147 rm -f conftest.err conftest.$ac_objext \
52148       conftest$ac_exeext conftest.$ac_ext
52149 LIBS=$ac_check_lib_save_LIBS
52150 fi
52151 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52152 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52153 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52154
52155                 SLAPI_LIBS=-lltdl
52156                 LIBSLAPI=libslapi.a
52157                 LIBSLAPITOOLS=../libslapi.a
52158
52159 cat >>confdefs.h <<\_ACEOF
52160 #define HAVE_LIBLTDL 1
52161 _ACEOF
52162
52163
52164 else
52165   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52166 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52167    { (exit 1); exit 1; }; }
52168 fi
52169
52170
52171
52172 cat >>confdefs.h <<\_ACEOF
52173 #define LDAP_SLAPI 1
52174 _ACEOF
52175
52176 fi
52177
52178 if test "$ol_enable_debug" != no ; then
52179
52180 cat >>confdefs.h <<\_ACEOF
52181 #define LDAP_DEBUG 1
52182 _ACEOF
52183
52184 fi
52185 if test "$ol_enable_syslog" = yes ; then
52186
52187 cat >>confdefs.h <<\_ACEOF
52188 #define LDAP_SYSLOG 1
52189 _ACEOF
52190
52191 fi
52192 if test "$ol_link_kbind" != no ; then
52193
52194 cat >>confdefs.h <<\_ACEOF
52195 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52196 _ACEOF
52197
52198 fi
52199 if test "$ol_enable_proctitle" != no ; then
52200
52201 cat >>confdefs.h <<\_ACEOF
52202 #define LDAP_PROCTITLE 1
52203 _ACEOF
52204
52205 fi
52206 if test "$ol_enable_referrals" != no ; then
52207
52208 cat >>confdefs.h <<\_ACEOF
52209 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52210 _ACEOF
52211
52212 fi
52213 if test "$ol_enable_local" != no; then
52214
52215 cat >>confdefs.h <<\_ACEOF
52216 #define LDAP_PF_LOCAL 1
52217 _ACEOF
52218
52219 fi
52220 if test "$ol_link_ipv6" != no; then
52221
52222 cat >>confdefs.h <<\_ACEOF
52223 #define LDAP_PF_INET6 1
52224 _ACEOF
52225
52226 fi
52227 if test "$ol_enable_cleartext" != no ; then
52228
52229 cat >>confdefs.h <<\_ACEOF
52230 #define SLAPD_CLEARTEXT 1
52231 _ACEOF
52232
52233 fi
52234 if test "$ol_enable_crypt" != no ; then
52235
52236 cat >>confdefs.h <<\_ACEOF
52237 #define SLAPD_CRYPT 1
52238 _ACEOF
52239
52240 fi
52241 if test "$ol_link_spasswd" != no ; then
52242
52243 cat >>confdefs.h <<\_ACEOF
52244 #define SLAPD_SPASSWD 1
52245 _ACEOF
52246
52247 fi
52248 if test "$ol_enable_multimaster" != no ; then
52249
52250 cat >>confdefs.h <<\_ACEOF
52251 #define SLAPD_MULTIMASTER 1
52252 _ACEOF
52253
52254 fi
52255 if test "$ol_enable_rlookups" != no ; then
52256
52257 cat >>confdefs.h <<\_ACEOF
52258 #define SLAPD_RLOOKUPS 1
52259 _ACEOF
52260
52261 fi
52262 if test "$ol_enable_aci" != no ; then
52263
52264 cat >>confdefs.h <<\_ACEOF
52265 #define SLAPD_ACI_ENABLED 1
52266 _ACEOF
52267
52268 fi
52269
52270 if test "$ol_link_modules" != no ; then
52271
52272 cat >>confdefs.h <<\_ACEOF
52273 #define SLAPD_MODULES 1
52274 _ACEOF
52275
52276         BUILD_SLAPD=yes
52277         SLAPD_MODULES_LDFLAGS="-dlopen self"
52278 fi
52279
52280
52281 cat >>confdefs.h <<\_ACEOF
52282 #define SLAPD_MOD_STATIC 1
52283 _ACEOF
52284
52285
52286 cat >>confdefs.h <<\_ACEOF
52287 #define SLAPD_MOD_DYNAMIC 2
52288 _ACEOF
52289
52290
52291 if test "$ol_enable_bdb" != no ; then
52292         BUILD_SLAPD=yes
52293         BUILD_BDB=$ol_enable_bdb
52294         if test "$ol_enable_bdb" = mod ; then
52295                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52296                 MFLAG=SLAPD_MOD_DYNAMIC
52297         else
52298                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52299                 MFLAG=SLAPD_MOD_STATIC
52300         fi
52301
52302 cat >>confdefs.h <<_ACEOF
52303 #define SLAPD_BDB $MFLAG
52304 _ACEOF
52305
52306 fi
52307
52308 if test "$ol_enable_dnssrv" != no ; then
52309         BUILD_SLAPD=yes
52310         BUILD_DNSSRV=$ol_enable_dnssrv
52311         if test "$ol_enable_dnssrv" = mod ; then
52312                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52313                 MFLAG=SLAPD_MOD_DYNAMIC
52314         else
52315                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52316                 MFLAG=SLAPD_MOD_STATIC
52317         fi
52318
52319 cat >>confdefs.h <<_ACEOF
52320 #define SLAPD_DNSSRV $MFLAG
52321 _ACEOF
52322
52323 fi
52324
52325 if test "$ol_enable_hdb" != no ; then
52326         BUILD_SLAPD=yes
52327         BUILD_HDB=$ol_enable_hdb
52328         if test "$ol_enable_hdb" = mod ; then
52329                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52330                 MFLAG=SLAPD_MOD_DYNAMIC
52331         else
52332                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52333                 MFLAG=SLAPD_MOD_STATIC
52334         fi
52335
52336 cat >>confdefs.h <<_ACEOF
52337 #define SLAPD_HDB $MFLAG
52338 _ACEOF
52339
52340 fi
52341
52342 if test "$ol_enable_ldap" != no ; then
52343         BUILD_SLAPD=yes
52344         BUILD_LDAP=$ol_enable_ldap
52345         if test "$ol_enable_ldap" = mod ; then
52346                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52347                 MFLAG=SLAPD_MOD_DYNAMIC
52348         else
52349                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52350                 MFLAG=SLAPD_MOD_STATIC
52351         fi
52352
52353 cat >>confdefs.h <<_ACEOF
52354 #define SLAPD_LDAP $MFLAG
52355 _ACEOF
52356
52357 fi
52358
52359 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52360         BUILD_SLAPD=yes
52361         BUILD_LDBM=$ol_enable_ldbm
52362         if test "$ol_enable_ldbm" = mod ; then
52363                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52364                 MFLAG=SLAPD_MOD_DYNAMIC
52365         else
52366                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52367                 MFLAG=SLAPD_MOD_STATIC
52368         fi
52369
52370 cat >>confdefs.h <<_ACEOF
52371 #define SLAPD_LDBM $MFLAG
52372 _ACEOF
52373
52374 fi
52375
52376 if test "$ol_enable_meta" != no ; then
52377         BUILD_SLAPD=yes
52378         BUILD_META=$ol_enable_meta
52379         BUILD_REWRITE=yes
52380         if test "$ol_enable_meta" = mod ; then
52381                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52382                 MFLAG=SLAPD_MOD_DYNAMIC
52383         else
52384                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52385                 MFLAG=SLAPD_MOD_STATIC
52386         fi
52387
52388 cat >>confdefs.h <<_ACEOF
52389 #define SLAPD_META $MFLAG
52390 _ACEOF
52391
52392 fi
52393
52394 if test "$ol_enable_monitor" != no ; then
52395         BUILD_SLAPD=yes
52396         BUILD_MONITOR=$ol_enable_monitor
52397         if test "$ol_enable_monitor" = mod ; then
52398                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52399                 MFLAG=SLAPD_MOD_DYNAMIC
52400         else
52401                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52402                 MFLAG=SLAPD_MOD_STATIC
52403         fi
52404
52405 cat >>confdefs.h <<_ACEOF
52406 #define SLAPD_MONITOR $MFLAG
52407 _ACEOF
52408
52409 fi
52410
52411 if test "$ol_enable_null" != no ; then
52412         BUILD_SLAPD=yes
52413         BUILD_NULL=$ol_enable_null
52414         if test "$ol_enable_null" = mod ; then
52415                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52416                 MFLAG=SLAPD_MOD_DYNAMIC
52417         else
52418                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52419                 MFLAG=SLAPD_MOD_STATIC
52420         fi
52421
52422 cat >>confdefs.h <<_ACEOF
52423 #define SLAPD_NULL $MFLAG
52424 _ACEOF
52425
52426 fi
52427
52428 if test "$ol_enable_passwd" != no ; then
52429         BUILD_SLAPD=yes
52430         BUILD_PASSWD=$ol_enable_passwd
52431         if test "$ol_enable_passwd" = mod ; then
52432                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52433                 MFLAG=SLAPD_MOD_DYNAMIC
52434         else
52435                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52436                 MFLAG=SLAPD_MOD_STATIC
52437         fi
52438
52439 cat >>confdefs.h <<_ACEOF
52440 #define SLAPD_PASSWD $MFLAG
52441 _ACEOF
52442
52443 fi
52444
52445 if test "$ol_link_perl" != no ; then
52446         BUILD_SLAPD=yes
52447         BUILD_PERL=$ol_enable_perl
52448         if test "$ol_enable_perl" = mod ; then
52449                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52450                 MFLAG=SLAPD_MOD_DYNAMIC
52451         else
52452                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52453                 MFLAG=SLAPD_MOD_STATIC
52454         fi
52455
52456 cat >>confdefs.h <<_ACEOF
52457 #define SLAPD_PERL $MFLAG
52458 _ACEOF
52459
52460 fi
52461
52462 if test "$ol_enable_relay" != no ; then
52463         BUILD_SLAPD=yes
52464         BUILD_RELAY=$ol_enable_relay
52465         if test "$ol_enable_relay" = mod ; then
52466                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52467                 MFLAG=SLAPD_MOD_DYNAMIC
52468         else
52469                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52470                 MFLAG=SLAPD_MOD_STATIC
52471         fi
52472
52473 cat >>confdefs.h <<_ACEOF
52474 #define SLAPD_RELAY $MFLAG
52475 _ACEOF
52476
52477 fi
52478
52479 if test "$ol_enable_shell" != no ; then
52480         if test "$ol_link_thread" != no ; then
52481                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52482 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52483         fi
52484         BUILD_SLAPD=yes
52485         BUILD_SHELL=$ol_enable_shell
52486         if test "$ol_enable_shell" = mod ; then
52487                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52488                 MFLAG=SLAPD_MOD_DYNAMIC
52489         else
52490                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52491                 MFLAG=SLAPD_MOD_STATIC
52492         fi
52493
52494 cat >>confdefs.h <<_ACEOF
52495 #define SLAPD_SHELL $MFLAG
52496 _ACEOF
52497
52498 fi
52499
52500 if test "$ol_link_sql" != no ; then
52501         BUILD_SLAPD=yes
52502         BUILD_SQL=$ol_enable_sql
52503         if test "$ol_enable_sql" = mod; then
52504                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52505                 MFLAG=SLAPD_MOD_DYNAMIC
52506         else
52507                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52508                 MFLAG=SLAPD_MOD_STATIC
52509         fi
52510
52511 cat >>confdefs.h <<_ACEOF
52512 #define SLAPD_SQL $MFLAG
52513 _ACEOF
52514
52515 fi
52516
52517 if test "$ol_enable_accesslog" != no ; then
52518         BUILD_ACCESSLOG=$ol_enable_accesslog
52519         if test "$ol_enable_accesslog" = mod ; then
52520                 MFLAG=SLAPD_MOD_DYNAMIC
52521                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52522         else
52523                 MFLAG=SLAPD_MOD_STATIC
52524                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52525         fi
52526
52527 cat >>confdefs.h <<_ACEOF
52528 #define SLAPD_OVER_ACCESSLOG $MFLAG
52529 _ACEOF
52530
52531 fi
52532
52533 if test "$ol_enable_denyop" != no ; then
52534         BUILD_DENYOP=$ol_enable_denyop
52535         if test "$ol_enable_denyop" = mod ; then
52536                 MFLAG=SLAPD_MOD_DYNAMIC
52537                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52538         else
52539                 MFLAG=SLAPD_MOD_STATIC
52540                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52541         fi
52542
52543 cat >>confdefs.h <<_ACEOF
52544 #define SLAPD_OVER_DENYOP $MFLAG
52545 _ACEOF
52546
52547 fi
52548
52549 if test "$ol_enable_dyngroup" != no ; then
52550         BUILD_DYNGROUP=$ol_enable_dyngroup
52551         if test "$ol_enable_dyngroup" = mod ; then
52552                 MFLAG=SLAPD_MOD_DYNAMIC
52553                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52554         else
52555                 MFLAG=SLAPD_MOD_STATIC
52556                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52557         fi
52558
52559 cat >>confdefs.h <<_ACEOF
52560 #define SLAPD_OVER_DYNGROUP $MFLAG
52561 _ACEOF
52562
52563 fi
52564
52565 if test "$ol_enable_dynlist" != no ; then
52566         BUILD_DYNLIST=$ol_enable_dynlist
52567         if test "$ol_enable_dynlist" = mod ; then
52568                 MFLAG=SLAPD_MOD_DYNAMIC
52569                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52570         else
52571                 MFLAG=SLAPD_MOD_STATIC
52572                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52573         fi
52574
52575 cat >>confdefs.h <<_ACEOF
52576 #define SLAPD_OVER_DYNLIST $MFLAG
52577 _ACEOF
52578
52579 fi
52580
52581 if test "$ol_enable_glue" != no ; then
52582         BUILD_GLUE=$ol_enable_glue
52583         if test "$ol_enable_glue" = mod ; then
52584                 MFLAG=SLAPD_MOD_DYNAMIC
52585                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52586         else
52587                 MFLAG=SLAPD_MOD_STATIC
52588                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52589         fi
52590
52591 cat >>confdefs.h <<_ACEOF
52592 #define SLAPD_OVER_GLUE $MFLAG
52593 _ACEOF
52594
52595 fi
52596
52597 if test "$ol_enable_lastmod" != no ; then
52598         BUILD_LASTMOD=$ol_enable_lastmod
52599         if test "$ol_enable_lastmod" = mod ; then
52600                 MFLAG=SLAPD_MOD_DYNAMIC
52601                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52602         else
52603                 MFLAG=SLAPD_MOD_STATIC
52604                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52605         fi
52606
52607 cat >>confdefs.h <<_ACEOF
52608 #define SLAPD_OVER_LASTMOD $MFLAG
52609 _ACEOF
52610
52611 fi
52612
52613 if test "$ol_enable_ppolicy" != no ; then
52614         BUILD_PPOLICY=$ol_enable_ppolicy
52615         if test "$ol_enable_ppolicy" = mod ; then
52616                 MFLAG=SLAPD_MOD_DYNAMIC
52617                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52618         else
52619                 MFLAG=SLAPD_MOD_STATIC
52620                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52621         fi
52622
52623 cat >>confdefs.h <<_ACEOF
52624 #define SLAPD_OVER_PPOLICY $MFLAG
52625 _ACEOF
52626
52627 fi
52628
52629 if test "$ol_enable_proxycache" != no ; then
52630         BUILD_PROXYCACHE=$ol_enable_proxycache
52631         if test "$ol_enable_proxycache" = mod ; then
52632                 MFLAG=SLAPD_MOD_DYNAMIC
52633                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52634         else
52635                 MFLAG=SLAPD_MOD_STATIC
52636                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52637         fi
52638
52639 cat >>confdefs.h <<_ACEOF
52640 #define SLAPD_OVER_PROXYCACHE $MFLAG
52641 _ACEOF
52642
52643 fi
52644
52645 if test "$ol_enable_refint" != no ; then
52646         BUILD_REFINT=$ol_enable_refint
52647         if test "$ol_enable_refint" = mod ; then
52648                 MFLAG=SLAPD_MOD_DYNAMIC
52649                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52650         else
52651                 MFLAG=SLAPD_MOD_STATIC
52652                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52653         fi
52654
52655 cat >>confdefs.h <<_ACEOF
52656 #define SLAPD_OVER_REFINT $MFLAG
52657 _ACEOF
52658
52659 fi
52660
52661 if test "$ol_enable_retcode" != no ; then
52662         BUILD_RETCODE=$ol_enable_retcode
52663         if test "$ol_enable_retcode" = mod ; then
52664                 MFLAG=SLAPD_MOD_DYNAMIC
52665                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52666         else
52667                 MFLAG=SLAPD_MOD_STATIC
52668                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52669         fi
52670
52671 cat >>confdefs.h <<_ACEOF
52672 #define SLAPD_OVER_RETCODE $MFLAG
52673 _ACEOF
52674
52675 fi
52676
52677 if test "$ol_enable_rwm" != no ; then
52678         BUILD_REWRITE=yes
52679         BUILD_RWM=$ol_enable_rwm
52680         if test "$ol_enable_rwm" = mod ; then
52681                 MFLAG=SLAPD_MOD_DYNAMIC
52682                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52683         else
52684                 MFLAG=SLAPD_MOD_STATIC
52685                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52686         fi
52687
52688 cat >>confdefs.h <<_ACEOF
52689 #define SLAPD_OVER_RWM $MFLAG
52690 _ACEOF
52691
52692 fi
52693
52694 if test "$ol_enable_syncprov" != no ; then
52695         BUILD_SYNCPROV=$ol_enable_syncprov
52696         if test "$ol_enable_syncprov" = mod ; then
52697                 MFLAG=SLAPD_MOD_DYNAMIC
52698                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52699         else
52700                 MFLAG=SLAPD_MOD_STATIC
52701                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52702         fi
52703
52704 cat >>confdefs.h <<_ACEOF
52705 #define SLAPD_OVER_SYNCPROV $MFLAG
52706 _ACEOF
52707
52708 fi
52709
52710 if test "$ol_enable_translucent" != no ; then
52711         BUILD_TRANSLUCENT=$ol_enable_translucent
52712         if test "$ol_enable_translucent" = mod ; then
52713                 MFLAG=SLAPD_MOD_DYNAMIC
52714                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52715         else
52716                 MFLAG=SLAPD_MOD_STATIC
52717                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52718         fi
52719
52720 cat >>confdefs.h <<_ACEOF
52721 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52722 _ACEOF
52723
52724 fi
52725
52726 if test "$ol_enable_unique" != no ; then
52727         BUILD_UNIQUE=$ol_enable_unique
52728         if test "$ol_enable_unique" = mod ; then
52729                 MFLAG=SLAPD_MOD_DYNAMIC
52730                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52731         else
52732                 MFLAG=SLAPD_MOD_STATIC
52733                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52734         fi
52735
52736 cat >>confdefs.h <<_ACEOF
52737 #define SLAPD_OVER_UNIQUE $MFLAG
52738 _ACEOF
52739
52740 fi
52741
52742 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52743         $BUILD_SLAPD = yes ; then
52744         BUILD_SLURPD=yes
52745 fi
52746
52747 if test "$ol_enable_rewrite" != no ; then
52748
52749 cat >>confdefs.h <<\_ACEOF
52750 #define ENABLE_REWRITE 1
52751 _ACEOF
52752
52753         BUILD_REWRITE=yes
52754 fi
52755
52756 if test "$ol_enable_slapi" != no ; then
52757
52758 cat >>confdefs.h <<\_ACEOF
52759 #define ENABLE_SLAPI 1
52760 _ACEOF
52761
52762         BUILD_SLAPI=yes
52763         SLAPD_SLAPI_DEPEND=libslapi.a
52764 fi
52765
52766
52767
52768 if test "$ac_cv_mingw32" = yes ; then
52769         PLAT=NT
52770         SLAPD_MODULES_LDFLAGS=
52771 else
52772         PLAT=UNIX
52773 fi
52774
52775
52776
52777
52778
52779
52780
52781
52782
52783
52784
52785
52786
52787
52788
52789
52790
52791
52792
52793
52794
52795
52796
52797
52798
52799
52800
52801
52802
52803
52804
52805
52806
52807
52808
52809
52810
52811
52812
52813
52814
52815
52816
52817
52818
52819
52820
52821
52822
52823
52824
52825
52826
52827
52828
52829
52830
52831
52832
52833
52834
52835
52836
52837
52838
52839
52840
52841
52842
52843
52844
52845
52846
52847
52848
52849
52850
52851
52852
52853 # Check whether --with-xxinstall or --without-xxinstall was given.
52854 if test "${with_xxinstall+set}" = set; then
52855   withval="$with_xxinstall"
52856
52857 fi;
52858
52859
52860                                                                                                                                                                                                                                                                                                                                                                                                                 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-shared.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
52861
52862
52863           ac_config_commands="$ac_config_commands default"
52864
52865
52866
52867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52868 # Let make expand exec_prefix.
52869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52870
52871 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52872 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52873 # trailing colons and then remove the whole line if VPATH becomes empty
52874 # (actually we leave an empty line to preserve line numbers).
52875 if test "x$srcdir" = x.; then
52876   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52877 s/:*\$(srcdir):*/:/;
52878 s/:*\${srcdir}:*/:/;
52879 s/:*@srcdir@:*/:/;
52880 s/^\([^=]*=[     ]*\):*/\1/;
52881 s/:*$//;
52882 s/^[^=]*=[       ]*$//;
52883 }'
52884 fi
52885
52886 DEFS=-DHAVE_CONFIG_H
52887
52888 ac_libobjs=
52889 ac_ltlibobjs=
52890 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52891   # 1. Remove the extension, and $U if already installed.
52892   ac_i=`echo "$ac_i" |
52893          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
52894   # 2. Add them.
52895   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
52896   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
52897 done
52898 LIBOBJS=$ac_libobjs
52899
52900 LTLIBOBJS=$ac_ltlibobjs
52901
52902
52903 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52904   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52905 Usually this means the macro was only invoked conditionally." >&5
52906 echo "$as_me: error: conditional \"AMDEP\" was never defined.
52907 Usually this means the macro was only invoked conditionally." >&2;}
52908    { (exit 1); exit 1; }; }
52909 fi
52910 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52911   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52912 Usually this means the macro was only invoked conditionally." >&5
52913 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52914 Usually this means the macro was only invoked conditionally." >&2;}
52915    { (exit 1); exit 1; }; }
52916 fi
52917 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
52918   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
52919 Usually this means the macro was only invoked conditionally." >&5
52920 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
52921 Usually this means the macro was only invoked conditionally." >&2;}
52922    { (exit 1); exit 1; }; }
52923 fi
52924 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52925   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52926 Usually this means the macro was only invoked conditionally." >&5
52927 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52928 Usually this means the macro was only invoked conditionally." >&2;}
52929    { (exit 1); exit 1; }; }
52930 fi
52931
52932 : ${CONFIG_STATUS=./config.status}
52933 ac_clean_files_save=$ac_clean_files
52934 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52935 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52936 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52937 cat >$CONFIG_STATUS <<_ACEOF
52938 #! $SHELL
52939 # Generated by $as_me.
52940 # Run this file to recreate the current configuration.
52941 # Compiler output produced by configure, useful for debugging
52942 # configure, is in config.log if it exists.
52943
52944 debug=false
52945 ac_cs_recheck=false
52946 ac_cs_silent=false
52947 SHELL=\${CONFIG_SHELL-$SHELL}
52948 _ACEOF
52949
52950 cat >>$CONFIG_STATUS <<\_ACEOF
52951 ## --------------------- ##
52952 ## M4sh Initialization.  ##
52953 ## --------------------- ##
52954
52955 # Be Bourne compatible
52956 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52957   emulate sh
52958   NULLCMD=:
52959   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52960   # is contrary to our usage.  Disable this feature.
52961   alias -g '${1+"$@"}'='"$@"'
52962 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
52963   set -o posix
52964 fi
52965 DUALCASE=1; export DUALCASE # for MKS sh
52966
52967 # Support unset when possible.
52968 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52969   as_unset=unset
52970 else
52971   as_unset=false
52972 fi
52973
52974
52975 # Work around bugs in pre-3.0 UWIN ksh.
52976 $as_unset ENV MAIL MAILPATH
52977 PS1='$ '
52978 PS2='> '
52979 PS4='+ '
52980
52981 # NLS nuisances.
52982 for as_var in \
52983   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52984   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52985   LC_TELEPHONE LC_TIME
52986 do
52987   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52988     eval $as_var=C; export $as_var
52989   else
52990     $as_unset $as_var
52991   fi
52992 done
52993
52994 # Required to use basename.
52995 if expr a : '\(a\)' >/dev/null 2>&1; then
52996   as_expr=expr
52997 else
52998   as_expr=false
52999 fi
53000
53001 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53002   as_basename=basename
53003 else
53004   as_basename=false
53005 fi
53006
53007
53008 # Name of the executable.
53009 as_me=`$as_basename "$0" ||
53010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53011          X"$0" : 'X\(//\)$' \| \
53012          X"$0" : 'X\(/\)$' \| \
53013          .     : '\(.\)' 2>/dev/null ||
53014 echo X/"$0" |
53015     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53016           /^X\/\(\/\/\)$/{ s//\1/; q; }
53017           /^X\/\(\/\).*/{ s//\1/; q; }
53018           s/.*/./; q'`
53019
53020
53021 # PATH needs CR, and LINENO needs CR and PATH.
53022 # Avoid depending upon Character Ranges.
53023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53026 as_cr_digits='0123456789'
53027 as_cr_alnum=$as_cr_Letters$as_cr_digits
53028
53029 # The user is always right.
53030 if test "${PATH_SEPARATOR+set}" != set; then
53031   echo "#! /bin/sh" >conf$$.sh
53032   echo  "exit 0"   >>conf$$.sh
53033   chmod +x conf$$.sh
53034   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53035     PATH_SEPARATOR=';'
53036   else
53037     PATH_SEPARATOR=:
53038   fi
53039   rm -f conf$$.sh
53040 fi
53041
53042
53043   as_lineno_1=$LINENO
53044   as_lineno_2=$LINENO
53045   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53046   test "x$as_lineno_1" != "x$as_lineno_2" &&
53047   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53048   # Find who we are.  Look in the path if we contain no path at all
53049   # relative or not.
53050   case $0 in
53051     *[\\/]* ) as_myself=$0 ;;
53052     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53053 for as_dir in $PATH
53054 do
53055   IFS=$as_save_IFS
53056   test -z "$as_dir" && as_dir=.
53057   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53058 done
53059
53060        ;;
53061   esac
53062   # We did not find ourselves, most probably we were run as `sh COMMAND'
53063   # in which case we are not to be found in the path.
53064   if test "x$as_myself" = x; then
53065     as_myself=$0
53066   fi
53067   if test ! -f "$as_myself"; then
53068     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53069 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53070    { (exit 1); exit 1; }; }
53071   fi
53072   case $CONFIG_SHELL in
53073   '')
53074     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53075 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53076 do
53077   IFS=$as_save_IFS
53078   test -z "$as_dir" && as_dir=.
53079   for as_base in sh bash ksh sh5; do
53080          case $as_dir in
53081          /*)
53082            if ("$as_dir/$as_base" -c '
53083   as_lineno_1=$LINENO
53084   as_lineno_2=$LINENO
53085   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53086   test "x$as_lineno_1" != "x$as_lineno_2" &&
53087   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53088              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53089              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53090              CONFIG_SHELL=$as_dir/$as_base
53091              export CONFIG_SHELL
53092              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53093            fi;;
53094          esac
53095        done
53096 done
53097 ;;
53098   esac
53099
53100   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53101   # uniformly replaced by the line number.  The first 'sed' inserts a
53102   # line-number line before each line; the second 'sed' does the real
53103   # work.  The second script uses 'N' to pair each line-number line
53104   # with the numbered line, and appends trailing '-' during
53105   # substitution so that $LINENO is not a special case at line end.
53106   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53107   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53108   sed '=' <$as_myself |
53109     sed '
53110       N
53111       s,$,-,
53112       : loop
53113       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53114       t loop
53115       s,-$,,
53116       s,^['$as_cr_digits']*\n,,
53117     ' >$as_me.lineno &&
53118   chmod +x $as_me.lineno ||
53119     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53120 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53121    { (exit 1); exit 1; }; }
53122
53123   # Don't try to exec as it changes $[0], causing all sort of problems
53124   # (the dirname of $[0] is not the place where we might find the
53125   # original and so on.  Autoconf is especially sensible to this).
53126   . ./$as_me.lineno
53127   # Exit status is that of the last command.
53128   exit
53129 }
53130
53131
53132 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53133   *c*,-n*) ECHO_N= ECHO_C='
53134 ' ECHO_T='      ' ;;
53135   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53136   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53137 esac
53138
53139 if expr a : '\(a\)' >/dev/null 2>&1; then
53140   as_expr=expr
53141 else
53142   as_expr=false
53143 fi
53144
53145 rm -f conf$$ conf$$.exe conf$$.file
53146 echo >conf$$.file
53147 if ln -s conf$$.file conf$$ 2>/dev/null; then
53148   # We could just check for DJGPP; but this test a) works b) is more generic
53149   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53150   if test -f conf$$.exe; then
53151     # Don't use ln at all; we don't have any links
53152     as_ln_s='cp -p'
53153   else
53154     as_ln_s='ln -s'
53155   fi
53156 elif ln conf$$.file conf$$ 2>/dev/null; then
53157   as_ln_s=ln
53158 else
53159   as_ln_s='cp -p'
53160 fi
53161 rm -f conf$$ conf$$.exe conf$$.file
53162
53163 if mkdir -p . 2>/dev/null; then
53164   as_mkdir_p=:
53165 else
53166   test -d ./-p && rmdir ./-p
53167   as_mkdir_p=false
53168 fi
53169
53170 as_executable_p="test -f"
53171
53172 # Sed expression to map a string onto a valid CPP name.
53173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53174
53175 # Sed expression to map a string onto a valid variable name.
53176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53177
53178
53179 # IFS
53180 # We need space, tab and new line, in precisely that order.
53181 as_nl='
53182 '
53183 IFS="   $as_nl"
53184
53185 # CDPATH.
53186 $as_unset CDPATH
53187
53188 exec 6>&1
53189
53190 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53191 # report actual input values of CONFIG_FILES etc. instead of their
53192 # values after options handling.  Logging --version etc. is OK.
53193 exec 5>>config.log
53194 {
53195   echo
53196   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53197 ## Running $as_me. ##
53198 _ASBOX
53199 } >&5
53200 cat >&5 <<_CSEOF
53201
53202 This file was extended by $as_me, which was
53203 generated by GNU Autoconf 2.59.  Invocation command line was
53204
53205   CONFIG_FILES    = $CONFIG_FILES
53206   CONFIG_HEADERS  = $CONFIG_HEADERS
53207   CONFIG_LINKS    = $CONFIG_LINKS
53208   CONFIG_COMMANDS = $CONFIG_COMMANDS
53209   $ $0 $@
53210
53211 _CSEOF
53212 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53213 echo >&5
53214 _ACEOF
53215
53216 # Files that config.status was made for.
53217 if test -n "$ac_config_files"; then
53218   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53219 fi
53220
53221 if test -n "$ac_config_headers"; then
53222   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53223 fi
53224
53225 if test -n "$ac_config_links"; then
53226   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53227 fi
53228
53229 if test -n "$ac_config_commands"; then
53230   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53231 fi
53232
53233 cat >>$CONFIG_STATUS <<\_ACEOF
53234
53235 ac_cs_usage="\
53236 \`$as_me' instantiates files from templates according to the
53237 current configuration.
53238
53239 Usage: $0 [OPTIONS] [FILE]...
53240
53241   -h, --help       print this help, then exit
53242   -V, --version    print version number, then exit
53243   -q, --quiet      do not print progress messages
53244   -d, --debug      don't remove temporary files
53245       --recheck    update $as_me by reconfiguring in the same conditions
53246   --file=FILE[:TEMPLATE]
53247                    instantiate the configuration file FILE
53248   --header=FILE[:TEMPLATE]
53249                    instantiate the configuration header FILE
53250
53251 Configuration files:
53252 $config_files
53253
53254 Configuration headers:
53255 $config_headers
53256
53257 Configuration commands:
53258 $config_commands
53259
53260 Report bugs to <bug-autoconf@gnu.org>."
53261 _ACEOF
53262
53263 cat >>$CONFIG_STATUS <<_ACEOF
53264 ac_cs_version="\\
53265 config.status
53266 configured by $0, generated by GNU Autoconf 2.59,
53267   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53268
53269 Copyright (C) 2003 Free Software Foundation, Inc.
53270 This config.status script is free software; the Free Software Foundation
53271 gives unlimited permission to copy, distribute and modify it."
53272 srcdir=$srcdir
53273 INSTALL="$INSTALL"
53274 _ACEOF
53275
53276 cat >>$CONFIG_STATUS <<\_ACEOF
53277 # If no file are specified by the user, then we need to provide default
53278 # value.  By we need to know if files were specified by the user.
53279 ac_need_defaults=:
53280 while test $# != 0
53281 do
53282   case $1 in
53283   --*=*)
53284     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53285     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53286     ac_shift=:
53287     ;;
53288   -*)
53289     ac_option=$1
53290     ac_optarg=$2
53291     ac_shift=shift
53292     ;;
53293   *) # This is not an option, so the user has probably given explicit
53294      # arguments.
53295      ac_option=$1
53296      ac_need_defaults=false;;
53297   esac
53298
53299   case $ac_option in
53300   # Handling of the options.
53301 _ACEOF
53302 cat >>$CONFIG_STATUS <<\_ACEOF
53303   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53304     ac_cs_recheck=: ;;
53305   --version | --vers* | -V )
53306     echo "$ac_cs_version"; exit 0 ;;
53307   --he | --h)
53308     # Conflict between --help and --header
53309     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53310 Try \`$0 --help' for more information." >&5
53311 echo "$as_me: error: ambiguous option: $1
53312 Try \`$0 --help' for more information." >&2;}
53313    { (exit 1); exit 1; }; };;
53314   --help | --hel | -h )
53315     echo "$ac_cs_usage"; exit 0 ;;
53316   --debug | --d* | -d )
53317     debug=: ;;
53318   --file | --fil | --fi | --f )
53319     $ac_shift
53320     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53321     ac_need_defaults=false;;
53322   --header | --heade | --head | --hea )
53323     $ac_shift
53324     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53325     ac_need_defaults=false;;
53326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53327   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53328     ac_cs_silent=: ;;
53329
53330   # This is an error.
53331   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53332 Try \`$0 --help' for more information." >&5
53333 echo "$as_me: error: unrecognized option: $1
53334 Try \`$0 --help' for more information." >&2;}
53335    { (exit 1); exit 1; }; } ;;
53336
53337   *) ac_config_targets="$ac_config_targets $1" ;;
53338
53339   esac
53340   shift
53341 done
53342
53343 ac_configure_extra_args=
53344
53345 if $ac_cs_silent; then
53346   exec 6>/dev/null
53347   ac_configure_extra_args="$ac_configure_extra_args --silent"
53348 fi
53349
53350 _ACEOF
53351 cat >>$CONFIG_STATUS <<_ACEOF
53352 if \$ac_cs_recheck; then
53353   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53354   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53355 fi
53356
53357 _ACEOF
53358
53359 cat >>$CONFIG_STATUS <<_ACEOF
53360 #
53361 # INIT-COMMANDS section.
53362 #
53363
53364 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53365 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53366
53367 _ACEOF
53368
53369
53370
53371 cat >>$CONFIG_STATUS <<\_ACEOF
53372 for ac_config_target in $ac_config_targets
53373 do
53374   case "$ac_config_target" in
53375   # Handling of arguments.
53376   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53377   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53378   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53379   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53380   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53381   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53382   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53383   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53384   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53385   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53386   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53387   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53388   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53389   "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" ;;
53390   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53391   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53392   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53393   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53394   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53395   "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" ;;
53396   "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" ;;
53397   "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" ;;
53398   "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" ;;
53399   "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
53400   "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" ;;
53401   "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" ;;
53402   "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" ;;
53403   "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" ;;
53404   "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" ;;
53405   "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" ;;
53406   "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" ;;
53407   "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" ;;
53408   "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" ;;
53409   "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" ;;
53410   "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" ;;
53411   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53412   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53413   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53414   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53415   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53416   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53417   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53418   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53419   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53420   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53421   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53422 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53423    { (exit 1); exit 1; }; };;
53424   esac
53425 done
53426
53427 # If the user did not use the arguments to specify the items to instantiate,
53428 # then the envvar interface is used.  Set only those that are not.
53429 # We use the long form for the default assignment because of an extremely
53430 # bizarre bug on SunOS 4.1.3.
53431 if $ac_need_defaults; then
53432   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53433   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53434   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53435 fi
53436
53437 # Have a temporary directory for convenience.  Make it in the build tree
53438 # simply because there is no reason to put it here, and in addition,
53439 # creating and moving files from /tmp can sometimes cause problems.
53440 # Create a temporary directory, and hook for its removal unless debugging.
53441 $debug ||
53442 {
53443   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53444   trap '{ (exit 1); exit 1; }' 1 2 13 15
53445 }
53446
53447 # Create a (secure) tmp directory for tmp files.
53448
53449 {
53450   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53451   test -n "$tmp" && test -d "$tmp"
53452 }  ||
53453 {
53454   tmp=./confstat$$-$RANDOM
53455   (umask 077 && mkdir $tmp)
53456 } ||
53457 {
53458    echo "$me: cannot create a temporary directory in ." >&2
53459    { (exit 1); exit 1; }
53460 }
53461
53462 _ACEOF
53463
53464 cat >>$CONFIG_STATUS <<_ACEOF
53465
53466 #
53467 # CONFIG_FILES section.
53468 #
53469
53470 # No need to generate the scripts if there are no CONFIG_FILES.
53471 # This happens for instance when ./config.status config.h
53472 if test -n "\$CONFIG_FILES"; then
53473   # Protect against being on the right side of a sed subst in config.status.
53474   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53475    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53476 s,@SHELL@,$SHELL,;t t
53477 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53478 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53479 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53480 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53481 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53482 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53483 s,@exec_prefix@,$exec_prefix,;t t
53484 s,@prefix@,$prefix,;t t
53485 s,@program_transform_name@,$program_transform_name,;t t
53486 s,@bindir@,$bindir,;t t
53487 s,@sbindir@,$sbindir,;t t
53488 s,@libexecdir@,$libexecdir,;t t
53489 s,@datadir@,$datadir,;t t
53490 s,@sysconfdir@,$sysconfdir,;t t
53491 s,@sharedstatedir@,$sharedstatedir,;t t
53492 s,@localstatedir@,$localstatedir,;t t
53493 s,@libdir@,$libdir,;t t
53494 s,@includedir@,$includedir,;t t
53495 s,@oldincludedir@,$oldincludedir,;t t
53496 s,@infodir@,$infodir,;t t
53497 s,@mandir@,$mandir,;t t
53498 s,@build_alias@,$build_alias,;t t
53499 s,@host_alias@,$host_alias,;t t
53500 s,@target_alias@,$target_alias,;t t
53501 s,@DEFS@,$DEFS,;t t
53502 s,@ECHO_C@,$ECHO_C,;t t
53503 s,@ECHO_N@,$ECHO_N,;t t
53504 s,@ECHO_T@,$ECHO_T,;t t
53505 s,@LIBS@,$LIBS,;t t
53506 s,@build@,$build,;t t
53507 s,@build_cpu@,$build_cpu,;t t
53508 s,@build_vendor@,$build_vendor,;t t
53509 s,@build_os@,$build_os,;t t
53510 s,@host@,$host,;t t
53511 s,@host_cpu@,$host_cpu,;t t
53512 s,@host_vendor@,$host_vendor,;t t
53513 s,@host_os@,$host_os,;t t
53514 s,@target@,$target,;t t
53515 s,@target_cpu@,$target_cpu,;t t
53516 s,@target_vendor@,$target_vendor,;t t
53517 s,@target_os@,$target_os,;t t
53518 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53519 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53520 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53521 s,@CYGPATH_W@,$CYGPATH_W,;t t
53522 s,@PACKAGE@,$PACKAGE,;t t
53523 s,@VERSION@,$VERSION,;t t
53524 s,@ACLOCAL@,$ACLOCAL,;t t
53525 s,@AUTOCONF@,$AUTOCONF,;t t
53526 s,@AUTOMAKE@,$AUTOMAKE,;t t
53527 s,@AUTOHEADER@,$AUTOHEADER,;t t
53528 s,@MAKEINFO@,$MAKEINFO,;t t
53529 s,@install_sh@,$install_sh,;t t
53530 s,@STRIP@,$STRIP,;t t
53531 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53532 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53533 s,@mkdir_p@,$mkdir_p,;t t
53534 s,@AWK@,$AWK,;t t
53535 s,@SET_MAKE@,$SET_MAKE,;t t
53536 s,@am__leading_dot@,$am__leading_dot,;t t
53537 s,@AMTAR@,$AMTAR,;t t
53538 s,@am__tar@,$am__tar,;t t
53539 s,@am__untar@,$am__untar,;t t
53540 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53541 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53542 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53543 s,@top_builddir@,$top_builddir,;t t
53544 s,@ldap_subdir@,$ldap_subdir,;t t
53545 s,@CC@,$CC,;t t
53546 s,@AR@,$AR,;t t
53547 s,@CFLAGS@,$CFLAGS,;t t
53548 s,@LDFLAGS@,$LDFLAGS,;t t
53549 s,@CPPFLAGS@,$CPPFLAGS,;t t
53550 s,@ac_ct_CC@,$ac_ct_CC,;t t
53551 s,@EXEEXT@,$EXEEXT,;t t
53552 s,@OBJEXT@,$OBJEXT,;t t
53553 s,@DEPDIR@,$DEPDIR,;t t
53554 s,@am__include@,$am__include,;t t
53555 s,@am__quote@,$am__quote,;t t
53556 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53557 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53558 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53559 s,@CCDEPMODE@,$CCDEPMODE,;t t
53560 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53561 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53562 s,@EGREP@,$EGREP,;t t
53563 s,@LN_S@,$LN_S,;t t
53564 s,@ECHO@,$ECHO,;t t
53565 s,@ac_ct_AR@,$ac_ct_AR,;t t
53566 s,@RANLIB@,$RANLIB,;t t
53567 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53568 s,@DLLTOOL@,$DLLTOOL,;t t
53569 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53570 s,@AS@,$AS,;t t
53571 s,@ac_ct_AS@,$ac_ct_AS,;t t
53572 s,@OBJDUMP@,$OBJDUMP,;t t
53573 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53574 s,@CPP@,$CPP,;t t
53575 s,@CXX@,$CXX,;t t
53576 s,@CXXFLAGS@,$CXXFLAGS,;t t
53577 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53578 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53579 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53580 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53581 s,@CXXCPP@,$CXXCPP,;t t
53582 s,@F77@,$F77,;t t
53583 s,@FFLAGS@,$FFLAGS,;t t
53584 s,@ac_ct_F77@,$ac_ct_F77,;t t
53585 s,@LIBTOOL@,$LIBTOOL,;t t
53586 s,@PERLBIN@,$PERLBIN,;t t
53587 s,@OL_MKDEP@,$OL_MKDEP,;t t
53588 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53589 s,@LTSTATIC@,$LTSTATIC,;t t
53590 s,@LIBOBJS@,$LIBOBJS,;t t
53591 s,@LIBSRCS@,$LIBSRCS,;t t
53592 s,@PLAT@,$PLAT,;t t
53593 s,@WITH_SASL@,$WITH_SASL,;t t
53594 s,@WITH_TLS@,$WITH_TLS,;t t
53595 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53596 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53597 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53598 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53599 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53600 s,@BUILD_BDB@,$BUILD_BDB,;t t
53601 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53602 s,@BUILD_HDB@,$BUILD_HDB,;t t
53603 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53604 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53605 s,@BUILD_META@,$BUILD_META,;t t
53606 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53607 s,@BUILD_NULL@,$BUILD_NULL,;t t
53608 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53609 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53610 s,@BUILD_PERL@,$BUILD_PERL,;t t
53611 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53612 s,@BUILD_SQL@,$BUILD_SQL,;t t
53613 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53614 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53615 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53616 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53617 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53618 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53619 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53620 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53621 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53622 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53623 s,@BUILD_RWM@,$BUILD_RWM,;t t
53624 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53625 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53626 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53627 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53628 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53629 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53630 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53631 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53632 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53633 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53634 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53635 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53636 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53637 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53638 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53639 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53640 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53641 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53642 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53643 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53644 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53645 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53646 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53647 s,@SASL_LIBS@,$SASL_LIBS,;t t
53648 s,@TLS_LIBS@,$TLS_LIBS,;t t
53649 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53650 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53651 s,@LIBSLAPI@,$LIBSLAPI,;t t
53652 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53653 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53654 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53655 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53656 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53657 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53658 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53659 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53660 CEOF
53661
53662 _ACEOF
53663
53664   cat >>$CONFIG_STATUS <<\_ACEOF
53665   # Split the substitutions into bite-sized pieces for seds with
53666   # small command number limits, like on Digital OSF/1 and HP-UX.
53667   ac_max_sed_lines=48
53668   ac_sed_frag=1 # Number of current file.
53669   ac_beg=1 # First line for current file.
53670   ac_end=$ac_max_sed_lines # Line after last line for current file.
53671   ac_more_lines=:
53672   ac_sed_cmds=
53673   while $ac_more_lines; do
53674     if test $ac_beg -gt 1; then
53675       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53676     else
53677       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53678     fi
53679     if test ! -s $tmp/subs.frag; then
53680       ac_more_lines=false
53681     else
53682       # The purpose of the label and of the branching condition is to
53683       # speed up the sed processing (if there are no `@' at all, there
53684       # is no need to browse any of the substitutions).
53685       # These are the two extra sed commands mentioned above.
53686       (echo ':t
53687   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53688       if test -z "$ac_sed_cmds"; then
53689         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53690       else
53691         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53692       fi
53693       ac_sed_frag=`expr $ac_sed_frag + 1`
53694       ac_beg=$ac_end
53695       ac_end=`expr $ac_end + $ac_max_sed_lines`
53696     fi
53697   done
53698   if test -z "$ac_sed_cmds"; then
53699     ac_sed_cmds=cat
53700   fi
53701 fi # test -n "$CONFIG_FILES"
53702
53703 _ACEOF
53704 cat >>$CONFIG_STATUS <<\_ACEOF
53705 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53706   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53707   case $ac_file in
53708   - | *:- | *:-:* ) # input from stdin
53709         cat >$tmp/stdin
53710         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53711         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53712   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53713         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53714   * )   ac_file_in=$ac_file.in ;;
53715   esac
53716
53717   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53718   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53719 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53720          X"$ac_file" : 'X\(//\)[^/]' \| \
53721          X"$ac_file" : 'X\(//\)$' \| \
53722          X"$ac_file" : 'X\(/\)' \| \
53723          .     : '\(.\)' 2>/dev/null ||
53724 echo X"$ac_file" |
53725     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53726           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53727           /^X\(\/\/\)$/{ s//\1/; q; }
53728           /^X\(\/\).*/{ s//\1/; q; }
53729           s/.*/./; q'`
53730   { if $as_mkdir_p; then
53731     mkdir -p "$ac_dir"
53732   else
53733     as_dir="$ac_dir"
53734     as_dirs=
53735     while test ! -d "$as_dir"; do
53736       as_dirs="$as_dir $as_dirs"
53737       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53739          X"$as_dir" : 'X\(//\)[^/]' \| \
53740          X"$as_dir" : 'X\(//\)$' \| \
53741          X"$as_dir" : 'X\(/\)' \| \
53742          .     : '\(.\)' 2>/dev/null ||
53743 echo X"$as_dir" |
53744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53745           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53746           /^X\(\/\/\)$/{ s//\1/; q; }
53747           /^X\(\/\).*/{ s//\1/; q; }
53748           s/.*/./; q'`
53749     done
53750     test ! -n "$as_dirs" || mkdir $as_dirs
53751   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53752 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53753    { (exit 1); exit 1; }; }; }
53754
53755   ac_builddir=.
53756
53757 if test "$ac_dir" != .; then
53758   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53759   # A "../" for each directory in $ac_dir_suffix.
53760   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53761 else
53762   ac_dir_suffix= ac_top_builddir=
53763 fi
53764
53765 case $srcdir in
53766   .)  # No --srcdir option.  We are building in place.
53767     ac_srcdir=.
53768     if test -z "$ac_top_builddir"; then
53769        ac_top_srcdir=.
53770     else
53771        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53772     fi ;;
53773   [\\/]* | ?:[\\/]* )  # Absolute path.
53774     ac_srcdir=$srcdir$ac_dir_suffix;
53775     ac_top_srcdir=$srcdir ;;
53776   *) # Relative path.
53777     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53778     ac_top_srcdir=$ac_top_builddir$srcdir ;;
53779 esac
53780
53781 # Do not use `cd foo && pwd` to compute absolute paths, because
53782 # the directories may not exist.
53783 case `pwd` in
53784 .) ac_abs_builddir="$ac_dir";;
53785 *)
53786   case "$ac_dir" in
53787   .) ac_abs_builddir=`pwd`;;
53788   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53789   *) ac_abs_builddir=`pwd`/"$ac_dir";;
53790   esac;;
53791 esac
53792 case $ac_abs_builddir in
53793 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53794 *)
53795   case ${ac_top_builddir}. in
53796   .) ac_abs_top_builddir=$ac_abs_builddir;;
53797   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53798   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53799   esac;;
53800 esac
53801 case $ac_abs_builddir in
53802 .) ac_abs_srcdir=$ac_srcdir;;
53803 *)
53804   case $ac_srcdir in
53805   .) ac_abs_srcdir=$ac_abs_builddir;;
53806   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53807   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53808   esac;;
53809 esac
53810 case $ac_abs_builddir in
53811 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53812 *)
53813   case $ac_top_srcdir in
53814   .) ac_abs_top_srcdir=$ac_abs_builddir;;
53815   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53816   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53817   esac;;
53818 esac
53819
53820
53821   case $INSTALL in
53822   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53823   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
53824   esac
53825
53826   if test x"$ac_file" != x-; then
53827     { echo "$as_me:$LINENO: creating $ac_file" >&5
53828 echo "$as_me: creating $ac_file" >&6;}
53829     rm -f "$ac_file"
53830   fi
53831   # Let's still pretend it is `configure' which instantiates (i.e., don't
53832   # use $as_me), people would be surprised to read:
53833   #    /* config.h.  Generated by config.status.  */
53834   if test x"$ac_file" = x-; then
53835     configure_input=
53836   else
53837     configure_input="$ac_file.  "
53838   fi
53839   configure_input=$configure_input"Generated from `echo $ac_file_in |
53840                                      sed 's,.*/,,'` by configure."
53841
53842   # First look for the input files in the build tree, otherwise in the
53843   # src tree.
53844   ac_file_inputs=`IFS=:
53845     for f in $ac_file_in; do
53846       case $f in
53847       -) echo $tmp/stdin ;;
53848       [\\/$]*)
53849          # Absolute (can't be DOS-style, as IFS=:)
53850          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53851 echo "$as_me: error: cannot find input file: $f" >&2;}
53852    { (exit 1); exit 1; }; }
53853          echo "$f";;
53854       *) # Relative
53855          if test -f "$f"; then
53856            # Build tree
53857            echo "$f"
53858          elif test -f "$srcdir/$f"; then
53859            # Source tree
53860            echo "$srcdir/$f"
53861          else
53862            # /dev/null tree
53863            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53864 echo "$as_me: error: cannot find input file: $f" >&2;}
53865    { (exit 1); exit 1; }; }
53866          fi;;
53867       esac
53868     done` || { (exit 1); exit 1; }
53869 _ACEOF
53870 cat >>$CONFIG_STATUS <<_ACEOF
53871   sed "$ac_vpsub
53872 $extrasub
53873 _ACEOF
53874 cat >>$CONFIG_STATUS <<\_ACEOF
53875 :t
53876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53877 s,@configure_input@,$configure_input,;t t
53878 s,@srcdir@,$ac_srcdir,;t t
53879 s,@abs_srcdir@,$ac_abs_srcdir,;t t
53880 s,@top_srcdir@,$ac_top_srcdir,;t t
53881 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
53882 s,@builddir@,$ac_builddir,;t t
53883 s,@abs_builddir@,$ac_abs_builddir,;t t
53884 s,@top_builddir@,$ac_top_builddir,;t t
53885 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
53886 s,@INSTALL@,$ac_INSTALL,;t t
53887 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
53888   rm -f $tmp/stdin
53889   if test x"$ac_file" != x-; then
53890     mv $tmp/out $ac_file
53891   else
53892     cat $tmp/out
53893     rm -f $tmp/out
53894   fi
53895
53896 done
53897 _ACEOF
53898 cat >>$CONFIG_STATUS <<\_ACEOF
53899
53900 #
53901 # CONFIG_HEADER section.
53902 #
53903
53904 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
53905 # NAME is the cpp macro being defined and VALUE is the value it is being given.
53906 #
53907 # ac_d sets the value in "#define NAME VALUE" lines.
53908 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
53909 ac_dB='[         ].*$,\1#\2'
53910 ac_dC=' '
53911 ac_dD=',;t'
53912 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
53913 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
53914 ac_uB='$,\1#\2define\3'
53915 ac_uC=' '
53916 ac_uD=',;t'
53917
53918 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
53919   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53920   case $ac_file in
53921   - | *:- | *:-:* ) # input from stdin
53922         cat >$tmp/stdin
53923         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53924         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53925   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53926         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53927   * )   ac_file_in=$ac_file.in ;;
53928   esac
53929
53930   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
53931 echo "$as_me: creating $ac_file" >&6;}
53932
53933   # First look for the input files in the build tree, otherwise in the
53934   # src tree.
53935   ac_file_inputs=`IFS=:
53936     for f in $ac_file_in; do
53937       case $f in
53938       -) echo $tmp/stdin ;;
53939       [\\/$]*)
53940          # Absolute (can't be DOS-style, as IFS=:)
53941          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53942 echo "$as_me: error: cannot find input file: $f" >&2;}
53943    { (exit 1); exit 1; }; }
53944          # Do quote $f, to prevent DOS paths from being IFS'd.
53945          echo "$f";;
53946       *) # Relative
53947          if test -f "$f"; then
53948            # Build tree
53949            echo "$f"
53950          elif test -f "$srcdir/$f"; then
53951            # Source tree
53952            echo "$srcdir/$f"
53953          else
53954            # /dev/null tree
53955            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53956 echo "$as_me: error: cannot find input file: $f" >&2;}
53957    { (exit 1); exit 1; }; }
53958          fi;;
53959       esac
53960     done` || { (exit 1); exit 1; }
53961   # Remove the trailing spaces.
53962   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
53963
53964 _ACEOF
53965
53966 # Transform confdefs.h into two sed scripts, `conftest.defines' and
53967 # `conftest.undefs', that substitutes the proper values into
53968 # config.h.in to produce config.h.  The first handles `#define'
53969 # templates, and the second `#undef' templates.
53970 # And first: Protect against being on the right side of a sed subst in
53971 # config.status.  Protect against being in an unquoted here document
53972 # in config.status.
53973 rm -f conftest.defines conftest.undefs
53974 # Using a here document instead of a string reduces the quoting nightmare.
53975 # Putting comments in sed scripts is not portable.
53976 #
53977 # `end' is used to avoid that the second main sed command (meant for
53978 # 0-ary CPP macros) applies to n-ary macro definitions.
53979 # See the Autoconf documentation for `clear'.
53980 cat >confdef2sed.sed <<\_ACEOF
53981 s/[\\&,]/\\&/g
53982 s,[\\$`],\\&,g
53983 t clear
53984 : clear
53985 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
53986 t end
53987 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
53988 : end
53989 _ACEOF
53990 # If some macros were called several times there might be several times
53991 # the same #defines, which is useless.  Nevertheless, we may not want to
53992 # sort them, since we want the *last* AC-DEFINE to be honored.
53993 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
53994 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
53995 rm -f confdef2sed.sed
53996
53997 # This sed command replaces #undef with comments.  This is necessary, for
53998 # example, in the case of _POSIX_SOURCE, which is predefined and required
53999 # on some systems where configure will not decide to define it.
54000 cat >>conftest.undefs <<\_ACEOF
54001 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54002 _ACEOF
54003
54004 # Break up conftest.defines because some shells have a limit on the size
54005 # of here documents, and old seds have small limits too (100 cmds).
54006 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54007 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54008 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54009 echo '  :' >>$CONFIG_STATUS
54010 rm -f conftest.tail
54011 while grep . conftest.defines >/dev/null
54012 do
54013   # Write a limited-size here document to $tmp/defines.sed.
54014   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54015   # Speed up: don't consider the non `#define' lines.
54016   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
54017   # Work around the forget-to-reset-the-flag bug.
54018   echo 't clr' >>$CONFIG_STATUS
54019   echo ': clr' >>$CONFIG_STATUS
54020   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54021   echo 'CEOF
54022   sed -f $tmp/defines.sed $tmp/in >$tmp/out
54023   rm -f $tmp/in
54024   mv $tmp/out $tmp/in
54025 ' >>$CONFIG_STATUS
54026   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54027   rm -f conftest.defines
54028   mv conftest.tail conftest.defines
54029 done
54030 rm -f conftest.defines
54031 echo '  fi # grep' >>$CONFIG_STATUS
54032 echo >>$CONFIG_STATUS
54033
54034 # Break up conftest.undefs because some shells have a limit on the size
54035 # of here documents, and old seds have small limits too (100 cmds).
54036 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54037 rm -f conftest.tail
54038 while grep . conftest.undefs >/dev/null
54039 do
54040   # Write a limited-size here document to $tmp/undefs.sed.
54041   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54042   # Speed up: don't consider the non `#undef'
54043   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
54044   # Work around the forget-to-reset-the-flag bug.
54045   echo 't clr' >>$CONFIG_STATUS
54046   echo ': clr' >>$CONFIG_STATUS
54047   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54048   echo 'CEOF
54049   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54050   rm -f $tmp/in
54051   mv $tmp/out $tmp/in
54052 ' >>$CONFIG_STATUS
54053   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54054   rm -f conftest.undefs
54055   mv conftest.tail conftest.undefs
54056 done
54057 rm -f conftest.undefs
54058
54059 cat >>$CONFIG_STATUS <<\_ACEOF
54060   # Let's still pretend it is `configure' which instantiates (i.e., don't
54061   # use $as_me), people would be surprised to read:
54062   #    /* config.h.  Generated by config.status.  */
54063   if test x"$ac_file" = x-; then
54064     echo "/* Generated by configure.  */" >$tmp/config.h
54065   else
54066     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54067   fi
54068   cat $tmp/in >>$tmp/config.h
54069   rm -f $tmp/in
54070   if test x"$ac_file" != x-; then
54071     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54072       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54073 echo "$as_me: $ac_file is unchanged" >&6;}
54074     else
54075       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54077          X"$ac_file" : 'X\(//\)[^/]' \| \
54078          X"$ac_file" : 'X\(//\)$' \| \
54079          X"$ac_file" : 'X\(/\)' \| \
54080          .     : '\(.\)' 2>/dev/null ||
54081 echo X"$ac_file" |
54082     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54083           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54084           /^X\(\/\/\)$/{ s//\1/; q; }
54085           /^X\(\/\).*/{ s//\1/; q; }
54086           s/.*/./; q'`
54087       { if $as_mkdir_p; then
54088     mkdir -p "$ac_dir"
54089   else
54090     as_dir="$ac_dir"
54091     as_dirs=
54092     while test ! -d "$as_dir"; do
54093       as_dirs="$as_dir $as_dirs"
54094       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54096          X"$as_dir" : 'X\(//\)[^/]' \| \
54097          X"$as_dir" : 'X\(//\)$' \| \
54098          X"$as_dir" : 'X\(/\)' \| \
54099          .     : '\(.\)' 2>/dev/null ||
54100 echo X"$as_dir" |
54101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54103           /^X\(\/\/\)$/{ s//\1/; q; }
54104           /^X\(\/\).*/{ s//\1/; q; }
54105           s/.*/./; q'`
54106     done
54107     test ! -n "$as_dirs" || mkdir $as_dirs
54108   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54110    { (exit 1); exit 1; }; }; }
54111
54112       rm -f $ac_file
54113       mv $tmp/config.h $ac_file
54114     fi
54115   else
54116     cat $tmp/config.h
54117     rm -f $tmp/config.h
54118   fi
54119 # Compute $ac_file's index in $config_headers.
54120 _am_stamp_count=1
54121 for _am_header in $config_headers :; do
54122   case $_am_header in
54123     $ac_file | $ac_file:* )
54124       break ;;
54125     * )
54126       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54127   esac
54128 done
54129 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54130 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54131          X$ac_file : 'X\(//\)[^/]' \| \
54132          X$ac_file : 'X\(//\)$' \| \
54133          X$ac_file : 'X\(/\)' \| \
54134          .     : '\(.\)' 2>/dev/null ||
54135 echo X$ac_file |
54136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54137           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54138           /^X\(\/\/\)$/{ s//\1/; q; }
54139           /^X\(\/\).*/{ s//\1/; q; }
54140           s/.*/./; q'`/stamp-h$_am_stamp_count
54141 done
54142 _ACEOF
54143 cat >>$CONFIG_STATUS <<\_ACEOF
54144
54145 #
54146 # CONFIG_COMMANDS section.
54147 #
54148 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54149   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54150   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54151   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54152 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54153          X"$ac_dest" : 'X\(//\)[^/]' \| \
54154          X"$ac_dest" : 'X\(//\)$' \| \
54155          X"$ac_dest" : 'X\(/\)' \| \
54156          .     : '\(.\)' 2>/dev/null ||
54157 echo X"$ac_dest" |
54158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54159           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54160           /^X\(\/\/\)$/{ s//\1/; q; }
54161           /^X\(\/\).*/{ s//\1/; q; }
54162           s/.*/./; q'`
54163   { if $as_mkdir_p; then
54164     mkdir -p "$ac_dir"
54165   else
54166     as_dir="$ac_dir"
54167     as_dirs=
54168     while test ! -d "$as_dir"; do
54169       as_dirs="$as_dir $as_dirs"
54170       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54172          X"$as_dir" : 'X\(//\)[^/]' \| \
54173          X"$as_dir" : 'X\(//\)$' \| \
54174          X"$as_dir" : 'X\(/\)' \| \
54175          .     : '\(.\)' 2>/dev/null ||
54176 echo X"$as_dir" |
54177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54178           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54179           /^X\(\/\/\)$/{ s//\1/; q; }
54180           /^X\(\/\).*/{ s//\1/; q; }
54181           s/.*/./; q'`
54182     done
54183     test ! -n "$as_dirs" || mkdir $as_dirs
54184   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54186    { (exit 1); exit 1; }; }; }
54187
54188   ac_builddir=.
54189
54190 if test "$ac_dir" != .; then
54191   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54192   # A "../" for each directory in $ac_dir_suffix.
54193   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54194 else
54195   ac_dir_suffix= ac_top_builddir=
54196 fi
54197
54198 case $srcdir in
54199   .)  # No --srcdir option.  We are building in place.
54200     ac_srcdir=.
54201     if test -z "$ac_top_builddir"; then
54202        ac_top_srcdir=.
54203     else
54204        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54205     fi ;;
54206   [\\/]* | ?:[\\/]* )  # Absolute path.
54207     ac_srcdir=$srcdir$ac_dir_suffix;
54208     ac_top_srcdir=$srcdir ;;
54209   *) # Relative path.
54210     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54211     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54212 esac
54213
54214 # Do not use `cd foo && pwd` to compute absolute paths, because
54215 # the directories may not exist.
54216 case `pwd` in
54217 .) ac_abs_builddir="$ac_dir";;
54218 *)
54219   case "$ac_dir" in
54220   .) ac_abs_builddir=`pwd`;;
54221   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54222   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54223   esac;;
54224 esac
54225 case $ac_abs_builddir in
54226 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54227 *)
54228   case ${ac_top_builddir}. in
54229   .) ac_abs_top_builddir=$ac_abs_builddir;;
54230   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54231   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54232   esac;;
54233 esac
54234 case $ac_abs_builddir in
54235 .) ac_abs_srcdir=$ac_srcdir;;
54236 *)
54237   case $ac_srcdir in
54238   .) ac_abs_srcdir=$ac_abs_builddir;;
54239   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54240   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54241   esac;;
54242 esac
54243 case $ac_abs_builddir in
54244 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54245 *)
54246   case $ac_top_srcdir in
54247   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54248   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54249   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54250   esac;;
54251 esac
54252
54253
54254   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54255 echo "$as_me: executing $ac_dest commands" >&6;}
54256   case $ac_dest in
54257     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54258   # Strip MF so we end up with the name of the file.
54259   mf=`echo "$mf" | sed -e 's/:.*$//'`
54260   # Check whether this is an Automake generated Makefile or not.
54261   # We used to match only the files named `Makefile.in', but
54262   # some people rename them; so instead we look at the file content.
54263   # Grep'ing the first line is not enough: some people post-process
54264   # each Makefile.in and add a new line on top of each file to say so.
54265   # So let's grep whole file.
54266   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54267     dirpart=`(dirname "$mf") 2>/dev/null ||
54268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54269          X"$mf" : 'X\(//\)[^/]' \| \
54270          X"$mf" : 'X\(//\)$' \| \
54271          X"$mf" : 'X\(/\)' \| \
54272          .     : '\(.\)' 2>/dev/null ||
54273 echo X"$mf" |
54274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54275           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54276           /^X\(\/\/\)$/{ s//\1/; q; }
54277           /^X\(\/\).*/{ s//\1/; q; }
54278           s/.*/./; q'`
54279   else
54280     continue
54281   fi
54282   # Extract the definition of DEPDIR, am__include, and am__quote
54283   # from the Makefile without running `make'.
54284   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54285   test -z "$DEPDIR" && continue
54286   am__include=`sed -n 's/^am__include = //p' < "$mf"`
54287   test -z "am__include" && continue
54288   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54289   # When using ansi2knr, U may be empty or an underscore; expand it
54290   U=`sed -n 's/^U = //p' < "$mf"`
54291   # Find all dependency output files, they are included files with
54292   # $(DEPDIR) in their names.  We invoke sed twice because it is the
54293   # simplest approach to changing $(DEPDIR) to its actual value in the
54294   # expansion.
54295   for file in `sed -n "
54296     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54297        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54298     # Make sure the directory exists.
54299     test -f "$dirpart/$file" && continue
54300     fdir=`(dirname "$file") 2>/dev/null ||
54301 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54302          X"$file" : 'X\(//\)[^/]' \| \
54303          X"$file" : 'X\(//\)$' \| \
54304          X"$file" : 'X\(/\)' \| \
54305          .     : '\(.\)' 2>/dev/null ||
54306 echo X"$file" |
54307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54308           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54309           /^X\(\/\/\)$/{ s//\1/; q; }
54310           /^X\(\/\).*/{ s//\1/; q; }
54311           s/.*/./; q'`
54312     { if $as_mkdir_p; then
54313     mkdir -p $dirpart/$fdir
54314   else
54315     as_dir=$dirpart/$fdir
54316     as_dirs=
54317     while test ! -d "$as_dir"; do
54318       as_dirs="$as_dir $as_dirs"
54319       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54321          X"$as_dir" : 'X\(//\)[^/]' \| \
54322          X"$as_dir" : 'X\(//\)$' \| \
54323          X"$as_dir" : 'X\(/\)' \| \
54324          .     : '\(.\)' 2>/dev/null ||
54325 echo X"$as_dir" |
54326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54327           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54328           /^X\(\/\/\)$/{ s//\1/; q; }
54329           /^X\(\/\).*/{ s//\1/; q; }
54330           s/.*/./; q'`
54331     done
54332     test ! -n "$as_dirs" || mkdir $as_dirs
54333   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54334 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54335    { (exit 1); exit 1; }; }; }
54336
54337     # echo "creating $dirpart/$file"
54338     echo '# dummy' > "$dirpart/$file"
54339   done
54340 done
54341  ;;
54342     default )
54343 chmod +x tests/run
54344 date > stamp-h
54345 BACKENDSC="servers/slapd/backends.c"
54346 echo "Making $BACKENDSC"
54347 rm -f $BACKENDSC
54348 cat > $BACKENDSC << ENDX
54349 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54350  *
54351  * Copyright 1998-2005 The OpenLDAP Foundation.
54352  * All rights reserved.
54353  *
54354  * Redistribution and use in source and binary forms, with or without
54355  * modification, are permitted only as authorized by the OpenLDAP
54356  * Public License.
54357  *
54358  * A copy of this license is available in the file LICENSE in the
54359  * top-level directory of the distribution or, alternatively, at
54360  * <http://www.OpenLDAP.org/license.html>.
54361  */
54362 /* This file is automatically generated by configure; please do not edit. */
54363
54364 #include "portable.h"
54365 #include "slap.h"
54366
54367 ENDX
54368 if test "${STATIC_BACKENDS}"; then
54369         for b in config ${STATIC_BACKENDS}; do
54370                 bb=`echo "${b}" | sed -e 's/back-//'`
54371                 cat >> $BACKENDSC << ENDX
54372 extern BI_init ${bb}_back_initialize;
54373 ENDX
54374         done
54375
54376         cat >> $BACKENDSC << ENDX
54377
54378 BackendInfo slap_binfo[] = {
54379 ENDX
54380
54381         for b in config ${STATIC_BACKENDS}; do
54382                 bb=`echo "${b}" | sed -e 's/back-//'`
54383                 echo "    Add ${bb} ..."
54384                 cat >> $BACKENDSC << ENDX
54385         { "${bb}", ${bb}_back_initialize },
54386 ENDX
54387         done
54388
54389         cat >> $BACKENDSC << ENDX
54390         { NULL, NULL },
54391 };
54392
54393 /* end of generated file */
54394 ENDX
54395 fi
54396
54397 echo Please run \"make depend\" to build dependencies
54398  ;;
54399   esac
54400 done
54401 _ACEOF
54402
54403 cat >>$CONFIG_STATUS <<\_ACEOF
54404
54405 { (exit 0); exit 0; }
54406 _ACEOF
54407 chmod +x $CONFIG_STATUS
54408 ac_clean_files=$ac_clean_files_save
54409
54410
54411 # configure is writing to config.log, and then calls config.status.
54412 # config.status does its own redirection, appending to config.log.
54413 # Unfortunately, on DOS this fails, as config.log is still kept open
54414 # by configure, so config.status won't be able to write to it; its
54415 # output is simply discarded.  So we exec the FD to /dev/null,
54416 # effectively closing config.log, so it can be properly (re)opened and
54417 # appended to by config.status.  When coming back to configure, we
54418 # need to make the FD available again.
54419 if test "$no_create" != yes; then
54420   ac_cs_success=:
54421   ac_config_status_args=
54422   test "$silent" = yes &&
54423     ac_config_status_args="$ac_config_status_args --quiet"
54424   exec 5>/dev/null
54425   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54426   exec 5>>config.log
54427   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54428   # would make configure fail if this is the last instruction.
54429   $ac_cs_success || { (exit 1); exit 1; }
54430 fi
54431