]> git.sur5r.net Git - openldap/blob - configure
298eb7e7e90b4bb55d78cb6a4ffb2fbabb3f5725
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.586.2.21 2005/08/25 07:48:28 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 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_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
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
1040 SLAPD (Standalone LDAP Daemon) Options:
1041   --enable-slapd          enable building slapd [yes]
1042     --enable-aci          enable per-object ACIs (experimental) [no]
1043     --enable-cleartext    enable cleartext passwords [yes]
1044     --enable-crypt        enable crypt(3) passwords [no]
1045     --enable-lmpasswd     enable LAN Manager passwords [no]
1046     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1047     --enable-modules      enable dynamic module support [no]
1048     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1049     --enable-rlookups     enable reverse lookups of client hostnames [no]
1050     --enable-slapi        enable SLAPI support (experimental) [no]
1051     --enable-slp          enable SLPv2 support [no]
1052     --enable-wrappers     enable tcp wrapper support [no]
1053
1054 SLAPD Backend Options:
1055     --enable-backends     enable all available backends no|yes|mod
1056     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1057     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1058     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1059     --enable-ldap         enable ldap backend no|yes|mod [no]
1060     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1061       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1062       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1063     --enable-meta         enable metadirectory backend no|yes|mod [no]
1064     --enable-monitor      enable monitor backend no|yes|mod [yes]
1065     --enable-null         enable null backend no|yes|mod [no]
1066     --enable-passwd       enable passwd backend no|yes|mod [no]
1067     --enable-perl         enable perl backend no|yes|mod [no]
1068     --enable-relay        enable relay backend no|yes|mod [yes]
1069     --enable-shell        enable shell backend no|yes|mod [no]
1070     --enable-sql          enable sql backend no|yes|mod [no]
1071
1072 SLAPD Overlay Options:
1073     --enable-overlays     enable all available overlays no|yes|mod
1074     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1075     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1076     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1077     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1078     --enable-glue         Backend Glue overlay no|yes|mod [yes]
1079     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1080     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1081     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1082     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1083     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1084     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1085     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1086     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1087     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1088     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1089
1090 SLURPD (Replication Daemon) Options:
1091   --enable-slurpd         enable building slurpd [auto]
1092
1093 Library Generation & Linking Options
1094   --enable-static[=PKGS]
1095                           build static libraries [default=yes]
1096   --enable-shared[=PKGS]
1097                           build shared libraries [default=yes]
1098   --enable-fast-install[=PKGS]
1099                           optimize for fast installation [default=yes]
1100   --disable-dependency-tracking  speeds up one-time build
1101   --enable-dependency-tracking   do not reject slow dependency extractors
1102   --disable-libtool-lock  avoid locking (might break parallel builds)
1103
1104 Optional Packages:
1105   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1106   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1107   --with-subdir=DIR       change default subdirectory used for installs
1108   --with-cyrus-sasl       with Cyrus SASL support [auto]
1109   --with-fetch            with fetch(3) URL support [auto]
1110   --with-threads          with threads [auto]
1111   --with-tls              with TLS/SSL support [auto]
1112   --with-yielding-select  with implicitly yielding select [auto]
1113   --with-multiple-precision
1114                           multiple precision support for statistics
1115                           auto|bignum|gmp [auto]
1116   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1117   --with-pic              try to use only PIC/non-PIC objects [default=use
1118                           both]
1119   --with-tags[=TAGS]
1120                           include additional configurations [automatic]
1121
1122 See INSTALL file for further details.
1123
1124 Some influential environment variables:
1125   CC          C compiler command
1126   CFLAGS      C compiler flags
1127   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1128               nonstandard directory <lib dir>
1129   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1130               headers in a nonstandard directory <include dir>
1131   CPP         C preprocessor
1132   CXX         C++ compiler command
1133   CXXFLAGS    C++ compiler flags
1134   CXXCPP      C++ preprocessor
1135   F77         Fortran 77 compiler command
1136   FFLAGS      Fortran 77 compiler flags
1137
1138 Use these variables to override the choices made by `configure' or to help
1139 it to find libraries and programs with nonstandard names/locations.
1140
1141 _ACEOF
1142 fi
1143
1144 if test "$ac_init_help" = "recursive"; then
1145   # If there are subdirs, report their specific --help.
1146   ac_popdir=`pwd`
1147   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1148     test -d $ac_dir || continue
1149     ac_builddir=.
1150
1151 if test "$ac_dir" != .; then
1152   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1153   # A "../" for each directory in $ac_dir_suffix.
1154   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1155 else
1156   ac_dir_suffix= ac_top_builddir=
1157 fi
1158
1159 case $srcdir in
1160   .)  # No --srcdir option.  We are building in place.
1161     ac_srcdir=.
1162     if test -z "$ac_top_builddir"; then
1163        ac_top_srcdir=.
1164     else
1165        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1166     fi ;;
1167   [\\/]* | ?:[\\/]* )  # Absolute path.
1168     ac_srcdir=$srcdir$ac_dir_suffix;
1169     ac_top_srcdir=$srcdir ;;
1170   *) # Relative path.
1171     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1172     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1173 esac
1174
1175 # Do not use `cd foo && pwd` to compute absolute paths, because
1176 # the directories may not exist.
1177 case `pwd` in
1178 .) ac_abs_builddir="$ac_dir";;
1179 *)
1180   case "$ac_dir" in
1181   .) ac_abs_builddir=`pwd`;;
1182   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1183   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1184   esac;;
1185 esac
1186 case $ac_abs_builddir in
1187 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1188 *)
1189   case ${ac_top_builddir}. in
1190   .) ac_abs_top_builddir=$ac_abs_builddir;;
1191   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1192   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1193   esac;;
1194 esac
1195 case $ac_abs_builddir in
1196 .) ac_abs_srcdir=$ac_srcdir;;
1197 *)
1198   case $ac_srcdir in
1199   .) ac_abs_srcdir=$ac_abs_builddir;;
1200   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1201   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1202   esac;;
1203 esac
1204 case $ac_abs_builddir in
1205 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1206 *)
1207   case $ac_top_srcdir in
1208   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1209   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1210   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1211   esac;;
1212 esac
1213
1214     cd $ac_dir
1215     # Check for guested configure; otherwise get Cygnus style configure.
1216     if test -f $ac_srcdir/configure.gnu; then
1217       echo
1218       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1219     elif test -f $ac_srcdir/configure; then
1220       echo
1221       $SHELL $ac_srcdir/configure  --help=recursive
1222     elif test -f $ac_srcdir/configure.ac ||
1223            test -f $ac_srcdir/configure.in; then
1224       echo
1225       $ac_configure --help
1226     else
1227       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1228     fi
1229     cd $ac_popdir
1230   done
1231 fi
1232
1233 test -n "$ac_init_help" && exit 0
1234 if $ac_init_version; then
1235   cat <<\_ACEOF
1236
1237 Copyright (C) 2003 Free Software Foundation, Inc.
1238 This configure script is free software; the Free Software Foundation
1239 gives unlimited permission to copy, distribute and modify it.
1240
1241 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1242 Restrictions apply, see COPYRIGHT and LICENSE files.
1243 _ACEOF
1244   exit 0
1245 fi
1246 exec 5>config.log
1247 cat >&5 <<_ACEOF
1248 This file contains any messages produced by compilers while
1249 running configure, to aid debugging if configure makes a mistake.
1250
1251 It was created by $as_me, which was
1252 generated by GNU Autoconf 2.59.  Invocation command line was
1253
1254   $ $0 $@
1255
1256 _ACEOF
1257 {
1258 cat <<_ASUNAME
1259 ## --------- ##
1260 ## Platform. ##
1261 ## --------- ##
1262
1263 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1264 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1265 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1266 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1267 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1268
1269 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1270 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1271
1272 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1273 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1274 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1275 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1276 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1277 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1278 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1279
1280 _ASUNAME
1281
1282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1283 for as_dir in $PATH
1284 do
1285   IFS=$as_save_IFS
1286   test -z "$as_dir" && as_dir=.
1287   echo "PATH: $as_dir"
1288 done
1289
1290 } >&5
1291
1292 cat >&5 <<_ACEOF
1293
1294
1295 ## ----------- ##
1296 ## Core tests. ##
1297 ## ----------- ##
1298
1299 _ACEOF
1300
1301
1302 # Keep a trace of the command line.
1303 # Strip out --no-create and --no-recursion so they do not pile up.
1304 # Strip out --silent because we don't want to record it for future runs.
1305 # Also quote any args containing shell meta-characters.
1306 # Make two passes to allow for proper duplicate-argument suppression.
1307 ac_configure_args=
1308 ac_configure_args0=
1309 ac_configure_args1=
1310 ac_sep=
1311 ac_must_keep_next=false
1312 for ac_pass in 1 2
1313 do
1314   for ac_arg
1315   do
1316     case $ac_arg in
1317     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1318     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1319     | -silent | --silent | --silen | --sile | --sil)
1320       continue ;;
1321     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1322       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1323     esac
1324     case $ac_pass in
1325     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1326     2)
1327       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1328       if test $ac_must_keep_next = true; then
1329         ac_must_keep_next=false # Got value, back to normal.
1330       else
1331         case $ac_arg in
1332           *=* | --config-cache | -C | -disable-* | --disable-* \
1333           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1334           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1335           | -with-* | --with-* | -without-* | --without-* | --x)
1336             case "$ac_configure_args0 " in
1337               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1338             esac
1339             ;;
1340           -* ) ac_must_keep_next=true ;;
1341         esac
1342       fi
1343       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1344       # Get rid of the leading space.
1345       ac_sep=" "
1346       ;;
1347     esac
1348   done
1349 done
1350 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1351 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1352
1353 # When interrupted or exit'd, cleanup temporary files, and complete
1354 # config.log.  We remove comments because anyway the quotes in there
1355 # would cause problems or look ugly.
1356 # WARNING: Be sure not to use single quotes in there, as some shells,
1357 # such as our DU 5.0 friend, will then `close' the trap.
1358 trap 'exit_status=$?
1359   # Save into config.log some information that might help in debugging.
1360   {
1361     echo
1362
1363     cat <<\_ASBOX
1364 ## ---------------- ##
1365 ## Cache variables. ##
1366 ## ---------------- ##
1367 _ASBOX
1368     echo
1369     # The following way of writing the cache mishandles newlines in values,
1370 {
1371   (set) 2>&1 |
1372     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1373     *ac_space=\ *)
1374       sed -n \
1375         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1376           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1377       ;;
1378     *)
1379       sed -n \
1380         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1381       ;;
1382     esac;
1383 }
1384     echo
1385
1386     cat <<\_ASBOX
1387 ## ----------------- ##
1388 ## Output variables. ##
1389 ## ----------------- ##
1390 _ASBOX
1391     echo
1392     for ac_var in $ac_subst_vars
1393     do
1394       eval ac_val=$`echo $ac_var`
1395       echo "$ac_var='"'"'$ac_val'"'"'"
1396     done | sort
1397     echo
1398
1399     if test -n "$ac_subst_files"; then
1400       cat <<\_ASBOX
1401 ## ------------- ##
1402 ## Output files. ##
1403 ## ------------- ##
1404 _ASBOX
1405       echo
1406       for ac_var in $ac_subst_files
1407       do
1408         eval ac_val=$`echo $ac_var`
1409         echo "$ac_var='"'"'$ac_val'"'"'"
1410       done | sort
1411       echo
1412     fi
1413
1414     if test -s confdefs.h; then
1415       cat <<\_ASBOX
1416 ## ----------- ##
1417 ## confdefs.h. ##
1418 ## ----------- ##
1419 _ASBOX
1420       echo
1421       sed "/^$/d" confdefs.h | sort
1422       echo
1423     fi
1424     test "$ac_signal" != 0 &&
1425       echo "$as_me: caught signal $ac_signal"
1426     echo "$as_me: exit $exit_status"
1427   } >&5
1428   rm -f core *.core &&
1429   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1430     exit $exit_status
1431      ' 0
1432 for ac_signal in 1 2 13 15; do
1433   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1434 done
1435 ac_signal=0
1436
1437 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1438 rm -rf conftest* confdefs.h
1439 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1440 echo >confdefs.h
1441
1442 # Predefined preprocessor variables.
1443
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_NAME "$PACKAGE_NAME"
1446 _ACEOF
1447
1448
1449 cat >>confdefs.h <<_ACEOF
1450 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1451 _ACEOF
1452
1453
1454 cat >>confdefs.h <<_ACEOF
1455 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1456 _ACEOF
1457
1458
1459 cat >>confdefs.h <<_ACEOF
1460 #define PACKAGE_STRING "$PACKAGE_STRING"
1461 _ACEOF
1462
1463
1464 cat >>confdefs.h <<_ACEOF
1465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1466 _ACEOF
1467
1468
1469 # Let the site file select an alternate cache file if it wants to.
1470 # Prefer explicitly selected file to automatically selected ones.
1471 if test -z "$CONFIG_SITE"; then
1472   if test "x$prefix" != xNONE; then
1473     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1474   else
1475     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1476   fi
1477 fi
1478 for ac_site_file in $CONFIG_SITE; do
1479   if test -r "$ac_site_file"; then
1480     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1481 echo "$as_me: loading site script $ac_site_file" >&6;}
1482     sed 's/^/| /' "$ac_site_file" >&5
1483     . "$ac_site_file"
1484   fi
1485 done
1486
1487
1488 # Check that the precious variables saved in the cache have kept the same
1489 # value.
1490 ac_cache_corrupted=false
1491 for ac_var in `(set) 2>&1 |
1492                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1493   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1494   eval ac_new_set=\$ac_env_${ac_var}_set
1495   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1496   eval ac_new_val="\$ac_env_${ac_var}_value"
1497   case $ac_old_set,$ac_new_set in
1498     set,)
1499       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1500 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1501       ac_cache_corrupted=: ;;
1502     ,set)
1503       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1504 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1505       ac_cache_corrupted=: ;;
1506     ,);;
1507     *)
1508       if test "x$ac_old_val" != "x$ac_new_val"; then
1509         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1510 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1511         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1512 echo "$as_me:   former value:  $ac_old_val" >&2;}
1513         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1514 echo "$as_me:   current value: $ac_new_val" >&2;}
1515         ac_cache_corrupted=:
1516       fi;;
1517   esac
1518   # Pass precious variables to config.status.
1519   if test "$ac_new_set" = set; then
1520     case $ac_new_val in
1521     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1522       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1523     *) ac_arg=$ac_var=$ac_new_val ;;
1524     esac
1525     case " $ac_configure_args " in
1526       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1527       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1528     esac
1529   fi
1530 done
1531 if $ac_cache_corrupted; then
1532   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1533 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1534   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1535 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1536    { (exit 1); exit 1; }; }
1537 fi
1538
1539 ac_ext=c
1540 ac_cpp='$CPP $CPPFLAGS'
1541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1585 ac_aux_dir=
1586 for ac_dir in build $srcdir/build; do
1587   if test -f $ac_dir/install-sh; then
1588     ac_aux_dir=$ac_dir
1589     ac_install_sh="$ac_aux_dir/install-sh -c"
1590     break
1591   elif test -f $ac_dir/install.sh; then
1592     ac_aux_dir=$ac_dir
1593     ac_install_sh="$ac_aux_dir/install.sh -c"
1594     break
1595   elif test -f $ac_dir/shtool; then
1596     ac_aux_dir=$ac_dir
1597     ac_install_sh="$ac_aux_dir/shtool install -c"
1598     break
1599   fi
1600 done
1601 if test -z "$ac_aux_dir"; then
1602   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1603 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1604    { (exit 1); exit 1; }; }
1605 fi
1606 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1607 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1608 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1609
1610 eval `$ac_aux_dir/version.sh`
1611 if test -z "$OL_STRING"; then
1612         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1613 echo "$as_me: error: could not determine version" >&2;}
1614    { (exit 1); exit 1; }; }
1615 fi
1616
1617 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1618         ac_cv_shtool="$ac_aux_dir/shtool"
1619 else
1620         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1621 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1622    { (exit 1); exit 1; }; }
1623 fi
1624
1625 SHTOOL="$ac_cv_shtool"
1626
1627 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1628 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1629
1630 OPENLDAP_CVS=""
1631 if test -d $ac_aux_dir/CVS; then
1632         OPENLDAP_CVS="(from CVS sources) "
1633 fi
1634
1635 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1636
1637 # Make sure we can run config.sub.
1638 $ac_config_sub sun4 >/dev/null 2>&1 ||
1639   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1640 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1641    { (exit 1); exit 1; }; }
1642
1643 echo "$as_me:$LINENO: checking build system type" >&5
1644 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1645 if test "${ac_cv_build+set}" = set; then
1646   echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648   ac_cv_build_alias=$build_alias
1649 test -z "$ac_cv_build_alias" &&
1650   ac_cv_build_alias=`$ac_config_guess`
1651 test -z "$ac_cv_build_alias" &&
1652   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1653 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1654    { (exit 1); exit 1; }; }
1655 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1656   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1658    { (exit 1); exit 1; }; }
1659
1660 fi
1661 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1662 echo "${ECHO_T}$ac_cv_build" >&6
1663 build=$ac_cv_build
1664 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669 echo "$as_me:$LINENO: checking host system type" >&5
1670 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1671 if test "${ac_cv_host+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   ac_cv_host_alias=$host_alias
1675 test -z "$ac_cv_host_alias" &&
1676   ac_cv_host_alias=$ac_cv_build_alias
1677 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1678   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1680    { (exit 1); exit 1; }; }
1681
1682 fi
1683 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1684 echo "${ECHO_T}$ac_cv_host" >&6
1685 host=$ac_cv_host
1686 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691 echo "$as_me:$LINENO: checking target system type" >&5
1692 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1693 if test "${ac_cv_target+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   ac_cv_target_alias=$target_alias
1697 test "x$ac_cv_target_alias" = "x" &&
1698   ac_cv_target_alias=$ac_cv_host_alias
1699 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1700   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1701 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1702    { (exit 1); exit 1; }; }
1703
1704 fi
1705 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1706 echo "${ECHO_T}$ac_cv_target" >&6
1707 target=$ac_cv_target
1708 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1709 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1710 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711
1712
1713 # The aliases save the names the user supplied, while $host etc.
1714 # will get canonicalized.
1715 test -n "$target_alias" &&
1716   test "$program_prefix$program_suffix$program_transform_name" = \
1717     NONENONEs,x,x, &&
1718   program_prefix=${target_alias}-
1719
1720 am__api_version="1.9"
1721 # Find a good install program.  We prefer a C program (faster),
1722 # so one script is as good as another.  But avoid the broken or
1723 # incompatible versions:
1724 # SysV /etc/install, /usr/sbin/install
1725 # SunOS /usr/etc/install
1726 # IRIX /sbin/install
1727 # AIX /bin/install
1728 # AmigaOS /C/install, which installs bootblocks on floppy discs
1729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1732 # OS/2's system install, which has a completely different semantic
1733 # ./install, which can be erroneously created by make from ./install.sh.
1734 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1735 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1736 if test -z "$INSTALL"; then
1737 if test "${ac_cv_path_install+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   # Account for people who put trailing slashes in PATH elements.
1746 case $as_dir/ in
1747   ./ | .// | /cC/* | \
1748   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1749   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1750   /usr/ucb/* ) ;;
1751   *)
1752     # OSF1 and SCO ODT 3.0 have their own names for install.
1753     # Don't use installbsd from OSF since it installs stuff as root
1754     # by default.
1755     for ac_prog in ginstall scoinst install; do
1756       for ac_exec_ext in '' $ac_executable_extensions; do
1757         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1758           if test $ac_prog = install &&
1759             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1760             # AIX install.  It has an incompatible calling convention.
1761             :
1762           elif test $ac_prog = install &&
1763             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1764             # program-specific install script used by HP pwplus--don't use.
1765             :
1766           else
1767             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1768             break 3
1769           fi
1770         fi
1771       done
1772     done
1773     ;;
1774 esac
1775 done
1776
1777
1778 fi
1779   if test "${ac_cv_path_install+set}" = set; then
1780     INSTALL=$ac_cv_path_install
1781   else
1782     # As a last resort, use the slow shell script.  We don't cache a
1783     # path for INSTALL within a source directory, because that will
1784     # break other packages using the cache if that directory is
1785     # removed, or if the path is relative.
1786     INSTALL=$ac_install_sh
1787   fi
1788 fi
1789 echo "$as_me:$LINENO: result: $INSTALL" >&5
1790 echo "${ECHO_T}$INSTALL" >&6
1791
1792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1793 # It thinks the first close brace ends the variable substitution.
1794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1795
1796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1797
1798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1799
1800 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1801 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1802 # Just in case
1803 sleep 1
1804 echo timestamp > conftest.file
1805 # Do `set' in a subshell so we don't clobber the current shell's
1806 # arguments.  Must try -L first in case configure is actually a
1807 # symlink; some systems play weird games with the mod time of symlinks
1808 # (eg FreeBSD returns the mod time of the symlink's containing
1809 # directory).
1810 if (
1811    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1812    if test "$*" = "X"; then
1813       # -L didn't work.
1814       set X `ls -t $srcdir/configure conftest.file`
1815    fi
1816    rm -f conftest.file
1817    if test "$*" != "X $srcdir/configure conftest.file" \
1818       && test "$*" != "X conftest.file $srcdir/configure"; then
1819
1820       # If neither matched, then we have a broken ls.  This can happen
1821       # if, for instance, CONFIG_SHELL is bash and it inherits a
1822       # broken ls alias from the environment.  This has actually
1823       # happened.  Such a system could not be considered "sane".
1824       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1825 alias in your environment" >&5
1826 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1827 alias in your environment" >&2;}
1828    { (exit 1); exit 1; }; }
1829    fi
1830
1831    test "$2" = conftest.file
1832    )
1833 then
1834    # Ok.
1835    :
1836 else
1837    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1838 Check your system clock" >&5
1839 echo "$as_me: error: newly created file is older than distributed files!
1840 Check your system clock" >&2;}
1841    { (exit 1); exit 1; }; }
1842 fi
1843 echo "$as_me:$LINENO: result: yes" >&5
1844 echo "${ECHO_T}yes" >&6
1845 test "$program_prefix" != NONE &&
1846   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1847 # Use a double $ so make ignores it.
1848 test "$program_suffix" != NONE &&
1849   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1850 # Double any \ or $.  echo might interpret backslashes.
1851 # By default was `s,x,x', remove it if useless.
1852 cat <<\_ACEOF >conftest.sed
1853 s/[\\$]/&&/g;s/;s,x,x,$//
1854 _ACEOF
1855 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1856 rm conftest.sed
1857
1858 # expand $ac_aux_dir to an absolute path
1859 am_aux_dir=`cd $ac_aux_dir && pwd`
1860
1861 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1862 # Use eval to expand $SHELL
1863 if eval "$MISSING --run true"; then
1864   am_missing_run="$MISSING --run "
1865 else
1866   am_missing_run=
1867   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1868 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1869 fi
1870
1871 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1872   # We used to keeping the `.' as first argument, in order to
1873   # allow $(mkdir_p) to be used without argument.  As in
1874   #   $(mkdir_p) $(somedir)
1875   # where $(somedir) is conditionally defined.  However this is wrong
1876   # for two reasons:
1877   #  1. if the package is installed by a user who cannot write `.'
1878   #     make install will fail,
1879   #  2. the above comment should most certainly read
1880   #     $(mkdir_p) $(DESTDIR)$(somedir)
1881   #     so it does not work when $(somedir) is undefined and
1882   #     $(DESTDIR) is not.
1883   #  To support the latter case, we have to write
1884   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1885   #  so the `.' trick is pointless.
1886   mkdir_p='mkdir -p --'
1887 else
1888   # On NextStep and OpenStep, the `mkdir' command does not
1889   # recognize any option.  It will interpret all options as
1890   # directories to create, and then abort because `.' already
1891   # exists.
1892   for d in ./-p ./--version;
1893   do
1894     test -d $d && rmdir $d
1895   done
1896   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1897   if test -f "$ac_aux_dir/mkinstalldirs"; then
1898     mkdir_p='$(mkinstalldirs)'
1899   else
1900     mkdir_p='$(install_sh) -d'
1901   fi
1902 fi
1903
1904 for ac_prog in gawk mawk nawk awk
1905 do
1906   # Extract the first word of "$ac_prog", so it can be a program name with args.
1907 set dummy $ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_AWK+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$AWK"; then
1914   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923     ac_cv_prog_AWK="$ac_prog"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929
1930 fi
1931 fi
1932 AWK=$ac_cv_prog_AWK
1933 if test -n "$AWK"; then
1934   echo "$as_me:$LINENO: result: $AWK" >&5
1935 echo "${ECHO_T}$AWK" >&6
1936 else
1937   echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1939 fi
1940
1941   test -n "$AWK" && break
1942 done
1943
1944 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1945 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1946 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1947 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   cat >conftest.make <<\_ACEOF
1951 all:
1952         @echo 'ac_maketemp="$(MAKE)"'
1953 _ACEOF
1954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1955 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1956 if test -n "$ac_maketemp"; then
1957   eval ac_cv_prog_make_${ac_make}_set=yes
1958 else
1959   eval ac_cv_prog_make_${ac_make}_set=no
1960 fi
1961 rm -f conftest.make
1962 fi
1963 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1964   echo "$as_me:$LINENO: result: yes" >&5
1965 echo "${ECHO_T}yes" >&6
1966   SET_MAKE=
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970   SET_MAKE="MAKE=${MAKE-make}"
1971 fi
1972
1973 rm -rf .tst 2>/dev/null
1974 mkdir .tst 2>/dev/null
1975 if test -d .tst; then
1976   am__leading_dot=.
1977 else
1978   am__leading_dot=_
1979 fi
1980 rmdir .tst 2>/dev/null
1981
1982 # test to see if srcdir already configured
1983 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1984    test -f $srcdir/config.status; then
1985   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1986 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1987    { (exit 1); exit 1; }; }
1988 fi
1989
1990 # test whether we have cygpath
1991 if test -z "$CYGPATH_W"; then
1992   if (cygpath --version) >/dev/null 2>/dev/null; then
1993     CYGPATH_W='cygpath -w'
1994   else
1995     CYGPATH_W=echo
1996   fi
1997 fi
1998
1999
2000 # Define the identity of the package.
2001  PACKAGE=$OL_PACKAGE
2002  VERSION=$OL_VERSION
2003
2004
2005 # Some tools Automake needs.
2006
2007 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2008
2009
2010 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2011
2012
2013 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2014
2015
2016 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2017
2018
2019 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2020
2021 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2022
2023 # Installed binaries are usually stripped using `strip' when the user
2024 # run `make install-strip'.  However `strip' might not be the right
2025 # tool to use in cross-compilation environments, therefore Automake
2026 # will honor the `STRIP' environment variable to overrule this program.
2027 if test "$cross_compiling" != no; then
2028   if test -n "$ac_tool_prefix"; then
2029   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}strip; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_STRIP+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   if test -n "$STRIP"; then
2037   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042   IFS=$as_save_IFS
2043   test -z "$as_dir" && as_dir=.
2044   for ac_exec_ext in '' $ac_executable_extensions; do
2045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048     break 2
2049   fi
2050 done
2051 done
2052
2053 fi
2054 fi
2055 STRIP=$ac_cv_prog_STRIP
2056 if test -n "$STRIP"; then
2057   echo "$as_me:$LINENO: result: $STRIP" >&5
2058 echo "${ECHO_T}$STRIP" >&6
2059 else
2060   echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2062 fi
2063
2064 fi
2065 if test -z "$ac_cv_prog_STRIP"; then
2066   ac_ct_STRIP=$STRIP
2067   # Extract the first word of "strip", so it can be a program name with args.
2068 set dummy strip; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$ac_ct_STRIP"; then
2075   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084     ac_cv_prog_ac_ct_STRIP="strip"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090
2091   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2092 fi
2093 fi
2094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2095 if test -n "$ac_ct_STRIP"; then
2096   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2097 echo "${ECHO_T}$ac_ct_STRIP" >&6
2098 else
2099   echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2101 fi
2102
2103   STRIP=$ac_ct_STRIP
2104 else
2105   STRIP="$ac_cv_prog_STRIP"
2106 fi
2107
2108 fi
2109 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2110
2111 # We need awk for the "check" target.  The system "awk" is bad on
2112 # some platforms.
2113 # Always define AMTAR for backward compatibility.
2114
2115 AMTAR=${AMTAR-"${am_missing_run}tar"}
2116
2117 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2118
2119
2120
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define OPENLDAP_PACKAGE "$PACKAGE"
2125 _ACEOF
2126
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define OPENLDAP_VERSION "$VERSION"
2130 _ACEOF
2131
2132
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define LDAP_VENDOR_VERSION $OL_API_INC
2136 _ACEOF
2137
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2141 _ACEOF
2142
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2146 _ACEOF
2147
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2151 _ACEOF
2152
2153
2154 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2155
2156 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2157
2158 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2159
2160
2161
2162
2163
2164
2165
2166           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2167
2168           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2169
2170           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2171
2172
2173 echo "$as_me:$LINENO: checking configure arguments" >&5
2174 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2175
2176
2177 top_builddir=`pwd`
2178
2179 ldap_subdir="/openldap"
2180
2181
2182 # Check whether --with-subdir or --without-subdir was given.
2183 if test "${with_subdir+set}" = set; then
2184   withval="$with_subdir"
2185   case "$withval" in
2186         no) ldap_subdir=""
2187                 ;;
2188         yes)
2189                 ;;
2190         /*|\\*)
2191                 ldap_subdir="$withval"
2192                 ;;
2193         *)
2194                 ldap_subdir="/$withval"
2195                 ;;
2196 esac
2197
2198 fi;
2199
2200 # OpenLDAP --enable-debug
2201
2202         # Check whether --enable-debug or --disable-debug was given.
2203 if test "${enable_debug+set}" = set; then
2204   enableval="$enable_debug"
2205
2206         ol_arg=invalid
2207         for ol_val in auto yes no ; do
2208                 if test "$enableval" = "$ol_val" ; then
2209                         ol_arg="$ol_val"
2210                 fi
2211         done
2212         if test "$ol_arg" = "invalid" ; then
2213                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2214 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2215    { (exit 1); exit 1; }; }
2216         fi
2217         ol_enable_debug="$ol_arg"
2218
2219 else
2220         ol_enable_debug=yes
2221 fi;
2222 # end --enable-debug
2223 # OpenLDAP --enable-dynamic
2224
2225         # Check whether --enable-dynamic or --disable-dynamic was given.
2226 if test "${enable_dynamic+set}" = set; then
2227   enableval="$enable_dynamic"
2228
2229         ol_arg=invalid
2230         for ol_val in auto yes no ; do
2231                 if test "$enableval" = "$ol_val" ; then
2232                         ol_arg="$ol_val"
2233                 fi
2234         done
2235         if test "$ol_arg" = "invalid" ; then
2236                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2237 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2238    { (exit 1); exit 1; }; }
2239         fi
2240         ol_enable_dynamic="$ol_arg"
2241
2242 else
2243         ol_enable_dynamic=no
2244 fi;
2245 # end --enable-dynamic
2246 # OpenLDAP --enable-syslog
2247
2248         # Check whether --enable-syslog or --disable-syslog was given.
2249 if test "${enable_syslog+set}" = set; then
2250   enableval="$enable_syslog"
2251
2252         ol_arg=invalid
2253         for ol_val in auto yes no ; do
2254                 if test "$enableval" = "$ol_val" ; then
2255                         ol_arg="$ol_val"
2256                 fi
2257         done
2258         if test "$ol_arg" = "invalid" ; then
2259                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2260 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2261    { (exit 1); exit 1; }; }
2262         fi
2263         ol_enable_syslog="$ol_arg"
2264
2265 else
2266         ol_enable_syslog=auto
2267 fi;
2268 # end --enable-syslog
2269 # OpenLDAP --enable-proctitle
2270
2271         # Check whether --enable-proctitle or --disable-proctitle was given.
2272 if test "${enable_proctitle+set}" = set; then
2273   enableval="$enable_proctitle"
2274
2275         ol_arg=invalid
2276         for ol_val in auto yes no ; do
2277                 if test "$enableval" = "$ol_val" ; then
2278                         ol_arg="$ol_val"
2279                 fi
2280         done
2281         if test "$ol_arg" = "invalid" ; then
2282                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2284    { (exit 1); exit 1; }; }
2285         fi
2286         ol_enable_proctitle="$ol_arg"
2287
2288 else
2289         ol_enable_proctitle=yes
2290 fi;
2291 # end --enable-proctitle
2292 ol_enable_referrals=${ol_enable_referrals-no}
2293 ol_enable_kbind=${ol_enable_kbind-no}
2294 # OpenLDAP --enable-ipv6
2295
2296         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2297 if test "${enable_ipv6+set}" = set; then
2298   enableval="$enable_ipv6"
2299
2300         ol_arg=invalid
2301         for ol_val in auto yes no ; do
2302                 if test "$enableval" = "$ol_val" ; then
2303                         ol_arg="$ol_val"
2304                 fi
2305         done
2306         if test "$ol_arg" = "invalid" ; then
2307                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2308 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2309    { (exit 1); exit 1; }; }
2310         fi
2311         ol_enable_ipv6="$ol_arg"
2312
2313 else
2314         ol_enable_ipv6=auto
2315 fi;
2316 # end --enable-ipv6
2317 # OpenLDAP --enable-local
2318
2319         # Check whether --enable-local or --disable-local was given.
2320 if test "${enable_local+set}" = set; then
2321   enableval="$enable_local"
2322
2323         ol_arg=invalid
2324         for ol_val in auto yes no ; do
2325                 if test "$enableval" = "$ol_val" ; then
2326                         ol_arg="$ol_val"
2327                 fi
2328         done
2329         if test "$ol_arg" = "invalid" ; then
2330                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2331 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2332    { (exit 1); exit 1; }; }
2333         fi
2334         ol_enable_local="$ol_arg"
2335
2336 else
2337         ol_enable_local=auto
2338 fi;
2339 # end --enable-local
2340
2341 # OpenLDAP --with-cyrus_sasl
2342
2343 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2344 if test "${with_cyrus_sasl+set}" = set; then
2345   withval="$with_cyrus_sasl"
2346
2347         ol_arg=invalid
2348         for ol_val in auto yes no  ; do
2349                 if test "$withval" = "$ol_val" ; then
2350                         ol_arg="$ol_val"
2351                 fi
2352         done
2353         if test "$ol_arg" = "invalid" ; then
2354                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2355 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2356    { (exit 1); exit 1; }; }
2357         fi
2358         ol_with_cyrus_sasl="$ol_arg"
2359
2360 else
2361         ol_with_cyrus_sasl="auto"
2362 fi; # end --with-cyrus_sasl
2363
2364 # OpenLDAP --with-fetch
2365
2366 # Check whether --with-fetch or --without-fetch was given.
2367 if test "${with_fetch+set}" = set; then
2368   withval="$with_fetch"
2369
2370         ol_arg=invalid
2371         for ol_val in auto yes no  ; do
2372                 if test "$withval" = "$ol_val" ; then
2373                         ol_arg="$ol_val"
2374                 fi
2375         done
2376         if test "$ol_arg" = "invalid" ; then
2377                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2378 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2379    { (exit 1); exit 1; }; }
2380         fi
2381         ol_with_fetch="$ol_arg"
2382
2383 else
2384         ol_with_fetch="auto"
2385 fi; # end --with-fetch
2386
2387 ol_with_kerberos=${ol_with_kerberos-auto}
2388 # OpenLDAP --with-threads
2389
2390 # Check whether --with-threads or --without-threads was given.
2391 if test "${with_threads+set}" = set; then
2392   withval="$with_threads"
2393
2394         ol_arg=invalid
2395         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2396                 if test "$withval" = "$ol_val" ; then
2397                         ol_arg="$ol_val"
2398                 fi
2399         done
2400         if test "$ol_arg" = "invalid" ; then
2401                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2402 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2403    { (exit 1); exit 1; }; }
2404         fi
2405         ol_with_threads="$ol_arg"
2406
2407 else
2408         ol_with_threads="auto"
2409 fi; # end --with-threads
2410
2411 # OpenLDAP --with-tls
2412
2413 # Check whether --with-tls or --without-tls was given.
2414 if test "${with_tls+set}" = set; then
2415   withval="$with_tls"
2416
2417         ol_arg=invalid
2418         for ol_val in auto ssleay openssl yes no  ; do
2419                 if test "$withval" = "$ol_val" ; then
2420                         ol_arg="$ol_val"
2421                 fi
2422         done
2423         if test "$ol_arg" = "invalid" ; then
2424                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2425 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2426    { (exit 1); exit 1; }; }
2427         fi
2428         ol_with_tls="$ol_arg"
2429
2430 else
2431         ol_with_tls="auto"
2432 fi; # end --with-tls
2433
2434 # OpenLDAP --with-yielding_select
2435
2436 # Check whether --with-yielding_select or --without-yielding_select was given.
2437 if test "${with_yielding_select+set}" = set; then
2438   withval="$with_yielding_select"
2439
2440         ol_arg=invalid
2441         for ol_val in auto yes no manual  ; do
2442                 if test "$withval" = "$ol_val" ; then
2443                         ol_arg="$ol_val"
2444                 fi
2445         done
2446         if test "$ol_arg" = "invalid" ; then
2447                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2448 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2449    { (exit 1); exit 1; }; }
2450         fi
2451         ol_with_yielding_select="$ol_arg"
2452
2453 else
2454         ol_with_yielding_select="auto"
2455 fi; # end --with-yielding_select
2456
2457 # OpenLDAP --with-multiple_precision
2458
2459 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2460 if test "${with_multiple_precision+set}" = set; then
2461   withval="$with_multiple_precision"
2462
2463         ol_arg=invalid
2464         for ol_val in auto bignum gmp yes no  ; do
2465                 if test "$withval" = "$ol_val" ; then
2466                         ol_arg="$ol_val"
2467                 fi
2468         done
2469         if test "$ol_arg" = "invalid" ; then
2470                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2471 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2472    { (exit 1); exit 1; }; }
2473         fi
2474         ol_with_multiple_precision="$ol_arg"
2475
2476 else
2477         ol_with_multiple_precision="auto"
2478 fi; # end --with-multiple_precision
2479
2480
2481
2482 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2483 if test "${enable_xxslapdoptions+set}" = set; then
2484   enableval="$enable_xxslapdoptions"
2485
2486 fi;
2487 # OpenLDAP --enable-slapd
2488
2489         # Check whether --enable-slapd or --disable-slapd was given.
2490 if test "${enable_slapd+set}" = set; then
2491   enableval="$enable_slapd"
2492
2493         ol_arg=invalid
2494         for ol_val in auto yes no ; do
2495                 if test "$enableval" = "$ol_val" ; then
2496                         ol_arg="$ol_val"
2497                 fi
2498         done
2499         if test "$ol_arg" = "invalid" ; then
2500                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2501 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2502    { (exit 1); exit 1; }; }
2503         fi
2504         ol_enable_slapd="$ol_arg"
2505
2506 else
2507         ol_enable_slapd=yes
2508 fi;
2509 # end --enable-slapd
2510 # OpenLDAP --enable-aci
2511
2512         # Check whether --enable-aci or --disable-aci was given.
2513 if test "${enable_aci+set}" = set; then
2514   enableval="$enable_aci"
2515
2516         ol_arg=invalid
2517         for ol_val in auto yes no ; do
2518                 if test "$enableval" = "$ol_val" ; then
2519                         ol_arg="$ol_val"
2520                 fi
2521         done
2522         if test "$ol_arg" = "invalid" ; then
2523                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2524 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2525    { (exit 1); exit 1; }; }
2526         fi
2527         ol_enable_aci="$ol_arg"
2528
2529 else
2530         ol_enable_aci=no
2531 fi;
2532 # end --enable-aci
2533 # OpenLDAP --enable-cleartext
2534
2535         # Check whether --enable-cleartext or --disable-cleartext was given.
2536 if test "${enable_cleartext+set}" = set; then
2537   enableval="$enable_cleartext"
2538
2539         ol_arg=invalid
2540         for ol_val in auto yes no ; do
2541                 if test "$enableval" = "$ol_val" ; then
2542                         ol_arg="$ol_val"
2543                 fi
2544         done
2545         if test "$ol_arg" = "invalid" ; then
2546                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2547 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2548    { (exit 1); exit 1; }; }
2549         fi
2550         ol_enable_cleartext="$ol_arg"
2551
2552 else
2553         ol_enable_cleartext=yes
2554 fi;
2555 # end --enable-cleartext
2556 # OpenLDAP --enable-crypt
2557
2558         # Check whether --enable-crypt or --disable-crypt was given.
2559 if test "${enable_crypt+set}" = set; then
2560   enableval="$enable_crypt"
2561
2562         ol_arg=invalid
2563         for ol_val in auto yes no ; do
2564                 if test "$enableval" = "$ol_val" ; then
2565                         ol_arg="$ol_val"
2566                 fi
2567         done
2568         if test "$ol_arg" = "invalid" ; then
2569                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2570 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2571    { (exit 1); exit 1; }; }
2572         fi
2573         ol_enable_crypt="$ol_arg"
2574
2575 else
2576         ol_enable_crypt=no
2577 fi;
2578 # end --enable-crypt
2579 # OpenLDAP --enable-lmpasswd
2580
2581         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2582 if test "${enable_lmpasswd+set}" = set; then
2583   enableval="$enable_lmpasswd"
2584
2585         ol_arg=invalid
2586         for ol_val in auto yes no ; do
2587                 if test "$enableval" = "$ol_val" ; then
2588                         ol_arg="$ol_val"
2589                 fi
2590         done
2591         if test "$ol_arg" = "invalid" ; then
2592                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2593 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2594    { (exit 1); exit 1; }; }
2595         fi
2596         ol_enable_lmpasswd="$ol_arg"
2597
2598 else
2599         ol_enable_lmpasswd=no
2600 fi;
2601 # end --enable-lmpasswd
2602 # OpenLDAP --enable-spasswd
2603
2604         # Check whether --enable-spasswd or --disable-spasswd was given.
2605 if test "${enable_spasswd+set}" = set; then
2606   enableval="$enable_spasswd"
2607
2608         ol_arg=invalid
2609         for ol_val in auto yes no ; do
2610                 if test "$enableval" = "$ol_val" ; then
2611                         ol_arg="$ol_val"
2612                 fi
2613         done
2614         if test "$ol_arg" = "invalid" ; then
2615                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2616 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2617    { (exit 1); exit 1; }; }
2618         fi
2619         ol_enable_spasswd="$ol_arg"
2620
2621 else
2622         ol_enable_spasswd=no
2623 fi;
2624 # end --enable-spasswd
2625 # OpenLDAP --enable-modules
2626
2627         # Check whether --enable-modules or --disable-modules was given.
2628 if test "${enable_modules+set}" = set; then
2629   enableval="$enable_modules"
2630
2631         ol_arg=invalid
2632         for ol_val in auto yes no ; do
2633                 if test "$enableval" = "$ol_val" ; then
2634                         ol_arg="$ol_val"
2635                 fi
2636         done
2637         if test "$ol_arg" = "invalid" ; then
2638                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2639 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2640    { (exit 1); exit 1; }; }
2641         fi
2642         ol_enable_modules="$ol_arg"
2643
2644 else
2645         ol_enable_modules=no
2646 fi;
2647 # end --enable-modules
2648 ol_enable_multimaster=${ol_enable_multimaster-no}
2649 # OpenLDAP --enable-rewrite
2650
2651         # Check whether --enable-rewrite or --disable-rewrite was given.
2652 if test "${enable_rewrite+set}" = set; then
2653   enableval="$enable_rewrite"
2654
2655         ol_arg=invalid
2656         for ol_val in auto yes no ; do
2657                 if test "$enableval" = "$ol_val" ; then
2658                         ol_arg="$ol_val"
2659                 fi
2660         done
2661         if test "$ol_arg" = "invalid" ; then
2662                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2663 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2664    { (exit 1); exit 1; }; }
2665         fi
2666         ol_enable_rewrite="$ol_arg"
2667
2668 else
2669         ol_enable_rewrite=auto
2670 fi;
2671 # end --enable-rewrite
2672 # OpenLDAP --enable-rlookups
2673
2674         # Check whether --enable-rlookups or --disable-rlookups was given.
2675 if test "${enable_rlookups+set}" = set; then
2676   enableval="$enable_rlookups"
2677
2678         ol_arg=invalid
2679         for ol_val in auto yes no ; do
2680                 if test "$enableval" = "$ol_val" ; then
2681                         ol_arg="$ol_val"
2682                 fi
2683         done
2684         if test "$ol_arg" = "invalid" ; then
2685                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2686 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2687    { (exit 1); exit 1; }; }
2688         fi
2689         ol_enable_rlookups="$ol_arg"
2690
2691 else
2692         ol_enable_rlookups=no
2693 fi;
2694 # end --enable-rlookups
2695 # OpenLDAP --enable-slapi
2696
2697         # Check whether --enable-slapi or --disable-slapi was given.
2698 if test "${enable_slapi+set}" = set; then
2699   enableval="$enable_slapi"
2700
2701         ol_arg=invalid
2702         for ol_val in auto yes no ; do
2703                 if test "$enableval" = "$ol_val" ; then
2704                         ol_arg="$ol_val"
2705                 fi
2706         done
2707         if test "$ol_arg" = "invalid" ; then
2708                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2709 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2710    { (exit 1); exit 1; }; }
2711         fi
2712         ol_enable_slapi="$ol_arg"
2713
2714 else
2715         ol_enable_slapi=no
2716 fi;
2717 # end --enable-slapi
2718 # OpenLDAP --enable-slp
2719
2720         # Check whether --enable-slp or --disable-slp was given.
2721 if test "${enable_slp+set}" = set; then
2722   enableval="$enable_slp"
2723
2724         ol_arg=invalid
2725         for ol_val in auto yes no ; do
2726                 if test "$enableval" = "$ol_val" ; then
2727                         ol_arg="$ol_val"
2728                 fi
2729         done
2730         if test "$ol_arg" = "invalid" ; then
2731                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2732 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2733    { (exit 1); exit 1; }; }
2734         fi
2735         ol_enable_slp="$ol_arg"
2736
2737 else
2738         ol_enable_slp=no
2739 fi;
2740 # end --enable-slp
2741 # OpenLDAP --enable-wrappers
2742
2743         # Check whether --enable-wrappers or --disable-wrappers was given.
2744 if test "${enable_wrappers+set}" = set; then
2745   enableval="$enable_wrappers"
2746
2747         ol_arg=invalid
2748         for ol_val in auto yes no ; do
2749                 if test "$enableval" = "$ol_val" ; then
2750                         ol_arg="$ol_val"
2751                 fi
2752         done
2753         if test "$ol_arg" = "invalid" ; then
2754                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2755 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2756    { (exit 1); exit 1; }; }
2757         fi
2758         ol_enable_wrappers="$ol_arg"
2759
2760 else
2761         ol_enable_wrappers=no
2762 fi;
2763 # end --enable-wrappers
2764
2765 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2766         passwd perl relay shell sql"
2767
2768 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2769 if test "${enable_xxslapbackends+set}" = set; then
2770   enableval="$enable_xxslapbackends"
2771
2772 fi;
2773
2774 # OpenLDAP --enable-backends
2775
2776         # Check whether --enable-backends or --disable-backends was given.
2777 if test "${enable_backends+set}" = set; then
2778   enableval="$enable_backends"
2779
2780         ol_arg=invalid
2781         for ol_val in no yes mod ; do
2782                 if test "$enableval" = "$ol_val" ; then
2783                         ol_arg="$ol_val"
2784                 fi
2785         done
2786         if test "$ol_arg" = "invalid" ; then
2787                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2788 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2789    { (exit 1); exit 1; }; }
2790         fi
2791         ol_enable_backends="$ol_arg"
2792
2793 fi;
2794 # end --enable-backends
2795 # OpenLDAP --enable-bdb
2796
2797         # Check whether --enable-bdb or --disable-bdb was given.
2798 if test "${enable_bdb+set}" = set; then
2799   enableval="$enable_bdb"
2800
2801         ol_arg=invalid
2802         for ol_val in no yes mod ; do
2803                 if test "$enableval" = "$ol_val" ; then
2804                         ol_arg="$ol_val"
2805                 fi
2806         done
2807         if test "$ol_arg" = "invalid" ; then
2808                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2809 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2810    { (exit 1); exit 1; }; }
2811         fi
2812         ol_enable_bdb="$ol_arg"
2813
2814 else
2815         ol_enable_bdb=${ol_enable_backends:-yes}
2816 fi;
2817 # end --enable-bdb
2818 # OpenLDAP --enable-dnssrv
2819
2820         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2821 if test "${enable_dnssrv+set}" = set; then
2822   enableval="$enable_dnssrv"
2823
2824         ol_arg=invalid
2825         for ol_val in no yes mod ; do
2826                 if test "$enableval" = "$ol_val" ; then
2827                         ol_arg="$ol_val"
2828                 fi
2829         done
2830         if test "$ol_arg" = "invalid" ; then
2831                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2832 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2833    { (exit 1); exit 1; }; }
2834         fi
2835         ol_enable_dnssrv="$ol_arg"
2836
2837 else
2838         ol_enable_dnssrv=${ol_enable_backends:-no}
2839 fi;
2840 # end --enable-dnssrv
2841 # OpenLDAP --enable-hdb
2842
2843         # Check whether --enable-hdb or --disable-hdb was given.
2844 if test "${enable_hdb+set}" = set; then
2845   enableval="$enable_hdb"
2846
2847         ol_arg=invalid
2848         for ol_val in no yes mod ; do
2849                 if test "$enableval" = "$ol_val" ; then
2850                         ol_arg="$ol_val"
2851                 fi
2852         done
2853         if test "$ol_arg" = "invalid" ; then
2854                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2855 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2856    { (exit 1); exit 1; }; }
2857         fi
2858         ol_enable_hdb="$ol_arg"
2859
2860 else
2861         ol_enable_hdb=${ol_enable_backends:-yes}
2862 fi;
2863 # end --enable-hdb
2864 # OpenLDAP --enable-ldap
2865
2866         # Check whether --enable-ldap or --disable-ldap was given.
2867 if test "${enable_ldap+set}" = set; then
2868   enableval="$enable_ldap"
2869
2870         ol_arg=invalid
2871         for ol_val in no yes mod ; do
2872                 if test "$enableval" = "$ol_val" ; then
2873                         ol_arg="$ol_val"
2874                 fi
2875         done
2876         if test "$ol_arg" = "invalid" ; then
2877                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2878 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2879    { (exit 1); exit 1; }; }
2880         fi
2881         ol_enable_ldap="$ol_arg"
2882
2883 else
2884         ol_enable_ldap=${ol_enable_backends:-no}
2885 fi;
2886 # end --enable-ldap
2887 # OpenLDAP --enable-ldbm
2888
2889         # Check whether --enable-ldbm or --disable-ldbm was given.
2890 if test "${enable_ldbm+set}" = set; then
2891   enableval="$enable_ldbm"
2892
2893         ol_arg=invalid
2894         for ol_val in no yes mod ; do
2895                 if test "$enableval" = "$ol_val" ; then
2896                         ol_arg="$ol_val"
2897                 fi
2898         done
2899         if test "$ol_arg" = "invalid" ; then
2900                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2901 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2902    { (exit 1); exit 1; }; }
2903         fi
2904         ol_enable_ldbm="$ol_arg"
2905
2906 else
2907         ol_enable_ldbm=${ol_enable_backends:-no}
2908 fi;
2909 # end --enable-ldbm
2910 # OpenLDAP --enable-ldbm_api
2911
2912         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2913 if test "${enable_ldbm_api+set}" = set; then
2914   enableval="$enable_ldbm_api"
2915
2916         ol_arg=invalid
2917         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2918                 if test "$enableval" = "$ol_val" ; then
2919                         ol_arg="$ol_val"
2920                 fi
2921         done
2922         if test "$ol_arg" = "invalid" ; then
2923                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2924 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2925    { (exit 1); exit 1; }; }
2926         fi
2927         ol_enable_ldbm_api="$ol_arg"
2928
2929 else
2930         ol_enable_ldbm_api=auto
2931 fi;
2932 # end --enable-ldbm_api
2933
2934 # OpenLDAP --enable-ldbm_type
2935
2936         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2937 if test "${enable_ldbm_type+set}" = set; then
2938   enableval="$enable_ldbm_type"
2939
2940         ol_arg=invalid
2941         for ol_val in auto btree hash ; do
2942                 if test "$enableval" = "$ol_val" ; then
2943                         ol_arg="$ol_val"
2944                 fi
2945         done
2946         if test "$ol_arg" = "invalid" ; then
2947                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2949    { (exit 1); exit 1; }; }
2950         fi
2951         ol_enable_ldbm_type="$ol_arg"
2952
2953 else
2954         ol_enable_ldbm_type=auto
2955 fi;
2956 # end --enable-ldbm_type
2957
2958 # OpenLDAP --enable-meta
2959
2960         # Check whether --enable-meta or --disable-meta was given.
2961 if test "${enable_meta+set}" = set; then
2962   enableval="$enable_meta"
2963
2964         ol_arg=invalid
2965         for ol_val in no yes mod ; do
2966                 if test "$enableval" = "$ol_val" ; then
2967                         ol_arg="$ol_val"
2968                 fi
2969         done
2970         if test "$ol_arg" = "invalid" ; then
2971                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2973    { (exit 1); exit 1; }; }
2974         fi
2975         ol_enable_meta="$ol_arg"
2976
2977 else
2978         ol_enable_meta=${ol_enable_backends:-no}
2979 fi;
2980 # end --enable-meta
2981 # OpenLDAP --enable-monitor
2982
2983         # Check whether --enable-monitor or --disable-monitor was given.
2984 if test "${enable_monitor+set}" = set; then
2985   enableval="$enable_monitor"
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-monitor" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2996    { (exit 1); exit 1; }; }
2997         fi
2998         ol_enable_monitor="$ol_arg"
2999
3000 else
3001         ol_enable_monitor=${ol_enable_backends:-yes}
3002 fi;
3003 # end --enable-monitor
3004 # OpenLDAP --enable-null
3005
3006         # Check whether --enable-null or --disable-null was given.
3007 if test "${enable_null+set}" = set; then
3008   enableval="$enable_null"
3009
3010         ol_arg=invalid
3011         for ol_val in no yes mod ; do
3012                 if test "$enableval" = "$ol_val" ; then
3013                         ol_arg="$ol_val"
3014                 fi
3015         done
3016         if test "$ol_arg" = "invalid" ; then
3017                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3019    { (exit 1); exit 1; }; }
3020         fi
3021         ol_enable_null="$ol_arg"
3022
3023 else
3024         ol_enable_null=${ol_enable_backends:-no}
3025 fi;
3026 # end --enable-null
3027 # OpenLDAP --enable-passwd
3028
3029         # Check whether --enable-passwd or --disable-passwd was given.
3030 if test "${enable_passwd+set}" = set; then
3031   enableval="$enable_passwd"
3032
3033         ol_arg=invalid
3034         for ol_val in no yes mod ; do
3035                 if test "$enableval" = "$ol_val" ; then
3036                         ol_arg="$ol_val"
3037                 fi
3038         done
3039         if test "$ol_arg" = "invalid" ; then
3040                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3042    { (exit 1); exit 1; }; }
3043         fi
3044         ol_enable_passwd="$ol_arg"
3045
3046 else
3047         ol_enable_passwd=${ol_enable_backends:-no}
3048 fi;
3049 # end --enable-passwd
3050 # OpenLDAP --enable-perl
3051
3052         # Check whether --enable-perl or --disable-perl was given.
3053 if test "${enable_perl+set}" = set; then
3054   enableval="$enable_perl"
3055
3056         ol_arg=invalid
3057         for ol_val in no yes mod ; do
3058                 if test "$enableval" = "$ol_val" ; then
3059                         ol_arg="$ol_val"
3060                 fi
3061         done
3062         if test "$ol_arg" = "invalid" ; then
3063                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3065    { (exit 1); exit 1; }; }
3066         fi
3067         ol_enable_perl="$ol_arg"
3068
3069 else
3070         ol_enable_perl=${ol_enable_backends:-no}
3071 fi;
3072 # end --enable-perl
3073 # OpenLDAP --enable-relay
3074
3075         # Check whether --enable-relay or --disable-relay was given.
3076 if test "${enable_relay+set}" = set; then
3077   enableval="$enable_relay"
3078
3079         ol_arg=invalid
3080         for ol_val in no yes mod ; do
3081                 if test "$enableval" = "$ol_val" ; then
3082                         ol_arg="$ol_val"
3083                 fi
3084         done
3085         if test "$ol_arg" = "invalid" ; then
3086                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3088    { (exit 1); exit 1; }; }
3089         fi
3090         ol_enable_relay="$ol_arg"
3091
3092 else
3093         ol_enable_relay=${ol_enable_backends:-yes}
3094 fi;
3095 # end --enable-relay
3096 # OpenLDAP --enable-shell
3097
3098         # Check whether --enable-shell or --disable-shell was given.
3099 if test "${enable_shell+set}" = set; then
3100   enableval="$enable_shell"
3101
3102         ol_arg=invalid
3103         for ol_val in no yes mod ; do
3104                 if test "$enableval" = "$ol_val" ; then
3105                         ol_arg="$ol_val"
3106                 fi
3107         done
3108         if test "$ol_arg" = "invalid" ; then
3109                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3110 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3111    { (exit 1); exit 1; }; }
3112         fi
3113         ol_enable_shell="$ol_arg"
3114
3115 else
3116         ol_enable_shell=${ol_enable_backends:-no}
3117 fi;
3118 # end --enable-shell
3119 # OpenLDAP --enable-sql
3120
3121         # Check whether --enable-sql or --disable-sql was given.
3122 if test "${enable_sql+set}" = set; then
3123   enableval="$enable_sql"
3124
3125         ol_arg=invalid
3126         for ol_val in no yes mod ; do
3127                 if test "$enableval" = "$ol_val" ; then
3128                         ol_arg="$ol_val"
3129                 fi
3130         done
3131         if test "$ol_arg" = "invalid" ; then
3132                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3134    { (exit 1); exit 1; }; }
3135         fi
3136         ol_enable_sql="$ol_arg"
3137
3138 else
3139         ol_enable_sql=${ol_enable_backends:-no}
3140 fi;
3141 # end --enable-sql
3142
3143 Overlays="accesslog \
3144         denyop \
3145         dyngroup \
3146         dynlist \
3147         glue \
3148         lastmod \
3149         ppolicy \
3150         proxycache \
3151         refint \
3152         retcode \
3153         rwm \
3154         syncprov \
3155         translucent \
3156         unique \
3157         valsort"
3158
3159 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3160 if test "${enable_xxslapoverlays+set}" = set; then
3161   enableval="$enable_xxslapoverlays"
3162
3163 fi;
3164
3165 # OpenLDAP --enable-overlays
3166
3167         # Check whether --enable-overlays or --disable-overlays was given.
3168 if test "${enable_overlays+set}" = set; then
3169   enableval="$enable_overlays"
3170
3171         ol_arg=invalid
3172         for ol_val in no yes mod ; do
3173                 if test "$enableval" = "$ol_val" ; then
3174                         ol_arg="$ol_val"
3175                 fi
3176         done
3177         if test "$ol_arg" = "invalid" ; then
3178                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3179 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3180    { (exit 1); exit 1; }; }
3181         fi
3182         ol_enable_overlays="$ol_arg"
3183
3184 fi;
3185 # end --enable-overlays
3186 # OpenLDAP --enable-accesslog
3187
3188         # Check whether --enable-accesslog or --disable-accesslog was given.
3189 if test "${enable_accesslog+set}" = set; then
3190   enableval="$enable_accesslog"
3191
3192         ol_arg=invalid
3193         for ol_val in no yes mod ; do
3194                 if test "$enableval" = "$ol_val" ; then
3195                         ol_arg="$ol_val"
3196                 fi
3197         done
3198         if test "$ol_arg" = "invalid" ; then
3199                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3200 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3201    { (exit 1); exit 1; }; }
3202         fi
3203         ol_enable_accesslog="$ol_arg"
3204
3205 else
3206         ol_enable_accesslog=${ol_enable_overlays:-no}
3207 fi;
3208 # end --enable-accesslog
3209
3210 # OpenLDAP --enable-denyop
3211
3212         # Check whether --enable-denyop or --disable-denyop was given.
3213 if test "${enable_denyop+set}" = set; then
3214   enableval="$enable_denyop"
3215
3216         ol_arg=invalid
3217         for ol_val in no yes mod ; do
3218                 if test "$enableval" = "$ol_val" ; then
3219                         ol_arg="$ol_val"
3220                 fi
3221         done
3222         if test "$ol_arg" = "invalid" ; then
3223                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3225    { (exit 1); exit 1; }; }
3226         fi
3227         ol_enable_denyop="$ol_arg"
3228
3229 else
3230         ol_enable_denyop=${ol_enable_overlays:-no}
3231 fi;
3232 # end --enable-denyop
3233
3234 # OpenLDAP --enable-dyngroup
3235
3236         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3237 if test "${enable_dyngroup+set}" = set; then
3238   enableval="$enable_dyngroup"
3239
3240         ol_arg=invalid
3241         for ol_val in no yes mod ; do
3242                 if test "$enableval" = "$ol_val" ; then
3243                         ol_arg="$ol_val"
3244                 fi
3245         done
3246         if test "$ol_arg" = "invalid" ; then
3247                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3248 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3249    { (exit 1); exit 1; }; }
3250         fi
3251         ol_enable_dyngroup="$ol_arg"
3252
3253 else
3254         ol_enable_dyngroup=${ol_enable_overlays:-no}
3255 fi;
3256 # end --enable-dyngroup
3257
3258 # OpenLDAP --enable-dynlist
3259
3260         # Check whether --enable-dynlist or --disable-dynlist was given.
3261 if test "${enable_dynlist+set}" = set; then
3262   enableval="$enable_dynlist"
3263
3264         ol_arg=invalid
3265         for ol_val in no yes mod ; do
3266                 if test "$enableval" = "$ol_val" ; then
3267                         ol_arg="$ol_val"
3268                 fi
3269         done
3270         if test "$ol_arg" = "invalid" ; then
3271                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3272 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3273    { (exit 1); exit 1; }; }
3274         fi
3275         ol_enable_dynlist="$ol_arg"
3276
3277 else
3278         ol_enable_dynlist=${ol_enable_overlays:-no}
3279 fi;
3280 # end --enable-dynlist
3281
3282 # OpenLDAP --enable-glue
3283
3284         # Check whether --enable-glue or --disable-glue was given.
3285 if test "${enable_glue+set}" = set; then
3286   enableval="$enable_glue"
3287
3288         ol_arg=invalid
3289         for ol_val in no yes mod ; do
3290                 if test "$enableval" = "$ol_val" ; then
3291                         ol_arg="$ol_val"
3292                 fi
3293         done
3294         if test "$ol_arg" = "invalid" ; then
3295                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3297    { (exit 1); exit 1; }; }
3298         fi
3299         ol_enable_glue="$ol_arg"
3300
3301 else
3302         ol_enable_glue=${ol_enable_overlays:-yes}
3303 fi;
3304 # end --enable-glue
3305
3306 # OpenLDAP --enable-lastmod
3307
3308         # Check whether --enable-lastmod or --disable-lastmod was given.
3309 if test "${enable_lastmod+set}" = set; then
3310   enableval="$enable_lastmod"
3311
3312         ol_arg=invalid
3313         for ol_val in no yes mod ; do
3314                 if test "$enableval" = "$ol_val" ; then
3315                         ol_arg="$ol_val"
3316                 fi
3317         done
3318         if test "$ol_arg" = "invalid" ; then
3319                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3321    { (exit 1); exit 1; }; }
3322         fi
3323         ol_enable_lastmod="$ol_arg"
3324
3325 else
3326         ol_enable_lastmod=${ol_enable_overlays:-no}
3327 fi;
3328 # end --enable-lastmod
3329
3330 # OpenLDAP --enable-ppolicy
3331
3332         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3333 if test "${enable_ppolicy+set}" = set; then
3334   enableval="$enable_ppolicy"
3335
3336         ol_arg=invalid
3337         for ol_val in no yes mod ; do
3338                 if test "$enableval" = "$ol_val" ; then
3339                         ol_arg="$ol_val"
3340                 fi
3341         done
3342         if test "$ol_arg" = "invalid" ; then
3343                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_ppolicy="$ol_arg"
3348
3349 else
3350         ol_enable_ppolicy=${ol_enable_overlays:-no}
3351 fi;
3352 # end --enable-ppolicy
3353
3354 # OpenLDAP --enable-proxycache
3355
3356         # Check whether --enable-proxycache or --disable-proxycache was given.
3357 if test "${enable_proxycache+set}" = set; then
3358   enableval="$enable_proxycache"
3359
3360         ol_arg=invalid
3361         for ol_val in no yes mod ; do
3362                 if test "$enableval" = "$ol_val" ; then
3363                         ol_arg="$ol_val"
3364                 fi
3365         done
3366         if test "$ol_arg" = "invalid" ; then
3367                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3369    { (exit 1); exit 1; }; }
3370         fi
3371         ol_enable_proxycache="$ol_arg"
3372
3373 else
3374         ol_enable_proxycache=${ol_enable_overlays:-no}
3375 fi;
3376 # end --enable-proxycache
3377
3378 # OpenLDAP --enable-refint
3379
3380         # Check whether --enable-refint or --disable-refint was given.
3381 if test "${enable_refint+set}" = set; then
3382   enableval="$enable_refint"
3383
3384         ol_arg=invalid
3385         for ol_val in no yes mod ; do
3386                 if test "$enableval" = "$ol_val" ; then
3387                         ol_arg="$ol_val"
3388                 fi
3389         done
3390         if test "$ol_arg" = "invalid" ; then
3391                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3392 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3393    { (exit 1); exit 1; }; }
3394         fi
3395         ol_enable_refint="$ol_arg"
3396
3397 else
3398         ol_enable_refint=${ol_enable_overlays:-no}
3399 fi;
3400 # end --enable-refint
3401
3402 # OpenLDAP --enable-retcode
3403
3404         # Check whether --enable-retcode or --disable-retcode was given.
3405 if test "${enable_retcode+set}" = set; then
3406   enableval="$enable_retcode"
3407
3408         ol_arg=invalid
3409         for ol_val in no yes mod ; do
3410                 if test "$enableval" = "$ol_val" ; then
3411                         ol_arg="$ol_val"
3412                 fi
3413         done
3414         if test "$ol_arg" = "invalid" ; then
3415                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3416 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3417    { (exit 1); exit 1; }; }
3418         fi
3419         ol_enable_retcode="$ol_arg"
3420
3421 else
3422         ol_enable_retcode=${ol_enable_overlays:-no}
3423 fi;
3424 # end --enable-retcode
3425
3426 # OpenLDAP --enable-rwm
3427
3428         # Check whether --enable-rwm or --disable-rwm was given.
3429 if test "${enable_rwm+set}" = set; then
3430   enableval="$enable_rwm"
3431
3432         ol_arg=invalid
3433         for ol_val in no yes mod ; do
3434                 if test "$enableval" = "$ol_val" ; then
3435                         ol_arg="$ol_val"
3436                 fi
3437         done
3438         if test "$ol_arg" = "invalid" ; then
3439                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3440 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3441    { (exit 1); exit 1; }; }
3442         fi
3443         ol_enable_rwm="$ol_arg"
3444
3445 else
3446         ol_enable_rwm=${ol_enable_overlays:-no}
3447 fi;
3448 # end --enable-rwm
3449
3450 # OpenLDAP --enable-syncprov
3451
3452         # Check whether --enable-syncprov or --disable-syncprov was given.
3453 if test "${enable_syncprov+set}" = set; then
3454   enableval="$enable_syncprov"
3455
3456         ol_arg=invalid
3457         for ol_val in no yes mod ; do
3458                 if test "$enableval" = "$ol_val" ; then
3459                         ol_arg="$ol_val"
3460                 fi
3461         done
3462         if test "$ol_arg" = "invalid" ; then
3463                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3465    { (exit 1); exit 1; }; }
3466         fi
3467         ol_enable_syncprov="$ol_arg"
3468
3469 else
3470         ol_enable_syncprov=${ol_enable_overlays:-yes}
3471 fi;
3472 # end --enable-syncprov
3473
3474 # OpenLDAP --enable-translucent
3475
3476         # Check whether --enable-translucent or --disable-translucent was given.
3477 if test "${enable_translucent+set}" = set; then
3478   enableval="$enable_translucent"
3479
3480         ol_arg=invalid
3481         for ol_val in no yes mod ; do
3482                 if test "$enableval" = "$ol_val" ; then
3483                         ol_arg="$ol_val"
3484                 fi
3485         done
3486         if test "$ol_arg" = "invalid" ; then
3487                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3488 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3489    { (exit 1); exit 1; }; }
3490         fi
3491         ol_enable_translucent="$ol_arg"
3492
3493 else
3494         ol_enable_translucent=${ol_enable_overlays:-no}
3495 fi;
3496 # end --enable-translucent
3497
3498 # OpenLDAP --enable-unique
3499
3500         # Check whether --enable-unique or --disable-unique was given.
3501 if test "${enable_unique+set}" = set; then
3502   enableval="$enable_unique"
3503
3504         ol_arg=invalid
3505         for ol_val in no yes mod ; do
3506                 if test "$enableval" = "$ol_val" ; then
3507                         ol_arg="$ol_val"
3508                 fi
3509         done
3510         if test "$ol_arg" = "invalid" ; then
3511                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3512 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3513    { (exit 1); exit 1; }; }
3514         fi
3515         ol_enable_unique="$ol_arg"
3516
3517 else
3518         ol_enable_unique=${ol_enable_overlays:-no}
3519 fi;
3520 # end --enable-unique
3521
3522 # OpenLDAP --enable-unique
3523
3524         # Check whether --enable-unique or --disable-unique was given.
3525 if test "${enable_unique+set}" = set; then
3526   enableval="$enable_unique"
3527
3528         ol_arg=invalid
3529         for ol_val in no yes mod ; do
3530                 if test "$enableval" = "$ol_val" ; then
3531                         ol_arg="$ol_val"
3532                 fi
3533         done
3534         if test "$ol_arg" = "invalid" ; then
3535                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3536 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3537    { (exit 1); exit 1; }; }
3538         fi
3539         ol_enable_unique="$ol_arg"
3540
3541 else
3542         ol_enable_unique=${ol_enable_overlays:-no}
3543 fi;
3544 # end --enable-unique
3545
3546
3547 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3548 if test "${enable_xxslurpdoptions+set}" = set; then
3549   enableval="$enable_xxslurpdoptions"
3550
3551 fi;
3552 # OpenLDAP --enable-slurpd
3553
3554         # Check whether --enable-slurpd or --disable-slurpd was given.
3555 if test "${enable_slurpd+set}" = set; then
3556   enableval="$enable_slurpd"
3557
3558         ol_arg=invalid
3559         for ol_val in auto yes no ; do
3560                 if test "$enableval" = "$ol_val" ; then
3561                         ol_arg="$ol_val"
3562                 fi
3563         done
3564         if test "$ol_arg" = "invalid" ; then
3565                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3566 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3567    { (exit 1); exit 1; }; }
3568         fi
3569         ol_enable_slurpd="$ol_arg"
3570
3571 else
3572         ol_enable_slurpd=auto
3573 fi;
3574 # end --enable-slurpd
3575
3576 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3577 if test "${enable_xxliboptions+set}" = set; then
3578   enableval="$enable_xxliboptions"
3579
3580 fi;
3581 # Check whether --enable-static or --disable-static was given.
3582 if test "${enable_static+set}" = set; then
3583   enableval="$enable_static"
3584   p=${PACKAGE-default}
3585     case $enableval in
3586     yes) enable_static=yes ;;
3587     no) enable_static=no ;;
3588     *)
3589      enable_static=no
3590       # Look at the argument we got.  We use all the common list separators.
3591       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3592       for pkg in $enableval; do
3593         IFS="$lt_save_ifs"
3594         if test "X$pkg" = "X$p"; then
3595           enable_static=yes
3596         fi
3597       done
3598       IFS="$lt_save_ifs"
3599       ;;
3600     esac
3601 else
3602   enable_static=yes
3603 fi;
3604
3605 # Check whether --enable-shared or --disable-shared was given.
3606 if test "${enable_shared+set}" = set; then
3607   enableval="$enable_shared"
3608   p=${PACKAGE-default}
3609     case $enableval in
3610     yes) enable_shared=yes ;;
3611     no) enable_shared=no ;;
3612     *)
3613       enable_shared=no
3614       # Look at the argument we got.  We use all the common list separators.
3615       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3616       for pkg in $enableval; do
3617         IFS="$lt_save_ifs"
3618         if test "X$pkg" = "X$p"; then
3619           enable_shared=yes
3620         fi
3621       done
3622       IFS="$lt_save_ifs"
3623       ;;
3624     esac
3625 else
3626   enable_shared=yes
3627 fi;
3628
3629
3630
3631 # validate options
3632 if test $ol_enable_slapd = no ; then
3633                 if test $ol_enable_slapi = yes ; then
3634                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3636         fi
3637         case "$ol_enable_backends" in yes | mod)
3638                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3640         esac
3641         for i in $Backends; do
3642                 eval "ol_tmp=\$ol_enable_$i"
3643                 if test $ol_tmp != no ; then
3644                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3645 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3646                         eval "ol_enable_$i=no"
3647                 fi
3648         done
3649         if test $ol_enable_modules = yes ; then
3650                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3651 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3652         fi
3653         if test $ol_enable_multimaster = yes ; then
3654                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3655 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3656         fi
3657         if test $ol_enable_wrappers = yes ; then
3658                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3660         fi
3661         if test $ol_enable_rlookups = yes ; then
3662                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3664         fi
3665         if test $ol_enable_aci = yes ; then
3666                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3667 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3668         fi
3669         if test $ol_enable_ldbm_api != auto ; then
3670                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3672         fi
3673         if test $ol_enable_ldbm_type != auto ; then
3674                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3675 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3676         fi
3677         if test $ol_enable_slurpd = yes ; then
3678                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3679 echo "$as_me: error: slurpd requires slapd" >&2;}
3680    { (exit 1); exit 1; }; }
3681         fi
3682         if test $ol_enable_rewrite = yes ; then
3683                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3685         fi
3686                 case "$ol_enable_overlays" in yes | mod)
3687                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3689         esac
3690         for i in $Overlays; do
3691                 eval "ol_tmp=\$ol_enable_$i"
3692                 if test $ol_tmp != no ; then
3693                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3695                         eval "ol_enable_$i=no"
3696                 fi
3697         done
3698
3699         # force settings to no
3700         ol_enable_slapi=no
3701
3702         ol_enable_backends=
3703         ol_enable_overlays=
3704         ol_enable_modules=no
3705         ol_enable_multimaster=no
3706         ol_enable_rlookups=no
3707         ol_enable_aci=no
3708         ol_enable_wrappers=no
3709
3710         ol_enable_ldbm_api=no
3711         ol_enable_ldbm_type=no
3712
3713         ol_enable_slurpd=no
3714
3715         ol_enable_rewrite=no
3716
3717 elif test $ol_enable_ldbm = no ; then
3718
3719         if test $ol_enable_ldbm_api != auto ; then
3720                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3721 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3722         fi
3723
3724         if test $ol_enable_ldbm_type != auto ; then
3725                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3726 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3727         fi
3728
3729         if test $ol_enable_modules != yes -a \
3730                 $ol_enable_bdb = no -a \
3731                 $ol_enable_dnssrv = no -a \
3732                 $ol_enable_hdb = no -a \
3733                 $ol_enable_ldap = no -a \
3734                 $ol_enable_meta = no -a \
3735                 $ol_enable_monitor = no -a \
3736                 $ol_enable_null = no -a \
3737                 $ol_enable_passwd = no -a \
3738                 $ol_enable_perl = no -a \
3739                 $ol_enable_relay = no -a \
3740                 $ol_enable_shell = no -a \
3741                 $ol_enable_sql = no ; then
3742
3743                 if test $ol_enable_slapd = yes ; then
3744                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3745 echo "$as_me: error: slapd requires a backend" >&2;}
3746    { (exit 1); exit 1; }; }
3747                 else
3748                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3749 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3750                         ol_enable_slapd=no
3751                 fi
3752         fi
3753
3754         ol_enable_ldbm_api=no
3755         ol_enable_ldbm_type=no
3756
3757         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3758                 ol_enable_ldbm_api=berkeley
3759         fi
3760
3761 else
3762                 if test $ol_enable_ldbm_api = gdbm -a \
3763                 $ol_enable_ldbm_type = btree ; then
3764                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3765 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3766    { (exit 1); exit 1; }; }
3767         fi
3768         if test $ol_enable_ldbm_api = mdbm -a \
3769                 $ol_enable_ldbm_type = btree ; then
3770                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3771 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3772    { (exit 1); exit 1; }; }
3773         fi
3774         if test $ol_enable_ldbm_api = ndbm -a \
3775                 $ol_enable_ldbm_type = btree ; then
3776                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3777 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3778    { (exit 1); exit 1; }; }
3779         fi
3780
3781         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3782                 if test $ol_enable_ldbm_api = auto ; then
3783                         ol_enable_ldbm_api=berkeley
3784                 elif test $ol_enable_ldbm_api != berkeley ; then
3785                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3786 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3787    { (exit 1); exit 1; }; }
3788                 fi
3789         fi
3790 fi
3791
3792 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3793         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3794 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3795    { (exit 1); exit 1; }; }
3796 fi
3797
3798 if test $ol_enable_slurpd = yes ; then
3799                 if test $ol_with_threads = no ; then
3800                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3801 echo "$as_me: error: slurpd requires threads" >&2;}
3802    { (exit 1); exit 1; }; }
3803         fi
3804 fi
3805
3806 if test $ol_enable_lmpasswd = yes ; then
3807         if test $ol_with_tls = no ; then
3808                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3809 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3810    { (exit 1); exit 1; }; }
3811         fi
3812 fi
3813
3814 if test $ol_enable_kbind = yes ; then
3815         if test $ol_with_kerberos = no ; then
3816                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3817 echo "$as_me: error: options require --with-kerberos" >&2;}
3818    { (exit 1); exit 1; }; }
3819         elif test $ol_with_kerberos = auto ; then
3820                 ol_with_kerberos=yes
3821         fi
3822
3823 elif test $ol_enable_kbind = no ; then
3824         if test $ol_with_kerberos = auto ; then
3825                 ol_with_kerberos=no
3826         elif test $ol_with_kerberos != no ; then
3827                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3828 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3829                 ol_with_kerberos=no
3830         fi
3831 fi
3832
3833 if test $ol_enable_spasswd = yes ; then
3834         if test $ol_with_cyrus_sasl = no ; then
3835                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3836 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3837    { (exit 1); exit 1; }; }
3838         fi
3839         ol_with_cyrus_sasl=yes
3840 fi
3841
3842 echo "$as_me:$LINENO: result: done" >&5
3843 echo "${ECHO_T}done" >&6
3844
3845 LDAP_LIBS=
3846 LDBM_LIBS=
3847 LTHREAD_LIBS=
3848 LUTIL_LIBS=
3849
3850 SLAPD_LIBS=
3851 SLURPD_LIBS=
3852
3853 BUILD_SLAPD=no
3854 BUILD_SLURPD=no
3855
3856 BUILD_THREAD=no
3857
3858 BUILD_SLAPI=no
3859 SLAPD_SLAPI_DEPEND=
3860
3861 BUILD_BDB=no
3862 BUILD_DNSSRV=no
3863 BUILD_HDB=no
3864 BUILD_LDAP=no
3865 BUILD_LDBM=no
3866 BUILD_META=no
3867 BUILD_MONITOR=no
3868 BUILD_NULL=no
3869 BUILD_PASSWD=no
3870 BUILD_PERL=no
3871 BUILD_RELAY=no
3872 BUILD_SHELL=no
3873 BUILD_SQL=no
3874
3875 BUILD_ACCESSLOG=no
3876 BUILD_DENYOP=no
3877 BUILD_DYNGROUP=no
3878 BUILD_DYNLIST=no
3879 BUILD_GLUE=no
3880 BUILD_LASTMOD=no
3881 BUILD_PPOLICY=no
3882 BUILD_PROXYCACHE=no
3883 BUILD_REFINT=no
3884 BUILD_RETCODE=no
3885 BUILD_RWM=no
3886 BUILD_SYNCPROV=no
3887 BUILD_TRANSLUCENT=no
3888 BUILD_UNIQUE=no
3889 BUILD_VALSORT=no
3890
3891 SLAPD_STATIC_OVERLAYS=
3892 SLAPD_DYNAMIC_OVERLAYS=
3893
3894 SLAPD_MODULES_LDFLAGS=
3895 SLAPD_MODULES_CPPFLAGS=
3896
3897 SLAPD_STATIC_BACKENDS=back-ldif
3898 SLAPD_DYNAMIC_BACKENDS=
3899
3900 SLAPD_PERL_LDFLAGS=
3901 MOD_PERL_LDFLAGS=
3902 PERL_CPPFLAGS=
3903
3904 SLAPD_SQL_LDFLAGS=
3905 SLAPD_SQL_LIBS=
3906 SLAPD_SQL_INCLUDES=
3907
3908 KRB4_LIBS=
3909 KRB5_LIBS=
3910 SASL_LIBS=
3911 TLS_LIBS=
3912 MODULES_LIBS=
3913 SLAPI_LIBS=
3914 LIBSLAPI=
3915 LIBSLAPITOOLS=
3916 AUTH_LIBS=
3917
3918 SLAPD_SLP_LIBS=
3919 SLAPD_GMP_LIBS=
3920
3921
3922
3923 cat >>confdefs.h <<\_ACEOF
3924 #define HAVE_MKVERSION 1
3925 _ACEOF
3926
3927
3928
3929
3930 ol_aix_threads=no
3931 case "$target" in
3932 *-*-aix*)       if test -z "$CC" ; then
3933                 case "$ol_with_threads" in
3934                 auto | yes |  posix) ol_aix_threads=yes ;;
3935                 esac
3936         fi
3937 ;;
3938 esac
3939
3940 if test $ol_aix_threads = yes ; then
3941         if test -z "${CC}" ; then
3942                 for ac_prog in cc_r xlc_r cc
3943 do
3944   # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 echo "$as_me:$LINENO: checking for $ac_word" >&5
3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948 if test "${ac_cv_prog_CC+set}" = set; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   if test -n "$CC"; then
3952   ac_cv_prog_CC="$CC" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957   IFS=$as_save_IFS
3958   test -z "$as_dir" && as_dir=.
3959   for ac_exec_ext in '' $ac_executable_extensions; do
3960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961     ac_cv_prog_CC="$ac_prog"
3962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963     break 2
3964   fi
3965 done
3966 done
3967
3968 fi
3969 fi
3970 CC=$ac_cv_prog_CC
3971 if test -n "$CC"; then
3972   echo "$as_me:$LINENO: result: $CC" >&5
3973 echo "${ECHO_T}$CC" >&6
3974 else
3975   echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3977 fi
3978
3979   test -n "$CC" && break
3980 done
3981
3982
3983                 if test "$CC" = cc ; then
3984                                                 if test $ol_with_threads != auto ; then
3985                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3986 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3987    { (exit 1); exit 1; }; }
3988                         else
3989                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3990 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3991                         fi
3992                         ol_with_threads=no
3993                 fi
3994         fi
3995
3996         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3997                 ol_with_threads=posix
3998                 ol_cv_pthread_create=yes
3999         fi
4000 fi
4001
4002 if test -z "${CC}"; then
4003         for ac_prog in cc gcc
4004 do
4005   # Extract the first word of "$ac_prog", so it can be a program name with args.
4006 set dummy $ac_prog; ac_word=$2
4007 echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_CC+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if test -n "$CC"; then
4013   ac_cv_prog_CC="$CC" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018   IFS=$as_save_IFS
4019   test -z "$as_dir" && as_dir=.
4020   for ac_exec_ext in '' $ac_executable_extensions; do
4021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022     ac_cv_prog_CC="$ac_prog"
4023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024     break 2
4025   fi
4026 done
4027 done
4028
4029 fi
4030 fi
4031 CC=$ac_cv_prog_CC
4032 if test -n "$CC"; then
4033   echo "$as_me:$LINENO: result: $CC" >&5
4034 echo "${ECHO_T}$CC" >&6
4035 else
4036   echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4038 fi
4039
4040   test -n "$CC" && break
4041 done
4042 test -n "$CC" || CC="missing"
4043
4044
4045         if test "${CC}" = "missing" ; then
4046                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4047 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4048    { (exit 1); exit 1; }; }
4049         fi
4050 fi
4051
4052 if test -z "${AR}"; then
4053         for ac_prog in ar gar
4054 do
4055   # Extract the first word of "$ac_prog", so it can be a program name with args.
4056 set dummy $ac_prog; ac_word=$2
4057 echo "$as_me:$LINENO: checking for $ac_word" >&5
4058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4059 if test "${ac_cv_prog_AR+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   if test -n "$AR"; then
4063   ac_cv_prog_AR="$AR" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070   for ac_exec_ext in '' $ac_executable_extensions; do
4071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072     ac_cv_prog_AR="$ac_prog"
4073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077 done
4078
4079 fi
4080 fi
4081 AR=$ac_cv_prog_AR
4082 if test -n "$AR"; then
4083   echo "$as_me:$LINENO: result: $AR" >&5
4084 echo "${ECHO_T}$AR" >&6
4085 else
4086   echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6
4088 fi
4089
4090   test -n "$AR" && break
4091 done
4092 test -n "$AR" || AR="missing"
4093
4094
4095         if test "${AR}" = "missing" ; then
4096                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4097 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4098    { (exit 1); exit 1; }; }
4099         fi
4100 fi
4101
4102
4103
4104
4105
4106 # Check whether --enable-fast-install or --disable-fast-install was given.
4107 if test "${enable_fast_install+set}" = set; then
4108   enableval="$enable_fast_install"
4109   p=${PACKAGE-default}
4110     case $enableval in
4111     yes) enable_fast_install=yes ;;
4112     no) enable_fast_install=no ;;
4113     *)
4114       enable_fast_install=no
4115       # Look at the argument we got.  We use all the common list separators.
4116       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4117       for pkg in $enableval; do
4118         IFS="$lt_save_ifs"
4119         if test "X$pkg" = "X$p"; then
4120           enable_fast_install=yes
4121         fi
4122       done
4123       IFS="$lt_save_ifs"
4124       ;;
4125     esac
4126 else
4127   enable_fast_install=yes
4128 fi;
4129
4130 DEPDIR="${am__leading_dot}deps"
4131
4132           ac_config_commands="$ac_config_commands depfiles"
4133
4134
4135 am_make=${MAKE-make}
4136 cat > confinc << 'END'
4137 am__doit:
4138         @echo done
4139 .PHONY: am__doit
4140 END
4141 # If we don't find an include directive, just comment out the code.
4142 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4143 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4144 am__include="#"
4145 am__quote=
4146 _am_result=none
4147 # First try GNU make style include.
4148 echo "include confinc" > confmf
4149 # We grep out `Entering directory' and `Leaving directory'
4150 # messages which can occur if `w' ends up in MAKEFLAGS.
4151 # In particular we don't look at `^make:' because GNU make might
4152 # be invoked under some other name (usually "gmake"), in which
4153 # case it prints its new name instead of `make'.
4154 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4155    am__include=include
4156    am__quote=
4157    _am_result=GNU
4158 fi
4159 # Now try BSD make style include.
4160 if test "$am__include" = "#"; then
4161    echo '.include "confinc"' > confmf
4162    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4163       am__include=.include
4164       am__quote="\""
4165       _am_result=BSD
4166    fi
4167 fi
4168
4169
4170 echo "$as_me:$LINENO: result: $_am_result" >&5
4171 echo "${ECHO_T}$_am_result" >&6
4172 rm -f confinc confmf
4173
4174 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4175 if test "${enable_dependency_tracking+set}" = set; then
4176   enableval="$enable_dependency_tracking"
4177
4178 fi;
4179 if test "x$enable_dependency_tracking" != xno; then
4180   am_depcomp="$ac_aux_dir/depcomp"
4181   AMDEPBACKSLASH='\'
4182 fi
4183
4184
4185 if test "x$enable_dependency_tracking" != xno; then
4186   AMDEP_TRUE=
4187   AMDEP_FALSE='#'
4188 else
4189   AMDEP_TRUE='#'
4190   AMDEP_FALSE=
4191 fi
4192
4193
4194
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 if test -n "$ac_tool_prefix"; then
4201   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4203 echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4205 if test "${ac_cv_prog_CC+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   if test -n "$CC"; then
4209   ac_cv_prog_CC="$CC" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214   IFS=$as_save_IFS
4215   test -z "$as_dir" && as_dir=.
4216   for ac_exec_ext in '' $ac_executable_extensions; do
4217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220     break 2
4221   fi
4222 done
4223 done
4224
4225 fi
4226 fi
4227 CC=$ac_cv_prog_CC
4228 if test -n "$CC"; then
4229   echo "$as_me:$LINENO: result: $CC" >&5
4230 echo "${ECHO_T}$CC" >&6
4231 else
4232   echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6
4234 fi
4235
4236 fi
4237 if test -z "$ac_cv_prog_CC"; then
4238   ac_ct_CC=$CC
4239   # Extract the first word of "gcc", so it can be a program name with args.
4240 set dummy gcc; ac_word=$2
4241 echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   if test -n "$ac_ct_CC"; then
4247   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254   for ac_exec_ext in '' $ac_executable_extensions; do
4255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256     ac_cv_prog_ac_ct_CC="gcc"
4257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258     break 2
4259   fi
4260 done
4261 done
4262
4263 fi
4264 fi
4265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4268 echo "${ECHO_T}$ac_ct_CC" >&6
4269 else
4270   echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4272 fi
4273
4274   CC=$ac_ct_CC
4275 else
4276   CC="$ac_cv_prog_CC"
4277 fi
4278
4279 if test -z "$CC"; then
4280   if test -n "$ac_tool_prefix"; then
4281   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4282 set dummy ${ac_tool_prefix}cc; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_prog_CC+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   if test -n "$CC"; then
4289   ac_cv_prog_CC="$CC" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296   for ac_exec_ext in '' $ac_executable_extensions; do
4297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298     ac_cv_prog_CC="${ac_tool_prefix}cc"
4299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303 done
4304
4305 fi
4306 fi
4307 CC=$ac_cv_prog_CC
4308 if test -n "$CC"; then
4309   echo "$as_me:$LINENO: result: $CC" >&5
4310 echo "${ECHO_T}$CC" >&6
4311 else
4312   echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4314 fi
4315
4316 fi
4317 if test -z "$ac_cv_prog_CC"; then
4318   ac_ct_CC=$CC
4319   # Extract the first word of "cc", so it can be a program name with args.
4320 set dummy cc; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   if test -n "$ac_ct_CC"; then
4327   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332   IFS=$as_save_IFS
4333   test -z "$as_dir" && as_dir=.
4334   for ac_exec_ext in '' $ac_executable_extensions; do
4335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336     ac_cv_prog_ac_ct_CC="cc"
4337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338     break 2
4339   fi
4340 done
4341 done
4342
4343 fi
4344 fi
4345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4346 if test -n "$ac_ct_CC"; then
4347   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4348 echo "${ECHO_T}$ac_ct_CC" >&6
4349 else
4350   echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4352 fi
4353
4354   CC=$ac_ct_CC
4355 else
4356   CC="$ac_cv_prog_CC"
4357 fi
4358
4359 fi
4360 if test -z "$CC"; then
4361   # Extract the first word of "cc", so it can be a program name with args.
4362 set dummy cc; ac_word=$2
4363 echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4365 if test "${ac_cv_prog_CC+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   if test -n "$CC"; then
4369   ac_cv_prog_CC="$CC" # Let the user override the test.
4370 else
4371   ac_prog_rejected=no
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375   IFS=$as_save_IFS
4376   test -z "$as_dir" && as_dir=.
4377   for ac_exec_ext in '' $ac_executable_extensions; do
4378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4380        ac_prog_rejected=yes
4381        continue
4382      fi
4383     ac_cv_prog_CC="cc"
4384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385     break 2
4386   fi
4387 done
4388 done
4389
4390 if test $ac_prog_rejected = yes; then
4391   # We found a bogon in the path, so make sure we never use it.
4392   set dummy $ac_cv_prog_CC
4393   shift
4394   if test $# != 0; then
4395     # We chose a different compiler from the bogus one.
4396     # However, it has the same basename, so the bogon will be chosen
4397     # first if we set CC to just the basename; use the full file name.
4398     shift
4399     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4400   fi
4401 fi
4402 fi
4403 fi
4404 CC=$ac_cv_prog_CC
4405 if test -n "$CC"; then
4406   echo "$as_me:$LINENO: result: $CC" >&5
4407 echo "${ECHO_T}$CC" >&6
4408 else
4409   echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4411 fi
4412
4413 fi
4414 if test -z "$CC"; then
4415   if test -n "$ac_tool_prefix"; then
4416   for ac_prog in cl
4417   do
4418     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_prog_CC+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   if test -n "$CC"; then
4426   ac_cv_prog_CC="$CC" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441
4442 fi
4443 fi
4444 CC=$ac_cv_prog_CC
4445 if test -n "$CC"; then
4446   echo "$as_me:$LINENO: result: $CC" >&5
4447 echo "${ECHO_T}$CC" >&6
4448 else
4449   echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6
4451 fi
4452
4453     test -n "$CC" && break
4454   done
4455 fi
4456 if test -z "$CC"; then
4457   ac_ct_CC=$CC
4458   for ac_prog in cl
4459 do
4460   # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   if test -n "$ac_ct_CC"; then
4468   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477     ac_cv_prog_ac_ct_CC="$ac_prog"
4478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482 done
4483
4484 fi
4485 fi
4486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4487 if test -n "$ac_ct_CC"; then
4488   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4489 echo "${ECHO_T}$ac_ct_CC" >&6
4490 else
4491   echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494
4495   test -n "$ac_ct_CC" && break
4496 done
4497
4498   CC=$ac_ct_CC
4499 fi
4500
4501 fi
4502
4503
4504 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4505 See \`config.log' for more details." >&5
4506 echo "$as_me: error: no acceptable C compiler found in \$PATH
4507 See \`config.log' for more details." >&2;}
4508    { (exit 1); exit 1; }; }
4509
4510 # Provide some information about the compiler.
4511 echo "$as_me:$LINENO:" \
4512      "checking for C compiler version" >&5
4513 ac_compiler=`set X $ac_compile; echo $2`
4514 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4515   (eval $ac_compiler --version </dev/null >&5) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); }
4519 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4520   (eval $ac_compiler -v </dev/null >&5) 2>&5
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }
4524 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4525   (eval $ac_compiler -V </dev/null >&5) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }
4529
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536
4537 int
4538 main ()
4539 {
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 ac_clean_files_save=$ac_clean_files
4546 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4547 # Try to create an executable without -o first, disregard a.out.
4548 # It will help us diagnose broken compilers, and finding out an intuition
4549 # of exeext.
4550 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4551 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4552 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4553 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4554   (eval $ac_link_default) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; then
4558   # Find the output, starting from the most likely.  This scheme is
4559 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4560 # resort.
4561
4562 # Be careful to initialize this variable, since it used to be cached.
4563 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4564 ac_cv_exeext=
4565 # b.out is created by i960 compilers.
4566 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4567 do
4568   test -f "$ac_file" || continue
4569   case $ac_file in
4570     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4571         ;;
4572     conftest.$ac_ext )
4573         # This is the source file.
4574         ;;
4575     [ab].out )
4576         # We found the default executable, but exeext='' is most
4577         # certainly right.
4578         break;;
4579     *.* )
4580         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4581         # FIXME: I believe we export ac_cv_exeext for Libtool,
4582         # but it would be cool to find out if it's true.  Does anybody
4583         # maintain Libtool? --akim.
4584         export ac_cv_exeext
4585         break;;
4586     * )
4587         break;;
4588   esac
4589 done
4590 else
4591   echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4595 See \`config.log' for more details." >&5
4596 echo "$as_me: error: C compiler cannot create executables
4597 See \`config.log' for more details." >&2;}
4598    { (exit 77); exit 77; }; }
4599 fi
4600
4601 ac_exeext=$ac_cv_exeext
4602 echo "$as_me:$LINENO: result: $ac_file" >&5
4603 echo "${ECHO_T}$ac_file" >&6
4604
4605 # Check the compiler produces executables we can run.  If not, either
4606 # the compiler is broken, or we cross compile.
4607 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4608 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4609 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4610 # If not cross compiling, check that we can run a simple program.
4611 if test "$cross_compiling" != yes; then
4612   if { ac_try='./$ac_file'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618     cross_compiling=no
4619   else
4620     if test "$cross_compiling" = maybe; then
4621         cross_compiling=yes
4622     else
4623         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4624 If you meant to cross compile, use \`--host'.
4625 See \`config.log' for more details." >&5
4626 echo "$as_me: error: cannot run C compiled programs.
4627 If you meant to cross compile, use \`--host'.
4628 See \`config.log' for more details." >&2;}
4629    { (exit 1); exit 1; }; }
4630     fi
4631   fi
4632 fi
4633 echo "$as_me:$LINENO: result: yes" >&5
4634 echo "${ECHO_T}yes" >&6
4635
4636 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4637 ac_clean_files=$ac_clean_files_save
4638 # Check the compiler produces executables we can run.  If not, either
4639 # the compiler is broken, or we cross compile.
4640 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4641 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4642 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4643 echo "${ECHO_T}$cross_compiling" >&6
4644
4645 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4646 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648   (eval $ac_link) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); }; then
4652   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4653 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4654 # work properly (i.e., refer to `conftest.exe'), while it won't with
4655 # `rm'.
4656 for ac_file in conftest.exe conftest conftest.*; do
4657   test -f "$ac_file" || continue
4658   case $ac_file in
4659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4660     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4661           export ac_cv_exeext
4662           break;;
4663     * ) break;;
4664   esac
4665 done
4666 else
4667   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4668 See \`config.log' for more details." >&5
4669 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4670 See \`config.log' for more details." >&2;}
4671    { (exit 1); exit 1; }; }
4672 fi
4673
4674 rm -f conftest$ac_cv_exeext
4675 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4676 echo "${ECHO_T}$ac_cv_exeext" >&6
4677
4678 rm -f conftest.$ac_ext
4679 EXEEXT=$ac_cv_exeext
4680 ac_exeext=$EXEEXT
4681 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4682 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4683 if test "${ac_cv_objext+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h.  */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h.  */
4692
4693 int
4694 main ()
4695 {
4696
4697   ;
4698   return 0;
4699 }
4700 _ACEOF
4701 rm -f conftest.o conftest.obj
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703   (eval $ac_compile) 2>&5
4704   ac_status=$?
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); }; then
4707   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4708   case $ac_file in
4709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4710     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4711        break;;
4712   esac
4713 done
4714 else
4715   echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4719 See \`config.log' for more details." >&5
4720 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4721 See \`config.log' for more details." >&2;}
4722    { (exit 1); exit 1; }; }
4723 fi
4724
4725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4726 fi
4727 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4728 echo "${ECHO_T}$ac_cv_objext" >&6
4729 OBJEXT=$ac_cv_objext
4730 ac_objext=$OBJEXT
4731 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4732 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742
4743 int
4744 main ()
4745 {
4746 #ifndef __GNUC__
4747        choke me
4748 #endif
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest.$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756   (eval $ac_compile) 2>conftest.er1
4757   ac_status=$?
4758   grep -v '^ *+' conftest.er1 >conftest.err
4759   rm -f conftest.er1
4760   cat conftest.err >&5
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } &&
4763          { ac_try='test -z "$ac_c_werror_flag"
4764                          || test ! -s conftest.err'
4765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766   (eval $ac_try) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }; } &&
4770          { ac_try='test -s conftest.$ac_objext'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; }; then
4776   ac_compiler_gnu=yes
4777 else
4778   echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 ac_compiler_gnu=no
4782 fi
4783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4785
4786 fi
4787 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4788 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4789 GCC=`test $ac_compiler_gnu = yes && echo yes`
4790 ac_test_CFLAGS=${CFLAGS+set}
4791 ac_save_CFLAGS=$CFLAGS
4792 CFLAGS="-g"
4793 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4795 if test "${ac_cv_prog_cc_g+set}" = set; then
4796   echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798   cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804
4805 int
4806 main ()
4807 {
4808
4809   ;
4810   return 0;
4811 }
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815   (eval $ac_compile) 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } &&
4822          { ac_try='test -z "$ac_c_werror_flag"
4823                          || test ! -s conftest.err'
4824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825   (eval $ac_try) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; } &&
4829          { ac_try='test -s conftest.$ac_objext'
4830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831   (eval $ac_try) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); }; }; then
4835   ac_cv_prog_cc_g=yes
4836 else
4837   echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840 ac_cv_prog_cc_g=no
4841 fi
4842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4843 fi
4844 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4845 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4846 if test "$ac_test_CFLAGS" = set; then
4847   CFLAGS=$ac_save_CFLAGS
4848 elif test $ac_cv_prog_cc_g = yes; then
4849   if test "$GCC" = yes; then
4850     CFLAGS="-g -O2"
4851   else
4852     CFLAGS="-g"
4853   fi
4854 else
4855   if test "$GCC" = yes; then
4856     CFLAGS="-O2"
4857   else
4858     CFLAGS=
4859   fi
4860 fi
4861 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4862 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4863 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   ac_cv_prog_cc_stdc=no
4867 ac_save_CC=$CC
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874 #include <stdarg.h>
4875 #include <stdio.h>
4876 #include <sys/types.h>
4877 #include <sys/stat.h>
4878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4879 struct buf { int x; };
4880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4881 static char *e (p, i)
4882      char **p;
4883      int i;
4884 {
4885   return p[i];
4886 }
4887 static char *f (char * (*g) (char **, int), char **p, ...)
4888 {
4889   char *s;
4890   va_list v;
4891   va_start (v,p);
4892   s = g (p, va_arg (v,int));
4893   va_end (v);
4894   return s;
4895 }
4896
4897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4898    function prototypes and stuff, but not '\xHH' hex character constants.
4899    These don't provoke an error unfortunately, instead are silently treated
4900    as 'x'.  The following induces an error, until -std1 is added to get
4901    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4902    array size at least.  It's necessary to write '\x00'==0 to get something
4903    that's true only with -std1.  */
4904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4905
4906 int test (int i, double x);
4907 struct s1 {int (*f) (int a);};
4908 struct s2 {int (*f) (double a);};
4909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4910 int argc;
4911 char **argv;
4912 int
4913 main ()
4914 {
4915 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4916   ;
4917   return 0;
4918 }
4919 _ACEOF
4920 # Don't try gcc -ansi; that turns off useful extensions and
4921 # breaks some systems' header files.
4922 # AIX                   -qlanglvl=ansi
4923 # Ultrix and OSF/1      -std1
4924 # HP-UX 10.20 and later -Ae
4925 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4926 # SVR4                  -Xc -D__EXTENSIONS__
4927 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4928 do
4929   CC="$ac_save_CC $ac_arg"
4930   rm -f conftest.$ac_objext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4932   (eval $ac_compile) 2>conftest.er1
4933   ac_status=$?
4934   grep -v '^ *+' conftest.er1 >conftest.err
4935   rm -f conftest.er1
4936   cat conftest.err >&5
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } &&
4939          { ac_try='test -z "$ac_c_werror_flag"
4940                          || test ! -s conftest.err'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; } &&
4946          { ac_try='test -s conftest.$ac_objext'
4947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948   (eval $ac_try) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }; }; then
4952   ac_cv_prog_cc_stdc=$ac_arg
4953 break
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 fi
4959 rm -f conftest.err conftest.$ac_objext
4960 done
4961 rm -f conftest.$ac_ext conftest.$ac_objext
4962 CC=$ac_save_CC
4963
4964 fi
4965
4966 case "x$ac_cv_prog_cc_stdc" in
4967   x|xno)
4968     echo "$as_me:$LINENO: result: none needed" >&5
4969 echo "${ECHO_T}none needed" >&6 ;;
4970   *)
4971     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4972 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4973     CC="$CC $ac_cv_prog_cc_stdc" ;;
4974 esac
4975
4976 # Some people use a C++ compiler to compile C.  Since we use `exit',
4977 # in C++ we need to declare it.  In case someone uses the same compiler
4978 # for both compiling C and C++ we need to have the C++ compiler decide
4979 # the declaration of exit, since it's the most demanding environment.
4980 cat >conftest.$ac_ext <<_ACEOF
4981 #ifndef __cplusplus
4982   choke me
4983 #endif
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987   (eval $ac_compile) 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } &&
4994          { ac_try='test -z "$ac_c_werror_flag"
4995                          || test ! -s conftest.err'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; } &&
5001          { ac_try='test -s conftest.$ac_objext'
5002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003   (eval $ac_try) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }; }; then
5007   for ac_declaration in \
5008    '' \
5009    'extern "C" void std::exit (int) throw (); using std::exit;' \
5010    'extern "C" void std::exit (int); using std::exit;' \
5011    'extern "C" void exit (int) throw ();' \
5012    'extern "C" void exit (int);' \
5013    'void exit (int);'
5014 do
5015   cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h.  */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h.  */
5021 $ac_declaration
5022 #include <stdlib.h>
5023 int
5024 main ()
5025 {
5026 exit (42);
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest.$ac_objext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033   (eval $ac_compile) 2>conftest.er1
5034   ac_status=$?
5035   grep -v '^ *+' conftest.er1 >conftest.err
5036   rm -f conftest.er1
5037   cat conftest.err >&5
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } &&
5040          { ac_try='test -z "$ac_c_werror_flag"
5041                          || test ! -s conftest.err'
5042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043   (eval $ac_try) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }; } &&
5047          { ac_try='test -s conftest.$ac_objext'
5048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049   (eval $ac_try) 2>&5
5050   ac_status=$?
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); }; }; then
5053   :
5054 else
5055   echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5057
5058 continue
5059 fi
5060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5061   cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h.  */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h.  */
5067 $ac_declaration
5068 int
5069 main ()
5070 {
5071 exit (42);
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078   (eval $ac_compile) 2>conftest.er1
5079   ac_status=$?
5080   grep -v '^ *+' conftest.er1 >conftest.err
5081   rm -f conftest.er1
5082   cat conftest.err >&5
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); } &&
5085          { ac_try='test -z "$ac_c_werror_flag"
5086                          || test ! -s conftest.err'
5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088   (eval $ac_try) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); }; } &&
5092          { ac_try='test -s conftest.$ac_objext'
5093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094   (eval $ac_try) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; }; then
5098   break
5099 else
5100   echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 fi
5104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5105 done
5106 rm -f conftest*
5107 if test -n "$ac_declaration"; then
5108   echo '#ifdef __cplusplus' >>confdefs.h
5109   echo $ac_declaration      >>confdefs.h
5110   echo '#endif'             >>confdefs.h
5111 fi
5112
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117 fi
5118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119 ac_ext=c
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124
5125 depcc="$CC"   am_compiler_list=
5126
5127 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5128 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5129 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5130   echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5133   # We make a subdir and do the tests there.  Otherwise we can end up
5134   # making bogus files that we don't know about and never remove.  For
5135   # instance it was reported that on HP-UX the gcc test will end up
5136   # making a dummy file named `D' -- because `-MD' means `put the output
5137   # in D'.
5138   mkdir conftest.dir
5139   # Copy depcomp to subdir because otherwise we won't find it if we're
5140   # using a relative directory.
5141   cp "$am_depcomp" conftest.dir
5142   cd conftest.dir
5143   # We will build objects and dependencies in a subdirectory because
5144   # it helps to detect inapplicable dependency modes.  For instance
5145   # both Tru64's cc and ICC support -MD to output dependencies as a
5146   # side effect of compilation, but ICC will put the dependencies in
5147   # the current directory while Tru64 will put them in the object
5148   # directory.
5149   mkdir sub
5150
5151   am_cv_CC_dependencies_compiler_type=none
5152   if test "$am_compiler_list" = ""; then
5153      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5154   fi
5155   for depmode in $am_compiler_list; do
5156     # Setup a source with many dependencies, because some compilers
5157     # like to wrap large dependency lists on column 80 (with \), and
5158     # we should not choose a depcomp mode which is confused by this.
5159     #
5160     # We need to recreate these files for each test, as the compiler may
5161     # overwrite some of them when testing with obscure command lines.
5162     # This happens at least with the AIX C compiler.
5163     : > sub/conftest.c
5164     for i in 1 2 3 4 5 6; do
5165       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5166       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5167       # Solaris 8's {/usr,}/bin/sh.
5168       touch sub/conftst$i.h
5169     done
5170     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5171
5172     case $depmode in
5173     nosideeffect)
5174       # after this tag, mechanisms are not by side-effect, so they'll
5175       # only be used when explicitly requested
5176       if test "x$enable_dependency_tracking" = xyes; then
5177         continue
5178       else
5179         break
5180       fi
5181       ;;
5182     none) break ;;
5183     esac
5184     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5185     # mode.  It turns out that the SunPro C++ compiler does not properly
5186     # handle `-M -o', and we need to detect this.
5187     if depmode=$depmode \
5188        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5189        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5190        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5191          >/dev/null 2>conftest.err &&
5192        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5193        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5194        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5195       # icc doesn't choke on unknown options, it will just issue warnings
5196       # or remarks (even with -Werror).  So we grep stderr for any message
5197       # that says an option was ignored or not supported.
5198       # When given -MP, icc 7.0 and 7.1 complain thusly:
5199       #   icc: Command line warning: ignoring option '-M'; no argument required
5200       # The diagnosis changed in icc 8.0:
5201       #   icc: Command line remark: option '-MP' not supported
5202       if (grep 'ignoring option' conftest.err ||
5203           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5204         am_cv_CC_dependencies_compiler_type=$depmode
5205         break
5206       fi
5207     fi
5208   done
5209
5210   cd ..
5211   rm -rf conftest.dir
5212 else
5213   am_cv_CC_dependencies_compiler_type=none
5214 fi
5215
5216 fi
5217 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5218 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5220
5221
5222
5223 if
5224   test "x$enable_dependency_tracking" != xno \
5225   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5226   am__fastdepCC_TRUE=
5227   am__fastdepCC_FALSE='#'
5228 else
5229   am__fastdepCC_TRUE='#'
5230   am__fastdepCC_FALSE=
5231 fi
5232
5233
5234 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5235 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5236 if test "${lt_cv_path_SED+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   # Loop through the user's path and test for sed and gsed.
5240 # Then use that list of sed's as ones to test for truncation.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244   IFS=$as_save_IFS
5245   test -z "$as_dir" && as_dir=.
5246   for lt_ac_prog in sed gsed; do
5247     for ac_exec_ext in '' $ac_executable_extensions; do
5248       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5249         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5250       fi
5251     done
5252   done
5253 done
5254 lt_ac_max=0
5255 lt_ac_count=0
5256 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5257 # along with /bin/sed that truncates output.
5258 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5259   test ! -f $lt_ac_sed && continue
5260   cat /dev/null > conftest.in
5261   lt_ac_count=0
5262   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5263   # Check for GNU sed and select it if it is found.
5264   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5265     lt_cv_path_SED=$lt_ac_sed
5266     break
5267   fi
5268   while true; do
5269     cat conftest.in conftest.in >conftest.tmp
5270     mv conftest.tmp conftest.in
5271     cp conftest.in conftest.nl
5272     echo >>conftest.nl
5273     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5274     cmp -s conftest.out conftest.nl || break
5275     # 10000 chars as input seems more than enough
5276     test $lt_ac_count -gt 10 && break
5277     lt_ac_count=`expr $lt_ac_count + 1`
5278     if test $lt_ac_count -gt $lt_ac_max; then
5279       lt_ac_max=$lt_ac_count
5280       lt_cv_path_SED=$lt_ac_sed
5281     fi
5282   done
5283 done
5284
5285 fi
5286
5287 SED=$lt_cv_path_SED
5288 echo "$as_me:$LINENO: result: $SED" >&5
5289 echo "${ECHO_T}$SED" >&6
5290
5291 echo "$as_me:$LINENO: checking for egrep" >&5
5292 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5293 if test "${ac_cv_prog_egrep+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5297     then ac_cv_prog_egrep='grep -E'
5298     else ac_cv_prog_egrep='egrep'
5299     fi
5300 fi
5301 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5302 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5303  EGREP=$ac_cv_prog_egrep
5304
5305
5306
5307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5308 if test "${with_gnu_ld+set}" = set; then
5309   withval="$with_gnu_ld"
5310   test "$withval" = no || with_gnu_ld=yes
5311 else
5312   with_gnu_ld=no
5313 fi;
5314 ac_prog=ld
5315 if test "$GCC" = yes; then
5316   # Check if gcc -print-prog-name=ld gives a path.
5317   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5318 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5319   case $host in
5320   *-*-mingw*)
5321     # gcc leaves a trailing carriage return which upsets mingw
5322     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5323   *)
5324     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5325   esac
5326   case $ac_prog in
5327     # Accept absolute paths.
5328     [\\/]* | ?:[\\/]*)
5329       re_direlt='/[^/][^/]*/\.\./'
5330       # Canonicalize the pathname of ld
5331       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5332       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5333         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5334       done
5335       test -z "$LD" && LD="$ac_prog"
5336       ;;
5337   "")
5338     # If it fails, then pretend we aren't using GCC.
5339     ac_prog=ld
5340     ;;
5341   *)
5342     # If it is relative, then search for the first ld in PATH.
5343     with_gnu_ld=unknown
5344     ;;
5345   esac
5346 elif test "$with_gnu_ld" = yes; then
5347   echo "$as_me:$LINENO: checking for GNU ld" >&5
5348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5349 else
5350   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5352 fi
5353 if test "${lt_cv_path_LD+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   if test -z "$LD"; then
5357   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5358   for ac_dir in $PATH; do
5359     IFS="$lt_save_ifs"
5360     test -z "$ac_dir" && ac_dir=.
5361     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5362       lt_cv_path_LD="$ac_dir/$ac_prog"
5363       # Check to see if the program is GNU ld.  I'd rather use --version,
5364       # but apparently some GNU ld's only accept -v.
5365       # Break only if it was the GNU/non-GNU ld that we prefer.
5366       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5367       *GNU* | *'with BFD'*)
5368         test "$with_gnu_ld" != no && break
5369         ;;
5370       *)
5371         test "$with_gnu_ld" != yes && break
5372         ;;
5373       esac
5374     fi
5375   done
5376   IFS="$lt_save_ifs"
5377 else
5378   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5379 fi
5380 fi
5381
5382 LD="$lt_cv_path_LD"
5383 if test -n "$LD"; then
5384   echo "$as_me:$LINENO: result: $LD" >&5
5385 echo "${ECHO_T}$LD" >&6
5386 else
5387   echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6
5389 fi
5390 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5391 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5392    { (exit 1); exit 1; }; }
5393 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5394 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5395 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5399 case `$LD -v 2>&1 </dev/null` in
5400 *GNU* | *'with BFD'*)
5401   lt_cv_prog_gnu_ld=yes
5402   ;;
5403 *)
5404   lt_cv_prog_gnu_ld=no
5405   ;;
5406 esac
5407 fi
5408 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5409 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5410 with_gnu_ld=$lt_cv_prog_gnu_ld
5411
5412
5413 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5414 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5415 if test "${lt_cv_ld_reload_flag+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   lt_cv_ld_reload_flag='-r'
5419 fi
5420 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5421 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5422 reload_flag=$lt_cv_ld_reload_flag
5423 case $reload_flag in
5424 "" | " "*) ;;
5425 *) reload_flag=" $reload_flag" ;;
5426 esac
5427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5428 case $host_os in
5429   darwin*)
5430     if test "$GCC" = yes; then
5431       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5432     else
5433       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5434     fi
5435     ;;
5436 esac
5437
5438 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5439 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5440 if test "${lt_cv_path_NM+set}" = set; then
5441   echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443   if test -n "$NM"; then
5444   # Let the user override the test.
5445   lt_cv_path_NM="$NM"
5446 else
5447   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5448   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5449     IFS="$lt_save_ifs"
5450     test -z "$ac_dir" && ac_dir=.
5451     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5452     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5453       # Check to see if the nm accepts a BSD-compat flag.
5454       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5455       #   nm: unknown option "B" ignored
5456       # Tru64's nm complains that /dev/null is an invalid object file
5457       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5458       */dev/null* | *'Invalid file or object type'*)
5459         lt_cv_path_NM="$tmp_nm -B"
5460         break
5461         ;;
5462       *)
5463         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5464         */dev/null*)
5465           lt_cv_path_NM="$tmp_nm -p"
5466           break
5467           ;;
5468         *)
5469           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5470           continue # so that we can try to find one that supports BSD flags
5471           ;;
5472         esac
5473       esac
5474     fi
5475   done
5476   IFS="$lt_save_ifs"
5477   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5478 fi
5479 fi
5480 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5481 echo "${ECHO_T}$lt_cv_path_NM" >&6
5482 NM="$lt_cv_path_NM"
5483
5484 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5485 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5486 LN_S=$as_ln_s
5487 if test "$LN_S" = "ln -s"; then
5488   echo "$as_me:$LINENO: result: yes" >&5
5489 echo "${ECHO_T}yes" >&6
5490 else
5491   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5492 echo "${ECHO_T}no, using $LN_S" >&6
5493 fi
5494
5495 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5496 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5497 if test "${lt_cv_deplibs_check_method+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   lt_cv_file_magic_cmd='$MAGIC_CMD'
5501 lt_cv_file_magic_test_file=
5502 lt_cv_deplibs_check_method='unknown'
5503 # Need to set the preceding variable on all platforms that support
5504 # interlibrary dependencies.
5505 # 'none' -- dependencies not supported.
5506 # `unknown' -- same as none, but documents that we really don't know.
5507 # 'pass_all' -- all dependencies passed with no checks.
5508 # 'test_compile' -- check by making test program.
5509 # 'file_magic [[regex]]' -- check by looking for files in library path
5510 # which responds to the $file_magic_cmd with a given extended regex.
5511 # If you have `file' or equivalent on your system and you're not sure
5512 # whether `pass_all' will *always* work, you probably want this one.
5513
5514 case $host_os in
5515 aix4* | aix5*)
5516   lt_cv_deplibs_check_method=pass_all
5517   ;;
5518
5519 beos*)
5520   lt_cv_deplibs_check_method=pass_all
5521   ;;
5522
5523 bsdi[45]*)
5524   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5525   lt_cv_file_magic_cmd='/usr/bin/file -L'
5526   lt_cv_file_magic_test_file=/shlib/libc.so
5527   ;;
5528
5529 cygwin*)
5530   # func_win32_libid is a shell function defined in ltmain.sh
5531   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5532   lt_cv_file_magic_cmd='func_win32_libid'
5533   ;;
5534
5535 mingw* | pw32*)
5536   # Base MSYS/MinGW do not provide the 'file' command needed by
5537   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5538   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5539   lt_cv_file_magic_cmd='$OBJDUMP -f'
5540   ;;
5541
5542 darwin* | rhapsody*)
5543   lt_cv_deplibs_check_method=pass_all
5544   ;;
5545
5546 freebsd* | kfreebsd*-gnu | dragonfly*)
5547   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5548     case $host_cpu in
5549     i*86 )
5550       # Not sure whether the presence of OpenBSD here was a mistake.
5551       # Let's accept both of them until this is cleared up.
5552       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5553       lt_cv_file_magic_cmd=/usr/bin/file
5554       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5555       ;;
5556     esac
5557   else
5558     lt_cv_deplibs_check_method=pass_all
5559   fi
5560   ;;
5561
5562 gnu*)
5563   lt_cv_deplibs_check_method=pass_all
5564   ;;
5565
5566 hpux10.20* | hpux11*)
5567   lt_cv_file_magic_cmd=/usr/bin/file
5568   case "$host_cpu" in
5569   ia64*)
5570     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5571     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5572     ;;
5573   hppa*64*)
5574     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]'
5575     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5576     ;;
5577   *)
5578     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5579     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5580     ;;
5581   esac
5582   ;;
5583
5584 irix5* | irix6* | nonstopux*)
5585   case $LD in
5586   *-32|*"-32 ") libmagic=32-bit;;
5587   *-n32|*"-n32 ") libmagic=N32;;
5588   *-64|*"-64 ") libmagic=64-bit;;
5589   *) libmagic=never-match;;
5590   esac
5591   lt_cv_deplibs_check_method=pass_all
5592   ;;
5593
5594 # This must be Linux ELF.
5595 linux*)
5596   lt_cv_deplibs_check_method=pass_all
5597   ;;
5598
5599 netbsd*)
5600   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5601     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5602   else
5603     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5604   fi
5605   ;;
5606
5607 newos6*)
5608   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5609   lt_cv_file_magic_cmd=/usr/bin/file
5610   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5611   ;;
5612
5613 nto-qnx*)
5614   lt_cv_deplibs_check_method=unknown
5615   ;;
5616
5617 openbsd*)
5618   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5620   else
5621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5622   fi
5623   ;;
5624
5625 osf3* | osf4* | osf5*)
5626   lt_cv_deplibs_check_method=pass_all
5627   ;;
5628
5629 sco3.2v5*)
5630   lt_cv_deplibs_check_method=pass_all
5631   ;;
5632
5633 solaris*)
5634   lt_cv_deplibs_check_method=pass_all
5635   ;;
5636
5637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5638   case $host_vendor in
5639   motorola)
5640     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]'
5641     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5642     ;;
5643   ncr)
5644     lt_cv_deplibs_check_method=pass_all
5645     ;;
5646   sequent)
5647     lt_cv_file_magic_cmd='/bin/file'
5648     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5649     ;;
5650   sni)
5651     lt_cv_file_magic_cmd='/bin/file'
5652     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5653     lt_cv_file_magic_test_file=/lib/libc.so
5654     ;;
5655   siemens)
5656     lt_cv_deplibs_check_method=pass_all
5657     ;;
5658   esac
5659   ;;
5660
5661 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5662   lt_cv_deplibs_check_method=pass_all
5663   ;;
5664 esac
5665
5666 fi
5667 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5668 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5669 file_magic_cmd=$lt_cv_file_magic_cmd
5670 deplibs_check_method=$lt_cv_deplibs_check_method
5671 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5672
5673
5674
5675
5676 # If no C compiler was specified, use CC.
5677 LTCC=${LTCC-"$CC"}
5678
5679 # Allow CC to be a program name with arguments.
5680 compiler=$CC
5681
5682
5683 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5684 if test "${enable_libtool_lock+set}" = set; then
5685   enableval="$enable_libtool_lock"
5686
5687 fi;
5688 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5689
5690 # Some flags need to be propagated to the compiler or linker for good
5691 # libtool support.
5692 case $host in
5693 ia64-*-hpux*)
5694   # Find out which ABI we are using.
5695   echo 'int i;' > conftest.$ac_ext
5696   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697   (eval $ac_compile) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; then
5701     case `/usr/bin/file conftest.$ac_objext` in
5702     *ELF-32*)
5703       HPUX_IA64_MODE="32"
5704       ;;
5705     *ELF-64*)
5706       HPUX_IA64_MODE="64"
5707       ;;
5708     esac
5709   fi
5710   rm -rf conftest*
5711   ;;
5712 *-*-irix6*)
5713   # Find out which ABI we are using.
5714   echo '#line 5714 "configure"' > conftest.$ac_ext
5715   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716   (eval $ac_compile) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; then
5720    if test "$lt_cv_prog_gnu_ld" = yes; then
5721     case `/usr/bin/file conftest.$ac_objext` in
5722     *32-bit*)
5723       LD="${LD-ld} -melf32bsmip"
5724       ;;
5725     *N32*)
5726       LD="${LD-ld} -melf32bmipn32"
5727       ;;
5728     *64-bit*)
5729       LD="${LD-ld} -melf64bmip"
5730       ;;
5731     esac
5732    else
5733     case `/usr/bin/file conftest.$ac_objext` in
5734     *32-bit*)
5735       LD="${LD-ld} -32"
5736       ;;
5737     *N32*)
5738       LD="${LD-ld} -n32"
5739       ;;
5740     *64-bit*)
5741       LD="${LD-ld} -64"
5742       ;;
5743     esac
5744    fi
5745   fi
5746   rm -rf conftest*
5747   ;;
5748
5749 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5750   # Find out which ABI we are using.
5751   echo 'int i;' > conftest.$ac_ext
5752   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753   (eval $ac_compile) 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; then
5757     case "`/usr/bin/file conftest.o`" in
5758     *32-bit*)
5759       case $host in
5760         x86_64-*linux*)
5761           LD="${LD-ld} -m elf_i386"
5762           ;;
5763         ppc64-*linux*|powerpc64-*linux*)
5764           LD="${LD-ld} -m elf32ppclinux"
5765           ;;
5766         s390x-*linux*)
5767           LD="${LD-ld} -m elf_s390"
5768           ;;
5769         sparc64-*linux*)
5770           LD="${LD-ld} -m elf32_sparc"
5771           ;;
5772       esac
5773       ;;
5774     *64-bit*)
5775       case $host in
5776         x86_64-*linux*)
5777           LD="${LD-ld} -m elf_x86_64"
5778           ;;
5779         ppc*-*linux*|powerpc*-*linux*)
5780           LD="${LD-ld} -m elf64ppc"
5781           ;;
5782         s390*-*linux*)
5783           LD="${LD-ld} -m elf64_s390"
5784           ;;
5785         sparc*-*linux*)
5786           LD="${LD-ld} -m elf64_sparc"
5787           ;;
5788       esac
5789       ;;
5790     esac
5791   fi
5792   rm -rf conftest*
5793   ;;
5794
5795 *-*-sco3.2v5*)
5796   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5797   SAVE_CFLAGS="$CFLAGS"
5798   CFLAGS="$CFLAGS -belf"
5799   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5800 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5801 if test "${lt_cv_cc_needs_belf+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   ac_ext=c
5805 ac_cpp='$CPP $CPPFLAGS'
5806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5809
5810      cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h.  */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h.  */
5816
5817 int
5818 main ()
5819 {
5820
5821   ;
5822   return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext conftest$ac_exeext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5827   (eval $ac_link) 2>conftest.er1
5828   ac_status=$?
5829   grep -v '^ *+' conftest.er1 >conftest.err
5830   rm -f conftest.er1
5831   cat conftest.err >&5
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } &&
5834          { ac_try='test -z "$ac_c_werror_flag"
5835                          || test ! -s conftest.err'
5836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837   (eval $ac_try) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }; } &&
5841          { ac_try='test -s conftest$ac_exeext'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   lt_cv_cc_needs_belf=yes
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 lt_cv_cc_needs_belf=no
5853 fi
5854 rm -f conftest.err conftest.$ac_objext \
5855       conftest$ac_exeext conftest.$ac_ext
5856      ac_ext=c
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861
5862 fi
5863 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5864 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5865   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5866     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5867     CFLAGS="$SAVE_CFLAGS"
5868   fi
5869   ;;
5870 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5871   if test -n "$ac_tool_prefix"; then
5872   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   if test -n "$DLLTOOL"; then
5880   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_exec_ext in '' $ac_executable_extensions; do
5888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894 done
5895
5896 fi
5897 fi
5898 DLLTOOL=$ac_cv_prog_DLLTOOL
5899 if test -n "$DLLTOOL"; then
5900   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5901 echo "${ECHO_T}$DLLTOOL" >&6
5902 else
5903   echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5905 fi
5906
5907 fi
5908 if test -z "$ac_cv_prog_DLLTOOL"; then
5909   ac_ct_DLLTOOL=$DLLTOOL
5910   # Extract the first word of "dlltool", so it can be a program name with args.
5911 set dummy dlltool; ac_word=$2
5912 echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   if test -n "$ac_ct_DLLTOOL"; then
5918   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925   for ac_exec_ext in '' $ac_executable_extensions; do
5926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932 done
5933
5934   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5935 fi
5936 fi
5937 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5938 if test -n "$ac_ct_DLLTOOL"; then
5939   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5940 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5941 else
5942   echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5944 fi
5945
5946   DLLTOOL=$ac_ct_DLLTOOL
5947 else
5948   DLLTOOL="$ac_cv_prog_DLLTOOL"
5949 fi
5950
5951   if test -n "$ac_tool_prefix"; then
5952   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5953 set dummy ${ac_tool_prefix}as; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_AS+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   if test -n "$AS"; then
5960   ac_cv_prog_AS="$AS" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_exec_ext in '' $ac_executable_extensions; do
5968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969     ac_cv_prog_AS="${ac_tool_prefix}as"
5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974 done
5975
5976 fi
5977 fi
5978 AS=$ac_cv_prog_AS
5979 if test -n "$AS"; then
5980   echo "$as_me:$LINENO: result: $AS" >&5
5981 echo "${ECHO_T}$AS" >&6
5982 else
5983   echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5985 fi
5986
5987 fi
5988 if test -z "$ac_cv_prog_AS"; then
5989   ac_ct_AS=$AS
5990   # Extract the first word of "as", so it can be a program name with args.
5991 set dummy as; ac_word=$2
5992 echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   if test -n "$ac_ct_AS"; then
5998   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005   for ac_exec_ext in '' $ac_executable_extensions; do
6006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007     ac_cv_prog_ac_ct_AS="as"
6008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009     break 2
6010   fi
6011 done
6012 done
6013
6014   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6015 fi
6016 fi
6017 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6018 if test -n "$ac_ct_AS"; then
6019   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6020 echo "${ECHO_T}$ac_ct_AS" >&6
6021 else
6022   echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6024 fi
6025
6026   AS=$ac_ct_AS
6027 else
6028   AS="$ac_cv_prog_AS"
6029 fi
6030
6031   if test -n "$ac_tool_prefix"; then
6032   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6034 echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   if test -n "$OBJDUMP"; then
6040   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045   IFS=$as_save_IFS
6046   test -z "$as_dir" && as_dir=.
6047   for ac_exec_ext in '' $ac_executable_extensions; do
6048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051     break 2
6052   fi
6053 done
6054 done
6055
6056 fi
6057 fi
6058 OBJDUMP=$ac_cv_prog_OBJDUMP
6059 if test -n "$OBJDUMP"; then
6060   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6061 echo "${ECHO_T}$OBJDUMP" >&6
6062 else
6063   echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6
6065 fi
6066
6067 fi
6068 if test -z "$ac_cv_prog_OBJDUMP"; then
6069   ac_ct_OBJDUMP=$OBJDUMP
6070   # Extract the first word of "objdump", so it can be a program name with args.
6071 set dummy objdump; ac_word=$2
6072 echo "$as_me:$LINENO: checking for $ac_word" >&5
6073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6074 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6075   echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077   if test -n "$ac_ct_OBJDUMP"; then
6078   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6079 else
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6082 do
6083   IFS=$as_save_IFS
6084   test -z "$as_dir" && as_dir=.
6085   for ac_exec_ext in '' $ac_executable_extensions; do
6086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089     break 2
6090   fi
6091 done
6092 done
6093
6094   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6095 fi
6096 fi
6097 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6098 if test -n "$ac_ct_OBJDUMP"; then
6099   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6100 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6101 else
6102   echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6
6104 fi
6105
6106   OBJDUMP=$ac_ct_OBJDUMP
6107 else
6108   OBJDUMP="$ac_cv_prog_OBJDUMP"
6109 fi
6110
6111   ;;
6112
6113 esac
6114
6115 need_locks="$enable_libtool_lock"
6116
6117
6118 ac_ext=c
6119 ac_cpp='$CPP $CPPFLAGS'
6120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6123 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6124 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6125 # On Suns, sometimes $CPP names a directory.
6126 if test -n "$CPP" && test -d "$CPP"; then
6127   CPP=
6128 fi
6129 if test -z "$CPP"; then
6130   if test "${ac_cv_prog_CPP+set}" = set; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133       # Double quotes because CPP needs to be expanded
6134     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6135     do
6136       ac_preproc_ok=false
6137 for ac_c_preproc_warn_flag in '' yes
6138 do
6139   # Use a header file that comes with gcc, so configuring glibc
6140   # with a fresh cross-compiler works.
6141   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142   # <limits.h> exists even on freestanding compilers.
6143   # On the NeXT, cc -E runs the code through the compiler's parser,
6144   # not just through cpp. "Syntax error" is here to catch this case.
6145   cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 #ifdef __STDC__
6152 # include <limits.h>
6153 #else
6154 # include <assert.h>
6155 #endif
6156                      Syntax error
6157 _ACEOF
6158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } >/dev/null; then
6166   if test -s conftest.err; then
6167     ac_cpp_err=$ac_c_preproc_warn_flag
6168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6169   else
6170     ac_cpp_err=
6171   fi
6172 else
6173   ac_cpp_err=yes
6174 fi
6175 if test -z "$ac_cpp_err"; then
6176   :
6177 else
6178   echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181   # Broken: fails on valid input.
6182 continue
6183 fi
6184 rm -f conftest.err conftest.$ac_ext
6185
6186   # OK, works on sane cases.  Now check whether non-existent headers
6187   # can be detected and how.
6188   cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194 #include <ac_nonexistent.h>
6195 _ACEOF
6196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6198   ac_status=$?
6199   grep -v '^ *+' conftest.er1 >conftest.err
6200   rm -f conftest.er1
6201   cat conftest.err >&5
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } >/dev/null; then
6204   if test -s conftest.err; then
6205     ac_cpp_err=$ac_c_preproc_warn_flag
6206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6207   else
6208     ac_cpp_err=
6209   fi
6210 else
6211   ac_cpp_err=yes
6212 fi
6213 if test -z "$ac_cpp_err"; then
6214   # Broken: success on invalid input.
6215 continue
6216 else
6217   echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220   # Passes both tests.
6221 ac_preproc_ok=:
6222 break
6223 fi
6224 rm -f conftest.err conftest.$ac_ext
6225
6226 done
6227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6228 rm -f conftest.err conftest.$ac_ext
6229 if $ac_preproc_ok; then
6230   break
6231 fi
6232
6233     done
6234     ac_cv_prog_CPP=$CPP
6235
6236 fi
6237   CPP=$ac_cv_prog_CPP
6238 else
6239   ac_cv_prog_CPP=$CPP
6240 fi
6241 echo "$as_me:$LINENO: result: $CPP" >&5
6242 echo "${ECHO_T}$CPP" >&6
6243 ac_preproc_ok=false
6244 for ac_c_preproc_warn_flag in '' yes
6245 do
6246   # Use a header file that comes with gcc, so configuring glibc
6247   # with a fresh cross-compiler works.
6248   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249   # <limits.h> exists even on freestanding compilers.
6250   # On the NeXT, cc -E runs the code through the compiler's parser,
6251   # not just through cpp. "Syntax error" is here to catch this case.
6252   cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h.  */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h.  */
6258 #ifdef __STDC__
6259 # include <limits.h>
6260 #else
6261 # include <assert.h>
6262 #endif
6263                      Syntax error
6264 _ACEOF
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6267   ac_status=$?
6268   grep -v '^ *+' conftest.er1 >conftest.err
6269   rm -f conftest.er1
6270   cat conftest.err >&5
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); } >/dev/null; then
6273   if test -s conftest.err; then
6274     ac_cpp_err=$ac_c_preproc_warn_flag
6275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6276   else
6277     ac_cpp_err=
6278   fi
6279 else
6280   ac_cpp_err=yes
6281 fi
6282 if test -z "$ac_cpp_err"; then
6283   :
6284 else
6285   echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288   # Broken: fails on valid input.
6289 continue
6290 fi
6291 rm -f conftest.err conftest.$ac_ext
6292
6293   # OK, works on sane cases.  Now check whether non-existent headers
6294   # can be detected and how.
6295   cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h.  */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h.  */
6301 #include <ac_nonexistent.h>
6302 _ACEOF
6303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } >/dev/null; then
6311   if test -s conftest.err; then
6312     ac_cpp_err=$ac_c_preproc_warn_flag
6313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6314   else
6315     ac_cpp_err=
6316   fi
6317 else
6318   ac_cpp_err=yes
6319 fi
6320 if test -z "$ac_cpp_err"; then
6321   # Broken: success on invalid input.
6322 continue
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327   # Passes both tests.
6328 ac_preproc_ok=:
6329 break
6330 fi
6331 rm -f conftest.err conftest.$ac_ext
6332
6333 done
6334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6335 rm -f conftest.err conftest.$ac_ext
6336 if $ac_preproc_ok; then
6337   :
6338 else
6339   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6340 See \`config.log' for more details." >&5
6341 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6342 See \`config.log' for more details." >&2;}
6343    { (exit 1); exit 1; }; }
6344 fi
6345
6346 ac_ext=c
6347 ac_cpp='$CPP $CPPFLAGS'
6348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351
6352
6353 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6354 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6355 if test "${ac_cv_header_stdc+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h.  */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h.  */
6364 #include <stdlib.h>
6365 #include <stdarg.h>
6366 #include <string.h>
6367 #include <float.h>
6368
6369 int
6370 main ()
6371 {
6372
6373   ;
6374   return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379   (eval $ac_compile) 2>conftest.er1
6380   ac_status=$?
6381   grep -v '^ *+' conftest.er1 >conftest.err
6382   rm -f conftest.er1
6383   cat conftest.err >&5
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } &&
6386          { ac_try='test -z "$ac_c_werror_flag"
6387                          || test ! -s conftest.err'
6388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389   (eval $ac_try) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); }; } &&
6393          { ac_try='test -s conftest.$ac_objext'
6394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395   (eval $ac_try) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); }; }; then
6399   ac_cv_header_stdc=yes
6400 else
6401   echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 ac_cv_header_stdc=no
6405 fi
6406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6407
6408 if test $ac_cv_header_stdc = yes; then
6409   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6410   cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h.  */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h.  */
6416 #include <string.h>
6417
6418 _ACEOF
6419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6420   $EGREP "memchr" >/dev/null 2>&1; then
6421   :
6422 else
6423   ac_cv_header_stdc=no
6424 fi
6425 rm -f conftest*
6426
6427 fi
6428
6429 if test $ac_cv_header_stdc = yes; then
6430   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6431   cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437 #include <stdlib.h>
6438
6439 _ACEOF
6440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6441   $EGREP "free" >/dev/null 2>&1; then
6442   :
6443 else
6444   ac_cv_header_stdc=no
6445 fi
6446 rm -f conftest*
6447
6448 fi
6449
6450 if test $ac_cv_header_stdc = yes; then
6451   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6452   if test "$cross_compiling" = yes; then
6453   :
6454 else
6455   cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h.  */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h.  */
6461 #include <ctype.h>
6462 #if ((' ' & 0x0FF) == 0x020)
6463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6465 #else
6466 # define ISLOWER(c) \
6467                    (('a' <= (c) && (c) <= 'i') \
6468                      || ('j' <= (c) && (c) <= 'r') \
6469                      || ('s' <= (c) && (c) <= 'z'))
6470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6471 #endif
6472
6473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6474 int
6475 main ()
6476 {
6477   int i;
6478   for (i = 0; i < 256; i++)
6479     if (XOR (islower (i), ISLOWER (i))
6480         || toupper (i) != TOUPPER (i))
6481       exit(2);
6482   exit (0);
6483 }
6484 _ACEOF
6485 rm -f conftest$ac_exeext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487   (eval $ac_link) 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492   (eval $ac_try) 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); }; }; then
6496   :
6497 else
6498   echo "$as_me: program exited with status $ac_status" >&5
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 ( exit $ac_status )
6503 ac_cv_header_stdc=no
6504 fi
6505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6506 fi
6507 fi
6508 fi
6509 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6510 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6511 if test $ac_cv_header_stdc = yes; then
6512
6513 cat >>confdefs.h <<\_ACEOF
6514 #define STDC_HEADERS 1
6515 _ACEOF
6516
6517 fi
6518
6519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6530                   inttypes.h stdint.h unistd.h
6531 do
6532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6533 echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h.  */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h.  */
6544 $ac_includes_default
6545
6546 #include <$ac_header>
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550   (eval $ac_compile) 2>conftest.er1
6551   ac_status=$?
6552   grep -v '^ *+' conftest.er1 >conftest.err
6553   rm -f conftest.er1
6554   cat conftest.err >&5
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); } &&
6557          { ac_try='test -z "$ac_c_werror_flag"
6558                          || test ! -s conftest.err'
6559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560   (eval $ac_try) 2>&5
6561   ac_status=$?
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); }; } &&
6564          { ac_try='test -s conftest.$ac_objext'
6565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566   (eval $ac_try) 2>&5
6567   ac_status=$?
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); }; }; then
6570   eval "$as_ac_Header=yes"
6571 else
6572   echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 eval "$as_ac_Header=no"
6576 fi
6577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578 fi
6579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6582   cat >>confdefs.h <<_ACEOF
6583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584 _ACEOF
6585
6586 fi
6587
6588 done
6589
6590
6591
6592 for ac_header in dlfcn.h
6593 do
6594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596   echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 fi
6601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6603 else
6604   # Is the header compilable?
6605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h.  */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h.  */
6613 $ac_includes_default
6614 #include <$ac_header>
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618   (eval $ac_compile) 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } &&
6625          { ac_try='test -z "$ac_c_werror_flag"
6626                          || test ! -s conftest.err'
6627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628   (eval $ac_try) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); }; } &&
6632          { ac_try='test -s conftest.$ac_objext'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; }; then
6638   ac_header_compiler=yes
6639 else
6640   echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 ac_header_compiler=no
6644 fi
6645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6647 echo "${ECHO_T}$ac_header_compiler" >&6
6648
6649 # Is the header present?
6650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h.  */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h.  */
6658 #include <$ac_header>
6659 _ACEOF
6660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6662   ac_status=$?
6663   grep -v '^ *+' conftest.er1 >conftest.err
6664   rm -f conftest.er1
6665   cat conftest.err >&5
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } >/dev/null; then
6668   if test -s conftest.err; then
6669     ac_cpp_err=$ac_c_preproc_warn_flag
6670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6671   else
6672     ac_cpp_err=
6673   fi
6674 else
6675   ac_cpp_err=yes
6676 fi
6677 if test -z "$ac_cpp_err"; then
6678   ac_header_preproc=yes
6679 else
6680   echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6682
6683   ac_header_preproc=no
6684 fi
6685 rm -f conftest.err conftest.$ac_ext
6686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6687 echo "${ECHO_T}$ac_header_preproc" >&6
6688
6689 # So?  What about this header?
6690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6691   yes:no: )
6692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6696     ac_header_preproc=yes
6697     ;;
6698   no:yes:* )
6699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6711     (
6712       cat <<\_ASBOX
6713 ## ------------------------------------------ ##
6714 ## Report this to the AC_PACKAGE_NAME lists.  ##
6715 ## ------------------------------------------ ##
6716 _ASBOX
6717     ) |
6718       sed "s/^/$as_me: WARNING:     /" >&2
6719     ;;
6720 esac
6721 echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   eval "$as_ac_Header=\$ac_header_preproc"
6727 fi
6728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6730
6731 fi
6732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733   cat >>confdefs.h <<_ACEOF
6734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735 _ACEOF
6736
6737 fi
6738
6739 done
6740
6741 ac_ext=cc
6742 ac_cpp='$CXXCPP $CPPFLAGS'
6743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6746 if test -n "$ac_tool_prefix"; then
6747   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6748   do
6749     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6751 echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6753 if test "${ac_cv_prog_CXX+set}" = set; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   if test -n "$CXX"; then
6757   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764   for ac_exec_ext in '' $ac_executable_extensions; do
6765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771 done
6772
6773 fi
6774 fi
6775 CXX=$ac_cv_prog_CXX
6776 if test -n "$CXX"; then
6777   echo "$as_me:$LINENO: result: $CXX" >&5
6778 echo "${ECHO_T}$CXX" >&6
6779 else
6780   echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6
6782 fi
6783
6784     test -n "$CXX" && break
6785   done
6786 fi
6787 if test -z "$CXX"; then
6788   ac_ct_CXX=$CXX
6789   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6790 do
6791   # Extract the first word of "$ac_prog", so it can be a program name with args.
6792 set dummy $ac_prog; ac_word=$2
6793 echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6795 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   if test -n "$ac_ct_CXX"; then
6799   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806   for ac_exec_ext in '' $ac_executable_extensions; do
6807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808     ac_cv_prog_ac_ct_CXX="$ac_prog"
6809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813 done
6814
6815 fi
6816 fi
6817 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6818 if test -n "$ac_ct_CXX"; then
6819   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6820 echo "${ECHO_T}$ac_ct_CXX" >&6
6821 else
6822   echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6
6824 fi
6825
6826   test -n "$ac_ct_CXX" && break
6827 done
6828 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6829
6830   CXX=$ac_ct_CXX
6831 fi
6832
6833
6834 # Provide some information about the compiler.
6835 echo "$as_me:$LINENO:" \
6836      "checking for C++ compiler version" >&5
6837 ac_compiler=`set X $ac_compile; echo $2`
6838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6839   (eval $ac_compiler --version </dev/null >&5) 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); }
6843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6844   (eval $ac_compiler -v </dev/null >&5) 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); }
6848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6849   (eval $ac_compiler -V </dev/null >&5) 2>&5
6850   ac_status=$?
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); }
6853
6854 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6855 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6856 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h.  */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h.  */
6865
6866 int
6867 main ()
6868 {
6869 #ifndef __GNUC__
6870        choke me
6871 #endif
6872
6873   ;
6874   return 0;
6875 }
6876 _ACEOF
6877 rm -f conftest.$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879   (eval $ac_compile) 2>conftest.er1
6880   ac_status=$?
6881   grep -v '^ *+' conftest.er1 >conftest.err
6882   rm -f conftest.er1
6883   cat conftest.err >&5
6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); } &&
6886          { ac_try='test -z "$ac_cxx_werror_flag"
6887                          || test ! -s conftest.err'
6888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889   (eval $ac_try) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; } &&
6893          { ac_try='test -s conftest.$ac_objext'
6894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895   (eval $ac_try) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; }; then
6899   ac_compiler_gnu=yes
6900 else
6901   echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904 ac_compiler_gnu=no
6905 fi
6906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6908
6909 fi
6910 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6911 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6912 GXX=`test $ac_compiler_gnu = yes && echo yes`
6913 ac_test_CXXFLAGS=${CXXFLAGS+set}
6914 ac_save_CXXFLAGS=$CXXFLAGS
6915 CXXFLAGS="-g"
6916 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6917 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6918 if test "${ac_cv_prog_cxx_g+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927
6928 int
6929 main ()
6930 {
6931
6932   ;
6933   return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938   (eval $ac_compile) 2>conftest.er1
6939   ac_status=$?
6940   grep -v '^ *+' conftest.er1 >conftest.err
6941   rm -f conftest.er1
6942   cat conftest.err >&5
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); } &&
6945          { ac_try='test -z "$ac_cxx_werror_flag"
6946                          || test ! -s conftest.err'
6947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948   (eval $ac_try) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; } &&
6952          { ac_try='test -s conftest.$ac_objext'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; }; then
6958   ac_cv_prog_cxx_g=yes
6959 else
6960   echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ac_cv_prog_cxx_g=no
6964 fi
6965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6966 fi
6967 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6968 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6969 if test "$ac_test_CXXFLAGS" = set; then
6970   CXXFLAGS=$ac_save_CXXFLAGS
6971 elif test $ac_cv_prog_cxx_g = yes; then
6972   if test "$GXX" = yes; then
6973     CXXFLAGS="-g -O2"
6974   else
6975     CXXFLAGS="-g"
6976   fi
6977 else
6978   if test "$GXX" = yes; then
6979     CXXFLAGS="-O2"
6980   else
6981     CXXFLAGS=
6982   fi
6983 fi
6984 for ac_declaration in \
6985    '' \
6986    'extern "C" void std::exit (int) throw (); using std::exit;' \
6987    'extern "C" void std::exit (int); using std::exit;' \
6988    'extern "C" void exit (int) throw ();' \
6989    'extern "C" void exit (int);' \
6990    'void exit (int);'
6991 do
6992   cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h.  */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h.  */
6998 $ac_declaration
6999 #include <stdlib.h>
7000 int
7001 main ()
7002 {
7003 exit (42);
7004   ;
7005   return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010   (eval $ac_compile) 2>conftest.er1
7011   ac_status=$?
7012   grep -v '^ *+' conftest.er1 >conftest.err
7013   rm -f conftest.er1
7014   cat conftest.err >&5
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } &&
7017          { ac_try='test -z "$ac_cxx_werror_flag"
7018                          || test ! -s conftest.err'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; } &&
7024          { ac_try='test -s conftest.$ac_objext'
7025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026   (eval $ac_try) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; }; then
7030   :
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035 continue
7036 fi
7037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7038   cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044 $ac_declaration
7045 int
7046 main ()
7047 {
7048 exit (42);
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055   (eval $ac_compile) 2>conftest.er1
7056   ac_status=$?
7057   grep -v '^ *+' conftest.er1 >conftest.err
7058   rm -f conftest.er1
7059   cat conftest.err >&5
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } &&
7062          { ac_try='test -z "$ac_cxx_werror_flag"
7063                          || test ! -s conftest.err'
7064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065   (eval $ac_try) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); }; } &&
7069          { ac_try='test -s conftest.$ac_objext'
7070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071   (eval $ac_try) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; }; then
7075   break
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 fi
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082 done
7083 rm -f conftest*
7084 if test -n "$ac_declaration"; then
7085   echo '#ifdef __cplusplus' >>confdefs.h
7086   echo $ac_declaration      >>confdefs.h
7087   echo '#endif'             >>confdefs.h
7088 fi
7089
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
7096 depcc="$CXX"  am_compiler_list=
7097
7098 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7099 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7100 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7104   # We make a subdir and do the tests there.  Otherwise we can end up
7105   # making bogus files that we don't know about and never remove.  For
7106   # instance it was reported that on HP-UX the gcc test will end up
7107   # making a dummy file named `D' -- because `-MD' means `put the output
7108   # in D'.
7109   mkdir conftest.dir
7110   # Copy depcomp to subdir because otherwise we won't find it if we're
7111   # using a relative directory.
7112   cp "$am_depcomp" conftest.dir
7113   cd conftest.dir
7114   # We will build objects and dependencies in a subdirectory because
7115   # it helps to detect inapplicable dependency modes.  For instance
7116   # both Tru64's cc and ICC support -MD to output dependencies as a
7117   # side effect of compilation, but ICC will put the dependencies in
7118   # the current directory while Tru64 will put them in the object
7119   # directory.
7120   mkdir sub
7121
7122   am_cv_CXX_dependencies_compiler_type=none
7123   if test "$am_compiler_list" = ""; then
7124      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7125   fi
7126   for depmode in $am_compiler_list; do
7127     # Setup a source with many dependencies, because some compilers
7128     # like to wrap large dependency lists on column 80 (with \), and
7129     # we should not choose a depcomp mode which is confused by this.
7130     #
7131     # We need to recreate these files for each test, as the compiler may
7132     # overwrite some of them when testing with obscure command lines.
7133     # This happens at least with the AIX C compiler.
7134     : > sub/conftest.c
7135     for i in 1 2 3 4 5 6; do
7136       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7137       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7138       # Solaris 8's {/usr,}/bin/sh.
7139       touch sub/conftst$i.h
7140     done
7141     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7142
7143     case $depmode in
7144     nosideeffect)
7145       # after this tag, mechanisms are not by side-effect, so they'll
7146       # only be used when explicitly requested
7147       if test "x$enable_dependency_tracking" = xyes; then
7148         continue
7149       else
7150         break
7151       fi
7152       ;;
7153     none) break ;;
7154     esac
7155     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7156     # mode.  It turns out that the SunPro C++ compiler does not properly
7157     # handle `-M -o', and we need to detect this.
7158     if depmode=$depmode \
7159        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7160        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7161        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7162          >/dev/null 2>conftest.err &&
7163        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7164        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7165        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7166       # icc doesn't choke on unknown options, it will just issue warnings
7167       # or remarks (even with -Werror).  So we grep stderr for any message
7168       # that says an option was ignored or not supported.
7169       # When given -MP, icc 7.0 and 7.1 complain thusly:
7170       #   icc: Command line warning: ignoring option '-M'; no argument required
7171       # The diagnosis changed in icc 8.0:
7172       #   icc: Command line remark: option '-MP' not supported
7173       if (grep 'ignoring option' conftest.err ||
7174           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7175         am_cv_CXX_dependencies_compiler_type=$depmode
7176         break
7177       fi
7178     fi
7179   done
7180
7181   cd ..
7182   rm -rf conftest.dir
7183 else
7184   am_cv_CXX_dependencies_compiler_type=none
7185 fi
7186
7187 fi
7188 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7189 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7190 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7191
7192
7193
7194 if
7195   test "x$enable_dependency_tracking" != xno \
7196   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7197   am__fastdepCXX_TRUE=
7198   am__fastdepCXX_FALSE='#'
7199 else
7200   am__fastdepCXX_TRUE='#'
7201   am__fastdepCXX_FALSE=
7202 fi
7203
7204
7205
7206
7207 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7208     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7209     (test "X$CXX" != "Xg++"))) ; then
7210   ac_ext=cc
7211 ac_cpp='$CXXCPP $CPPFLAGS'
7212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7215 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7216 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7217 if test -z "$CXXCPP"; then
7218   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221       # Double quotes because CXXCPP needs to be expanded
7222     for CXXCPP in "$CXX -E" "/lib/cpp"
7223     do
7224       ac_preproc_ok=false
7225 for ac_cxx_preproc_warn_flag in '' yes
7226 do
7227   # Use a header file that comes with gcc, so configuring glibc
7228   # with a fresh cross-compiler works.
7229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7230   # <limits.h> exists even on freestanding compilers.
7231   # On the NeXT, cc -E runs the code through the compiler's parser,
7232   # not just through cpp. "Syntax error" is here to catch this case.
7233   cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h.  */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h.  */
7239 #ifdef __STDC__
7240 # include <limits.h>
7241 #else
7242 # include <assert.h>
7243 #endif
7244                      Syntax error
7245 _ACEOF
7246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7248   ac_status=$?
7249   grep -v '^ *+' conftest.er1 >conftest.err
7250   rm -f conftest.er1
7251   cat conftest.err >&5
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); } >/dev/null; then
7254   if test -s conftest.err; then
7255     ac_cpp_err=$ac_cxx_preproc_warn_flag
7256     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7257   else
7258     ac_cpp_err=
7259   fi
7260 else
7261   ac_cpp_err=yes
7262 fi
7263 if test -z "$ac_cpp_err"; then
7264   :
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269   # Broken: fails on valid input.
7270 continue
7271 fi
7272 rm -f conftest.err conftest.$ac_ext
7273
7274   # OK, works on sane cases.  Now check whether non-existent headers
7275   # can be detected and how.
7276   cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h.  */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h.  */
7282 #include <ac_nonexistent.h>
7283 _ACEOF
7284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7286   ac_status=$?
7287   grep -v '^ *+' conftest.er1 >conftest.err
7288   rm -f conftest.er1
7289   cat conftest.err >&5
7290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291   (exit $ac_status); } >/dev/null; then
7292   if test -s conftest.err; then
7293     ac_cpp_err=$ac_cxx_preproc_warn_flag
7294     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7295   else
7296     ac_cpp_err=
7297   fi
7298 else
7299   ac_cpp_err=yes
7300 fi
7301 if test -z "$ac_cpp_err"; then
7302   # Broken: success on invalid input.
7303 continue
7304 else
7305   echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308   # Passes both tests.
7309 ac_preproc_ok=:
7310 break
7311 fi
7312 rm -f conftest.err conftest.$ac_ext
7313
7314 done
7315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7316 rm -f conftest.err conftest.$ac_ext
7317 if $ac_preproc_ok; then
7318   break
7319 fi
7320
7321     done
7322     ac_cv_prog_CXXCPP=$CXXCPP
7323
7324 fi
7325   CXXCPP=$ac_cv_prog_CXXCPP
7326 else
7327   ac_cv_prog_CXXCPP=$CXXCPP
7328 fi
7329 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7330 echo "${ECHO_T}$CXXCPP" >&6
7331 ac_preproc_ok=false
7332 for ac_cxx_preproc_warn_flag in '' yes
7333 do
7334   # Use a header file that comes with gcc, so configuring glibc
7335   # with a fresh cross-compiler works.
7336   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7337   # <limits.h> exists even on freestanding compilers.
7338   # On the NeXT, cc -E runs the code through the compiler's parser,
7339   # not just through cpp. "Syntax error" is here to catch this case.
7340   cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346 #ifdef __STDC__
7347 # include <limits.h>
7348 #else
7349 # include <assert.h>
7350 #endif
7351                      Syntax error
7352 _ACEOF
7353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7355   ac_status=$?
7356   grep -v '^ *+' conftest.er1 >conftest.err
7357   rm -f conftest.er1
7358   cat conftest.err >&5
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); } >/dev/null; then
7361   if test -s conftest.err; then
7362     ac_cpp_err=$ac_cxx_preproc_warn_flag
7363     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7364   else
7365     ac_cpp_err=
7366   fi
7367 else
7368   ac_cpp_err=yes
7369 fi
7370 if test -z "$ac_cpp_err"; then
7371   :
7372 else
7373   echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7375
7376   # Broken: fails on valid input.
7377 continue
7378 fi
7379 rm -f conftest.err conftest.$ac_ext
7380
7381   # OK, works on sane cases.  Now check whether non-existent headers
7382   # can be detected and how.
7383   cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389 #include <ac_nonexistent.h>
7390 _ACEOF
7391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7392   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7393   ac_status=$?
7394   grep -v '^ *+' conftest.er1 >conftest.err
7395   rm -f conftest.er1
7396   cat conftest.err >&5
7397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398   (exit $ac_status); } >/dev/null; then
7399   if test -s conftest.err; then
7400     ac_cpp_err=$ac_cxx_preproc_warn_flag
7401     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7402   else
7403     ac_cpp_err=
7404   fi
7405 else
7406   ac_cpp_err=yes
7407 fi
7408 if test -z "$ac_cpp_err"; then
7409   # Broken: success on invalid input.
7410 continue
7411 else
7412   echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415   # Passes both tests.
7416 ac_preproc_ok=:
7417 break
7418 fi
7419 rm -f conftest.err conftest.$ac_ext
7420
7421 done
7422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7423 rm -f conftest.err conftest.$ac_ext
7424 if $ac_preproc_ok; then
7425   :
7426 else
7427   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7428 See \`config.log' for more details." >&5
7429 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7430 See \`config.log' for more details." >&2;}
7431    { (exit 1); exit 1; }; }
7432 fi
7433
7434 ac_ext=cc
7435 ac_cpp='$CXXCPP $CPPFLAGS'
7436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7439
7440 fi
7441
7442
7443 ac_ext=f
7444 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7445 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7447 if test -n "$ac_tool_prefix"; then
7448   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7449   do
7450     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7452 echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7454 if test "${ac_cv_prog_F77+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   if test -n "$F77"; then
7458   ac_cv_prog_F77="$F77" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465   for ac_exec_ext in '' $ac_executable_extensions; do
7466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472 done
7473
7474 fi
7475 fi
7476 F77=$ac_cv_prog_F77
7477 if test -n "$F77"; then
7478   echo "$as_me:$LINENO: result: $F77" >&5
7479 echo "${ECHO_T}$F77" >&6
7480 else
7481   echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7483 fi
7484
7485     test -n "$F77" && break
7486   done
7487 fi
7488 if test -z "$F77"; then
7489   ac_ct_F77=$F77
7490   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7491 do
7492   # Extract the first word of "$ac_prog", so it can be a program name with args.
7493 set dummy $ac_prog; ac_word=$2
7494 echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7496 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   if test -n "$ac_ct_F77"; then
7500   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509     ac_cv_prog_ac_ct_F77="$ac_prog"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515
7516 fi
7517 fi
7518 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7519 if test -n "$ac_ct_F77"; then
7520   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7521 echo "${ECHO_T}$ac_ct_F77" >&6
7522 else
7523   echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6
7525 fi
7526
7527   test -n "$ac_ct_F77" && break
7528 done
7529
7530   F77=$ac_ct_F77
7531 fi
7532
7533
7534 # Provide some information about the compiler.
7535 echo "$as_me:7535:" \
7536      "checking for Fortran 77 compiler version" >&5
7537 ac_compiler=`set X $ac_compile; echo $2`
7538 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7539   (eval $ac_compiler --version </dev/null >&5) 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }
7543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7544   (eval $ac_compiler -v </dev/null >&5) 2>&5
7545   ac_status=$?
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); }
7548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7549   (eval $ac_compiler -V </dev/null >&5) 2>&5
7550   ac_status=$?
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); }
7553 rm -f a.out
7554
7555 # If we don't use `.F' as extension, the preprocessor is not run on the
7556 # input file.  (Note that this only needs to work for GNU compilers.)
7557 ac_save_ext=$ac_ext
7558 ac_ext=F
7559 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7560 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7561 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7562   echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564   cat >conftest.$ac_ext <<_ACEOF
7565       program main
7566 #ifndef __GNUC__
7567        choke me
7568 #endif
7569
7570       end
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574   (eval $ac_compile) 2>conftest.er1
7575   ac_status=$?
7576   grep -v '^ *+' conftest.er1 >conftest.err
7577   rm -f conftest.er1
7578   cat conftest.err >&5
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } &&
7581          { ac_try='test -z "$ac_f77_werror_flag"
7582                          || test ! -s conftest.err'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; } &&
7588          { ac_try='test -s conftest.$ac_objext'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; }; then
7594   ac_compiler_gnu=yes
7595 else
7596   echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 ac_compiler_gnu=no
7600 fi
7601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7602 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7603
7604 fi
7605 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7606 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7607 ac_ext=$ac_save_ext
7608 ac_test_FFLAGS=${FFLAGS+set}
7609 ac_save_FFLAGS=$FFLAGS
7610 FFLAGS=
7611 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7612 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7613 if test "${ac_cv_prog_f77_g+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   FFLAGS=-g
7617 cat >conftest.$ac_ext <<_ACEOF
7618       program main
7619
7620       end
7621 _ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7624   (eval $ac_compile) 2>conftest.er1
7625   ac_status=$?
7626   grep -v '^ *+' conftest.er1 >conftest.err
7627   rm -f conftest.er1
7628   cat conftest.err >&5
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } &&
7631          { ac_try='test -z "$ac_f77_werror_flag"
7632                          || test ! -s conftest.err'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; } &&
7638          { ac_try='test -s conftest.$ac_objext'
7639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640   (eval $ac_try) 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; }; then
7644   ac_cv_prog_f77_g=yes
7645 else
7646   echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7648
7649 ac_cv_prog_f77_g=no
7650 fi
7651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7652
7653 fi
7654 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7655 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7656 if test "$ac_test_FFLAGS" = set; then
7657   FFLAGS=$ac_save_FFLAGS
7658 elif test $ac_cv_prog_f77_g = yes; then
7659   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7660     FFLAGS="-g -O2"
7661   else
7662     FFLAGS="-g"
7663   fi
7664 else
7665   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7666     FFLAGS="-O2"
7667   else
7668     FFLAGS=
7669   fi
7670 fi
7671
7672 G77=`test $ac_compiler_gnu = yes && echo yes`
7673 ac_ext=c
7674 ac_cpp='$CPP $CPPFLAGS'
7675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7678
7679
7680
7681 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7682
7683 # find the maximum length of command line arguments
7684 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7685 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7686 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689     i=0
7690   teststring="ABCD"
7691
7692   case $build_os in
7693   msdosdjgpp*)
7694     # On DJGPP, this test can blow up pretty badly due to problems in libc
7695     # (any single argument exceeding 2000 bytes causes a buffer overrun
7696     # during glob expansion).  Even if it were fixed, the result of this
7697     # check would be larger than it should be.
7698     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7699     ;;
7700
7701   gnu*)
7702     # Under GNU Hurd, this test is not required because there is
7703     # no limit to the length of command line arguments.
7704     # Libtool will interpret -1 as no limit whatsoever
7705     lt_cv_sys_max_cmd_len=-1;
7706     ;;
7707
7708   cygwin* | mingw*)
7709     # On Win9x/ME, this test blows up -- it succeeds, but takes
7710     # about 5 minutes as the teststring grows exponentially.
7711     # Worse, since 9x/ME are not pre-emptively multitasking,
7712     # you end up with a "frozen" computer, even though with patience
7713     # the test eventually succeeds (with a max line length of 256k).
7714     # Instead, let's just punt: use the minimum linelength reported by
7715     # all of the supported platforms: 8192 (on NT/2K/XP).
7716     lt_cv_sys_max_cmd_len=8192;
7717     ;;
7718
7719   amigaos*)
7720     # On AmigaOS with pdksh, this test takes hours, literally.
7721     # So we just punt and use a minimum line length of 8192.
7722     lt_cv_sys_max_cmd_len=8192;
7723     ;;
7724
7725   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7726     # This has been around since 386BSD, at least.  Likely further.
7727     if test -x /sbin/sysctl; then
7728       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7729     elif test -x /usr/sbin/sysctl; then
7730       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7731     else
7732       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7733     fi
7734     # And add a safety zone
7735     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7736     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7737     ;;
7738   osf*)
7739     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7740     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7741     # nice to cause kernel panics so lets avoid the loop below.
7742     # First set a reasonable default.
7743     lt_cv_sys_max_cmd_len=16384
7744     #
7745     if test -x /sbin/sysconfig; then
7746       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7747         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7748       esac
7749     fi
7750     ;;
7751   *)
7752     # If test is not a shell built-in, we'll probably end up computing a
7753     # maximum length that is only half of the actual maximum length, but
7754     # we can't tell.
7755     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7756     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7757                = "XX$teststring") >/dev/null 2>&1 &&
7758             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7759             lt_cv_sys_max_cmd_len=$new_result &&
7760             test $i != 17 # 1/2 MB should be enough
7761     do
7762       i=`expr $i + 1`
7763       teststring=$teststring$teststring
7764     done
7765     teststring=
7766     # Add a significant safety factor because C++ compilers can tack on massive
7767     # amounts of additional arguments before passing them to the linker.
7768     # It appears as though 1/2 is a usable value.
7769     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7770     ;;
7771   esac
7772
7773 fi
7774
7775 if test -n $lt_cv_sys_max_cmd_len ; then
7776   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7777 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7778 else
7779   echo "$as_me:$LINENO: result: none" >&5
7780 echo "${ECHO_T}none" >&6
7781 fi
7782
7783
7784
7785
7786 # Check for command to grab the raw symbol name followed by C symbol from nm.
7787 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7788 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7789 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792
7793 # These are sane defaults that work on at least a few old systems.
7794 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7795
7796 # Character class describing NM global symbol codes.
7797 symcode='[BCDEGRST]'
7798
7799 # Regexp to match symbols that can be accessed directly from C.
7800 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7801
7802 # Transform an extracted symbol line into a proper C declaration
7803 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7804
7805 # Transform an extracted symbol line into symbol name and symbol address
7806 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'"
7807
7808 # Define system-specific variables.
7809 case $host_os in
7810 aix*)
7811   symcode='[BCDT]'
7812   ;;
7813 cygwin* | mingw* | pw32*)
7814   symcode='[ABCDGISTW]'
7815   ;;
7816 hpux*) # Its linker distinguishes data from code symbols
7817   if test "$host_cpu" = ia64; then
7818     symcode='[ABCDEGRST]'
7819   fi
7820   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7821   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'"
7822   ;;
7823 linux*)
7824   if test "$host_cpu" = ia64; then
7825     symcode='[ABCDGIRSTW]'
7826     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7827     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'"
7828   fi
7829   ;;
7830 irix* | nonstopux*)
7831   symcode='[BCDEGRST]'
7832   ;;
7833 osf*)
7834   symcode='[BCDEGQRST]'
7835   ;;
7836 solaris* | sysv5*)
7837   symcode='[BDRT]'
7838   ;;
7839 sysv4)
7840   symcode='[DFNSTU]'
7841   ;;
7842 esac
7843
7844 # Handle CRLF in mingw tool chain
7845 opt_cr=
7846 case $build_os in
7847 mingw*)
7848   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7849   ;;
7850 esac
7851
7852 # If we're using GNU nm, then use its standard symbol codes.
7853 case `$NM -V 2>&1` in
7854 *GNU* | *'with BFD'*)
7855   symcode='[ABCDGIRSTW]' ;;
7856 esac
7857
7858 # Try without a prefix undercore, then with it.
7859 for ac_symprfx in "" "_"; do
7860
7861   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7862   symxfrm="\\1 $ac_symprfx\\2 \\2"
7863
7864   # Write the raw and C identifiers.
7865   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7866
7867   # Check to see that the pipe works correctly.
7868   pipe_works=no
7869
7870   rm -f conftest*
7871   cat > conftest.$ac_ext <<EOF
7872 #ifdef __cplusplus
7873 extern "C" {
7874 #endif
7875 char nm_test_var;
7876 void nm_test_func(){}
7877 #ifdef __cplusplus
7878 }
7879 #endif
7880 int main(){nm_test_var='a';nm_test_func();return(0);}
7881 EOF
7882
7883   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884   (eval $ac_compile) 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; then
7888     # Now try to grab the symbols.
7889     nlist=conftest.nm
7890     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7891   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7892   ac_status=$?
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } && test -s "$nlist"; then
7895       # Try sorting and uniquifying the output.
7896       if sort "$nlist" | uniq > "$nlist"T; then
7897         mv -f "$nlist"T "$nlist"
7898       else
7899         rm -f "$nlist"T
7900       fi
7901
7902       # Make sure that we snagged all the symbols we need.
7903       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7904         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7905           cat <<EOF > conftest.$ac_ext
7906 #ifdef __cplusplus
7907 extern "C" {
7908 #endif
7909
7910 EOF
7911           # Now generate the symbol file.
7912           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7913
7914           cat <<EOF >> conftest.$ac_ext
7915 #if defined (__STDC__) && __STDC__
7916 # define lt_ptr_t void *
7917 #else
7918 # define lt_ptr_t char *
7919 # define const
7920 #endif
7921
7922 /* The mapping between symbol names and symbols. */
7923 const struct {
7924   const char *name;
7925   lt_ptr_t address;
7926 }
7927 lt_preloaded_symbols[] =
7928 {
7929 EOF
7930           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7931           cat <<\EOF >> conftest.$ac_ext
7932   {0, (lt_ptr_t) 0}
7933 };
7934
7935 #ifdef __cplusplus
7936 }
7937 #endif
7938 EOF
7939           # Now try linking the two files.
7940           mv conftest.$ac_objext conftstm.$ac_objext
7941           lt_save_LIBS="$LIBS"
7942           lt_save_CFLAGS="$CFLAGS"
7943           LIBS="conftstm.$ac_objext"
7944           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7945           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946   (eval $ac_link) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7950             pipe_works=yes
7951           fi
7952           LIBS="$lt_save_LIBS"
7953           CFLAGS="$lt_save_CFLAGS"
7954         else
7955           echo "cannot find nm_test_func in $nlist" >&5
7956         fi
7957       else
7958         echo "cannot find nm_test_var in $nlist" >&5
7959       fi
7960     else
7961       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7962     fi
7963   else
7964     echo "$progname: failed program was:" >&5
7965     cat conftest.$ac_ext >&5
7966   fi
7967   rm -f conftest* conftst*
7968
7969   # Do not use the global_symbol_pipe unless it works.
7970   if test "$pipe_works" = yes; then
7971     break
7972   else
7973     lt_cv_sys_global_symbol_pipe=
7974   fi
7975 done
7976
7977 fi
7978
7979 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7980   lt_cv_sys_global_symbol_to_cdecl=
7981 fi
7982 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7983   echo "$as_me:$LINENO: result: failed" >&5
7984 echo "${ECHO_T}failed" >&6
7985 else
7986   echo "$as_me:$LINENO: result: ok" >&5
7987 echo "${ECHO_T}ok" >&6
7988 fi
7989
7990 echo "$as_me:$LINENO: checking for objdir" >&5
7991 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7992 if test "${lt_cv_objdir+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   rm -f .libs 2>/dev/null
7996 mkdir .libs 2>/dev/null
7997 if test -d .libs; then
7998   lt_cv_objdir=.libs
7999 else
8000   # MS-DOS does not allow filenames that begin with a dot.
8001   lt_cv_objdir=_libs
8002 fi
8003 rmdir .libs 2>/dev/null
8004 fi
8005 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8006 echo "${ECHO_T}$lt_cv_objdir" >&6
8007 objdir=$lt_cv_objdir
8008
8009
8010
8011
8012
8013 case $host_os in
8014 aix3*)
8015   # AIX sometimes has problems with the GCC collect2 program.  For some
8016   # reason, if we set the COLLECT_NAMES environment variable, the problems
8017   # vanish in a puff of smoke.
8018   if test "X${COLLECT_NAMES+set}" != Xset; then
8019     COLLECT_NAMES=
8020     export COLLECT_NAMES
8021   fi
8022   ;;
8023 esac
8024
8025 # Sed substitution that helps us do robust quoting.  It backslashifies
8026 # metacharacters that are still active within double-quoted strings.
8027 Xsed='sed -e 1s/^X//'
8028 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8029
8030 # Same as above, but do not quote variable references.
8031 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8032
8033 # Sed substitution to delay expansion of an escaped shell variable in a
8034 # double_quote_subst'ed string.
8035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8036
8037 # Sed substitution to avoid accidental globbing in evaled expressions
8038 no_glob_subst='s/\*/\\\*/g'
8039
8040 # Constants:
8041 rm="rm -f"
8042
8043 # Global variables:
8044 default_ofile=libtool
8045 can_build_shared=yes
8046
8047 # All known linkers require a `.a' archive for static linking (except M$VC,
8048 # which needs '.lib').
8049 libext=a
8050 ltmain="$ac_aux_dir/ltmain.sh"
8051 ofile="$default_ofile"
8052 with_gnu_ld="$lt_cv_prog_gnu_ld"
8053
8054 if test -n "$ac_tool_prefix"; then
8055   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8056 set dummy ${ac_tool_prefix}ar; ac_word=$2
8057 echo "$as_me:$LINENO: checking for $ac_word" >&5
8058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8059 if test "${ac_cv_prog_AR+set}" = set; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062   if test -n "$AR"; then
8063   ac_cv_prog_AR="$AR" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068   IFS=$as_save_IFS
8069   test -z "$as_dir" && as_dir=.
8070   for ac_exec_ext in '' $ac_executable_extensions; do
8071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072     ac_cv_prog_AR="${ac_tool_prefix}ar"
8073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8074     break 2
8075   fi
8076 done
8077 done
8078
8079 fi
8080 fi
8081 AR=$ac_cv_prog_AR
8082 if test -n "$AR"; then
8083   echo "$as_me:$LINENO: result: $AR" >&5
8084 echo "${ECHO_T}$AR" >&6
8085 else
8086   echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8088 fi
8089
8090 fi
8091 if test -z "$ac_cv_prog_AR"; then
8092   ac_ct_AR=$AR
8093   # Extract the first word of "ar", so it can be a program name with args.
8094 set dummy ar; ac_word=$2
8095 echo "$as_me:$LINENO: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   if test -n "$ac_ct_AR"; then
8101   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106   IFS=$as_save_IFS
8107   test -z "$as_dir" && as_dir=.
8108   for ac_exec_ext in '' $ac_executable_extensions; do
8109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110     ac_cv_prog_ac_ct_AR="ar"
8111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112     break 2
8113   fi
8114 done
8115 done
8116
8117   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8118 fi
8119 fi
8120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8121 if test -n "$ac_ct_AR"; then
8122   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8123 echo "${ECHO_T}$ac_ct_AR" >&6
8124 else
8125   echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8127 fi
8128
8129   AR=$ac_ct_AR
8130 else
8131   AR="$ac_cv_prog_AR"
8132 fi
8133
8134 if test -n "$ac_tool_prefix"; then
8135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8137 echo "$as_me:$LINENO: checking for $ac_word" >&5
8138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8139 if test "${ac_cv_prog_RANLIB+set}" = set; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142   if test -n "$RANLIB"; then
8143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8144 else
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8147 do
8148   IFS=$as_save_IFS
8149   test -z "$as_dir" && as_dir=.
8150   for ac_exec_ext in '' $ac_executable_extensions; do
8151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154     break 2
8155   fi
8156 done
8157 done
8158
8159 fi
8160 fi
8161 RANLIB=$ac_cv_prog_RANLIB
8162 if test -n "$RANLIB"; then
8163   echo "$as_me:$LINENO: result: $RANLIB" >&5
8164 echo "${ECHO_T}$RANLIB" >&6
8165 else
8166   echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8168 fi
8169
8170 fi
8171 if test -z "$ac_cv_prog_RANLIB"; then
8172   ac_ct_RANLIB=$RANLIB
8173   # Extract the first word of "ranlib", so it can be a program name with args.
8174 set dummy ranlib; ac_word=$2
8175 echo "$as_me:$LINENO: checking for $ac_word" >&5
8176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   if test -n "$ac_ct_RANLIB"; then
8181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186   IFS=$as_save_IFS
8187   test -z "$as_dir" && as_dir=.
8188   for ac_exec_ext in '' $ac_executable_extensions; do
8189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190     ac_cv_prog_ac_ct_RANLIB="ranlib"
8191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192     break 2
8193   fi
8194 done
8195 done
8196
8197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8198 fi
8199 fi
8200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8201 if test -n "$ac_ct_RANLIB"; then
8202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8204 else
8205   echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207 fi
8208
8209   RANLIB=$ac_ct_RANLIB
8210 else
8211   RANLIB="$ac_cv_prog_RANLIB"
8212 fi
8213
8214 if test -n "$ac_tool_prefix"; then
8215   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}strip; ac_word=$2
8217 echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8219 if test "${ac_cv_prog_STRIP+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   if test -n "$STRIP"; then
8223   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228   IFS=$as_save_IFS
8229   test -z "$as_dir" && as_dir=.
8230   for ac_exec_ext in '' $ac_executable_extensions; do
8231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8234     break 2
8235   fi
8236 done
8237 done
8238
8239 fi
8240 fi
8241 STRIP=$ac_cv_prog_STRIP
8242 if test -n "$STRIP"; then
8243   echo "$as_me:$LINENO: result: $STRIP" >&5
8244 echo "${ECHO_T}$STRIP" >&6
8245 else
8246   echo "$as_me:$LINENO: result: no" >&5
8247 echo "${ECHO_T}no" >&6
8248 fi
8249
8250 fi
8251 if test -z "$ac_cv_prog_STRIP"; then
8252   ac_ct_STRIP=$STRIP
8253   # Extract the first word of "strip", so it can be a program name with args.
8254 set dummy strip; ac_word=$2
8255 echo "$as_me:$LINENO: checking for $ac_word" >&5
8256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8257 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   if test -n "$ac_ct_STRIP"; then
8261   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266   IFS=$as_save_IFS
8267   test -z "$as_dir" && as_dir=.
8268   for ac_exec_ext in '' $ac_executable_extensions; do
8269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270     ac_cv_prog_ac_ct_STRIP="strip"
8271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8272     break 2
8273   fi
8274 done
8275 done
8276
8277   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8278 fi
8279 fi
8280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8281 if test -n "$ac_ct_STRIP"; then
8282   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8283 echo "${ECHO_T}$ac_ct_STRIP" >&6
8284 else
8285   echo "$as_me:$LINENO: result: no" >&5
8286 echo "${ECHO_T}no" >&6
8287 fi
8288
8289   STRIP=$ac_ct_STRIP
8290 else
8291   STRIP="$ac_cv_prog_STRIP"
8292 fi
8293
8294
8295 old_CC="$CC"
8296 old_CFLAGS="$CFLAGS"
8297
8298 # Set sane defaults for various variables
8299 test -z "$AR" && AR=ar
8300 test -z "$AR_FLAGS" && AR_FLAGS=cru
8301 test -z "$AS" && AS=as
8302 test -z "$CC" && CC=cc
8303 test -z "$LTCC" && LTCC=$CC
8304 test -z "$DLLTOOL" && DLLTOOL=dlltool
8305 test -z "$LD" && LD=ld
8306 test -z "$LN_S" && LN_S="ln -s"
8307 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8308 test -z "$NM" && NM=nm
8309 test -z "$SED" && SED=sed
8310 test -z "$OBJDUMP" && OBJDUMP=objdump
8311 test -z "$RANLIB" && RANLIB=:
8312 test -z "$STRIP" && STRIP=:
8313 test -z "$ac_objext" && ac_objext=o
8314
8315 # Determine commands to create old-style static archives.
8316 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8317 old_postinstall_cmds='chmod 644 $oldlib'
8318 old_postuninstall_cmds=
8319
8320 if test -n "$RANLIB"; then
8321   case $host_os in
8322   openbsd*)
8323     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8324     ;;
8325   *)
8326     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8327     ;;
8328   esac
8329   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8330 fi
8331
8332 for cc_temp in $compiler""; do
8333   case $cc_temp in
8334     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8335     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8336     \-*) ;;
8337     *) break;;
8338   esac
8339 done
8340 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8341
8342
8343 # Only perform the check for file, if the check method requires it
8344 case $deplibs_check_method in
8345 file_magic*)
8346   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8347     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8348 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352   case $MAGIC_CMD in
8353 [\\/*] |  ?:[\\/]*)
8354   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8355   ;;
8356 *)
8357   lt_save_MAGIC_CMD="$MAGIC_CMD"
8358   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8359   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8360   for ac_dir in $ac_dummy; do
8361     IFS="$lt_save_ifs"
8362     test -z "$ac_dir" && ac_dir=.
8363     if test -f $ac_dir/${ac_tool_prefix}file; then
8364       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8365       if test -n "$file_magic_test_file"; then
8366         case $deplibs_check_method in
8367         "file_magic "*)
8368           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8369           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8370           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8371             $EGREP "$file_magic_regex" > /dev/null; then
8372             :
8373           else
8374             cat <<EOF 1>&2
8375
8376 *** Warning: the command libtool uses to detect shared libraries,
8377 *** $file_magic_cmd, produces output that libtool cannot recognize.
8378 *** The result is that libtool may fail to recognize shared libraries
8379 *** as such.  This will affect the creation of libtool libraries that
8380 *** depend on shared libraries, but programs linked with such libtool
8381 *** libraries will work regardless of this problem.  Nevertheless, you
8382 *** may want to report the problem to your system manager and/or to
8383 *** bug-libtool@gnu.org
8384
8385 EOF
8386           fi ;;
8387         esac
8388       fi
8389       break
8390     fi
8391   done
8392   IFS="$lt_save_ifs"
8393   MAGIC_CMD="$lt_save_MAGIC_CMD"
8394   ;;
8395 esac
8396 fi
8397
8398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8399 if test -n "$MAGIC_CMD"; then
8400   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8401 echo "${ECHO_T}$MAGIC_CMD" >&6
8402 else
8403   echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6
8405 fi
8406
8407 if test -z "$lt_cv_path_MAGIC_CMD"; then
8408   if test -n "$ac_tool_prefix"; then
8409     echo "$as_me:$LINENO: checking for file" >&5
8410 echo $ECHO_N "checking for file... $ECHO_C" >&6
8411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8412   echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414   case $MAGIC_CMD in
8415 [\\/*] |  ?:[\\/]*)
8416   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8417   ;;
8418 *)
8419   lt_save_MAGIC_CMD="$MAGIC_CMD"
8420   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8421   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8422   for ac_dir in $ac_dummy; do
8423     IFS="$lt_save_ifs"
8424     test -z "$ac_dir" && ac_dir=.
8425     if test -f $ac_dir/file; then
8426       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8427       if test -n "$file_magic_test_file"; then
8428         case $deplibs_check_method in
8429         "file_magic "*)
8430           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8431           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8432           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8433             $EGREP "$file_magic_regex" > /dev/null; then
8434             :
8435           else
8436             cat <<EOF 1>&2
8437
8438 *** Warning: the command libtool uses to detect shared libraries,
8439 *** $file_magic_cmd, produces output that libtool cannot recognize.
8440 *** The result is that libtool may fail to recognize shared libraries
8441 *** as such.  This will affect the creation of libtool libraries that
8442 *** depend on shared libraries, but programs linked with such libtool
8443 *** libraries will work regardless of this problem.  Nevertheless, you
8444 *** may want to report the problem to your system manager and/or to
8445 *** bug-libtool@gnu.org
8446
8447 EOF
8448           fi ;;
8449         esac
8450       fi
8451       break
8452     fi
8453   done
8454   IFS="$lt_save_ifs"
8455   MAGIC_CMD="$lt_save_MAGIC_CMD"
8456   ;;
8457 esac
8458 fi
8459
8460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8461 if test -n "$MAGIC_CMD"; then
8462   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8463 echo "${ECHO_T}$MAGIC_CMD" >&6
8464 else
8465   echo "$as_me:$LINENO: result: no" >&5
8466 echo "${ECHO_T}no" >&6
8467 fi
8468
8469   else
8470     MAGIC_CMD=:
8471   fi
8472 fi
8473
8474   fi
8475   ;;
8476 esac
8477
8478 enable_dlopen=yes
8479 enable_win32_dll=yes
8480
8481 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8482 if test "${enable_libtool_lock+set}" = set; then
8483   enableval="$enable_libtool_lock"
8484
8485 fi;
8486 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8487
8488
8489 # Check whether --with-pic or --without-pic was given.
8490 if test "${with_pic+set}" = set; then
8491   withval="$with_pic"
8492   pic_mode="$withval"
8493 else
8494   pic_mode=default
8495 fi;
8496 test -z "$pic_mode" && pic_mode=default
8497
8498 # Use C for the default configuration in the libtool script
8499 tagname=
8500 lt_save_CC="$CC"
8501 ac_ext=c
8502 ac_cpp='$CPP $CPPFLAGS'
8503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8506
8507
8508 # Source file extension for C test sources.
8509 ac_ext=c
8510
8511 # Object file extension for compiled C test sources.
8512 objext=o
8513 objext=$objext
8514
8515 # Code to be used in simple compile tests
8516 lt_simple_compile_test_code="int some_variable = 0;\n"
8517
8518 # Code to be used in simple link tests
8519 lt_simple_link_test_code='int main(){return(0);}\n'
8520
8521
8522 # If no C compiler was specified, use CC.
8523 LTCC=${LTCC-"$CC"}
8524
8525 # Allow CC to be a program name with arguments.
8526 compiler=$CC
8527
8528
8529 # save warnings/boilerplate of simple test code
8530 ac_outfile=conftest.$ac_objext
8531 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8533 _lt_compiler_boilerplate=`cat conftest.err`
8534 $rm conftest*
8535
8536 ac_outfile=conftest.$ac_objext
8537 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8539 _lt_linker_boilerplate=`cat conftest.err`
8540 $rm conftest*
8541
8542
8543 #
8544 # Check for any special shared library compilation flags.
8545 #
8546 lt_prog_cc_shlib=
8547 if test "$GCC" = no; then
8548   case $host_os in
8549   sco3.2v5*)
8550     lt_prog_cc_shlib='-belf'
8551     ;;
8552   esac
8553 fi
8554 if test -n "$lt_prog_cc_shlib"; then
8555   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8556 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8557   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8558   else
8559     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8560 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8561     lt_cv_prog_cc_can_build_shared=no
8562   fi
8563 fi
8564
8565
8566 #
8567 # Check to make sure the static flag actually works.
8568 #
8569 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8570 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8571 if test "${lt_prog_compiler_static_works+set}" = set; then
8572   echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574   lt_prog_compiler_static_works=no
8575    save_LDFLAGS="$LDFLAGS"
8576    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8577    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8578    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8579      # The compiler can only warn and ignore the option if not recognized
8580      # So say no if there are warnings
8581      if test -s conftest.err; then
8582        # Append any errors to the config.log.
8583        cat conftest.err 1>&5
8584        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8585        $SED '/^$/d' conftest.err >conftest.er2
8586        if diff conftest.exp conftest.er2 >/dev/null; then
8587          lt_prog_compiler_static_works=yes
8588        fi
8589      else
8590        lt_prog_compiler_static_works=yes
8591      fi
8592    fi
8593    $rm conftest*
8594    LDFLAGS="$save_LDFLAGS"
8595
8596 fi
8597 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8598 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8599
8600 if test x"$lt_prog_compiler_static_works" = xyes; then
8601     :
8602 else
8603     lt_prog_compiler_static=
8604 fi
8605
8606
8607
8608
8609 lt_prog_compiler_no_builtin_flag=
8610
8611 if test "$GCC" = yes; then
8612   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8613
8614
8615 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8616 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8617 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8618   echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620   lt_cv_prog_compiler_rtti_exceptions=no
8621   ac_outfile=conftest.$ac_objext
8622    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8623    lt_compiler_flag="-fno-rtti -fno-exceptions"
8624    # Insert the option either (1) after the last *FLAGS variable, or
8625    # (2) before a word containing "conftest.", or (3) at the end.
8626    # Note that $ac_compile itself does not contain backslashes and begins
8627    # with a dollar sign (not a hyphen), so the echo should work correctly.
8628    # The option is referenced via a variable to avoid confusing sed.
8629    lt_compile=`echo "$ac_compile" | $SED \
8630    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632    -e 's:$: $lt_compiler_flag:'`
8633    (eval echo "\"\$as_me:8633: $lt_compile\"" >&5)
8634    (eval "$lt_compile" 2>conftest.err)
8635    ac_status=$?
8636    cat conftest.err >&5
8637    echo "$as_me:8637: \$? = $ac_status" >&5
8638    if (exit $ac_status) && test -s "$ac_outfile"; then
8639      # The compiler can only warn and ignore the option if not recognized
8640      # So say no if there are warnings other than the usual output.
8641      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8642      $SED '/^$/d' conftest.err >conftest.er2
8643      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8644        lt_cv_prog_compiler_rtti_exceptions=yes
8645      fi
8646    fi
8647    $rm conftest*
8648
8649 fi
8650 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8651 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8652
8653 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8654     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8655 else
8656     :
8657 fi
8658
8659 fi
8660
8661 lt_prog_compiler_wl=
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_static=
8664
8665 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8666 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8667
8668   if test "$GCC" = yes; then
8669     lt_prog_compiler_wl='-Wl,'
8670     lt_prog_compiler_static='-static'
8671
8672     case $host_os in
8673       aix*)
8674       # All AIX code is PIC.
8675       if test "$host_cpu" = ia64; then
8676         # AIX 5 now supports IA64 processor
8677         lt_prog_compiler_static='-Bstatic'
8678       fi
8679       ;;
8680
8681     amigaos*)
8682       # FIXME: we need at least 68020 code to build shared libraries, but
8683       # adding the `-m68020' flag to GCC prevents building anything better,
8684       # like `-m68040'.
8685       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8686       ;;
8687
8688     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8689       # PIC is the default for these OSes.
8690       ;;
8691
8692     mingw* | pw32* | os2*)
8693       # This hack is so that the source file can tell whether it is being
8694       # built for inclusion in a dll (and should export symbols for example).
8695       lt_prog_compiler_pic='-DDLL_EXPORT'
8696       ;;
8697
8698     darwin* | rhapsody*)
8699       # PIC is the default on this platform
8700       # Common symbols not allowed in MH_DYLIB files
8701       lt_prog_compiler_pic='-fno-common'
8702       ;;
8703
8704     msdosdjgpp*)
8705       # Just because we use GCC doesn't mean we suddenly get shared libraries
8706       # on systems that don't support them.
8707       lt_prog_compiler_can_build_shared=no
8708       enable_shared=no
8709       ;;
8710
8711     sysv4*MP*)
8712       if test -d /usr/nec; then
8713         lt_prog_compiler_pic=-Kconform_pic
8714       fi
8715       ;;
8716
8717     hpux*)
8718       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8719       # not for PA HP-UX.
8720       case "$host_cpu" in
8721       hppa*64*|ia64*)
8722         # +Z the default
8723         ;;
8724       *)
8725         lt_prog_compiler_pic='-fPIC'
8726         ;;
8727       esac
8728       ;;
8729
8730     *)
8731       lt_prog_compiler_pic='-fPIC'
8732       ;;
8733     esac
8734   else
8735     # PORTME Check for flag to pass linker flags through the system compiler.
8736     case $host_os in
8737     aix*)
8738       lt_prog_compiler_wl='-Wl,'
8739       if test "$host_cpu" = ia64; then
8740         # AIX 5 now supports IA64 processor
8741         lt_prog_compiler_static='-Bstatic'
8742       else
8743         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8744       fi
8745       ;;
8746       darwin*)
8747         # PIC is the default on this platform
8748         # Common symbols not allowed in MH_DYLIB files
8749        case $cc_basename in
8750          xlc*)
8751          lt_prog_compiler_pic='-qnocommon'
8752          lt_prog_compiler_wl='-Wl,'
8753          ;;
8754        esac
8755        ;;
8756
8757     mingw* | pw32* | os2*)
8758       # This hack is so that the source file can tell whether it is being
8759       # built for inclusion in a dll (and should export symbols for example).
8760       lt_prog_compiler_pic='-DDLL_EXPORT'
8761       ;;
8762
8763     hpux9* | hpux10* | hpux11*)
8764       lt_prog_compiler_wl='-Wl,'
8765       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8766       # not for PA HP-UX.
8767       case "$host_cpu" in
8768       hppa*64*|ia64*)
8769         # +Z the default
8770         ;;
8771       *)
8772         lt_prog_compiler_pic='+Z'
8773         ;;
8774       esac
8775       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8776       lt_prog_compiler_static='${wl}-a ${wl}archive'
8777       ;;
8778
8779     irix5* | irix6* | nonstopux*)
8780       lt_prog_compiler_wl='-Wl,'
8781       # PIC (with -KPIC) is the default.
8782       lt_prog_compiler_static='-non_shared'
8783       ;;
8784
8785     newsos6)
8786       lt_prog_compiler_pic='-KPIC'
8787       lt_prog_compiler_static='-Bstatic'
8788       ;;
8789
8790     linux*)
8791       case $cc_basename in
8792       icc* | ecc*)
8793         lt_prog_compiler_wl='-Wl,'
8794         lt_prog_compiler_pic='-KPIC'
8795         lt_prog_compiler_static='-static'
8796         ;;
8797       pgcc* | pgf77* | pgf90*)
8798         # Portland Group compilers (*not* the Pentium gcc compiler,
8799         # which looks to be a dead project)
8800         lt_prog_compiler_wl='-Wl,'
8801         lt_prog_compiler_pic='-fpic'
8802         lt_prog_compiler_static='-static'
8803         ;;
8804       ccc*)
8805         lt_prog_compiler_wl='-Wl,'
8806         # All Alpha code is PIC.
8807         lt_prog_compiler_static='-non_shared'
8808         ;;
8809       esac
8810       ;;
8811
8812     osf3* | osf4* | osf5*)
8813       lt_prog_compiler_wl='-Wl,'
8814       # All OSF/1 code is PIC.
8815       lt_prog_compiler_static='-non_shared'
8816       ;;
8817
8818     sco3.2v5*)
8819       lt_prog_compiler_pic='-Kpic'
8820       lt_prog_compiler_static='-dn'
8821       ;;
8822
8823     solaris*)
8824       lt_prog_compiler_pic='-KPIC'
8825       lt_prog_compiler_static='-Bstatic'
8826       case $cc_basename in
8827       f77* | f90* | f95*)
8828         lt_prog_compiler_wl='-Qoption ld ';;
8829       *)
8830         lt_prog_compiler_wl='-Wl,';;
8831       esac
8832       ;;
8833
8834     sunos4*)
8835       lt_prog_compiler_wl='-Qoption ld '
8836       lt_prog_compiler_pic='-PIC'
8837       lt_prog_compiler_static='-Bstatic'
8838       ;;
8839
8840     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8841       lt_prog_compiler_wl='-Wl,'
8842       lt_prog_compiler_pic='-KPIC'
8843       lt_prog_compiler_static='-Bstatic'
8844       ;;
8845
8846     sysv4*MP*)
8847       if test -d /usr/nec ;then
8848         lt_prog_compiler_pic='-Kconform_pic'
8849         lt_prog_compiler_static='-Bstatic'
8850       fi
8851       ;;
8852
8853     unicos*)
8854       lt_prog_compiler_wl='-Wl,'
8855       lt_prog_compiler_can_build_shared=no
8856       ;;
8857
8858     uts4*)
8859       lt_prog_compiler_pic='-pic'
8860       lt_prog_compiler_static='-Bstatic'
8861       ;;
8862
8863     *)
8864       lt_prog_compiler_can_build_shared=no
8865       ;;
8866     esac
8867   fi
8868
8869 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8870 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8871
8872 #
8873 # Check to make sure the PIC flag actually works.
8874 #
8875 if test -n "$lt_prog_compiler_pic"; then
8876
8877 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8878 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8879 if test "${lt_prog_compiler_pic_works+set}" = set; then
8880   echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882   lt_prog_compiler_pic_works=no
8883   ac_outfile=conftest.$ac_objext
8884    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8885    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8886    # Insert the option either (1) after the last *FLAGS variable, or
8887    # (2) before a word containing "conftest.", or (3) at the end.
8888    # Note that $ac_compile itself does not contain backslashes and begins
8889    # with a dollar sign (not a hyphen), so the echo should work correctly.
8890    # The option is referenced via a variable to avoid confusing sed.
8891    lt_compile=`echo "$ac_compile" | $SED \
8892    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8894    -e 's:$: $lt_compiler_flag:'`
8895    (eval echo "\"\$as_me:8895: $lt_compile\"" >&5)
8896    (eval "$lt_compile" 2>conftest.err)
8897    ac_status=$?
8898    cat conftest.err >&5
8899    echo "$as_me:8899: \$? = $ac_status" >&5
8900    if (exit $ac_status) && test -s "$ac_outfile"; then
8901      # The compiler can only warn and ignore the option if not recognized
8902      # So say no if there are warnings other than the usual output.
8903      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8904      $SED '/^$/d' conftest.err >conftest.er2
8905      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8906        lt_prog_compiler_pic_works=yes
8907      fi
8908    fi
8909    $rm conftest*
8910
8911 fi
8912 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8913 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8914
8915 if test x"$lt_prog_compiler_pic_works" = xyes; then
8916     case $lt_prog_compiler_pic in
8917      "" | " "*) ;;
8918      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8919      esac
8920 else
8921     lt_prog_compiler_pic=
8922      lt_prog_compiler_can_build_shared=no
8923 fi
8924
8925 fi
8926 case "$host_os" in
8927   # For platforms which do not support PIC, -DPIC is meaningless:
8928   *djgpp*)
8929     lt_prog_compiler_pic=
8930     ;;
8931   *)
8932     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8933     ;;
8934 esac
8935
8936 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8937 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8938 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   lt_cv_prog_compiler_c_o=no
8942    $rm -r conftest 2>/dev/null
8943    mkdir conftest
8944    cd conftest
8945    mkdir out
8946    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8947
8948    lt_compiler_flag="-o out/conftest2.$ac_objext"
8949    # Insert the option either (1) after the last *FLAGS variable, or
8950    # (2) before a word containing "conftest.", or (3) at the end.
8951    # Note that $ac_compile itself does not contain backslashes and begins
8952    # with a dollar sign (not a hyphen), so the echo should work correctly.
8953    lt_compile=`echo "$ac_compile" | $SED \
8954    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8956    -e 's:$: $lt_compiler_flag:'`
8957    (eval echo "\"\$as_me:8957: $lt_compile\"" >&5)
8958    (eval "$lt_compile" 2>out/conftest.err)
8959    ac_status=$?
8960    cat out/conftest.err >&5
8961    echo "$as_me:8961: \$? = $ac_status" >&5
8962    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8963    then
8964      # The compiler can only warn and ignore the option if not recognized
8965      # So say no if there are warnings
8966      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8967      $SED '/^$/d' out/conftest.err >out/conftest.er2
8968      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8969        lt_cv_prog_compiler_c_o=yes
8970      fi
8971    fi
8972    chmod u+w .
8973    $rm conftest*
8974    # SGI C++ compiler will create directory out/ii_files/ for
8975    # template instantiation
8976    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8977    $rm out/* && rmdir out
8978    cd ..
8979    rmdir conftest
8980    $rm conftest*
8981
8982 fi
8983 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8984 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8985
8986
8987 hard_links="nottested"
8988 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8989   # do not overwrite the value of need_locks provided by the user
8990   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8991 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8992   hard_links=yes
8993   $rm conftest*
8994   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8995   touch conftest.a
8996   ln conftest.a conftest.b 2>&5 || hard_links=no
8997   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8998   echo "$as_me:$LINENO: result: $hard_links" >&5
8999 echo "${ECHO_T}$hard_links" >&6
9000   if test "$hard_links" = no; then
9001     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9002 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9003     need_locks=warn
9004   fi
9005 else
9006   need_locks=no
9007 fi
9008
9009 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9011
9012   runpath_var=
9013   allow_undefined_flag=
9014   enable_shared_with_static_runtimes=no
9015   archive_cmds=
9016   archive_expsym_cmds=
9017   old_archive_From_new_cmds=
9018   old_archive_from_expsyms_cmds=
9019   export_dynamic_flag_spec=
9020   whole_archive_flag_spec=
9021   thread_safe_flag_spec=
9022   hardcode_libdir_flag_spec=
9023   hardcode_libdir_flag_spec_ld=
9024   hardcode_libdir_separator=
9025   hardcode_direct=no
9026   hardcode_minus_L=no
9027   hardcode_shlibpath_var=unsupported
9028   link_all_deplibs=unknown
9029   hardcode_automatic=no
9030   module_cmds=
9031   module_expsym_cmds=
9032   always_export_symbols=no
9033   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9034   # include_expsyms should be a list of space-separated symbols to be *always*
9035   # included in the symbol list
9036   include_expsyms=
9037   # exclude_expsyms can be an extended regexp of symbols to exclude
9038   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9039   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9040   # as well as any symbol that contains `d'.
9041   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9042   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9043   # platforms (ab)use it in PIC code, but their linkers get confused if
9044   # the symbol is explicitly referenced.  Since portable code cannot
9045   # rely on this symbol name, it's probably fine to never include it in
9046   # preloaded symbol tables.
9047   extract_expsyms_cmds=
9048   # Just being paranoid about ensuring that cc_basename is set.
9049   for cc_temp in $compiler""; do
9050   case $cc_temp in
9051     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9052     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9053     \-*) ;;
9054     *) break;;
9055   esac
9056 done
9057 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9058
9059   case $host_os in
9060   cygwin* | mingw* | pw32*)
9061     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9062     # When not using gcc, we currently assume that we are using
9063     # Microsoft Visual C++.
9064     if test "$GCC" != yes; then
9065       with_gnu_ld=no
9066     fi
9067     ;;
9068   openbsd*)
9069     with_gnu_ld=no
9070     ;;
9071   esac
9072
9073   ld_shlibs=yes
9074   if test "$with_gnu_ld" = yes; then
9075     # If archive_cmds runs LD, not CC, wlarc should be empty
9076     wlarc='${wl}'
9077
9078     # Set some defaults for GNU ld with shared library support. These
9079     # are reset later if shared libraries are not supported. Putting them
9080     # here allows them to be overridden if necessary.
9081     runpath_var=LD_RUN_PATH
9082     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9083     export_dynamic_flag_spec='${wl}--export-dynamic'
9084     # ancient GNU ld didn't support --whole-archive et. al.
9085     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9086         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9087       else
9088         whole_archive_flag_spec=
9089     fi
9090     supports_anon_versioning=no
9091     case `$LD -v 2>/dev/null` in
9092       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9093       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9094       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9095       *\ 2.11.*) ;; # other 2.11 versions
9096       *) supports_anon_versioning=yes ;;
9097     esac
9098
9099     # See if GNU ld supports shared libraries.
9100     case $host_os in
9101     aix3* | aix4* | aix5*)
9102       # On AIX/PPC, the GNU linker is very broken
9103       if test "$host_cpu" != ia64; then
9104         ld_shlibs=no
9105         cat <<EOF 1>&2
9106
9107 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9108 *** to be unable to reliably create shared libraries on AIX.
9109 *** Therefore, libtool is disabling shared libraries support.  If you
9110 *** really care for shared libraries, you may want to modify your PATH
9111 *** so that a non-GNU linker is found, and then restart.
9112
9113 EOF
9114       fi
9115       ;;
9116
9117     amigaos*)
9118       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)'
9119       hardcode_libdir_flag_spec='-L$libdir'
9120       hardcode_minus_L=yes
9121
9122       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9123       # that the semantics of dynamic libraries on AmigaOS, at least up
9124       # to version 4, is to share data among multiple programs linked
9125       # with the same dynamic library.  Since this doesn't match the
9126       # behavior of shared libraries on other platforms, we can't use
9127       # them.
9128       ld_shlibs=no
9129       ;;
9130
9131     beos*)
9132       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9133         allow_undefined_flag=unsupported
9134         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9135         # support --undefined.  This deserves some investigation.  FIXME
9136         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137       else
9138         ld_shlibs=no
9139       fi
9140       ;;
9141
9142     cygwin* | mingw* | pw32*)
9143       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9144       # as there is no search path for DLLs.
9145       hardcode_libdir_flag_spec='-L$libdir'
9146       allow_undefined_flag=unsupported
9147       always_export_symbols=no
9148       enable_shared_with_static_runtimes=yes
9149       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9150
9151       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9152         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9153         # If the export-symbols file already is a .def file (1st line
9154         # is EXPORTS), use it as is; otherwise, prepend...
9155         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9156           cp $export_symbols $output_objdir/$soname.def;
9157         else
9158           echo EXPORTS > $output_objdir/$soname.def;
9159           cat $export_symbols >> $output_objdir/$soname.def;
9160         fi~
9161         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9162       else
9163         ld_shlibs=no
9164       fi
9165       ;;
9166
9167     linux*)
9168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9169         tmp_addflag=
9170         case $cc_basename,$host_cpu in
9171         pgcc*)                          # Portland Group C compiler
9172           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'
9173           tmp_addflag=' $pic_flag'
9174           ;;
9175         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9176           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'
9177           tmp_addflag=' $pic_flag -Mnomain' ;;
9178         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9179           tmp_addflag=' -i_dynamic' ;;
9180         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9181           tmp_addflag=' -i_dynamic -nofor_main' ;;
9182         ifc* | ifort*)                  # Intel Fortran compiler
9183           tmp_addflag=' -nofor_main' ;;
9184         esac
9185         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186
9187         if test $supports_anon_versioning = yes; then
9188           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9189   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9190   $echo "local: *; };" >> $output_objdir/$libname.ver~
9191           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9192         fi
9193       else
9194         ld_shlibs=no
9195       fi
9196       ;;
9197
9198     netbsd*)
9199       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9200         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9201         wlarc=
9202       else
9203         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9205       fi
9206       ;;
9207
9208     solaris* | sysv5*)
9209       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9210         ld_shlibs=no
9211         cat <<EOF 1>&2
9212
9213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9214 *** create shared libraries on Solaris systems.  Therefore, libtool
9215 *** is disabling shared libraries support.  We urge you to upgrade GNU
9216 *** binutils to release 2.9.1 or newer.  Another option is to modify
9217 *** your PATH or compiler configuration so that the native linker is
9218 *** used, and then restart.
9219
9220 EOF
9221       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9222         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9224       else
9225         ld_shlibs=no
9226       fi
9227       ;;
9228
9229     sunos4*)
9230       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9231       wlarc=
9232       hardcode_direct=yes
9233       hardcode_shlibpath_var=no
9234       ;;
9235
9236     *)
9237       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9240       else
9241         ld_shlibs=no
9242       fi
9243       ;;
9244     esac
9245
9246     if test "$ld_shlibs" = no; then
9247       runpath_var=
9248       hardcode_libdir_flag_spec=
9249       export_dynamic_flag_spec=
9250       whole_archive_flag_spec=
9251     fi
9252   else
9253     # PORTME fill in a description of your system's linker (not GNU ld)
9254     case $host_os in
9255     aix3*)
9256       allow_undefined_flag=unsupported
9257       always_export_symbols=yes
9258       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'
9259       # Note: this linker hardcodes the directories in LIBPATH if there
9260       # are no directories specified by -L.
9261       hardcode_minus_L=yes
9262       if test "$GCC" = yes && test -z "$link_static_flag"; then
9263         # Neither direct hardcoding nor static linking is supported with a
9264         # broken collect2.
9265         hardcode_direct=unsupported
9266       fi
9267       ;;
9268
9269     aix4* | aix5*)
9270       if test "$host_cpu" = ia64; then
9271         # On IA64, the linker does run time linking by default, so we don't
9272         # have to do anything special.
9273         aix_use_runtimelinking=no
9274         exp_sym_flag='-Bexport'
9275         no_entry_flag=""
9276       else
9277         # If we're using GNU nm, then we don't want the "-C" option.
9278         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9279         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9280           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'
9281         else
9282           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'
9283         fi
9284         aix_use_runtimelinking=no
9285
9286         # Test if we are trying to use run time linking or normal
9287         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9288         # need to do runtime linking.
9289         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9290           for ld_flag in $LDFLAGS; do
9291           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9292             aix_use_runtimelinking=yes
9293             break
9294           fi
9295           done
9296         esac
9297
9298         exp_sym_flag='-bexport'
9299         no_entry_flag='-bnoentry'
9300       fi
9301
9302       # When large executables or shared objects are built, AIX ld can
9303       # have problems creating the table of contents.  If linking a library
9304       # or program results in "error TOC overflow" add -mminimal-toc to
9305       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9306       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9307
9308       archive_cmds=''
9309       hardcode_direct=yes
9310       hardcode_libdir_separator=':'
9311       link_all_deplibs=yes
9312
9313       if test "$GCC" = yes; then
9314         case $host_os in aix4.[012]|aix4.[012].*)
9315         # We only want to do this on AIX 4.2 and lower, the check
9316         # below for broken collect2 doesn't work under 4.3+
9317           collect2name=`${CC} -print-prog-name=collect2`
9318           if test -f "$collect2name" && \
9319            strings "$collect2name" | grep resolve_lib_name >/dev/null
9320           then
9321           # We have reworked collect2
9322           hardcode_direct=yes
9323           else
9324           # We have old collect2
9325           hardcode_direct=unsupported
9326           # It fails to find uninstalled libraries when the uninstalled
9327           # path is not listed in the libpath.  Setting hardcode_minus_L
9328           # to unsupported forces relinking
9329           hardcode_minus_L=yes
9330           hardcode_libdir_flag_spec='-L$libdir'
9331           hardcode_libdir_separator=
9332           fi
9333         esac
9334         shared_flag='-shared'
9335         if test "$aix_use_runtimelinking" = yes; then
9336           shared_flag="$shared_flag "'${wl}-G'
9337         fi
9338       else
9339         # not using gcc
9340         if test "$host_cpu" = ia64; then
9341         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9342         # chokes on -Wl,-G. The following line is correct:
9343           shared_flag='-G'
9344         else
9345         if test "$aix_use_runtimelinking" = yes; then
9346             shared_flag='${wl}-G'
9347           else
9348             shared_flag='${wl}-bM:SRE'
9349         fi
9350         fi
9351       fi
9352
9353       # It seems that -bexpall does not export symbols beginning with
9354       # underscore (_), so it is better to generate a list of symbols to export.
9355       always_export_symbols=yes
9356       if test "$aix_use_runtimelinking" = yes; then
9357         # Warning - without using the other runtime loading flags (-brtl),
9358         # -berok will link without error, but may produce a broken library.
9359         allow_undefined_flag='-berok'
9360        # Determine the default libpath from the value encoded in an empty executable.
9361        cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h.  */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h.  */
9367
9368 int
9369 main ()
9370 {
9371
9372   ;
9373   return 0;
9374 }
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378   (eval $ac_link) 2>conftest.er1
9379   ac_status=$?
9380   grep -v '^ *+' conftest.er1 >conftest.err
9381   rm -f conftest.er1
9382   cat conftest.err >&5
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } &&
9385          { ac_try='test -z "$ac_c_werror_flag"
9386                          || test ! -s conftest.err'
9387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388   (eval $ac_try) 2>&5
9389   ac_status=$?
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); }; } &&
9392          { ac_try='test -s conftest$ac_exeext'
9393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394   (eval $ac_try) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); }; }; then
9398
9399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9400 }'`
9401 # Check for a 64-bit object if we didn't find anything.
9402 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; }
9403 }'`; fi
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 fi
9409 rm -f conftest.err conftest.$ac_objext \
9410       conftest$ac_exeext conftest.$ac_ext
9411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9412
9413        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9414         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"
9415        else
9416         if test "$host_cpu" = ia64; then
9417           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9418           allow_undefined_flag="-z nodefs"
9419           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"
9420         else
9421          # Determine the default libpath from the value encoded in an empty executable.
9422          cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h.  */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h.  */
9428
9429 int
9430 main ()
9431 {
9432
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439   (eval $ac_link) 2>conftest.er1
9440   ac_status=$?
9441   grep -v '^ *+' conftest.er1 >conftest.err
9442   rm -f conftest.er1
9443   cat conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } &&
9446          { ac_try='test -z "$ac_c_werror_flag"
9447                          || test ! -s conftest.err'
9448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449   (eval $ac_try) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; } &&
9453          { ac_try='test -s conftest$ac_exeext'
9454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455   (eval $ac_try) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); }; }; then
9459
9460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9461 }'`
9462 # Check for a 64-bit object if we didn't find anything.
9463 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; }
9464 }'`; fi
9465 else
9466   echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469 fi
9470 rm -f conftest.err conftest.$ac_objext \
9471       conftest$ac_exeext conftest.$ac_ext
9472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9473
9474          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9475           # Warning - without using the other run time loading flags,
9476           # -berok will link without error, but may produce a broken library.
9477           no_undefined_flag=' ${wl}-bernotok'
9478           allow_undefined_flag=' ${wl}-berok'
9479           # -bexpall does not export symbols beginning with underscore (_)
9480           always_export_symbols=yes
9481           # Exported symbols can be pulled into shared objects from archives
9482           whole_archive_flag_spec=' '
9483           archive_cmds_need_lc=yes
9484           # This is similar to how AIX traditionally builds it's shared libraries.
9485           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'
9486         fi
9487       fi
9488       ;;
9489
9490     amigaos*)
9491       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)'
9492       hardcode_libdir_flag_spec='-L$libdir'
9493       hardcode_minus_L=yes
9494       # see comment about different semantics on the GNU ld section
9495       ld_shlibs=no
9496       ;;
9497
9498     bsdi[45]*)
9499       export_dynamic_flag_spec=-rdynamic
9500       ;;
9501
9502     cygwin* | mingw* | pw32*)
9503       # When not using gcc, we currently assume that we are using
9504       # Microsoft Visual C++.
9505       # hardcode_libdir_flag_spec is actually meaningless, as there is
9506       # no search path for DLLs.
9507       hardcode_libdir_flag_spec=' '
9508       allow_undefined_flag=unsupported
9509       # Tell ltmain to make .lib files, not .a files.
9510       libext=lib
9511       # Tell ltmain to make .dll files, not .so files.
9512       shrext_cmds=".dll"
9513       # FIXME: Setting linknames here is a bad hack.
9514       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9515       # The linker will automatically build a .lib file if we build a DLL.
9516       old_archive_From_new_cmds='true'
9517       # FIXME: Should let the user specify the lib program.
9518       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9519       fix_srcfile_path='`cygpath -w "$srcfile"`'
9520       enable_shared_with_static_runtimes=yes
9521       ;;
9522
9523     darwin* | rhapsody*)
9524       case "$host_os" in
9525         rhapsody* | darwin1.[012])
9526          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9527          ;;
9528        *) # Darwin 1.3 on
9529          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9530            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9531          else
9532            case ${MACOSX_DEPLOYMENT_TARGET} in
9533              10.[012])
9534                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9535                ;;
9536              10.*)
9537                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9538                ;;
9539            esac
9540          fi
9541          ;;
9542       esac
9543       archive_cmds_need_lc=no
9544       hardcode_direct=no
9545       hardcode_automatic=yes
9546       hardcode_shlibpath_var=unsupported
9547       whole_archive_flag_spec=''
9548       link_all_deplibs=yes
9549     if test "$GCC" = yes ; then
9550         output_verbose_link_cmd='echo'
9551         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9552       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9553       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9554       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}'
9555       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}'
9556     else
9557       case $cc_basename in
9558         xlc*)
9559          output_verbose_link_cmd='echo'
9560          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9561          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9562           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9563          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}'
9564           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}'
9565           ;;
9566        *)
9567          ld_shlibs=no
9568           ;;
9569       esac
9570     fi
9571       ;;
9572
9573     dgux*)
9574       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575       hardcode_libdir_flag_spec='-L$libdir'
9576       hardcode_shlibpath_var=no
9577       ;;
9578
9579     freebsd1*)
9580       ld_shlibs=no
9581       ;;
9582
9583     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9584     # support.  Future versions do this automatically, but an explicit c++rt0.o
9585     # does not break anything, and helps significantly (at the cost of a little
9586     # extra space).
9587     freebsd2.2*)
9588       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9589       hardcode_libdir_flag_spec='-R$libdir'
9590       hardcode_direct=yes
9591       hardcode_shlibpath_var=no
9592       ;;
9593
9594     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9595     freebsd2*)
9596       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9597       hardcode_direct=yes
9598       hardcode_minus_L=yes
9599       hardcode_shlibpath_var=no
9600       ;;
9601
9602     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9603     freebsd* | kfreebsd*-gnu | dragonfly*)
9604       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9605       hardcode_libdir_flag_spec='-R$libdir'
9606       hardcode_direct=yes
9607       hardcode_shlibpath_var=no
9608       ;;
9609
9610     hpux9*)
9611       if test "$GCC" = yes; then
9612         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'
9613       else
9614         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'
9615       fi
9616       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9617       hardcode_libdir_separator=:
9618       hardcode_direct=yes
9619
9620       # hardcode_minus_L: Not really in the search PATH,
9621       # but as the default location of the library.
9622       hardcode_minus_L=yes
9623       export_dynamic_flag_spec='${wl}-E'
9624       ;;
9625
9626     hpux10* | hpux11*)
9627       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9628         case "$host_cpu" in
9629         hppa*64*|ia64*)
9630           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9631           ;;
9632         *)
9633           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9634           ;;
9635         esac
9636       else
9637         case "$host_cpu" in
9638         hppa*64*|ia64*)
9639           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9640           ;;
9641         *)
9642           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9643           ;;
9644         esac
9645       fi
9646       if test "$with_gnu_ld" = no; then
9647         case "$host_cpu" in
9648         hppa*64*)
9649           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9650           hardcode_libdir_flag_spec_ld='+b $libdir'
9651           hardcode_libdir_separator=:
9652           hardcode_direct=no
9653           hardcode_shlibpath_var=no
9654           ;;
9655         ia64*)
9656           hardcode_libdir_flag_spec='-L$libdir'
9657           hardcode_direct=no
9658           hardcode_shlibpath_var=no
9659
9660           # hardcode_minus_L: Not really in the search PATH,
9661           # but as the default location of the library.
9662           hardcode_minus_L=yes
9663           ;;
9664         *)
9665           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9666           hardcode_libdir_separator=:
9667           hardcode_direct=yes
9668           export_dynamic_flag_spec='${wl}-E'
9669
9670           # hardcode_minus_L: Not really in the search PATH,
9671           # but as the default location of the library.
9672           hardcode_minus_L=yes
9673           ;;
9674         esac
9675       fi
9676       ;;
9677
9678     irix5* | irix6* | nonstopux*)
9679       if test "$GCC" = yes; then
9680         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'
9681       else
9682         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'
9683         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9684       fi
9685       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686       hardcode_libdir_separator=:
9687       link_all_deplibs=yes
9688       ;;
9689
9690     netbsd*)
9691       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9692         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9693       else
9694         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9695       fi
9696       hardcode_libdir_flag_spec='-R$libdir'
9697       hardcode_direct=yes
9698       hardcode_shlibpath_var=no
9699       ;;
9700
9701     newsos6)
9702       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703       hardcode_direct=yes
9704       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9705       hardcode_libdir_separator=:
9706       hardcode_shlibpath_var=no
9707       ;;
9708
9709     openbsd*)
9710       hardcode_direct=yes
9711       hardcode_shlibpath_var=no
9712       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9713         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9714         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9715         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9716         export_dynamic_flag_spec='${wl}-E'
9717       else
9718        case $host_os in
9719          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9720            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9721            hardcode_libdir_flag_spec='-R$libdir'
9722            ;;
9723          *)
9724            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9725            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9726            ;;
9727        esac
9728       fi
9729       ;;
9730
9731     os2*)
9732       hardcode_libdir_flag_spec='-L$libdir'
9733       hardcode_minus_L=yes
9734       allow_undefined_flag=unsupported
9735       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'
9736       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9737       ;;
9738
9739     osf3*)
9740       if test "$GCC" = yes; then
9741         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9742         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'
9743       else
9744         allow_undefined_flag=' -expect_unresolved \*'
9745         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'
9746       fi
9747       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9748       hardcode_libdir_separator=:
9749       ;;
9750
9751     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9752       if test "$GCC" = yes; then
9753         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9754         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'
9755         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9756       else
9757         allow_undefined_flag=' -expect_unresolved \*'
9758         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'
9759         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9760         $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'
9761
9762         # Both c and cxx compiler support -rpath directly
9763         hardcode_libdir_flag_spec='-rpath $libdir'
9764       fi
9765       hardcode_libdir_separator=:
9766       ;;
9767
9768     sco3.2v5*)
9769       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770       hardcode_shlibpath_var=no
9771       export_dynamic_flag_spec='${wl}-Bexport'
9772       runpath_var=LD_RUN_PATH
9773       hardcode_runpath_var=yes
9774       ;;
9775
9776     solaris*)
9777       no_undefined_flag=' -z text'
9778       if test "$GCC" = yes; then
9779         wlarc='${wl}'
9780         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9781         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9782           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9783       else
9784         wlarc=''
9785         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9787         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9788       fi
9789       hardcode_libdir_flag_spec='-R$libdir'
9790       hardcode_shlibpath_var=no
9791       case $host_os in
9792       solaris2.[0-5] | solaris2.[0-5].*) ;;
9793       *)
9794         # The compiler driver will combine linker options so we
9795         # cannot just pass the convience library names through
9796         # without $wl, iff we do not link with $LD.
9797         # Luckily, gcc supports the same syntax we need for Sun Studio.
9798         # Supported since Solaris 2.6 (maybe 2.5.1?)
9799         case $wlarc in
9800         '')
9801           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9802         *)
9803           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' ;;
9804         esac ;;
9805       esac
9806       link_all_deplibs=yes
9807       ;;
9808
9809     sunos4*)
9810       if test "x$host_vendor" = xsequent; then
9811         # Use $CC to link under sequent, because it throws in some extra .o
9812         # files that make .init and .fini sections work.
9813         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9814       else
9815         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9816       fi
9817       hardcode_libdir_flag_spec='-L$libdir'
9818       hardcode_direct=yes
9819       hardcode_minus_L=yes
9820       hardcode_shlibpath_var=no
9821       ;;
9822
9823     sysv4)
9824       case $host_vendor in
9825         sni)
9826           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827           hardcode_direct=yes # is this really true???
9828         ;;
9829         siemens)
9830           ## LD is ld it makes a PLAMLIB
9831           ## CC just makes a GrossModule.
9832           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9833           reload_cmds='$CC -r -o $output$reload_objs'
9834           hardcode_direct=no
9835         ;;
9836         motorola)
9837           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9839         ;;
9840       esac
9841       runpath_var='LD_RUN_PATH'
9842       hardcode_shlibpath_var=no
9843       ;;
9844
9845     sysv4.3*)
9846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847       hardcode_shlibpath_var=no
9848       export_dynamic_flag_spec='-Bexport'
9849       ;;
9850
9851     sysv4*MP*)
9852       if test -d /usr/nec; then
9853         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854         hardcode_shlibpath_var=no
9855         runpath_var=LD_RUN_PATH
9856         hardcode_runpath_var=yes
9857         ld_shlibs=yes
9858       fi
9859       ;;
9860
9861     sysv4.2uw2*)
9862       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9863       hardcode_direct=yes
9864       hardcode_minus_L=no
9865       hardcode_shlibpath_var=no
9866       hardcode_runpath_var=yes
9867       runpath_var=LD_RUN_PATH
9868       ;;
9869
9870    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9871       no_undefined_flag='${wl}-z ${wl}text'
9872       if test "$GCC" = yes; then
9873         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9874       else
9875         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9876       fi
9877       runpath_var='LD_RUN_PATH'
9878       hardcode_shlibpath_var=no
9879       ;;
9880
9881     sysv5*)
9882       no_undefined_flag=' -z text'
9883       # $CC -shared without GNU ld will not create a library from C++
9884       # object files and a static libstdc++, better avoid it by now
9885       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9887                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9888       hardcode_libdir_flag_spec=
9889       hardcode_shlibpath_var=no
9890       runpath_var='LD_RUN_PATH'
9891       ;;
9892
9893     uts4*)
9894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895       hardcode_libdir_flag_spec='-L$libdir'
9896       hardcode_shlibpath_var=no
9897       ;;
9898
9899     *)
9900       ld_shlibs=no
9901       ;;
9902     esac
9903   fi
9904
9905 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9906 echo "${ECHO_T}$ld_shlibs" >&6
9907 test "$ld_shlibs" = no && can_build_shared=no
9908
9909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9910 if test "$GCC" = yes; then
9911   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9912 fi
9913
9914 #
9915 # Do we need to explicitly link libc?
9916 #
9917 case "x$archive_cmds_need_lc" in
9918 x|xyes)
9919   # Assume -lc should be added
9920   archive_cmds_need_lc=yes
9921
9922   if test "$enable_shared" = yes && test "$GCC" = yes; then
9923     case $archive_cmds in
9924     *'~'*)
9925       # FIXME: we may have to deal with multi-command sequences.
9926       ;;
9927     '$CC '*)
9928       # Test whether the compiler implicitly links with -lc since on some
9929       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9930       # to ld, don't add -lc before -lgcc.
9931       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9933       $rm conftest*
9934       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9935
9936       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937   (eval $ac_compile) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } 2>conftest.err; then
9941         soname=conftest
9942         lib=conftest
9943         libobjs=conftest.$ac_objext
9944         deplibs=
9945         wl=$lt_prog_compiler_wl
9946         compiler_flags=-v
9947         linker_flags=-v
9948         verstring=
9949         output_objdir=.
9950         libname=conftest
9951         lt_save_allow_undefined_flag=$allow_undefined_flag
9952         allow_undefined_flag=
9953         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9954   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); }
9958         then
9959           archive_cmds_need_lc=no
9960         else
9961           archive_cmds_need_lc=yes
9962         fi
9963         allow_undefined_flag=$lt_save_allow_undefined_flag
9964       else
9965         cat conftest.err 1>&5
9966       fi
9967       $rm conftest*
9968       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9969 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9970       ;;
9971     esac
9972   fi
9973   ;;
9974 esac
9975
9976 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9977 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9978 library_names_spec=
9979 libname_spec='lib$name'
9980 soname_spec=
9981 shrext_cmds=".so"
9982 postinstall_cmds=
9983 postuninstall_cmds=
9984 finish_cmds=
9985 finish_eval=
9986 shlibpath_var=
9987 shlibpath_overrides_runpath=unknown
9988 version_type=none
9989 dynamic_linker="$host_os ld.so"
9990 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9991 if test "$GCC" = yes; then
9992   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9993   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9994     # if the path contains ";" then we assume it to be the separator
9995     # otherwise default to the standard path separator (i.e. ":") - it is
9996     # assumed that no part of a normal pathname contains ";" but that should
9997     # okay in the real world where ";" in dirpaths is itself problematic.
9998     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9999   else
10000     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10001   fi
10002 else
10003   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10004 fi
10005 need_lib_prefix=unknown
10006 hardcode_into_libs=no
10007
10008 # when you set need_version to no, make sure it does not cause -set_version
10009 # flags to be left without arguments
10010 need_version=unknown
10011
10012 case $host_os in
10013 aix3*)
10014   version_type=linux
10015   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10016   shlibpath_var=LIBPATH
10017
10018   # AIX 3 has no versioning support, so we append a major version to the name.
10019   soname_spec='${libname}${release}${shared_ext}$major'
10020   ;;
10021
10022 aix4* | aix5*)
10023   version_type=linux
10024   need_lib_prefix=no
10025   need_version=no
10026   hardcode_into_libs=yes
10027   if test "$host_cpu" = ia64; then
10028     # AIX 5 supports IA64
10029     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10030     shlibpath_var=LD_LIBRARY_PATH
10031   else
10032     # With GCC up to 2.95.x, collect2 would create an import file
10033     # for dependence libraries.  The import file would start with
10034     # the line `#! .'.  This would cause the generated library to
10035     # depend on `.', always an invalid library.  This was fixed in
10036     # development snapshots of GCC prior to 3.0.
10037     case $host_os in
10038       aix4 | aix4.[01] | aix4.[01].*)
10039       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10040            echo ' yes '
10041            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10042         :
10043       else
10044         can_build_shared=no
10045       fi
10046       ;;
10047     esac
10048     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10049     # soname into executable. Probably we can add versioning support to
10050     # collect2, so additional links can be useful in future.
10051     if test "$aix_use_runtimelinking" = yes; then
10052       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10053       # instead of lib<name>.a to let people know that these are not
10054       # typical AIX shared libraries.
10055       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056     else
10057       # We preserve .a as extension for shared libraries through AIX4.2
10058       # and later when we are not doing run time linking.
10059       library_names_spec='${libname}${release}.a $libname.a'
10060       soname_spec='${libname}${release}${shared_ext}$major'
10061     fi
10062     shlibpath_var=LIBPATH
10063   fi
10064   ;;
10065
10066 amigaos*)
10067   library_names_spec='$libname.ixlibrary $libname.a'
10068   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10069   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'
10070   ;;
10071
10072 beos*)
10073   library_names_spec='${libname}${shared_ext}'
10074   dynamic_linker="$host_os ld.so"
10075   shlibpath_var=LIBRARY_PATH
10076   ;;
10077
10078 bsdi[45]*)
10079   version_type=linux
10080   need_version=no
10081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082   soname_spec='${libname}${release}${shared_ext}$major'
10083   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10084   shlibpath_var=LD_LIBRARY_PATH
10085   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10086   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10087   # the default ld.so.conf also contains /usr/contrib/lib and
10088   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10089   # libtool to hard-code these into programs
10090   ;;
10091
10092 cygwin* | mingw* | pw32*)
10093   version_type=windows
10094   shrext_cmds=".dll"
10095   need_version=no
10096   need_lib_prefix=no
10097
10098   case $GCC,$host_os in
10099   yes,cygwin* | yes,mingw* | yes,pw32*)
10100     library_names_spec='$libname.dll.a'
10101     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10102     postinstall_cmds='base_file=`basename \${file}`~
10103       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10104       dldir=$destdir/`dirname \$dlpath`~
10105       test -d \$dldir || mkdir -p \$dldir~
10106       $install_prog $dir/$dlname \$dldir/$dlname'
10107     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10108       dlpath=$dir/\$dldll~
10109        $rm \$dlpath'
10110     shlibpath_overrides_runpath=yes
10111
10112     case $host_os in
10113     cygwin*)
10114       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10115       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10116       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10117       ;;
10118     mingw*)
10119       # MinGW DLLs use traditional 'lib' prefix
10120       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10122       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10123         # It is most probably a Windows format PATH printed by
10124         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10125         # path with ; separators, and with drive letters. We can handle the
10126         # drive letters (cygwin fileutils understands them), so leave them,
10127         # especially as we might pass files found there to a mingw objdump,
10128         # which wouldn't understand a cygwinified path. Ahh.
10129         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10130       else
10131         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10132       fi
10133       ;;
10134     pw32*)
10135       # pw32 DLLs use 'pw' prefix rather than 'lib'
10136       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10137       ;;
10138     esac
10139     ;;
10140
10141   *)
10142     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10143     ;;
10144   esac
10145   dynamic_linker='Win32 ld.exe'
10146   # FIXME: first we should search . and the directory the executable is in
10147   shlibpath_var=PATH
10148   ;;
10149
10150 darwin* | rhapsody*)
10151   dynamic_linker="$host_os dyld"
10152   version_type=darwin
10153   need_lib_prefix=no
10154   need_version=no
10155   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10156   soname_spec='${libname}${release}${major}$shared_ext'
10157   shlibpath_overrides_runpath=yes
10158   shlibpath_var=DYLD_LIBRARY_PATH
10159   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10160   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10161   if test "$GCC" = yes; then
10162     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"`
10163   else
10164     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10165   fi
10166   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10167   ;;
10168
10169 dgux*)
10170   version_type=linux
10171   need_lib_prefix=no
10172   need_version=no
10173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10174   soname_spec='${libname}${release}${shared_ext}$major'
10175   shlibpath_var=LD_LIBRARY_PATH
10176   ;;
10177
10178 freebsd1*)
10179   dynamic_linker=no
10180   ;;
10181
10182 kfreebsd*-gnu)
10183   version_type=linux
10184   need_lib_prefix=no
10185   need_version=no
10186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10187   soname_spec='${libname}${release}${shared_ext}$major'
10188   shlibpath_var=LD_LIBRARY_PATH
10189   shlibpath_overrides_runpath=no
10190   hardcode_into_libs=yes
10191   dynamic_linker='GNU ld.so'
10192   ;;
10193
10194 freebsd* | dragonfly*)
10195   # DragonFly does not have aout.  When/if they implement a new
10196   # versioning mechanism, adjust this.
10197   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10198   version_type=freebsd-$objformat
10199   case $version_type in
10200     freebsd-elf*)
10201       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10202       need_version=no
10203       need_lib_prefix=no
10204       ;;
10205     freebsd-*)
10206       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10207       need_version=yes
10208       ;;
10209   esac
10210   shlibpath_var=LD_LIBRARY_PATH
10211   case $host_os in
10212   freebsd2*)
10213     shlibpath_overrides_runpath=yes
10214     ;;
10215   freebsd3.[01]* | freebsdelf3.[01]*)
10216     shlibpath_overrides_runpath=yes
10217     hardcode_into_libs=yes
10218     ;;
10219   *) # from 3.2 on
10220     shlibpath_overrides_runpath=no
10221     hardcode_into_libs=yes
10222     ;;
10223   esac
10224   ;;
10225
10226 gnu*)
10227   version_type=linux
10228   need_lib_prefix=no
10229   need_version=no
10230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10231   soname_spec='${libname}${release}${shared_ext}$major'
10232   shlibpath_var=LD_LIBRARY_PATH
10233   hardcode_into_libs=yes
10234   ;;
10235
10236 hpux9* | hpux10* | hpux11*)
10237   # Give a soname corresponding to the major version so that dld.sl refuses to
10238   # link against other versions.
10239   version_type=sunos
10240   need_lib_prefix=no
10241   need_version=no
10242   case "$host_cpu" in
10243   ia64*)
10244     shrext_cmds='.so'
10245     hardcode_into_libs=yes
10246     dynamic_linker="$host_os dld.so"
10247     shlibpath_var=LD_LIBRARY_PATH
10248     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250     soname_spec='${libname}${release}${shared_ext}$major'
10251     if test "X$HPUX_IA64_MODE" = X32; then
10252       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10253     else
10254       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10255     fi
10256     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10257     ;;
10258    hppa*64*)
10259      shrext_cmds='.sl'
10260      hardcode_into_libs=yes
10261      dynamic_linker="$host_os dld.sl"
10262      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10263      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10264      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265      soname_spec='${libname}${release}${shared_ext}$major'
10266      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10267      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10268      ;;
10269    *)
10270     shrext_cmds='.sl'
10271     dynamic_linker="$host_os dld.sl"
10272     shlibpath_var=SHLIB_PATH
10273     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275     soname_spec='${libname}${release}${shared_ext}$major'
10276     ;;
10277   esac
10278   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10279   postinstall_cmds='chmod 555 $lib'
10280   ;;
10281
10282 irix5* | irix6* | nonstopux*)
10283   case $host_os in
10284     nonstopux*) version_type=nonstopux ;;
10285     *)
10286         if test "$lt_cv_prog_gnu_ld" = yes; then
10287                 version_type=linux
10288         else
10289                 version_type=irix
10290         fi ;;
10291   esac
10292   need_lib_prefix=no
10293   need_version=no
10294   soname_spec='${libname}${release}${shared_ext}$major'
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10296   case $host_os in
10297   irix5* | nonstopux*)
10298     libsuff= shlibsuff=
10299     ;;
10300   *)
10301     case $LD in # libtool.m4 will add one of these switches to LD
10302     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10303       libsuff= shlibsuff= libmagic=32-bit;;
10304     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10305       libsuff=32 shlibsuff=N32 libmagic=N32;;
10306     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10307       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10308     *) libsuff= shlibsuff= libmagic=never-match;;
10309     esac
10310     ;;
10311   esac
10312   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10313   shlibpath_overrides_runpath=no
10314   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10315   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10316   hardcode_into_libs=yes
10317   ;;
10318
10319 # No shared lib support for Linux oldld, aout, or coff.
10320 linux*oldld* | linux*aout* | linux*coff*)
10321   dynamic_linker=no
10322   ;;
10323
10324 # This must be Linux ELF.
10325 linux*)
10326   version_type=linux
10327   need_lib_prefix=no
10328   need_version=no
10329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330   soname_spec='${libname}${release}${shared_ext}$major'
10331   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10332   shlibpath_var=LD_LIBRARY_PATH
10333   shlibpath_overrides_runpath=no
10334   # This implies no fast_install, which is unacceptable.
10335   # Some rework will be needed to allow for fast_install
10336   # before this can be enabled.
10337   hardcode_into_libs=yes
10338
10339   # Append ld.so.conf contents to the search path
10340   if test -f /etc/ld.so.conf; then
10341     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' ' '`
10342     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10343   fi
10344
10345   # We used to test for /lib/ld.so.1 and disable shared libraries on
10346   # powerpc, because MkLinux only supported shared libraries with the
10347   # GNU dynamic linker.  Since this was broken with cross compilers,
10348   # most powerpc-linux boxes support dynamic linking these days and
10349   # people can always --disable-shared, the test was removed, and we
10350   # assume the GNU/Linux dynamic linker is in use.
10351   dynamic_linker='GNU/Linux ld.so'
10352   ;;
10353
10354 knetbsd*-gnu)
10355   version_type=linux
10356   need_lib_prefix=no
10357   need_version=no
10358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359   soname_spec='${libname}${release}${shared_ext}$major'
10360   shlibpath_var=LD_LIBRARY_PATH
10361   shlibpath_overrides_runpath=no
10362   hardcode_into_libs=yes
10363   dynamic_linker='GNU ld.so'
10364   ;;
10365
10366 netbsd*)
10367   version_type=sunos
10368   need_lib_prefix=no
10369   need_version=no
10370   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10372     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10373     dynamic_linker='NetBSD (a.out) ld.so'
10374   else
10375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10376     soname_spec='${libname}${release}${shared_ext}$major'
10377     dynamic_linker='NetBSD ld.elf_so'
10378   fi
10379   shlibpath_var=LD_LIBRARY_PATH
10380   shlibpath_overrides_runpath=yes
10381   hardcode_into_libs=yes
10382   ;;
10383
10384 newsos6)
10385   version_type=linux
10386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387   shlibpath_var=LD_LIBRARY_PATH
10388   shlibpath_overrides_runpath=yes
10389   ;;
10390
10391 nto-qnx*)
10392   version_type=linux
10393   need_lib_prefix=no
10394   need_version=no
10395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396   soname_spec='${libname}${release}${shared_ext}$major'
10397   shlibpath_var=LD_LIBRARY_PATH
10398   shlibpath_overrides_runpath=yes
10399   ;;
10400
10401 openbsd*)
10402   version_type=sunos
10403   need_lib_prefix=no
10404   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10405   case $host_os in
10406     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10407     *)                         need_version=no  ;;
10408   esac
10409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10410   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10411   shlibpath_var=LD_LIBRARY_PATH
10412   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10413     case $host_os in
10414       openbsd2.[89] | openbsd2.[89].*)
10415         shlibpath_overrides_runpath=no
10416         ;;
10417       *)
10418         shlibpath_overrides_runpath=yes
10419         ;;
10420       esac
10421   else
10422     shlibpath_overrides_runpath=yes
10423   fi
10424   ;;
10425
10426 os2*)
10427   libname_spec='$name'
10428   shrext_cmds=".dll"
10429   need_lib_prefix=no
10430   library_names_spec='$libname${shared_ext} $libname.a'
10431   dynamic_linker='OS/2 ld.exe'
10432   shlibpath_var=LIBPATH
10433   ;;
10434
10435 osf3* | osf4* | osf5*)
10436   version_type=osf
10437   need_lib_prefix=no
10438   need_version=no
10439   soname_spec='${libname}${release}${shared_ext}$major'
10440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441   shlibpath_var=LD_LIBRARY_PATH
10442   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10443   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10444   ;;
10445
10446 sco3.2v5*)
10447   version_type=osf
10448   soname_spec='${libname}${release}${shared_ext}$major'
10449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450   shlibpath_var=LD_LIBRARY_PATH
10451   ;;
10452
10453 solaris*)
10454   version_type=linux
10455   need_lib_prefix=no
10456   need_version=no
10457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458   soname_spec='${libname}${release}${shared_ext}$major'
10459   shlibpath_var=LD_LIBRARY_PATH
10460   shlibpath_overrides_runpath=yes
10461   hardcode_into_libs=yes
10462   # ldd complains unless libraries are executable
10463   postinstall_cmds='chmod +x $lib'
10464   ;;
10465
10466 sunos4*)
10467   version_type=sunos
10468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10469   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10470   shlibpath_var=LD_LIBRARY_PATH
10471   shlibpath_overrides_runpath=yes
10472   if test "$with_gnu_ld" = yes; then
10473     need_lib_prefix=no
10474   fi
10475   need_version=yes
10476   ;;
10477
10478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10479   version_type=linux
10480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481   soname_spec='${libname}${release}${shared_ext}$major'
10482   shlibpath_var=LD_LIBRARY_PATH
10483   case $host_vendor in
10484     sni)
10485       shlibpath_overrides_runpath=no
10486       need_lib_prefix=no
10487       export_dynamic_flag_spec='${wl}-Blargedynsym'
10488       runpath_var=LD_RUN_PATH
10489       ;;
10490     siemens)
10491       need_lib_prefix=no
10492       ;;
10493     motorola)
10494       need_lib_prefix=no
10495       need_version=no
10496       shlibpath_overrides_runpath=no
10497       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10498       ;;
10499   esac
10500   ;;
10501
10502 sysv4*MP*)
10503   if test -d /usr/nec ;then
10504     version_type=linux
10505     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10506     soname_spec='$libname${shared_ext}.$major'
10507     shlibpath_var=LD_LIBRARY_PATH
10508   fi
10509   ;;
10510
10511 uts4*)
10512   version_type=linux
10513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514   soname_spec='${libname}${release}${shared_ext}$major'
10515   shlibpath_var=LD_LIBRARY_PATH
10516   ;;
10517
10518 *)
10519   dynamic_linker=no
10520   ;;
10521 esac
10522 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10523 echo "${ECHO_T}$dynamic_linker" >&6
10524 test "$dynamic_linker" = no && can_build_shared=no
10525
10526 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10527 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10528 hardcode_action=
10529 if test -n "$hardcode_libdir_flag_spec" || \
10530    test -n "$runpath_var" || \
10531    test "X$hardcode_automatic" = "Xyes" ; then
10532
10533   # We can hardcode non-existant directories.
10534   if test "$hardcode_direct" != no &&
10535      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10536      # have to relink, otherwise we might link with an installed library
10537      # when we should be linking with a yet-to-be-installed one
10538      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10539      test "$hardcode_minus_L" != no; then
10540     # Linking always hardcodes the temporary library directory.
10541     hardcode_action=relink
10542   else
10543     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10544     hardcode_action=immediate
10545   fi
10546 else
10547   # We cannot hardcode anything, or else we can only hardcode existing
10548   # directories.
10549   hardcode_action=unsupported
10550 fi
10551 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10552 echo "${ECHO_T}$hardcode_action" >&6
10553
10554 if test "$hardcode_action" = relink; then
10555   # Fast installation is not supported
10556   enable_fast_install=no
10557 elif test "$shlibpath_overrides_runpath" = yes ||
10558      test "$enable_shared" = no; then
10559   # Fast installation is not necessary
10560   enable_fast_install=needless
10561 fi
10562
10563 striplib=
10564 old_striplib=
10565 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10566 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10567 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10568   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10569   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10570   echo "$as_me:$LINENO: result: yes" >&5
10571 echo "${ECHO_T}yes" >&6
10572 else
10573 # FIXME - insert some real tests, host_os isn't really good enough
10574   case $host_os in
10575    darwin*)
10576        if test -n "$STRIP" ; then
10577          striplib="$STRIP -x"
10578          echo "$as_me:$LINENO: result: yes" >&5
10579 echo "${ECHO_T}yes" >&6
10580        else
10581   echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10583 fi
10584        ;;
10585    *)
10586   echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6
10588     ;;
10589   esac
10590 fi
10591
10592 if test "x$enable_dlopen" != xyes; then
10593   enable_dlopen=unknown
10594   enable_dlopen_self=unknown
10595   enable_dlopen_self_static=unknown
10596 else
10597   lt_cv_dlopen=no
10598   lt_cv_dlopen_libs=
10599
10600   case $host_os in
10601   beos*)
10602     lt_cv_dlopen="load_add_on"
10603     lt_cv_dlopen_libs=
10604     lt_cv_dlopen_self=yes
10605     ;;
10606
10607   mingw* | pw32*)
10608     lt_cv_dlopen="LoadLibrary"
10609     lt_cv_dlopen_libs=
10610    ;;
10611
10612   cygwin*)
10613     lt_cv_dlopen="dlopen"
10614     lt_cv_dlopen_libs=
10615    ;;
10616
10617   darwin*)
10618   # if libdl is installed we need to link against it
10619     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624   ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-ldl  $LIBS"
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h.  */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h.  */
10632
10633 /* Override any gcc2 internal prototype to avoid an error.  */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 /* We use char because int might match the return type of a gcc2
10638    builtin and then its argument prototype would still apply.  */
10639 char dlopen ();
10640 int
10641 main ()
10642 {
10643 dlopen ();
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650   (eval $ac_link) 2>conftest.er1
10651   ac_status=$?
10652   grep -v '^ *+' conftest.er1 >conftest.err
10653   rm -f conftest.er1
10654   cat conftest.err >&5
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); } &&
10657          { ac_try='test -z "$ac_c_werror_flag"
10658                          || test ! -s conftest.err'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; } &&
10664          { ac_try='test -s conftest$ac_exeext'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; }; then
10670   ac_cv_lib_dl_dlopen=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675 ac_cv_lib_dl_dlopen=no
10676 fi
10677 rm -f conftest.err conftest.$ac_objext \
10678       conftest$ac_exeext conftest.$ac_ext
10679 LIBS=$ac_check_lib_save_LIBS
10680 fi
10681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10683 if test $ac_cv_lib_dl_dlopen = yes; then
10684   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10685 else
10686
10687     lt_cv_dlopen="dyld"
10688     lt_cv_dlopen_libs=
10689     lt_cv_dlopen_self=yes
10690
10691 fi
10692
10693    ;;
10694
10695   *)
10696     echo "$as_me:$LINENO: checking for shl_load" >&5
10697 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10698 if test "${ac_cv_func_shl_load+set}" = set; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10709 #define shl_load innocuous_shl_load
10710
10711 /* System header to define __stub macros and hopefully few prototypes,
10712     which can conflict with char shl_load (); below.
10713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10714     <limits.h> exists even on freestanding compilers.  */
10715
10716 #ifdef __STDC__
10717 # include <limits.h>
10718 #else
10719 # include <assert.h>
10720 #endif
10721
10722 #undef shl_load
10723
10724 /* Override any gcc2 internal prototype to avoid an error.  */
10725 #ifdef __cplusplus
10726 extern "C"
10727 {
10728 #endif
10729 /* We use char because int might match the return type of a gcc2
10730    builtin and then its argument prototype would still apply.  */
10731 char shl_load ();
10732 /* The GNU C library defines this for functions which it implements
10733     to always fail with ENOSYS.  Some functions are actually named
10734     something starting with __ and the normal name is an alias.  */
10735 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10736 choke me
10737 #else
10738 char (*f) () = shl_load;
10739 #endif
10740 #ifdef __cplusplus
10741 }
10742 #endif
10743
10744 int
10745 main ()
10746 {
10747 return f != shl_load;
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10754   (eval $ac_link) 2>conftest.er1
10755   ac_status=$?
10756   grep -v '^ *+' conftest.er1 >conftest.err
10757   rm -f conftest.er1
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } &&
10761          { ac_try='test -z "$ac_c_werror_flag"
10762                          || test ! -s conftest.err'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; } &&
10768          { ac_try='test -s conftest$ac_exeext'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; }; then
10774   ac_cv_func_shl_load=yes
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ac_cv_func_shl_load=no
10780 fi
10781 rm -f conftest.err conftest.$ac_objext \
10782       conftest$ac_exeext conftest.$ac_ext
10783 fi
10784 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10785 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10786 if test $ac_cv_func_shl_load = yes; then
10787   lt_cv_dlopen="shl_load"
10788 else
10789   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10792   echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794   ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-ldld  $LIBS"
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h.  */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h.  */
10802
10803 /* Override any gcc2 internal prototype to avoid an error.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 /* We use char because int might match the return type of a gcc2
10808    builtin and then its argument prototype would still apply.  */
10809 char shl_load ();
10810 int
10811 main ()
10812 {
10813 shl_load ();
10814   ;
10815   return 0;
10816 }
10817 _ACEOF
10818 rm -f conftest.$ac_objext conftest$ac_exeext
10819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10820   (eval $ac_link) 2>conftest.er1
10821   ac_status=$?
10822   grep -v '^ *+' conftest.er1 >conftest.err
10823   rm -f conftest.er1
10824   cat conftest.err >&5
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } &&
10827          { ac_try='test -z "$ac_c_werror_flag"
10828                          || test ! -s conftest.err'
10829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830   (eval $ac_try) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }; } &&
10834          { ac_try='test -s conftest$ac_exeext'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; }; then
10840   ac_cv_lib_dld_shl_load=yes
10841 else
10842   echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10844
10845 ac_cv_lib_dld_shl_load=no
10846 fi
10847 rm -f conftest.err conftest.$ac_objext \
10848       conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10850 fi
10851 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10852 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10853 if test $ac_cv_lib_dld_shl_load = yes; then
10854   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10855 else
10856   echo "$as_me:$LINENO: checking for dlopen" >&5
10857 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10858 if test "${ac_cv_func_dlopen+set}" = set; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861   cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h.  */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h.  */
10867 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10869 #define dlopen innocuous_dlopen
10870
10871 /* System header to define __stub macros and hopefully few prototypes,
10872     which can conflict with char dlopen (); below.
10873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10874     <limits.h> exists even on freestanding compilers.  */
10875
10876 #ifdef __STDC__
10877 # include <limits.h>
10878 #else
10879 # include <assert.h>
10880 #endif
10881
10882 #undef dlopen
10883
10884 /* Override any gcc2 internal prototype to avoid an error.  */
10885 #ifdef __cplusplus
10886 extern "C"
10887 {
10888 #endif
10889 /* We use char because int might match the return type of a gcc2
10890    builtin and then its argument prototype would still apply.  */
10891 char dlopen ();
10892 /* The GNU C library defines this for functions which it implements
10893     to always fail with ENOSYS.  Some functions are actually named
10894     something starting with __ and the normal name is an alias.  */
10895 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10896 choke me
10897 #else
10898 char (*f) () = dlopen;
10899 #endif
10900 #ifdef __cplusplus
10901 }
10902 #endif
10903
10904 int
10905 main ()
10906 {
10907 return f != dlopen;
10908   ;
10909   return 0;
10910 }
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914   (eval $ac_link) 2>conftest.er1
10915   ac_status=$?
10916   grep -v '^ *+' conftest.er1 >conftest.err
10917   rm -f conftest.er1
10918   cat conftest.err >&5
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); } &&
10921          { ac_try='test -z "$ac_c_werror_flag"
10922                          || test ! -s conftest.err'
10923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924   (eval $ac_try) 2>&5
10925   ac_status=$?
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); }; } &&
10928          { ac_try='test -s conftest$ac_exeext'
10929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930   (eval $ac_try) 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); }; }; then
10934   ac_cv_func_dlopen=yes
10935 else
10936   echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10938
10939 ac_cv_func_dlopen=no
10940 fi
10941 rm -f conftest.err conftest.$ac_objext \
10942       conftest$ac_exeext conftest.$ac_ext
10943 fi
10944 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10945 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10946 if test $ac_cv_func_dlopen = yes; then
10947   lt_cv_dlopen="dlopen"
10948 else
10949   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10952   echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954   ac_check_lib_save_LIBS=$LIBS
10955 LIBS="-ldl  $LIBS"
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962
10963 /* Override any gcc2 internal prototype to avoid an error.  */
10964 #ifdef __cplusplus
10965 extern "C"
10966 #endif
10967 /* We use char because int might match the return type of a gcc2
10968    builtin and then its argument prototype would still apply.  */
10969 char dlopen ();
10970 int
10971 main ()
10972 {
10973 dlopen ();
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980   (eval $ac_link) 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } &&
10987          { ac_try='test -z "$ac_c_werror_flag"
10988                          || test ! -s conftest.err'
10989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990   (eval $ac_try) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; } &&
10994          { ac_try='test -s conftest$ac_exeext'
10995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996   (eval $ac_try) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }; }; then
11000   ac_cv_lib_dl_dlopen=yes
11001 else
11002   echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11004
11005 ac_cv_lib_dl_dlopen=no
11006 fi
11007 rm -f conftest.err conftest.$ac_objext \
11008       conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11010 fi
11011 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11012 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11013 if test $ac_cv_lib_dl_dlopen = yes; then
11014   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11015 else
11016   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11017 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11019   echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021   ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-lsvld  $LIBS"
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029
11030 /* Override any gcc2 internal prototype to avoid an error.  */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 /* We use char because int might match the return type of a gcc2
11035    builtin and then its argument prototype would still apply.  */
11036 char dlopen ();
11037 int
11038 main ()
11039 {
11040 dlopen ();
11041   ;
11042   return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047   (eval $ac_link) 2>conftest.er1
11048   ac_status=$?
11049   grep -v '^ *+' conftest.er1 >conftest.err
11050   rm -f conftest.er1
11051   cat conftest.err >&5
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); } &&
11054          { ac_try='test -z "$ac_c_werror_flag"
11055                          || test ! -s conftest.err'
11056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057   (eval $ac_try) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }; } &&
11061          { ac_try='test -s conftest$ac_exeext'
11062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063   (eval $ac_try) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); }; }; then
11067   ac_cv_lib_svld_dlopen=yes
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 ac_cv_lib_svld_dlopen=no
11073 fi
11074 rm -f conftest.err conftest.$ac_objext \
11075       conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11077 fi
11078 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11079 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11080 if test $ac_cv_lib_svld_dlopen = yes; then
11081   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11082 else
11083   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11084 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11085 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088   ac_check_lib_save_LIBS=$LIBS
11089 LIBS="-ldld  $LIBS"
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h.  */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h.  */
11096
11097 /* Override any gcc2 internal prototype to avoid an error.  */
11098 #ifdef __cplusplus
11099 extern "C"
11100 #endif
11101 /* We use char because int might match the return type of a gcc2
11102    builtin and then its argument prototype would still apply.  */
11103 char dld_link ();
11104 int
11105 main ()
11106 {
11107 dld_link ();
11108   ;
11109   return 0;
11110 }
11111 _ACEOF
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114   (eval $ac_link) 2>conftest.er1
11115   ac_status=$?
11116   grep -v '^ *+' conftest.er1 >conftest.err
11117   rm -f conftest.er1
11118   cat conftest.err >&5
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } &&
11121          { ac_try='test -z "$ac_c_werror_flag"
11122                          || test ! -s conftest.err'
11123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124   (eval $ac_try) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; } &&
11128          { ac_try='test -s conftest$ac_exeext'
11129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130   (eval $ac_try) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }; }; then
11134   ac_cv_lib_dld_dld_link=yes
11135 else
11136   echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11138
11139 ac_cv_lib_dld_dld_link=no
11140 fi
11141 rm -f conftest.err conftest.$ac_objext \
11142       conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11144 fi
11145 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11146 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11147 if test $ac_cv_lib_dld_dld_link = yes; then
11148   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11149 fi
11150
11151
11152 fi
11153
11154
11155 fi
11156
11157
11158 fi
11159
11160
11161 fi
11162
11163
11164 fi
11165
11166     ;;
11167   esac
11168
11169   if test "x$lt_cv_dlopen" != xno; then
11170     enable_dlopen=yes
11171   else
11172     enable_dlopen=no
11173   fi
11174
11175   case $lt_cv_dlopen in
11176   dlopen)
11177     save_CPPFLAGS="$CPPFLAGS"
11178     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11179
11180     save_LDFLAGS="$LDFLAGS"
11181     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11182
11183     save_LIBS="$LIBS"
11184     LIBS="$lt_cv_dlopen_libs $LIBS"
11185
11186     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11187 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11188 if test "${lt_cv_dlopen_self+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191           if test "$cross_compiling" = yes; then :
11192   lt_cv_dlopen_self=cross
11193 else
11194   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11195   lt_status=$lt_dlunknown
11196   cat > conftest.$ac_ext <<EOF
11197 #line 11197 "configure"
11198 #include "confdefs.h"
11199
11200 #if HAVE_DLFCN_H
11201 #include <dlfcn.h>
11202 #endif
11203
11204 #include <stdio.h>
11205
11206 #ifdef RTLD_GLOBAL
11207 #  define LT_DLGLOBAL           RTLD_GLOBAL
11208 #else
11209 #  ifdef DL_GLOBAL
11210 #    define LT_DLGLOBAL         DL_GLOBAL
11211 #  else
11212 #    define LT_DLGLOBAL         0
11213 #  endif
11214 #endif
11215
11216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11217    find out it does not work in some platform. */
11218 #ifndef LT_DLLAZY_OR_NOW
11219 #  ifdef RTLD_LAZY
11220 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11221 #  else
11222 #    ifdef DL_LAZY
11223 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11224 #    else
11225 #      ifdef RTLD_NOW
11226 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11227 #      else
11228 #        ifdef DL_NOW
11229 #          define LT_DLLAZY_OR_NOW      DL_NOW
11230 #        else
11231 #          define LT_DLLAZY_OR_NOW      0
11232 #        endif
11233 #      endif
11234 #    endif
11235 #  endif
11236 #endif
11237
11238 #ifdef __cplusplus
11239 extern "C" void exit (int);
11240 #endif
11241
11242 void fnord() { int i=42;}
11243 int main ()
11244 {
11245   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11246   int status = $lt_dlunknown;
11247
11248   if (self)
11249     {
11250       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11251       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11252       /* dlclose (self); */
11253     }
11254
11255     exit (status);
11256 }
11257 EOF
11258   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259   (eval $ac_link) 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11263     (./conftest; exit; ) 2>/dev/null
11264     lt_status=$?
11265     case x$lt_status in
11266       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11267       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11268       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11269     esac
11270   else :
11271     # compilation failed
11272     lt_cv_dlopen_self=no
11273   fi
11274 fi
11275 rm -fr conftest*
11276
11277
11278 fi
11279 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11280 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11281
11282     if test "x$lt_cv_dlopen_self" = xyes; then
11283       LDFLAGS="$LDFLAGS $link_static_flag"
11284       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11285 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11286 if test "${lt_cv_dlopen_self_static+set}" = set; then
11287   echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289           if test "$cross_compiling" = yes; then :
11290   lt_cv_dlopen_self_static=cross
11291 else
11292   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11293   lt_status=$lt_dlunknown
11294   cat > conftest.$ac_ext <<EOF
11295 #line 11295 "configure"
11296 #include "confdefs.h"
11297
11298 #if HAVE_DLFCN_H
11299 #include <dlfcn.h>
11300 #endif
11301
11302 #include <stdio.h>
11303
11304 #ifdef RTLD_GLOBAL
11305 #  define LT_DLGLOBAL           RTLD_GLOBAL
11306 #else
11307 #  ifdef DL_GLOBAL
11308 #    define LT_DLGLOBAL         DL_GLOBAL
11309 #  else
11310 #    define LT_DLGLOBAL         0
11311 #  endif
11312 #endif
11313
11314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11315    find out it does not work in some platform. */
11316 #ifndef LT_DLLAZY_OR_NOW
11317 #  ifdef RTLD_LAZY
11318 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11319 #  else
11320 #    ifdef DL_LAZY
11321 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11322 #    else
11323 #      ifdef RTLD_NOW
11324 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11325 #      else
11326 #        ifdef DL_NOW
11327 #          define LT_DLLAZY_OR_NOW      DL_NOW
11328 #        else
11329 #          define LT_DLLAZY_OR_NOW      0
11330 #        endif
11331 #      endif
11332 #    endif
11333 #  endif
11334 #endif
11335
11336 #ifdef __cplusplus
11337 extern "C" void exit (int);
11338 #endif
11339
11340 void fnord() { int i=42;}
11341 int main ()
11342 {
11343   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11344   int status = $lt_dlunknown;
11345
11346   if (self)
11347     {
11348       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11349       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11350       /* dlclose (self); */
11351     }
11352
11353     exit (status);
11354 }
11355 EOF
11356   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11357   (eval $ac_link) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11361     (./conftest; exit; ) 2>/dev/null
11362     lt_status=$?
11363     case x$lt_status in
11364       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11365       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11366       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11367     esac
11368   else :
11369     # compilation failed
11370     lt_cv_dlopen_self_static=no
11371   fi
11372 fi
11373 rm -fr conftest*
11374
11375
11376 fi
11377 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11378 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11379     fi
11380
11381     CPPFLAGS="$save_CPPFLAGS"
11382     LDFLAGS="$save_LDFLAGS"
11383     LIBS="$save_LIBS"
11384     ;;
11385   esac
11386
11387   case $lt_cv_dlopen_self in
11388   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11389   *) enable_dlopen_self=unknown ;;
11390   esac
11391
11392   case $lt_cv_dlopen_self_static in
11393   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11394   *) enable_dlopen_self_static=unknown ;;
11395   esac
11396 fi
11397
11398
11399 # Report which librarie types wil actually be built
11400 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11401 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11402 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11403 echo "${ECHO_T}$can_build_shared" >&6
11404
11405 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11406 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11407 test "$can_build_shared" = "no" && enable_shared=no
11408
11409 # On AIX, shared libraries and static libraries use the same namespace, and
11410 # are all built from PIC.
11411 case "$host_os" in
11412 aix3*)
11413   test "$enable_shared" = yes && enable_static=no
11414   if test -n "$RANLIB"; then
11415     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11416     postinstall_cmds='$RANLIB $lib'
11417   fi
11418   ;;
11419
11420 aix4* | aix5*)
11421   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11422     test "$enable_shared" = yes && enable_static=no
11423   fi
11424     ;;
11425 esac
11426 echo "$as_me:$LINENO: result: $enable_shared" >&5
11427 echo "${ECHO_T}$enable_shared" >&6
11428
11429 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11430 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11431 # Make sure either enable_shared or enable_static is yes.
11432 test "$enable_shared" = yes || enable_static=yes
11433 echo "$as_me:$LINENO: result: $enable_static" >&5
11434 echo "${ECHO_T}$enable_static" >&6
11435
11436 # The else clause should only fire when bootstrapping the
11437 # libtool distribution, otherwise you forgot to ship ltmain.sh
11438 # with your package, and you will get complaints that there are
11439 # no rules to generate ltmain.sh.
11440 if test -f "$ltmain"; then
11441   # See if we are running on zsh, and set the options which allow our commands through
11442   # without removal of \ escapes.
11443   if test -n "${ZSH_VERSION+set}" ; then
11444     setopt NO_GLOB_SUBST
11445   fi
11446   # Now quote all the things that may contain metacharacters while being
11447   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11448   # variables and quote the copies for generation of the libtool script.
11449   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11450     SED SHELL STRIP \
11451     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11452     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11453     deplibs_check_method reload_flag reload_cmds need_locks \
11454     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11455     lt_cv_sys_global_symbol_to_c_name_address \
11456     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11457     old_postinstall_cmds old_postuninstall_cmds \
11458     compiler \
11459     CC \
11460     LD \
11461     lt_prog_compiler_wl \
11462     lt_prog_compiler_pic \
11463     lt_prog_compiler_static \
11464     lt_prog_compiler_no_builtin_flag \
11465     export_dynamic_flag_spec \
11466     thread_safe_flag_spec \
11467     whole_archive_flag_spec \
11468     enable_shared_with_static_runtimes \
11469     old_archive_cmds \
11470     old_archive_from_new_cmds \
11471     predep_objects \
11472     postdep_objects \
11473     predeps \
11474     postdeps \
11475     compiler_lib_search_path \
11476     archive_cmds \
11477     archive_expsym_cmds \
11478     postinstall_cmds \
11479     postuninstall_cmds \
11480     old_archive_from_expsyms_cmds \
11481     allow_undefined_flag \
11482     no_undefined_flag \
11483     export_symbols_cmds \
11484     hardcode_libdir_flag_spec \
11485     hardcode_libdir_flag_spec_ld \
11486     hardcode_libdir_separator \
11487     hardcode_automatic \
11488     module_cmds \
11489     module_expsym_cmds \
11490     lt_cv_prog_compiler_c_o \
11491     exclude_expsyms \
11492     include_expsyms; do
11493
11494     case $var in
11495     old_archive_cmds | \
11496     old_archive_from_new_cmds | \
11497     archive_cmds | \
11498     archive_expsym_cmds | \
11499     module_cmds | \
11500     module_expsym_cmds | \
11501     old_archive_from_expsyms_cmds | \
11502     export_symbols_cmds | \
11503     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11504     postinstall_cmds | postuninstall_cmds | \
11505     old_postinstall_cmds | old_postuninstall_cmds | \
11506     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11507       # Double-quote double-evaled strings.
11508       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11509       ;;
11510     *)
11511       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11512       ;;
11513     esac
11514   done
11515
11516   case $lt_echo in
11517   *'\$0 --fallback-echo"')
11518     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11519     ;;
11520   esac
11521
11522 cfgfile="${ofile}T"
11523   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11524   $rm -f "$cfgfile"
11525   { echo "$as_me:$LINENO: creating $ofile" >&5
11526 echo "$as_me: creating $ofile" >&6;}
11527
11528   cat <<__EOF__ >> "$cfgfile"
11529 #! $SHELL
11530
11531 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11532 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11533 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11534 #
11535 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11536 # Free Software Foundation, Inc.
11537 #
11538 # This file is part of GNU Libtool:
11539 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11540 #
11541 # This program is free software; you can redistribute it and/or modify
11542 # it under the terms of the GNU General Public License as published by
11543 # the Free Software Foundation; either version 2 of the License, or
11544 # (at your option) any later version.
11545 #
11546 # This program is distributed in the hope that it will be useful, but
11547 # WITHOUT ANY WARRANTY; without even the implied warranty of
11548 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11549 # General Public License for more details.
11550 #
11551 # You should have received a copy of the GNU General Public License
11552 # along with this program; if not, write to the Free Software
11553 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11554 #
11555 # As a special exception to the GNU General Public License, if you
11556 # distribute this file as part of a program that contains a
11557 # configuration script generated by Autoconf, you may include it under
11558 # the same distribution terms that you use for the rest of that program.
11559
11560 # A sed program that does not truncate output.
11561 SED=$lt_SED
11562
11563 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11564 Xsed="$SED -e 1s/^X//"
11565
11566 # The HP-UX ksh and POSIX shell print the target directory to stdout
11567 # if CDPATH is set.
11568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11569
11570 # The names of the tagged configurations supported by this script.
11571 available_tags=
11572
11573 # ### BEGIN LIBTOOL CONFIG
11574
11575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11576
11577 # Shell to use when invoking shell scripts.
11578 SHELL=$lt_SHELL
11579
11580 # Whether or not to build shared libraries.
11581 build_libtool_libs=$enable_shared
11582
11583 # Whether or not to build static libraries.
11584 build_old_libs=$enable_static
11585
11586 # Whether or not to add -lc for building shared libraries.
11587 build_libtool_need_lc=$archive_cmds_need_lc
11588
11589 # Whether or not to disallow shared libs when runtime libs are static
11590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11591
11592 # Whether or not to optimize for fast installation.
11593 fast_install=$enable_fast_install
11594
11595 # The host system.
11596 host_alias=$host_alias
11597 host=$host
11598 host_os=$host_os
11599
11600 # The build system.
11601 build_alias=$build_alias
11602 build=$build
11603 build_os=$build_os
11604
11605 # An echo program that does not interpret backslashes.
11606 echo=$lt_echo
11607
11608 # The archiver.
11609 AR=$lt_AR
11610 AR_FLAGS=$lt_AR_FLAGS
11611
11612 # A C compiler.
11613 LTCC=$lt_LTCC
11614
11615 # A language-specific compiler.
11616 CC=$lt_compiler
11617
11618 # Is the compiler the GNU C compiler?
11619 with_gcc=$GCC
11620
11621 # An ERE matcher.
11622 EGREP=$lt_EGREP
11623
11624 # The linker used to build libraries.
11625 LD=$lt_LD
11626
11627 # Whether we need hard or soft links.
11628 LN_S=$lt_LN_S
11629
11630 # A BSD-compatible nm program.
11631 NM=$lt_NM
11632
11633 # A symbol stripping program
11634 STRIP=$lt_STRIP
11635
11636 # Used to examine libraries when file_magic_cmd begins "file"
11637 MAGIC_CMD=$MAGIC_CMD
11638
11639 # Used on cygwin: DLL creation program.
11640 DLLTOOL="$DLLTOOL"
11641
11642 # Used on cygwin: object dumper.
11643 OBJDUMP="$OBJDUMP"
11644
11645 # Used on cygwin: assembler.
11646 AS="$AS"
11647
11648 # The name of the directory that contains temporary libtool files.
11649 objdir=$objdir
11650
11651 # How to create reloadable object files.
11652 reload_flag=$lt_reload_flag
11653 reload_cmds=$lt_reload_cmds
11654
11655 # How to pass a linker flag through the compiler.
11656 wl=$lt_lt_prog_compiler_wl
11657
11658 # Object file suffix (normally "o").
11659 objext="$ac_objext"
11660
11661 # Old archive suffix (normally "a").
11662 libext="$libext"
11663
11664 # Shared library suffix (normally ".so").
11665 shrext_cmds='$shrext_cmds'
11666
11667 # Executable file suffix (normally "").
11668 exeext="$exeext"
11669
11670 # Additional compiler flags for building library objects.
11671 pic_flag=$lt_lt_prog_compiler_pic
11672 pic_mode=$pic_mode
11673
11674 # What is the maximum length of a command?
11675 max_cmd_len=$lt_cv_sys_max_cmd_len
11676
11677 # Does compiler simultaneously support -c and -o options?
11678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11679
11680 # Must we lock files when doing compilation?
11681 need_locks=$lt_need_locks
11682
11683 # Do we need the lib prefix for modules?
11684 need_lib_prefix=$need_lib_prefix
11685
11686 # Do we need a version for libraries?
11687 need_version=$need_version
11688
11689 # Whether dlopen is supported.
11690 dlopen_support=$enable_dlopen
11691
11692 # Whether dlopen of programs is supported.
11693 dlopen_self=$enable_dlopen_self
11694
11695 # Whether dlopen of statically linked programs is supported.
11696 dlopen_self_static=$enable_dlopen_self_static
11697
11698 # Compiler flag to prevent dynamic linking.
11699 link_static_flag=$lt_lt_prog_compiler_static
11700
11701 # Compiler flag to turn off builtin functions.
11702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11703
11704 # Compiler flag to allow reflexive dlopens.
11705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11706
11707 # Compiler flag to generate shared objects directly from archives.
11708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11709
11710 # Compiler flag to generate thread-safe objects.
11711 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11712
11713 # Library versioning type.
11714 version_type=$version_type
11715
11716 # Format of library name prefix.
11717 libname_spec=$lt_libname_spec
11718
11719 # List of archive names.  First name is the real one, the rest are links.
11720 # The last name is the one that the linker finds with -lNAME.
11721 library_names_spec=$lt_library_names_spec
11722
11723 # The coded name of the library, if different from the real name.
11724 soname_spec=$lt_soname_spec
11725
11726 # Commands used to build and install an old-style archive.
11727 RANLIB=$lt_RANLIB
11728 old_archive_cmds=$lt_old_archive_cmds
11729 old_postinstall_cmds=$lt_old_postinstall_cmds
11730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11731
11732 # Create an old-style archive from a shared archive.
11733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11734
11735 # Create a temporary old-style archive to link instead of a shared archive.
11736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11737
11738 # Commands used to build and install a shared archive.
11739 archive_cmds=$lt_archive_cmds
11740 archive_expsym_cmds=$lt_archive_expsym_cmds
11741 postinstall_cmds=$lt_postinstall_cmds
11742 postuninstall_cmds=$lt_postuninstall_cmds
11743
11744 # Commands used to build a loadable module (assumed same as above if empty)
11745 module_cmds=$lt_module_cmds
11746 module_expsym_cmds=$lt_module_expsym_cmds
11747
11748 # Commands to strip libraries.
11749 old_striplib=$lt_old_striplib
11750 striplib=$lt_striplib
11751
11752 # Dependencies to place before the objects being linked to create a
11753 # shared library.
11754 predep_objects=$lt_predep_objects
11755
11756 # Dependencies to place after the objects being linked to create a
11757 # shared library.
11758 postdep_objects=$lt_postdep_objects
11759
11760 # Dependencies to place before the objects being linked to create a
11761 # shared library.
11762 predeps=$lt_predeps
11763
11764 # Dependencies to place after the objects being linked to create a
11765 # shared library.
11766 postdeps=$lt_postdeps
11767
11768 # The library search path used internally by the compiler when linking
11769 # a shared library.
11770 compiler_lib_search_path=$lt_compiler_lib_search_path
11771
11772 # Method to check whether dependent libraries are shared objects.
11773 deplibs_check_method=$lt_deplibs_check_method
11774
11775 # Command to use when deplibs_check_method == file_magic.
11776 file_magic_cmd=$lt_file_magic_cmd
11777
11778 # Flag that allows shared libraries with undefined symbols to be built.
11779 allow_undefined_flag=$lt_allow_undefined_flag
11780
11781 # Flag that forces no undefined symbols.
11782 no_undefined_flag=$lt_no_undefined_flag
11783
11784 # Commands used to finish a libtool library installation in a directory.
11785 finish_cmds=$lt_finish_cmds
11786
11787 # Same as above, but a single script fragment to be evaled but not shown.
11788 finish_eval=$lt_finish_eval
11789
11790 # Take the output of nm and produce a listing of raw symbols and C names.
11791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11792
11793 # Transform the output of nm in a proper C declaration
11794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11795
11796 # Transform the output of nm in a C name address pair
11797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11798
11799 # This is the shared library runtime path variable.
11800 runpath_var=$runpath_var
11801
11802 # This is the shared library path variable.
11803 shlibpath_var=$shlibpath_var
11804
11805 # Is shlibpath searched before the hard-coded library search path?
11806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11807
11808 # How to hardcode a shared library path into an executable.
11809 hardcode_action=$hardcode_action
11810
11811 # Whether we should hardcode library paths into libraries.
11812 hardcode_into_libs=$hardcode_into_libs
11813
11814 # Flag to hardcode \$libdir into a binary during linking.
11815 # This must work even if \$libdir does not exist.
11816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11817
11818 # If ld is used when linking, flag to hardcode \$libdir into
11819 # a binary during linking. This must work even if \$libdir does
11820 # not exist.
11821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11822
11823 # Whether we need a single -rpath flag with a separated argument.
11824 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11825
11826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11827 # resulting binary.
11828 hardcode_direct=$hardcode_direct
11829
11830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11831 # resulting binary.
11832 hardcode_minus_L=$hardcode_minus_L
11833
11834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11835 # the resulting binary.
11836 hardcode_shlibpath_var=$hardcode_shlibpath_var
11837
11838 # Set to yes if building a shared library automatically hardcodes DIR into the library
11839 # and all subsequent libraries and executables linked against it.
11840 hardcode_automatic=$hardcode_automatic
11841
11842 # Variables whose values should be saved in libtool wrapper scripts and
11843 # restored at relink time.
11844 variables_saved_for_relink="$variables_saved_for_relink"
11845
11846 # Whether libtool must link a program against all its dependency libraries.
11847 link_all_deplibs=$link_all_deplibs
11848
11849 # Compile-time system search path for libraries
11850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11851
11852 # Run-time system search path for libraries
11853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11854
11855 # Fix the shell variable \$srcfile for the compiler.
11856 fix_srcfile_path="$fix_srcfile_path"
11857
11858 # Set to yes if exported symbols are required.
11859 always_export_symbols=$always_export_symbols
11860
11861 # The commands to list exported symbols.
11862 export_symbols_cmds=$lt_export_symbols_cmds
11863
11864 # The commands to extract the exported symbol list from a shared archive.
11865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11866
11867 # Symbols that should not be listed in the preloaded symbols.
11868 exclude_expsyms=$lt_exclude_expsyms
11869
11870 # Symbols that must always be exported.
11871 include_expsyms=$lt_include_expsyms
11872
11873 # ### END LIBTOOL CONFIG
11874
11875 __EOF__
11876
11877
11878   case $host_os in
11879   aix3*)
11880     cat <<\EOF >> "$cfgfile"
11881
11882 # AIX sometimes has problems with the GCC collect2 program.  For some
11883 # reason, if we set the COLLECT_NAMES environment variable, the problems
11884 # vanish in a puff of smoke.
11885 if test "X${COLLECT_NAMES+set}" != Xset; then
11886   COLLECT_NAMES=
11887   export COLLECT_NAMES
11888 fi
11889 EOF
11890     ;;
11891   esac
11892
11893   # We use sed instead of cat because bash on DJGPP gets confused if
11894   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11895   # text mode, it properly converts lines to CR/LF.  This bash problem
11896   # is reportedly fixed, but why not run on old versions too?
11897   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11898
11899   mv -f "$cfgfile" "$ofile" || \
11900     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11901   chmod +x "$ofile"
11902
11903 else
11904   # If there is no Makefile yet, we rely on a make rule to execute
11905   # `config.status --recheck' to rerun these tests and create the
11906   # libtool script then.
11907   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11908   if test -f "$ltmain_in"; then
11909     test -f Makefile && make "$ltmain"
11910   fi
11911 fi
11912
11913
11914 ac_ext=c
11915 ac_cpp='$CPP $CPPFLAGS'
11916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11919
11920 CC="$lt_save_CC"
11921
11922
11923 # Check whether --with-tags or --without-tags was given.
11924 if test "${with_tags+set}" = set; then
11925   withval="$with_tags"
11926   tagnames="$withval"
11927 fi;
11928
11929 if test -f "$ltmain" && test -n "$tagnames"; then
11930   if test ! -f "${ofile}"; then
11931     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11932 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11933   fi
11934
11935   if test -z "$LTCC"; then
11936     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11937     if test -z "$LTCC"; then
11938       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11939 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11940     else
11941       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11942 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11943     fi
11944   fi
11945
11946   # Extract list of available tagged configurations in $ofile.
11947   # Note that this assumes the entire list is on one line.
11948   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11949
11950   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11951   for tagname in $tagnames; do
11952     IFS="$lt_save_ifs"
11953     # Check whether tagname contains only valid characters
11954     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11955     "") ;;
11956     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11957 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11958    { (exit 1); exit 1; }; }
11959         ;;
11960     esac
11961
11962     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11963     then
11964       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11965 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11966    { (exit 1); exit 1; }; }
11967     fi
11968
11969     # Update the list of available tags.
11970     if test -n "$tagname"; then
11971       echo appending configuration tag \"$tagname\" to $ofile
11972
11973       case $tagname in
11974       CXX)
11975         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11976             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11977             (test "X$CXX" != "Xg++"))) ; then
11978           ac_ext=cc
11979 ac_cpp='$CXXCPP $CPPFLAGS'
11980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11983
11984
11985
11986
11987 archive_cmds_need_lc_CXX=no
11988 allow_undefined_flag_CXX=
11989 always_export_symbols_CXX=no
11990 archive_expsym_cmds_CXX=
11991 export_dynamic_flag_spec_CXX=
11992 hardcode_direct_CXX=no
11993 hardcode_libdir_flag_spec_CXX=
11994 hardcode_libdir_flag_spec_ld_CXX=
11995 hardcode_libdir_separator_CXX=
11996 hardcode_minus_L_CXX=no
11997 hardcode_automatic_CXX=no
11998 module_cmds_CXX=
11999 module_expsym_cmds_CXX=
12000 link_all_deplibs_CXX=unknown
12001 old_archive_cmds_CXX=$old_archive_cmds
12002 no_undefined_flag_CXX=
12003 whole_archive_flag_spec_CXX=
12004 enable_shared_with_static_runtimes_CXX=no
12005
12006 # Dependencies to place before and after the object being linked:
12007 predep_objects_CXX=
12008 postdep_objects_CXX=
12009 predeps_CXX=
12010 postdeps_CXX=
12011 compiler_lib_search_path_CXX=
12012
12013 # Source file extension for C++ test sources.
12014 ac_ext=cc
12015
12016 # Object file extension for compiled C++ test sources.
12017 objext=o
12018 objext_CXX=$objext
12019
12020 # Code to be used in simple compile tests
12021 lt_simple_compile_test_code="int some_variable = 0;\n"
12022
12023 # Code to be used in simple link tests
12024 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12025
12026 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12027
12028 # If no C compiler was specified, use CC.
12029 LTCC=${LTCC-"$CC"}
12030
12031 # Allow CC to be a program name with arguments.
12032 compiler=$CC
12033
12034
12035 # save warnings/boilerplate of simple test code
12036 ac_outfile=conftest.$ac_objext
12037 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12038 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12039 _lt_compiler_boilerplate=`cat conftest.err`
12040 $rm conftest*
12041
12042 ac_outfile=conftest.$ac_objext
12043 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12044 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12045 _lt_linker_boilerplate=`cat conftest.err`
12046 $rm conftest*
12047
12048
12049 # Allow CC to be a program name with arguments.
12050 lt_save_CC=$CC
12051 lt_save_LD=$LD
12052 lt_save_GCC=$GCC
12053 GCC=$GXX
12054 lt_save_with_gnu_ld=$with_gnu_ld
12055 lt_save_path_LD=$lt_cv_path_LD
12056 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12057   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12058 else
12059   unset lt_cv_prog_gnu_ld
12060 fi
12061 if test -n "${lt_cv_path_LDCXX+set}"; then
12062   lt_cv_path_LD=$lt_cv_path_LDCXX
12063 else
12064   unset lt_cv_path_LD
12065 fi
12066 test -z "${LDCXX+set}" || LD=$LDCXX
12067 CC=${CXX-"c++"}
12068 compiler=$CC
12069 compiler_CXX=$CC
12070 for cc_temp in $compiler""; do
12071   case $cc_temp in
12072     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12073     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12074     \-*) ;;
12075     *) break;;
12076   esac
12077 done
12078 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12079
12080
12081 # We don't want -fno-exception wen compiling C++ code, so set the
12082 # no_builtin_flag separately
12083 if test "$GXX" = yes; then
12084   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12085 else
12086   lt_prog_compiler_no_builtin_flag_CXX=
12087 fi
12088
12089 if test "$GXX" = yes; then
12090   # Set up default GNU C++ configuration
12091
12092
12093 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12094 if test "${with_gnu_ld+set}" = set; then
12095   withval="$with_gnu_ld"
12096   test "$withval" = no || with_gnu_ld=yes
12097 else
12098   with_gnu_ld=no
12099 fi;
12100 ac_prog=ld
12101 if test "$GCC" = yes; then
12102   # Check if gcc -print-prog-name=ld gives a path.
12103   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12104 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12105   case $host in
12106   *-*-mingw*)
12107     # gcc leaves a trailing carriage return which upsets mingw
12108     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12109   *)
12110     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12111   esac
12112   case $ac_prog in
12113     # Accept absolute paths.
12114     [\\/]* | ?:[\\/]*)
12115       re_direlt='/[^/][^/]*/\.\./'
12116       # Canonicalize the pathname of ld
12117       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12118       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12119         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12120       done
12121       test -z "$LD" && LD="$ac_prog"
12122       ;;
12123   "")
12124     # If it fails, then pretend we aren't using GCC.
12125     ac_prog=ld
12126     ;;
12127   *)
12128     # If it is relative, then search for the first ld in PATH.
12129     with_gnu_ld=unknown
12130     ;;
12131   esac
12132 elif test "$with_gnu_ld" = yes; then
12133   echo "$as_me:$LINENO: checking for GNU ld" >&5
12134 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12135 else
12136   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12137 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12138 fi
12139 if test "${lt_cv_path_LD+set}" = set; then
12140   echo $ECHO_N "(cached) $ECHO_C" >&6
12141 else
12142   if test -z "$LD"; then
12143   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12144   for ac_dir in $PATH; do
12145     IFS="$lt_save_ifs"
12146     test -z "$ac_dir" && ac_dir=.
12147     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12148       lt_cv_path_LD="$ac_dir/$ac_prog"
12149       # Check to see if the program is GNU ld.  I'd rather use --version,
12150       # but apparently some GNU ld's only accept -v.
12151       # Break only if it was the GNU/non-GNU ld that we prefer.
12152       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12153       *GNU* | *'with BFD'*)
12154         test "$with_gnu_ld" != no && break
12155         ;;
12156       *)
12157         test "$with_gnu_ld" != yes && break
12158         ;;
12159       esac
12160     fi
12161   done
12162   IFS="$lt_save_ifs"
12163 else
12164   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12165 fi
12166 fi
12167
12168 LD="$lt_cv_path_LD"
12169 if test -n "$LD"; then
12170   echo "$as_me:$LINENO: result: $LD" >&5
12171 echo "${ECHO_T}$LD" >&6
12172 else
12173   echo "$as_me:$LINENO: result: no" >&5
12174 echo "${ECHO_T}no" >&6
12175 fi
12176 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12177 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12178    { (exit 1); exit 1; }; }
12179 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12180 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12181 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12185 case `$LD -v 2>&1 </dev/null` in
12186 *GNU* | *'with BFD'*)
12187   lt_cv_prog_gnu_ld=yes
12188   ;;
12189 *)
12190   lt_cv_prog_gnu_ld=no
12191   ;;
12192 esac
12193 fi
12194 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12195 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12196 with_gnu_ld=$lt_cv_prog_gnu_ld
12197
12198
12199
12200   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12201   # archiving commands below assume that GNU ld is being used.
12202   if test "$with_gnu_ld" = yes; then
12203     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12204     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'
12205
12206     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12207     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12208
12209     # If archive_cmds runs LD, not CC, wlarc should be empty
12210     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12211     #     investigate it a little bit more. (MM)
12212     wlarc='${wl}'
12213
12214     # ancient GNU ld didn't support --whole-archive et. al.
12215     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12216         grep 'no-whole-archive' > /dev/null; then
12217       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12218     else
12219       whole_archive_flag_spec_CXX=
12220     fi
12221   else
12222     with_gnu_ld=no
12223     wlarc=
12224
12225     # A generic and very simple default shared library creation
12226     # command for GNU C++ for the case where it uses the native
12227     # linker, instead of GNU ld.  If possible, this setting should
12228     # overridden to take advantage of the native linker features on
12229     # the platform it is being used on.
12230     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12231   fi
12232
12233   # Commands to make compiler produce verbose output that lists
12234   # what "hidden" libraries, object files and flags are used when
12235   # linking a shared library.
12236   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12237
12238 else
12239   GXX=no
12240   with_gnu_ld=no
12241   wlarc=
12242 fi
12243
12244 # PORTME: fill in a description of your system's C++ link characteristics
12245 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12246 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12247 ld_shlibs_CXX=yes
12248 case $host_os in
12249   aix3*)
12250     # FIXME: insert proper C++ library support
12251     ld_shlibs_CXX=no
12252     ;;
12253   aix4* | aix5*)
12254     if test "$host_cpu" = ia64; then
12255       # On IA64, the linker does run time linking by default, so we don't
12256       # have to do anything special.
12257       aix_use_runtimelinking=no
12258       exp_sym_flag='-Bexport'
12259       no_entry_flag=""
12260     else
12261       aix_use_runtimelinking=no
12262
12263       # Test if we are trying to use run time linking or normal
12264       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12265       # need to do runtime linking.
12266       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12267         for ld_flag in $LDFLAGS; do
12268           case $ld_flag in
12269           *-brtl*)
12270             aix_use_runtimelinking=yes
12271             break
12272             ;;
12273           esac
12274         done
12275       esac
12276
12277       exp_sym_flag='-bexport'
12278       no_entry_flag='-bnoentry'
12279     fi
12280
12281     # When large executables or shared objects are built, AIX ld can
12282     # have problems creating the table of contents.  If linking a library
12283     # or program results in "error TOC overflow" add -mminimal-toc to
12284     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12285     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12286
12287     archive_cmds_CXX=''
12288     hardcode_direct_CXX=yes
12289     hardcode_libdir_separator_CXX=':'
12290     link_all_deplibs_CXX=yes
12291
12292     if test "$GXX" = yes; then
12293       case $host_os in aix4.[012]|aix4.[012].*)
12294       # We only want to do this on AIX 4.2 and lower, the check
12295       # below for broken collect2 doesn't work under 4.3+
12296         collect2name=`${CC} -print-prog-name=collect2`
12297         if test -f "$collect2name" && \
12298            strings "$collect2name" | grep resolve_lib_name >/dev/null
12299         then
12300           # We have reworked collect2
12301           hardcode_direct_CXX=yes
12302         else
12303           # We have old collect2
12304           hardcode_direct_CXX=unsupported
12305           # It fails to find uninstalled libraries when the uninstalled
12306           # path is not listed in the libpath.  Setting hardcode_minus_L
12307           # to unsupported forces relinking
12308           hardcode_minus_L_CXX=yes
12309           hardcode_libdir_flag_spec_CXX='-L$libdir'
12310           hardcode_libdir_separator_CXX=
12311         fi
12312       esac
12313       shared_flag='-shared'
12314       if test "$aix_use_runtimelinking" = yes; then
12315         shared_flag="$shared_flag "'${wl}-G'
12316       fi
12317     else
12318       # not using gcc
12319       if test "$host_cpu" = ia64; then
12320         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12321         # chokes on -Wl,-G. The following line is correct:
12322         shared_flag='-G'
12323       else
12324         if test "$aix_use_runtimelinking" = yes; then
12325           shared_flag='${wl}-G'
12326         else
12327           shared_flag='${wl}-bM:SRE'
12328         fi
12329       fi
12330     fi
12331
12332     # It seems that -bexpall does not export symbols beginning with
12333     # underscore (_), so it is better to generate a list of symbols to export.
12334     always_export_symbols_CXX=yes
12335     if test "$aix_use_runtimelinking" = yes; then
12336       # Warning - without using the other runtime loading flags (-brtl),
12337       # -berok will link without error, but may produce a broken library.
12338       allow_undefined_flag_CXX='-berok'
12339       # Determine the default libpath from the value encoded in an empty executable.
12340       cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346
12347 int
12348 main ()
12349 {
12350
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357   (eval $ac_link) 2>conftest.er1
12358   ac_status=$?
12359   grep -v '^ *+' conftest.er1 >conftest.err
12360   rm -f conftest.er1
12361   cat conftest.err >&5
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } &&
12364          { ac_try='test -z "$ac_cxx_werror_flag"
12365                          || test ! -s conftest.err'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; } &&
12371          { ac_try='test -s conftest$ac_exeext'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377
12378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12379 }'`
12380 # Check for a 64-bit object if we didn't find anything.
12381 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; }
12382 }'`; fi
12383 else
12384   echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 fi
12388 rm -f conftest.err conftest.$ac_objext \
12389       conftest$ac_exeext conftest.$ac_ext
12390 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12391
12392       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12393
12394       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"
12395      else
12396       if test "$host_cpu" = ia64; then
12397         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12398         allow_undefined_flag_CXX="-z nodefs"
12399         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"
12400       else
12401         # Determine the default libpath from the value encoded in an empty executable.
12402         cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h.  */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h.  */
12408
12409 int
12410 main ()
12411 {
12412
12413   ;
12414   return 0;
12415 }
12416 _ACEOF
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419   (eval $ac_link) 2>conftest.er1
12420   ac_status=$?
12421   grep -v '^ *+' conftest.er1 >conftest.err
12422   rm -f conftest.er1
12423   cat conftest.err >&5
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } &&
12426          { ac_try='test -z "$ac_cxx_werror_flag"
12427                          || test ! -s conftest.err'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; } &&
12433          { ac_try='test -s conftest$ac_exeext'
12434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435   (eval $ac_try) 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; }; then
12439
12440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12441 }'`
12442 # Check for a 64-bit object if we didn't find anything.
12443 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; }
12444 }'`; fi
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449 fi
12450 rm -f conftest.err conftest.$ac_objext \
12451       conftest$ac_exeext conftest.$ac_ext
12452 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12453
12454         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12455         # Warning - without using the other run time loading flags,
12456         # -berok will link without error, but may produce a broken library.
12457         no_undefined_flag_CXX=' ${wl}-bernotok'
12458         allow_undefined_flag_CXX=' ${wl}-berok'
12459         # -bexpall does not export symbols beginning with underscore (_)
12460         always_export_symbols_CXX=yes
12461         # Exported symbols can be pulled into shared objects from archives
12462         whole_archive_flag_spec_CXX=' '
12463         archive_cmds_need_lc_CXX=yes
12464         # This is similar to how AIX traditionally builds it's shared libraries.
12465         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'
12466       fi
12467     fi
12468     ;;
12469   chorus*)
12470     case $cc_basename in
12471       *)
12472         # FIXME: insert proper C++ library support
12473         ld_shlibs_CXX=no
12474         ;;
12475     esac
12476     ;;
12477
12478
12479   cygwin* | mingw* | pw32*)
12480     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12481     # as there is no search path for DLLs.
12482     hardcode_libdir_flag_spec_CXX='-L$libdir'
12483     allow_undefined_flag_CXX=unsupported
12484     always_export_symbols_CXX=no
12485     enable_shared_with_static_runtimes_CXX=yes
12486
12487     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12488       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'
12489       # If the export-symbols file already is a .def file (1st line
12490       # is EXPORTS), use it as is; otherwise, prepend...
12491       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12492         cp $export_symbols $output_objdir/$soname.def;
12493       else
12494         echo EXPORTS > $output_objdir/$soname.def;
12495         cat $export_symbols >> $output_objdir/$soname.def;
12496       fi~
12497       $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'
12498     else
12499       ld_shlibs_CXX=no
12500     fi
12501   ;;
12502       darwin* | rhapsody*)
12503         case "$host_os" in
12504         rhapsody* | darwin1.[012])
12505          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12506          ;;
12507        *) # Darwin 1.3 on
12508          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12509            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12510          else
12511            case ${MACOSX_DEPLOYMENT_TARGET} in
12512              10.[012])
12513                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12514                ;;
12515              10.*)
12516                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12517                ;;
12518            esac
12519          fi
12520          ;;
12521         esac
12522       archive_cmds_need_lc_CXX=no
12523       hardcode_direct_CXX=no
12524       hardcode_automatic_CXX=yes
12525       hardcode_shlibpath_var_CXX=unsupported
12526       whole_archive_flag_spec_CXX=''
12527       link_all_deplibs_CXX=yes
12528
12529     if test "$GXX" = yes ; then
12530       lt_int_apple_cc_single_mod=no
12531       output_verbose_link_cmd='echo'
12532       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12533        lt_int_apple_cc_single_mod=yes
12534       fi
12535       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12536        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12537       else
12538           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'
12539         fi
12540         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12541         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12542           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12543             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}'
12544           else
12545             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}'
12546           fi
12547             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}'
12548       else
12549       case $cc_basename in
12550         xlc*)
12551          output_verbose_link_cmd='echo'
12552           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'
12553           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12554           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12555           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}'
12556           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}'
12557           ;;
12558        *)
12559          ld_shlibs_CXX=no
12560           ;;
12561       esac
12562       fi
12563         ;;
12564
12565   dgux*)
12566     case $cc_basename in
12567       ec++*)
12568         # FIXME: insert proper C++ library support
12569         ld_shlibs_CXX=no
12570         ;;
12571       ghcx*)
12572         # Green Hills C++ Compiler
12573         # FIXME: insert proper C++ library support
12574         ld_shlibs_CXX=no
12575         ;;
12576       *)
12577         # FIXME: insert proper C++ library support
12578         ld_shlibs_CXX=no
12579         ;;
12580     esac
12581     ;;
12582   freebsd[12]*)
12583     # C++ shared libraries reported to be fairly broken before switch to ELF
12584     ld_shlibs_CXX=no
12585     ;;
12586   freebsd-elf*)
12587     archive_cmds_need_lc_CXX=no
12588     ;;
12589   freebsd* | kfreebsd*-gnu | dragonfly*)
12590     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12591     # conventions
12592     ld_shlibs_CXX=yes
12593     ;;
12594   gnu*)
12595     ;;
12596   hpux9*)
12597     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12598     hardcode_libdir_separator_CXX=:
12599     export_dynamic_flag_spec_CXX='${wl}-E'
12600     hardcode_direct_CXX=yes
12601     hardcode_minus_L_CXX=yes # Not in the search PATH,
12602                                 # but as the default
12603                                 # location of the library.
12604
12605     case $cc_basename in
12606     CC*)
12607       # FIXME: insert proper C++ library support
12608       ld_shlibs_CXX=no
12609       ;;
12610     aCC*)
12611       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'
12612       # Commands to make compiler produce verbose output that lists
12613       # what "hidden" libraries, object files and flags are used when
12614       # linking a shared library.
12615       #
12616       # There doesn't appear to be a way to prevent this compiler from
12617       # explicitly linking system object files so we need to strip them
12618       # from the output so that they don't get included in the library
12619       # dependencies.
12620       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'
12621       ;;
12622     *)
12623       if test "$GXX" = yes; then
12624         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'
12625       else
12626         # FIXME: insert proper C++ library support
12627         ld_shlibs_CXX=no
12628       fi
12629       ;;
12630     esac
12631     ;;
12632   hpux10*|hpux11*)
12633     if test $with_gnu_ld = no; then
12634       case "$host_cpu" in
12635       hppa*64*)
12636         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12637         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12638         hardcode_libdir_separator_CXX=:
12639         ;;
12640       ia64*)
12641         hardcode_libdir_flag_spec_CXX='-L$libdir'
12642         ;;
12643       *)
12644         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12645         hardcode_libdir_separator_CXX=:
12646         export_dynamic_flag_spec_CXX='${wl}-E'
12647         ;;
12648       esac
12649     fi
12650     case "$host_cpu" in
12651     hppa*64*)
12652       hardcode_direct_CXX=no
12653       hardcode_shlibpath_var_CXX=no
12654       ;;
12655     ia64*)
12656       hardcode_direct_CXX=no
12657       hardcode_shlibpath_var_CXX=no
12658       hardcode_minus_L_CXX=yes # Not in the search PATH,
12659                                               # but as the default
12660                                               # location of the library.
12661       ;;
12662     *)
12663       hardcode_direct_CXX=yes
12664       hardcode_minus_L_CXX=yes # Not in the search PATH,
12665                                               # but as the default
12666                                               # location of the library.
12667       ;;
12668     esac
12669
12670     case $cc_basename in
12671       CC*)
12672         # FIXME: insert proper C++ library support
12673         ld_shlibs_CXX=no
12674         ;;
12675       aCC*)
12676         case "$host_cpu" in
12677         hppa*64*|ia64*)
12678           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12679           ;;
12680         *)
12681           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12682           ;;
12683         esac
12684         # Commands to make compiler produce verbose output that lists
12685         # what "hidden" libraries, object files and flags are used when
12686         # linking a shared library.
12687         #
12688         # There doesn't appear to be a way to prevent this compiler from
12689         # explicitly linking system object files so we need to strip them
12690         # from the output so that they don't get included in the library
12691         # dependencies.
12692         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'
12693         ;;
12694       *)
12695         if test "$GXX" = yes; then
12696           if test $with_gnu_ld = no; then
12697             case "$host_cpu" in
12698             ia64*|hppa*64*)
12699               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12700               ;;
12701             *)
12702               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'
12703               ;;
12704             esac
12705           fi
12706         else
12707           # FIXME: insert proper C++ library support
12708           ld_shlibs_CXX=no
12709         fi
12710         ;;
12711     esac
12712     ;;
12713   irix5* | irix6*)
12714     case $cc_basename in
12715       CC*)
12716         # SGI C++
12717         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'
12718
12719         # Archives containing C++ object files must be created using
12720         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12721         # necessary to make sure instantiated templates are included
12722         # in the archive.
12723         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12724         ;;
12725       *)
12726         if test "$GXX" = yes; then
12727           if test "$with_gnu_ld" = no; then
12728             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'
12729           else
12730             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'
12731           fi
12732         fi
12733         link_all_deplibs_CXX=yes
12734         ;;
12735     esac
12736     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12737     hardcode_libdir_separator_CXX=:
12738     ;;
12739   linux*)
12740     case $cc_basename in
12741       KCC*)
12742         # Kuck and Associates, Inc. (KAI) C++ Compiler
12743
12744         # KCC will only create a shared library if the output file
12745         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12746         # to its proper name (with version) after linking.
12747         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'
12748         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'
12749         # Commands to make compiler produce verbose output that lists
12750         # what "hidden" libraries, object files and flags are used when
12751         # linking a shared library.
12752         #
12753         # There doesn't appear to be a way to prevent this compiler from
12754         # explicitly linking system object files so we need to strip them
12755         # from the output so that they don't get included in the library
12756         # dependencies.
12757         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'
12758
12759         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12760         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12761
12762         # Archives containing C++ object files must be created using
12763         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12764         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12765         ;;
12766       icpc*)
12767         # Intel C++
12768         with_gnu_ld=yes
12769         # version 8.0 and above of icpc choke on multiply defined symbols
12770         # if we add $predep_objects and $postdep_objects, however 7.1 and
12771         # earlier do not add the objects themselves.
12772         case `$CC -V 2>&1` in
12773         *"Version 7."*)
12774           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12775           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'
12776           ;;
12777         *)  # Version 8.0 or newer
12778           tmp_idyn=
12779           case $host_cpu in
12780             ia64*) tmp_idyn=' -i_dynamic';;
12781           esac
12782           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12783           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'
12784           ;;
12785         esac
12786         archive_cmds_need_lc_CXX=no
12787         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12788         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12789         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12790         ;;
12791       pgCC*)
12792         # Portland Group C++ compiler
12793         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12794         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'
12795
12796         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12797         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12798         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'
12799         ;;
12800       cxx*)
12801         # Compaq C++
12802         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803         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'
12804
12805         runpath_var=LD_RUN_PATH
12806         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12807         hardcode_libdir_separator_CXX=:
12808
12809         # Commands to make compiler produce verbose output that lists
12810         # what "hidden" libraries, object files and flags are used when
12811         # linking a shared library.
12812         #
12813         # There doesn't appear to be a way to prevent this compiler from
12814         # explicitly linking system object files so we need to strip them
12815         # from the output so that they don't get included in the library
12816         # dependencies.
12817         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'
12818         ;;
12819     esac
12820     ;;
12821   lynxos*)
12822     # FIXME: insert proper C++ library support
12823     ld_shlibs_CXX=no
12824     ;;
12825   m88k*)
12826     # FIXME: insert proper C++ library support
12827     ld_shlibs_CXX=no
12828     ;;
12829   mvs*)
12830     case $cc_basename in
12831       cxx*)
12832         # FIXME: insert proper C++ library support
12833         ld_shlibs_CXX=no
12834         ;;
12835       *)
12836         # FIXME: insert proper C++ library support
12837         ld_shlibs_CXX=no
12838         ;;
12839     esac
12840     ;;
12841   netbsd*)
12842     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12843       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12844       wlarc=
12845       hardcode_libdir_flag_spec_CXX='-R$libdir'
12846       hardcode_direct_CXX=yes
12847       hardcode_shlibpath_var_CXX=no
12848     fi
12849     # Workaround some broken pre-1.5 toolchains
12850     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12851     ;;
12852   openbsd2*)
12853     # C++ shared libraries are fairly broken
12854     ld_shlibs_CXX=no
12855     ;;
12856   openbsd*)
12857     hardcode_direct_CXX=yes
12858     hardcode_shlibpath_var_CXX=no
12859     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12860     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12861     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12862       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12863       export_dynamic_flag_spec_CXX='${wl}-E'
12864       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12865     fi
12866     output_verbose_link_cmd='echo'
12867     ;;
12868   osf3*)
12869     case $cc_basename in
12870       KCC*)
12871         # Kuck and Associates, Inc. (KAI) C++ Compiler
12872
12873         # KCC will only create a shared library if the output file
12874         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12875         # to its proper name (with version) after linking.
12876         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'
12877
12878         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12879         hardcode_libdir_separator_CXX=:
12880
12881         # Archives containing C++ object files must be created using
12882         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12883         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12884
12885         ;;
12886       RCC*)
12887         # Rational C++ 2.4.1
12888         # FIXME: insert proper C++ library support
12889         ld_shlibs_CXX=no
12890         ;;
12891       cxx*)
12892         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12893         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'
12894
12895         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12896         hardcode_libdir_separator_CXX=:
12897
12898         # Commands to make compiler produce verbose output that lists
12899         # what "hidden" libraries, object files and flags are used when
12900         # linking a shared library.
12901         #
12902         # There doesn't appear to be a way to prevent this compiler from
12903         # explicitly linking system object files so we need to strip them
12904         # from the output so that they don't get included in the library
12905         # dependencies.
12906         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'
12907         ;;
12908       *)
12909         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12910           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12911           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'
12912
12913           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12914           hardcode_libdir_separator_CXX=:
12915
12916           # Commands to make compiler produce verbose output that lists
12917           # what "hidden" libraries, object files and flags are used when
12918           # linking a shared library.
12919           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12920
12921         else
12922           # FIXME: insert proper C++ library support
12923           ld_shlibs_CXX=no
12924         fi
12925         ;;
12926     esac
12927     ;;
12928   osf4* | osf5*)
12929     case $cc_basename in
12930       KCC*)
12931         # Kuck and Associates, Inc. (KAI) C++ Compiler
12932
12933         # KCC will only create a shared library if the output file
12934         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12935         # to its proper name (with version) after linking.
12936         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'
12937
12938         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12939         hardcode_libdir_separator_CXX=:
12940
12941         # Archives containing C++ object files must be created using
12942         # the KAI C++ compiler.
12943         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12944         ;;
12945       RCC*)
12946         # Rational C++ 2.4.1
12947         # FIXME: insert proper C++ library support
12948         ld_shlibs_CXX=no
12949         ;;
12950       cxx*)
12951         allow_undefined_flag_CXX=' -expect_unresolved \*'
12952         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'
12953         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12954           echo "-hidden">> $lib.exp~
12955           $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~
12956           $rm $lib.exp'
12957
12958         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12959         hardcode_libdir_separator_CXX=:
12960
12961         # Commands to make compiler produce verbose output that lists
12962         # what "hidden" libraries, object files and flags are used when
12963         # linking a shared library.
12964         #
12965         # There doesn't appear to be a way to prevent this compiler from
12966         # explicitly linking system object files so we need to strip them
12967         # from the output so that they don't get included in the library
12968         # dependencies.
12969         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'
12970         ;;
12971       *)
12972         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12973           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12974          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'
12975
12976           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12977           hardcode_libdir_separator_CXX=:
12978
12979           # Commands to make compiler produce verbose output that lists
12980           # what "hidden" libraries, object files and flags are used when
12981           # linking a shared library.
12982           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12983
12984         else
12985           # FIXME: insert proper C++ library support
12986           ld_shlibs_CXX=no
12987         fi
12988         ;;
12989     esac
12990     ;;
12991   psos*)
12992     # FIXME: insert proper C++ library support
12993     ld_shlibs_CXX=no
12994     ;;
12995   sco*)
12996     archive_cmds_need_lc_CXX=no
12997     case $cc_basename in
12998       CC*)
12999         # FIXME: insert proper C++ library support
13000         ld_shlibs_CXX=no
13001         ;;
13002       *)
13003         # FIXME: insert proper C++ library support
13004         ld_shlibs_CXX=no
13005         ;;
13006     esac
13007     ;;
13008   sunos4*)
13009     case $cc_basename in
13010       CC*)
13011         # Sun C++ 4.x
13012         # FIXME: insert proper C++ library support
13013         ld_shlibs_CXX=no
13014         ;;
13015       lcc*)
13016         # Lucid
13017         # FIXME: insert proper C++ library support
13018         ld_shlibs_CXX=no
13019         ;;
13020       *)
13021         # FIXME: insert proper C++ library support
13022         ld_shlibs_CXX=no
13023         ;;
13024     esac
13025     ;;
13026   solaris*)
13027     case $cc_basename in
13028       CC*)
13029         # Sun C++ 4.2, 5.x and Centerline C++
13030         no_undefined_flag_CXX=' -zdefs'
13031         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13033         $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'
13034
13035         hardcode_libdir_flag_spec_CXX='-R$libdir'
13036         hardcode_shlibpath_var_CXX=no
13037         case $host_os in
13038           solaris2.[0-5] | solaris2.[0-5].*) ;;
13039           *)
13040             # The C++ compiler is used as linker so we must use $wl
13041             # flag to pass the commands to the underlying system
13042             # linker. We must also pass each convience library through
13043             # to the system linker between allextract/defaultextract.
13044             # The C++ compiler will combine linker options so we
13045             # cannot just pass the convience library names through
13046             # without $wl.
13047             # Supported since Solaris 2.6 (maybe 2.5.1?)
13048             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'
13049             ;;
13050         esac
13051         link_all_deplibs_CXX=yes
13052
13053         # Commands to make compiler produce verbose output that lists
13054         # what "hidden" libraries, object files and flags are used when
13055         # linking a shared library.
13056         #
13057         # There doesn't appear to be a way to prevent this compiler from
13058         # explicitly linking system object files so we need to strip them
13059         # from the output so that they don't get included in the library
13060         # dependencies.
13061         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'
13062
13063         # Archives containing C++ object files must be created using
13064         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13065         # necessary to make sure instantiated templates are included
13066         # in the archive.
13067         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13068         ;;
13069       gcx*)
13070         # Green Hills C++ Compiler
13071         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13072
13073         # The C++ compiler must be used to create the archive.
13074         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13075         ;;
13076       *)
13077         # GNU C++ compiler with Solaris linker
13078         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13079           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13080           if $CC --version | grep -v '^2\.7' > /dev/null; then
13081             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13082             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13083                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13084
13085             # Commands to make compiler produce verbose output that lists
13086             # what "hidden" libraries, object files and flags are used when
13087             # linking a shared library.
13088             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13089           else
13090             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13091             # platform.
13092             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13093             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13094                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13095
13096             # Commands to make compiler produce verbose output that lists
13097             # what "hidden" libraries, object files and flags are used when
13098             # linking a shared library.
13099             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13100           fi
13101
13102           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13103         fi
13104         ;;
13105     esac
13106     ;;
13107   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13108     archive_cmds_need_lc_CXX=no
13109     ;;
13110   tandem*)
13111     case $cc_basename in
13112       NCC*)
13113         # NonStop-UX NCC 3.20
13114         # FIXME: insert proper C++ library support
13115         ld_shlibs_CXX=no
13116         ;;
13117       *)
13118         # FIXME: insert proper C++ library support
13119         ld_shlibs_CXX=no
13120         ;;
13121     esac
13122     ;;
13123   vxworks*)
13124     # FIXME: insert proper C++ library support
13125     ld_shlibs_CXX=no
13126     ;;
13127   *)
13128     # FIXME: insert proper C++ library support
13129     ld_shlibs_CXX=no
13130     ;;
13131 esac
13132 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13133 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13134 test "$ld_shlibs_CXX" = no && can_build_shared=no
13135
13136 GCC_CXX="$GXX"
13137 LD_CXX="$LD"
13138
13139
13140 cat > conftest.$ac_ext <<EOF
13141 class Foo
13142 {
13143 public:
13144   Foo (void) { a = 0; }
13145 private:
13146   int a;
13147 };
13148 EOF
13149
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151   (eval $ac_compile) 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); }; then
13155   # Parse the compiler output and extract the necessary
13156   # objects, libraries and library flags.
13157
13158   # Sentinel used to keep track of whether or not we are before
13159   # the conftest object file.
13160   pre_test_object_deps_done=no
13161
13162   # The `*' in the case matches for architectures that use `case' in
13163   # $output_verbose_cmd can trigger glob expansion during the loop
13164   # eval without this substitution.
13165   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13166
13167   for p in `eval $output_verbose_link_cmd`; do
13168     case $p in
13169
13170     -L* | -R* | -l*)
13171        # Some compilers place space between "-{L,R}" and the path.
13172        # Remove the space.
13173        if test $p = "-L" \
13174           || test $p = "-R"; then
13175          prev=$p
13176          continue
13177        else
13178          prev=
13179        fi
13180
13181        if test "$pre_test_object_deps_done" = no; then
13182          case $p in
13183          -L* | -R*)
13184            # Internal compiler library paths should come after those
13185            # provided the user.  The postdeps already come after the
13186            # user supplied libs so there is no need to process them.
13187            if test -z "$compiler_lib_search_path_CXX"; then
13188              compiler_lib_search_path_CXX="${prev}${p}"
13189            else
13190              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13191            fi
13192            ;;
13193          # The "-l" case would never come before the object being
13194          # linked, so don't bother handling this case.
13195          esac
13196        else
13197          if test -z "$postdeps_CXX"; then
13198            postdeps_CXX="${prev}${p}"
13199          else
13200            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13201          fi
13202        fi
13203        ;;
13204
13205     *.$objext)
13206        # This assumes that the test object file only shows up
13207        # once in the compiler output.
13208        if test "$p" = "conftest.$objext"; then
13209          pre_test_object_deps_done=yes
13210          continue
13211        fi
13212
13213        if test "$pre_test_object_deps_done" = no; then
13214          if test -z "$predep_objects_CXX"; then
13215            predep_objects_CXX="$p"
13216          else
13217            predep_objects_CXX="$predep_objects_CXX $p"
13218          fi
13219        else
13220          if test -z "$postdep_objects_CXX"; then
13221            postdep_objects_CXX="$p"
13222          else
13223            postdep_objects_CXX="$postdep_objects_CXX $p"
13224          fi
13225        fi
13226        ;;
13227
13228     *) ;; # Ignore the rest.
13229
13230     esac
13231   done
13232
13233   # Clean up.
13234   rm -f a.out a.exe
13235 else
13236   echo "libtool.m4: error: problem compiling CXX test program"
13237 fi
13238
13239 $rm -f confest.$objext
13240
13241 case " $postdeps_CXX " in
13242 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13243 esac
13244
13245 lt_prog_compiler_wl_CXX=
13246 lt_prog_compiler_pic_CXX=
13247 lt_prog_compiler_static_CXX=
13248
13249 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13250 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13251
13252   # C++ specific cases for pic, static, wl, etc.
13253   if test "$GXX" = yes; then
13254     lt_prog_compiler_wl_CXX='-Wl,'
13255     lt_prog_compiler_static_CXX='-static'
13256
13257     case $host_os in
13258     aix*)
13259       # All AIX code is PIC.
13260       if test "$host_cpu" = ia64; then
13261         # AIX 5 now supports IA64 processor
13262         lt_prog_compiler_static_CXX='-Bstatic'
13263       fi
13264       ;;
13265     amigaos*)
13266       # FIXME: we need at least 68020 code to build shared libraries, but
13267       # adding the `-m68020' flag to GCC prevents building anything better,
13268       # like `-m68040'.
13269       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13270       ;;
13271     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13272       # PIC is the default for these OSes.
13273       ;;
13274     mingw* | os2* | pw32*)
13275       # This hack is so that the source file can tell whether it is being
13276       # built for inclusion in a dll (and should export symbols for example).
13277       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13278       ;;
13279     darwin* | rhapsody*)
13280       # PIC is the default on this platform
13281       # Common symbols not allowed in MH_DYLIB files
13282       lt_prog_compiler_pic_CXX='-fno-common'
13283       ;;
13284     *djgpp*)
13285       # DJGPP does not support shared libraries at all
13286       lt_prog_compiler_pic_CXX=
13287       ;;
13288     sysv4*MP*)
13289       if test -d /usr/nec; then
13290         lt_prog_compiler_pic_CXX=-Kconform_pic
13291       fi
13292       ;;
13293     hpux*)
13294       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13295       # not for PA HP-UX.
13296       case "$host_cpu" in
13297       hppa*64*|ia64*)
13298         ;;
13299       *)
13300         lt_prog_compiler_pic_CXX='-fPIC'
13301         ;;
13302       esac
13303       ;;
13304     *)
13305       lt_prog_compiler_pic_CXX='-fPIC'
13306       ;;
13307     esac
13308   else
13309     case $host_os in
13310       aix4* | aix5*)
13311         # All AIX code is PIC.
13312         if test "$host_cpu" = ia64; then
13313           # AIX 5 now supports IA64 processor
13314           lt_prog_compiler_static_CXX='-Bstatic'
13315         else
13316           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13317         fi
13318         ;;
13319       chorus*)
13320         case $cc_basename in
13321         cxch68*)
13322           # Green Hills C++ Compiler
13323           # _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"
13324           ;;
13325         esac
13326         ;;
13327        darwin*)
13328          # PIC is the default on this platform
13329          # Common symbols not allowed in MH_DYLIB files
13330          case $cc_basename in
13331            xlc*)
13332            lt_prog_compiler_pic_CXX='-qnocommon'
13333            lt_prog_compiler_wl_CXX='-Wl,'
13334            ;;
13335          esac
13336        ;;
13337       dgux*)
13338         case $cc_basename in
13339           ec++*)
13340             lt_prog_compiler_pic_CXX='-KPIC'
13341             ;;
13342           ghcx*)
13343             # Green Hills C++ Compiler
13344             lt_prog_compiler_pic_CXX='-pic'
13345             ;;
13346           *)
13347             ;;
13348         esac
13349         ;;
13350       freebsd* | kfreebsd*-gnu | dragonfly*)
13351         # FreeBSD uses GNU C++
13352         ;;
13353       hpux9* | hpux10* | hpux11*)
13354         case $cc_basename in
13355           CC*)
13356             lt_prog_compiler_wl_CXX='-Wl,'
13357             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13358             if test "$host_cpu" != ia64; then
13359               lt_prog_compiler_pic_CXX='+Z'
13360             fi
13361             ;;
13362           aCC*)
13363             lt_prog_compiler_wl_CXX='-Wl,'
13364             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13365             case "$host_cpu" in
13366             hppa*64*|ia64*)
13367               # +Z the default
13368               ;;
13369             *)
13370               lt_prog_compiler_pic_CXX='+Z'
13371               ;;
13372             esac
13373             ;;
13374           *)
13375             ;;
13376         esac
13377         ;;
13378       irix5* | irix6* | nonstopux*)
13379         case $cc_basename in
13380           CC*)
13381             lt_prog_compiler_wl_CXX='-Wl,'
13382             lt_prog_compiler_static_CXX='-non_shared'
13383             # CC pic flag -KPIC is the default.
13384             ;;
13385           *)
13386             ;;
13387         esac
13388         ;;
13389       linux*)
13390         case $cc_basename in
13391           KCC*)
13392             # KAI C++ Compiler
13393             lt_prog_compiler_wl_CXX='--backend -Wl,'
13394             lt_prog_compiler_pic_CXX='-fPIC'
13395             ;;
13396           icpc* | ecpc*)
13397             # Intel C++
13398             lt_prog_compiler_wl_CXX='-Wl,'
13399             lt_prog_compiler_pic_CXX='-KPIC'
13400             lt_prog_compiler_static_CXX='-static'
13401             ;;
13402           pgCC*)
13403             # Portland Group C++ compiler.
13404             lt_prog_compiler_wl_CXX='-Wl,'
13405             lt_prog_compiler_pic_CXX='-fpic'
13406             lt_prog_compiler_static_CXX='-static'
13407             ;;
13408           cxx*)
13409             # Compaq C++
13410             # Make sure the PIC flag is empty.  It appears that all Alpha
13411             # Linux and Compaq Tru64 Unix objects are PIC.
13412             lt_prog_compiler_pic_CXX=
13413             lt_prog_compiler_static_CXX='-non_shared'
13414             ;;
13415           *)
13416             ;;
13417         esac
13418         ;;
13419       lynxos*)
13420         ;;
13421       m88k*)
13422         ;;
13423       mvs*)
13424         case $cc_basename in
13425           cxx*)
13426             lt_prog_compiler_pic_CXX='-W c,exportall'
13427             ;;
13428           *)
13429             ;;
13430         esac
13431         ;;
13432       netbsd*)
13433         ;;
13434       osf3* | osf4* | osf5*)
13435         case $cc_basename in
13436           KCC*)
13437             lt_prog_compiler_wl_CXX='--backend -Wl,'
13438             ;;
13439           RCC*)
13440             # Rational C++ 2.4.1
13441             lt_prog_compiler_pic_CXX='-pic'
13442             ;;
13443           cxx*)
13444             # Digital/Compaq C++
13445             lt_prog_compiler_wl_CXX='-Wl,'
13446             # Make sure the PIC flag is empty.  It appears that all Alpha
13447             # Linux and Compaq Tru64 Unix objects are PIC.
13448             lt_prog_compiler_pic_CXX=
13449             lt_prog_compiler_static_CXX='-non_shared'
13450             ;;
13451           *)
13452             ;;
13453         esac
13454         ;;
13455       psos*)
13456         ;;
13457       sco*)
13458         case $cc_basename in
13459           CC*)
13460             lt_prog_compiler_pic_CXX='-fPIC'
13461             ;;
13462           *)
13463             ;;
13464         esac
13465         ;;
13466       solaris*)
13467         case $cc_basename in
13468           CC*)
13469             # Sun C++ 4.2, 5.x and Centerline C++
13470             lt_prog_compiler_pic_CXX='-KPIC'
13471             lt_prog_compiler_static_CXX='-Bstatic'
13472             lt_prog_compiler_wl_CXX='-Qoption ld '
13473             ;;
13474           gcx*)
13475             # Green Hills C++ Compiler
13476             lt_prog_compiler_pic_CXX='-PIC'
13477             ;;
13478           *)
13479             ;;
13480         esac
13481         ;;
13482       sunos4*)
13483         case $cc_basename in
13484           CC*)
13485             # Sun C++ 4.x
13486             lt_prog_compiler_pic_CXX='-pic'
13487             lt_prog_compiler_static_CXX='-Bstatic'
13488             ;;
13489           lcc*)
13490             # Lucid
13491             lt_prog_compiler_pic_CXX='-pic'
13492             ;;
13493           *)
13494             ;;
13495         esac
13496         ;;
13497       tandem*)
13498         case $cc_basename in
13499           NCC*)
13500             # NonStop-UX NCC 3.20
13501             lt_prog_compiler_pic_CXX='-KPIC'
13502             ;;
13503           *)
13504             ;;
13505         esac
13506         ;;
13507       unixware*)
13508         ;;
13509       vxworks*)
13510         ;;
13511       *)
13512         lt_prog_compiler_can_build_shared_CXX=no
13513         ;;
13514     esac
13515   fi
13516
13517 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13518 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13519
13520 #
13521 # Check to make sure the PIC flag actually works.
13522 #
13523 if test -n "$lt_prog_compiler_pic_CXX"; then
13524
13525 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13526 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13527 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13528   echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13530   lt_prog_compiler_pic_works_CXX=no
13531   ac_outfile=conftest.$ac_objext
13532    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13533    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13534    # Insert the option either (1) after the last *FLAGS variable, or
13535    # (2) before a word containing "conftest.", or (3) at the end.
13536    # Note that $ac_compile itself does not contain backslashes and begins
13537    # with a dollar sign (not a hyphen), so the echo should work correctly.
13538    # The option is referenced via a variable to avoid confusing sed.
13539    lt_compile=`echo "$ac_compile" | $SED \
13540    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13542    -e 's:$: $lt_compiler_flag:'`
13543    (eval echo "\"\$as_me:13543: $lt_compile\"" >&5)
13544    (eval "$lt_compile" 2>conftest.err)
13545    ac_status=$?
13546    cat conftest.err >&5
13547    echo "$as_me:13547: \$? = $ac_status" >&5
13548    if (exit $ac_status) && test -s "$ac_outfile"; then
13549      # The compiler can only warn and ignore the option if not recognized
13550      # So say no if there are warnings other than the usual output.
13551      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13552      $SED '/^$/d' conftest.err >conftest.er2
13553      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13554        lt_prog_compiler_pic_works_CXX=yes
13555      fi
13556    fi
13557    $rm conftest*
13558
13559 fi
13560 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13561 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13562
13563 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13564     case $lt_prog_compiler_pic_CXX in
13565      "" | " "*) ;;
13566      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13567      esac
13568 else
13569     lt_prog_compiler_pic_CXX=
13570      lt_prog_compiler_can_build_shared_CXX=no
13571 fi
13572
13573 fi
13574 case "$host_os" in
13575   # For platforms which do not support PIC, -DPIC is meaningless:
13576   *djgpp*)
13577     lt_prog_compiler_pic_CXX=
13578     ;;
13579   *)
13580     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13581     ;;
13582 esac
13583
13584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13586 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13587   echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589   lt_cv_prog_compiler_c_o_CXX=no
13590    $rm -r conftest 2>/dev/null
13591    mkdir conftest
13592    cd conftest
13593    mkdir out
13594    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13595
13596    lt_compiler_flag="-o out/conftest2.$ac_objext"
13597    # Insert the option either (1) after the last *FLAGS variable, or
13598    # (2) before a word containing "conftest.", or (3) at the end.
13599    # Note that $ac_compile itself does not contain backslashes and begins
13600    # with a dollar sign (not a hyphen), so the echo should work correctly.
13601    lt_compile=`echo "$ac_compile" | $SED \
13602    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13603    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13604    -e 's:$: $lt_compiler_flag:'`
13605    (eval echo "\"\$as_me:13605: $lt_compile\"" >&5)
13606    (eval "$lt_compile" 2>out/conftest.err)
13607    ac_status=$?
13608    cat out/conftest.err >&5
13609    echo "$as_me:13609: \$? = $ac_status" >&5
13610    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13611    then
13612      # The compiler can only warn and ignore the option if not recognized
13613      # So say no if there are warnings
13614      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13615      $SED '/^$/d' out/conftest.err >out/conftest.er2
13616      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13617        lt_cv_prog_compiler_c_o_CXX=yes
13618      fi
13619    fi
13620    chmod u+w .
13621    $rm conftest*
13622    # SGI C++ compiler will create directory out/ii_files/ for
13623    # template instantiation
13624    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13625    $rm out/* && rmdir out
13626    cd ..
13627    rmdir conftest
13628    $rm conftest*
13629
13630 fi
13631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13633
13634
13635 hard_links="nottested"
13636 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13637   # do not overwrite the value of need_locks provided by the user
13638   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13640   hard_links=yes
13641   $rm conftest*
13642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13643   touch conftest.a
13644   ln conftest.a conftest.b 2>&5 || hard_links=no
13645   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13646   echo "$as_me:$LINENO: result: $hard_links" >&5
13647 echo "${ECHO_T}$hard_links" >&6
13648   if test "$hard_links" = no; then
13649     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13651     need_locks=warn
13652   fi
13653 else
13654   need_locks=no
13655 fi
13656
13657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13659
13660   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13661   case $host_os in
13662   aix4* | aix5*)
13663     # If we're using GNU nm, then we don't want the "-C" option.
13664     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13665     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13666       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'
13667     else
13668       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'
13669     fi
13670     ;;
13671   pw32*)
13672     export_symbols_cmds_CXX="$ltdll_cmds"
13673   ;;
13674   cygwin* | mingw*)
13675     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'
13676   ;;
13677   *)
13678     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13679   ;;
13680   esac
13681
13682 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13683 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13684 test "$ld_shlibs_CXX" = no && can_build_shared=no
13685
13686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13687 if test "$GCC" = yes; then
13688   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13689 fi
13690
13691 #
13692 # Do we need to explicitly link libc?
13693 #
13694 case "x$archive_cmds_need_lc_CXX" in
13695 x|xyes)
13696   # Assume -lc should be added
13697   archive_cmds_need_lc_CXX=yes
13698
13699   if test "$enable_shared" = yes && test "$GCC" = yes; then
13700     case $archive_cmds_CXX in
13701     *'~'*)
13702       # FIXME: we may have to deal with multi-command sequences.
13703       ;;
13704     '$CC '*)
13705       # Test whether the compiler implicitly links with -lc since on some
13706       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13707       # to ld, don't add -lc before -lgcc.
13708       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13709 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13710       $rm conftest*
13711       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13712
13713       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714   (eval $ac_compile) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } 2>conftest.err; then
13718         soname=conftest
13719         lib=conftest
13720         libobjs=conftest.$ac_objext
13721         deplibs=
13722         wl=$lt_prog_compiler_wl_CXX
13723         compiler_flags=-v
13724         linker_flags=-v
13725         verstring=
13726         output_objdir=.
13727         libname=conftest
13728         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13729         allow_undefined_flag_CXX=
13730         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13731   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }
13735         then
13736           archive_cmds_need_lc_CXX=no
13737         else
13738           archive_cmds_need_lc_CXX=yes
13739         fi
13740         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13741       else
13742         cat conftest.err 1>&5
13743       fi
13744       $rm conftest*
13745       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13746 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13747       ;;
13748     esac
13749   fi
13750   ;;
13751 esac
13752
13753 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13754 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13755 library_names_spec=
13756 libname_spec='lib$name'
13757 soname_spec=
13758 shrext_cmds=".so"
13759 postinstall_cmds=
13760 postuninstall_cmds=
13761 finish_cmds=
13762 finish_eval=
13763 shlibpath_var=
13764 shlibpath_overrides_runpath=unknown
13765 version_type=none
13766 dynamic_linker="$host_os ld.so"
13767 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13768 if test "$GCC" = yes; then
13769   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13770   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13771     # if the path contains ";" then we assume it to be the separator
13772     # otherwise default to the standard path separator (i.e. ":") - it is
13773     # assumed that no part of a normal pathname contains ";" but that should
13774     # okay in the real world where ";" in dirpaths is itself problematic.
13775     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13776   else
13777     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13778   fi
13779 else
13780   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13781 fi
13782 need_lib_prefix=unknown
13783 hardcode_into_libs=no
13784
13785 # when you set need_version to no, make sure it does not cause -set_version
13786 # flags to be left without arguments
13787 need_version=unknown
13788
13789 case $host_os in
13790 aix3*)
13791   version_type=linux
13792   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13793   shlibpath_var=LIBPATH
13794
13795   # AIX 3 has no versioning support, so we append a major version to the name.
13796   soname_spec='${libname}${release}${shared_ext}$major'
13797   ;;
13798
13799 aix4* | aix5*)
13800   version_type=linux
13801   need_lib_prefix=no
13802   need_version=no
13803   hardcode_into_libs=yes
13804   if test "$host_cpu" = ia64; then
13805     # AIX 5 supports IA64
13806     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13807     shlibpath_var=LD_LIBRARY_PATH
13808   else
13809     # With GCC up to 2.95.x, collect2 would create an import file
13810     # for dependence libraries.  The import file would start with
13811     # the line `#! .'.  This would cause the generated library to
13812     # depend on `.', always an invalid library.  This was fixed in
13813     # development snapshots of GCC prior to 3.0.
13814     case $host_os in
13815       aix4 | aix4.[01] | aix4.[01].*)
13816       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13817            echo ' yes '
13818            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13819         :
13820       else
13821         can_build_shared=no
13822       fi
13823       ;;
13824     esac
13825     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13826     # soname into executable. Probably we can add versioning support to
13827     # collect2, so additional links can be useful in future.
13828     if test "$aix_use_runtimelinking" = yes; then
13829       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13830       # instead of lib<name>.a to let people know that these are not
13831       # typical AIX shared libraries.
13832       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13833     else
13834       # We preserve .a as extension for shared libraries through AIX4.2
13835       # and later when we are not doing run time linking.
13836       library_names_spec='${libname}${release}.a $libname.a'
13837       soname_spec='${libname}${release}${shared_ext}$major'
13838     fi
13839     shlibpath_var=LIBPATH
13840   fi
13841   ;;
13842
13843 amigaos*)
13844   library_names_spec='$libname.ixlibrary $libname.a'
13845   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13846   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'
13847   ;;
13848
13849 beos*)
13850   library_names_spec='${libname}${shared_ext}'
13851   dynamic_linker="$host_os ld.so"
13852   shlibpath_var=LIBRARY_PATH
13853   ;;
13854
13855 bsdi[45]*)
13856   version_type=linux
13857   need_version=no
13858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13859   soname_spec='${libname}${release}${shared_ext}$major'
13860   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13861   shlibpath_var=LD_LIBRARY_PATH
13862   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13863   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13864   # the default ld.so.conf also contains /usr/contrib/lib and
13865   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13866   # libtool to hard-code these into programs
13867   ;;
13868
13869 cygwin* | mingw* | pw32*)
13870   version_type=windows
13871   shrext_cmds=".dll"
13872   need_version=no
13873   need_lib_prefix=no
13874
13875   case $GCC,$host_os in
13876   yes,cygwin* | yes,mingw* | yes,pw32*)
13877     library_names_spec='$libname.dll.a'
13878     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13879     postinstall_cmds='base_file=`basename \${file}`~
13880       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13881       dldir=$destdir/`dirname \$dlpath`~
13882       test -d \$dldir || mkdir -p \$dldir~
13883       $install_prog $dir/$dlname \$dldir/$dlname'
13884     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13885       dlpath=$dir/\$dldll~
13886        $rm \$dlpath'
13887     shlibpath_overrides_runpath=yes
13888
13889     case $host_os in
13890     cygwin*)
13891       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13892       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13893       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13894       ;;
13895     mingw*)
13896       # MinGW DLLs use traditional 'lib' prefix
13897       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13898       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13899       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13900         # It is most probably a Windows format PATH printed by
13901         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13902         # path with ; separators, and with drive letters. We can handle the
13903         # drive letters (cygwin fileutils understands them), so leave them,
13904         # especially as we might pass files found there to a mingw objdump,
13905         # which wouldn't understand a cygwinified path. Ahh.
13906         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13907       else
13908         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13909       fi
13910       ;;
13911     pw32*)
13912       # pw32 DLLs use 'pw' prefix rather than 'lib'
13913       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13914       ;;
13915     esac
13916     ;;
13917
13918   *)
13919     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13920     ;;
13921   esac
13922   dynamic_linker='Win32 ld.exe'
13923   # FIXME: first we should search . and the directory the executable is in
13924   shlibpath_var=PATH
13925   ;;
13926
13927 darwin* | rhapsody*)
13928   dynamic_linker="$host_os dyld"
13929   version_type=darwin
13930   need_lib_prefix=no
13931   need_version=no
13932   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13933   soname_spec='${libname}${release}${major}$shared_ext'
13934   shlibpath_overrides_runpath=yes
13935   shlibpath_var=DYLD_LIBRARY_PATH
13936   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13937   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13938   if test "$GCC" = yes; then
13939     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"`
13940   else
13941     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13942   fi
13943   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13944   ;;
13945
13946 dgux*)
13947   version_type=linux
13948   need_lib_prefix=no
13949   need_version=no
13950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13951   soname_spec='${libname}${release}${shared_ext}$major'
13952   shlibpath_var=LD_LIBRARY_PATH
13953   ;;
13954
13955 freebsd1*)
13956   dynamic_linker=no
13957   ;;
13958
13959 kfreebsd*-gnu)
13960   version_type=linux
13961   need_lib_prefix=no
13962   need_version=no
13963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13964   soname_spec='${libname}${release}${shared_ext}$major'
13965   shlibpath_var=LD_LIBRARY_PATH
13966   shlibpath_overrides_runpath=no
13967   hardcode_into_libs=yes
13968   dynamic_linker='GNU ld.so'
13969   ;;
13970
13971 freebsd* | dragonfly*)
13972   # DragonFly does not have aout.  When/if they implement a new
13973   # versioning mechanism, adjust this.
13974   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13975   version_type=freebsd-$objformat
13976   case $version_type in
13977     freebsd-elf*)
13978       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13979       need_version=no
13980       need_lib_prefix=no
13981       ;;
13982     freebsd-*)
13983       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13984       need_version=yes
13985       ;;
13986   esac
13987   shlibpath_var=LD_LIBRARY_PATH
13988   case $host_os in
13989   freebsd2*)
13990     shlibpath_overrides_runpath=yes
13991     ;;
13992   freebsd3.[01]* | freebsdelf3.[01]*)
13993     shlibpath_overrides_runpath=yes
13994     hardcode_into_libs=yes
13995     ;;
13996   *) # from 3.2 on
13997     shlibpath_overrides_runpath=no
13998     hardcode_into_libs=yes
13999     ;;
14000   esac
14001   ;;
14002
14003 gnu*)
14004   version_type=linux
14005   need_lib_prefix=no
14006   need_version=no
14007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14008   soname_spec='${libname}${release}${shared_ext}$major'
14009   shlibpath_var=LD_LIBRARY_PATH
14010   hardcode_into_libs=yes
14011   ;;
14012
14013 hpux9* | hpux10* | hpux11*)
14014   # Give a soname corresponding to the major version so that dld.sl refuses to
14015   # link against other versions.
14016   version_type=sunos
14017   need_lib_prefix=no
14018   need_version=no
14019   case "$host_cpu" in
14020   ia64*)
14021     shrext_cmds='.so'
14022     hardcode_into_libs=yes
14023     dynamic_linker="$host_os dld.so"
14024     shlibpath_var=LD_LIBRARY_PATH
14025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027     soname_spec='${libname}${release}${shared_ext}$major'
14028     if test "X$HPUX_IA64_MODE" = X32; then
14029       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14030     else
14031       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14032     fi
14033     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14034     ;;
14035    hppa*64*)
14036      shrext_cmds='.sl'
14037      hardcode_into_libs=yes
14038      dynamic_linker="$host_os dld.sl"
14039      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14040      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14041      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14042      soname_spec='${libname}${release}${shared_ext}$major'
14043      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14044      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14045      ;;
14046    *)
14047     shrext_cmds='.sl'
14048     dynamic_linker="$host_os dld.sl"
14049     shlibpath_var=SHLIB_PATH
14050     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14052     soname_spec='${libname}${release}${shared_ext}$major'
14053     ;;
14054   esac
14055   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14056   postinstall_cmds='chmod 555 $lib'
14057   ;;
14058
14059 irix5* | irix6* | nonstopux*)
14060   case $host_os in
14061     nonstopux*) version_type=nonstopux ;;
14062     *)
14063         if test "$lt_cv_prog_gnu_ld" = yes; then
14064                 version_type=linux
14065         else
14066                 version_type=irix
14067         fi ;;
14068   esac
14069   need_lib_prefix=no
14070   need_version=no
14071   soname_spec='${libname}${release}${shared_ext}$major'
14072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14073   case $host_os in
14074   irix5* | nonstopux*)
14075     libsuff= shlibsuff=
14076     ;;
14077   *)
14078     case $LD in # libtool.m4 will add one of these switches to LD
14079     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14080       libsuff= shlibsuff= libmagic=32-bit;;
14081     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14082       libsuff=32 shlibsuff=N32 libmagic=N32;;
14083     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14084       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14085     *) libsuff= shlibsuff= libmagic=never-match;;
14086     esac
14087     ;;
14088   esac
14089   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14090   shlibpath_overrides_runpath=no
14091   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14092   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14093   hardcode_into_libs=yes
14094   ;;
14095
14096 # No shared lib support for Linux oldld, aout, or coff.
14097 linux*oldld* | linux*aout* | linux*coff*)
14098   dynamic_linker=no
14099   ;;
14100
14101 # This must be Linux ELF.
14102 linux*)
14103   version_type=linux
14104   need_lib_prefix=no
14105   need_version=no
14106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107   soname_spec='${libname}${release}${shared_ext}$major'
14108   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14109   shlibpath_var=LD_LIBRARY_PATH
14110   shlibpath_overrides_runpath=no
14111   # This implies no fast_install, which is unacceptable.
14112   # Some rework will be needed to allow for fast_install
14113   # before this can be enabled.
14114   hardcode_into_libs=yes
14115
14116   # Append ld.so.conf contents to the search path
14117   if test -f /etc/ld.so.conf; then
14118     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' ' '`
14119     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14120   fi
14121
14122   # We used to test for /lib/ld.so.1 and disable shared libraries on
14123   # powerpc, because MkLinux only supported shared libraries with the
14124   # GNU dynamic linker.  Since this was broken with cross compilers,
14125   # most powerpc-linux boxes support dynamic linking these days and
14126   # people can always --disable-shared, the test was removed, and we
14127   # assume the GNU/Linux dynamic linker is in use.
14128   dynamic_linker='GNU/Linux ld.so'
14129   ;;
14130
14131 knetbsd*-gnu)
14132   version_type=linux
14133   need_lib_prefix=no
14134   need_version=no
14135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14136   soname_spec='${libname}${release}${shared_ext}$major'
14137   shlibpath_var=LD_LIBRARY_PATH
14138   shlibpath_overrides_runpath=no
14139   hardcode_into_libs=yes
14140   dynamic_linker='GNU ld.so'
14141   ;;
14142
14143 netbsd*)
14144   version_type=sunos
14145   need_lib_prefix=no
14146   need_version=no
14147   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14149     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14150     dynamic_linker='NetBSD (a.out) ld.so'
14151   else
14152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14153     soname_spec='${libname}${release}${shared_ext}$major'
14154     dynamic_linker='NetBSD ld.elf_so'
14155   fi
14156   shlibpath_var=LD_LIBRARY_PATH
14157   shlibpath_overrides_runpath=yes
14158   hardcode_into_libs=yes
14159   ;;
14160
14161 newsos6)
14162   version_type=linux
14163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164   shlibpath_var=LD_LIBRARY_PATH
14165   shlibpath_overrides_runpath=yes
14166   ;;
14167
14168 nto-qnx*)
14169   version_type=linux
14170   need_lib_prefix=no
14171   need_version=no
14172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14173   soname_spec='${libname}${release}${shared_ext}$major'
14174   shlibpath_var=LD_LIBRARY_PATH
14175   shlibpath_overrides_runpath=yes
14176   ;;
14177
14178 openbsd*)
14179   version_type=sunos
14180   need_lib_prefix=no
14181   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14182   case $host_os in
14183     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14184     *)                         need_version=no  ;;
14185   esac
14186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14187   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14188   shlibpath_var=LD_LIBRARY_PATH
14189   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14190     case $host_os in
14191       openbsd2.[89] | openbsd2.[89].*)
14192         shlibpath_overrides_runpath=no
14193         ;;
14194       *)
14195         shlibpath_overrides_runpath=yes
14196         ;;
14197       esac
14198   else
14199     shlibpath_overrides_runpath=yes
14200   fi
14201   ;;
14202
14203 os2*)
14204   libname_spec='$name'
14205   shrext_cmds=".dll"
14206   need_lib_prefix=no
14207   library_names_spec='$libname${shared_ext} $libname.a'
14208   dynamic_linker='OS/2 ld.exe'
14209   shlibpath_var=LIBPATH
14210   ;;
14211
14212 osf3* | osf4* | osf5*)
14213   version_type=osf
14214   need_lib_prefix=no
14215   need_version=no
14216   soname_spec='${libname}${release}${shared_ext}$major'
14217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14218   shlibpath_var=LD_LIBRARY_PATH
14219   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14220   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14221   ;;
14222
14223 sco3.2v5*)
14224   version_type=osf
14225   soname_spec='${libname}${release}${shared_ext}$major'
14226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14227   shlibpath_var=LD_LIBRARY_PATH
14228   ;;
14229
14230 solaris*)
14231   version_type=linux
14232   need_lib_prefix=no
14233   need_version=no
14234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235   soname_spec='${libname}${release}${shared_ext}$major'
14236   shlibpath_var=LD_LIBRARY_PATH
14237   shlibpath_overrides_runpath=yes
14238   hardcode_into_libs=yes
14239   # ldd complains unless libraries are executable
14240   postinstall_cmds='chmod +x $lib'
14241   ;;
14242
14243 sunos4*)
14244   version_type=sunos
14245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14246   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14247   shlibpath_var=LD_LIBRARY_PATH
14248   shlibpath_overrides_runpath=yes
14249   if test "$with_gnu_ld" = yes; then
14250     need_lib_prefix=no
14251   fi
14252   need_version=yes
14253   ;;
14254
14255 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14256   version_type=linux
14257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14258   soname_spec='${libname}${release}${shared_ext}$major'
14259   shlibpath_var=LD_LIBRARY_PATH
14260   case $host_vendor in
14261     sni)
14262       shlibpath_overrides_runpath=no
14263       need_lib_prefix=no
14264       export_dynamic_flag_spec='${wl}-Blargedynsym'
14265       runpath_var=LD_RUN_PATH
14266       ;;
14267     siemens)
14268       need_lib_prefix=no
14269       ;;
14270     motorola)
14271       need_lib_prefix=no
14272       need_version=no
14273       shlibpath_overrides_runpath=no
14274       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14275       ;;
14276   esac
14277   ;;
14278
14279 sysv4*MP*)
14280   if test -d /usr/nec ;then
14281     version_type=linux
14282     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14283     soname_spec='$libname${shared_ext}.$major'
14284     shlibpath_var=LD_LIBRARY_PATH
14285   fi
14286   ;;
14287
14288 uts4*)
14289   version_type=linux
14290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291   soname_spec='${libname}${release}${shared_ext}$major'
14292   shlibpath_var=LD_LIBRARY_PATH
14293   ;;
14294
14295 *)
14296   dynamic_linker=no
14297   ;;
14298 esac
14299 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14300 echo "${ECHO_T}$dynamic_linker" >&6
14301 test "$dynamic_linker" = no && can_build_shared=no
14302
14303 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14304 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14305 hardcode_action_CXX=
14306 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14307    test -n "$runpath_var_CXX" || \
14308    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14309
14310   # We can hardcode non-existant directories.
14311   if test "$hardcode_direct_CXX" != no &&
14312      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14313      # have to relink, otherwise we might link with an installed library
14314      # when we should be linking with a yet-to-be-installed one
14315      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14316      test "$hardcode_minus_L_CXX" != no; then
14317     # Linking always hardcodes the temporary library directory.
14318     hardcode_action_CXX=relink
14319   else
14320     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14321     hardcode_action_CXX=immediate
14322   fi
14323 else
14324   # We cannot hardcode anything, or else we can only hardcode existing
14325   # directories.
14326   hardcode_action_CXX=unsupported
14327 fi
14328 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14329 echo "${ECHO_T}$hardcode_action_CXX" >&6
14330
14331 if test "$hardcode_action_CXX" = relink; then
14332   # Fast installation is not supported
14333   enable_fast_install=no
14334 elif test "$shlibpath_overrides_runpath" = yes ||
14335      test "$enable_shared" = no; then
14336   # Fast installation is not necessary
14337   enable_fast_install=needless
14338 fi
14339
14340 striplib=
14341 old_striplib=
14342 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14343 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14344 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14345   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14346   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14347   echo "$as_me:$LINENO: result: yes" >&5
14348 echo "${ECHO_T}yes" >&6
14349 else
14350 # FIXME - insert some real tests, host_os isn't really good enough
14351   case $host_os in
14352    darwin*)
14353        if test -n "$STRIP" ; then
14354          striplib="$STRIP -x"
14355          echo "$as_me:$LINENO: result: yes" >&5
14356 echo "${ECHO_T}yes" >&6
14357        else
14358   echo "$as_me:$LINENO: result: no" >&5
14359 echo "${ECHO_T}no" >&6
14360 fi
14361        ;;
14362    *)
14363   echo "$as_me:$LINENO: result: no" >&5
14364 echo "${ECHO_T}no" >&6
14365     ;;
14366   esac
14367 fi
14368
14369 if test "x$enable_dlopen" != xyes; then
14370   enable_dlopen=unknown
14371   enable_dlopen_self=unknown
14372   enable_dlopen_self_static=unknown
14373 else
14374   lt_cv_dlopen=no
14375   lt_cv_dlopen_libs=
14376
14377   case $host_os in
14378   beos*)
14379     lt_cv_dlopen="load_add_on"
14380     lt_cv_dlopen_libs=
14381     lt_cv_dlopen_self=yes
14382     ;;
14383
14384   mingw* | pw32*)
14385     lt_cv_dlopen="LoadLibrary"
14386     lt_cv_dlopen_libs=
14387    ;;
14388
14389   cygwin*)
14390     lt_cv_dlopen="dlopen"
14391     lt_cv_dlopen_libs=
14392    ;;
14393
14394   darwin*)
14395   # if libdl is installed we need to link against it
14396     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14399   echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401   ac_check_lib_save_LIBS=$LIBS
14402 LIBS="-ldl  $LIBS"
14403 cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h.  */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h.  */
14409
14410 /* Override any gcc2 internal prototype to avoid an error.  */
14411 #ifdef __cplusplus
14412 extern "C"
14413 #endif
14414 /* We use char because int might match the return type of a gcc2
14415    builtin and then its argument prototype would still apply.  */
14416 char dlopen ();
14417 int
14418 main ()
14419 {
14420 dlopen ();
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext conftest$ac_exeext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14427   (eval $ac_link) 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } &&
14434          { ac_try='test -z "$ac_cxx_werror_flag"
14435                          || test ! -s conftest.err'
14436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437   (eval $ac_try) 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); }; } &&
14441          { ac_try='test -s conftest$ac_exeext'
14442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443   (eval $ac_try) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; }; then
14447   ac_cv_lib_dl_dlopen=yes
14448 else
14449   echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 ac_cv_lib_dl_dlopen=no
14453 fi
14454 rm -f conftest.err conftest.$ac_objext \
14455       conftest$ac_exeext conftest.$ac_ext
14456 LIBS=$ac_check_lib_save_LIBS
14457 fi
14458 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14459 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14460 if test $ac_cv_lib_dl_dlopen = yes; then
14461   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14462 else
14463
14464     lt_cv_dlopen="dyld"
14465     lt_cv_dlopen_libs=
14466     lt_cv_dlopen_self=yes
14467
14468 fi
14469
14470    ;;
14471
14472   *)
14473     echo "$as_me:$LINENO: checking for shl_load" >&5
14474 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14475 if test "${ac_cv_func_shl_load+set}" = set; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h.  */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h.  */
14484 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14486 #define shl_load innocuous_shl_load
14487
14488 /* System header to define __stub macros and hopefully few prototypes,
14489     which can conflict with char shl_load (); below.
14490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14491     <limits.h> exists even on freestanding compilers.  */
14492
14493 #ifdef __STDC__
14494 # include <limits.h>
14495 #else
14496 # include <assert.h>
14497 #endif
14498
14499 #undef shl_load
14500
14501 /* Override any gcc2 internal prototype to avoid an error.  */
14502 #ifdef __cplusplus
14503 extern "C"
14504 {
14505 #endif
14506 /* We use char because int might match the return type of a gcc2
14507    builtin and then its argument prototype would still apply.  */
14508 char shl_load ();
14509 /* The GNU C library defines this for functions which it implements
14510     to always fail with ENOSYS.  Some functions are actually named
14511     something starting with __ and the normal name is an alias.  */
14512 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14513 choke me
14514 #else
14515 char (*f) () = shl_load;
14516 #endif
14517 #ifdef __cplusplus
14518 }
14519 #endif
14520
14521 int
14522 main ()
14523 {
14524 return f != shl_load;
14525   ;
14526   return 0;
14527 }
14528 _ACEOF
14529 rm -f conftest.$ac_objext conftest$ac_exeext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14531   (eval $ac_link) 2>conftest.er1
14532   ac_status=$?
14533   grep -v '^ *+' conftest.er1 >conftest.err
14534   rm -f conftest.er1
14535   cat conftest.err >&5
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); } &&
14538          { ac_try='test -z "$ac_cxx_werror_flag"
14539                          || test ! -s conftest.err'
14540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541   (eval $ac_try) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; } &&
14545          { ac_try='test -s conftest$ac_exeext'
14546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547   (eval $ac_try) 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; }; then
14551   ac_cv_func_shl_load=yes
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556 ac_cv_func_shl_load=no
14557 fi
14558 rm -f conftest.err conftest.$ac_objext \
14559       conftest$ac_exeext conftest.$ac_ext
14560 fi
14561 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14562 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14563 if test $ac_cv_func_shl_load = yes; then
14564   lt_cv_dlopen="shl_load"
14565 else
14566   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14567 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14568 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   ac_check_lib_save_LIBS=$LIBS
14572 LIBS="-ldld  $LIBS"
14573 cat >conftest.$ac_ext <<_ACEOF
14574 /* confdefs.h.  */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h.  */
14579
14580 /* Override any gcc2 internal prototype to avoid an error.  */
14581 #ifdef __cplusplus
14582 extern "C"
14583 #endif
14584 /* We use char because int might match the return type of a gcc2
14585    builtin and then its argument prototype would still apply.  */
14586 char shl_load ();
14587 int
14588 main ()
14589 {
14590 shl_load ();
14591   ;
14592   return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597   (eval $ac_link) 2>conftest.er1
14598   ac_status=$?
14599   grep -v '^ *+' conftest.er1 >conftest.err
14600   rm -f conftest.er1
14601   cat conftest.err >&5
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); } &&
14604          { ac_try='test -z "$ac_cxx_werror_flag"
14605                          || test ! -s conftest.err'
14606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607   (eval $ac_try) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; } &&
14611          { ac_try='test -s conftest$ac_exeext'
14612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613   (eval $ac_try) 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; }; then
14617   ac_cv_lib_dld_shl_load=yes
14618 else
14619   echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622 ac_cv_lib_dld_shl_load=no
14623 fi
14624 rm -f conftest.err conftest.$ac_objext \
14625       conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
14627 fi
14628 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14629 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14630 if test $ac_cv_lib_dld_shl_load = yes; then
14631   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14632 else
14633   echo "$as_me:$LINENO: checking for dlopen" >&5
14634 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14635 if test "${ac_cv_func_dlopen+set}" = set; then
14636   echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638   cat >conftest.$ac_ext <<_ACEOF
14639 /* confdefs.h.  */
14640 _ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h.  */
14644 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14646 #define dlopen innocuous_dlopen
14647
14648 /* System header to define __stub macros and hopefully few prototypes,
14649     which can conflict with char dlopen (); below.
14650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14651     <limits.h> exists even on freestanding compilers.  */
14652
14653 #ifdef __STDC__
14654 # include <limits.h>
14655 #else
14656 # include <assert.h>
14657 #endif
14658
14659 #undef dlopen
14660
14661 /* Override any gcc2 internal prototype to avoid an error.  */
14662 #ifdef __cplusplus
14663 extern "C"
14664 {
14665 #endif
14666 /* We use char because int might match the return type of a gcc2
14667    builtin and then its argument prototype would still apply.  */
14668 char dlopen ();
14669 /* The GNU C library defines this for functions which it implements
14670     to always fail with ENOSYS.  Some functions are actually named
14671     something starting with __ and the normal name is an alias.  */
14672 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14673 choke me
14674 #else
14675 char (*f) () = dlopen;
14676 #endif
14677 #ifdef __cplusplus
14678 }
14679 #endif
14680
14681 int
14682 main ()
14683 {
14684 return f != dlopen;
14685   ;
14686   return 0;
14687 }
14688 _ACEOF
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14691   (eval $ac_link) 2>conftest.er1
14692   ac_status=$?
14693   grep -v '^ *+' conftest.er1 >conftest.err
14694   rm -f conftest.er1
14695   cat conftest.err >&5
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); } &&
14698          { ac_try='test -z "$ac_cxx_werror_flag"
14699                          || test ! -s conftest.err'
14700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701   (eval $ac_try) 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); }; } &&
14705          { ac_try='test -s conftest$ac_exeext'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; }; then
14711   ac_cv_func_dlopen=yes
14712 else
14713   echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14715
14716 ac_cv_func_dlopen=no
14717 fi
14718 rm -f conftest.err conftest.$ac_objext \
14719       conftest$ac_exeext conftest.$ac_ext
14720 fi
14721 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14723 if test $ac_cv_func_dlopen = yes; then
14724   lt_cv_dlopen="dlopen"
14725 else
14726   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14727 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14729   echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731   ac_check_lib_save_LIBS=$LIBS
14732 LIBS="-ldl  $LIBS"
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h.  */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h.  */
14739
14740 /* Override any gcc2 internal prototype to avoid an error.  */
14741 #ifdef __cplusplus
14742 extern "C"
14743 #endif
14744 /* We use char because int might match the return type of a gcc2
14745    builtin and then its argument prototype would still apply.  */
14746 char dlopen ();
14747 int
14748 main ()
14749 {
14750 dlopen ();
14751   ;
14752   return 0;
14753 }
14754 _ACEOF
14755 rm -f conftest.$ac_objext conftest$ac_exeext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14757   (eval $ac_link) 2>conftest.er1
14758   ac_status=$?
14759   grep -v '^ *+' conftest.er1 >conftest.err
14760   rm -f conftest.er1
14761   cat conftest.err >&5
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } &&
14764          { ac_try='test -z "$ac_cxx_werror_flag"
14765                          || test ! -s conftest.err'
14766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767   (eval $ac_try) 2>&5
14768   ac_status=$?
14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); }; } &&
14771          { ac_try='test -s conftest$ac_exeext'
14772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773   (eval $ac_try) 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); }; }; then
14777   ac_cv_lib_dl_dlopen=yes
14778 else
14779   echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782 ac_cv_lib_dl_dlopen=no
14783 fi
14784 rm -f conftest.err conftest.$ac_objext \
14785       conftest$ac_exeext conftest.$ac_ext
14786 LIBS=$ac_check_lib_save_LIBS
14787 fi
14788 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14789 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14790 if test $ac_cv_lib_dl_dlopen = yes; then
14791   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14792 else
14793   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14794 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14795 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798   ac_check_lib_save_LIBS=$LIBS
14799 LIBS="-lsvld  $LIBS"
14800 cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806
14807 /* Override any gcc2 internal prototype to avoid an error.  */
14808 #ifdef __cplusplus
14809 extern "C"
14810 #endif
14811 /* We use char because int might match the return type of a gcc2
14812    builtin and then its argument prototype would still apply.  */
14813 char dlopen ();
14814 int
14815 main ()
14816 {
14817 dlopen ();
14818   ;
14819   return 0;
14820 }
14821 _ACEOF
14822 rm -f conftest.$ac_objext conftest$ac_exeext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824   (eval $ac_link) 2>conftest.er1
14825   ac_status=$?
14826   grep -v '^ *+' conftest.er1 >conftest.err
14827   rm -f conftest.er1
14828   cat conftest.err >&5
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); } &&
14831          { ac_try='test -z "$ac_cxx_werror_flag"
14832                          || test ! -s conftest.err'
14833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834   (eval $ac_try) 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); }; } &&
14838          { ac_try='test -s conftest$ac_exeext'
14839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840   (eval $ac_try) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; }; then
14844   ac_cv_lib_svld_dlopen=yes
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_cv_lib_svld_dlopen=no
14850 fi
14851 rm -f conftest.err conftest.$ac_objext \
14852       conftest$ac_exeext conftest.$ac_ext
14853 LIBS=$ac_check_lib_save_LIBS
14854 fi
14855 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14856 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14857 if test $ac_cv_lib_svld_dlopen = yes; then
14858   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14859 else
14860   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14863   echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865   ac_check_lib_save_LIBS=$LIBS
14866 LIBS="-ldld  $LIBS"
14867 cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h.  */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h.  */
14873
14874 /* Override any gcc2 internal prototype to avoid an error.  */
14875 #ifdef __cplusplus
14876 extern "C"
14877 #endif
14878 /* We use char because int might match the return type of a gcc2
14879    builtin and then its argument prototype would still apply.  */
14880 char dld_link ();
14881 int
14882 main ()
14883 {
14884 dld_link ();
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891   (eval $ac_link) 2>conftest.er1
14892   ac_status=$?
14893   grep -v '^ *+' conftest.er1 >conftest.err
14894   rm -f conftest.er1
14895   cat conftest.err >&5
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); } &&
14898          { ac_try='test -z "$ac_cxx_werror_flag"
14899                          || test ! -s conftest.err'
14900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901   (eval $ac_try) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); }; } &&
14905          { ac_try='test -s conftest$ac_exeext'
14906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907   (eval $ac_try) 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); }; }; then
14911   ac_cv_lib_dld_dld_link=yes
14912 else
14913   echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14915
14916 ac_cv_lib_dld_dld_link=no
14917 fi
14918 rm -f conftest.err conftest.$ac_objext \
14919       conftest$ac_exeext conftest.$ac_ext
14920 LIBS=$ac_check_lib_save_LIBS
14921 fi
14922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14923 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14924 if test $ac_cv_lib_dld_dld_link = yes; then
14925   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14926 fi
14927
14928
14929 fi
14930
14931
14932 fi
14933
14934
14935 fi
14936
14937
14938 fi
14939
14940
14941 fi
14942
14943     ;;
14944   esac
14945
14946   if test "x$lt_cv_dlopen" != xno; then
14947     enable_dlopen=yes
14948   else
14949     enable_dlopen=no
14950   fi
14951
14952   case $lt_cv_dlopen in
14953   dlopen)
14954     save_CPPFLAGS="$CPPFLAGS"
14955     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14956
14957     save_LDFLAGS="$LDFLAGS"
14958     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14959
14960     save_LIBS="$LIBS"
14961     LIBS="$lt_cv_dlopen_libs $LIBS"
14962
14963     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14964 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14965 if test "${lt_cv_dlopen_self+set}" = set; then
14966   echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968           if test "$cross_compiling" = yes; then :
14969   lt_cv_dlopen_self=cross
14970 else
14971   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14972   lt_status=$lt_dlunknown
14973   cat > conftest.$ac_ext <<EOF
14974 #line 14974 "configure"
14975 #include "confdefs.h"
14976
14977 #if HAVE_DLFCN_H
14978 #include <dlfcn.h>
14979 #endif
14980
14981 #include <stdio.h>
14982
14983 #ifdef RTLD_GLOBAL
14984 #  define LT_DLGLOBAL           RTLD_GLOBAL
14985 #else
14986 #  ifdef DL_GLOBAL
14987 #    define LT_DLGLOBAL         DL_GLOBAL
14988 #  else
14989 #    define LT_DLGLOBAL         0
14990 #  endif
14991 #endif
14992
14993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14994    find out it does not work in some platform. */
14995 #ifndef LT_DLLAZY_OR_NOW
14996 #  ifdef RTLD_LAZY
14997 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14998 #  else
14999 #    ifdef DL_LAZY
15000 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15001 #    else
15002 #      ifdef RTLD_NOW
15003 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15004 #      else
15005 #        ifdef DL_NOW
15006 #          define LT_DLLAZY_OR_NOW      DL_NOW
15007 #        else
15008 #          define LT_DLLAZY_OR_NOW      0
15009 #        endif
15010 #      endif
15011 #    endif
15012 #  endif
15013 #endif
15014
15015 #ifdef __cplusplus
15016 extern "C" void exit (int);
15017 #endif
15018
15019 void fnord() { int i=42;}
15020 int main ()
15021 {
15022   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15023   int status = $lt_dlunknown;
15024
15025   if (self)
15026     {
15027       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15028       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15029       /* dlclose (self); */
15030     }
15031
15032     exit (status);
15033 }
15034 EOF
15035   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15036   (eval $ac_link) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15040     (./conftest; exit; ) 2>/dev/null
15041     lt_status=$?
15042     case x$lt_status in
15043       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15044       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15045       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15046     esac
15047   else :
15048     # compilation failed
15049     lt_cv_dlopen_self=no
15050   fi
15051 fi
15052 rm -fr conftest*
15053
15054
15055 fi
15056 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15057 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15058
15059     if test "x$lt_cv_dlopen_self" = xyes; then
15060       LDFLAGS="$LDFLAGS $link_static_flag"
15061       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15062 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15063 if test "${lt_cv_dlopen_self_static+set}" = set; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066           if test "$cross_compiling" = yes; then :
15067   lt_cv_dlopen_self_static=cross
15068 else
15069   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15070   lt_status=$lt_dlunknown
15071   cat > conftest.$ac_ext <<EOF
15072 #line 15072 "configure"
15073 #include "confdefs.h"
15074
15075 #if HAVE_DLFCN_H
15076 #include <dlfcn.h>
15077 #endif
15078
15079 #include <stdio.h>
15080
15081 #ifdef RTLD_GLOBAL
15082 #  define LT_DLGLOBAL           RTLD_GLOBAL
15083 #else
15084 #  ifdef DL_GLOBAL
15085 #    define LT_DLGLOBAL         DL_GLOBAL
15086 #  else
15087 #    define LT_DLGLOBAL         0
15088 #  endif
15089 #endif
15090
15091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15092    find out it does not work in some platform. */
15093 #ifndef LT_DLLAZY_OR_NOW
15094 #  ifdef RTLD_LAZY
15095 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15096 #  else
15097 #    ifdef DL_LAZY
15098 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15099 #    else
15100 #      ifdef RTLD_NOW
15101 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15102 #      else
15103 #        ifdef DL_NOW
15104 #          define LT_DLLAZY_OR_NOW      DL_NOW
15105 #        else
15106 #          define LT_DLLAZY_OR_NOW      0
15107 #        endif
15108 #      endif
15109 #    endif
15110 #  endif
15111 #endif
15112
15113 #ifdef __cplusplus
15114 extern "C" void exit (int);
15115 #endif
15116
15117 void fnord() { int i=42;}
15118 int main ()
15119 {
15120   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15121   int status = $lt_dlunknown;
15122
15123   if (self)
15124     {
15125       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15126       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15127       /* dlclose (self); */
15128     }
15129
15130     exit (status);
15131 }
15132 EOF
15133   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134   (eval $ac_link) 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15138     (./conftest; exit; ) 2>/dev/null
15139     lt_status=$?
15140     case x$lt_status in
15141       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15142       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15143       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15144     esac
15145   else :
15146     # compilation failed
15147     lt_cv_dlopen_self_static=no
15148   fi
15149 fi
15150 rm -fr conftest*
15151
15152
15153 fi
15154 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15155 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15156     fi
15157
15158     CPPFLAGS="$save_CPPFLAGS"
15159     LDFLAGS="$save_LDFLAGS"
15160     LIBS="$save_LIBS"
15161     ;;
15162   esac
15163
15164   case $lt_cv_dlopen_self in
15165   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15166   *) enable_dlopen_self=unknown ;;
15167   esac
15168
15169   case $lt_cv_dlopen_self_static in
15170   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15171   *) enable_dlopen_self_static=unknown ;;
15172   esac
15173 fi
15174
15175
15176 # The else clause should only fire when bootstrapping the
15177 # libtool distribution, otherwise you forgot to ship ltmain.sh
15178 # with your package, and you will get complaints that there are
15179 # no rules to generate ltmain.sh.
15180 if test -f "$ltmain"; then
15181   # See if we are running on zsh, and set the options which allow our commands through
15182   # without removal of \ escapes.
15183   if test -n "${ZSH_VERSION+set}" ; then
15184     setopt NO_GLOB_SUBST
15185   fi
15186   # Now quote all the things that may contain metacharacters while being
15187   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15188   # variables and quote the copies for generation of the libtool script.
15189   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15190     SED SHELL STRIP \
15191     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15192     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15193     deplibs_check_method reload_flag reload_cmds need_locks \
15194     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15195     lt_cv_sys_global_symbol_to_c_name_address \
15196     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15197     old_postinstall_cmds old_postuninstall_cmds \
15198     compiler_CXX \
15199     CC_CXX \
15200     LD_CXX \
15201     lt_prog_compiler_wl_CXX \
15202     lt_prog_compiler_pic_CXX \
15203     lt_prog_compiler_static_CXX \
15204     lt_prog_compiler_no_builtin_flag_CXX \
15205     export_dynamic_flag_spec_CXX \
15206     thread_safe_flag_spec_CXX \
15207     whole_archive_flag_spec_CXX \
15208     enable_shared_with_static_runtimes_CXX \
15209     old_archive_cmds_CXX \
15210     old_archive_from_new_cmds_CXX \
15211     predep_objects_CXX \
15212     postdep_objects_CXX \
15213     predeps_CXX \
15214     postdeps_CXX \
15215     compiler_lib_search_path_CXX \
15216     archive_cmds_CXX \
15217     archive_expsym_cmds_CXX \
15218     postinstall_cmds_CXX \
15219     postuninstall_cmds_CXX \
15220     old_archive_from_expsyms_cmds_CXX \
15221     allow_undefined_flag_CXX \
15222     no_undefined_flag_CXX \
15223     export_symbols_cmds_CXX \
15224     hardcode_libdir_flag_spec_CXX \
15225     hardcode_libdir_flag_spec_ld_CXX \
15226     hardcode_libdir_separator_CXX \
15227     hardcode_automatic_CXX \
15228     module_cmds_CXX \
15229     module_expsym_cmds_CXX \
15230     lt_cv_prog_compiler_c_o_CXX \
15231     exclude_expsyms_CXX \
15232     include_expsyms_CXX; do
15233
15234     case $var in
15235     old_archive_cmds_CXX | \
15236     old_archive_from_new_cmds_CXX | \
15237     archive_cmds_CXX | \
15238     archive_expsym_cmds_CXX | \
15239     module_cmds_CXX | \
15240     module_expsym_cmds_CXX | \
15241     old_archive_from_expsyms_cmds_CXX | \
15242     export_symbols_cmds_CXX | \
15243     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15244     postinstall_cmds | postuninstall_cmds | \
15245     old_postinstall_cmds | old_postuninstall_cmds | \
15246     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15247       # Double-quote double-evaled strings.
15248       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15249       ;;
15250     *)
15251       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15252       ;;
15253     esac
15254   done
15255
15256   case $lt_echo in
15257   *'\$0 --fallback-echo"')
15258     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15259     ;;
15260   esac
15261
15262 cfgfile="$ofile"
15263
15264   cat <<__EOF__ >> "$cfgfile"
15265 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15266
15267 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15268
15269 # Shell to use when invoking shell scripts.
15270 SHELL=$lt_SHELL
15271
15272 # Whether or not to build shared libraries.
15273 build_libtool_libs=$enable_shared
15274
15275 # Whether or not to build static libraries.
15276 build_old_libs=$enable_static
15277
15278 # Whether or not to add -lc for building shared libraries.
15279 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15280
15281 # Whether or not to disallow shared libs when runtime libs are static
15282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15283
15284 # Whether or not to optimize for fast installation.
15285 fast_install=$enable_fast_install
15286
15287 # The host system.
15288 host_alias=$host_alias
15289 host=$host
15290 host_os=$host_os
15291
15292 # The build system.
15293 build_alias=$build_alias
15294 build=$build
15295 build_os=$build_os
15296
15297 # An echo program that does not interpret backslashes.
15298 echo=$lt_echo
15299
15300 # The archiver.
15301 AR=$lt_AR
15302 AR_FLAGS=$lt_AR_FLAGS
15303
15304 # A C compiler.
15305 LTCC=$lt_LTCC
15306
15307 # A language-specific compiler.
15308 CC=$lt_compiler_CXX
15309
15310 # Is the compiler the GNU C compiler?
15311 with_gcc=$GCC_CXX
15312
15313 # An ERE matcher.
15314 EGREP=$lt_EGREP
15315
15316 # The linker used to build libraries.
15317 LD=$lt_LD_CXX
15318
15319 # Whether we need hard or soft links.
15320 LN_S=$lt_LN_S
15321
15322 # A BSD-compatible nm program.
15323 NM=$lt_NM
15324
15325 # A symbol stripping program
15326 STRIP=$lt_STRIP
15327
15328 # Used to examine libraries when file_magic_cmd begins "file"
15329 MAGIC_CMD=$MAGIC_CMD
15330
15331 # Used on cygwin: DLL creation program.
15332 DLLTOOL="$DLLTOOL"
15333
15334 # Used on cygwin: object dumper.
15335 OBJDUMP="$OBJDUMP"
15336
15337 # Used on cygwin: assembler.
15338 AS="$AS"
15339
15340 # The name of the directory that contains temporary libtool files.
15341 objdir=$objdir
15342
15343 # How to create reloadable object files.
15344 reload_flag=$lt_reload_flag
15345 reload_cmds=$lt_reload_cmds
15346
15347 # How to pass a linker flag through the compiler.
15348 wl=$lt_lt_prog_compiler_wl_CXX
15349
15350 # Object file suffix (normally "o").
15351 objext="$ac_objext"
15352
15353 # Old archive suffix (normally "a").
15354 libext="$libext"
15355
15356 # Shared library suffix (normally ".so").
15357 shrext_cmds='$shrext_cmds'
15358
15359 # Executable file suffix (normally "").
15360 exeext="$exeext"
15361
15362 # Additional compiler flags for building library objects.
15363 pic_flag=$lt_lt_prog_compiler_pic_CXX
15364 pic_mode=$pic_mode
15365
15366 # What is the maximum length of a command?
15367 max_cmd_len=$lt_cv_sys_max_cmd_len
15368
15369 # Does compiler simultaneously support -c and -o options?
15370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15371
15372 # Must we lock files when doing compilation?
15373 need_locks=$lt_need_locks
15374
15375 # Do we need the lib prefix for modules?
15376 need_lib_prefix=$need_lib_prefix
15377
15378 # Do we need a version for libraries?
15379 need_version=$need_version
15380
15381 # Whether dlopen is supported.
15382 dlopen_support=$enable_dlopen
15383
15384 # Whether dlopen of programs is supported.
15385 dlopen_self=$enable_dlopen_self
15386
15387 # Whether dlopen of statically linked programs is supported.
15388 dlopen_self_static=$enable_dlopen_self_static
15389
15390 # Compiler flag to prevent dynamic linking.
15391 link_static_flag=$lt_lt_prog_compiler_static_CXX
15392
15393 # Compiler flag to turn off builtin functions.
15394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15395
15396 # Compiler flag to allow reflexive dlopens.
15397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15398
15399 # Compiler flag to generate shared objects directly from archives.
15400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15401
15402 # Compiler flag to generate thread-safe objects.
15403 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15404
15405 # Library versioning type.
15406 version_type=$version_type
15407
15408 # Format of library name prefix.
15409 libname_spec=$lt_libname_spec
15410
15411 # List of archive names.  First name is the real one, the rest are links.
15412 # The last name is the one that the linker finds with -lNAME.
15413 library_names_spec=$lt_library_names_spec
15414
15415 # The coded name of the library, if different from the real name.
15416 soname_spec=$lt_soname_spec
15417
15418 # Commands used to build and install an old-style archive.
15419 RANLIB=$lt_RANLIB
15420 old_archive_cmds=$lt_old_archive_cmds_CXX
15421 old_postinstall_cmds=$lt_old_postinstall_cmds
15422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15423
15424 # Create an old-style archive from a shared archive.
15425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15426
15427 # Create a temporary old-style archive to link instead of a shared archive.
15428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15429
15430 # Commands used to build and install a shared archive.
15431 archive_cmds=$lt_archive_cmds_CXX
15432 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15433 postinstall_cmds=$lt_postinstall_cmds
15434 postuninstall_cmds=$lt_postuninstall_cmds
15435
15436 # Commands used to build a loadable module (assumed same as above if empty)
15437 module_cmds=$lt_module_cmds_CXX
15438 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15439
15440 # Commands to strip libraries.
15441 old_striplib=$lt_old_striplib
15442 striplib=$lt_striplib
15443
15444 # Dependencies to place before the objects being linked to create a
15445 # shared library.
15446 predep_objects=$lt_predep_objects_CXX
15447
15448 # Dependencies to place after the objects being linked to create a
15449 # shared library.
15450 postdep_objects=$lt_postdep_objects_CXX
15451
15452 # Dependencies to place before the objects being linked to create a
15453 # shared library.
15454 predeps=$lt_predeps_CXX
15455
15456 # Dependencies to place after the objects being linked to create a
15457 # shared library.
15458 postdeps=$lt_postdeps_CXX
15459
15460 # The library search path used internally by the compiler when linking
15461 # a shared library.
15462 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15463
15464 # Method to check whether dependent libraries are shared objects.
15465 deplibs_check_method=$lt_deplibs_check_method
15466
15467 # Command to use when deplibs_check_method == file_magic.
15468 file_magic_cmd=$lt_file_magic_cmd
15469
15470 # Flag that allows shared libraries with undefined symbols to be built.
15471 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15472
15473 # Flag that forces no undefined symbols.
15474 no_undefined_flag=$lt_no_undefined_flag_CXX
15475
15476 # Commands used to finish a libtool library installation in a directory.
15477 finish_cmds=$lt_finish_cmds
15478
15479 # Same as above, but a single script fragment to be evaled but not shown.
15480 finish_eval=$lt_finish_eval
15481
15482 # Take the output of nm and produce a listing of raw symbols and C names.
15483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15484
15485 # Transform the output of nm in a proper C declaration
15486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15487
15488 # Transform the output of nm in a C name address pair
15489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15490
15491 # This is the shared library runtime path variable.
15492 runpath_var=$runpath_var
15493
15494 # This is the shared library path variable.
15495 shlibpath_var=$shlibpath_var
15496
15497 # Is shlibpath searched before the hard-coded library search path?
15498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15499
15500 # How to hardcode a shared library path into an executable.
15501 hardcode_action=$hardcode_action_CXX
15502
15503 # Whether we should hardcode library paths into libraries.
15504 hardcode_into_libs=$hardcode_into_libs
15505
15506 # Flag to hardcode \$libdir into a binary during linking.
15507 # This must work even if \$libdir does not exist.
15508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15509
15510 # If ld is used when linking, flag to hardcode \$libdir into
15511 # a binary during linking. This must work even if \$libdir does
15512 # not exist.
15513 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15514
15515 # Whether we need a single -rpath flag with a separated argument.
15516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15517
15518 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15519 # resulting binary.
15520 hardcode_direct=$hardcode_direct_CXX
15521
15522 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15523 # resulting binary.
15524 hardcode_minus_L=$hardcode_minus_L_CXX
15525
15526 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15527 # the resulting binary.
15528 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15529
15530 # Set to yes if building a shared library automatically hardcodes DIR into the library
15531 # and all subsequent libraries and executables linked against it.
15532 hardcode_automatic=$hardcode_automatic_CXX
15533
15534 # Variables whose values should be saved in libtool wrapper scripts and
15535 # restored at relink time.
15536 variables_saved_for_relink="$variables_saved_for_relink"
15537
15538 # Whether libtool must link a program against all its dependency libraries.
15539 link_all_deplibs=$link_all_deplibs_CXX
15540
15541 # Compile-time system search path for libraries
15542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15543
15544 # Run-time system search path for libraries
15545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15546
15547 # Fix the shell variable \$srcfile for the compiler.
15548 fix_srcfile_path="$fix_srcfile_path_CXX"
15549
15550 # Set to yes if exported symbols are required.
15551 always_export_symbols=$always_export_symbols_CXX
15552
15553 # The commands to list exported symbols.
15554 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15555
15556 # The commands to extract the exported symbol list from a shared archive.
15557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15558
15559 # Symbols that should not be listed in the preloaded symbols.
15560 exclude_expsyms=$lt_exclude_expsyms_CXX
15561
15562 # Symbols that must always be exported.
15563 include_expsyms=$lt_include_expsyms_CXX
15564
15565 # ### END LIBTOOL TAG CONFIG: $tagname
15566
15567 __EOF__
15568
15569
15570 else
15571   # If there is no Makefile yet, we rely on a make rule to execute
15572   # `config.status --recheck' to rerun these tests and create the
15573   # libtool script then.
15574   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15575   if test -f "$ltmain_in"; then
15576     test -f Makefile && make "$ltmain"
15577   fi
15578 fi
15579
15580
15581 ac_ext=c
15582 ac_cpp='$CPP $CPPFLAGS'
15583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15586
15587 CC=$lt_save_CC
15588 LDCXX=$LD
15589 LD=$lt_save_LD
15590 GCC=$lt_save_GCC
15591 with_gnu_ldcxx=$with_gnu_ld
15592 with_gnu_ld=$lt_save_with_gnu_ld
15593 lt_cv_path_LDCXX=$lt_cv_path_LD
15594 lt_cv_path_LD=$lt_save_path_LD
15595 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15596 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15597
15598         else
15599           tagname=""
15600         fi
15601         ;;
15602
15603       F77)
15604         if test -n "$F77" && test "X$F77" != "Xno"; then
15605
15606 ac_ext=f
15607 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15608 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15609 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15610
15611
15612 archive_cmds_need_lc_F77=no
15613 allow_undefined_flag_F77=
15614 always_export_symbols_F77=no
15615 archive_expsym_cmds_F77=
15616 export_dynamic_flag_spec_F77=
15617 hardcode_direct_F77=no
15618 hardcode_libdir_flag_spec_F77=
15619 hardcode_libdir_flag_spec_ld_F77=
15620 hardcode_libdir_separator_F77=
15621 hardcode_minus_L_F77=no
15622 hardcode_automatic_F77=no
15623 module_cmds_F77=
15624 module_expsym_cmds_F77=
15625 link_all_deplibs_F77=unknown
15626 old_archive_cmds_F77=$old_archive_cmds
15627 no_undefined_flag_F77=
15628 whole_archive_flag_spec_F77=
15629 enable_shared_with_static_runtimes_F77=no
15630
15631 # Source file extension for f77 test sources.
15632 ac_ext=f
15633
15634 # Object file extension for compiled f77 test sources.
15635 objext=o
15636 objext_F77=$objext
15637
15638 # Code to be used in simple compile tests
15639 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15640
15641 # Code to be used in simple link tests
15642 lt_simple_link_test_code="      program t\n      end\n"
15643
15644 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15645
15646 # If no C compiler was specified, use CC.
15647 LTCC=${LTCC-"$CC"}
15648
15649 # Allow CC to be a program name with arguments.
15650 compiler=$CC
15651
15652
15653 # save warnings/boilerplate of simple test code
15654 ac_outfile=conftest.$ac_objext
15655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15657 _lt_compiler_boilerplate=`cat conftest.err`
15658 $rm conftest*
15659
15660 ac_outfile=conftest.$ac_objext
15661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15663 _lt_linker_boilerplate=`cat conftest.err`
15664 $rm conftest*
15665
15666
15667 # Allow CC to be a program name with arguments.
15668 lt_save_CC="$CC"
15669 CC=${F77-"f77"}
15670 compiler=$CC
15671 compiler_F77=$CC
15672 for cc_temp in $compiler""; do
15673   case $cc_temp in
15674     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15675     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15676     \-*) ;;
15677     *) break;;
15678   esac
15679 done
15680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15681
15682
15683 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15684 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15685 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15686 echo "${ECHO_T}$can_build_shared" >&6
15687
15688 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15689 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15690 test "$can_build_shared" = "no" && enable_shared=no
15691
15692 # On AIX, shared libraries and static libraries use the same namespace, and
15693 # are all built from PIC.
15694 case "$host_os" in
15695 aix3*)
15696   test "$enable_shared" = yes && enable_static=no
15697   if test -n "$RANLIB"; then
15698     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15699     postinstall_cmds='$RANLIB $lib'
15700   fi
15701   ;;
15702 aix4* | aix5*)
15703   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15704     test "$enable_shared" = yes && enable_static=no
15705   fi
15706   ;;
15707 esac
15708 echo "$as_me:$LINENO: result: $enable_shared" >&5
15709 echo "${ECHO_T}$enable_shared" >&6
15710
15711 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15712 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15713 # Make sure either enable_shared or enable_static is yes.
15714 test "$enable_shared" = yes || enable_static=yes
15715 echo "$as_me:$LINENO: result: $enable_static" >&5
15716 echo "${ECHO_T}$enable_static" >&6
15717
15718 test "$ld_shlibs_F77" = no && can_build_shared=no
15719
15720 GCC_F77="$G77"
15721 LD_F77="$LD"
15722
15723 lt_prog_compiler_wl_F77=
15724 lt_prog_compiler_pic_F77=
15725 lt_prog_compiler_static_F77=
15726
15727 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15728 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15729
15730   if test "$GCC" = yes; then
15731     lt_prog_compiler_wl_F77='-Wl,'
15732     lt_prog_compiler_static_F77='-static'
15733
15734     case $host_os in
15735       aix*)
15736       # All AIX code is PIC.
15737       if test "$host_cpu" = ia64; then
15738         # AIX 5 now supports IA64 processor
15739         lt_prog_compiler_static_F77='-Bstatic'
15740       fi
15741       ;;
15742
15743     amigaos*)
15744       # FIXME: we need at least 68020 code to build shared libraries, but
15745       # adding the `-m68020' flag to GCC prevents building anything better,
15746       # like `-m68040'.
15747       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15748       ;;
15749
15750     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15751       # PIC is the default for these OSes.
15752       ;;
15753
15754     mingw* | pw32* | os2*)
15755       # This hack is so that the source file can tell whether it is being
15756       # built for inclusion in a dll (and should export symbols for example).
15757       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15758       ;;
15759
15760     darwin* | rhapsody*)
15761       # PIC is the default on this platform
15762       # Common symbols not allowed in MH_DYLIB files
15763       lt_prog_compiler_pic_F77='-fno-common'
15764       ;;
15765
15766     msdosdjgpp*)
15767       # Just because we use GCC doesn't mean we suddenly get shared libraries
15768       # on systems that don't support them.
15769       lt_prog_compiler_can_build_shared_F77=no
15770       enable_shared=no
15771       ;;
15772
15773     sysv4*MP*)
15774       if test -d /usr/nec; then
15775         lt_prog_compiler_pic_F77=-Kconform_pic
15776       fi
15777       ;;
15778
15779     hpux*)
15780       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15781       # not for PA HP-UX.
15782       case "$host_cpu" in
15783       hppa*64*|ia64*)
15784         # +Z the default
15785         ;;
15786       *)
15787         lt_prog_compiler_pic_F77='-fPIC'
15788         ;;
15789       esac
15790       ;;
15791
15792     *)
15793       lt_prog_compiler_pic_F77='-fPIC'
15794       ;;
15795     esac
15796   else
15797     # PORTME Check for flag to pass linker flags through the system compiler.
15798     case $host_os in
15799     aix*)
15800       lt_prog_compiler_wl_F77='-Wl,'
15801       if test "$host_cpu" = ia64; then
15802         # AIX 5 now supports IA64 processor
15803         lt_prog_compiler_static_F77='-Bstatic'
15804       else
15805         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15806       fi
15807       ;;
15808       darwin*)
15809         # PIC is the default on this platform
15810         # Common symbols not allowed in MH_DYLIB files
15811        case $cc_basename in
15812          xlc*)
15813          lt_prog_compiler_pic_F77='-qnocommon'
15814          lt_prog_compiler_wl_F77='-Wl,'
15815          ;;
15816        esac
15817        ;;
15818
15819     mingw* | pw32* | os2*)
15820       # This hack is so that the source file can tell whether it is being
15821       # built for inclusion in a dll (and should export symbols for example).
15822       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15823       ;;
15824
15825     hpux9* | hpux10* | hpux11*)
15826       lt_prog_compiler_wl_F77='-Wl,'
15827       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15828       # not for PA HP-UX.
15829       case "$host_cpu" in
15830       hppa*64*|ia64*)
15831         # +Z the default
15832         ;;
15833       *)
15834         lt_prog_compiler_pic_F77='+Z'
15835         ;;
15836       esac
15837       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15838       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15839       ;;
15840
15841     irix5* | irix6* | nonstopux*)
15842       lt_prog_compiler_wl_F77='-Wl,'
15843       # PIC (with -KPIC) is the default.
15844       lt_prog_compiler_static_F77='-non_shared'
15845       ;;
15846
15847     newsos6)
15848       lt_prog_compiler_pic_F77='-KPIC'
15849       lt_prog_compiler_static_F77='-Bstatic'
15850       ;;
15851
15852     linux*)
15853       case $cc_basename in
15854       icc* | ecc*)
15855         lt_prog_compiler_wl_F77='-Wl,'
15856         lt_prog_compiler_pic_F77='-KPIC'
15857         lt_prog_compiler_static_F77='-static'
15858         ;;
15859       pgcc* | pgf77* | pgf90*)
15860         # Portland Group compilers (*not* the Pentium gcc compiler,
15861         # which looks to be a dead project)
15862         lt_prog_compiler_wl_F77='-Wl,'
15863         lt_prog_compiler_pic_F77='-fpic'
15864         lt_prog_compiler_static_F77='-static'
15865         ;;
15866       ccc*)
15867         lt_prog_compiler_wl_F77='-Wl,'
15868         # All Alpha code is PIC.
15869         lt_prog_compiler_static_F77='-non_shared'
15870         ;;
15871       esac
15872       ;;
15873
15874     osf3* | osf4* | osf5*)
15875       lt_prog_compiler_wl_F77='-Wl,'
15876       # All OSF/1 code is PIC.
15877       lt_prog_compiler_static_F77='-non_shared'
15878       ;;
15879
15880     sco3.2v5*)
15881       lt_prog_compiler_pic_F77='-Kpic'
15882       lt_prog_compiler_static_F77='-dn'
15883       ;;
15884
15885     solaris*)
15886       lt_prog_compiler_pic_F77='-KPIC'
15887       lt_prog_compiler_static_F77='-Bstatic'
15888       case $cc_basename in
15889       f77* | f90* | f95*)
15890         lt_prog_compiler_wl_F77='-Qoption ld ';;
15891       *)
15892         lt_prog_compiler_wl_F77='-Wl,';;
15893       esac
15894       ;;
15895
15896     sunos4*)
15897       lt_prog_compiler_wl_F77='-Qoption ld '
15898       lt_prog_compiler_pic_F77='-PIC'
15899       lt_prog_compiler_static_F77='-Bstatic'
15900       ;;
15901
15902     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15903       lt_prog_compiler_wl_F77='-Wl,'
15904       lt_prog_compiler_pic_F77='-KPIC'
15905       lt_prog_compiler_static_F77='-Bstatic'
15906       ;;
15907
15908     sysv4*MP*)
15909       if test -d /usr/nec ;then
15910         lt_prog_compiler_pic_F77='-Kconform_pic'
15911         lt_prog_compiler_static_F77='-Bstatic'
15912       fi
15913       ;;
15914
15915     unicos*)
15916       lt_prog_compiler_wl_F77='-Wl,'
15917       lt_prog_compiler_can_build_shared_F77=no
15918       ;;
15919
15920     uts4*)
15921       lt_prog_compiler_pic_F77='-pic'
15922       lt_prog_compiler_static_F77='-Bstatic'
15923       ;;
15924
15925     *)
15926       lt_prog_compiler_can_build_shared_F77=no
15927       ;;
15928     esac
15929   fi
15930
15931 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15932 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15933
15934 #
15935 # Check to make sure the PIC flag actually works.
15936 #
15937 if test -n "$lt_prog_compiler_pic_F77"; then
15938
15939 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15940 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15941 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15942   echo $ECHO_N "(cached) $ECHO_C" >&6
15943 else
15944   lt_prog_compiler_pic_works_F77=no
15945   ac_outfile=conftest.$ac_objext
15946    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15947    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15948    # Insert the option either (1) after the last *FLAGS variable, or
15949    # (2) before a word containing "conftest.", or (3) at the end.
15950    # Note that $ac_compile itself does not contain backslashes and begins
15951    # with a dollar sign (not a hyphen), so the echo should work correctly.
15952    # The option is referenced via a variable to avoid confusing sed.
15953    lt_compile=`echo "$ac_compile" | $SED \
15954    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15956    -e 's:$: $lt_compiler_flag:'`
15957    (eval echo "\"\$as_me:15957: $lt_compile\"" >&5)
15958    (eval "$lt_compile" 2>conftest.err)
15959    ac_status=$?
15960    cat conftest.err >&5
15961    echo "$as_me:15961: \$? = $ac_status" >&5
15962    if (exit $ac_status) && test -s "$ac_outfile"; then
15963      # The compiler can only warn and ignore the option if not recognized
15964      # So say no if there are warnings other than the usual output.
15965      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15966      $SED '/^$/d' conftest.err >conftest.er2
15967      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15968        lt_prog_compiler_pic_works_F77=yes
15969      fi
15970    fi
15971    $rm conftest*
15972
15973 fi
15974 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15975 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15976
15977 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15978     case $lt_prog_compiler_pic_F77 in
15979      "" | " "*) ;;
15980      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15981      esac
15982 else
15983     lt_prog_compiler_pic_F77=
15984      lt_prog_compiler_can_build_shared_F77=no
15985 fi
15986
15987 fi
15988 case "$host_os" in
15989   # For platforms which do not support PIC, -DPIC is meaningless:
15990   *djgpp*)
15991     lt_prog_compiler_pic_F77=
15992     ;;
15993   *)
15994     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15995     ;;
15996 esac
15997
15998 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15999 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16000 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16001   echo $ECHO_N "(cached) $ECHO_C" >&6
16002 else
16003   lt_cv_prog_compiler_c_o_F77=no
16004    $rm -r conftest 2>/dev/null
16005    mkdir conftest
16006    cd conftest
16007    mkdir out
16008    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16009
16010    lt_compiler_flag="-o out/conftest2.$ac_objext"
16011    # Insert the option either (1) after the last *FLAGS variable, or
16012    # (2) before a word containing "conftest.", or (3) at the end.
16013    # Note that $ac_compile itself does not contain backslashes and begins
16014    # with a dollar sign (not a hyphen), so the echo should work correctly.
16015    lt_compile=`echo "$ac_compile" | $SED \
16016    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16018    -e 's:$: $lt_compiler_flag:'`
16019    (eval echo "\"\$as_me:16019: $lt_compile\"" >&5)
16020    (eval "$lt_compile" 2>out/conftest.err)
16021    ac_status=$?
16022    cat out/conftest.err >&5
16023    echo "$as_me:16023: \$? = $ac_status" >&5
16024    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16025    then
16026      # The compiler can only warn and ignore the option if not recognized
16027      # So say no if there are warnings
16028      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16029      $SED '/^$/d' out/conftest.err >out/conftest.er2
16030      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16031        lt_cv_prog_compiler_c_o_F77=yes
16032      fi
16033    fi
16034    chmod u+w .
16035    $rm conftest*
16036    # SGI C++ compiler will create directory out/ii_files/ for
16037    # template instantiation
16038    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16039    $rm out/* && rmdir out
16040    cd ..
16041    rmdir conftest
16042    $rm conftest*
16043
16044 fi
16045 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16046 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16047
16048
16049 hard_links="nottested"
16050 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16051   # do not overwrite the value of need_locks provided by the user
16052   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16053 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16054   hard_links=yes
16055   $rm conftest*
16056   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16057   touch conftest.a
16058   ln conftest.a conftest.b 2>&5 || hard_links=no
16059   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16060   echo "$as_me:$LINENO: result: $hard_links" >&5
16061 echo "${ECHO_T}$hard_links" >&6
16062   if test "$hard_links" = no; then
16063     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16064 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16065     need_locks=warn
16066   fi
16067 else
16068   need_locks=no
16069 fi
16070
16071 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16072 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16073
16074   runpath_var=
16075   allow_undefined_flag_F77=
16076   enable_shared_with_static_runtimes_F77=no
16077   archive_cmds_F77=
16078   archive_expsym_cmds_F77=
16079   old_archive_From_new_cmds_F77=
16080   old_archive_from_expsyms_cmds_F77=
16081   export_dynamic_flag_spec_F77=
16082   whole_archive_flag_spec_F77=
16083   thread_safe_flag_spec_F77=
16084   hardcode_libdir_flag_spec_F77=
16085   hardcode_libdir_flag_spec_ld_F77=
16086   hardcode_libdir_separator_F77=
16087   hardcode_direct_F77=no
16088   hardcode_minus_L_F77=no
16089   hardcode_shlibpath_var_F77=unsupported
16090   link_all_deplibs_F77=unknown
16091   hardcode_automatic_F77=no
16092   module_cmds_F77=
16093   module_expsym_cmds_F77=
16094   always_export_symbols_F77=no
16095   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16096   # include_expsyms should be a list of space-separated symbols to be *always*
16097   # included in the symbol list
16098   include_expsyms_F77=
16099   # exclude_expsyms can be an extended regexp of symbols to exclude
16100   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16101   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16102   # as well as any symbol that contains `d'.
16103   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16104   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16105   # platforms (ab)use it in PIC code, but their linkers get confused if
16106   # the symbol is explicitly referenced.  Since portable code cannot
16107   # rely on this symbol name, it's probably fine to never include it in
16108   # preloaded symbol tables.
16109   extract_expsyms_cmds=
16110   # Just being paranoid about ensuring that cc_basename is set.
16111   for cc_temp in $compiler""; do
16112   case $cc_temp in
16113     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16114     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16115     \-*) ;;
16116     *) break;;
16117   esac
16118 done
16119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16120
16121   case $host_os in
16122   cygwin* | mingw* | pw32*)
16123     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16124     # When not using gcc, we currently assume that we are using
16125     # Microsoft Visual C++.
16126     if test "$GCC" != yes; then
16127       with_gnu_ld=no
16128     fi
16129     ;;
16130   openbsd*)
16131     with_gnu_ld=no
16132     ;;
16133   esac
16134
16135   ld_shlibs_F77=yes
16136   if test "$with_gnu_ld" = yes; then
16137     # If archive_cmds runs LD, not CC, wlarc should be empty
16138     wlarc='${wl}'
16139
16140     # Set some defaults for GNU ld with shared library support. These
16141     # are reset later if shared libraries are not supported. Putting them
16142     # here allows them to be overridden if necessary.
16143     runpath_var=LD_RUN_PATH
16144     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16145     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16146     # ancient GNU ld didn't support --whole-archive et. al.
16147     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16148         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16149       else
16150         whole_archive_flag_spec_F77=
16151     fi
16152     supports_anon_versioning=no
16153     case `$LD -v 2>/dev/null` in
16154       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16155       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16156       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16157       *\ 2.11.*) ;; # other 2.11 versions
16158       *) supports_anon_versioning=yes ;;
16159     esac
16160
16161     # See if GNU ld supports shared libraries.
16162     case $host_os in
16163     aix3* | aix4* | aix5*)
16164       # On AIX/PPC, the GNU linker is very broken
16165       if test "$host_cpu" != ia64; then
16166         ld_shlibs_F77=no
16167         cat <<EOF 1>&2
16168
16169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16170 *** to be unable to reliably create shared libraries on AIX.
16171 *** Therefore, libtool is disabling shared libraries support.  If you
16172 *** really care for shared libraries, you may want to modify your PATH
16173 *** so that a non-GNU linker is found, and then restart.
16174
16175 EOF
16176       fi
16177       ;;
16178
16179     amigaos*)
16180       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)'
16181       hardcode_libdir_flag_spec_F77='-L$libdir'
16182       hardcode_minus_L_F77=yes
16183
16184       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16185       # that the semantics of dynamic libraries on AmigaOS, at least up
16186       # to version 4, is to share data among multiple programs linked
16187       # with the same dynamic library.  Since this doesn't match the
16188       # behavior of shared libraries on other platforms, we can't use
16189       # them.
16190       ld_shlibs_F77=no
16191       ;;
16192
16193     beos*)
16194       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16195         allow_undefined_flag_F77=unsupported
16196         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16197         # support --undefined.  This deserves some investigation.  FIXME
16198         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16199       else
16200         ld_shlibs_F77=no
16201       fi
16202       ;;
16203
16204     cygwin* | mingw* | pw32*)
16205       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16206       # as there is no search path for DLLs.
16207       hardcode_libdir_flag_spec_F77='-L$libdir'
16208       allow_undefined_flag_F77=unsupported
16209       always_export_symbols_F77=no
16210       enable_shared_with_static_runtimes_F77=yes
16211       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16212
16213       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16214         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16215         # If the export-symbols file already is a .def file (1st line
16216         # is EXPORTS), use it as is; otherwise, prepend...
16217         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16218           cp $export_symbols $output_objdir/$soname.def;
16219         else
16220           echo EXPORTS > $output_objdir/$soname.def;
16221           cat $export_symbols >> $output_objdir/$soname.def;
16222         fi~
16223         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16224       else
16225         ld_shlibs_F77=no
16226       fi
16227       ;;
16228
16229     linux*)
16230       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16231         tmp_addflag=
16232         case $cc_basename,$host_cpu in
16233         pgcc*)                          # Portland Group C compiler
16234           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'
16235           tmp_addflag=' $pic_flag'
16236           ;;
16237         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16238           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'
16239           tmp_addflag=' $pic_flag -Mnomain' ;;
16240         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16241           tmp_addflag=' -i_dynamic' ;;
16242         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16243           tmp_addflag=' -i_dynamic -nofor_main' ;;
16244         ifc* | ifort*)                  # Intel Fortran compiler
16245           tmp_addflag=' -nofor_main' ;;
16246         esac
16247         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16248
16249         if test $supports_anon_versioning = yes; then
16250           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16251   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16252   $echo "local: *; };" >> $output_objdir/$libname.ver~
16253           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16254         fi
16255       else
16256         ld_shlibs_F77=no
16257       fi
16258       ;;
16259
16260     netbsd*)
16261       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16262         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16263         wlarc=
16264       else
16265         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16266         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16267       fi
16268       ;;
16269
16270     solaris* | sysv5*)
16271       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16272         ld_shlibs_F77=no
16273         cat <<EOF 1>&2
16274
16275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16276 *** create shared libraries on Solaris systems.  Therefore, libtool
16277 *** is disabling shared libraries support.  We urge you to upgrade GNU
16278 *** binutils to release 2.9.1 or newer.  Another option is to modify
16279 *** your PATH or compiler configuration so that the native linker is
16280 *** used, and then restart.
16281
16282 EOF
16283       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16284         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16285         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16286       else
16287         ld_shlibs_F77=no
16288       fi
16289       ;;
16290
16291     sunos4*)
16292       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16293       wlarc=
16294       hardcode_direct_F77=yes
16295       hardcode_shlibpath_var_F77=no
16296       ;;
16297
16298     *)
16299       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16300         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16301         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16302       else
16303         ld_shlibs_F77=no
16304       fi
16305       ;;
16306     esac
16307
16308     if test "$ld_shlibs_F77" = no; then
16309       runpath_var=
16310       hardcode_libdir_flag_spec_F77=
16311       export_dynamic_flag_spec_F77=
16312       whole_archive_flag_spec_F77=
16313     fi
16314   else
16315     # PORTME fill in a description of your system's linker (not GNU ld)
16316     case $host_os in
16317     aix3*)
16318       allow_undefined_flag_F77=unsupported
16319       always_export_symbols_F77=yes
16320       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'
16321       # Note: this linker hardcodes the directories in LIBPATH if there
16322       # are no directories specified by -L.
16323       hardcode_minus_L_F77=yes
16324       if test "$GCC" = yes && test -z "$link_static_flag"; then
16325         # Neither direct hardcoding nor static linking is supported with a
16326         # broken collect2.
16327         hardcode_direct_F77=unsupported
16328       fi
16329       ;;
16330
16331     aix4* | aix5*)
16332       if test "$host_cpu" = ia64; then
16333         # On IA64, the linker does run time linking by default, so we don't
16334         # have to do anything special.
16335         aix_use_runtimelinking=no
16336         exp_sym_flag='-Bexport'
16337         no_entry_flag=""
16338       else
16339         # If we're using GNU nm, then we don't want the "-C" option.
16340         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16341         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16342           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'
16343         else
16344           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'
16345         fi
16346         aix_use_runtimelinking=no
16347
16348         # Test if we are trying to use run time linking or normal
16349         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16350         # need to do runtime linking.
16351         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16352           for ld_flag in $LDFLAGS; do
16353           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16354             aix_use_runtimelinking=yes
16355             break
16356           fi
16357           done
16358         esac
16359
16360         exp_sym_flag='-bexport'
16361         no_entry_flag='-bnoentry'
16362       fi
16363
16364       # When large executables or shared objects are built, AIX ld can
16365       # have problems creating the table of contents.  If linking a library
16366       # or program results in "error TOC overflow" add -mminimal-toc to
16367       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16368       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16369
16370       archive_cmds_F77=''
16371       hardcode_direct_F77=yes
16372       hardcode_libdir_separator_F77=':'
16373       link_all_deplibs_F77=yes
16374
16375       if test "$GCC" = yes; then
16376         case $host_os in aix4.[012]|aix4.[012].*)
16377         # We only want to do this on AIX 4.2 and lower, the check
16378         # below for broken collect2 doesn't work under 4.3+
16379           collect2name=`${CC} -print-prog-name=collect2`
16380           if test -f "$collect2name" && \
16381            strings "$collect2name" | grep resolve_lib_name >/dev/null
16382           then
16383           # We have reworked collect2
16384           hardcode_direct_F77=yes
16385           else
16386           # We have old collect2
16387           hardcode_direct_F77=unsupported
16388           # It fails to find uninstalled libraries when the uninstalled
16389           # path is not listed in the libpath.  Setting hardcode_minus_L
16390           # to unsupported forces relinking
16391           hardcode_minus_L_F77=yes
16392           hardcode_libdir_flag_spec_F77='-L$libdir'
16393           hardcode_libdir_separator_F77=
16394           fi
16395         esac
16396         shared_flag='-shared'
16397         if test "$aix_use_runtimelinking" = yes; then
16398           shared_flag="$shared_flag "'${wl}-G'
16399         fi
16400       else
16401         # not using gcc
16402         if test "$host_cpu" = ia64; then
16403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16404         # chokes on -Wl,-G. The following line is correct:
16405           shared_flag='-G'
16406         else
16407         if test "$aix_use_runtimelinking" = yes; then
16408             shared_flag='${wl}-G'
16409           else
16410             shared_flag='${wl}-bM:SRE'
16411         fi
16412         fi
16413       fi
16414
16415       # It seems that -bexpall does not export symbols beginning with
16416       # underscore (_), so it is better to generate a list of symbols to export.
16417       always_export_symbols_F77=yes
16418       if test "$aix_use_runtimelinking" = yes; then
16419         # Warning - without using the other runtime loading flags (-brtl),
16420         # -berok will link without error, but may produce a broken library.
16421         allow_undefined_flag_F77='-berok'
16422        # Determine the default libpath from the value encoded in an empty executable.
16423        cat >conftest.$ac_ext <<_ACEOF
16424       program main
16425
16426       end
16427 _ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430   (eval $ac_link) 2>conftest.er1
16431   ac_status=$?
16432   grep -v '^ *+' conftest.er1 >conftest.err
16433   rm -f conftest.er1
16434   cat conftest.err >&5
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); } &&
16437          { ac_try='test -z "$ac_f77_werror_flag"
16438                          || test ! -s conftest.err'
16439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440   (eval $ac_try) 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; } &&
16444          { ac_try='test -s conftest$ac_exeext'
16445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446   (eval $ac_try) 2>&5
16447   ac_status=$?
16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); }; }; then
16450
16451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16452 }'`
16453 # Check for a 64-bit object if we didn't find anything.
16454 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; }
16455 }'`; fi
16456 else
16457   echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460 fi
16461 rm -f conftest.err conftest.$ac_objext \
16462       conftest$ac_exeext conftest.$ac_ext
16463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16464
16465        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16466         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"
16467        else
16468         if test "$host_cpu" = ia64; then
16469           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16470           allow_undefined_flag_F77="-z nodefs"
16471           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"
16472         else
16473          # Determine the default libpath from the value encoded in an empty executable.
16474          cat >conftest.$ac_ext <<_ACEOF
16475       program main
16476
16477       end
16478 _ACEOF
16479 rm -f conftest.$ac_objext conftest$ac_exeext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16481   (eval $ac_link) 2>conftest.er1
16482   ac_status=$?
16483   grep -v '^ *+' conftest.er1 >conftest.err
16484   rm -f conftest.er1
16485   cat conftest.err >&5
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } &&
16488          { ac_try='test -z "$ac_f77_werror_flag"
16489                          || test ! -s conftest.err'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; } &&
16495          { ac_try='test -s conftest$ac_exeext'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; }; then
16501
16502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16503 }'`
16504 # Check for a 64-bit object if we didn't find anything.
16505 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; }
16506 }'`; fi
16507 else
16508   echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16510
16511 fi
16512 rm -f conftest.err conftest.$ac_objext \
16513       conftest$ac_exeext conftest.$ac_ext
16514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16515
16516          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16517           # Warning - without using the other run time loading flags,
16518           # -berok will link without error, but may produce a broken library.
16519           no_undefined_flag_F77=' ${wl}-bernotok'
16520           allow_undefined_flag_F77=' ${wl}-berok'
16521           # -bexpall does not export symbols beginning with underscore (_)
16522           always_export_symbols_F77=yes
16523           # Exported symbols can be pulled into shared objects from archives
16524           whole_archive_flag_spec_F77=' '
16525           archive_cmds_need_lc_F77=yes
16526           # This is similar to how AIX traditionally builds it's shared libraries.
16527           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'
16528         fi
16529       fi
16530       ;;
16531
16532     amigaos*)
16533       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)'
16534       hardcode_libdir_flag_spec_F77='-L$libdir'
16535       hardcode_minus_L_F77=yes
16536       # see comment about different semantics on the GNU ld section
16537       ld_shlibs_F77=no
16538       ;;
16539
16540     bsdi[45]*)
16541       export_dynamic_flag_spec_F77=-rdynamic
16542       ;;
16543
16544     cygwin* | mingw* | pw32*)
16545       # When not using gcc, we currently assume that we are using
16546       # Microsoft Visual C++.
16547       # hardcode_libdir_flag_spec is actually meaningless, as there is
16548       # no search path for DLLs.
16549       hardcode_libdir_flag_spec_F77=' '
16550       allow_undefined_flag_F77=unsupported
16551       # Tell ltmain to make .lib files, not .a files.
16552       libext=lib
16553       # Tell ltmain to make .dll files, not .so files.
16554       shrext_cmds=".dll"
16555       # FIXME: Setting linknames here is a bad hack.
16556       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16557       # The linker will automatically build a .lib file if we build a DLL.
16558       old_archive_From_new_cmds_F77='true'
16559       # FIXME: Should let the user specify the lib program.
16560       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16561       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16562       enable_shared_with_static_runtimes_F77=yes
16563       ;;
16564
16565     darwin* | rhapsody*)
16566       case "$host_os" in
16567         rhapsody* | darwin1.[012])
16568          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16569          ;;
16570        *) # Darwin 1.3 on
16571          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16572            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16573          else
16574            case ${MACOSX_DEPLOYMENT_TARGET} in
16575              10.[012])
16576                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16577                ;;
16578              10.*)
16579                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16580                ;;
16581            esac
16582          fi
16583          ;;
16584       esac
16585       archive_cmds_need_lc_F77=no
16586       hardcode_direct_F77=no
16587       hardcode_automatic_F77=yes
16588       hardcode_shlibpath_var_F77=unsupported
16589       whole_archive_flag_spec_F77=''
16590       link_all_deplibs_F77=yes
16591     if test "$GCC" = yes ; then
16592         output_verbose_link_cmd='echo'
16593         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16594       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16595       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16596       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}'
16597       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}'
16598     else
16599       case $cc_basename in
16600         xlc*)
16601          output_verbose_link_cmd='echo'
16602          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16603          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16604           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16605          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}'
16606           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}'
16607           ;;
16608        *)
16609          ld_shlibs_F77=no
16610           ;;
16611       esac
16612     fi
16613       ;;
16614
16615     dgux*)
16616       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617       hardcode_libdir_flag_spec_F77='-L$libdir'
16618       hardcode_shlibpath_var_F77=no
16619       ;;
16620
16621     freebsd1*)
16622       ld_shlibs_F77=no
16623       ;;
16624
16625     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16626     # support.  Future versions do this automatically, but an explicit c++rt0.o
16627     # does not break anything, and helps significantly (at the cost of a little
16628     # extra space).
16629     freebsd2.2*)
16630       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16631       hardcode_libdir_flag_spec_F77='-R$libdir'
16632       hardcode_direct_F77=yes
16633       hardcode_shlibpath_var_F77=no
16634       ;;
16635
16636     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16637     freebsd2*)
16638       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16639       hardcode_direct_F77=yes
16640       hardcode_minus_L_F77=yes
16641       hardcode_shlibpath_var_F77=no
16642       ;;
16643
16644     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16645     freebsd* | kfreebsd*-gnu | dragonfly*)
16646       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16647       hardcode_libdir_flag_spec_F77='-R$libdir'
16648       hardcode_direct_F77=yes
16649       hardcode_shlibpath_var_F77=no
16650       ;;
16651
16652     hpux9*)
16653       if test "$GCC" = yes; then
16654         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'
16655       else
16656         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'
16657       fi
16658       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16659       hardcode_libdir_separator_F77=:
16660       hardcode_direct_F77=yes
16661
16662       # hardcode_minus_L: Not really in the search PATH,
16663       # but as the default location of the library.
16664       hardcode_minus_L_F77=yes
16665       export_dynamic_flag_spec_F77='${wl}-E'
16666       ;;
16667
16668     hpux10* | hpux11*)
16669       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16670         case "$host_cpu" in
16671         hppa*64*|ia64*)
16672           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16673           ;;
16674         *)
16675           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16676           ;;
16677         esac
16678       else
16679         case "$host_cpu" in
16680         hppa*64*|ia64*)
16681           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16682           ;;
16683         *)
16684           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16685           ;;
16686         esac
16687       fi
16688       if test "$with_gnu_ld" = no; then
16689         case "$host_cpu" in
16690         hppa*64*)
16691           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16692           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16693           hardcode_libdir_separator_F77=:
16694           hardcode_direct_F77=no
16695           hardcode_shlibpath_var_F77=no
16696           ;;
16697         ia64*)
16698           hardcode_libdir_flag_spec_F77='-L$libdir'
16699           hardcode_direct_F77=no
16700           hardcode_shlibpath_var_F77=no
16701
16702           # hardcode_minus_L: Not really in the search PATH,
16703           # but as the default location of the library.
16704           hardcode_minus_L_F77=yes
16705           ;;
16706         *)
16707           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16708           hardcode_libdir_separator_F77=:
16709           hardcode_direct_F77=yes
16710           export_dynamic_flag_spec_F77='${wl}-E'
16711
16712           # hardcode_minus_L: Not really in the search PATH,
16713           # but as the default location of the library.
16714           hardcode_minus_L_F77=yes
16715           ;;
16716         esac
16717       fi
16718       ;;
16719
16720     irix5* | irix6* | nonstopux*)
16721       if test "$GCC" = yes; then
16722         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'
16723       else
16724         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'
16725         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16726       fi
16727       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16728       hardcode_libdir_separator_F77=:
16729       link_all_deplibs_F77=yes
16730       ;;
16731
16732     netbsd*)
16733       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16734         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16735       else
16736         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16737       fi
16738       hardcode_libdir_flag_spec_F77='-R$libdir'
16739       hardcode_direct_F77=yes
16740       hardcode_shlibpath_var_F77=no
16741       ;;
16742
16743     newsos6)
16744       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16745       hardcode_direct_F77=yes
16746       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16747       hardcode_libdir_separator_F77=:
16748       hardcode_shlibpath_var_F77=no
16749       ;;
16750
16751     openbsd*)
16752       hardcode_direct_F77=yes
16753       hardcode_shlibpath_var_F77=no
16754       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16755         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16756         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16757         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16758         export_dynamic_flag_spec_F77='${wl}-E'
16759       else
16760        case $host_os in
16761          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16762            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16763            hardcode_libdir_flag_spec_F77='-R$libdir'
16764            ;;
16765          *)
16766            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16767            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16768            ;;
16769        esac
16770       fi
16771       ;;
16772
16773     os2*)
16774       hardcode_libdir_flag_spec_F77='-L$libdir'
16775       hardcode_minus_L_F77=yes
16776       allow_undefined_flag_F77=unsupported
16777       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'
16778       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16779       ;;
16780
16781     osf3*)
16782       if test "$GCC" = yes; then
16783         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16784         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'
16785       else
16786         allow_undefined_flag_F77=' -expect_unresolved \*'
16787         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'
16788       fi
16789       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16790       hardcode_libdir_separator_F77=:
16791       ;;
16792
16793     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16794       if test "$GCC" = yes; then
16795         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16796         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'
16797         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16798       else
16799         allow_undefined_flag_F77=' -expect_unresolved \*'
16800         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'
16801         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~
16802         $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'
16803
16804         # Both c and cxx compiler support -rpath directly
16805         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16806       fi
16807       hardcode_libdir_separator_F77=:
16808       ;;
16809
16810     sco3.2v5*)
16811       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16812       hardcode_shlibpath_var_F77=no
16813       export_dynamic_flag_spec_F77='${wl}-Bexport'
16814       runpath_var=LD_RUN_PATH
16815       hardcode_runpath_var=yes
16816       ;;
16817
16818     solaris*)
16819       no_undefined_flag_F77=' -z text'
16820       if test "$GCC" = yes; then
16821         wlarc='${wl}'
16822         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16823         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16824           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16825       else
16826         wlarc=''
16827         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16828         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16829         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16830       fi
16831       hardcode_libdir_flag_spec_F77='-R$libdir'
16832       hardcode_shlibpath_var_F77=no
16833       case $host_os in
16834       solaris2.[0-5] | solaris2.[0-5].*) ;;
16835       *)
16836         # The compiler driver will combine linker options so we
16837         # cannot just pass the convience library names through
16838         # without $wl, iff we do not link with $LD.
16839         # Luckily, gcc supports the same syntax we need for Sun Studio.
16840         # Supported since Solaris 2.6 (maybe 2.5.1?)
16841         case $wlarc in
16842         '')
16843           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16844         *)
16845           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' ;;
16846         esac ;;
16847       esac
16848       link_all_deplibs_F77=yes
16849       ;;
16850
16851     sunos4*)
16852       if test "x$host_vendor" = xsequent; then
16853         # Use $CC to link under sequent, because it throws in some extra .o
16854         # files that make .init and .fini sections work.
16855         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16856       else
16857         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16858       fi
16859       hardcode_libdir_flag_spec_F77='-L$libdir'
16860       hardcode_direct_F77=yes
16861       hardcode_minus_L_F77=yes
16862       hardcode_shlibpath_var_F77=no
16863       ;;
16864
16865     sysv4)
16866       case $host_vendor in
16867         sni)
16868           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16869           hardcode_direct_F77=yes # is this really true???
16870         ;;
16871         siemens)
16872           ## LD is ld it makes a PLAMLIB
16873           ## CC just makes a GrossModule.
16874           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16875           reload_cmds_F77='$CC -r -o $output$reload_objs'
16876           hardcode_direct_F77=no
16877         ;;
16878         motorola)
16879           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16880           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16881         ;;
16882       esac
16883       runpath_var='LD_RUN_PATH'
16884       hardcode_shlibpath_var_F77=no
16885       ;;
16886
16887     sysv4.3*)
16888       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16889       hardcode_shlibpath_var_F77=no
16890       export_dynamic_flag_spec_F77='-Bexport'
16891       ;;
16892
16893     sysv4*MP*)
16894       if test -d /usr/nec; then
16895         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16896         hardcode_shlibpath_var_F77=no
16897         runpath_var=LD_RUN_PATH
16898         hardcode_runpath_var=yes
16899         ld_shlibs_F77=yes
16900       fi
16901       ;;
16902
16903     sysv4.2uw2*)
16904       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16905       hardcode_direct_F77=yes
16906       hardcode_minus_L_F77=no
16907       hardcode_shlibpath_var_F77=no
16908       hardcode_runpath_var=yes
16909       runpath_var=LD_RUN_PATH
16910       ;;
16911
16912    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16913       no_undefined_flag_F77='${wl}-z ${wl}text'
16914       if test "$GCC" = yes; then
16915         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16916       else
16917         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16918       fi
16919       runpath_var='LD_RUN_PATH'
16920       hardcode_shlibpath_var_F77=no
16921       ;;
16922
16923     sysv5*)
16924       no_undefined_flag_F77=' -z text'
16925       # $CC -shared without GNU ld will not create a library from C++
16926       # object files and a static libstdc++, better avoid it by now
16927       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16928       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16929                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16930       hardcode_libdir_flag_spec_F77=
16931       hardcode_shlibpath_var_F77=no
16932       runpath_var='LD_RUN_PATH'
16933       ;;
16934
16935     uts4*)
16936       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16937       hardcode_libdir_flag_spec_F77='-L$libdir'
16938       hardcode_shlibpath_var_F77=no
16939       ;;
16940
16941     *)
16942       ld_shlibs_F77=no
16943       ;;
16944     esac
16945   fi
16946
16947 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16948 echo "${ECHO_T}$ld_shlibs_F77" >&6
16949 test "$ld_shlibs_F77" = no && can_build_shared=no
16950
16951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16952 if test "$GCC" = yes; then
16953   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16954 fi
16955
16956 #
16957 # Do we need to explicitly link libc?
16958 #
16959 case "x$archive_cmds_need_lc_F77" in
16960 x|xyes)
16961   # Assume -lc should be added
16962   archive_cmds_need_lc_F77=yes
16963
16964   if test "$enable_shared" = yes && test "$GCC" = yes; then
16965     case $archive_cmds_F77 in
16966     *'~'*)
16967       # FIXME: we may have to deal with multi-command sequences.
16968       ;;
16969     '$CC '*)
16970       # Test whether the compiler implicitly links with -lc since on some
16971       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16972       # to ld, don't add -lc before -lgcc.
16973       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16974 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16975       $rm conftest*
16976       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16977
16978       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16979   (eval $ac_compile) 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); } 2>conftest.err; then
16983         soname=conftest
16984         lib=conftest
16985         libobjs=conftest.$ac_objext
16986         deplibs=
16987         wl=$lt_prog_compiler_wl_F77
16988         compiler_flags=-v
16989         linker_flags=-v
16990         verstring=
16991         output_objdir=.
16992         libname=conftest
16993         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16994         allow_undefined_flag_F77=
16995         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16996   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }
17000         then
17001           archive_cmds_need_lc_F77=no
17002         else
17003           archive_cmds_need_lc_F77=yes
17004         fi
17005         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17006       else
17007         cat conftest.err 1>&5
17008       fi
17009       $rm conftest*
17010       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17011 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17012       ;;
17013     esac
17014   fi
17015   ;;
17016 esac
17017
17018 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17020 library_names_spec=
17021 libname_spec='lib$name'
17022 soname_spec=
17023 shrext_cmds=".so"
17024 postinstall_cmds=
17025 postuninstall_cmds=
17026 finish_cmds=
17027 finish_eval=
17028 shlibpath_var=
17029 shlibpath_overrides_runpath=unknown
17030 version_type=none
17031 dynamic_linker="$host_os ld.so"
17032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17033 if test "$GCC" = yes; then
17034   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17035   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17036     # if the path contains ";" then we assume it to be the separator
17037     # otherwise default to the standard path separator (i.e. ":") - it is
17038     # assumed that no part of a normal pathname contains ";" but that should
17039     # okay in the real world where ";" in dirpaths is itself problematic.
17040     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17041   else
17042     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17043   fi
17044 else
17045   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17046 fi
17047 need_lib_prefix=unknown
17048 hardcode_into_libs=no
17049
17050 # when you set need_version to no, make sure it does not cause -set_version
17051 # flags to be left without arguments
17052 need_version=unknown
17053
17054 case $host_os in
17055 aix3*)
17056   version_type=linux
17057   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17058   shlibpath_var=LIBPATH
17059
17060   # AIX 3 has no versioning support, so we append a major version to the name.
17061   soname_spec='${libname}${release}${shared_ext}$major'
17062   ;;
17063
17064 aix4* | aix5*)
17065   version_type=linux
17066   need_lib_prefix=no
17067   need_version=no
17068   hardcode_into_libs=yes
17069   if test "$host_cpu" = ia64; then
17070     # AIX 5 supports IA64
17071     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17072     shlibpath_var=LD_LIBRARY_PATH
17073   else
17074     # With GCC up to 2.95.x, collect2 would create an import file
17075     # for dependence libraries.  The import file would start with
17076     # the line `#! .'.  This would cause the generated library to
17077     # depend on `.', always an invalid library.  This was fixed in
17078     # development snapshots of GCC prior to 3.0.
17079     case $host_os in
17080       aix4 | aix4.[01] | aix4.[01].*)
17081       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17082            echo ' yes '
17083            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17084         :
17085       else
17086         can_build_shared=no
17087       fi
17088       ;;
17089     esac
17090     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17091     # soname into executable. Probably we can add versioning support to
17092     # collect2, so additional links can be useful in future.
17093     if test "$aix_use_runtimelinking" = yes; then
17094       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17095       # instead of lib<name>.a to let people know that these are not
17096       # typical AIX shared libraries.
17097       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098     else
17099       # We preserve .a as extension for shared libraries through AIX4.2
17100       # and later when we are not doing run time linking.
17101       library_names_spec='${libname}${release}.a $libname.a'
17102       soname_spec='${libname}${release}${shared_ext}$major'
17103     fi
17104     shlibpath_var=LIBPATH
17105   fi
17106   ;;
17107
17108 amigaos*)
17109   library_names_spec='$libname.ixlibrary $libname.a'
17110   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17111   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'
17112   ;;
17113
17114 beos*)
17115   library_names_spec='${libname}${shared_ext}'
17116   dynamic_linker="$host_os ld.so"
17117   shlibpath_var=LIBRARY_PATH
17118   ;;
17119
17120 bsdi[45]*)
17121   version_type=linux
17122   need_version=no
17123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124   soname_spec='${libname}${release}${shared_ext}$major'
17125   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17128   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17129   # the default ld.so.conf also contains /usr/contrib/lib and
17130   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17131   # libtool to hard-code these into programs
17132   ;;
17133
17134 cygwin* | mingw* | pw32*)
17135   version_type=windows
17136   shrext_cmds=".dll"
17137   need_version=no
17138   need_lib_prefix=no
17139
17140   case $GCC,$host_os in
17141   yes,cygwin* | yes,mingw* | yes,pw32*)
17142     library_names_spec='$libname.dll.a'
17143     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17144     postinstall_cmds='base_file=`basename \${file}`~
17145       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17146       dldir=$destdir/`dirname \$dlpath`~
17147       test -d \$dldir || mkdir -p \$dldir~
17148       $install_prog $dir/$dlname \$dldir/$dlname'
17149     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17150       dlpath=$dir/\$dldll~
17151        $rm \$dlpath'
17152     shlibpath_overrides_runpath=yes
17153
17154     case $host_os in
17155     cygwin*)
17156       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17157       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17158       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17159       ;;
17160     mingw*)
17161       # MinGW DLLs use traditional 'lib' prefix
17162       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17163       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17164       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17165         # It is most probably a Windows format PATH printed by
17166         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17167         # path with ; separators, and with drive letters. We can handle the
17168         # drive letters (cygwin fileutils understands them), so leave them,
17169         # especially as we might pass files found there to a mingw objdump,
17170         # which wouldn't understand a cygwinified path. Ahh.
17171         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17172       else
17173         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17174       fi
17175       ;;
17176     pw32*)
17177       # pw32 DLLs use 'pw' prefix rather than 'lib'
17178       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17179       ;;
17180     esac
17181     ;;
17182
17183   *)
17184     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17185     ;;
17186   esac
17187   dynamic_linker='Win32 ld.exe'
17188   # FIXME: first we should search . and the directory the executable is in
17189   shlibpath_var=PATH
17190   ;;
17191
17192 darwin* | rhapsody*)
17193   dynamic_linker="$host_os dyld"
17194   version_type=darwin
17195   need_lib_prefix=no
17196   need_version=no
17197   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17198   soname_spec='${libname}${release}${major}$shared_ext'
17199   shlibpath_overrides_runpath=yes
17200   shlibpath_var=DYLD_LIBRARY_PATH
17201   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17202   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17203   if test "$GCC" = yes; then
17204     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"`
17205   else
17206     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17207   fi
17208   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17209   ;;
17210
17211 dgux*)
17212   version_type=linux
17213   need_lib_prefix=no
17214   need_version=no
17215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17216   soname_spec='${libname}${release}${shared_ext}$major'
17217   shlibpath_var=LD_LIBRARY_PATH
17218   ;;
17219
17220 freebsd1*)
17221   dynamic_linker=no
17222   ;;
17223
17224 kfreebsd*-gnu)
17225   version_type=linux
17226   need_lib_prefix=no
17227   need_version=no
17228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17229   soname_spec='${libname}${release}${shared_ext}$major'
17230   shlibpath_var=LD_LIBRARY_PATH
17231   shlibpath_overrides_runpath=no
17232   hardcode_into_libs=yes
17233   dynamic_linker='GNU ld.so'
17234   ;;
17235
17236 freebsd* | dragonfly*)
17237   # DragonFly does not have aout.  When/if they implement a new
17238   # versioning mechanism, adjust this.
17239   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17240   version_type=freebsd-$objformat
17241   case $version_type in
17242     freebsd-elf*)
17243       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17244       need_version=no
17245       need_lib_prefix=no
17246       ;;
17247     freebsd-*)
17248       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17249       need_version=yes
17250       ;;
17251   esac
17252   shlibpath_var=LD_LIBRARY_PATH
17253   case $host_os in
17254   freebsd2*)
17255     shlibpath_overrides_runpath=yes
17256     ;;
17257   freebsd3.[01]* | freebsdelf3.[01]*)
17258     shlibpath_overrides_runpath=yes
17259     hardcode_into_libs=yes
17260     ;;
17261   *) # from 3.2 on
17262     shlibpath_overrides_runpath=no
17263     hardcode_into_libs=yes
17264     ;;
17265   esac
17266   ;;
17267
17268 gnu*)
17269   version_type=linux
17270   need_lib_prefix=no
17271   need_version=no
17272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17273   soname_spec='${libname}${release}${shared_ext}$major'
17274   shlibpath_var=LD_LIBRARY_PATH
17275   hardcode_into_libs=yes
17276   ;;
17277
17278 hpux9* | hpux10* | hpux11*)
17279   # Give a soname corresponding to the major version so that dld.sl refuses to
17280   # link against other versions.
17281   version_type=sunos
17282   need_lib_prefix=no
17283   need_version=no
17284   case "$host_cpu" in
17285   ia64*)
17286     shrext_cmds='.so'
17287     hardcode_into_libs=yes
17288     dynamic_linker="$host_os dld.so"
17289     shlibpath_var=LD_LIBRARY_PATH
17290     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292     soname_spec='${libname}${release}${shared_ext}$major'
17293     if test "X$HPUX_IA64_MODE" = X32; then
17294       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17295     else
17296       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17297     fi
17298     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17299     ;;
17300    hppa*64*)
17301      shrext_cmds='.sl'
17302      hardcode_into_libs=yes
17303      dynamic_linker="$host_os dld.sl"
17304      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17305      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17306      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307      soname_spec='${libname}${release}${shared_ext}$major'
17308      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17309      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17310      ;;
17311    *)
17312     shrext_cmds='.sl'
17313     dynamic_linker="$host_os dld.sl"
17314     shlibpath_var=SHLIB_PATH
17315     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317     soname_spec='${libname}${release}${shared_ext}$major'
17318     ;;
17319   esac
17320   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17321   postinstall_cmds='chmod 555 $lib'
17322   ;;
17323
17324 irix5* | irix6* | nonstopux*)
17325   case $host_os in
17326     nonstopux*) version_type=nonstopux ;;
17327     *)
17328         if test "$lt_cv_prog_gnu_ld" = yes; then
17329                 version_type=linux
17330         else
17331                 version_type=irix
17332         fi ;;
17333   esac
17334   need_lib_prefix=no
17335   need_version=no
17336   soname_spec='${libname}${release}${shared_ext}$major'
17337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17338   case $host_os in
17339   irix5* | nonstopux*)
17340     libsuff= shlibsuff=
17341     ;;
17342   *)
17343     case $LD in # libtool.m4 will add one of these switches to LD
17344     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17345       libsuff= shlibsuff= libmagic=32-bit;;
17346     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17347       libsuff=32 shlibsuff=N32 libmagic=N32;;
17348     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17349       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17350     *) libsuff= shlibsuff= libmagic=never-match;;
17351     esac
17352     ;;
17353   esac
17354   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17355   shlibpath_overrides_runpath=no
17356   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17357   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17358   hardcode_into_libs=yes
17359   ;;
17360
17361 # No shared lib support for Linux oldld, aout, or coff.
17362 linux*oldld* | linux*aout* | linux*coff*)
17363   dynamic_linker=no
17364   ;;
17365
17366 # This must be Linux ELF.
17367 linux*)
17368   version_type=linux
17369   need_lib_prefix=no
17370   need_version=no
17371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372   soname_spec='${libname}${release}${shared_ext}$major'
17373   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17374   shlibpath_var=LD_LIBRARY_PATH
17375   shlibpath_overrides_runpath=no
17376   # This implies no fast_install, which is unacceptable.
17377   # Some rework will be needed to allow for fast_install
17378   # before this can be enabled.
17379   hardcode_into_libs=yes
17380
17381   # Append ld.so.conf contents to the search path
17382   if test -f /etc/ld.so.conf; then
17383     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' ' '`
17384     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17385   fi
17386
17387   # We used to test for /lib/ld.so.1 and disable shared libraries on
17388   # powerpc, because MkLinux only supported shared libraries with the
17389   # GNU dynamic linker.  Since this was broken with cross compilers,
17390   # most powerpc-linux boxes support dynamic linking these days and
17391   # people can always --disable-shared, the test was removed, and we
17392   # assume the GNU/Linux dynamic linker is in use.
17393   dynamic_linker='GNU/Linux ld.so'
17394   ;;
17395
17396 knetbsd*-gnu)
17397   version_type=linux
17398   need_lib_prefix=no
17399   need_version=no
17400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17401   soname_spec='${libname}${release}${shared_ext}$major'
17402   shlibpath_var=LD_LIBRARY_PATH
17403   shlibpath_overrides_runpath=no
17404   hardcode_into_libs=yes
17405   dynamic_linker='GNU ld.so'
17406   ;;
17407
17408 netbsd*)
17409   version_type=sunos
17410   need_lib_prefix=no
17411   need_version=no
17412   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17414     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415     dynamic_linker='NetBSD (a.out) ld.so'
17416   else
17417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17418     soname_spec='${libname}${release}${shared_ext}$major'
17419     dynamic_linker='NetBSD ld.elf_so'
17420   fi
17421   shlibpath_var=LD_LIBRARY_PATH
17422   shlibpath_overrides_runpath=yes
17423   hardcode_into_libs=yes
17424   ;;
17425
17426 newsos6)
17427   version_type=linux
17428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429   shlibpath_var=LD_LIBRARY_PATH
17430   shlibpath_overrides_runpath=yes
17431   ;;
17432
17433 nto-qnx*)
17434   version_type=linux
17435   need_lib_prefix=no
17436   need_version=no
17437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438   soname_spec='${libname}${release}${shared_ext}$major'
17439   shlibpath_var=LD_LIBRARY_PATH
17440   shlibpath_overrides_runpath=yes
17441   ;;
17442
17443 openbsd*)
17444   version_type=sunos
17445   need_lib_prefix=no
17446   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17447   case $host_os in
17448     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17449     *)                         need_version=no  ;;
17450   esac
17451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17453   shlibpath_var=LD_LIBRARY_PATH
17454   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17455     case $host_os in
17456       openbsd2.[89] | openbsd2.[89].*)
17457         shlibpath_overrides_runpath=no
17458         ;;
17459       *)
17460         shlibpath_overrides_runpath=yes
17461         ;;
17462       esac
17463   else
17464     shlibpath_overrides_runpath=yes
17465   fi
17466   ;;
17467
17468 os2*)
17469   libname_spec='$name'
17470   shrext_cmds=".dll"
17471   need_lib_prefix=no
17472   library_names_spec='$libname${shared_ext} $libname.a'
17473   dynamic_linker='OS/2 ld.exe'
17474   shlibpath_var=LIBPATH
17475   ;;
17476
17477 osf3* | osf4* | osf5*)
17478   version_type=osf
17479   need_lib_prefix=no
17480   need_version=no
17481   soname_spec='${libname}${release}${shared_ext}$major'
17482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483   shlibpath_var=LD_LIBRARY_PATH
17484   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17485   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17486   ;;
17487
17488 sco3.2v5*)
17489   version_type=osf
17490   soname_spec='${libname}${release}${shared_ext}$major'
17491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492   shlibpath_var=LD_LIBRARY_PATH
17493   ;;
17494
17495 solaris*)
17496   version_type=linux
17497   need_lib_prefix=no
17498   need_version=no
17499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500   soname_spec='${libname}${release}${shared_ext}$major'
17501   shlibpath_var=LD_LIBRARY_PATH
17502   shlibpath_overrides_runpath=yes
17503   hardcode_into_libs=yes
17504   # ldd complains unless libraries are executable
17505   postinstall_cmds='chmod +x $lib'
17506   ;;
17507
17508 sunos4*)
17509   version_type=sunos
17510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17511   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17512   shlibpath_var=LD_LIBRARY_PATH
17513   shlibpath_overrides_runpath=yes
17514   if test "$with_gnu_ld" = yes; then
17515     need_lib_prefix=no
17516   fi
17517   need_version=yes
17518   ;;
17519
17520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17521   version_type=linux
17522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17523   soname_spec='${libname}${release}${shared_ext}$major'
17524   shlibpath_var=LD_LIBRARY_PATH
17525   case $host_vendor in
17526     sni)
17527       shlibpath_overrides_runpath=no
17528       need_lib_prefix=no
17529       export_dynamic_flag_spec='${wl}-Blargedynsym'
17530       runpath_var=LD_RUN_PATH
17531       ;;
17532     siemens)
17533       need_lib_prefix=no
17534       ;;
17535     motorola)
17536       need_lib_prefix=no
17537       need_version=no
17538       shlibpath_overrides_runpath=no
17539       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17540       ;;
17541   esac
17542   ;;
17543
17544 sysv4*MP*)
17545   if test -d /usr/nec ;then
17546     version_type=linux
17547     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17548     soname_spec='$libname${shared_ext}.$major'
17549     shlibpath_var=LD_LIBRARY_PATH
17550   fi
17551   ;;
17552
17553 uts4*)
17554   version_type=linux
17555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556   soname_spec='${libname}${release}${shared_ext}$major'
17557   shlibpath_var=LD_LIBRARY_PATH
17558   ;;
17559
17560 *)
17561   dynamic_linker=no
17562   ;;
17563 esac
17564 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17565 echo "${ECHO_T}$dynamic_linker" >&6
17566 test "$dynamic_linker" = no && can_build_shared=no
17567
17568 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17569 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17570 hardcode_action_F77=
17571 if test -n "$hardcode_libdir_flag_spec_F77" || \
17572    test -n "$runpath_var_F77" || \
17573    test "X$hardcode_automatic_F77" = "Xyes" ; then
17574
17575   # We can hardcode non-existant directories.
17576   if test "$hardcode_direct_F77" != no &&
17577      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17578      # have to relink, otherwise we might link with an installed library
17579      # when we should be linking with a yet-to-be-installed one
17580      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17581      test "$hardcode_minus_L_F77" != no; then
17582     # Linking always hardcodes the temporary library directory.
17583     hardcode_action_F77=relink
17584   else
17585     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17586     hardcode_action_F77=immediate
17587   fi
17588 else
17589   # We cannot hardcode anything, or else we can only hardcode existing
17590   # directories.
17591   hardcode_action_F77=unsupported
17592 fi
17593 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17594 echo "${ECHO_T}$hardcode_action_F77" >&6
17595
17596 if test "$hardcode_action_F77" = relink; then
17597   # Fast installation is not supported
17598   enable_fast_install=no
17599 elif test "$shlibpath_overrides_runpath" = yes ||
17600      test "$enable_shared" = no; then
17601   # Fast installation is not necessary
17602   enable_fast_install=needless
17603 fi
17604
17605 striplib=
17606 old_striplib=
17607 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17608 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17609 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17610   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17611   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17612   echo "$as_me:$LINENO: result: yes" >&5
17613 echo "${ECHO_T}yes" >&6
17614 else
17615 # FIXME - insert some real tests, host_os isn't really good enough
17616   case $host_os in
17617    darwin*)
17618        if test -n "$STRIP" ; then
17619          striplib="$STRIP -x"
17620          echo "$as_me:$LINENO: result: yes" >&5
17621 echo "${ECHO_T}yes" >&6
17622        else
17623   echo "$as_me:$LINENO: result: no" >&5
17624 echo "${ECHO_T}no" >&6
17625 fi
17626        ;;
17627    *)
17628   echo "$as_me:$LINENO: result: no" >&5
17629 echo "${ECHO_T}no" >&6
17630     ;;
17631   esac
17632 fi
17633
17634
17635
17636 # The else clause should only fire when bootstrapping the
17637 # libtool distribution, otherwise you forgot to ship ltmain.sh
17638 # with your package, and you will get complaints that there are
17639 # no rules to generate ltmain.sh.
17640 if test -f "$ltmain"; then
17641   # See if we are running on zsh, and set the options which allow our commands through
17642   # without removal of \ escapes.
17643   if test -n "${ZSH_VERSION+set}" ; then
17644     setopt NO_GLOB_SUBST
17645   fi
17646   # Now quote all the things that may contain metacharacters while being
17647   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17648   # variables and quote the copies for generation of the libtool script.
17649   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17650     SED SHELL STRIP \
17651     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17652     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17653     deplibs_check_method reload_flag reload_cmds need_locks \
17654     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17655     lt_cv_sys_global_symbol_to_c_name_address \
17656     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17657     old_postinstall_cmds old_postuninstall_cmds \
17658     compiler_F77 \
17659     CC_F77 \
17660     LD_F77 \
17661     lt_prog_compiler_wl_F77 \
17662     lt_prog_compiler_pic_F77 \
17663     lt_prog_compiler_static_F77 \
17664     lt_prog_compiler_no_builtin_flag_F77 \
17665     export_dynamic_flag_spec_F77 \
17666     thread_safe_flag_spec_F77 \
17667     whole_archive_flag_spec_F77 \
17668     enable_shared_with_static_runtimes_F77 \
17669     old_archive_cmds_F77 \
17670     old_archive_from_new_cmds_F77 \
17671     predep_objects_F77 \
17672     postdep_objects_F77 \
17673     predeps_F77 \
17674     postdeps_F77 \
17675     compiler_lib_search_path_F77 \
17676     archive_cmds_F77 \
17677     archive_expsym_cmds_F77 \
17678     postinstall_cmds_F77 \
17679     postuninstall_cmds_F77 \
17680     old_archive_from_expsyms_cmds_F77 \
17681     allow_undefined_flag_F77 \
17682     no_undefined_flag_F77 \
17683     export_symbols_cmds_F77 \
17684     hardcode_libdir_flag_spec_F77 \
17685     hardcode_libdir_flag_spec_ld_F77 \
17686     hardcode_libdir_separator_F77 \
17687     hardcode_automatic_F77 \
17688     module_cmds_F77 \
17689     module_expsym_cmds_F77 \
17690     lt_cv_prog_compiler_c_o_F77 \
17691     exclude_expsyms_F77 \
17692     include_expsyms_F77; do
17693
17694     case $var in
17695     old_archive_cmds_F77 | \
17696     old_archive_from_new_cmds_F77 | \
17697     archive_cmds_F77 | \
17698     archive_expsym_cmds_F77 | \
17699     module_cmds_F77 | \
17700     module_expsym_cmds_F77 | \
17701     old_archive_from_expsyms_cmds_F77 | \
17702     export_symbols_cmds_F77 | \
17703     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17704     postinstall_cmds | postuninstall_cmds | \
17705     old_postinstall_cmds | old_postuninstall_cmds | \
17706     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17707       # Double-quote double-evaled strings.
17708       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17709       ;;
17710     *)
17711       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17712       ;;
17713     esac
17714   done
17715
17716   case $lt_echo in
17717   *'\$0 --fallback-echo"')
17718     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17719     ;;
17720   esac
17721
17722 cfgfile="$ofile"
17723
17724   cat <<__EOF__ >> "$cfgfile"
17725 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17726
17727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17728
17729 # Shell to use when invoking shell scripts.
17730 SHELL=$lt_SHELL
17731
17732 # Whether or not to build shared libraries.
17733 build_libtool_libs=$enable_shared
17734
17735 # Whether or not to build static libraries.
17736 build_old_libs=$enable_static
17737
17738 # Whether or not to add -lc for building shared libraries.
17739 build_libtool_need_lc=$archive_cmds_need_lc_F77
17740
17741 # Whether or not to disallow shared libs when runtime libs are static
17742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17743
17744 # Whether or not to optimize for fast installation.
17745 fast_install=$enable_fast_install
17746
17747 # The host system.
17748 host_alias=$host_alias
17749 host=$host
17750 host_os=$host_os
17751
17752 # The build system.
17753 build_alias=$build_alias
17754 build=$build
17755 build_os=$build_os
17756
17757 # An echo program that does not interpret backslashes.
17758 echo=$lt_echo
17759
17760 # The archiver.
17761 AR=$lt_AR
17762 AR_FLAGS=$lt_AR_FLAGS
17763
17764 # A C compiler.
17765 LTCC=$lt_LTCC
17766
17767 # A language-specific compiler.
17768 CC=$lt_compiler_F77
17769
17770 # Is the compiler the GNU C compiler?
17771 with_gcc=$GCC_F77
17772
17773 # An ERE matcher.
17774 EGREP=$lt_EGREP
17775
17776 # The linker used to build libraries.
17777 LD=$lt_LD_F77
17778
17779 # Whether we need hard or soft links.
17780 LN_S=$lt_LN_S
17781
17782 # A BSD-compatible nm program.
17783 NM=$lt_NM
17784
17785 # A symbol stripping program
17786 STRIP=$lt_STRIP
17787
17788 # Used to examine libraries when file_magic_cmd begins "file"
17789 MAGIC_CMD=$MAGIC_CMD
17790
17791 # Used on cygwin: DLL creation program.
17792 DLLTOOL="$DLLTOOL"
17793
17794 # Used on cygwin: object dumper.
17795 OBJDUMP="$OBJDUMP"
17796
17797 # Used on cygwin: assembler.
17798 AS="$AS"
17799
17800 # The name of the directory that contains temporary libtool files.
17801 objdir=$objdir
17802
17803 # How to create reloadable object files.
17804 reload_flag=$lt_reload_flag
17805 reload_cmds=$lt_reload_cmds
17806
17807 # How to pass a linker flag through the compiler.
17808 wl=$lt_lt_prog_compiler_wl_F77
17809
17810 # Object file suffix (normally "o").
17811 objext="$ac_objext"
17812
17813 # Old archive suffix (normally "a").
17814 libext="$libext"
17815
17816 # Shared library suffix (normally ".so").
17817 shrext_cmds='$shrext_cmds'
17818
17819 # Executable file suffix (normally "").
17820 exeext="$exeext"
17821
17822 # Additional compiler flags for building library objects.
17823 pic_flag=$lt_lt_prog_compiler_pic_F77
17824 pic_mode=$pic_mode
17825
17826 # What is the maximum length of a command?
17827 max_cmd_len=$lt_cv_sys_max_cmd_len
17828
17829 # Does compiler simultaneously support -c and -o options?
17830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17831
17832 # Must we lock files when doing compilation?
17833 need_locks=$lt_need_locks
17834
17835 # Do we need the lib prefix for modules?
17836 need_lib_prefix=$need_lib_prefix
17837
17838 # Do we need a version for libraries?
17839 need_version=$need_version
17840
17841 # Whether dlopen is supported.
17842 dlopen_support=$enable_dlopen
17843
17844 # Whether dlopen of programs is supported.
17845 dlopen_self=$enable_dlopen_self
17846
17847 # Whether dlopen of statically linked programs is supported.
17848 dlopen_self_static=$enable_dlopen_self_static
17849
17850 # Compiler flag to prevent dynamic linking.
17851 link_static_flag=$lt_lt_prog_compiler_static_F77
17852
17853 # Compiler flag to turn off builtin functions.
17854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17855
17856 # Compiler flag to allow reflexive dlopens.
17857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17858
17859 # Compiler flag to generate shared objects directly from archives.
17860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17861
17862 # Compiler flag to generate thread-safe objects.
17863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17864
17865 # Library versioning type.
17866 version_type=$version_type
17867
17868 # Format of library name prefix.
17869 libname_spec=$lt_libname_spec
17870
17871 # List of archive names.  First name is the real one, the rest are links.
17872 # The last name is the one that the linker finds with -lNAME.
17873 library_names_spec=$lt_library_names_spec
17874
17875 # The coded name of the library, if different from the real name.
17876 soname_spec=$lt_soname_spec
17877
17878 # Commands used to build and install an old-style archive.
17879 RANLIB=$lt_RANLIB
17880 old_archive_cmds=$lt_old_archive_cmds_F77
17881 old_postinstall_cmds=$lt_old_postinstall_cmds
17882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17883
17884 # Create an old-style archive from a shared archive.
17885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17886
17887 # Create a temporary old-style archive to link instead of a shared archive.
17888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17889
17890 # Commands used to build and install a shared archive.
17891 archive_cmds=$lt_archive_cmds_F77
17892 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17893 postinstall_cmds=$lt_postinstall_cmds
17894 postuninstall_cmds=$lt_postuninstall_cmds
17895
17896 # Commands used to build a loadable module (assumed same as above if empty)
17897 module_cmds=$lt_module_cmds_F77
17898 module_expsym_cmds=$lt_module_expsym_cmds_F77
17899
17900 # Commands to strip libraries.
17901 old_striplib=$lt_old_striplib
17902 striplib=$lt_striplib
17903
17904 # Dependencies to place before the objects being linked to create a
17905 # shared library.
17906 predep_objects=$lt_predep_objects_F77
17907
17908 # Dependencies to place after the objects being linked to create a
17909 # shared library.
17910 postdep_objects=$lt_postdep_objects_F77
17911
17912 # Dependencies to place before the objects being linked to create a
17913 # shared library.
17914 predeps=$lt_predeps_F77
17915
17916 # Dependencies to place after the objects being linked to create a
17917 # shared library.
17918 postdeps=$lt_postdeps_F77
17919
17920 # The library search path used internally by the compiler when linking
17921 # a shared library.
17922 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17923
17924 # Method to check whether dependent libraries are shared objects.
17925 deplibs_check_method=$lt_deplibs_check_method
17926
17927 # Command to use when deplibs_check_method == file_magic.
17928 file_magic_cmd=$lt_file_magic_cmd
17929
17930 # Flag that allows shared libraries with undefined symbols to be built.
17931 allow_undefined_flag=$lt_allow_undefined_flag_F77
17932
17933 # Flag that forces no undefined symbols.
17934 no_undefined_flag=$lt_no_undefined_flag_F77
17935
17936 # Commands used to finish a libtool library installation in a directory.
17937 finish_cmds=$lt_finish_cmds
17938
17939 # Same as above, but a single script fragment to be evaled but not shown.
17940 finish_eval=$lt_finish_eval
17941
17942 # Take the output of nm and produce a listing of raw symbols and C names.
17943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17944
17945 # Transform the output of nm in a proper C declaration
17946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17947
17948 # Transform the output of nm in a C name address pair
17949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17950
17951 # This is the shared library runtime path variable.
17952 runpath_var=$runpath_var
17953
17954 # This is the shared library path variable.
17955 shlibpath_var=$shlibpath_var
17956
17957 # Is shlibpath searched before the hard-coded library search path?
17958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17959
17960 # How to hardcode a shared library path into an executable.
17961 hardcode_action=$hardcode_action_F77
17962
17963 # Whether we should hardcode library paths into libraries.
17964 hardcode_into_libs=$hardcode_into_libs
17965
17966 # Flag to hardcode \$libdir into a binary during linking.
17967 # This must work even if \$libdir does not exist.
17968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17969
17970 # If ld is used when linking, flag to hardcode \$libdir into
17971 # a binary during linking. This must work even if \$libdir does
17972 # not exist.
17973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17974
17975 # Whether we need a single -rpath flag with a separated argument.
17976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17977
17978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17979 # resulting binary.
17980 hardcode_direct=$hardcode_direct_F77
17981
17982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17983 # resulting binary.
17984 hardcode_minus_L=$hardcode_minus_L_F77
17985
17986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17987 # the resulting binary.
17988 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17989
17990 # Set to yes if building a shared library automatically hardcodes DIR into the library
17991 # and all subsequent libraries and executables linked against it.
17992 hardcode_automatic=$hardcode_automatic_F77
17993
17994 # Variables whose values should be saved in libtool wrapper scripts and
17995 # restored at relink time.
17996 variables_saved_for_relink="$variables_saved_for_relink"
17997
17998 # Whether libtool must link a program against all its dependency libraries.
17999 link_all_deplibs=$link_all_deplibs_F77
18000
18001 # Compile-time system search path for libraries
18002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18003
18004 # Run-time system search path for libraries
18005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18006
18007 # Fix the shell variable \$srcfile for the compiler.
18008 fix_srcfile_path="$fix_srcfile_path_F77"
18009
18010 # Set to yes if exported symbols are required.
18011 always_export_symbols=$always_export_symbols_F77
18012
18013 # The commands to list exported symbols.
18014 export_symbols_cmds=$lt_export_symbols_cmds_F77
18015
18016 # The commands to extract the exported symbol list from a shared archive.
18017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18018
18019 # Symbols that should not be listed in the preloaded symbols.
18020 exclude_expsyms=$lt_exclude_expsyms_F77
18021
18022 # Symbols that must always be exported.
18023 include_expsyms=$lt_include_expsyms_F77
18024
18025 # ### END LIBTOOL TAG CONFIG: $tagname
18026
18027 __EOF__
18028
18029
18030 else
18031   # If there is no Makefile yet, we rely on a make rule to execute
18032   # `config.status --recheck' to rerun these tests and create the
18033   # libtool script then.
18034   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18035   if test -f "$ltmain_in"; then
18036     test -f Makefile && make "$ltmain"
18037   fi
18038 fi
18039
18040
18041 ac_ext=c
18042 ac_cpp='$CPP $CPPFLAGS'
18043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18046
18047 CC="$lt_save_CC"
18048
18049         else
18050           tagname=""
18051         fi
18052         ;;
18053
18054       GCJ)
18055         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18056
18057
18058
18059 # Source file extension for Java test sources.
18060 ac_ext=java
18061
18062 # Object file extension for compiled Java test sources.
18063 objext=o
18064 objext_GCJ=$objext
18065
18066 # Code to be used in simple compile tests
18067 lt_simple_compile_test_code="class foo {}\n"
18068
18069 # Code to be used in simple link tests
18070 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18071
18072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18073
18074 # If no C compiler was specified, use CC.
18075 LTCC=${LTCC-"$CC"}
18076
18077 # Allow CC to be a program name with arguments.
18078 compiler=$CC
18079
18080
18081 # save warnings/boilerplate of simple test code
18082 ac_outfile=conftest.$ac_objext
18083 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18084 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18085 _lt_compiler_boilerplate=`cat conftest.err`
18086 $rm conftest*
18087
18088 ac_outfile=conftest.$ac_objext
18089 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18090 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18091 _lt_linker_boilerplate=`cat conftest.err`
18092 $rm conftest*
18093
18094
18095 # Allow CC to be a program name with arguments.
18096 lt_save_CC="$CC"
18097 CC=${GCJ-"gcj"}
18098 compiler=$CC
18099 compiler_GCJ=$CC
18100 for cc_temp in $compiler""; do
18101   case $cc_temp in
18102     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18103     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18104     \-*) ;;
18105     *) break;;
18106   esac
18107 done
18108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18109
18110
18111 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18112 archive_cmds_need_lc_GCJ=no
18113
18114 old_archive_cmds_GCJ=$old_archive_cmds
18115
18116
18117 lt_prog_compiler_no_builtin_flag_GCJ=
18118
18119 if test "$GCC" = yes; then
18120   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18121
18122
18123 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18124 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18125 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18126   echo $ECHO_N "(cached) $ECHO_C" >&6
18127 else
18128   lt_cv_prog_compiler_rtti_exceptions=no
18129   ac_outfile=conftest.$ac_objext
18130    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18131    lt_compiler_flag="-fno-rtti -fno-exceptions"
18132    # Insert the option either (1) after the last *FLAGS variable, or
18133    # (2) before a word containing "conftest.", or (3) at the end.
18134    # Note that $ac_compile itself does not contain backslashes and begins
18135    # with a dollar sign (not a hyphen), so the echo should work correctly.
18136    # The option is referenced via a variable to avoid confusing sed.
18137    lt_compile=`echo "$ac_compile" | $SED \
18138    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18139    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18140    -e 's:$: $lt_compiler_flag:'`
18141    (eval echo "\"\$as_me:18141: $lt_compile\"" >&5)
18142    (eval "$lt_compile" 2>conftest.err)
18143    ac_status=$?
18144    cat conftest.err >&5
18145    echo "$as_me:18145: \$? = $ac_status" >&5
18146    if (exit $ac_status) && test -s "$ac_outfile"; then
18147      # The compiler can only warn and ignore the option if not recognized
18148      # So say no if there are warnings other than the usual output.
18149      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18150      $SED '/^$/d' conftest.err >conftest.er2
18151      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18152        lt_cv_prog_compiler_rtti_exceptions=yes
18153      fi
18154    fi
18155    $rm conftest*
18156
18157 fi
18158 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18159 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18160
18161 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18162     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18163 else
18164     :
18165 fi
18166
18167 fi
18168
18169 lt_prog_compiler_wl_GCJ=
18170 lt_prog_compiler_pic_GCJ=
18171 lt_prog_compiler_static_GCJ=
18172
18173 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18174 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18175
18176   if test "$GCC" = yes; then
18177     lt_prog_compiler_wl_GCJ='-Wl,'
18178     lt_prog_compiler_static_GCJ='-static'
18179
18180     case $host_os in
18181       aix*)
18182       # All AIX code is PIC.
18183       if test "$host_cpu" = ia64; then
18184         # AIX 5 now supports IA64 processor
18185         lt_prog_compiler_static_GCJ='-Bstatic'
18186       fi
18187       ;;
18188
18189     amigaos*)
18190       # FIXME: we need at least 68020 code to build shared libraries, but
18191       # adding the `-m68020' flag to GCC prevents building anything better,
18192       # like `-m68040'.
18193       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18194       ;;
18195
18196     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18197       # PIC is the default for these OSes.
18198       ;;
18199
18200     mingw* | pw32* | os2*)
18201       # This hack is so that the source file can tell whether it is being
18202       # built for inclusion in a dll (and should export symbols for example).
18203       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18204       ;;
18205
18206     darwin* | rhapsody*)
18207       # PIC is the default on this platform
18208       # Common symbols not allowed in MH_DYLIB files
18209       lt_prog_compiler_pic_GCJ='-fno-common'
18210       ;;
18211
18212     msdosdjgpp*)
18213       # Just because we use GCC doesn't mean we suddenly get shared libraries
18214       # on systems that don't support them.
18215       lt_prog_compiler_can_build_shared_GCJ=no
18216       enable_shared=no
18217       ;;
18218
18219     sysv4*MP*)
18220       if test -d /usr/nec; then
18221         lt_prog_compiler_pic_GCJ=-Kconform_pic
18222       fi
18223       ;;
18224
18225     hpux*)
18226       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18227       # not for PA HP-UX.
18228       case "$host_cpu" in
18229       hppa*64*|ia64*)
18230         # +Z the default
18231         ;;
18232       *)
18233         lt_prog_compiler_pic_GCJ='-fPIC'
18234         ;;
18235       esac
18236       ;;
18237
18238     *)
18239       lt_prog_compiler_pic_GCJ='-fPIC'
18240       ;;
18241     esac
18242   else
18243     # PORTME Check for flag to pass linker flags through the system compiler.
18244     case $host_os in
18245     aix*)
18246       lt_prog_compiler_wl_GCJ='-Wl,'
18247       if test "$host_cpu" = ia64; then
18248         # AIX 5 now supports IA64 processor
18249         lt_prog_compiler_static_GCJ='-Bstatic'
18250       else
18251         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18252       fi
18253       ;;
18254       darwin*)
18255         # PIC is the default on this platform
18256         # Common symbols not allowed in MH_DYLIB files
18257        case $cc_basename in
18258          xlc*)
18259          lt_prog_compiler_pic_GCJ='-qnocommon'
18260          lt_prog_compiler_wl_GCJ='-Wl,'
18261          ;;
18262        esac
18263        ;;
18264
18265     mingw* | pw32* | os2*)
18266       # This hack is so that the source file can tell whether it is being
18267       # built for inclusion in a dll (and should export symbols for example).
18268       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18269       ;;
18270
18271     hpux9* | hpux10* | hpux11*)
18272       lt_prog_compiler_wl_GCJ='-Wl,'
18273       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18274       # not for PA HP-UX.
18275       case "$host_cpu" in
18276       hppa*64*|ia64*)
18277         # +Z the default
18278         ;;
18279       *)
18280         lt_prog_compiler_pic_GCJ='+Z'
18281         ;;
18282       esac
18283       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18284       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18285       ;;
18286
18287     irix5* | irix6* | nonstopux*)
18288       lt_prog_compiler_wl_GCJ='-Wl,'
18289       # PIC (with -KPIC) is the default.
18290       lt_prog_compiler_static_GCJ='-non_shared'
18291       ;;
18292
18293     newsos6)
18294       lt_prog_compiler_pic_GCJ='-KPIC'
18295       lt_prog_compiler_static_GCJ='-Bstatic'
18296       ;;
18297
18298     linux*)
18299       case $cc_basename in
18300       icc* | ecc*)
18301         lt_prog_compiler_wl_GCJ='-Wl,'
18302         lt_prog_compiler_pic_GCJ='-KPIC'
18303         lt_prog_compiler_static_GCJ='-static'
18304         ;;
18305       pgcc* | pgf77* | pgf90*)
18306         # Portland Group compilers (*not* the Pentium gcc compiler,
18307         # which looks to be a dead project)
18308         lt_prog_compiler_wl_GCJ='-Wl,'
18309         lt_prog_compiler_pic_GCJ='-fpic'
18310         lt_prog_compiler_static_GCJ='-static'
18311         ;;
18312       ccc*)
18313         lt_prog_compiler_wl_GCJ='-Wl,'
18314         # All Alpha code is PIC.
18315         lt_prog_compiler_static_GCJ='-non_shared'
18316         ;;
18317       esac
18318       ;;
18319
18320     osf3* | osf4* | osf5*)
18321       lt_prog_compiler_wl_GCJ='-Wl,'
18322       # All OSF/1 code is PIC.
18323       lt_prog_compiler_static_GCJ='-non_shared'
18324       ;;
18325
18326     sco3.2v5*)
18327       lt_prog_compiler_pic_GCJ='-Kpic'
18328       lt_prog_compiler_static_GCJ='-dn'
18329       ;;
18330
18331     solaris*)
18332       lt_prog_compiler_pic_GCJ='-KPIC'
18333       lt_prog_compiler_static_GCJ='-Bstatic'
18334       case $cc_basename in
18335       f77* | f90* | f95*)
18336         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18337       *)
18338         lt_prog_compiler_wl_GCJ='-Wl,';;
18339       esac
18340       ;;
18341
18342     sunos4*)
18343       lt_prog_compiler_wl_GCJ='-Qoption ld '
18344       lt_prog_compiler_pic_GCJ='-PIC'
18345       lt_prog_compiler_static_GCJ='-Bstatic'
18346       ;;
18347
18348     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18349       lt_prog_compiler_wl_GCJ='-Wl,'
18350       lt_prog_compiler_pic_GCJ='-KPIC'
18351       lt_prog_compiler_static_GCJ='-Bstatic'
18352       ;;
18353
18354     sysv4*MP*)
18355       if test -d /usr/nec ;then
18356         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18357         lt_prog_compiler_static_GCJ='-Bstatic'
18358       fi
18359       ;;
18360
18361     unicos*)
18362       lt_prog_compiler_wl_GCJ='-Wl,'
18363       lt_prog_compiler_can_build_shared_GCJ=no
18364       ;;
18365
18366     uts4*)
18367       lt_prog_compiler_pic_GCJ='-pic'
18368       lt_prog_compiler_static_GCJ='-Bstatic'
18369       ;;
18370
18371     *)
18372       lt_prog_compiler_can_build_shared_GCJ=no
18373       ;;
18374     esac
18375   fi
18376
18377 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18378 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18379
18380 #
18381 # Check to make sure the PIC flag actually works.
18382 #
18383 if test -n "$lt_prog_compiler_pic_GCJ"; then
18384
18385 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18386 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18387 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18388   echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390   lt_prog_compiler_pic_works_GCJ=no
18391   ac_outfile=conftest.$ac_objext
18392    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18393    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18394    # Insert the option either (1) after the last *FLAGS variable, or
18395    # (2) before a word containing "conftest.", or (3) at the end.
18396    # Note that $ac_compile itself does not contain backslashes and begins
18397    # with a dollar sign (not a hyphen), so the echo should work correctly.
18398    # The option is referenced via a variable to avoid confusing sed.
18399    lt_compile=`echo "$ac_compile" | $SED \
18400    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18401    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18402    -e 's:$: $lt_compiler_flag:'`
18403    (eval echo "\"\$as_me:18403: $lt_compile\"" >&5)
18404    (eval "$lt_compile" 2>conftest.err)
18405    ac_status=$?
18406    cat conftest.err >&5
18407    echo "$as_me:18407: \$? = $ac_status" >&5
18408    if (exit $ac_status) && test -s "$ac_outfile"; then
18409      # The compiler can only warn and ignore the option if not recognized
18410      # So say no if there are warnings other than the usual output.
18411      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18412      $SED '/^$/d' conftest.err >conftest.er2
18413      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18414        lt_prog_compiler_pic_works_GCJ=yes
18415      fi
18416    fi
18417    $rm conftest*
18418
18419 fi
18420 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18421 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18422
18423 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18424     case $lt_prog_compiler_pic_GCJ in
18425      "" | " "*) ;;
18426      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18427      esac
18428 else
18429     lt_prog_compiler_pic_GCJ=
18430      lt_prog_compiler_can_build_shared_GCJ=no
18431 fi
18432
18433 fi
18434 case "$host_os" in
18435   # For platforms which do not support PIC, -DPIC is meaningless:
18436   *djgpp*)
18437     lt_prog_compiler_pic_GCJ=
18438     ;;
18439   *)
18440     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18441     ;;
18442 esac
18443
18444 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18445 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18446 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449   lt_cv_prog_compiler_c_o_GCJ=no
18450    $rm -r conftest 2>/dev/null
18451    mkdir conftest
18452    cd conftest
18453    mkdir out
18454    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18455
18456    lt_compiler_flag="-o out/conftest2.$ac_objext"
18457    # Insert the option either (1) after the last *FLAGS variable, or
18458    # (2) before a word containing "conftest.", or (3) at the end.
18459    # Note that $ac_compile itself does not contain backslashes and begins
18460    # with a dollar sign (not a hyphen), so the echo should work correctly.
18461    lt_compile=`echo "$ac_compile" | $SED \
18462    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18464    -e 's:$: $lt_compiler_flag:'`
18465    (eval echo "\"\$as_me:18465: $lt_compile\"" >&5)
18466    (eval "$lt_compile" 2>out/conftest.err)
18467    ac_status=$?
18468    cat out/conftest.err >&5
18469    echo "$as_me:18469: \$? = $ac_status" >&5
18470    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18471    then
18472      # The compiler can only warn and ignore the option if not recognized
18473      # So say no if there are warnings
18474      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18475      $SED '/^$/d' out/conftest.err >out/conftest.er2
18476      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18477        lt_cv_prog_compiler_c_o_GCJ=yes
18478      fi
18479    fi
18480    chmod u+w .
18481    $rm conftest*
18482    # SGI C++ compiler will create directory out/ii_files/ for
18483    # template instantiation
18484    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18485    $rm out/* && rmdir out
18486    cd ..
18487    rmdir conftest
18488    $rm conftest*
18489
18490 fi
18491 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18492 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18493
18494
18495 hard_links="nottested"
18496 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18497   # do not overwrite the value of need_locks provided by the user
18498   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18499 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18500   hard_links=yes
18501   $rm conftest*
18502   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18503   touch conftest.a
18504   ln conftest.a conftest.b 2>&5 || hard_links=no
18505   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18506   echo "$as_me:$LINENO: result: $hard_links" >&5
18507 echo "${ECHO_T}$hard_links" >&6
18508   if test "$hard_links" = no; then
18509     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18510 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18511     need_locks=warn
18512   fi
18513 else
18514   need_locks=no
18515 fi
18516
18517 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18519
18520   runpath_var=
18521   allow_undefined_flag_GCJ=
18522   enable_shared_with_static_runtimes_GCJ=no
18523   archive_cmds_GCJ=
18524   archive_expsym_cmds_GCJ=
18525   old_archive_From_new_cmds_GCJ=
18526   old_archive_from_expsyms_cmds_GCJ=
18527   export_dynamic_flag_spec_GCJ=
18528   whole_archive_flag_spec_GCJ=
18529   thread_safe_flag_spec_GCJ=
18530   hardcode_libdir_flag_spec_GCJ=
18531   hardcode_libdir_flag_spec_ld_GCJ=
18532   hardcode_libdir_separator_GCJ=
18533   hardcode_direct_GCJ=no
18534   hardcode_minus_L_GCJ=no
18535   hardcode_shlibpath_var_GCJ=unsupported
18536   link_all_deplibs_GCJ=unknown
18537   hardcode_automatic_GCJ=no
18538   module_cmds_GCJ=
18539   module_expsym_cmds_GCJ=
18540   always_export_symbols_GCJ=no
18541   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18542   # include_expsyms should be a list of space-separated symbols to be *always*
18543   # included in the symbol list
18544   include_expsyms_GCJ=
18545   # exclude_expsyms can be an extended regexp of symbols to exclude
18546   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18547   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18548   # as well as any symbol that contains `d'.
18549   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18550   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18551   # platforms (ab)use it in PIC code, but their linkers get confused if
18552   # the symbol is explicitly referenced.  Since portable code cannot
18553   # rely on this symbol name, it's probably fine to never include it in
18554   # preloaded symbol tables.
18555   extract_expsyms_cmds=
18556   # Just being paranoid about ensuring that cc_basename is set.
18557   for cc_temp in $compiler""; do
18558   case $cc_temp in
18559     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18560     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18561     \-*) ;;
18562     *) break;;
18563   esac
18564 done
18565 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18566
18567   case $host_os in
18568   cygwin* | mingw* | pw32*)
18569     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18570     # When not using gcc, we currently assume that we are using
18571     # Microsoft Visual C++.
18572     if test "$GCC" != yes; then
18573       with_gnu_ld=no
18574     fi
18575     ;;
18576   openbsd*)
18577     with_gnu_ld=no
18578     ;;
18579   esac
18580
18581   ld_shlibs_GCJ=yes
18582   if test "$with_gnu_ld" = yes; then
18583     # If archive_cmds runs LD, not CC, wlarc should be empty
18584     wlarc='${wl}'
18585
18586     # Set some defaults for GNU ld with shared library support. These
18587     # are reset later if shared libraries are not supported. Putting them
18588     # here allows them to be overridden if necessary.
18589     runpath_var=LD_RUN_PATH
18590     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18591     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18592     # ancient GNU ld didn't support --whole-archive et. al.
18593     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18594         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18595       else
18596         whole_archive_flag_spec_GCJ=
18597     fi
18598     supports_anon_versioning=no
18599     case `$LD -v 2>/dev/null` in
18600       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18601       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18602       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18603       *\ 2.11.*) ;; # other 2.11 versions
18604       *) supports_anon_versioning=yes ;;
18605     esac
18606
18607     # See if GNU ld supports shared libraries.
18608     case $host_os in
18609     aix3* | aix4* | aix5*)
18610       # On AIX/PPC, the GNU linker is very broken
18611       if test "$host_cpu" != ia64; then
18612         ld_shlibs_GCJ=no
18613         cat <<EOF 1>&2
18614
18615 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18616 *** to be unable to reliably create shared libraries on AIX.
18617 *** Therefore, libtool is disabling shared libraries support.  If you
18618 *** really care for shared libraries, you may want to modify your PATH
18619 *** so that a non-GNU linker is found, and then restart.
18620
18621 EOF
18622       fi
18623       ;;
18624
18625     amigaos*)
18626       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)'
18627       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18628       hardcode_minus_L_GCJ=yes
18629
18630       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18631       # that the semantics of dynamic libraries on AmigaOS, at least up
18632       # to version 4, is to share data among multiple programs linked
18633       # with the same dynamic library.  Since this doesn't match the
18634       # behavior of shared libraries on other platforms, we can't use
18635       # them.
18636       ld_shlibs_GCJ=no
18637       ;;
18638
18639     beos*)
18640       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18641         allow_undefined_flag_GCJ=unsupported
18642         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18643         # support --undefined.  This deserves some investigation.  FIXME
18644         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18645       else
18646         ld_shlibs_GCJ=no
18647       fi
18648       ;;
18649
18650     cygwin* | mingw* | pw32*)
18651       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18652       # as there is no search path for DLLs.
18653       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18654       allow_undefined_flag_GCJ=unsupported
18655       always_export_symbols_GCJ=no
18656       enable_shared_with_static_runtimes_GCJ=yes
18657       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18658
18659       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18660         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18661         # If the export-symbols file already is a .def file (1st line
18662         # is EXPORTS), use it as is; otherwise, prepend...
18663         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18664           cp $export_symbols $output_objdir/$soname.def;
18665         else
18666           echo EXPORTS > $output_objdir/$soname.def;
18667           cat $export_symbols >> $output_objdir/$soname.def;
18668         fi~
18669         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18670       else
18671         ld_shlibs_GCJ=no
18672       fi
18673       ;;
18674
18675     linux*)
18676       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18677         tmp_addflag=
18678         case $cc_basename,$host_cpu in
18679         pgcc*)                          # Portland Group C compiler
18680           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'
18681           tmp_addflag=' $pic_flag'
18682           ;;
18683         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18684           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'
18685           tmp_addflag=' $pic_flag -Mnomain' ;;
18686         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18687           tmp_addflag=' -i_dynamic' ;;
18688         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18689           tmp_addflag=' -i_dynamic -nofor_main' ;;
18690         ifc* | ifort*)                  # Intel Fortran compiler
18691           tmp_addflag=' -nofor_main' ;;
18692         esac
18693         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18694
18695         if test $supports_anon_versioning = yes; then
18696           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18697   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18698   $echo "local: *; };" >> $output_objdir/$libname.ver~
18699           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18700         fi
18701       else
18702         ld_shlibs_GCJ=no
18703       fi
18704       ;;
18705
18706     netbsd*)
18707       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18708         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18709         wlarc=
18710       else
18711         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18712         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18713       fi
18714       ;;
18715
18716     solaris* | sysv5*)
18717       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18718         ld_shlibs_GCJ=no
18719         cat <<EOF 1>&2
18720
18721 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18722 *** create shared libraries on Solaris systems.  Therefore, libtool
18723 *** is disabling shared libraries support.  We urge you to upgrade GNU
18724 *** binutils to release 2.9.1 or newer.  Another option is to modify
18725 *** your PATH or compiler configuration so that the native linker is
18726 *** used, and then restart.
18727
18728 EOF
18729       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18730         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18731         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18732       else
18733         ld_shlibs_GCJ=no
18734       fi
18735       ;;
18736
18737     sunos4*)
18738       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18739       wlarc=
18740       hardcode_direct_GCJ=yes
18741       hardcode_shlibpath_var_GCJ=no
18742       ;;
18743
18744     *)
18745       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18746         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18747         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18748       else
18749         ld_shlibs_GCJ=no
18750       fi
18751       ;;
18752     esac
18753
18754     if test "$ld_shlibs_GCJ" = no; then
18755       runpath_var=
18756       hardcode_libdir_flag_spec_GCJ=
18757       export_dynamic_flag_spec_GCJ=
18758       whole_archive_flag_spec_GCJ=
18759     fi
18760   else
18761     # PORTME fill in a description of your system's linker (not GNU ld)
18762     case $host_os in
18763     aix3*)
18764       allow_undefined_flag_GCJ=unsupported
18765       always_export_symbols_GCJ=yes
18766       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'
18767       # Note: this linker hardcodes the directories in LIBPATH if there
18768       # are no directories specified by -L.
18769       hardcode_minus_L_GCJ=yes
18770       if test "$GCC" = yes && test -z "$link_static_flag"; then
18771         # Neither direct hardcoding nor static linking is supported with a
18772         # broken collect2.
18773         hardcode_direct_GCJ=unsupported
18774       fi
18775       ;;
18776
18777     aix4* | aix5*)
18778       if test "$host_cpu" = ia64; then
18779         # On IA64, the linker does run time linking by default, so we don't
18780         # have to do anything special.
18781         aix_use_runtimelinking=no
18782         exp_sym_flag='-Bexport'
18783         no_entry_flag=""
18784       else
18785         # If we're using GNU nm, then we don't want the "-C" option.
18786         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18787         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18788           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'
18789         else
18790           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'
18791         fi
18792         aix_use_runtimelinking=no
18793
18794         # Test if we are trying to use run time linking or normal
18795         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18796         # need to do runtime linking.
18797         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18798           for ld_flag in $LDFLAGS; do
18799           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18800             aix_use_runtimelinking=yes
18801             break
18802           fi
18803           done
18804         esac
18805
18806         exp_sym_flag='-bexport'
18807         no_entry_flag='-bnoentry'
18808       fi
18809
18810       # When large executables or shared objects are built, AIX ld can
18811       # have problems creating the table of contents.  If linking a library
18812       # or program results in "error TOC overflow" add -mminimal-toc to
18813       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18814       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18815
18816       archive_cmds_GCJ=''
18817       hardcode_direct_GCJ=yes
18818       hardcode_libdir_separator_GCJ=':'
18819       link_all_deplibs_GCJ=yes
18820
18821       if test "$GCC" = yes; then
18822         case $host_os in aix4.[012]|aix4.[012].*)
18823         # We only want to do this on AIX 4.2 and lower, the check
18824         # below for broken collect2 doesn't work under 4.3+
18825           collect2name=`${CC} -print-prog-name=collect2`
18826           if test -f "$collect2name" && \
18827            strings "$collect2name" | grep resolve_lib_name >/dev/null
18828           then
18829           # We have reworked collect2
18830           hardcode_direct_GCJ=yes
18831           else
18832           # We have old collect2
18833           hardcode_direct_GCJ=unsupported
18834           # It fails to find uninstalled libraries when the uninstalled
18835           # path is not listed in the libpath.  Setting hardcode_minus_L
18836           # to unsupported forces relinking
18837           hardcode_minus_L_GCJ=yes
18838           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18839           hardcode_libdir_separator_GCJ=
18840           fi
18841         esac
18842         shared_flag='-shared'
18843         if test "$aix_use_runtimelinking" = yes; then
18844           shared_flag="$shared_flag "'${wl}-G'
18845         fi
18846       else
18847         # not using gcc
18848         if test "$host_cpu" = ia64; then
18849         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18850         # chokes on -Wl,-G. The following line is correct:
18851           shared_flag='-G'
18852         else
18853         if test "$aix_use_runtimelinking" = yes; then
18854             shared_flag='${wl}-G'
18855           else
18856             shared_flag='${wl}-bM:SRE'
18857         fi
18858         fi
18859       fi
18860
18861       # It seems that -bexpall does not export symbols beginning with
18862       # underscore (_), so it is better to generate a list of symbols to export.
18863       always_export_symbols_GCJ=yes
18864       if test "$aix_use_runtimelinking" = yes; then
18865         # Warning - without using the other runtime loading flags (-brtl),
18866         # -berok will link without error, but may produce a broken library.
18867         allow_undefined_flag_GCJ='-berok'
18868        # Determine the default libpath from the value encoded in an empty executable.
18869        cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875
18876 int
18877 main ()
18878 {
18879
18880   ;
18881   return 0;
18882 }
18883 _ACEOF
18884 rm -f conftest.$ac_objext conftest$ac_exeext
18885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18886   (eval $ac_link) 2>conftest.er1
18887   ac_status=$?
18888   grep -v '^ *+' conftest.er1 >conftest.err
18889   rm -f conftest.er1
18890   cat conftest.err >&5
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); } &&
18893          { ac_try='test -z "$ac_c_werror_flag"
18894                          || test ! -s conftest.err'
18895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896   (eval $ac_try) 2>&5
18897   ac_status=$?
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); }; } &&
18900          { ac_try='test -s conftest$ac_exeext'
18901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902   (eval $ac_try) 2>&5
18903   ac_status=$?
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); }; }; then
18906
18907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18908 }'`
18909 # Check for a 64-bit object if we didn't find anything.
18910 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; }
18911 }'`; fi
18912 else
18913   echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 fi
18917 rm -f conftest.err conftest.$ac_objext \
18918       conftest$ac_exeext conftest.$ac_ext
18919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18920
18921        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18922         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"
18923        else
18924         if test "$host_cpu" = ia64; then
18925           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18926           allow_undefined_flag_GCJ="-z nodefs"
18927           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"
18928         else
18929          # Determine the default libpath from the value encoded in an empty executable.
18930          cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936
18937 int
18938 main ()
18939 {
18940
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18947   (eval $ac_link) 2>conftest.er1
18948   ac_status=$?
18949   grep -v '^ *+' conftest.er1 >conftest.err
18950   rm -f conftest.er1
18951   cat conftest.err >&5
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); } &&
18954          { ac_try='test -z "$ac_c_werror_flag"
18955                          || test ! -s conftest.err'
18956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957   (eval $ac_try) 2>&5
18958   ac_status=$?
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); }; } &&
18961          { ac_try='test -s conftest$ac_exeext'
18962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963   (eval $ac_try) 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; }; then
18967
18968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18969 }'`
18970 # Check for a 64-bit object if we didn't find anything.
18971 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; }
18972 }'`; fi
18973 else
18974   echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18976
18977 fi
18978 rm -f conftest.err conftest.$ac_objext \
18979       conftest$ac_exeext conftest.$ac_ext
18980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18981
18982          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18983           # Warning - without using the other run time loading flags,
18984           # -berok will link without error, but may produce a broken library.
18985           no_undefined_flag_GCJ=' ${wl}-bernotok'
18986           allow_undefined_flag_GCJ=' ${wl}-berok'
18987           # -bexpall does not export symbols beginning with underscore (_)
18988           always_export_symbols_GCJ=yes
18989           # Exported symbols can be pulled into shared objects from archives
18990           whole_archive_flag_spec_GCJ=' '
18991           archive_cmds_need_lc_GCJ=yes
18992           # This is similar to how AIX traditionally builds it's shared libraries.
18993           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'
18994         fi
18995       fi
18996       ;;
18997
18998     amigaos*)
18999       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)'
19000       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19001       hardcode_minus_L_GCJ=yes
19002       # see comment about different semantics on the GNU ld section
19003       ld_shlibs_GCJ=no
19004       ;;
19005
19006     bsdi[45]*)
19007       export_dynamic_flag_spec_GCJ=-rdynamic
19008       ;;
19009
19010     cygwin* | mingw* | pw32*)
19011       # When not using gcc, we currently assume that we are using
19012       # Microsoft Visual C++.
19013       # hardcode_libdir_flag_spec is actually meaningless, as there is
19014       # no search path for DLLs.
19015       hardcode_libdir_flag_spec_GCJ=' '
19016       allow_undefined_flag_GCJ=unsupported
19017       # Tell ltmain to make .lib files, not .a files.
19018       libext=lib
19019       # Tell ltmain to make .dll files, not .so files.
19020       shrext_cmds=".dll"
19021       # FIXME: Setting linknames here is a bad hack.
19022       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19023       # The linker will automatically build a .lib file if we build a DLL.
19024       old_archive_From_new_cmds_GCJ='true'
19025       # FIXME: Should let the user specify the lib program.
19026       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19027       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19028       enable_shared_with_static_runtimes_GCJ=yes
19029       ;;
19030
19031     darwin* | rhapsody*)
19032       case "$host_os" in
19033         rhapsody* | darwin1.[012])
19034          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19035          ;;
19036        *) # Darwin 1.3 on
19037          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19038            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19039          else
19040            case ${MACOSX_DEPLOYMENT_TARGET} in
19041              10.[012])
19042                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19043                ;;
19044              10.*)
19045                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19046                ;;
19047            esac
19048          fi
19049          ;;
19050       esac
19051       archive_cmds_need_lc_GCJ=no
19052       hardcode_direct_GCJ=no
19053       hardcode_automatic_GCJ=yes
19054       hardcode_shlibpath_var_GCJ=unsupported
19055       whole_archive_flag_spec_GCJ=''
19056       link_all_deplibs_GCJ=yes
19057     if test "$GCC" = yes ; then
19058         output_verbose_link_cmd='echo'
19059         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19060       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19061       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19062       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}'
19063       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}'
19064     else
19065       case $cc_basename in
19066         xlc*)
19067          output_verbose_link_cmd='echo'
19068          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19069          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19070           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19071          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}'
19072           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}'
19073           ;;
19074        *)
19075          ld_shlibs_GCJ=no
19076           ;;
19077       esac
19078     fi
19079       ;;
19080
19081     dgux*)
19082       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19083       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19084       hardcode_shlibpath_var_GCJ=no
19085       ;;
19086
19087     freebsd1*)
19088       ld_shlibs_GCJ=no
19089       ;;
19090
19091     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19092     # support.  Future versions do this automatically, but an explicit c++rt0.o
19093     # does not break anything, and helps significantly (at the cost of a little
19094     # extra space).
19095     freebsd2.2*)
19096       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19097       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19098       hardcode_direct_GCJ=yes
19099       hardcode_shlibpath_var_GCJ=no
19100       ;;
19101
19102     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19103     freebsd2*)
19104       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19105       hardcode_direct_GCJ=yes
19106       hardcode_minus_L_GCJ=yes
19107       hardcode_shlibpath_var_GCJ=no
19108       ;;
19109
19110     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19111     freebsd* | kfreebsd*-gnu | dragonfly*)
19112       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19113       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19114       hardcode_direct_GCJ=yes
19115       hardcode_shlibpath_var_GCJ=no
19116       ;;
19117
19118     hpux9*)
19119       if test "$GCC" = yes; then
19120         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'
19121       else
19122         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'
19123       fi
19124       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19125       hardcode_libdir_separator_GCJ=:
19126       hardcode_direct_GCJ=yes
19127
19128       # hardcode_minus_L: Not really in the search PATH,
19129       # but as the default location of the library.
19130       hardcode_minus_L_GCJ=yes
19131       export_dynamic_flag_spec_GCJ='${wl}-E'
19132       ;;
19133
19134     hpux10* | hpux11*)
19135       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19136         case "$host_cpu" in
19137         hppa*64*|ia64*)
19138           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19139           ;;
19140         *)
19141           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19142           ;;
19143         esac
19144       else
19145         case "$host_cpu" in
19146         hppa*64*|ia64*)
19147           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19148           ;;
19149         *)
19150           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19151           ;;
19152         esac
19153       fi
19154       if test "$with_gnu_ld" = no; then
19155         case "$host_cpu" in
19156         hppa*64*)
19157           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19158           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19159           hardcode_libdir_separator_GCJ=:
19160           hardcode_direct_GCJ=no
19161           hardcode_shlibpath_var_GCJ=no
19162           ;;
19163         ia64*)
19164           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19165           hardcode_direct_GCJ=no
19166           hardcode_shlibpath_var_GCJ=no
19167
19168           # hardcode_minus_L: Not really in the search PATH,
19169           # but as the default location of the library.
19170           hardcode_minus_L_GCJ=yes
19171           ;;
19172         *)
19173           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19174           hardcode_libdir_separator_GCJ=:
19175           hardcode_direct_GCJ=yes
19176           export_dynamic_flag_spec_GCJ='${wl}-E'
19177
19178           # hardcode_minus_L: Not really in the search PATH,
19179           # but as the default location of the library.
19180           hardcode_minus_L_GCJ=yes
19181           ;;
19182         esac
19183       fi
19184       ;;
19185
19186     irix5* | irix6* | nonstopux*)
19187       if test "$GCC" = yes; then
19188         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'
19189       else
19190         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'
19191         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19192       fi
19193       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19194       hardcode_libdir_separator_GCJ=:
19195       link_all_deplibs_GCJ=yes
19196       ;;
19197
19198     netbsd*)
19199       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19200         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19201       else
19202         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19203       fi
19204       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19205       hardcode_direct_GCJ=yes
19206       hardcode_shlibpath_var_GCJ=no
19207       ;;
19208
19209     newsos6)
19210       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19211       hardcode_direct_GCJ=yes
19212       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19213       hardcode_libdir_separator_GCJ=:
19214       hardcode_shlibpath_var_GCJ=no
19215       ;;
19216
19217     openbsd*)
19218       hardcode_direct_GCJ=yes
19219       hardcode_shlibpath_var_GCJ=no
19220       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19221         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19222         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19223         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19224         export_dynamic_flag_spec_GCJ='${wl}-E'
19225       else
19226        case $host_os in
19227          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19228            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19229            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19230            ;;
19231          *)
19232            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19233            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19234            ;;
19235        esac
19236       fi
19237       ;;
19238
19239     os2*)
19240       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19241       hardcode_minus_L_GCJ=yes
19242       allow_undefined_flag_GCJ=unsupported
19243       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'
19244       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19245       ;;
19246
19247     osf3*)
19248       if test "$GCC" = yes; then
19249         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19250         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'
19251       else
19252         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19253         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'
19254       fi
19255       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19256       hardcode_libdir_separator_GCJ=:
19257       ;;
19258
19259     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19260       if test "$GCC" = yes; then
19261         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19262         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'
19263         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19264       else
19265         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19266         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'
19267         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~
19268         $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'
19269
19270         # Both c and cxx compiler support -rpath directly
19271         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19272       fi
19273       hardcode_libdir_separator_GCJ=:
19274       ;;
19275
19276     sco3.2v5*)
19277       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19278       hardcode_shlibpath_var_GCJ=no
19279       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19280       runpath_var=LD_RUN_PATH
19281       hardcode_runpath_var=yes
19282       ;;
19283
19284     solaris*)
19285       no_undefined_flag_GCJ=' -z text'
19286       if test "$GCC" = yes; then
19287         wlarc='${wl}'
19288         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19289         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19290           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19291       else
19292         wlarc=''
19293         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19294         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19295         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19296       fi
19297       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19298       hardcode_shlibpath_var_GCJ=no
19299       case $host_os in
19300       solaris2.[0-5] | solaris2.[0-5].*) ;;
19301       *)
19302         # The compiler driver will combine linker options so we
19303         # cannot just pass the convience library names through
19304         # without $wl, iff we do not link with $LD.
19305         # Luckily, gcc supports the same syntax we need for Sun Studio.
19306         # Supported since Solaris 2.6 (maybe 2.5.1?)
19307         case $wlarc in
19308         '')
19309           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19310         *)
19311           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' ;;
19312         esac ;;
19313       esac
19314       link_all_deplibs_GCJ=yes
19315       ;;
19316
19317     sunos4*)
19318       if test "x$host_vendor" = xsequent; then
19319         # Use $CC to link under sequent, because it throws in some extra .o
19320         # files that make .init and .fini sections work.
19321         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19322       else
19323         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19324       fi
19325       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19326       hardcode_direct_GCJ=yes
19327       hardcode_minus_L_GCJ=yes
19328       hardcode_shlibpath_var_GCJ=no
19329       ;;
19330
19331     sysv4)
19332       case $host_vendor in
19333         sni)
19334           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19335           hardcode_direct_GCJ=yes # is this really true???
19336         ;;
19337         siemens)
19338           ## LD is ld it makes a PLAMLIB
19339           ## CC just makes a GrossModule.
19340           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19341           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19342           hardcode_direct_GCJ=no
19343         ;;
19344         motorola)
19345           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19346           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19347         ;;
19348       esac
19349       runpath_var='LD_RUN_PATH'
19350       hardcode_shlibpath_var_GCJ=no
19351       ;;
19352
19353     sysv4.3*)
19354       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19355       hardcode_shlibpath_var_GCJ=no
19356       export_dynamic_flag_spec_GCJ='-Bexport'
19357       ;;
19358
19359     sysv4*MP*)
19360       if test -d /usr/nec; then
19361         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19362         hardcode_shlibpath_var_GCJ=no
19363         runpath_var=LD_RUN_PATH
19364         hardcode_runpath_var=yes
19365         ld_shlibs_GCJ=yes
19366       fi
19367       ;;
19368
19369     sysv4.2uw2*)
19370       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19371       hardcode_direct_GCJ=yes
19372       hardcode_minus_L_GCJ=no
19373       hardcode_shlibpath_var_GCJ=no
19374       hardcode_runpath_var=yes
19375       runpath_var=LD_RUN_PATH
19376       ;;
19377
19378    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19379       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19380       if test "$GCC" = yes; then
19381         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19382       else
19383         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19384       fi
19385       runpath_var='LD_RUN_PATH'
19386       hardcode_shlibpath_var_GCJ=no
19387       ;;
19388
19389     sysv5*)
19390       no_undefined_flag_GCJ=' -z text'
19391       # $CC -shared without GNU ld will not create a library from C++
19392       # object files and a static libstdc++, better avoid it by now
19393       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19394       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19395                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19396       hardcode_libdir_flag_spec_GCJ=
19397       hardcode_shlibpath_var_GCJ=no
19398       runpath_var='LD_RUN_PATH'
19399       ;;
19400
19401     uts4*)
19402       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19403       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19404       hardcode_shlibpath_var_GCJ=no
19405       ;;
19406
19407     *)
19408       ld_shlibs_GCJ=no
19409       ;;
19410     esac
19411   fi
19412
19413 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19414 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19415 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19416
19417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19418 if test "$GCC" = yes; then
19419   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19420 fi
19421
19422 #
19423 # Do we need to explicitly link libc?
19424 #
19425 case "x$archive_cmds_need_lc_GCJ" in
19426 x|xyes)
19427   # Assume -lc should be added
19428   archive_cmds_need_lc_GCJ=yes
19429
19430   if test "$enable_shared" = yes && test "$GCC" = yes; then
19431     case $archive_cmds_GCJ in
19432     *'~'*)
19433       # FIXME: we may have to deal with multi-command sequences.
19434       ;;
19435     '$CC '*)
19436       # Test whether the compiler implicitly links with -lc since on some
19437       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19438       # to ld, don't add -lc before -lgcc.
19439       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19440 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19441       $rm conftest*
19442       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19443
19444       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19445   (eval $ac_compile) 2>&5
19446   ac_status=$?
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); } 2>conftest.err; then
19449         soname=conftest
19450         lib=conftest
19451         libobjs=conftest.$ac_objext
19452         deplibs=
19453         wl=$lt_prog_compiler_wl_GCJ
19454         compiler_flags=-v
19455         linker_flags=-v
19456         verstring=
19457         output_objdir=.
19458         libname=conftest
19459         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19460         allow_undefined_flag_GCJ=
19461         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19462   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); }
19466         then
19467           archive_cmds_need_lc_GCJ=no
19468         else
19469           archive_cmds_need_lc_GCJ=yes
19470         fi
19471         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19472       else
19473         cat conftest.err 1>&5
19474       fi
19475       $rm conftest*
19476       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19477 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19478       ;;
19479     esac
19480   fi
19481   ;;
19482 esac
19483
19484 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19486 library_names_spec=
19487 libname_spec='lib$name'
19488 soname_spec=
19489 shrext_cmds=".so"
19490 postinstall_cmds=
19491 postuninstall_cmds=
19492 finish_cmds=
19493 finish_eval=
19494 shlibpath_var=
19495 shlibpath_overrides_runpath=unknown
19496 version_type=none
19497 dynamic_linker="$host_os ld.so"
19498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19499 if test "$GCC" = yes; then
19500   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19501   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19502     # if the path contains ";" then we assume it to be the separator
19503     # otherwise default to the standard path separator (i.e. ":") - it is
19504     # assumed that no part of a normal pathname contains ";" but that should
19505     # okay in the real world where ";" in dirpaths is itself problematic.
19506     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19507   else
19508     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19509   fi
19510 else
19511   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19512 fi
19513 need_lib_prefix=unknown
19514 hardcode_into_libs=no
19515
19516 # when you set need_version to no, make sure it does not cause -set_version
19517 # flags to be left without arguments
19518 need_version=unknown
19519
19520 case $host_os in
19521 aix3*)
19522   version_type=linux
19523   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19524   shlibpath_var=LIBPATH
19525
19526   # AIX 3 has no versioning support, so we append a major version to the name.
19527   soname_spec='${libname}${release}${shared_ext}$major'
19528   ;;
19529
19530 aix4* | aix5*)
19531   version_type=linux
19532   need_lib_prefix=no
19533   need_version=no
19534   hardcode_into_libs=yes
19535   if test "$host_cpu" = ia64; then
19536     # AIX 5 supports IA64
19537     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19538     shlibpath_var=LD_LIBRARY_PATH
19539   else
19540     # With GCC up to 2.95.x, collect2 would create an import file
19541     # for dependence libraries.  The import file would start with
19542     # the line `#! .'.  This would cause the generated library to
19543     # depend on `.', always an invalid library.  This was fixed in
19544     # development snapshots of GCC prior to 3.0.
19545     case $host_os in
19546       aix4 | aix4.[01] | aix4.[01].*)
19547       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19548            echo ' yes '
19549            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19550         :
19551       else
19552         can_build_shared=no
19553       fi
19554       ;;
19555     esac
19556     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19557     # soname into executable. Probably we can add versioning support to
19558     # collect2, so additional links can be useful in future.
19559     if test "$aix_use_runtimelinking" = yes; then
19560       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19561       # instead of lib<name>.a to let people know that these are not
19562       # typical AIX shared libraries.
19563       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19564     else
19565       # We preserve .a as extension for shared libraries through AIX4.2
19566       # and later when we are not doing run time linking.
19567       library_names_spec='${libname}${release}.a $libname.a'
19568       soname_spec='${libname}${release}${shared_ext}$major'
19569     fi
19570     shlibpath_var=LIBPATH
19571   fi
19572   ;;
19573
19574 amigaos*)
19575   library_names_spec='$libname.ixlibrary $libname.a'
19576   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19577   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'
19578   ;;
19579
19580 beos*)
19581   library_names_spec='${libname}${shared_ext}'
19582   dynamic_linker="$host_os ld.so"
19583   shlibpath_var=LIBRARY_PATH
19584   ;;
19585
19586 bsdi[45]*)
19587   version_type=linux
19588   need_version=no
19589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590   soname_spec='${libname}${release}${shared_ext}$major'
19591   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19592   shlibpath_var=LD_LIBRARY_PATH
19593   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19594   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19595   # the default ld.so.conf also contains /usr/contrib/lib and
19596   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19597   # libtool to hard-code these into programs
19598   ;;
19599
19600 cygwin* | mingw* | pw32*)
19601   version_type=windows
19602   shrext_cmds=".dll"
19603   need_version=no
19604   need_lib_prefix=no
19605
19606   case $GCC,$host_os in
19607   yes,cygwin* | yes,mingw* | yes,pw32*)
19608     library_names_spec='$libname.dll.a'
19609     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19610     postinstall_cmds='base_file=`basename \${file}`~
19611       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19612       dldir=$destdir/`dirname \$dlpath`~
19613       test -d \$dldir || mkdir -p \$dldir~
19614       $install_prog $dir/$dlname \$dldir/$dlname'
19615     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19616       dlpath=$dir/\$dldll~
19617        $rm \$dlpath'
19618     shlibpath_overrides_runpath=yes
19619
19620     case $host_os in
19621     cygwin*)
19622       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19623       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19624       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19625       ;;
19626     mingw*)
19627       # MinGW DLLs use traditional 'lib' prefix
19628       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19629       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19630       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19631         # It is most probably a Windows format PATH printed by
19632         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19633         # path with ; separators, and with drive letters. We can handle the
19634         # drive letters (cygwin fileutils understands them), so leave them,
19635         # especially as we might pass files found there to a mingw objdump,
19636         # which wouldn't understand a cygwinified path. Ahh.
19637         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19638       else
19639         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19640       fi
19641       ;;
19642     pw32*)
19643       # pw32 DLLs use 'pw' prefix rather than 'lib'
19644       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19645       ;;
19646     esac
19647     ;;
19648
19649   *)
19650     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19651     ;;
19652   esac
19653   dynamic_linker='Win32 ld.exe'
19654   # FIXME: first we should search . and the directory the executable is in
19655   shlibpath_var=PATH
19656   ;;
19657
19658 darwin* | rhapsody*)
19659   dynamic_linker="$host_os dyld"
19660   version_type=darwin
19661   need_lib_prefix=no
19662   need_version=no
19663   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19664   soname_spec='${libname}${release}${major}$shared_ext'
19665   shlibpath_overrides_runpath=yes
19666   shlibpath_var=DYLD_LIBRARY_PATH
19667   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19668   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19669   if test "$GCC" = yes; then
19670     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"`
19671   else
19672     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19673   fi
19674   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19675   ;;
19676
19677 dgux*)
19678   version_type=linux
19679   need_lib_prefix=no
19680   need_version=no
19681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19682   soname_spec='${libname}${release}${shared_ext}$major'
19683   shlibpath_var=LD_LIBRARY_PATH
19684   ;;
19685
19686 freebsd1*)
19687   dynamic_linker=no
19688   ;;
19689
19690 kfreebsd*-gnu)
19691   version_type=linux
19692   need_lib_prefix=no
19693   need_version=no
19694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19695   soname_spec='${libname}${release}${shared_ext}$major'
19696   shlibpath_var=LD_LIBRARY_PATH
19697   shlibpath_overrides_runpath=no
19698   hardcode_into_libs=yes
19699   dynamic_linker='GNU ld.so'
19700   ;;
19701
19702 freebsd* | dragonfly*)
19703   # DragonFly does not have aout.  When/if they implement a new
19704   # versioning mechanism, adjust this.
19705   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19706   version_type=freebsd-$objformat
19707   case $version_type in
19708     freebsd-elf*)
19709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19710       need_version=no
19711       need_lib_prefix=no
19712       ;;
19713     freebsd-*)
19714       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19715       need_version=yes
19716       ;;
19717   esac
19718   shlibpath_var=LD_LIBRARY_PATH
19719   case $host_os in
19720   freebsd2*)
19721     shlibpath_overrides_runpath=yes
19722     ;;
19723   freebsd3.[01]* | freebsdelf3.[01]*)
19724     shlibpath_overrides_runpath=yes
19725     hardcode_into_libs=yes
19726     ;;
19727   *) # from 3.2 on
19728     shlibpath_overrides_runpath=no
19729     hardcode_into_libs=yes
19730     ;;
19731   esac
19732   ;;
19733
19734 gnu*)
19735   version_type=linux
19736   need_lib_prefix=no
19737   need_version=no
19738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19739   soname_spec='${libname}${release}${shared_ext}$major'
19740   shlibpath_var=LD_LIBRARY_PATH
19741   hardcode_into_libs=yes
19742   ;;
19743
19744 hpux9* | hpux10* | hpux11*)
19745   # Give a soname corresponding to the major version so that dld.sl refuses to
19746   # link against other versions.
19747   version_type=sunos
19748   need_lib_prefix=no
19749   need_version=no
19750   case "$host_cpu" in
19751   ia64*)
19752     shrext_cmds='.so'
19753     hardcode_into_libs=yes
19754     dynamic_linker="$host_os dld.so"
19755     shlibpath_var=LD_LIBRARY_PATH
19756     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19758     soname_spec='${libname}${release}${shared_ext}$major'
19759     if test "X$HPUX_IA64_MODE" = X32; then
19760       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19761     else
19762       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19763     fi
19764     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19765     ;;
19766    hppa*64*)
19767      shrext_cmds='.sl'
19768      hardcode_into_libs=yes
19769      dynamic_linker="$host_os dld.sl"
19770      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19771      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19772      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19773      soname_spec='${libname}${release}${shared_ext}$major'
19774      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19775      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19776      ;;
19777    *)
19778     shrext_cmds='.sl'
19779     dynamic_linker="$host_os dld.sl"
19780     shlibpath_var=SHLIB_PATH
19781     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19783     soname_spec='${libname}${release}${shared_ext}$major'
19784     ;;
19785   esac
19786   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19787   postinstall_cmds='chmod 555 $lib'
19788   ;;
19789
19790 irix5* | irix6* | nonstopux*)
19791   case $host_os in
19792     nonstopux*) version_type=nonstopux ;;
19793     *)
19794         if test "$lt_cv_prog_gnu_ld" = yes; then
19795                 version_type=linux
19796         else
19797                 version_type=irix
19798         fi ;;
19799   esac
19800   need_lib_prefix=no
19801   need_version=no
19802   soname_spec='${libname}${release}${shared_ext}$major'
19803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19804   case $host_os in
19805   irix5* | nonstopux*)
19806     libsuff= shlibsuff=
19807     ;;
19808   *)
19809     case $LD in # libtool.m4 will add one of these switches to LD
19810     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19811       libsuff= shlibsuff= libmagic=32-bit;;
19812     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19813       libsuff=32 shlibsuff=N32 libmagic=N32;;
19814     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19815       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19816     *) libsuff= shlibsuff= libmagic=never-match;;
19817     esac
19818     ;;
19819   esac
19820   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19821   shlibpath_overrides_runpath=no
19822   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19823   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19824   hardcode_into_libs=yes
19825   ;;
19826
19827 # No shared lib support for Linux oldld, aout, or coff.
19828 linux*oldld* | linux*aout* | linux*coff*)
19829   dynamic_linker=no
19830   ;;
19831
19832 # This must be Linux ELF.
19833 linux*)
19834   version_type=linux
19835   need_lib_prefix=no
19836   need_version=no
19837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19838   soname_spec='${libname}${release}${shared_ext}$major'
19839   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19840   shlibpath_var=LD_LIBRARY_PATH
19841   shlibpath_overrides_runpath=no
19842   # This implies no fast_install, which is unacceptable.
19843   # Some rework will be needed to allow for fast_install
19844   # before this can be enabled.
19845   hardcode_into_libs=yes
19846
19847   # Append ld.so.conf contents to the search path
19848   if test -f /etc/ld.so.conf; then
19849     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' ' '`
19850     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19851   fi
19852
19853   # We used to test for /lib/ld.so.1 and disable shared libraries on
19854   # powerpc, because MkLinux only supported shared libraries with the
19855   # GNU dynamic linker.  Since this was broken with cross compilers,
19856   # most powerpc-linux boxes support dynamic linking these days and
19857   # people can always --disable-shared, the test was removed, and we
19858   # assume the GNU/Linux dynamic linker is in use.
19859   dynamic_linker='GNU/Linux ld.so'
19860   ;;
19861
19862 knetbsd*-gnu)
19863   version_type=linux
19864   need_lib_prefix=no
19865   need_version=no
19866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19867   soname_spec='${libname}${release}${shared_ext}$major'
19868   shlibpath_var=LD_LIBRARY_PATH
19869   shlibpath_overrides_runpath=no
19870   hardcode_into_libs=yes
19871   dynamic_linker='GNU ld.so'
19872   ;;
19873
19874 netbsd*)
19875   version_type=sunos
19876   need_lib_prefix=no
19877   need_version=no
19878   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19880     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19881     dynamic_linker='NetBSD (a.out) ld.so'
19882   else
19883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19884     soname_spec='${libname}${release}${shared_ext}$major'
19885     dynamic_linker='NetBSD ld.elf_so'
19886   fi
19887   shlibpath_var=LD_LIBRARY_PATH
19888   shlibpath_overrides_runpath=yes
19889   hardcode_into_libs=yes
19890   ;;
19891
19892 newsos6)
19893   version_type=linux
19894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19895   shlibpath_var=LD_LIBRARY_PATH
19896   shlibpath_overrides_runpath=yes
19897   ;;
19898
19899 nto-qnx*)
19900   version_type=linux
19901   need_lib_prefix=no
19902   need_version=no
19903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19904   soname_spec='${libname}${release}${shared_ext}$major'
19905   shlibpath_var=LD_LIBRARY_PATH
19906   shlibpath_overrides_runpath=yes
19907   ;;
19908
19909 openbsd*)
19910   version_type=sunos
19911   need_lib_prefix=no
19912   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19913   case $host_os in
19914     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19915     *)                         need_version=no  ;;
19916   esac
19917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19918   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19919   shlibpath_var=LD_LIBRARY_PATH
19920   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19921     case $host_os in
19922       openbsd2.[89] | openbsd2.[89].*)
19923         shlibpath_overrides_runpath=no
19924         ;;
19925       *)
19926         shlibpath_overrides_runpath=yes
19927         ;;
19928       esac
19929   else
19930     shlibpath_overrides_runpath=yes
19931   fi
19932   ;;
19933
19934 os2*)
19935   libname_spec='$name'
19936   shrext_cmds=".dll"
19937   need_lib_prefix=no
19938   library_names_spec='$libname${shared_ext} $libname.a'
19939   dynamic_linker='OS/2 ld.exe'
19940   shlibpath_var=LIBPATH
19941   ;;
19942
19943 osf3* | osf4* | osf5*)
19944   version_type=osf
19945   need_lib_prefix=no
19946   need_version=no
19947   soname_spec='${libname}${release}${shared_ext}$major'
19948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19949   shlibpath_var=LD_LIBRARY_PATH
19950   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19951   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19952   ;;
19953
19954 sco3.2v5*)
19955   version_type=osf
19956   soname_spec='${libname}${release}${shared_ext}$major'
19957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19958   shlibpath_var=LD_LIBRARY_PATH
19959   ;;
19960
19961 solaris*)
19962   version_type=linux
19963   need_lib_prefix=no
19964   need_version=no
19965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19966   soname_spec='${libname}${release}${shared_ext}$major'
19967   shlibpath_var=LD_LIBRARY_PATH
19968   shlibpath_overrides_runpath=yes
19969   hardcode_into_libs=yes
19970   # ldd complains unless libraries are executable
19971   postinstall_cmds='chmod +x $lib'
19972   ;;
19973
19974 sunos4*)
19975   version_type=sunos
19976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19977   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19978   shlibpath_var=LD_LIBRARY_PATH
19979   shlibpath_overrides_runpath=yes
19980   if test "$with_gnu_ld" = yes; then
19981     need_lib_prefix=no
19982   fi
19983   need_version=yes
19984   ;;
19985
19986 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19987   version_type=linux
19988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19989   soname_spec='${libname}${release}${shared_ext}$major'
19990   shlibpath_var=LD_LIBRARY_PATH
19991   case $host_vendor in
19992     sni)
19993       shlibpath_overrides_runpath=no
19994       need_lib_prefix=no
19995       export_dynamic_flag_spec='${wl}-Blargedynsym'
19996       runpath_var=LD_RUN_PATH
19997       ;;
19998     siemens)
19999       need_lib_prefix=no
20000       ;;
20001     motorola)
20002       need_lib_prefix=no
20003       need_version=no
20004       shlibpath_overrides_runpath=no
20005       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20006       ;;
20007   esac
20008   ;;
20009
20010 sysv4*MP*)
20011   if test -d /usr/nec ;then
20012     version_type=linux
20013     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20014     soname_spec='$libname${shared_ext}.$major'
20015     shlibpath_var=LD_LIBRARY_PATH
20016   fi
20017   ;;
20018
20019 uts4*)
20020   version_type=linux
20021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022   soname_spec='${libname}${release}${shared_ext}$major'
20023   shlibpath_var=LD_LIBRARY_PATH
20024   ;;
20025
20026 *)
20027   dynamic_linker=no
20028   ;;
20029 esac
20030 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20031 echo "${ECHO_T}$dynamic_linker" >&6
20032 test "$dynamic_linker" = no && can_build_shared=no
20033
20034 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20035 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20036 hardcode_action_GCJ=
20037 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20038    test -n "$runpath_var_GCJ" || \
20039    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20040
20041   # We can hardcode non-existant directories.
20042   if test "$hardcode_direct_GCJ" != no &&
20043      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20044      # have to relink, otherwise we might link with an installed library
20045      # when we should be linking with a yet-to-be-installed one
20046      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20047      test "$hardcode_minus_L_GCJ" != no; then
20048     # Linking always hardcodes the temporary library directory.
20049     hardcode_action_GCJ=relink
20050   else
20051     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20052     hardcode_action_GCJ=immediate
20053   fi
20054 else
20055   # We cannot hardcode anything, or else we can only hardcode existing
20056   # directories.
20057   hardcode_action_GCJ=unsupported
20058 fi
20059 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20060 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20061
20062 if test "$hardcode_action_GCJ" = relink; then
20063   # Fast installation is not supported
20064   enable_fast_install=no
20065 elif test "$shlibpath_overrides_runpath" = yes ||
20066      test "$enable_shared" = no; then
20067   # Fast installation is not necessary
20068   enable_fast_install=needless
20069 fi
20070
20071 striplib=
20072 old_striplib=
20073 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20074 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20075 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20076   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20077   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20078   echo "$as_me:$LINENO: result: yes" >&5
20079 echo "${ECHO_T}yes" >&6
20080 else
20081 # FIXME - insert some real tests, host_os isn't really good enough
20082   case $host_os in
20083    darwin*)
20084        if test -n "$STRIP" ; then
20085          striplib="$STRIP -x"
20086          echo "$as_me:$LINENO: result: yes" >&5
20087 echo "${ECHO_T}yes" >&6
20088        else
20089   echo "$as_me:$LINENO: result: no" >&5
20090 echo "${ECHO_T}no" >&6
20091 fi
20092        ;;
20093    *)
20094   echo "$as_me:$LINENO: result: no" >&5
20095 echo "${ECHO_T}no" >&6
20096     ;;
20097   esac
20098 fi
20099
20100 if test "x$enable_dlopen" != xyes; then
20101   enable_dlopen=unknown
20102   enable_dlopen_self=unknown
20103   enable_dlopen_self_static=unknown
20104 else
20105   lt_cv_dlopen=no
20106   lt_cv_dlopen_libs=
20107
20108   case $host_os in
20109   beos*)
20110     lt_cv_dlopen="load_add_on"
20111     lt_cv_dlopen_libs=
20112     lt_cv_dlopen_self=yes
20113     ;;
20114
20115   mingw* | pw32*)
20116     lt_cv_dlopen="LoadLibrary"
20117     lt_cv_dlopen_libs=
20118    ;;
20119
20120   cygwin*)
20121     lt_cv_dlopen="dlopen"
20122     lt_cv_dlopen_libs=
20123    ;;
20124
20125   darwin*)
20126   # if libdl is installed we need to link against it
20127     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20128 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20129 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20130   echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132   ac_check_lib_save_LIBS=$LIBS
20133 LIBS="-ldl  $LIBS"
20134 cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140
20141 /* Override any gcc2 internal prototype to avoid an error.  */
20142 #ifdef __cplusplus
20143 extern "C"
20144 #endif
20145 /* We use char because int might match the return type of a gcc2
20146    builtin and then its argument prototype would still apply.  */
20147 char dlopen ();
20148 int
20149 main ()
20150 {
20151 dlopen ();
20152   ;
20153   return 0;
20154 }
20155 _ACEOF
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20158   (eval $ac_link) 2>conftest.er1
20159   ac_status=$?
20160   grep -v '^ *+' conftest.er1 >conftest.err
20161   rm -f conftest.er1
20162   cat conftest.err >&5
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); } &&
20165          { ac_try='test -z "$ac_c_werror_flag"
20166                          || test ! -s conftest.err'
20167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168   (eval $ac_try) 2>&5
20169   ac_status=$?
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); }; } &&
20172          { ac_try='test -s conftest$ac_exeext'
20173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174   (eval $ac_try) 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; }; then
20178   ac_cv_lib_dl_dlopen=yes
20179 else
20180   echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20182
20183 ac_cv_lib_dl_dlopen=no
20184 fi
20185 rm -f conftest.err conftest.$ac_objext \
20186       conftest$ac_exeext conftest.$ac_ext
20187 LIBS=$ac_check_lib_save_LIBS
20188 fi
20189 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20190 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20191 if test $ac_cv_lib_dl_dlopen = yes; then
20192   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20193 else
20194
20195     lt_cv_dlopen="dyld"
20196     lt_cv_dlopen_libs=
20197     lt_cv_dlopen_self=yes
20198
20199 fi
20200
20201    ;;
20202
20203   *)
20204     echo "$as_me:$LINENO: checking for shl_load" >&5
20205 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20206 if test "${ac_cv_func_shl_load+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h.  */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h.  */
20215 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20217 #define shl_load innocuous_shl_load
20218
20219 /* System header to define __stub macros and hopefully few prototypes,
20220     which can conflict with char shl_load (); below.
20221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20222     <limits.h> exists even on freestanding compilers.  */
20223
20224 #ifdef __STDC__
20225 # include <limits.h>
20226 #else
20227 # include <assert.h>
20228 #endif
20229
20230 #undef shl_load
20231
20232 /* Override any gcc2 internal prototype to avoid an error.  */
20233 #ifdef __cplusplus
20234 extern "C"
20235 {
20236 #endif
20237 /* We use char because int might match the return type of a gcc2
20238    builtin and then its argument prototype would still apply.  */
20239 char shl_load ();
20240 /* The GNU C library defines this for functions which it implements
20241     to always fail with ENOSYS.  Some functions are actually named
20242     something starting with __ and the normal name is an alias.  */
20243 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20244 choke me
20245 #else
20246 char (*f) () = shl_load;
20247 #endif
20248 #ifdef __cplusplus
20249 }
20250 #endif
20251
20252 int
20253 main ()
20254 {
20255 return f != shl_load;
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20262   (eval $ac_link) 2>conftest.er1
20263   ac_status=$?
20264   grep -v '^ *+' conftest.er1 >conftest.err
20265   rm -f conftest.er1
20266   cat conftest.err >&5
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); } &&
20269          { ac_try='test -z "$ac_c_werror_flag"
20270                          || test ! -s conftest.err'
20271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272   (eval $ac_try) 2>&5
20273   ac_status=$?
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); }; } &&
20276          { ac_try='test -s conftest$ac_exeext'
20277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278   (eval $ac_try) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; }; then
20282   ac_cv_func_shl_load=yes
20283 else
20284   echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ac_cv_func_shl_load=no
20288 fi
20289 rm -f conftest.err conftest.$ac_objext \
20290       conftest$ac_exeext conftest.$ac_ext
20291 fi
20292 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20293 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20294 if test $ac_cv_func_shl_load = yes; then
20295   lt_cv_dlopen="shl_load"
20296 else
20297   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20298 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20299 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20300   echo $ECHO_N "(cached) $ECHO_C" >&6
20301 else
20302   ac_check_lib_save_LIBS=$LIBS
20303 LIBS="-ldld  $LIBS"
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310
20311 /* Override any gcc2 internal prototype to avoid an error.  */
20312 #ifdef __cplusplus
20313 extern "C"
20314 #endif
20315 /* We use char because int might match the return type of a gcc2
20316    builtin and then its argument prototype would still apply.  */
20317 char shl_load ();
20318 int
20319 main ()
20320 {
20321 shl_load ();
20322   ;
20323   return 0;
20324 }
20325 _ACEOF
20326 rm -f conftest.$ac_objext conftest$ac_exeext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20328   (eval $ac_link) 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } &&
20335          { ac_try='test -z "$ac_c_werror_flag"
20336                          || test ! -s conftest.err'
20337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338   (eval $ac_try) 2>&5
20339   ac_status=$?
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; } &&
20342          { ac_try='test -s conftest$ac_exeext'
20343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344   (eval $ac_try) 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; }; then
20348   ac_cv_lib_dld_shl_load=yes
20349 else
20350   echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20352
20353 ac_cv_lib_dld_shl_load=no
20354 fi
20355 rm -f conftest.err conftest.$ac_objext \
20356       conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20358 fi
20359 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20360 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20361 if test $ac_cv_lib_dld_shl_load = yes; then
20362   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20363 else
20364   echo "$as_me:$LINENO: checking for dlopen" >&5
20365 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20366 if test "${ac_cv_func_dlopen+set}" = set; then
20367   echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369   cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20377 #define dlopen innocuous_dlopen
20378
20379 /* System header to define __stub macros and hopefully few prototypes,
20380     which can conflict with char dlopen (); below.
20381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20382     <limits.h> exists even on freestanding compilers.  */
20383
20384 #ifdef __STDC__
20385 # include <limits.h>
20386 #else
20387 # include <assert.h>
20388 #endif
20389
20390 #undef dlopen
20391
20392 /* Override any gcc2 internal prototype to avoid an error.  */
20393 #ifdef __cplusplus
20394 extern "C"
20395 {
20396 #endif
20397 /* We use char because int might match the return type of a gcc2
20398    builtin and then its argument prototype would still apply.  */
20399 char dlopen ();
20400 /* The GNU C library defines this for functions which it implements
20401     to always fail with ENOSYS.  Some functions are actually named
20402     something starting with __ and the normal name is an alias.  */
20403 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20404 choke me
20405 #else
20406 char (*f) () = dlopen;
20407 #endif
20408 #ifdef __cplusplus
20409 }
20410 #endif
20411
20412 int
20413 main ()
20414 {
20415 return f != dlopen;
20416   ;
20417   return 0;
20418 }
20419 _ACEOF
20420 rm -f conftest.$ac_objext conftest$ac_exeext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20422   (eval $ac_link) 2>conftest.er1
20423   ac_status=$?
20424   grep -v '^ *+' conftest.er1 >conftest.err
20425   rm -f conftest.er1
20426   cat conftest.err >&5
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); } &&
20429          { ac_try='test -z "$ac_c_werror_flag"
20430                          || test ! -s conftest.err'
20431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432   (eval $ac_try) 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); }; } &&
20436          { ac_try='test -s conftest$ac_exeext'
20437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438   (eval $ac_try) 2>&5
20439   ac_status=$?
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); }; }; then
20442   ac_cv_func_dlopen=yes
20443 else
20444   echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 ac_cv_func_dlopen=no
20448 fi
20449 rm -f conftest.err conftest.$ac_objext \
20450       conftest$ac_exeext conftest.$ac_ext
20451 fi
20452 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20453 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20454 if test $ac_cv_func_dlopen = yes; then
20455   lt_cv_dlopen="dlopen"
20456 else
20457   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20458 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20460   echo $ECHO_N "(cached) $ECHO_C" >&6
20461 else
20462   ac_check_lib_save_LIBS=$LIBS
20463 LIBS="-ldl  $LIBS"
20464 cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h.  */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h.  */
20470
20471 /* Override any gcc2 internal prototype to avoid an error.  */
20472 #ifdef __cplusplus
20473 extern "C"
20474 #endif
20475 /* We use char because int might match the return type of a gcc2
20476    builtin and then its argument prototype would still apply.  */
20477 char dlopen ();
20478 int
20479 main ()
20480 {
20481 dlopen ();
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488   (eval $ac_link) 2>conftest.er1
20489   ac_status=$?
20490   grep -v '^ *+' conftest.er1 >conftest.err
20491   rm -f conftest.er1
20492   cat conftest.err >&5
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); } &&
20495          { ac_try='test -z "$ac_c_werror_flag"
20496                          || test ! -s conftest.err'
20497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498   (eval $ac_try) 2>&5
20499   ac_status=$?
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); }; } &&
20502          { ac_try='test -s conftest$ac_exeext'
20503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504   (eval $ac_try) 2>&5
20505   ac_status=$?
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); }; }; then
20508   ac_cv_lib_dl_dlopen=yes
20509 else
20510   echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20512
20513 ac_cv_lib_dl_dlopen=no
20514 fi
20515 rm -f conftest.err conftest.$ac_objext \
20516       conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20518 fi
20519 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20520 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20521 if test $ac_cv_lib_dl_dlopen = yes; then
20522   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20523 else
20524   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20525 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20526 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20527   echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529   ac_check_lib_save_LIBS=$LIBS
20530 LIBS="-lsvld  $LIBS"
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537
20538 /* Override any gcc2 internal prototype to avoid an error.  */
20539 #ifdef __cplusplus
20540 extern "C"
20541 #endif
20542 /* We use char because int might match the return type of a gcc2
20543    builtin and then its argument prototype would still apply.  */
20544 char dlopen ();
20545 int
20546 main ()
20547 {
20548 dlopen ();
20549   ;
20550   return 0;
20551 }
20552 _ACEOF
20553 rm -f conftest.$ac_objext conftest$ac_exeext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20555   (eval $ac_link) 2>conftest.er1
20556   ac_status=$?
20557   grep -v '^ *+' conftest.er1 >conftest.err
20558   rm -f conftest.er1
20559   cat conftest.err >&5
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); } &&
20562          { ac_try='test -z "$ac_c_werror_flag"
20563                          || test ! -s conftest.err'
20564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565   (eval $ac_try) 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; } &&
20569          { ac_try='test -s conftest$ac_exeext'
20570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571   (eval $ac_try) 2>&5
20572   ac_status=$?
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); }; }; then
20575   ac_cv_lib_svld_dlopen=yes
20576 else
20577   echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580 ac_cv_lib_svld_dlopen=no
20581 fi
20582 rm -f conftest.err conftest.$ac_objext \
20583       conftest$ac_exeext conftest.$ac_ext
20584 LIBS=$ac_check_lib_save_LIBS
20585 fi
20586 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20587 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20588 if test $ac_cv_lib_svld_dlopen = yes; then
20589   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20590 else
20591   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20592 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20593 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20594   echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596   ac_check_lib_save_LIBS=$LIBS
20597 LIBS="-ldld  $LIBS"
20598 cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h.  */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h.  */
20604
20605 /* Override any gcc2 internal prototype to avoid an error.  */
20606 #ifdef __cplusplus
20607 extern "C"
20608 #endif
20609 /* We use char because int might match the return type of a gcc2
20610    builtin and then its argument prototype would still apply.  */
20611 char dld_link ();
20612 int
20613 main ()
20614 {
20615 dld_link ();
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622   (eval $ac_link) 2>conftest.er1
20623   ac_status=$?
20624   grep -v '^ *+' conftest.er1 >conftest.err
20625   rm -f conftest.er1
20626   cat conftest.err >&5
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } &&
20629          { ac_try='test -z "$ac_c_werror_flag"
20630                          || test ! -s conftest.err'
20631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632   (eval $ac_try) 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); }; } &&
20636          { ac_try='test -s conftest$ac_exeext'
20637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638   (eval $ac_try) 2>&5
20639   ac_status=$?
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); }; }; then
20642   ac_cv_lib_dld_dld_link=yes
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 ac_cv_lib_dld_dld_link=no
20648 fi
20649 rm -f conftest.err conftest.$ac_objext \
20650       conftest$ac_exeext conftest.$ac_ext
20651 LIBS=$ac_check_lib_save_LIBS
20652 fi
20653 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20654 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20655 if test $ac_cv_lib_dld_dld_link = yes; then
20656   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20657 fi
20658
20659
20660 fi
20661
20662
20663 fi
20664
20665
20666 fi
20667
20668
20669 fi
20670
20671
20672 fi
20673
20674     ;;
20675   esac
20676
20677   if test "x$lt_cv_dlopen" != xno; then
20678     enable_dlopen=yes
20679   else
20680     enable_dlopen=no
20681   fi
20682
20683   case $lt_cv_dlopen in
20684   dlopen)
20685     save_CPPFLAGS="$CPPFLAGS"
20686     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20687
20688     save_LDFLAGS="$LDFLAGS"
20689     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20690
20691     save_LIBS="$LIBS"
20692     LIBS="$lt_cv_dlopen_libs $LIBS"
20693
20694     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20695 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20696 if test "${lt_cv_dlopen_self+set}" = set; then
20697   echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699           if test "$cross_compiling" = yes; then :
20700   lt_cv_dlopen_self=cross
20701 else
20702   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20703   lt_status=$lt_dlunknown
20704   cat > conftest.$ac_ext <<EOF
20705 #line 20705 "configure"
20706 #include "confdefs.h"
20707
20708 #if HAVE_DLFCN_H
20709 #include <dlfcn.h>
20710 #endif
20711
20712 #include <stdio.h>
20713
20714 #ifdef RTLD_GLOBAL
20715 #  define LT_DLGLOBAL           RTLD_GLOBAL
20716 #else
20717 #  ifdef DL_GLOBAL
20718 #    define LT_DLGLOBAL         DL_GLOBAL
20719 #  else
20720 #    define LT_DLGLOBAL         0
20721 #  endif
20722 #endif
20723
20724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20725    find out it does not work in some platform. */
20726 #ifndef LT_DLLAZY_OR_NOW
20727 #  ifdef RTLD_LAZY
20728 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20729 #  else
20730 #    ifdef DL_LAZY
20731 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20732 #    else
20733 #      ifdef RTLD_NOW
20734 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20735 #      else
20736 #        ifdef DL_NOW
20737 #          define LT_DLLAZY_OR_NOW      DL_NOW
20738 #        else
20739 #          define LT_DLLAZY_OR_NOW      0
20740 #        endif
20741 #      endif
20742 #    endif
20743 #  endif
20744 #endif
20745
20746 #ifdef __cplusplus
20747 extern "C" void exit (int);
20748 #endif
20749
20750 void fnord() { int i=42;}
20751 int main ()
20752 {
20753   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20754   int status = $lt_dlunknown;
20755
20756   if (self)
20757     {
20758       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20759       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20760       /* dlclose (self); */
20761     }
20762
20763     exit (status);
20764 }
20765 EOF
20766   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20767   (eval $ac_link) 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20771     (./conftest; exit; ) 2>/dev/null
20772     lt_status=$?
20773     case x$lt_status in
20774       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20775       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20776       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20777     esac
20778   else :
20779     # compilation failed
20780     lt_cv_dlopen_self=no
20781   fi
20782 fi
20783 rm -fr conftest*
20784
20785
20786 fi
20787 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20788 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20789
20790     if test "x$lt_cv_dlopen_self" = xyes; then
20791       LDFLAGS="$LDFLAGS $link_static_flag"
20792       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20793 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20794 if test "${lt_cv_dlopen_self_static+set}" = set; then
20795   echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797           if test "$cross_compiling" = yes; then :
20798   lt_cv_dlopen_self_static=cross
20799 else
20800   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20801   lt_status=$lt_dlunknown
20802   cat > conftest.$ac_ext <<EOF
20803 #line 20803 "configure"
20804 #include "confdefs.h"
20805
20806 #if HAVE_DLFCN_H
20807 #include <dlfcn.h>
20808 #endif
20809
20810 #include <stdio.h>
20811
20812 #ifdef RTLD_GLOBAL
20813 #  define LT_DLGLOBAL           RTLD_GLOBAL
20814 #else
20815 #  ifdef DL_GLOBAL
20816 #    define LT_DLGLOBAL         DL_GLOBAL
20817 #  else
20818 #    define LT_DLGLOBAL         0
20819 #  endif
20820 #endif
20821
20822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20823    find out it does not work in some platform. */
20824 #ifndef LT_DLLAZY_OR_NOW
20825 #  ifdef RTLD_LAZY
20826 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20827 #  else
20828 #    ifdef DL_LAZY
20829 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20830 #    else
20831 #      ifdef RTLD_NOW
20832 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20833 #      else
20834 #        ifdef DL_NOW
20835 #          define LT_DLLAZY_OR_NOW      DL_NOW
20836 #        else
20837 #          define LT_DLLAZY_OR_NOW      0
20838 #        endif
20839 #      endif
20840 #    endif
20841 #  endif
20842 #endif
20843
20844 #ifdef __cplusplus
20845 extern "C" void exit (int);
20846 #endif
20847
20848 void fnord() { int i=42;}
20849 int main ()
20850 {
20851   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20852   int status = $lt_dlunknown;
20853
20854   if (self)
20855     {
20856       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20857       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20858       /* dlclose (self); */
20859     }
20860
20861     exit (status);
20862 }
20863 EOF
20864   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865   (eval $ac_link) 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20869     (./conftest; exit; ) 2>/dev/null
20870     lt_status=$?
20871     case x$lt_status in
20872       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20873       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20874       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20875     esac
20876   else :
20877     # compilation failed
20878     lt_cv_dlopen_self_static=no
20879   fi
20880 fi
20881 rm -fr conftest*
20882
20883
20884 fi
20885 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20886 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20887     fi
20888
20889     CPPFLAGS="$save_CPPFLAGS"
20890     LDFLAGS="$save_LDFLAGS"
20891     LIBS="$save_LIBS"
20892     ;;
20893   esac
20894
20895   case $lt_cv_dlopen_self in
20896   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20897   *) enable_dlopen_self=unknown ;;
20898   esac
20899
20900   case $lt_cv_dlopen_self_static in
20901   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20902   *) enable_dlopen_self_static=unknown ;;
20903   esac
20904 fi
20905
20906
20907 # The else clause should only fire when bootstrapping the
20908 # libtool distribution, otherwise you forgot to ship ltmain.sh
20909 # with your package, and you will get complaints that there are
20910 # no rules to generate ltmain.sh.
20911 if test -f "$ltmain"; then
20912   # See if we are running on zsh, and set the options which allow our commands through
20913   # without removal of \ escapes.
20914   if test -n "${ZSH_VERSION+set}" ; then
20915     setopt NO_GLOB_SUBST
20916   fi
20917   # Now quote all the things that may contain metacharacters while being
20918   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20919   # variables and quote the copies for generation of the libtool script.
20920   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20921     SED SHELL STRIP \
20922     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20923     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20924     deplibs_check_method reload_flag reload_cmds need_locks \
20925     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20926     lt_cv_sys_global_symbol_to_c_name_address \
20927     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20928     old_postinstall_cmds old_postuninstall_cmds \
20929     compiler_GCJ \
20930     CC_GCJ \
20931     LD_GCJ \
20932     lt_prog_compiler_wl_GCJ \
20933     lt_prog_compiler_pic_GCJ \
20934     lt_prog_compiler_static_GCJ \
20935     lt_prog_compiler_no_builtin_flag_GCJ \
20936     export_dynamic_flag_spec_GCJ \
20937     thread_safe_flag_spec_GCJ \
20938     whole_archive_flag_spec_GCJ \
20939     enable_shared_with_static_runtimes_GCJ \
20940     old_archive_cmds_GCJ \
20941     old_archive_from_new_cmds_GCJ \
20942     predep_objects_GCJ \
20943     postdep_objects_GCJ \
20944     predeps_GCJ \
20945     postdeps_GCJ \
20946     compiler_lib_search_path_GCJ \
20947     archive_cmds_GCJ \
20948     archive_expsym_cmds_GCJ \
20949     postinstall_cmds_GCJ \
20950     postuninstall_cmds_GCJ \
20951     old_archive_from_expsyms_cmds_GCJ \
20952     allow_undefined_flag_GCJ \
20953     no_undefined_flag_GCJ \
20954     export_symbols_cmds_GCJ \
20955     hardcode_libdir_flag_spec_GCJ \
20956     hardcode_libdir_flag_spec_ld_GCJ \
20957     hardcode_libdir_separator_GCJ \
20958     hardcode_automatic_GCJ \
20959     module_cmds_GCJ \
20960     module_expsym_cmds_GCJ \
20961     lt_cv_prog_compiler_c_o_GCJ \
20962     exclude_expsyms_GCJ \
20963     include_expsyms_GCJ; do
20964
20965     case $var in
20966     old_archive_cmds_GCJ | \
20967     old_archive_from_new_cmds_GCJ | \
20968     archive_cmds_GCJ | \
20969     archive_expsym_cmds_GCJ | \
20970     module_cmds_GCJ | \
20971     module_expsym_cmds_GCJ | \
20972     old_archive_from_expsyms_cmds_GCJ | \
20973     export_symbols_cmds_GCJ | \
20974     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20975     postinstall_cmds | postuninstall_cmds | \
20976     old_postinstall_cmds | old_postuninstall_cmds | \
20977     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20978       # Double-quote double-evaled strings.
20979       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20980       ;;
20981     *)
20982       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20983       ;;
20984     esac
20985   done
20986
20987   case $lt_echo in
20988   *'\$0 --fallback-echo"')
20989     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20990     ;;
20991   esac
20992
20993 cfgfile="$ofile"
20994
20995   cat <<__EOF__ >> "$cfgfile"
20996 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20997
20998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20999
21000 # Shell to use when invoking shell scripts.
21001 SHELL=$lt_SHELL
21002
21003 # Whether or not to build shared libraries.
21004 build_libtool_libs=$enable_shared
21005
21006 # Whether or not to build static libraries.
21007 build_old_libs=$enable_static
21008
21009 # Whether or not to add -lc for building shared libraries.
21010 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21011
21012 # Whether or not to disallow shared libs when runtime libs are static
21013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21014
21015 # Whether or not to optimize for fast installation.
21016 fast_install=$enable_fast_install
21017
21018 # The host system.
21019 host_alias=$host_alias
21020 host=$host
21021 host_os=$host_os
21022
21023 # The build system.
21024 build_alias=$build_alias
21025 build=$build
21026 build_os=$build_os
21027
21028 # An echo program that does not interpret backslashes.
21029 echo=$lt_echo
21030
21031 # The archiver.
21032 AR=$lt_AR
21033 AR_FLAGS=$lt_AR_FLAGS
21034
21035 # A C compiler.
21036 LTCC=$lt_LTCC
21037
21038 # A language-specific compiler.
21039 CC=$lt_compiler_GCJ
21040
21041 # Is the compiler the GNU C compiler?
21042 with_gcc=$GCC_GCJ
21043
21044 # An ERE matcher.
21045 EGREP=$lt_EGREP
21046
21047 # The linker used to build libraries.
21048 LD=$lt_LD_GCJ
21049
21050 # Whether we need hard or soft links.
21051 LN_S=$lt_LN_S
21052
21053 # A BSD-compatible nm program.
21054 NM=$lt_NM
21055
21056 # A symbol stripping program
21057 STRIP=$lt_STRIP
21058
21059 # Used to examine libraries when file_magic_cmd begins "file"
21060 MAGIC_CMD=$MAGIC_CMD
21061
21062 # Used on cygwin: DLL creation program.
21063 DLLTOOL="$DLLTOOL"
21064
21065 # Used on cygwin: object dumper.
21066 OBJDUMP="$OBJDUMP"
21067
21068 # Used on cygwin: assembler.
21069 AS="$AS"
21070
21071 # The name of the directory that contains temporary libtool files.
21072 objdir=$objdir
21073
21074 # How to create reloadable object files.
21075 reload_flag=$lt_reload_flag
21076 reload_cmds=$lt_reload_cmds
21077
21078 # How to pass a linker flag through the compiler.
21079 wl=$lt_lt_prog_compiler_wl_GCJ
21080
21081 # Object file suffix (normally "o").
21082 objext="$ac_objext"
21083
21084 # Old archive suffix (normally "a").
21085 libext="$libext"
21086
21087 # Shared library suffix (normally ".so").
21088 shrext_cmds='$shrext_cmds'
21089
21090 # Executable file suffix (normally "").
21091 exeext="$exeext"
21092
21093 # Additional compiler flags for building library objects.
21094 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21095 pic_mode=$pic_mode
21096
21097 # What is the maximum length of a command?
21098 max_cmd_len=$lt_cv_sys_max_cmd_len
21099
21100 # Does compiler simultaneously support -c and -o options?
21101 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21102
21103 # Must we lock files when doing compilation?
21104 need_locks=$lt_need_locks
21105
21106 # Do we need the lib prefix for modules?
21107 need_lib_prefix=$need_lib_prefix
21108
21109 # Do we need a version for libraries?
21110 need_version=$need_version
21111
21112 # Whether dlopen is supported.
21113 dlopen_support=$enable_dlopen
21114
21115 # Whether dlopen of programs is supported.
21116 dlopen_self=$enable_dlopen_self
21117
21118 # Whether dlopen of statically linked programs is supported.
21119 dlopen_self_static=$enable_dlopen_self_static
21120
21121 # Compiler flag to prevent dynamic linking.
21122 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21123
21124 # Compiler flag to turn off builtin functions.
21125 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21126
21127 # Compiler flag to allow reflexive dlopens.
21128 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21129
21130 # Compiler flag to generate shared objects directly from archives.
21131 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21132
21133 # Compiler flag to generate thread-safe objects.
21134 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21135
21136 # Library versioning type.
21137 version_type=$version_type
21138
21139 # Format of library name prefix.
21140 libname_spec=$lt_libname_spec
21141
21142 # List of archive names.  First name is the real one, the rest are links.
21143 # The last name is the one that the linker finds with -lNAME.
21144 library_names_spec=$lt_library_names_spec
21145
21146 # The coded name of the library, if different from the real name.
21147 soname_spec=$lt_soname_spec
21148
21149 # Commands used to build and install an old-style archive.
21150 RANLIB=$lt_RANLIB
21151 old_archive_cmds=$lt_old_archive_cmds_GCJ
21152 old_postinstall_cmds=$lt_old_postinstall_cmds
21153 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21154
21155 # Create an old-style archive from a shared archive.
21156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21157
21158 # Create a temporary old-style archive to link instead of a shared archive.
21159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21160
21161 # Commands used to build and install a shared archive.
21162 archive_cmds=$lt_archive_cmds_GCJ
21163 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21164 postinstall_cmds=$lt_postinstall_cmds
21165 postuninstall_cmds=$lt_postuninstall_cmds
21166
21167 # Commands used to build a loadable module (assumed same as above if empty)
21168 module_cmds=$lt_module_cmds_GCJ
21169 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21170
21171 # Commands to strip libraries.
21172 old_striplib=$lt_old_striplib
21173 striplib=$lt_striplib
21174
21175 # Dependencies to place before the objects being linked to create a
21176 # shared library.
21177 predep_objects=$lt_predep_objects_GCJ
21178
21179 # Dependencies to place after the objects being linked to create a
21180 # shared library.
21181 postdep_objects=$lt_postdep_objects_GCJ
21182
21183 # Dependencies to place before the objects being linked to create a
21184 # shared library.
21185 predeps=$lt_predeps_GCJ
21186
21187 # Dependencies to place after the objects being linked to create a
21188 # shared library.
21189 postdeps=$lt_postdeps_GCJ
21190
21191 # The library search path used internally by the compiler when linking
21192 # a shared library.
21193 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21194
21195 # Method to check whether dependent libraries are shared objects.
21196 deplibs_check_method=$lt_deplibs_check_method
21197
21198 # Command to use when deplibs_check_method == file_magic.
21199 file_magic_cmd=$lt_file_magic_cmd
21200
21201 # Flag that allows shared libraries with undefined symbols to be built.
21202 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21203
21204 # Flag that forces no undefined symbols.
21205 no_undefined_flag=$lt_no_undefined_flag_GCJ
21206
21207 # Commands used to finish a libtool library installation in a directory.
21208 finish_cmds=$lt_finish_cmds
21209
21210 # Same as above, but a single script fragment to be evaled but not shown.
21211 finish_eval=$lt_finish_eval
21212
21213 # Take the output of nm and produce a listing of raw symbols and C names.
21214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21215
21216 # Transform the output of nm in a proper C declaration
21217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21218
21219 # Transform the output of nm in a C name address pair
21220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21221
21222 # This is the shared library runtime path variable.
21223 runpath_var=$runpath_var
21224
21225 # This is the shared library path variable.
21226 shlibpath_var=$shlibpath_var
21227
21228 # Is shlibpath searched before the hard-coded library search path?
21229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21230
21231 # How to hardcode a shared library path into an executable.
21232 hardcode_action=$hardcode_action_GCJ
21233
21234 # Whether we should hardcode library paths into libraries.
21235 hardcode_into_libs=$hardcode_into_libs
21236
21237 # Flag to hardcode \$libdir into a binary during linking.
21238 # This must work even if \$libdir does not exist.
21239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21240
21241 # If ld is used when linking, flag to hardcode \$libdir into
21242 # a binary during linking. This must work even if \$libdir does
21243 # not exist.
21244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21245
21246 # Whether we need a single -rpath flag with a separated argument.
21247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21248
21249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21250 # resulting binary.
21251 hardcode_direct=$hardcode_direct_GCJ
21252
21253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21254 # resulting binary.
21255 hardcode_minus_L=$hardcode_minus_L_GCJ
21256
21257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21258 # the resulting binary.
21259 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21260
21261 # Set to yes if building a shared library automatically hardcodes DIR into the library
21262 # and all subsequent libraries and executables linked against it.
21263 hardcode_automatic=$hardcode_automatic_GCJ
21264
21265 # Variables whose values should be saved in libtool wrapper scripts and
21266 # restored at relink time.
21267 variables_saved_for_relink="$variables_saved_for_relink"
21268
21269 # Whether libtool must link a program against all its dependency libraries.
21270 link_all_deplibs=$link_all_deplibs_GCJ
21271
21272 # Compile-time system search path for libraries
21273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21274
21275 # Run-time system search path for libraries
21276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21277
21278 # Fix the shell variable \$srcfile for the compiler.
21279 fix_srcfile_path="$fix_srcfile_path_GCJ"
21280
21281 # Set to yes if exported symbols are required.
21282 always_export_symbols=$always_export_symbols_GCJ
21283
21284 # The commands to list exported symbols.
21285 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21286
21287 # The commands to extract the exported symbol list from a shared archive.
21288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21289
21290 # Symbols that should not be listed in the preloaded symbols.
21291 exclude_expsyms=$lt_exclude_expsyms_GCJ
21292
21293 # Symbols that must always be exported.
21294 include_expsyms=$lt_include_expsyms_GCJ
21295
21296 # ### END LIBTOOL TAG CONFIG: $tagname
21297
21298 __EOF__
21299
21300
21301 else
21302   # If there is no Makefile yet, we rely on a make rule to execute
21303   # `config.status --recheck' to rerun these tests and create the
21304   # libtool script then.
21305   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21306   if test -f "$ltmain_in"; then
21307     test -f Makefile && make "$ltmain"
21308   fi
21309 fi
21310
21311
21312 ac_ext=c
21313 ac_cpp='$CPP $CPPFLAGS'
21314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21317
21318 CC="$lt_save_CC"
21319
21320         else
21321           tagname=""
21322         fi
21323         ;;
21324
21325       RC)
21326
21327
21328
21329 # Source file extension for RC test sources.
21330 ac_ext=rc
21331
21332 # Object file extension for compiled RC test sources.
21333 objext=o
21334 objext_RC=$objext
21335
21336 # Code to be used in simple compile tests
21337 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21338
21339 # Code to be used in simple link tests
21340 lt_simple_link_test_code="$lt_simple_compile_test_code"
21341
21342 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21343
21344 # If no C compiler was specified, use CC.
21345 LTCC=${LTCC-"$CC"}
21346
21347 # Allow CC to be a program name with arguments.
21348 compiler=$CC
21349
21350
21351 # save warnings/boilerplate of simple test code
21352 ac_outfile=conftest.$ac_objext
21353 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21355 _lt_compiler_boilerplate=`cat conftest.err`
21356 $rm conftest*
21357
21358 ac_outfile=conftest.$ac_objext
21359 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21361 _lt_linker_boilerplate=`cat conftest.err`
21362 $rm conftest*
21363
21364
21365 # Allow CC to be a program name with arguments.
21366 lt_save_CC="$CC"
21367 CC=${RC-"windres"}
21368 compiler=$CC
21369 compiler_RC=$CC
21370 for cc_temp in $compiler""; do
21371   case $cc_temp in
21372     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21373     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21374     \-*) ;;
21375     *) break;;
21376   esac
21377 done
21378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21379
21380 lt_cv_prog_compiler_c_o_RC=yes
21381
21382 # The else clause should only fire when bootstrapping the
21383 # libtool distribution, otherwise you forgot to ship ltmain.sh
21384 # with your package, and you will get complaints that there are
21385 # no rules to generate ltmain.sh.
21386 if test -f "$ltmain"; then
21387   # See if we are running on zsh, and set the options which allow our commands through
21388   # without removal of \ escapes.
21389   if test -n "${ZSH_VERSION+set}" ; then
21390     setopt NO_GLOB_SUBST
21391   fi
21392   # Now quote all the things that may contain metacharacters while being
21393   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21394   # variables and quote the copies for generation of the libtool script.
21395   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21396     SED SHELL STRIP \
21397     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21398     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21399     deplibs_check_method reload_flag reload_cmds need_locks \
21400     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21401     lt_cv_sys_global_symbol_to_c_name_address \
21402     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21403     old_postinstall_cmds old_postuninstall_cmds \
21404     compiler_RC \
21405     CC_RC \
21406     LD_RC \
21407     lt_prog_compiler_wl_RC \
21408     lt_prog_compiler_pic_RC \
21409     lt_prog_compiler_static_RC \
21410     lt_prog_compiler_no_builtin_flag_RC \
21411     export_dynamic_flag_spec_RC \
21412     thread_safe_flag_spec_RC \
21413     whole_archive_flag_spec_RC \
21414     enable_shared_with_static_runtimes_RC \
21415     old_archive_cmds_RC \
21416     old_archive_from_new_cmds_RC \
21417     predep_objects_RC \
21418     postdep_objects_RC \
21419     predeps_RC \
21420     postdeps_RC \
21421     compiler_lib_search_path_RC \
21422     archive_cmds_RC \
21423     archive_expsym_cmds_RC \
21424     postinstall_cmds_RC \
21425     postuninstall_cmds_RC \
21426     old_archive_from_expsyms_cmds_RC \
21427     allow_undefined_flag_RC \
21428     no_undefined_flag_RC \
21429     export_symbols_cmds_RC \
21430     hardcode_libdir_flag_spec_RC \
21431     hardcode_libdir_flag_spec_ld_RC \
21432     hardcode_libdir_separator_RC \
21433     hardcode_automatic_RC \
21434     module_cmds_RC \
21435     module_expsym_cmds_RC \
21436     lt_cv_prog_compiler_c_o_RC \
21437     exclude_expsyms_RC \
21438     include_expsyms_RC; do
21439
21440     case $var in
21441     old_archive_cmds_RC | \
21442     old_archive_from_new_cmds_RC | \
21443     archive_cmds_RC | \
21444     archive_expsym_cmds_RC | \
21445     module_cmds_RC | \
21446     module_expsym_cmds_RC | \
21447     old_archive_from_expsyms_cmds_RC | \
21448     export_symbols_cmds_RC | \
21449     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21450     postinstall_cmds | postuninstall_cmds | \
21451     old_postinstall_cmds | old_postuninstall_cmds | \
21452     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21453       # Double-quote double-evaled strings.
21454       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21455       ;;
21456     *)
21457       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21458       ;;
21459     esac
21460   done
21461
21462   case $lt_echo in
21463   *'\$0 --fallback-echo"')
21464     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21465     ;;
21466   esac
21467
21468 cfgfile="$ofile"
21469
21470   cat <<__EOF__ >> "$cfgfile"
21471 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21472
21473 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21474
21475 # Shell to use when invoking shell scripts.
21476 SHELL=$lt_SHELL
21477
21478 # Whether or not to build shared libraries.
21479 build_libtool_libs=$enable_shared
21480
21481 # Whether or not to build static libraries.
21482 build_old_libs=$enable_static
21483
21484 # Whether or not to add -lc for building shared libraries.
21485 build_libtool_need_lc=$archive_cmds_need_lc_RC
21486
21487 # Whether or not to disallow shared libs when runtime libs are static
21488 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21489
21490 # Whether or not to optimize for fast installation.
21491 fast_install=$enable_fast_install
21492
21493 # The host system.
21494 host_alias=$host_alias
21495 host=$host
21496 host_os=$host_os
21497
21498 # The build system.
21499 build_alias=$build_alias
21500 build=$build
21501 build_os=$build_os
21502
21503 # An echo program that does not interpret backslashes.
21504 echo=$lt_echo
21505
21506 # The archiver.
21507 AR=$lt_AR
21508 AR_FLAGS=$lt_AR_FLAGS
21509
21510 # A C compiler.
21511 LTCC=$lt_LTCC
21512
21513 # A language-specific compiler.
21514 CC=$lt_compiler_RC
21515
21516 # Is the compiler the GNU C compiler?
21517 with_gcc=$GCC_RC
21518
21519 # An ERE matcher.
21520 EGREP=$lt_EGREP
21521
21522 # The linker used to build libraries.
21523 LD=$lt_LD_RC
21524
21525 # Whether we need hard or soft links.
21526 LN_S=$lt_LN_S
21527
21528 # A BSD-compatible nm program.
21529 NM=$lt_NM
21530
21531 # A symbol stripping program
21532 STRIP=$lt_STRIP
21533
21534 # Used to examine libraries when file_magic_cmd begins "file"
21535 MAGIC_CMD=$MAGIC_CMD
21536
21537 # Used on cygwin: DLL creation program.
21538 DLLTOOL="$DLLTOOL"
21539
21540 # Used on cygwin: object dumper.
21541 OBJDUMP="$OBJDUMP"
21542
21543 # Used on cygwin: assembler.
21544 AS="$AS"
21545
21546 # The name of the directory that contains temporary libtool files.
21547 objdir=$objdir
21548
21549 # How to create reloadable object files.
21550 reload_flag=$lt_reload_flag
21551 reload_cmds=$lt_reload_cmds
21552
21553 # How to pass a linker flag through the compiler.
21554 wl=$lt_lt_prog_compiler_wl_RC
21555
21556 # Object file suffix (normally "o").
21557 objext="$ac_objext"
21558
21559 # Old archive suffix (normally "a").
21560 libext="$libext"
21561
21562 # Shared library suffix (normally ".so").
21563 shrext_cmds='$shrext_cmds'
21564
21565 # Executable file suffix (normally "").
21566 exeext="$exeext"
21567
21568 # Additional compiler flags for building library objects.
21569 pic_flag=$lt_lt_prog_compiler_pic_RC
21570 pic_mode=$pic_mode
21571
21572 # What is the maximum length of a command?
21573 max_cmd_len=$lt_cv_sys_max_cmd_len
21574
21575 # Does compiler simultaneously support -c and -o options?
21576 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21577
21578 # Must we lock files when doing compilation?
21579 need_locks=$lt_need_locks
21580
21581 # Do we need the lib prefix for modules?
21582 need_lib_prefix=$need_lib_prefix
21583
21584 # Do we need a version for libraries?
21585 need_version=$need_version
21586
21587 # Whether dlopen is supported.
21588 dlopen_support=$enable_dlopen
21589
21590 # Whether dlopen of programs is supported.
21591 dlopen_self=$enable_dlopen_self
21592
21593 # Whether dlopen of statically linked programs is supported.
21594 dlopen_self_static=$enable_dlopen_self_static
21595
21596 # Compiler flag to prevent dynamic linking.
21597 link_static_flag=$lt_lt_prog_compiler_static_RC
21598
21599 # Compiler flag to turn off builtin functions.
21600 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21601
21602 # Compiler flag to allow reflexive dlopens.
21603 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21604
21605 # Compiler flag to generate shared objects directly from archives.
21606 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21607
21608 # Compiler flag to generate thread-safe objects.
21609 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21610
21611 # Library versioning type.
21612 version_type=$version_type
21613
21614 # Format of library name prefix.
21615 libname_spec=$lt_libname_spec
21616
21617 # List of archive names.  First name is the real one, the rest are links.
21618 # The last name is the one that the linker finds with -lNAME.
21619 library_names_spec=$lt_library_names_spec
21620
21621 # The coded name of the library, if different from the real name.
21622 soname_spec=$lt_soname_spec
21623
21624 # Commands used to build and install an old-style archive.
21625 RANLIB=$lt_RANLIB
21626 old_archive_cmds=$lt_old_archive_cmds_RC
21627 old_postinstall_cmds=$lt_old_postinstall_cmds
21628 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21629
21630 # Create an old-style archive from a shared archive.
21631 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21632
21633 # Create a temporary old-style archive to link instead of a shared archive.
21634 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21635
21636 # Commands used to build and install a shared archive.
21637 archive_cmds=$lt_archive_cmds_RC
21638 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21639 postinstall_cmds=$lt_postinstall_cmds
21640 postuninstall_cmds=$lt_postuninstall_cmds
21641
21642 # Commands used to build a loadable module (assumed same as above if empty)
21643 module_cmds=$lt_module_cmds_RC
21644 module_expsym_cmds=$lt_module_expsym_cmds_RC
21645
21646 # Commands to strip libraries.
21647 old_striplib=$lt_old_striplib
21648 striplib=$lt_striplib
21649
21650 # Dependencies to place before the objects being linked to create a
21651 # shared library.
21652 predep_objects=$lt_predep_objects_RC
21653
21654 # Dependencies to place after the objects being linked to create a
21655 # shared library.
21656 postdep_objects=$lt_postdep_objects_RC
21657
21658 # Dependencies to place before the objects being linked to create a
21659 # shared library.
21660 predeps=$lt_predeps_RC
21661
21662 # Dependencies to place after the objects being linked to create a
21663 # shared library.
21664 postdeps=$lt_postdeps_RC
21665
21666 # The library search path used internally by the compiler when linking
21667 # a shared library.
21668 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21669
21670 # Method to check whether dependent libraries are shared objects.
21671 deplibs_check_method=$lt_deplibs_check_method
21672
21673 # Command to use when deplibs_check_method == file_magic.
21674 file_magic_cmd=$lt_file_magic_cmd
21675
21676 # Flag that allows shared libraries with undefined symbols to be built.
21677 allow_undefined_flag=$lt_allow_undefined_flag_RC
21678
21679 # Flag that forces no undefined symbols.
21680 no_undefined_flag=$lt_no_undefined_flag_RC
21681
21682 # Commands used to finish a libtool library installation in a directory.
21683 finish_cmds=$lt_finish_cmds
21684
21685 # Same as above, but a single script fragment to be evaled but not shown.
21686 finish_eval=$lt_finish_eval
21687
21688 # Take the output of nm and produce a listing of raw symbols and C names.
21689 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21690
21691 # Transform the output of nm in a proper C declaration
21692 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21693
21694 # Transform the output of nm in a C name address pair
21695 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21696
21697 # This is the shared library runtime path variable.
21698 runpath_var=$runpath_var
21699
21700 # This is the shared library path variable.
21701 shlibpath_var=$shlibpath_var
21702
21703 # Is shlibpath searched before the hard-coded library search path?
21704 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21705
21706 # How to hardcode a shared library path into an executable.
21707 hardcode_action=$hardcode_action_RC
21708
21709 # Whether we should hardcode library paths into libraries.
21710 hardcode_into_libs=$hardcode_into_libs
21711
21712 # Flag to hardcode \$libdir into a binary during linking.
21713 # This must work even if \$libdir does not exist.
21714 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21715
21716 # If ld is used when linking, flag to hardcode \$libdir into
21717 # a binary during linking. This must work even if \$libdir does
21718 # not exist.
21719 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21720
21721 # Whether we need a single -rpath flag with a separated argument.
21722 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21723
21724 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21725 # resulting binary.
21726 hardcode_direct=$hardcode_direct_RC
21727
21728 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21729 # resulting binary.
21730 hardcode_minus_L=$hardcode_minus_L_RC
21731
21732 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21733 # the resulting binary.
21734 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21735
21736 # Set to yes if building a shared library automatically hardcodes DIR into the library
21737 # and all subsequent libraries and executables linked against it.
21738 hardcode_automatic=$hardcode_automatic_RC
21739
21740 # Variables whose values should be saved in libtool wrapper scripts and
21741 # restored at relink time.
21742 variables_saved_for_relink="$variables_saved_for_relink"
21743
21744 # Whether libtool must link a program against all its dependency libraries.
21745 link_all_deplibs=$link_all_deplibs_RC
21746
21747 # Compile-time system search path for libraries
21748 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21749
21750 # Run-time system search path for libraries
21751 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21752
21753 # Fix the shell variable \$srcfile for the compiler.
21754 fix_srcfile_path="$fix_srcfile_path_RC"
21755
21756 # Set to yes if exported symbols are required.
21757 always_export_symbols=$always_export_symbols_RC
21758
21759 # The commands to list exported symbols.
21760 export_symbols_cmds=$lt_export_symbols_cmds_RC
21761
21762 # The commands to extract the exported symbol list from a shared archive.
21763 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21764
21765 # Symbols that should not be listed in the preloaded symbols.
21766 exclude_expsyms=$lt_exclude_expsyms_RC
21767
21768 # Symbols that must always be exported.
21769 include_expsyms=$lt_include_expsyms_RC
21770
21771 # ### END LIBTOOL TAG CONFIG: $tagname
21772
21773 __EOF__
21774
21775
21776 else
21777   # If there is no Makefile yet, we rely on a make rule to execute
21778   # `config.status --recheck' to rerun these tests and create the
21779   # libtool script then.
21780   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21781   if test -f "$ltmain_in"; then
21782     test -f Makefile && make "$ltmain"
21783   fi
21784 fi
21785
21786
21787 ac_ext=c
21788 ac_cpp='$CPP $CPPFLAGS'
21789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21792
21793 CC="$lt_save_CC"
21794
21795         ;;
21796
21797       *)
21798         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21799 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21800    { (exit 1); exit 1; }; }
21801         ;;
21802       esac
21803
21804       # Append the new tag name to the list of available tags.
21805       if test -n "$tagname" ; then
21806       available_tags="$available_tags $tagname"
21807     fi
21808     fi
21809   done
21810   IFS="$lt_save_ifs"
21811
21812   # Now substitute the updated list of available tags.
21813   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21814     mv "${ofile}T" "$ofile"
21815     chmod +x "$ofile"
21816   else
21817     rm -f "${ofile}T"
21818     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21819 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21820    { (exit 1); exit 1; }; }
21821   fi
21822 fi
21823
21824
21825
21826 # This can be used to rebuild libtool when needed
21827 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21828
21829 # Always use our own libtool.
21830 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21831
21832 # Prevent multiple expansion
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854 ol_link_perl=no
21855 if test $ol_enable_perl != no ; then
21856         # Extract the first word of "perl", so it can be a program name with args.
21857 set dummy perl; ac_word=$2
21858 echo "$as_me:$LINENO: checking for $ac_word" >&5
21859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21860 if test "${ac_cv_path_PERLBIN+set}" = set; then
21861   echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863   case $PERLBIN in
21864   [\\/]* | ?:[\\/]*)
21865   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21866   ;;
21867   *)
21868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21869 for as_dir in $PATH
21870 do
21871   IFS=$as_save_IFS
21872   test -z "$as_dir" && as_dir=.
21873   for ac_exec_ext in '' $ac_executable_extensions; do
21874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21875     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21877     break 2
21878   fi
21879 done
21880 done
21881
21882   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21883   ;;
21884 esac
21885 fi
21886 PERLBIN=$ac_cv_path_PERLBIN
21887
21888 if test -n "$PERLBIN"; then
21889   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21890 echo "${ECHO_T}$PERLBIN" >&6
21891 else
21892   echo "$as_me:$LINENO: result: no" >&5
21893 echo "${ECHO_T}no" >&6
21894 fi
21895
21896
21897         if test "no$PERLBIN" = "no" ; then
21898                 if test $ol_enable_perl = yes ; then
21899                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21900 echo "$as_me: error: could not locate perl" >&2;}
21901    { (exit 1); exit 1; }; }
21902                 fi
21903
21904         else
21905                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21906                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21907
21908                 if test x"$ol_enable_perl" = "xyes" ; then
21909                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21910                 else
21911                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21912                 fi
21913                                 ol_link_perl=yes
21914         fi
21915 fi
21916
21917 ac_ext=c
21918 ac_cpp='$CPP $CPPFLAGS'
21919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21922 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21923 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21924 # On Suns, sometimes $CPP names a directory.
21925 if test -n "$CPP" && test -d "$CPP"; then
21926   CPP=
21927 fi
21928 if test -z "$CPP"; then
21929   if test "${ac_cv_prog_CPP+set}" = set; then
21930   echo $ECHO_N "(cached) $ECHO_C" >&6
21931 else
21932       # Double quotes because CPP needs to be expanded
21933     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21934     do
21935       ac_preproc_ok=false
21936 for ac_c_preproc_warn_flag in '' yes
21937 do
21938   # Use a header file that comes with gcc, so configuring glibc
21939   # with a fresh cross-compiler works.
21940   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21941   # <limits.h> exists even on freestanding compilers.
21942   # On the NeXT, cc -E runs the code through the compiler's parser,
21943   # not just through cpp. "Syntax error" is here to catch this case.
21944   cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h.  */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h.  */
21950 #ifdef __STDC__
21951 # include <limits.h>
21952 #else
21953 # include <assert.h>
21954 #endif
21955                      Syntax error
21956 _ACEOF
21957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21959   ac_status=$?
21960   grep -v '^ *+' conftest.er1 >conftest.err
21961   rm -f conftest.er1
21962   cat conftest.err >&5
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } >/dev/null; then
21965   if test -s conftest.err; then
21966     ac_cpp_err=$ac_c_preproc_warn_flag
21967     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21968   else
21969     ac_cpp_err=
21970   fi
21971 else
21972   ac_cpp_err=yes
21973 fi
21974 if test -z "$ac_cpp_err"; then
21975   :
21976 else
21977   echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980   # Broken: fails on valid input.
21981 continue
21982 fi
21983 rm -f conftest.err conftest.$ac_ext
21984
21985   # OK, works on sane cases.  Now check whether non-existent headers
21986   # can be detected and how.
21987   cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h.  */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h.  */
21993 #include <ac_nonexistent.h>
21994 _ACEOF
21995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21997   ac_status=$?
21998   grep -v '^ *+' conftest.er1 >conftest.err
21999   rm -f conftest.er1
22000   cat conftest.err >&5
22001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002   (exit $ac_status); } >/dev/null; then
22003   if test -s conftest.err; then
22004     ac_cpp_err=$ac_c_preproc_warn_flag
22005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22006   else
22007     ac_cpp_err=
22008   fi
22009 else
22010   ac_cpp_err=yes
22011 fi
22012 if test -z "$ac_cpp_err"; then
22013   # Broken: success on invalid input.
22014 continue
22015 else
22016   echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019   # Passes both tests.
22020 ac_preproc_ok=:
22021 break
22022 fi
22023 rm -f conftest.err conftest.$ac_ext
22024
22025 done
22026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22027 rm -f conftest.err conftest.$ac_ext
22028 if $ac_preproc_ok; then
22029   break
22030 fi
22031
22032     done
22033     ac_cv_prog_CPP=$CPP
22034
22035 fi
22036   CPP=$ac_cv_prog_CPP
22037 else
22038   ac_cv_prog_CPP=$CPP
22039 fi
22040 echo "$as_me:$LINENO: result: $CPP" >&5
22041 echo "${ECHO_T}$CPP" >&6
22042 ac_preproc_ok=false
22043 for ac_c_preproc_warn_flag in '' yes
22044 do
22045   # Use a header file that comes with gcc, so configuring glibc
22046   # with a fresh cross-compiler works.
22047   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22048   # <limits.h> exists even on freestanding compilers.
22049   # On the NeXT, cc -E runs the code through the compiler's parser,
22050   # not just through cpp. "Syntax error" is here to catch this case.
22051   cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h.  */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h.  */
22057 #ifdef __STDC__
22058 # include <limits.h>
22059 #else
22060 # include <assert.h>
22061 #endif
22062                      Syntax error
22063 _ACEOF
22064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22066   ac_status=$?
22067   grep -v '^ *+' conftest.er1 >conftest.err
22068   rm -f conftest.er1
22069   cat conftest.err >&5
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); } >/dev/null; then
22072   if test -s conftest.err; then
22073     ac_cpp_err=$ac_c_preproc_warn_flag
22074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22075   else
22076     ac_cpp_err=
22077   fi
22078 else
22079   ac_cpp_err=yes
22080 fi
22081 if test -z "$ac_cpp_err"; then
22082   :
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087   # Broken: fails on valid input.
22088 continue
22089 fi
22090 rm -f conftest.err conftest.$ac_ext
22091
22092   # OK, works on sane cases.  Now check whether non-existent headers
22093   # can be detected and how.
22094   cat >conftest.$ac_ext <<_ACEOF
22095 /* confdefs.h.  */
22096 _ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h.  */
22100 #include <ac_nonexistent.h>
22101 _ACEOF
22102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22104   ac_status=$?
22105   grep -v '^ *+' conftest.er1 >conftest.err
22106   rm -f conftest.er1
22107   cat conftest.err >&5
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } >/dev/null; then
22110   if test -s conftest.err; then
22111     ac_cpp_err=$ac_c_preproc_warn_flag
22112     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22113   else
22114     ac_cpp_err=
22115   fi
22116 else
22117   ac_cpp_err=yes
22118 fi
22119 if test -z "$ac_cpp_err"; then
22120   # Broken: success on invalid input.
22121 continue
22122 else
22123   echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126   # Passes both tests.
22127 ac_preproc_ok=:
22128 break
22129 fi
22130 rm -f conftest.err conftest.$ac_ext
22131
22132 done
22133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22134 rm -f conftest.err conftest.$ac_ext
22135 if $ac_preproc_ok; then
22136   :
22137 else
22138   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22139 See \`config.log' for more details." >&5
22140 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22141 See \`config.log' for more details." >&2;}
22142    { (exit 1); exit 1; }; }
22143 fi
22144
22145 ac_ext=c
22146 ac_cpp='$CPP $CPPFLAGS'
22147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22150
22151
22152
22153
22154
22155 cat >>confdefs.h <<_ACEOF
22156 #define EXEEXT "${EXEEXT}"
22157 _ACEOF
22158
22159
22160 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22161 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22162 if test "${ac_cv_lib_be_be_app+set}" = set; then
22163   echo $ECHO_N "(cached) $ECHO_C" >&6
22164 else
22165   ac_check_lib_save_LIBS=$LIBS
22166 LIBS="-lbe -lroot -lnet $LIBS"
22167 cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h.  */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h.  */
22173
22174 /* Override any gcc2 internal prototype to avoid an error.  */
22175 #ifdef __cplusplus
22176 extern "C"
22177 #endif
22178 /* We use char because int might match the return type of a gcc2
22179    builtin and then its argument prototype would still apply.  */
22180 char be_app ();
22181 int
22182 main ()
22183 {
22184 be_app ();
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22191   (eval $ac_link) 2>conftest.er1
22192   ac_status=$?
22193   grep -v '^ *+' conftest.er1 >conftest.err
22194   rm -f conftest.er1
22195   cat conftest.err >&5
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } &&
22198          { ac_try='test -z "$ac_c_werror_flag"
22199                          || test ! -s conftest.err'
22200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201   (eval $ac_try) 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); }; } &&
22205          { ac_try='test -s conftest$ac_exeext'
22206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207   (eval $ac_try) 2>&5
22208   ac_status=$?
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); }; }; then
22211   ac_cv_lib_be_be_app=yes
22212 else
22213   echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22215
22216 ac_cv_lib_be_be_app=no
22217 fi
22218 rm -f conftest.err conftest.$ac_objext \
22219       conftest$ac_exeext conftest.$ac_ext
22220 LIBS=$ac_check_lib_save_LIBS
22221 fi
22222 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22223 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22224 if test $ac_cv_lib_be_be_app = yes; then
22225   LIBS="$LIBS -lbe -lroot -lnet"
22226 else
22227   :
22228 fi
22229
22230
22231 ac_ext=c
22232 ac_cpp='$CPP $CPPFLAGS'
22233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22236 if test -n "$ac_tool_prefix"; then
22237   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22238 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22239 echo "$as_me:$LINENO: checking for $ac_word" >&5
22240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22241 if test "${ac_cv_prog_CC+set}" = set; then
22242   echo $ECHO_N "(cached) $ECHO_C" >&6
22243 else
22244   if test -n "$CC"; then
22245   ac_cv_prog_CC="$CC" # Let the user override the test.
22246 else
22247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22248 for as_dir in $PATH
22249 do
22250   IFS=$as_save_IFS
22251   test -z "$as_dir" && as_dir=.
22252   for ac_exec_ext in '' $ac_executable_extensions; do
22253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22254     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22256     break 2
22257   fi
22258 done
22259 done
22260
22261 fi
22262 fi
22263 CC=$ac_cv_prog_CC
22264 if test -n "$CC"; then
22265   echo "$as_me:$LINENO: result: $CC" >&5
22266 echo "${ECHO_T}$CC" >&6
22267 else
22268   echo "$as_me:$LINENO: result: no" >&5
22269 echo "${ECHO_T}no" >&6
22270 fi
22271
22272 fi
22273 if test -z "$ac_cv_prog_CC"; then
22274   ac_ct_CC=$CC
22275   # Extract the first word of "gcc", so it can be a program name with args.
22276 set dummy gcc; ac_word=$2
22277 echo "$as_me:$LINENO: checking for $ac_word" >&5
22278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22280   echo $ECHO_N "(cached) $ECHO_C" >&6
22281 else
22282   if test -n "$ac_ct_CC"; then
22283   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22284 else
22285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22286 for as_dir in $PATH
22287 do
22288   IFS=$as_save_IFS
22289   test -z "$as_dir" && as_dir=.
22290   for ac_exec_ext in '' $ac_executable_extensions; do
22291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22292     ac_cv_prog_ac_ct_CC="gcc"
22293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22294     break 2
22295   fi
22296 done
22297 done
22298
22299 fi
22300 fi
22301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22302 if test -n "$ac_ct_CC"; then
22303   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22304 echo "${ECHO_T}$ac_ct_CC" >&6
22305 else
22306   echo "$as_me:$LINENO: result: no" >&5
22307 echo "${ECHO_T}no" >&6
22308 fi
22309
22310   CC=$ac_ct_CC
22311 else
22312   CC="$ac_cv_prog_CC"
22313 fi
22314
22315 if test -z "$CC"; then
22316   if test -n "$ac_tool_prefix"; then
22317   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22318 set dummy ${ac_tool_prefix}cc; ac_word=$2
22319 echo "$as_me:$LINENO: checking for $ac_word" >&5
22320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22321 if test "${ac_cv_prog_CC+set}" = set; then
22322   echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324   if test -n "$CC"; then
22325   ac_cv_prog_CC="$CC" # Let the user override the test.
22326 else
22327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22328 for as_dir in $PATH
22329 do
22330   IFS=$as_save_IFS
22331   test -z "$as_dir" && as_dir=.
22332   for ac_exec_ext in '' $ac_executable_extensions; do
22333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22334     ac_cv_prog_CC="${ac_tool_prefix}cc"
22335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22336     break 2
22337   fi
22338 done
22339 done
22340
22341 fi
22342 fi
22343 CC=$ac_cv_prog_CC
22344 if test -n "$CC"; then
22345   echo "$as_me:$LINENO: result: $CC" >&5
22346 echo "${ECHO_T}$CC" >&6
22347 else
22348   echo "$as_me:$LINENO: result: no" >&5
22349 echo "${ECHO_T}no" >&6
22350 fi
22351
22352 fi
22353 if test -z "$ac_cv_prog_CC"; then
22354   ac_ct_CC=$CC
22355   # Extract the first word of "cc", so it can be a program name with args.
22356 set dummy cc; ac_word=$2
22357 echo "$as_me:$LINENO: checking for $ac_word" >&5
22358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22360   echo $ECHO_N "(cached) $ECHO_C" >&6
22361 else
22362   if test -n "$ac_ct_CC"; then
22363   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22364 else
22365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22366 for as_dir in $PATH
22367 do
22368   IFS=$as_save_IFS
22369   test -z "$as_dir" && as_dir=.
22370   for ac_exec_ext in '' $ac_executable_extensions; do
22371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22372     ac_cv_prog_ac_ct_CC="cc"
22373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22374     break 2
22375   fi
22376 done
22377 done
22378
22379 fi
22380 fi
22381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22382 if test -n "$ac_ct_CC"; then
22383   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22384 echo "${ECHO_T}$ac_ct_CC" >&6
22385 else
22386   echo "$as_me:$LINENO: result: no" >&5
22387 echo "${ECHO_T}no" >&6
22388 fi
22389
22390   CC=$ac_ct_CC
22391 else
22392   CC="$ac_cv_prog_CC"
22393 fi
22394
22395 fi
22396 if test -z "$CC"; then
22397   # Extract the first word of "cc", so it can be a program name with args.
22398 set dummy cc; ac_word=$2
22399 echo "$as_me:$LINENO: checking for $ac_word" >&5
22400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22401 if test "${ac_cv_prog_CC+set}" = set; then
22402   echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404   if test -n "$CC"; then
22405   ac_cv_prog_CC="$CC" # Let the user override the test.
22406 else
22407   ac_prog_rejected=no
22408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22409 for as_dir in $PATH
22410 do
22411   IFS=$as_save_IFS
22412   test -z "$as_dir" && as_dir=.
22413   for ac_exec_ext in '' $ac_executable_extensions; do
22414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22415     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22416        ac_prog_rejected=yes
22417        continue
22418      fi
22419     ac_cv_prog_CC="cc"
22420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22421     break 2
22422   fi
22423 done
22424 done
22425
22426 if test $ac_prog_rejected = yes; then
22427   # We found a bogon in the path, so make sure we never use it.
22428   set dummy $ac_cv_prog_CC
22429   shift
22430   if test $# != 0; then
22431     # We chose a different compiler from the bogus one.
22432     # However, it has the same basename, so the bogon will be chosen
22433     # first if we set CC to just the basename; use the full file name.
22434     shift
22435     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22436   fi
22437 fi
22438 fi
22439 fi
22440 CC=$ac_cv_prog_CC
22441 if test -n "$CC"; then
22442   echo "$as_me:$LINENO: result: $CC" >&5
22443 echo "${ECHO_T}$CC" >&6
22444 else
22445   echo "$as_me:$LINENO: result: no" >&5
22446 echo "${ECHO_T}no" >&6
22447 fi
22448
22449 fi
22450 if test -z "$CC"; then
22451   if test -n "$ac_tool_prefix"; then
22452   for ac_prog in cl
22453   do
22454     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22456 echo "$as_me:$LINENO: checking for $ac_word" >&5
22457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22458 if test "${ac_cv_prog_CC+set}" = set; then
22459   echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461   if test -n "$CC"; then
22462   ac_cv_prog_CC="$CC" # Let the user override the test.
22463 else
22464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22465 for as_dir in $PATH
22466 do
22467   IFS=$as_save_IFS
22468   test -z "$as_dir" && as_dir=.
22469   for ac_exec_ext in '' $ac_executable_extensions; do
22470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22471     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22473     break 2
22474   fi
22475 done
22476 done
22477
22478 fi
22479 fi
22480 CC=$ac_cv_prog_CC
22481 if test -n "$CC"; then
22482   echo "$as_me:$LINENO: result: $CC" >&5
22483 echo "${ECHO_T}$CC" >&6
22484 else
22485   echo "$as_me:$LINENO: result: no" >&5
22486 echo "${ECHO_T}no" >&6
22487 fi
22488
22489     test -n "$CC" && break
22490   done
22491 fi
22492 if test -z "$CC"; then
22493   ac_ct_CC=$CC
22494   for ac_prog in cl
22495 do
22496   # Extract the first word of "$ac_prog", so it can be a program name with args.
22497 set dummy $ac_prog; ac_word=$2
22498 echo "$as_me:$LINENO: checking for $ac_word" >&5
22499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22501   echo $ECHO_N "(cached) $ECHO_C" >&6
22502 else
22503   if test -n "$ac_ct_CC"; then
22504   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22505 else
22506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22507 for as_dir in $PATH
22508 do
22509   IFS=$as_save_IFS
22510   test -z "$as_dir" && as_dir=.
22511   for ac_exec_ext in '' $ac_executable_extensions; do
22512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22513     ac_cv_prog_ac_ct_CC="$ac_prog"
22514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22515     break 2
22516   fi
22517 done
22518 done
22519
22520 fi
22521 fi
22522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22523 if test -n "$ac_ct_CC"; then
22524   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22525 echo "${ECHO_T}$ac_ct_CC" >&6
22526 else
22527   echo "$as_me:$LINENO: result: no" >&5
22528 echo "${ECHO_T}no" >&6
22529 fi
22530
22531   test -n "$ac_ct_CC" && break
22532 done
22533
22534   CC=$ac_ct_CC
22535 fi
22536
22537 fi
22538
22539
22540 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22541 See \`config.log' for more details." >&5
22542 echo "$as_me: error: no acceptable C compiler found in \$PATH
22543 See \`config.log' for more details." >&2;}
22544    { (exit 1); exit 1; }; }
22545
22546 # Provide some information about the compiler.
22547 echo "$as_me:$LINENO:" \
22548      "checking for C compiler version" >&5
22549 ac_compiler=`set X $ac_compile; echo $2`
22550 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22551   (eval $ac_compiler --version </dev/null >&5) 2>&5
22552   ac_status=$?
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); }
22555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22556   (eval $ac_compiler -v </dev/null >&5) 2>&5
22557   ac_status=$?
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); }
22560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22561   (eval $ac_compiler -V </dev/null >&5) 2>&5
22562   ac_status=$?
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); }
22565
22566 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22567 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22568 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22569   echo $ECHO_N "(cached) $ECHO_C" >&6
22570 else
22571   cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h.  */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h.  */
22577
22578 int
22579 main ()
22580 {
22581 #ifndef __GNUC__
22582        choke me
22583 #endif
22584
22585   ;
22586   return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22591   (eval $ac_compile) 2>conftest.er1
22592   ac_status=$?
22593   grep -v '^ *+' conftest.er1 >conftest.err
22594   rm -f conftest.er1
22595   cat conftest.err >&5
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); } &&
22598          { ac_try='test -z "$ac_c_werror_flag"
22599                          || test ! -s conftest.err'
22600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601   (eval $ac_try) 2>&5
22602   ac_status=$?
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); }; } &&
22605          { ac_try='test -s conftest.$ac_objext'
22606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607   (eval $ac_try) 2>&5
22608   ac_status=$?
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); }; }; then
22611   ac_compiler_gnu=yes
22612 else
22613   echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616 ac_compiler_gnu=no
22617 fi
22618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22619 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22620
22621 fi
22622 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22623 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22624 GCC=`test $ac_compiler_gnu = yes && echo yes`
22625 ac_test_CFLAGS=${CFLAGS+set}
22626 ac_save_CFLAGS=$CFLAGS
22627 CFLAGS="-g"
22628 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22629 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22630 if test "${ac_cv_prog_cc_g+set}" = set; then
22631   echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633   cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h.  */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h.  */
22639
22640 int
22641 main ()
22642 {
22643
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext
22649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22650   (eval $ac_compile) 2>conftest.er1
22651   ac_status=$?
22652   grep -v '^ *+' conftest.er1 >conftest.err
22653   rm -f conftest.er1
22654   cat conftest.err >&5
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } &&
22657          { ac_try='test -z "$ac_c_werror_flag"
22658                          || test ! -s conftest.err'
22659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660   (eval $ac_try) 2>&5
22661   ac_status=$?
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); }; } &&
22664          { ac_try='test -s conftest.$ac_objext'
22665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666   (eval $ac_try) 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; }; then
22670   ac_cv_prog_cc_g=yes
22671 else
22672   echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675 ac_cv_prog_cc_g=no
22676 fi
22677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22678 fi
22679 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22680 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22681 if test "$ac_test_CFLAGS" = set; then
22682   CFLAGS=$ac_save_CFLAGS
22683 elif test $ac_cv_prog_cc_g = yes; then
22684   if test "$GCC" = yes; then
22685     CFLAGS="-g -O2"
22686   else
22687     CFLAGS="-g"
22688   fi
22689 else
22690   if test "$GCC" = yes; then
22691     CFLAGS="-O2"
22692   else
22693     CFLAGS=
22694   fi
22695 fi
22696 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22697 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22698 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22699   echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701   ac_cv_prog_cc_stdc=no
22702 ac_save_CC=$CC
22703 cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h.  */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h.  */
22709 #include <stdarg.h>
22710 #include <stdio.h>
22711 #include <sys/types.h>
22712 #include <sys/stat.h>
22713 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22714 struct buf { int x; };
22715 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22716 static char *e (p, i)
22717      char **p;
22718      int i;
22719 {
22720   return p[i];
22721 }
22722 static char *f (char * (*g) (char **, int), char **p, ...)
22723 {
22724   char *s;
22725   va_list v;
22726   va_start (v,p);
22727   s = g (p, va_arg (v,int));
22728   va_end (v);
22729   return s;
22730 }
22731
22732 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22733    function prototypes and stuff, but not '\xHH' hex character constants.
22734    These don't provoke an error unfortunately, instead are silently treated
22735    as 'x'.  The following induces an error, until -std1 is added to get
22736    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22737    array size at least.  It's necessary to write '\x00'==0 to get something
22738    that's true only with -std1.  */
22739 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22740
22741 int test (int i, double x);
22742 struct s1 {int (*f) (int a);};
22743 struct s2 {int (*f) (double a);};
22744 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22745 int argc;
22746 char **argv;
22747 int
22748 main ()
22749 {
22750 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22751   ;
22752   return 0;
22753 }
22754 _ACEOF
22755 # Don't try gcc -ansi; that turns off useful extensions and
22756 # breaks some systems' header files.
22757 # AIX                   -qlanglvl=ansi
22758 # Ultrix and OSF/1      -std1
22759 # HP-UX 10.20 and later -Ae
22760 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22761 # SVR4                  -Xc -D__EXTENSIONS__
22762 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22763 do
22764   CC="$ac_save_CC $ac_arg"
22765   rm -f conftest.$ac_objext
22766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22767   (eval $ac_compile) 2>conftest.er1
22768   ac_status=$?
22769   grep -v '^ *+' conftest.er1 >conftest.err
22770   rm -f conftest.er1
22771   cat conftest.err >&5
22772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773   (exit $ac_status); } &&
22774          { ac_try='test -z "$ac_c_werror_flag"
22775                          || test ! -s conftest.err'
22776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777   (eval $ac_try) 2>&5
22778   ac_status=$?
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); }; } &&
22781          { ac_try='test -s conftest.$ac_objext'
22782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783   (eval $ac_try) 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; }; then
22787   ac_cv_prog_cc_stdc=$ac_arg
22788 break
22789 else
22790   echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22792
22793 fi
22794 rm -f conftest.err conftest.$ac_objext
22795 done
22796 rm -f conftest.$ac_ext conftest.$ac_objext
22797 CC=$ac_save_CC
22798
22799 fi
22800
22801 case "x$ac_cv_prog_cc_stdc" in
22802   x|xno)
22803     echo "$as_me:$LINENO: result: none needed" >&5
22804 echo "${ECHO_T}none needed" >&6 ;;
22805   *)
22806     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22807 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22808     CC="$CC $ac_cv_prog_cc_stdc" ;;
22809 esac
22810
22811 # Some people use a C++ compiler to compile C.  Since we use `exit',
22812 # in C++ we need to declare it.  In case someone uses the same compiler
22813 # for both compiling C and C++ we need to have the C++ compiler decide
22814 # the declaration of exit, since it's the most demanding environment.
22815 cat >conftest.$ac_ext <<_ACEOF
22816 #ifndef __cplusplus
22817   choke me
22818 #endif
22819 _ACEOF
22820 rm -f conftest.$ac_objext
22821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22822   (eval $ac_compile) 2>conftest.er1
22823   ac_status=$?
22824   grep -v '^ *+' conftest.er1 >conftest.err
22825   rm -f conftest.er1
22826   cat conftest.err >&5
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); } &&
22829          { ac_try='test -z "$ac_c_werror_flag"
22830                          || test ! -s conftest.err'
22831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832   (eval $ac_try) 2>&5
22833   ac_status=$?
22834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835   (exit $ac_status); }; } &&
22836          { ac_try='test -s conftest.$ac_objext'
22837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838   (eval $ac_try) 2>&5
22839   ac_status=$?
22840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841   (exit $ac_status); }; }; then
22842   for ac_declaration in \
22843    '' \
22844    'extern "C" void std::exit (int) throw (); using std::exit;' \
22845    'extern "C" void std::exit (int); using std::exit;' \
22846    'extern "C" void exit (int) throw ();' \
22847    'extern "C" void exit (int);' \
22848    'void exit (int);'
22849 do
22850   cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856 $ac_declaration
22857 #include <stdlib.h>
22858 int
22859 main ()
22860 {
22861 exit (42);
22862   ;
22863   return 0;
22864 }
22865 _ACEOF
22866 rm -f conftest.$ac_objext
22867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22868   (eval $ac_compile) 2>conftest.er1
22869   ac_status=$?
22870   grep -v '^ *+' conftest.er1 >conftest.err
22871   rm -f conftest.er1
22872   cat conftest.err >&5
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); } &&
22875          { ac_try='test -z "$ac_c_werror_flag"
22876                          || test ! -s conftest.err'
22877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878   (eval $ac_try) 2>&5
22879   ac_status=$?
22880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881   (exit $ac_status); }; } &&
22882          { ac_try='test -s conftest.$ac_objext'
22883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884   (eval $ac_try) 2>&5
22885   ac_status=$?
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); }; }; then
22888   :
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893 continue
22894 fi
22895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22896   cat >conftest.$ac_ext <<_ACEOF
22897 /* confdefs.h.  */
22898 _ACEOF
22899 cat confdefs.h >>conftest.$ac_ext
22900 cat >>conftest.$ac_ext <<_ACEOF
22901 /* end confdefs.h.  */
22902 $ac_declaration
22903 int
22904 main ()
22905 {
22906 exit (42);
22907   ;
22908   return 0;
22909 }
22910 _ACEOF
22911 rm -f conftest.$ac_objext
22912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22913   (eval $ac_compile) 2>conftest.er1
22914   ac_status=$?
22915   grep -v '^ *+' conftest.er1 >conftest.err
22916   rm -f conftest.er1
22917   cat conftest.err >&5
22918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919   (exit $ac_status); } &&
22920          { ac_try='test -z "$ac_c_werror_flag"
22921                          || test ! -s conftest.err'
22922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22923   (eval $ac_try) 2>&5
22924   ac_status=$?
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); }; } &&
22927          { ac_try='test -s conftest.$ac_objext'
22928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929   (eval $ac_try) 2>&5
22930   ac_status=$?
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); }; }; then
22933   break
22934 else
22935   echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938 fi
22939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22940 done
22941 rm -f conftest*
22942 if test -n "$ac_declaration"; then
22943   echo '#ifdef __cplusplus' >>confdefs.h
22944   echo $ac_declaration      >>confdefs.h
22945   echo '#endif'             >>confdefs.h
22946 fi
22947
22948 else
22949   echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952 fi
22953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22954 ac_ext=c
22955 ac_cpp='$CPP $CPPFLAGS'
22956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22959
22960 depcc="$CC"   am_compiler_list=
22961
22962 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22963 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22964 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22965   echo $ECHO_N "(cached) $ECHO_C" >&6
22966 else
22967   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22968   # We make a subdir and do the tests there.  Otherwise we can end up
22969   # making bogus files that we don't know about and never remove.  For
22970   # instance it was reported that on HP-UX the gcc test will end up
22971   # making a dummy file named `D' -- because `-MD' means `put the output
22972   # in D'.
22973   mkdir conftest.dir
22974   # Copy depcomp to subdir because otherwise we won't find it if we're
22975   # using a relative directory.
22976   cp "$am_depcomp" conftest.dir
22977   cd conftest.dir
22978   # We will build objects and dependencies in a subdirectory because
22979   # it helps to detect inapplicable dependency modes.  For instance
22980   # both Tru64's cc and ICC support -MD to output dependencies as a
22981   # side effect of compilation, but ICC will put the dependencies in
22982   # the current directory while Tru64 will put them in the object
22983   # directory.
22984   mkdir sub
22985
22986   am_cv_CC_dependencies_compiler_type=none
22987   if test "$am_compiler_list" = ""; then
22988      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22989   fi
22990   for depmode in $am_compiler_list; do
22991     # Setup a source with many dependencies, because some compilers
22992     # like to wrap large dependency lists on column 80 (with \), and
22993     # we should not choose a depcomp mode which is confused by this.
22994     #
22995     # We need to recreate these files for each test, as the compiler may
22996     # overwrite some of them when testing with obscure command lines.
22997     # This happens at least with the AIX C compiler.
22998     : > sub/conftest.c
22999     for i in 1 2 3 4 5 6; do
23000       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23001       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23002       # Solaris 8's {/usr,}/bin/sh.
23003       touch sub/conftst$i.h
23004     done
23005     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23006
23007     case $depmode in
23008     nosideeffect)
23009       # after this tag, mechanisms are not by side-effect, so they'll
23010       # only be used when explicitly requested
23011       if test "x$enable_dependency_tracking" = xyes; then
23012         continue
23013       else
23014         break
23015       fi
23016       ;;
23017     none) break ;;
23018     esac
23019     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23020     # mode.  It turns out that the SunPro C++ compiler does not properly
23021     # handle `-M -o', and we need to detect this.
23022     if depmode=$depmode \
23023        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23024        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23025        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23026          >/dev/null 2>conftest.err &&
23027        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23028        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23029        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23030       # icc doesn't choke on unknown options, it will just issue warnings
23031       # or remarks (even with -Werror).  So we grep stderr for any message
23032       # that says an option was ignored or not supported.
23033       # When given -MP, icc 7.0 and 7.1 complain thusly:
23034       #   icc: Command line warning: ignoring option '-M'; no argument required
23035       # The diagnosis changed in icc 8.0:
23036       #   icc: Command line remark: option '-MP' not supported
23037       if (grep 'ignoring option' conftest.err ||
23038           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23039         am_cv_CC_dependencies_compiler_type=$depmode
23040         break
23041       fi
23042     fi
23043   done
23044
23045   cd ..
23046   rm -rf conftest.dir
23047 else
23048   am_cv_CC_dependencies_compiler_type=none
23049 fi
23050
23051 fi
23052 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
23053 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
23054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
23055
23056
23057
23058 if
23059   test "x$enable_dependency_tracking" != xno \
23060   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
23061   am__fastdepCC_TRUE=
23062   am__fastdepCC_FALSE='#'
23063 else
23064   am__fastdepCC_TRUE='#'
23065   am__fastdepCC_FALSE=
23066 fi
23067
23068
23069 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
23070         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
23071 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
23072    { (exit 1); exit 1; }; }
23073 fi
23074
23075 # test for make depend flag
23076 OL_MKDEP=
23077 OL_MKDEP_FLAGS=
23078 if test -z "${MKDEP}"; then
23079         OL_MKDEP="${CC-cc}"
23080         if test -z "${MKDEP_FLAGS}"; then
23081                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
23082 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
23083 if test "${ol_cv_mkdep+set}" = set; then
23084   echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23086
23087                         ol_cv_mkdep=no
23088                         for flag in "-M" "-xM"; do
23089                                 cat > conftest.c <<EOF
23090  noCode;
23091 EOF
23092                                 if { ac_try='$OL_MKDEP $flag conftest.c'
23093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094   (eval $ac_try) 2>&5
23095   ac_status=$?
23096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097   (exit $ac_status); }; } \
23098                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
23099                                 then
23100                                         if test ! -f conftest."${ac_object}" ; then
23101                                                 ol_cv_mkdep=$flag
23102                                                 OL_MKDEP_FLAGS="$flag"
23103                                                 break
23104                                         fi
23105                                 fi
23106                         done
23107                         rm -f conftest*
23108
23109 fi
23110 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
23111 echo "${ECHO_T}$ol_cv_mkdep" >&6
23112         else
23113                 cc_cv_mkdep=yes
23114                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23115         fi
23116 else
23117         cc_cv_mkdep=yes
23118         OL_MKDEP="${MKDEP}"
23119         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23120 fi
23121
23122
23123
23124 if test "${ol_cv_mkdep}" = no ; then
23125         # this will soon become an error
23126         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23127 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23128 fi
23129
23130 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23131 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23132 if test "${ac_cv_lib_s_afopen+set}" = set; then
23133   echo $ECHO_N "(cached) $ECHO_C" >&6
23134 else
23135   ac_check_lib_save_LIBS=$LIBS
23136 LIBS="-ls  $LIBS"
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h.  */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h.  */
23143
23144 /* Override any gcc2 internal prototype to avoid an error.  */
23145 #ifdef __cplusplus
23146 extern "C"
23147 #endif
23148 /* We use char because int might match the return type of a gcc2
23149    builtin and then its argument prototype would still apply.  */
23150 char afopen ();
23151 int
23152 main ()
23153 {
23154 afopen ();
23155   ;
23156   return 0;
23157 }
23158 _ACEOF
23159 rm -f conftest.$ac_objext conftest$ac_exeext
23160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23161   (eval $ac_link) 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } &&
23168          { ac_try='test -z "$ac_c_werror_flag"
23169                          || test ! -s conftest.err'
23170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171   (eval $ac_try) 2>&5
23172   ac_status=$?
23173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174   (exit $ac_status); }; } &&
23175          { ac_try='test -s conftest$ac_exeext'
23176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177   (eval $ac_try) 2>&5
23178   ac_status=$?
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); }; }; then
23181   ac_cv_lib_s_afopen=yes
23182 else
23183   echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23185
23186 ac_cv_lib_s_afopen=no
23187 fi
23188 rm -f conftest.err conftest.$ac_objext \
23189       conftest$ac_exeext conftest.$ac_ext
23190 LIBS=$ac_check_lib_save_LIBS
23191 fi
23192 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23193 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23194 if test $ac_cv_lib_s_afopen = yes; then
23195
23196         AUTH_LIBS=-ls
23197
23198 cat >>confdefs.h <<\_ACEOF
23199 #define HAVE_AIX_SECURITY 1
23200 _ACEOF
23201
23202
23203 fi
23204
23205
23206 case "$target" in
23207 *-ibm-openedition)
23208         ac_cv_func_getopt=no
23209
23210 cat >>confdefs.h <<\_ACEOF
23211 #define BOTH_STRINGS_H 1
23212 _ACEOF
23213
23214         ;;
23215 esac
23216
23217 ol_link_modules=no
23218 WITH_MODULES_ENABLED=no
23219 if test $ol_enable_modules != no ; then
23220
23221 for ac_header in ltdl.h
23222 do
23223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23225   echo "$as_me:$LINENO: checking for $ac_header" >&5
23226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23228   echo $ECHO_N "(cached) $ECHO_C" >&6
23229 fi
23230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23232 else
23233   # Is the header compilable?
23234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23236 cat >conftest.$ac_ext <<_ACEOF
23237 /* confdefs.h.  */
23238 _ACEOF
23239 cat confdefs.h >>conftest.$ac_ext
23240 cat >>conftest.$ac_ext <<_ACEOF
23241 /* end confdefs.h.  */
23242 $ac_includes_default
23243 #include <$ac_header>
23244 _ACEOF
23245 rm -f conftest.$ac_objext
23246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23247   (eval $ac_compile) 2>conftest.er1
23248   ac_status=$?
23249   grep -v '^ *+' conftest.er1 >conftest.err
23250   rm -f conftest.er1
23251   cat conftest.err >&5
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); } &&
23254          { ac_try='test -z "$ac_c_werror_flag"
23255                          || test ! -s conftest.err'
23256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257   (eval $ac_try) 2>&5
23258   ac_status=$?
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); }; } &&
23261          { ac_try='test -s conftest.$ac_objext'
23262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23263   (eval $ac_try) 2>&5
23264   ac_status=$?
23265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266   (exit $ac_status); }; }; then
23267   ac_header_compiler=yes
23268 else
23269   echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23271
23272 ac_header_compiler=no
23273 fi
23274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23276 echo "${ECHO_T}$ac_header_compiler" >&6
23277
23278 # Is the header present?
23279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23281 cat >conftest.$ac_ext <<_ACEOF
23282 /* confdefs.h.  */
23283 _ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h.  */
23287 #include <$ac_header>
23288 _ACEOF
23289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } >/dev/null; then
23297   if test -s conftest.err; then
23298     ac_cpp_err=$ac_c_preproc_warn_flag
23299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23300   else
23301     ac_cpp_err=
23302   fi
23303 else
23304   ac_cpp_err=yes
23305 fi
23306 if test -z "$ac_cpp_err"; then
23307   ac_header_preproc=yes
23308 else
23309   echo "$as_me: failed program was:" >&5
23310 sed 's/^/| /' conftest.$ac_ext >&5
23311
23312   ac_header_preproc=no
23313 fi
23314 rm -f conftest.err conftest.$ac_ext
23315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23316 echo "${ECHO_T}$ac_header_preproc" >&6
23317
23318 # So?  What about this header?
23319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23320   yes:no: )
23321     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23325     ac_header_preproc=yes
23326     ;;
23327   no:yes:* )
23328     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23330     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23331 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23332     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23334     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23335 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23338     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23340     (
23341       cat <<\_ASBOX
23342 ## ------------------------------------------ ##
23343 ## Report this to the AC_PACKAGE_NAME lists.  ##
23344 ## ------------------------------------------ ##
23345 _ASBOX
23346     ) |
23347       sed "s/^/$as_me: WARNING:     /" >&2
23348     ;;
23349 esac
23350 echo "$as_me:$LINENO: checking for $ac_header" >&5
23351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23353   echo $ECHO_N "(cached) $ECHO_C" >&6
23354 else
23355   eval "$as_ac_Header=\$ac_header_preproc"
23356 fi
23357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23359
23360 fi
23361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23362   cat >>confdefs.h <<_ACEOF
23363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23364 _ACEOF
23365
23366 fi
23367
23368 done
23369
23370
23371         if test $ac_cv_header_ltdl_h = no ; then
23372                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23373 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23374    { (exit 1); exit 1; }; }
23375         fi
23376
23377         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23378 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23379 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23380   echo $ECHO_N "(cached) $ECHO_C" >&6
23381 else
23382   ac_check_lib_save_LIBS=$LIBS
23383 LIBS="-lltdl  $LIBS"
23384 cat >conftest.$ac_ext <<_ACEOF
23385 /* confdefs.h.  */
23386 _ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h.  */
23390
23391 /* Override any gcc2 internal prototype to avoid an error.  */
23392 #ifdef __cplusplus
23393 extern "C"
23394 #endif
23395 /* We use char because int might match the return type of a gcc2
23396    builtin and then its argument prototype would still apply.  */
23397 char lt_dlinit ();
23398 int
23399 main ()
23400 {
23401 lt_dlinit ();
23402   ;
23403   return 0;
23404 }
23405 _ACEOF
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408   (eval $ac_link) 2>conftest.er1
23409   ac_status=$?
23410   grep -v '^ *+' conftest.er1 >conftest.err
23411   rm -f conftest.er1
23412   cat conftest.err >&5
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); } &&
23415          { ac_try='test -z "$ac_c_werror_flag"
23416                          || test ! -s conftest.err'
23417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418   (eval $ac_try) 2>&5
23419   ac_status=$?
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); }; } &&
23422          { ac_try='test -s conftest$ac_exeext'
23423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424   (eval $ac_try) 2>&5
23425   ac_status=$?
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); }; }; then
23428   ac_cv_lib_ltdl_lt_dlinit=yes
23429 else
23430   echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433 ac_cv_lib_ltdl_lt_dlinit=no
23434 fi
23435 rm -f conftest.err conftest.$ac_objext \
23436       conftest$ac_exeext conftest.$ac_ext
23437 LIBS=$ac_check_lib_save_LIBS
23438 fi
23439 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23440 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23441 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23442
23443                 MODULES_LIBS=-lltdl
23444
23445 cat >>confdefs.h <<\_ACEOF
23446 #define HAVE_LIBLTDL 1
23447 _ACEOF
23448
23449
23450 fi
23451
23452
23453         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23454                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23455 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23456    { (exit 1); exit 1; }; }
23457         fi
23458         ol_link_modules=yes
23459         WITH_MODULES_ENABLED=yes
23460
23461 else
23462         for i in $Backends; do
23463                 eval "ol_tmp=\$ol_enable_$i"
23464                 if test $ol_tmp = mod ; then
23465                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23466 echo "$as_me: WARNING: building static $i backend" >&2;}
23467                         eval "ol_enable_$i=yes"
23468                 fi
23469         done
23470         for i in $Overlays; do
23471                 eval "ol_tmp=\$ol_enable_$i"
23472                 if test $ol_tmp = mod ; then
23473                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23474 echo "$as_me: WARNING: building static $i overlay" >&2;}
23475                         eval "ol_enable_$i=yes"
23476                 fi
23477         done
23478 fi
23479
23480 # test for EBCDIC
23481 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23482 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23483 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23484   echo $ECHO_N "(cached) $ECHO_C" >&6
23485 else
23486
23487         cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h.  */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h.  */
23493
23494 #if !('M' == 0xd4)
23495 #include <__ASCII__/generate_error.h>
23496 #endif
23497
23498 _ACEOF
23499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23501   ac_status=$?
23502   grep -v '^ *+' conftest.er1 >conftest.err
23503   rm -f conftest.er1
23504   cat conftest.err >&5
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); } >/dev/null; then
23507   if test -s conftest.err; then
23508     ac_cpp_err=$ac_c_preproc_warn_flag
23509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23510   else
23511     ac_cpp_err=
23512   fi
23513 else
23514   ac_cpp_err=yes
23515 fi
23516 if test -z "$ac_cpp_err"; then
23517   ol_cv_cpp_ebcdic=yes
23518 else
23519   echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23521
23522   ol_cv_cpp_ebcdic=no
23523 fi
23524 rm -f conftest.err conftest.$ac_ext
23525 fi
23526 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23527 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23528 if test $ol_cv_cpp_ebcdic = yes ; then
23529
23530 cat >>confdefs.h <<\_ACEOF
23531 #define HAVE_EBCDIC 1
23532 _ACEOF
23533
23534 fi
23535
23536 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23537 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23538 if test "${ol_cv_header_stdc+set}" = set; then
23539   echo $ECHO_N "(cached) $ECHO_C" >&6
23540 else
23541   cat >conftest.$ac_ext <<_ACEOF
23542 /* confdefs.h.  */
23543 _ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h.  */
23547 #include <stdlib.h>
23548 #include <stdarg.h>
23549 #include <string.h>
23550 #include <float.h>
23551 _ACEOF
23552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23554   ac_status=$?
23555   grep -v '^ *+' conftest.er1 >conftest.err
23556   rm -f conftest.er1
23557   cat conftest.err >&5
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); } >/dev/null; then
23560   if test -s conftest.err; then
23561     ac_cpp_err=$ac_c_preproc_warn_flag
23562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23563   else
23564     ac_cpp_err=
23565   fi
23566 else
23567   ac_cpp_err=yes
23568 fi
23569 if test -z "$ac_cpp_err"; then
23570   ol_cv_header_stdc=yes
23571 else
23572   echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23574
23575   ol_cv_header_stdc=no
23576 fi
23577 rm -f conftest.err conftest.$ac_ext
23578
23579 if test $ol_cv_header_stdc = yes; then
23580   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
23588
23589 _ACEOF
23590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23591   $EGREP "memchr" >/dev/null 2>&1; then
23592   :
23593 else
23594   ol_cv_header_stdc=no
23595 fi
23596 rm -f conftest*
23597
23598 fi
23599
23600 if test $ol_cv_header_stdc = yes; then
23601   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23602 cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h.  */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h.  */
23608 #include <stdlib.h>
23609
23610 _ACEOF
23611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23612   $EGREP "free" >/dev/null 2>&1; then
23613   :
23614 else
23615   ol_cv_header_stdc=no
23616 fi
23617 rm -f conftest*
23618
23619 fi
23620
23621 if test $ol_cv_header_stdc = yes; then
23622   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23623 if test "$cross_compiling" = yes; then
23624   :
23625 else
23626   cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632 #include <ctype.h>
23633 #ifndef HAVE_EBCDIC
23634 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23635 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23636 #else
23637 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23638                 || ('j' <= (c) && (c) <= 'r') \
23639                 || ('s' <= (c) && (c) <= 'z'))
23640 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23641 #endif
23642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23643 int main () { int i; for (i = 0; i < 256; i++)
23644 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23645 exit (0); }
23646
23647 _ACEOF
23648 rm -f conftest$ac_exeext
23649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650   (eval $ac_link) 2>&5
23651   ac_status=$?
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23655   (eval $ac_try) 2>&5
23656   ac_status=$?
23657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658   (exit $ac_status); }; }; then
23659   :
23660 else
23661   echo "$as_me: program exited with status $ac_status" >&5
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665 ( exit $ac_status )
23666 ol_cv_header_stdc=no
23667 fi
23668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23669 fi
23670 fi
23671 fi
23672 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23673 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23674 if test $ol_cv_header_stdc = yes; then
23675   cat >>confdefs.h <<\_ACEOF
23676 #define STDC_HEADERS 1
23677 _ACEOF
23678
23679 fi
23680 ac_cv_header_stdc=disable
23681
23682
23683 if test $ol_cv_header_stdc != yes; then
23684         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23685 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23686 fi
23687
23688
23689
23690
23691
23692
23693 ac_header_dirent=no
23694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23695   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23696 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23697 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23699   echo $ECHO_N "(cached) $ECHO_C" >&6
23700 else
23701   cat >conftest.$ac_ext <<_ACEOF
23702 /* confdefs.h.  */
23703 _ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h.  */
23707 #include <sys/types.h>
23708 #include <$ac_hdr>
23709
23710 int
23711 main ()
23712 {
23713 if ((DIR *) 0)
23714 return 0;
23715   ;
23716   return 0;
23717 }
23718 _ACEOF
23719 rm -f conftest.$ac_objext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23721   (eval $ac_compile) 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } &&
23728          { ac_try='test -z "$ac_c_werror_flag"
23729                          || test ! -s conftest.err'
23730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731   (eval $ac_try) 2>&5
23732   ac_status=$?
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); }; } &&
23735          { ac_try='test -s conftest.$ac_objext'
23736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737   (eval $ac_try) 2>&5
23738   ac_status=$?
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); }; }; then
23741   eval "$as_ac_Header=yes"
23742 else
23743   echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 eval "$as_ac_Header=no"
23747 fi
23748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23749 fi
23750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23753   cat >>confdefs.h <<_ACEOF
23754 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23755 _ACEOF
23756
23757 ac_header_dirent=$ac_hdr; break
23758 fi
23759
23760 done
23761 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23762 if test $ac_header_dirent = dirent.h; then
23763   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23765 if test "${ac_cv_search_opendir+set}" = set; then
23766   echo $ECHO_N "(cached) $ECHO_C" >&6
23767 else
23768   ac_func_search_save_LIBS=$LIBS
23769 ac_cv_search_opendir=no
23770 cat >conftest.$ac_ext <<_ACEOF
23771 /* confdefs.h.  */
23772 _ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h.  */
23776
23777 /* Override any gcc2 internal prototype to avoid an error.  */
23778 #ifdef __cplusplus
23779 extern "C"
23780 #endif
23781 /* We use char because int might match the return type of a gcc2
23782    builtin and then its argument prototype would still apply.  */
23783 char opendir ();
23784 int
23785 main ()
23786 {
23787 opendir ();
23788   ;
23789   return 0;
23790 }
23791 _ACEOF
23792 rm -f conftest.$ac_objext conftest$ac_exeext
23793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23794   (eval $ac_link) 2>conftest.er1
23795   ac_status=$?
23796   grep -v '^ *+' conftest.er1 >conftest.err
23797   rm -f conftest.er1
23798   cat conftest.err >&5
23799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); } &&
23801          { ac_try='test -z "$ac_c_werror_flag"
23802                          || test ! -s conftest.err'
23803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23804   (eval $ac_try) 2>&5
23805   ac_status=$?
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); }; } &&
23808          { ac_try='test -s conftest$ac_exeext'
23809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810   (eval $ac_try) 2>&5
23811   ac_status=$?
23812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813   (exit $ac_status); }; }; then
23814   ac_cv_search_opendir="none required"
23815 else
23816   echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23818
23819 fi
23820 rm -f conftest.err conftest.$ac_objext \
23821       conftest$ac_exeext conftest.$ac_ext
23822 if test "$ac_cv_search_opendir" = no; then
23823   for ac_lib in dir; do
23824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23825     cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h.  */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h.  */
23831
23832 /* Override any gcc2 internal prototype to avoid an error.  */
23833 #ifdef __cplusplus
23834 extern "C"
23835 #endif
23836 /* We use char because int might match the return type of a gcc2
23837    builtin and then its argument prototype would still apply.  */
23838 char opendir ();
23839 int
23840 main ()
23841 {
23842 opendir ();
23843   ;
23844   return 0;
23845 }
23846 _ACEOF
23847 rm -f conftest.$ac_objext conftest$ac_exeext
23848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23849   (eval $ac_link) 2>conftest.er1
23850   ac_status=$?
23851   grep -v '^ *+' conftest.er1 >conftest.err
23852   rm -f conftest.er1
23853   cat conftest.err >&5
23854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855   (exit $ac_status); } &&
23856          { ac_try='test -z "$ac_c_werror_flag"
23857                          || test ! -s conftest.err'
23858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859   (eval $ac_try) 2>&5
23860   ac_status=$?
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); }; } &&
23863          { ac_try='test -s conftest$ac_exeext'
23864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865   (eval $ac_try) 2>&5
23866   ac_status=$?
23867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868   (exit $ac_status); }; }; then
23869   ac_cv_search_opendir="-l$ac_lib"
23870 break
23871 else
23872   echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 fi
23876 rm -f conftest.err conftest.$ac_objext \
23877       conftest$ac_exeext conftest.$ac_ext
23878   done
23879 fi
23880 LIBS=$ac_func_search_save_LIBS
23881 fi
23882 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23883 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23884 if test "$ac_cv_search_opendir" != no; then
23885   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23886
23887 fi
23888
23889 else
23890   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23891 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23892 if test "${ac_cv_search_opendir+set}" = set; then
23893   echo $ECHO_N "(cached) $ECHO_C" >&6
23894 else
23895   ac_func_search_save_LIBS=$LIBS
23896 ac_cv_search_opendir=no
23897 cat >conftest.$ac_ext <<_ACEOF
23898 /* confdefs.h.  */
23899 _ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h.  */
23903
23904 /* Override any gcc2 internal prototype to avoid an error.  */
23905 #ifdef __cplusplus
23906 extern "C"
23907 #endif
23908 /* We use char because int might match the return type of a gcc2
23909    builtin and then its argument prototype would still apply.  */
23910 char opendir ();
23911 int
23912 main ()
23913 {
23914 opendir ();
23915   ;
23916   return 0;
23917 }
23918 _ACEOF
23919 rm -f conftest.$ac_objext conftest$ac_exeext
23920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23921   (eval $ac_link) 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } &&
23928          { ac_try='test -z "$ac_c_werror_flag"
23929                          || test ! -s conftest.err'
23930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931   (eval $ac_try) 2>&5
23932   ac_status=$?
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); }; } &&
23935          { ac_try='test -s conftest$ac_exeext'
23936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937   (eval $ac_try) 2>&5
23938   ac_status=$?
23939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940   (exit $ac_status); }; }; then
23941   ac_cv_search_opendir="none required"
23942 else
23943   echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946 fi
23947 rm -f conftest.err conftest.$ac_objext \
23948       conftest$ac_exeext conftest.$ac_ext
23949 if test "$ac_cv_search_opendir" = no; then
23950   for ac_lib in x; do
23951     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23952     cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958
23959 /* Override any gcc2 internal prototype to avoid an error.  */
23960 #ifdef __cplusplus
23961 extern "C"
23962 #endif
23963 /* We use char because int might match the return type of a gcc2
23964    builtin and then its argument prototype would still apply.  */
23965 char opendir ();
23966 int
23967 main ()
23968 {
23969 opendir ();
23970   ;
23971   return 0;
23972 }
23973 _ACEOF
23974 rm -f conftest.$ac_objext conftest$ac_exeext
23975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23976   (eval $ac_link) 2>conftest.er1
23977   ac_status=$?
23978   grep -v '^ *+' conftest.er1 >conftest.err
23979   rm -f conftest.er1
23980   cat conftest.err >&5
23981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); } &&
23983          { ac_try='test -z "$ac_c_werror_flag"
23984                          || test ! -s conftest.err'
23985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986   (eval $ac_try) 2>&5
23987   ac_status=$?
23988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989   (exit $ac_status); }; } &&
23990          { ac_try='test -s conftest$ac_exeext'
23991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992   (eval $ac_try) 2>&5
23993   ac_status=$?
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); }; }; then
23996   ac_cv_search_opendir="-l$ac_lib"
23997 break
23998 else
23999   echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24001
24002 fi
24003 rm -f conftest.err conftest.$ac_objext \
24004       conftest$ac_exeext conftest.$ac_ext
24005   done
24006 fi
24007 LIBS=$ac_func_search_save_LIBS
24008 fi
24009 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24010 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24011 if test "$ac_cv_search_opendir" != no; then
24012   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24013
24014 fi
24015
24016 fi
24017
24018 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24019 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
24020 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24021   echo $ECHO_N "(cached) $ECHO_C" >&6
24022 else
24023   cat >conftest.$ac_ext <<_ACEOF
24024 /* confdefs.h.  */
24025 _ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h.  */
24029 #include <sys/types.h>
24030 #include <sys/wait.h>
24031 #ifndef WEXITSTATUS
24032 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
24033 #endif
24034 #ifndef WIFEXITED
24035 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24036 #endif
24037
24038 int
24039 main ()
24040 {
24041   int s;
24042   wait (&s);
24043   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24044   ;
24045   return 0;
24046 }
24047 _ACEOF
24048 rm -f conftest.$ac_objext
24049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24050   (eval $ac_compile) 2>conftest.er1
24051   ac_status=$?
24052   grep -v '^ *+' conftest.er1 >conftest.err
24053   rm -f conftest.er1
24054   cat conftest.err >&5
24055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056   (exit $ac_status); } &&
24057          { ac_try='test -z "$ac_c_werror_flag"
24058                          || test ! -s conftest.err'
24059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060   (eval $ac_try) 2>&5
24061   ac_status=$?
24062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063   (exit $ac_status); }; } &&
24064          { ac_try='test -s conftest.$ac_objext'
24065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066   (eval $ac_try) 2>&5
24067   ac_status=$?
24068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069   (exit $ac_status); }; }; then
24070   ac_cv_header_sys_wait_h=yes
24071 else
24072   echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24074
24075 ac_cv_header_sys_wait_h=no
24076 fi
24077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24078 fi
24079 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24080 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
24081 if test $ac_cv_header_sys_wait_h = yes; then
24082
24083 cat >>confdefs.h <<\_ACEOF
24084 #define HAVE_SYS_WAIT_H 1
24085 _ACEOF
24086
24087 fi
24088
24089 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
24090 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
24091 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
24092   echo $ECHO_N "(cached) $ECHO_C" >&6
24093 else
24094   cat >conftest.$ac_ext <<_ACEOF
24095 /* confdefs.h.  */
24096 _ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h.  */
24100 #include <sys/types.h>
24101 #include <termios.h>
24102 #ifdef TIOCGWINSZ
24103   yes
24104 #endif
24105
24106 _ACEOF
24107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24108   $EGREP "yes" >/dev/null 2>&1; then
24109   ac_cv_sys_tiocgwinsz_in_termios_h=yes
24110 else
24111   ac_cv_sys_tiocgwinsz_in_termios_h=no
24112 fi
24113 rm -f conftest*
24114
24115 fi
24116 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
24117 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24118
24119 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24120   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24121 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24122 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24123   echo $ECHO_N "(cached) $ECHO_C" >&6
24124 else
24125   cat >conftest.$ac_ext <<_ACEOF
24126 /* confdefs.h.  */
24127 _ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h.  */
24131 #include <sys/types.h>
24132 #include <sys/ioctl.h>
24133 #ifdef TIOCGWINSZ
24134   yes
24135 #endif
24136
24137 _ACEOF
24138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24139   $EGREP "yes" >/dev/null 2>&1; then
24140   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24141 else
24142   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24143 fi
24144 rm -f conftest*
24145
24146 fi
24147 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24148 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24149
24150   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24151
24152 cat >>confdefs.h <<\_ACEOF
24153 #define GWINSZ_IN_SYS_IOCTL 1
24154 _ACEOF
24155
24156   fi
24157 fi
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207 for ac_header in \
24208         arpa/inet.h             \
24209         arpa/nameser.h          \
24210         assert.h                \
24211         bits/types.h            \
24212         conio.h                 \
24213         crypt.h                 \
24214         direct.h                \
24215         errno.h                 \
24216         fcntl.h                 \
24217         filio.h                 \
24218         getopt.h                \
24219         grp.h                   \
24220         io.h                    \
24221         libutil.h               \
24222         limits.h                \
24223         locale.h                \
24224         netinet/tcp.h           \
24225         malloc.h                \
24226         memory.h                \
24227         psap.h                  \
24228         pwd.h                   \
24229         process.h               \
24230         sgtty.h                 \
24231         shadow.h                \
24232         stddef.h                \
24233         string.h                \
24234         strings.h               \
24235         sysexits.h              \
24236         sys/file.h              \
24237         sys/filio.h             \
24238         sys/errno.h             \
24239         sys/ioctl.h             \
24240         sys/param.h             \
24241         sys/resource.h          \
24242         sys/select.h            \
24243         sys/socket.h            \
24244         sys/stat.h              \
24245         sys/syslog.h            \
24246         sys/time.h              \
24247         sys/types.h             \
24248         sys/uio.h               \
24249         syslog.h                \
24250         termios.h               \
24251         unistd.h                \
24252         utime.h                 \
24253         winsock.h               \
24254         winsock2.h              \
24255
24256 do
24257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24259   echo "$as_me:$LINENO: checking for $ac_header" >&5
24260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24262   echo $ECHO_N "(cached) $ECHO_C" >&6
24263 fi
24264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24266 else
24267   # Is the header compilable?
24268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24270 cat >conftest.$ac_ext <<_ACEOF
24271 /* confdefs.h.  */
24272 _ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h.  */
24276 $ac_includes_default
24277 #include <$ac_header>
24278 _ACEOF
24279 rm -f conftest.$ac_objext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24281   (eval $ac_compile) 2>conftest.er1
24282   ac_status=$?
24283   grep -v '^ *+' conftest.er1 >conftest.err
24284   rm -f conftest.er1
24285   cat conftest.err >&5
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } &&
24288          { ac_try='test -z "$ac_c_werror_flag"
24289                          || test ! -s conftest.err'
24290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24291   (eval $ac_try) 2>&5
24292   ac_status=$?
24293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294   (exit $ac_status); }; } &&
24295          { ac_try='test -s conftest.$ac_objext'
24296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297   (eval $ac_try) 2>&5
24298   ac_status=$?
24299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300   (exit $ac_status); }; }; then
24301   ac_header_compiler=yes
24302 else
24303   echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24305
24306 ac_header_compiler=no
24307 fi
24308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24310 echo "${ECHO_T}$ac_header_compiler" >&6
24311
24312 # Is the header present?
24313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24315 cat >conftest.$ac_ext <<_ACEOF
24316 /* confdefs.h.  */
24317 _ACEOF
24318 cat confdefs.h >>conftest.$ac_ext
24319 cat >>conftest.$ac_ext <<_ACEOF
24320 /* end confdefs.h.  */
24321 #include <$ac_header>
24322 _ACEOF
24323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24325   ac_status=$?
24326   grep -v '^ *+' conftest.er1 >conftest.err
24327   rm -f conftest.er1
24328   cat conftest.err >&5
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); } >/dev/null; then
24331   if test -s conftest.err; then
24332     ac_cpp_err=$ac_c_preproc_warn_flag
24333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24334   else
24335     ac_cpp_err=
24336   fi
24337 else
24338   ac_cpp_err=yes
24339 fi
24340 if test -z "$ac_cpp_err"; then
24341   ac_header_preproc=yes
24342 else
24343   echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24345
24346   ac_header_preproc=no
24347 fi
24348 rm -f conftest.err conftest.$ac_ext
24349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24350 echo "${ECHO_T}$ac_header_preproc" >&6
24351
24352 # So?  What about this header?
24353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24354   yes:no: )
24355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24359     ac_header_preproc=yes
24360     ;;
24361   no:yes:* )
24362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24374     (
24375       cat <<\_ASBOX
24376 ## ------------------------------------------ ##
24377 ## Report this to the AC_PACKAGE_NAME lists.  ##
24378 ## ------------------------------------------ ##
24379 _ASBOX
24380     ) |
24381       sed "s/^/$as_me: WARNING:     /" >&2
24382     ;;
24383 esac
24384 echo "$as_me:$LINENO: checking for $ac_header" >&5
24385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24387   echo $ECHO_N "(cached) $ECHO_C" >&6
24388 else
24389   eval "$as_ac_Header=\$ac_header_preproc"
24390 fi
24391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24393
24394 fi
24395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24396   cat >>confdefs.h <<_ACEOF
24397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24398 _ACEOF
24399
24400 fi
24401
24402 done
24403
24404
24405
24406 for ac_header in resolv.h
24407 do
24408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24409 echo "$as_me:$LINENO: checking for $ac_header" >&5
24410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24412   echo $ECHO_N "(cached) $ECHO_C" >&6
24413 else
24414   cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h.  */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h.  */
24420 $ac_includes_default
24421 #include <netinet/in.h>
24422
24423
24424 #include <$ac_header>
24425 _ACEOF
24426 rm -f conftest.$ac_objext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24428   (eval $ac_compile) 2>conftest.er1
24429   ac_status=$?
24430   grep -v '^ *+' conftest.er1 >conftest.err
24431   rm -f conftest.er1
24432   cat conftest.err >&5
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); } &&
24435          { ac_try='test -z "$ac_c_werror_flag"
24436                          || test ! -s conftest.err'
24437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438   (eval $ac_try) 2>&5
24439   ac_status=$?
24440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441   (exit $ac_status); }; } &&
24442          { ac_try='test -s conftest.$ac_objext'
24443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444   (eval $ac_try) 2>&5
24445   ac_status=$?
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); }; }; then
24448   eval "$as_ac_Header=yes"
24449 else
24450   echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24452
24453 eval "$as_ac_Header=no"
24454 fi
24455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24456 fi
24457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24460   cat >>confdefs.h <<_ACEOF
24461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24462 _ACEOF
24463
24464 fi
24465
24466 done
24467
24468
24469
24470 for ac_header in sys/ucred.h
24471 do
24472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24473 echo "$as_me:$LINENO: checking for $ac_header" >&5
24474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24476   echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478   cat >conftest.$ac_ext <<_ACEOF
24479 /* confdefs.h.  */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h.  */
24484 $ac_includes_default
24485 #ifdef HAVE_SYS_PARAM_H
24486 #include <sys/param.h>
24487 #endif
24488
24489
24490 #include <$ac_header>
24491 _ACEOF
24492 rm -f conftest.$ac_objext
24493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24494   (eval $ac_compile) 2>conftest.er1
24495   ac_status=$?
24496   grep -v '^ *+' conftest.er1 >conftest.err
24497   rm -f conftest.er1
24498   cat conftest.err >&5
24499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500   (exit $ac_status); } &&
24501          { ac_try='test -z "$ac_c_werror_flag"
24502                          || test ! -s conftest.err'
24503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504   (eval $ac_try) 2>&5
24505   ac_status=$?
24506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507   (exit $ac_status); }; } &&
24508          { ac_try='test -s conftest.$ac_objext'
24509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24510   (eval $ac_try) 2>&5
24511   ac_status=$?
24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513   (exit $ac_status); }; }; then
24514   eval "$as_ac_Header=yes"
24515 else
24516   echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24518
24519 eval "$as_ac_Header=no"
24520 fi
24521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24522 fi
24523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24526   cat >>confdefs.h <<_ACEOF
24527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24528 _ACEOF
24529
24530 fi
24531
24532 done
24533
24534
24535
24536
24537
24538 for ac_func in sigaction sigset
24539 do
24540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24541 echo "$as_me:$LINENO: checking for $ac_func" >&5
24542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24543 if eval "test \"\${$as_ac_var+set}\" = set"; then
24544   echo $ECHO_N "(cached) $ECHO_C" >&6
24545 else
24546   cat >conftest.$ac_ext <<_ACEOF
24547 /* confdefs.h.  */
24548 _ACEOF
24549 cat confdefs.h >>conftest.$ac_ext
24550 cat >>conftest.$ac_ext <<_ACEOF
24551 /* end confdefs.h.  */
24552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24554 #define $ac_func innocuous_$ac_func
24555
24556 /* System header to define __stub macros and hopefully few prototypes,
24557     which can conflict with char $ac_func (); below.
24558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24559     <limits.h> exists even on freestanding compilers.  */
24560
24561 #ifdef __STDC__
24562 # include <limits.h>
24563 #else
24564 # include <assert.h>
24565 #endif
24566
24567 #undef $ac_func
24568
24569 /* Override any gcc2 internal prototype to avoid an error.  */
24570 #ifdef __cplusplus
24571 extern "C"
24572 {
24573 #endif
24574 /* We use char because int might match the return type of a gcc2
24575    builtin and then its argument prototype would still apply.  */
24576 char $ac_func ();
24577 /* The GNU C library defines this for functions which it implements
24578     to always fail with ENOSYS.  Some functions are actually named
24579     something starting with __ and the normal name is an alias.  */
24580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24581 choke me
24582 #else
24583 char (*f) () = $ac_func;
24584 #endif
24585 #ifdef __cplusplus
24586 }
24587 #endif
24588
24589 int
24590 main ()
24591 {
24592 return f != $ac_func;
24593   ;
24594   return 0;
24595 }
24596 _ACEOF
24597 rm -f conftest.$ac_objext conftest$ac_exeext
24598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24599   (eval $ac_link) 2>conftest.er1
24600   ac_status=$?
24601   grep -v '^ *+' conftest.er1 >conftest.err
24602   rm -f conftest.er1
24603   cat conftest.err >&5
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); } &&
24606          { ac_try='test -z "$ac_c_werror_flag"
24607                          || test ! -s conftest.err'
24608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609   (eval $ac_try) 2>&5
24610   ac_status=$?
24611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612   (exit $ac_status); }; } &&
24613          { ac_try='test -s conftest$ac_exeext'
24614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615   (eval $ac_try) 2>&5
24616   ac_status=$?
24617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618   (exit $ac_status); }; }; then
24619   eval "$as_ac_var=yes"
24620 else
24621   echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24623
24624 eval "$as_ac_var=no"
24625 fi
24626 rm -f conftest.err conftest.$ac_objext \
24627       conftest$ac_exeext conftest.$ac_ext
24628 fi
24629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24631 if test `eval echo '${'$as_ac_var'}'` = yes; then
24632   cat >>confdefs.h <<_ACEOF
24633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24634 _ACEOF
24635
24636 fi
24637 done
24638
24639
24640 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24641
24642 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24643 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24644 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24645   echo $ECHO_N "(cached) $ECHO_C" >&6
24646 else
24647   ac_check_lib_save_LIBS=$LIBS
24648 LIBS="-lV3  $LIBS"
24649 cat >conftest.$ac_ext <<_ACEOF
24650 /* confdefs.h.  */
24651 _ACEOF
24652 cat confdefs.h >>conftest.$ac_ext
24653 cat >>conftest.$ac_ext <<_ACEOF
24654 /* end confdefs.h.  */
24655
24656 /* Override any gcc2 internal prototype to avoid an error.  */
24657 #ifdef __cplusplus
24658 extern "C"
24659 #endif
24660 /* We use char because int might match the return type of a gcc2
24661    builtin and then its argument prototype would still apply.  */
24662 char sigset ();
24663 int
24664 main ()
24665 {
24666 sigset ();
24667   ;
24668   return 0;
24669 }
24670 _ACEOF
24671 rm -f conftest.$ac_objext conftest$ac_exeext
24672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24673   (eval $ac_link) 2>conftest.er1
24674   ac_status=$?
24675   grep -v '^ *+' conftest.er1 >conftest.err
24676   rm -f conftest.er1
24677   cat conftest.err >&5
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); } &&
24680          { ac_try='test -z "$ac_c_werror_flag"
24681                          || test ! -s conftest.err'
24682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683   (eval $ac_try) 2>&5
24684   ac_status=$?
24685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686   (exit $ac_status); }; } &&
24687          { ac_try='test -s conftest$ac_exeext'
24688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689   (eval $ac_try) 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); }; }; then
24693   ac_cv_lib_V3_sigset=yes
24694 else
24695   echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24697
24698 ac_cv_lib_V3_sigset=no
24699 fi
24700 rm -f conftest.err conftest.$ac_objext \
24701       conftest$ac_exeext conftest.$ac_ext
24702 LIBS=$ac_check_lib_save_LIBS
24703 fi
24704 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24705 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24706 if test $ac_cv_lib_V3_sigset = yes; then
24707   cat >>confdefs.h <<_ACEOF
24708 #define HAVE_LIBV3 1
24709 _ACEOF
24710
24711   LIBS="-lV3 $LIBS"
24712
24713 fi
24714
24715 fi
24716
24717 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24718 echo "$as_me:$LINENO: checking for winsock" >&5
24719 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24720 if test "${ol_cv_winsock+set}" = set; then
24721   echo $ECHO_N "(cached) $ECHO_C" >&6
24722 else
24723   save_LIBS="$LIBS"
24724 for curlib in ws2_32 wsock32; do
24725         LIBS="$LIBS -l$curlib"
24726         cat >conftest.$ac_ext <<_ACEOF
24727 /* confdefs.h.  */
24728 _ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h.  */
24732 #include <winsock.h>
24733
24734 int
24735 main ()
24736 {
24737
24738                         socket(0,0,0);
24739                         select(0,NULL,NULL,NULL,NULL);
24740                         closesocket(0);
24741                         gethostname(NULL,0);
24742
24743   ;
24744   return 0;
24745 }
24746 _ACEOF
24747 rm -f conftest.$ac_objext conftest$ac_exeext
24748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24749   (eval $ac_link) 2>conftest.er1
24750   ac_status=$?
24751   grep -v '^ *+' conftest.er1 >conftest.err
24752   rm -f conftest.er1
24753   cat conftest.err >&5
24754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); } &&
24756          { ac_try='test -z "$ac_c_werror_flag"
24757                          || test ! -s conftest.err'
24758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759   (eval $ac_try) 2>&5
24760   ac_status=$?
24761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762   (exit $ac_status); }; } &&
24763          { ac_try='test -s conftest$ac_exeext'
24764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765   (eval $ac_try) 2>&5
24766   ac_status=$?
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); }; }; then
24769   ol_cv_winsock=yes
24770 else
24771   echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24773
24774 ol_cv_winsock=no
24775 fi
24776 rm -f conftest.err conftest.$ac_objext \
24777       conftest$ac_exeext conftest.$ac_ext
24778
24779         if test $ol_cv_winsock = yes; then
24780
24781 cat >>confdefs.h <<\_ACEOF
24782 #define HAVE_WINSOCK 1
24783 _ACEOF
24784
24785                 ac_cv_func_socket=yes
24786                 ac_cv_func_select=yes
24787                 ac_cv_func_closesocket=yes
24788                 ac_cv_func_gethostname=yes
24789                 if test $curlib = ws2_32; then
24790                         ol_cv_winsock=winsock2
24791
24792 cat >>confdefs.h <<\_ACEOF
24793 #define HAVE_WINSOCK2 1
24794 _ACEOF
24795
24796                 fi
24797                 break
24798         fi
24799         LIBS="$save_LIBS"
24800 done
24801 fi
24802 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24803 echo "${ECHO_T}$ol_cv_winsock" >&6
24804 fi
24805
24806
24807 echo "$as_me:$LINENO: checking for socket" >&5
24808 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24809 if test "${ac_cv_func_socket+set}" = set; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h.  */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h.  */
24818 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24820 #define socket innocuous_socket
24821
24822 /* System header to define __stub macros and hopefully few prototypes,
24823     which can conflict with char socket (); below.
24824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24825     <limits.h> exists even on freestanding compilers.  */
24826
24827 #ifdef __STDC__
24828 # include <limits.h>
24829 #else
24830 # include <assert.h>
24831 #endif
24832
24833 #undef socket
24834
24835 /* Override any gcc2 internal prototype to avoid an error.  */
24836 #ifdef __cplusplus
24837 extern "C"
24838 {
24839 #endif
24840 /* We use char because int might match the return type of a gcc2
24841    builtin and then its argument prototype would still apply.  */
24842 char socket ();
24843 /* The GNU C library defines this for functions which it implements
24844     to always fail with ENOSYS.  Some functions are actually named
24845     something starting with __ and the normal name is an alias.  */
24846 #if defined (__stub_socket) || defined (__stub___socket)
24847 choke me
24848 #else
24849 char (*f) () = socket;
24850 #endif
24851 #ifdef __cplusplus
24852 }
24853 #endif
24854
24855 int
24856 main ()
24857 {
24858 return f != socket;
24859   ;
24860   return 0;
24861 }
24862 _ACEOF
24863 rm -f conftest.$ac_objext conftest$ac_exeext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24865   (eval $ac_link) 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } &&
24872          { ac_try='test -z "$ac_c_werror_flag"
24873                          || test ! -s conftest.err'
24874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875   (eval $ac_try) 2>&5
24876   ac_status=$?
24877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); }; } &&
24879          { ac_try='test -s conftest$ac_exeext'
24880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881   (eval $ac_try) 2>&5
24882   ac_status=$?
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); }; }; then
24885   ac_cv_func_socket=yes
24886 else
24887   echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24889
24890 ac_cv_func_socket=no
24891 fi
24892 rm -f conftest.err conftest.$ac_objext \
24893       conftest$ac_exeext conftest.$ac_ext
24894 fi
24895 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24896 echo "${ECHO_T}$ac_cv_func_socket" >&6
24897 if test $ac_cv_func_socket = yes; then
24898   :
24899 else
24900
24901
24902 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24903 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24904 if test "${ac_cv_lib_socket_main+set}" = set; then
24905   echo $ECHO_N "(cached) $ECHO_C" >&6
24906 else
24907   ac_check_lib_save_LIBS=$LIBS
24908 LIBS="-lsocket  $LIBS"
24909 cat >conftest.$ac_ext <<_ACEOF
24910 /* confdefs.h.  */
24911 _ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h.  */
24915
24916
24917 int
24918 main ()
24919 {
24920 main ();
24921   ;
24922   return 0;
24923 }
24924 _ACEOF
24925 rm -f conftest.$ac_objext conftest$ac_exeext
24926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24927   (eval $ac_link) 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } &&
24934          { ac_try='test -z "$ac_c_werror_flag"
24935                          || test ! -s conftest.err'
24936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937   (eval $ac_try) 2>&5
24938   ac_status=$?
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); }; } &&
24941          { ac_try='test -s conftest$ac_exeext'
24942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943   (eval $ac_try) 2>&5
24944   ac_status=$?
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); }; }; then
24947   ac_cv_lib_socket_main=yes
24948 else
24949   echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24951
24952 ac_cv_lib_socket_main=no
24953 fi
24954 rm -f conftest.err conftest.$ac_objext \
24955       conftest$ac_exeext conftest.$ac_ext
24956 LIBS=$ac_check_lib_save_LIBS
24957 fi
24958 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24959 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24960 if test $ac_cv_lib_socket_main = yes; then
24961   cat >>confdefs.h <<_ACEOF
24962 #define HAVE_LIBSOCKET 1
24963 _ACEOF
24964
24965   LIBS="-lsocket $LIBS"
24966
24967 fi
24968
24969
24970 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24971 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24972 if test "${ac_cv_lib_net_main+set}" = set; then
24973   echo $ECHO_N "(cached) $ECHO_C" >&6
24974 else
24975   ac_check_lib_save_LIBS=$LIBS
24976 LIBS="-lnet  $LIBS"
24977 cat >conftest.$ac_ext <<_ACEOF
24978 /* confdefs.h.  */
24979 _ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h.  */
24983
24984
24985 int
24986 main ()
24987 {
24988 main ();
24989   ;
24990   return 0;
24991 }
24992 _ACEOF
24993 rm -f conftest.$ac_objext conftest$ac_exeext
24994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24995   (eval $ac_link) 2>conftest.er1
24996   ac_status=$?
24997   grep -v '^ *+' conftest.er1 >conftest.err
24998   rm -f conftest.er1
24999   cat conftest.err >&5
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); } &&
25002          { ac_try='test -z "$ac_c_werror_flag"
25003                          || test ! -s conftest.err'
25004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005   (eval $ac_try) 2>&5
25006   ac_status=$?
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); }; } &&
25009          { ac_try='test -s conftest$ac_exeext'
25010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011   (eval $ac_try) 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); }; }; then
25015   ac_cv_lib_net_main=yes
25016 else
25017   echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25019
25020 ac_cv_lib_net_main=no
25021 fi
25022 rm -f conftest.err conftest.$ac_objext \
25023       conftest$ac_exeext conftest.$ac_ext
25024 LIBS=$ac_check_lib_save_LIBS
25025 fi
25026 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
25027 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
25028 if test $ac_cv_lib_net_main = yes; then
25029   cat >>confdefs.h <<_ACEOF
25030 #define HAVE_LIBNET 1
25031 _ACEOF
25032
25033   LIBS="-lnet $LIBS"
25034
25035 fi
25036
25037
25038 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
25039 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
25040 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
25041   echo $ECHO_N "(cached) $ECHO_C" >&6
25042 else
25043   ac_check_lib_save_LIBS=$LIBS
25044 LIBS="-lnsl_s  $LIBS"
25045 cat >conftest.$ac_ext <<_ACEOF
25046 /* confdefs.h.  */
25047 _ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h.  */
25051
25052
25053 int
25054 main ()
25055 {
25056 main ();
25057   ;
25058   return 0;
25059 }
25060 _ACEOF
25061 rm -f conftest.$ac_objext conftest$ac_exeext
25062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25063   (eval $ac_link) 2>conftest.er1
25064   ac_status=$?
25065   grep -v '^ *+' conftest.er1 >conftest.err
25066   rm -f conftest.er1
25067   cat conftest.err >&5
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); } &&
25070          { ac_try='test -z "$ac_c_werror_flag"
25071                          || test ! -s conftest.err'
25072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073   (eval $ac_try) 2>&5
25074   ac_status=$?
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); }; } &&
25077          { ac_try='test -s conftest$ac_exeext'
25078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25079   (eval $ac_try) 2>&5
25080   ac_status=$?
25081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082   (exit $ac_status); }; }; then
25083   ac_cv_lib_nsl_s_main=yes
25084 else
25085   echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25087
25088 ac_cv_lib_nsl_s_main=no
25089 fi
25090 rm -f conftest.err conftest.$ac_objext \
25091       conftest$ac_exeext conftest.$ac_ext
25092 LIBS=$ac_check_lib_save_LIBS
25093 fi
25094 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
25095 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
25096 if test $ac_cv_lib_nsl_s_main = yes; then
25097   cat >>confdefs.h <<_ACEOF
25098 #define HAVE_LIBNSL_S 1
25099 _ACEOF
25100
25101   LIBS="-lnsl_s $LIBS"
25102
25103 fi
25104
25105
25106 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
25107 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
25108 if test "${ac_cv_lib_nsl_main+set}" = set; then
25109   echo $ECHO_N "(cached) $ECHO_C" >&6
25110 else
25111   ac_check_lib_save_LIBS=$LIBS
25112 LIBS="-lnsl  $LIBS"
25113 cat >conftest.$ac_ext <<_ACEOF
25114 /* confdefs.h.  */
25115 _ACEOF
25116 cat confdefs.h >>conftest.$ac_ext
25117 cat >>conftest.$ac_ext <<_ACEOF
25118 /* end confdefs.h.  */
25119
25120
25121 int
25122 main ()
25123 {
25124 main ();
25125   ;
25126   return 0;
25127 }
25128 _ACEOF
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25131   (eval $ac_link) 2>conftest.er1
25132   ac_status=$?
25133   grep -v '^ *+' conftest.er1 >conftest.err
25134   rm -f conftest.er1
25135   cat conftest.err >&5
25136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137   (exit $ac_status); } &&
25138          { ac_try='test -z "$ac_c_werror_flag"
25139                          || test ! -s conftest.err'
25140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141   (eval $ac_try) 2>&5
25142   ac_status=$?
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); }; } &&
25145          { ac_try='test -s conftest$ac_exeext'
25146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147   (eval $ac_try) 2>&5
25148   ac_status=$?
25149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150   (exit $ac_status); }; }; then
25151   ac_cv_lib_nsl_main=yes
25152 else
25153   echo "$as_me: failed program was:" >&5
25154 sed 's/^/| /' conftest.$ac_ext >&5
25155
25156 ac_cv_lib_nsl_main=no
25157 fi
25158 rm -f conftest.err conftest.$ac_objext \
25159       conftest$ac_exeext conftest.$ac_ext
25160 LIBS=$ac_check_lib_save_LIBS
25161 fi
25162 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25163 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25164 if test $ac_cv_lib_nsl_main = yes; then
25165   cat >>confdefs.h <<_ACEOF
25166 #define HAVE_LIBNSL 1
25167 _ACEOF
25168
25169   LIBS="-lnsl $LIBS"
25170
25171 fi
25172
25173
25174 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25175 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25176 if test "${ac_cv_lib_inet_socket+set}" = set; then
25177   echo $ECHO_N "(cached) $ECHO_C" >&6
25178 else
25179   ac_check_lib_save_LIBS=$LIBS
25180 LIBS="-linet  $LIBS"
25181 cat >conftest.$ac_ext <<_ACEOF
25182 /* confdefs.h.  */
25183 _ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h.  */
25187
25188 /* Override any gcc2 internal prototype to avoid an error.  */
25189 #ifdef __cplusplus
25190 extern "C"
25191 #endif
25192 /* We use char because int might match the return type of a gcc2
25193    builtin and then its argument prototype would still apply.  */
25194 char socket ();
25195 int
25196 main ()
25197 {
25198 socket ();
25199   ;
25200   return 0;
25201 }
25202 _ACEOF
25203 rm -f conftest.$ac_objext conftest$ac_exeext
25204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25205   (eval $ac_link) 2>conftest.er1
25206   ac_status=$?
25207   grep -v '^ *+' conftest.er1 >conftest.err
25208   rm -f conftest.er1
25209   cat conftest.err >&5
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); } &&
25212          { ac_try='test -z "$ac_c_werror_flag"
25213                          || test ! -s conftest.err'
25214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215   (eval $ac_try) 2>&5
25216   ac_status=$?
25217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218   (exit $ac_status); }; } &&
25219          { ac_try='test -s conftest$ac_exeext'
25220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25221   (eval $ac_try) 2>&5
25222   ac_status=$?
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); }; }; then
25225   ac_cv_lib_inet_socket=yes
25226 else
25227   echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25229
25230 ac_cv_lib_inet_socket=no
25231 fi
25232 rm -f conftest.err conftest.$ac_objext \
25233       conftest$ac_exeext conftest.$ac_ext
25234 LIBS=$ac_check_lib_save_LIBS
25235 fi
25236 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25237 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25238 if test $ac_cv_lib_inet_socket = yes; then
25239   cat >>confdefs.h <<_ACEOF
25240 #define HAVE_LIBINET 1
25241 _ACEOF
25242
25243   LIBS="-linet $LIBS"
25244
25245 fi
25246
25247
25248 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25249 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25250 if test "${ac_cv_lib_gen_main+set}" = set; then
25251   echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253   ac_check_lib_save_LIBS=$LIBS
25254 LIBS="-lgen  $LIBS"
25255 cat >conftest.$ac_ext <<_ACEOF
25256 /* confdefs.h.  */
25257 _ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h.  */
25261
25262
25263 int
25264 main ()
25265 {
25266 main ();
25267   ;
25268   return 0;
25269 }
25270 _ACEOF
25271 rm -f conftest.$ac_objext conftest$ac_exeext
25272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25273   (eval $ac_link) 2>conftest.er1
25274   ac_status=$?
25275   grep -v '^ *+' conftest.er1 >conftest.err
25276   rm -f conftest.er1
25277   cat conftest.err >&5
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); } &&
25280          { ac_try='test -z "$ac_c_werror_flag"
25281                          || test ! -s conftest.err'
25282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283   (eval $ac_try) 2>&5
25284   ac_status=$?
25285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286   (exit $ac_status); }; } &&
25287          { ac_try='test -s conftest$ac_exeext'
25288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289   (eval $ac_try) 2>&5
25290   ac_status=$?
25291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); }; }; then
25293   ac_cv_lib_gen_main=yes
25294 else
25295   echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25297
25298 ac_cv_lib_gen_main=no
25299 fi
25300 rm -f conftest.err conftest.$ac_objext \
25301       conftest$ac_exeext conftest.$ac_ext
25302 LIBS=$ac_check_lib_save_LIBS
25303 fi
25304 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25305 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25306 if test $ac_cv_lib_gen_main = yes; then
25307   cat >>confdefs.h <<_ACEOF
25308 #define HAVE_LIBGEN 1
25309 _ACEOF
25310
25311   LIBS="-lgen $LIBS"
25312
25313 fi
25314
25315
25316 fi
25317
25318
25319 echo "$as_me:$LINENO: checking for select" >&5
25320 echo $ECHO_N "checking for select... $ECHO_C" >&6
25321 if test "${ac_cv_func_select+set}" = set; then
25322   echo $ECHO_N "(cached) $ECHO_C" >&6
25323 else
25324   cat >conftest.$ac_ext <<_ACEOF
25325 /* confdefs.h.  */
25326 _ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h.  */
25330 /* Define select to an innocuous variant, in case <limits.h> declares select.
25331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25332 #define select innocuous_select
25333
25334 /* System header to define __stub macros and hopefully few prototypes,
25335     which can conflict with char select (); below.
25336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25337     <limits.h> exists even on freestanding compilers.  */
25338
25339 #ifdef __STDC__
25340 # include <limits.h>
25341 #else
25342 # include <assert.h>
25343 #endif
25344
25345 #undef select
25346
25347 /* Override any gcc2 internal prototype to avoid an error.  */
25348 #ifdef __cplusplus
25349 extern "C"
25350 {
25351 #endif
25352 /* We use char because int might match the return type of a gcc2
25353    builtin and then its argument prototype would still apply.  */
25354 char select ();
25355 /* The GNU C library defines this for functions which it implements
25356     to always fail with ENOSYS.  Some functions are actually named
25357     something starting with __ and the normal name is an alias.  */
25358 #if defined (__stub_select) || defined (__stub___select)
25359 choke me
25360 #else
25361 char (*f) () = select;
25362 #endif
25363 #ifdef __cplusplus
25364 }
25365 #endif
25366
25367 int
25368 main ()
25369 {
25370 return f != select;
25371   ;
25372   return 0;
25373 }
25374 _ACEOF
25375 rm -f conftest.$ac_objext conftest$ac_exeext
25376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25377   (eval $ac_link) 2>conftest.er1
25378   ac_status=$?
25379   grep -v '^ *+' conftest.er1 >conftest.err
25380   rm -f conftest.er1
25381   cat conftest.err >&5
25382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); } &&
25384          { ac_try='test -z "$ac_c_werror_flag"
25385                          || test ! -s conftest.err'
25386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387   (eval $ac_try) 2>&5
25388   ac_status=$?
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); }; } &&
25391          { ac_try='test -s conftest$ac_exeext'
25392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393   (eval $ac_try) 2>&5
25394   ac_status=$?
25395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396   (exit $ac_status); }; }; then
25397   ac_cv_func_select=yes
25398 else
25399   echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25401
25402 ac_cv_func_select=no
25403 fi
25404 rm -f conftest.err conftest.$ac_objext \
25405       conftest$ac_exeext conftest.$ac_ext
25406 fi
25407 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25408 echo "${ECHO_T}$ac_cv_func_select" >&6
25409 if test $ac_cv_func_select = yes; then
25410   :
25411 else
25412   { { echo "$as_me:$LINENO: error: select() required." >&5
25413 echo "$as_me: error: select() required." >&2;}
25414    { (exit 1); exit 1; }; }
25415 fi
25416
25417
25418 if test "${ac_cv_header_winsock_h}" != yes; then
25419
25420
25421 for ac_header in sys/select.h sys/socket.h
25422 do
25423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25425   echo "$as_me:$LINENO: checking for $ac_header" >&5
25426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25428   echo $ECHO_N "(cached) $ECHO_C" >&6
25429 fi
25430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25432 else
25433   # Is the header compilable?
25434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25436 cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h.  */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h.  */
25442 $ac_includes_default
25443 #include <$ac_header>
25444 _ACEOF
25445 rm -f conftest.$ac_objext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25447   (eval $ac_compile) 2>conftest.er1
25448   ac_status=$?
25449   grep -v '^ *+' conftest.er1 >conftest.err
25450   rm -f conftest.er1
25451   cat conftest.err >&5
25452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); } &&
25454          { ac_try='test -z "$ac_c_werror_flag"
25455                          || test ! -s conftest.err'
25456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457   (eval $ac_try) 2>&5
25458   ac_status=$?
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); }; } &&
25461          { ac_try='test -s conftest.$ac_objext'
25462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463   (eval $ac_try) 2>&5
25464   ac_status=$?
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); }; }; then
25467   ac_header_compiler=yes
25468 else
25469   echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472 ac_header_compiler=no
25473 fi
25474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25476 echo "${ECHO_T}$ac_header_compiler" >&6
25477
25478 # Is the header present?
25479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25481 cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h.  */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h.  */
25487 #include <$ac_header>
25488 _ACEOF
25489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25491   ac_status=$?
25492   grep -v '^ *+' conftest.er1 >conftest.err
25493   rm -f conftest.er1
25494   cat conftest.err >&5
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); } >/dev/null; then
25497   if test -s conftest.err; then
25498     ac_cpp_err=$ac_c_preproc_warn_flag
25499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25500   else
25501     ac_cpp_err=
25502   fi
25503 else
25504   ac_cpp_err=yes
25505 fi
25506 if test -z "$ac_cpp_err"; then
25507   ac_header_preproc=yes
25508 else
25509   echo "$as_me: failed program was:" >&5
25510 sed 's/^/| /' conftest.$ac_ext >&5
25511
25512   ac_header_preproc=no
25513 fi
25514 rm -f conftest.err conftest.$ac_ext
25515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25516 echo "${ECHO_T}$ac_header_preproc" >&6
25517
25518 # So?  What about this header?
25519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25520   yes:no: )
25521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25525     ac_header_preproc=yes
25526     ;;
25527   no:yes:* )
25528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25530     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25531 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25532     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25534     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25535 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25538     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25540     (
25541       cat <<\_ASBOX
25542 ## ------------------------------------------ ##
25543 ## Report this to the AC_PACKAGE_NAME lists.  ##
25544 ## ------------------------------------------ ##
25545 _ASBOX
25546     ) |
25547       sed "s/^/$as_me: WARNING:     /" >&2
25548     ;;
25549 esac
25550 echo "$as_me:$LINENO: checking for $ac_header" >&5
25551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25553   echo $ECHO_N "(cached) $ECHO_C" >&6
25554 else
25555   eval "$as_ac_Header=\$ac_header_preproc"
25556 fi
25557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25559
25560 fi
25561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25562   cat >>confdefs.h <<_ACEOF
25563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25564 _ACEOF
25565
25566 fi
25567
25568 done
25569
25570 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25571 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25572 if test "${ac_cv_func_select_args+set}" = set; then
25573   echo $ECHO_N "(cached) $ECHO_C" >&6
25574 else
25575   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25576  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25577   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25578    cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h.  */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h.  */
25584 $ac_includes_default
25585 #if HAVE_SYS_SELECT_H
25586 # include <sys/select.h>
25587 #endif
25588 #if HAVE_SYS_SOCKET_H
25589 # include <sys/socket.h>
25590 #endif
25591
25592 int
25593 main ()
25594 {
25595 extern int select ($ac_arg1,
25596                                             $ac_arg234, $ac_arg234, $ac_arg234,
25597                                             $ac_arg5);
25598   ;
25599   return 0;
25600 }
25601 _ACEOF
25602 rm -f conftest.$ac_objext
25603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25604   (eval $ac_compile) 2>conftest.er1
25605   ac_status=$?
25606   grep -v '^ *+' conftest.er1 >conftest.err
25607   rm -f conftest.er1
25608   cat conftest.err >&5
25609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610   (exit $ac_status); } &&
25611          { ac_try='test -z "$ac_c_werror_flag"
25612                          || test ! -s conftest.err'
25613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614   (eval $ac_try) 2>&5
25615   ac_status=$?
25616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); }; } &&
25618          { ac_try='test -s conftest.$ac_objext'
25619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620   (eval $ac_try) 2>&5
25621   ac_status=$?
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); }; }; then
25624   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25625 else
25626   echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25628
25629 fi
25630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25631   done
25632  done
25633 done
25634 # Provide a safe default value.
25635 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25636
25637 fi
25638 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25639 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25640 ac_save_IFS=$IFS; IFS=','
25641 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25642 IFS=$ac_save_IFS
25643 shift
25644
25645 cat >>confdefs.h <<_ACEOF
25646 #define SELECT_TYPE_ARG1 $1
25647 _ACEOF
25648
25649
25650 cat >>confdefs.h <<_ACEOF
25651 #define SELECT_TYPE_ARG234 ($2)
25652 _ACEOF
25653
25654
25655 cat >>confdefs.h <<_ACEOF
25656 #define SELECT_TYPE_ARG5 ($3)
25657 _ACEOF
25658
25659 rm -f conftest*
25660
25661 fi
25662
25663
25664
25665 for ac_func in poll
25666 do
25667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25668 echo "$as_me:$LINENO: checking for $ac_func" >&5
25669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25670 if eval "test \"\${$as_ac_var+set}\" = set"; then
25671   echo $ECHO_N "(cached) $ECHO_C" >&6
25672 else
25673   cat >conftest.$ac_ext <<_ACEOF
25674 /* confdefs.h.  */
25675 _ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h.  */
25679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25681 #define $ac_func innocuous_$ac_func
25682
25683 /* System header to define __stub macros and hopefully few prototypes,
25684     which can conflict with char $ac_func (); below.
25685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25686     <limits.h> exists even on freestanding compilers.  */
25687
25688 #ifdef __STDC__
25689 # include <limits.h>
25690 #else
25691 # include <assert.h>
25692 #endif
25693
25694 #undef $ac_func
25695
25696 /* Override any gcc2 internal prototype to avoid an error.  */
25697 #ifdef __cplusplus
25698 extern "C"
25699 {
25700 #endif
25701 /* We use char because int might match the return type of a gcc2
25702    builtin and then its argument prototype would still apply.  */
25703 char $ac_func ();
25704 /* The GNU C library defines this for functions which it implements
25705     to always fail with ENOSYS.  Some functions are actually named
25706     something starting with __ and the normal name is an alias.  */
25707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25708 choke me
25709 #else
25710 char (*f) () = $ac_func;
25711 #endif
25712 #ifdef __cplusplus
25713 }
25714 #endif
25715
25716 int
25717 main ()
25718 {
25719 return f != $ac_func;
25720   ;
25721   return 0;
25722 }
25723 _ACEOF
25724 rm -f conftest.$ac_objext conftest$ac_exeext
25725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25726   (eval $ac_link) 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } &&
25733          { ac_try='test -z "$ac_c_werror_flag"
25734                          || test ! -s conftest.err'
25735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736   (eval $ac_try) 2>&5
25737   ac_status=$?
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); }; } &&
25740          { ac_try='test -s conftest$ac_exeext'
25741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742   (eval $ac_try) 2>&5
25743   ac_status=$?
25744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745   (exit $ac_status); }; }; then
25746   eval "$as_ac_var=yes"
25747 else
25748   echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751 eval "$as_ac_var=no"
25752 fi
25753 rm -f conftest.err conftest.$ac_objext \
25754       conftest$ac_exeext conftest.$ac_ext
25755 fi
25756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25758 if test `eval echo '${'$as_ac_var'}'` = yes; then
25759   cat >>confdefs.h <<_ACEOF
25760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25761 _ACEOF
25762
25763 fi
25764 done
25765
25766
25767 for ac_header in poll.h
25768 do
25769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25771   echo "$as_me:$LINENO: checking for $ac_header" >&5
25772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25774   echo $ECHO_N "(cached) $ECHO_C" >&6
25775 fi
25776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25778 else
25779   # Is the header compilable?
25780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25782 cat >conftest.$ac_ext <<_ACEOF
25783 /* confdefs.h.  */
25784 _ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h.  */
25788 $ac_includes_default
25789 #include <$ac_header>
25790 _ACEOF
25791 rm -f conftest.$ac_objext
25792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25793   (eval $ac_compile) 2>conftest.er1
25794   ac_status=$?
25795   grep -v '^ *+' conftest.er1 >conftest.err
25796   rm -f conftest.er1
25797   cat conftest.err >&5
25798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799   (exit $ac_status); } &&
25800          { ac_try='test -z "$ac_c_werror_flag"
25801                          || test ! -s conftest.err'
25802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25803   (eval $ac_try) 2>&5
25804   ac_status=$?
25805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806   (exit $ac_status); }; } &&
25807          { ac_try='test -s conftest.$ac_objext'
25808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25809   (eval $ac_try) 2>&5
25810   ac_status=$?
25811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812   (exit $ac_status); }; }; then
25813   ac_header_compiler=yes
25814 else
25815   echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25817
25818 ac_header_compiler=no
25819 fi
25820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25822 echo "${ECHO_T}$ac_header_compiler" >&6
25823
25824 # Is the header present?
25825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25827 cat >conftest.$ac_ext <<_ACEOF
25828 /* confdefs.h.  */
25829 _ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h.  */
25833 #include <$ac_header>
25834 _ACEOF
25835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25837   ac_status=$?
25838   grep -v '^ *+' conftest.er1 >conftest.err
25839   rm -f conftest.er1
25840   cat conftest.err >&5
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); } >/dev/null; then
25843   if test -s conftest.err; then
25844     ac_cpp_err=$ac_c_preproc_warn_flag
25845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25846   else
25847     ac_cpp_err=
25848   fi
25849 else
25850   ac_cpp_err=yes
25851 fi
25852 if test -z "$ac_cpp_err"; then
25853   ac_header_preproc=yes
25854 else
25855   echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25857
25858   ac_header_preproc=no
25859 fi
25860 rm -f conftest.err conftest.$ac_ext
25861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25862 echo "${ECHO_T}$ac_header_preproc" >&6
25863
25864 # So?  What about this header?
25865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25866   yes:no: )
25867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25871     ac_header_preproc=yes
25872     ;;
25873   no:yes:* )
25874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25876     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25877 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25878     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25880     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25881 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25884     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25886     (
25887       cat <<\_ASBOX
25888 ## ------------------------------------------ ##
25889 ## Report this to the AC_PACKAGE_NAME lists.  ##
25890 ## ------------------------------------------ ##
25891 _ASBOX
25892     ) |
25893       sed "s/^/$as_me: WARNING:     /" >&2
25894     ;;
25895 esac
25896 echo "$as_me:$LINENO: checking for $ac_header" >&5
25897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901   eval "$as_ac_Header=\$ac_header_preproc"
25902 fi
25903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25905
25906 fi
25907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25908   cat >>confdefs.h <<_ACEOF
25909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25910 _ACEOF
25911
25912 fi
25913
25914 done
25915
25916
25917
25918 for ac_header in sys/epoll.h
25919 do
25920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25922   echo "$as_me:$LINENO: checking for $ac_header" >&5
25923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25925   echo $ECHO_N "(cached) $ECHO_C" >&6
25926 fi
25927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25929 else
25930   # Is the header compilable?
25931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25933 cat >conftest.$ac_ext <<_ACEOF
25934 /* confdefs.h.  */
25935 _ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h.  */
25939 $ac_includes_default
25940 #include <$ac_header>
25941 _ACEOF
25942 rm -f conftest.$ac_objext
25943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25944   (eval $ac_compile) 2>conftest.er1
25945   ac_status=$?
25946   grep -v '^ *+' conftest.er1 >conftest.err
25947   rm -f conftest.er1
25948   cat conftest.err >&5
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); } &&
25951          { ac_try='test -z "$ac_c_werror_flag"
25952                          || test ! -s conftest.err'
25953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954   (eval $ac_try) 2>&5
25955   ac_status=$?
25956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957   (exit $ac_status); }; } &&
25958          { ac_try='test -s conftest.$ac_objext'
25959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960   (eval $ac_try) 2>&5
25961   ac_status=$?
25962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); }; }; then
25964   ac_header_compiler=yes
25965 else
25966   echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25968
25969 ac_header_compiler=no
25970 fi
25971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25973 echo "${ECHO_T}$ac_header_compiler" >&6
25974
25975 # Is the header present?
25976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25978 cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h.  */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h.  */
25984 #include <$ac_header>
25985 _ACEOF
25986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25988   ac_status=$?
25989   grep -v '^ *+' conftest.er1 >conftest.err
25990   rm -f conftest.er1
25991   cat conftest.err >&5
25992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993   (exit $ac_status); } >/dev/null; then
25994   if test -s conftest.err; then
25995     ac_cpp_err=$ac_c_preproc_warn_flag
25996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25997   else
25998     ac_cpp_err=
25999   fi
26000 else
26001   ac_cpp_err=yes
26002 fi
26003 if test -z "$ac_cpp_err"; then
26004   ac_header_preproc=yes
26005 else
26006   echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26008
26009   ac_header_preproc=no
26010 fi
26011 rm -f conftest.err conftest.$ac_ext
26012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26013 echo "${ECHO_T}$ac_header_preproc" >&6
26014
26015 # So?  What about this header?
26016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26017   yes:no: )
26018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26022     ac_header_preproc=yes
26023     ;;
26024   no:yes:* )
26025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26037     (
26038       cat <<\_ASBOX
26039 ## ------------------------------------------ ##
26040 ## Report this to the AC_PACKAGE_NAME lists.  ##
26041 ## ------------------------------------------ ##
26042 _ASBOX
26043     ) |
26044       sed "s/^/$as_me: WARNING:     /" >&2
26045     ;;
26046 esac
26047 echo "$as_me:$LINENO: checking for $ac_header" >&5
26048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26050   echo $ECHO_N "(cached) $ECHO_C" >&6
26051 else
26052   eval "$as_ac_Header=\$ac_header_preproc"
26053 fi
26054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26056
26057 fi
26058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26059   cat >>confdefs.h <<_ACEOF
26060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26061 _ACEOF
26062
26063 fi
26064
26065 done
26066
26067 if test "${ac_cv_header_sys_epoll_h}" = yes; then
26068 echo "$as_me:$LINENO: checking for epoll system call" >&5
26069 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
26070 if test "$cross_compiling" = yes; then
26071   echo "$as_me:$LINENO: result: no" >&5
26072 echo "${ECHO_T}no" >&6
26073 else
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 int main(int argc, char *argv)
26081 {
26082         int epfd = epoll_create(256);
26083         exit (epfd == -1 ? 1 : 0);
26084 }
26085 _ACEOF
26086 rm -f conftest$ac_exeext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26088   (eval $ac_link) 2>&5
26089   ac_status=$?
26090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093   (eval $ac_try) 2>&5
26094   ac_status=$?
26095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096   (exit $ac_status); }; }; then
26097   echo "$as_me:$LINENO: result: yes" >&5
26098 echo "${ECHO_T}yes" >&6
26099
26100 cat >>confdefs.h <<\_ACEOF
26101 #define HAVE_EPOLL 1
26102 _ACEOF
26103
26104 else
26105   echo "$as_me: program exited with status $ac_status" >&5
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109 ( exit $ac_status )
26110 echo "$as_me:$LINENO: result: no" >&5
26111 echo "${ECHO_T}no" >&6
26112 fi
26113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26114 fi
26115 fi
26116
26117 # strerror checks
26118 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26119 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26120 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26121   echo $ECHO_N "(cached) $ECHO_C" >&6
26122 else
26123
26124         cat >conftest.$ac_ext <<_ACEOF
26125 /* confdefs.h.  */
26126 _ACEOF
26127 cat confdefs.h >>conftest.$ac_ext
26128 cat >>conftest.$ac_ext <<_ACEOF
26129 /* end confdefs.h.  */
26130
26131 #include <stdio.h>
26132 #include <sys/types.h>
26133 #include <errno.h>
26134 #ifdef WINNT
26135 #include <stdlib.h>
26136 #endif
26137 int
26138 main ()
26139 {
26140 char *c = (char *) *sys_errlist
26141   ;
26142   return 0;
26143 }
26144 _ACEOF
26145 rm -f conftest.$ac_objext
26146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26147   (eval $ac_compile) 2>conftest.er1
26148   ac_status=$?
26149   grep -v '^ *+' conftest.er1 >conftest.err
26150   rm -f conftest.er1
26151   cat conftest.err >&5
26152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153   (exit $ac_status); } &&
26154          { ac_try='test -z "$ac_c_werror_flag"
26155                          || test ! -s conftest.err'
26156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26157   (eval $ac_try) 2>&5
26158   ac_status=$?
26159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160   (exit $ac_status); }; } &&
26161          { ac_try='test -s conftest.$ac_objext'
26162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163   (eval $ac_try) 2>&5
26164   ac_status=$?
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); }; }; then
26167   ol_cv_dcl_sys_errlist=yes
26168         ol_cv_have_sys_errlist=yes
26169 else
26170   echo "$as_me: failed program was:" >&5
26171 sed 's/^/| /' conftest.$ac_ext >&5
26172
26173 ol_cv_dcl_sys_errlist=no
26174 fi
26175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26176 fi
26177 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26178 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26179 #
26180 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26181 if test $ol_cv_dcl_sys_errlist = no ; then
26182
26183 cat >>confdefs.h <<\_ACEOF
26184 #define DECL_SYS_ERRLIST 1
26185 _ACEOF
26186
26187
26188         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26189 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26190 if test "${ol_cv_have_sys_errlist+set}" = set; then
26191   echo $ECHO_N "(cached) $ECHO_C" >&6
26192 else
26193
26194                 cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h.  */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h.  */
26200 #include <errno.h>
26201 int
26202 main ()
26203 {
26204 char *c = (char *) *sys_errlist
26205   ;
26206   return 0;
26207 }
26208 _ACEOF
26209 rm -f conftest.$ac_objext conftest$ac_exeext
26210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26211   (eval $ac_link) 2>conftest.er1
26212   ac_status=$?
26213   grep -v '^ *+' conftest.er1 >conftest.err
26214   rm -f conftest.er1
26215   cat conftest.err >&5
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); } &&
26218          { ac_try='test -z "$ac_c_werror_flag"
26219                          || test ! -s conftest.err'
26220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221   (eval $ac_try) 2>&5
26222   ac_status=$?
26223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224   (exit $ac_status); }; } &&
26225          { ac_try='test -s conftest$ac_exeext'
26226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227   (eval $ac_try) 2>&5
26228   ac_status=$?
26229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230   (exit $ac_status); }; }; then
26231   ol_cv_have_sys_errlist=yes
26232 else
26233   echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26235
26236 ol_cv_have_sys_errlist=no
26237 fi
26238 rm -f conftest.err conftest.$ac_objext \
26239       conftest$ac_exeext conftest.$ac_ext
26240 fi
26241 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26242 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26243 fi
26244 if test $ol_cv_have_sys_errlist = yes ; then
26245
26246 cat >>confdefs.h <<\_ACEOF
26247 #define HAVE_SYS_ERRLIST 1
26248 _ACEOF
26249
26250 fi
26251
26252
26253 for ac_func in strerror strerror_r
26254 do
26255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26256 echo "$as_me:$LINENO: checking for $ac_func" >&5
26257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26258 if eval "test \"\${$as_ac_var+set}\" = set"; then
26259   echo $ECHO_N "(cached) $ECHO_C" >&6
26260 else
26261   cat >conftest.$ac_ext <<_ACEOF
26262 /* confdefs.h.  */
26263 _ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h.  */
26267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26269 #define $ac_func innocuous_$ac_func
26270
26271 /* System header to define __stub macros and hopefully few prototypes,
26272     which can conflict with char $ac_func (); below.
26273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26274     <limits.h> exists even on freestanding compilers.  */
26275
26276 #ifdef __STDC__
26277 # include <limits.h>
26278 #else
26279 # include <assert.h>
26280 #endif
26281
26282 #undef $ac_func
26283
26284 /* Override any gcc2 internal prototype to avoid an error.  */
26285 #ifdef __cplusplus
26286 extern "C"
26287 {
26288 #endif
26289 /* We use char because int might match the return type of a gcc2
26290    builtin and then its argument prototype would still apply.  */
26291 char $ac_func ();
26292 /* The GNU C library defines this for functions which it implements
26293     to always fail with ENOSYS.  Some functions are actually named
26294     something starting with __ and the normal name is an alias.  */
26295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26296 choke me
26297 #else
26298 char (*f) () = $ac_func;
26299 #endif
26300 #ifdef __cplusplus
26301 }
26302 #endif
26303
26304 int
26305 main ()
26306 {
26307 return f != $ac_func;
26308   ;
26309   return 0;
26310 }
26311 _ACEOF
26312 rm -f conftest.$ac_objext conftest$ac_exeext
26313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26314   (eval $ac_link) 2>conftest.er1
26315   ac_status=$?
26316   grep -v '^ *+' conftest.er1 >conftest.err
26317   rm -f conftest.er1
26318   cat conftest.err >&5
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); } &&
26321          { ac_try='test -z "$ac_c_werror_flag"
26322                          || test ! -s conftest.err'
26323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324   (eval $ac_try) 2>&5
26325   ac_status=$?
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); }; } &&
26328          { ac_try='test -s conftest$ac_exeext'
26329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330   (eval $ac_try) 2>&5
26331   ac_status=$?
26332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333   (exit $ac_status); }; }; then
26334   eval "$as_ac_var=yes"
26335 else
26336   echo "$as_me: failed program was:" >&5
26337 sed 's/^/| /' conftest.$ac_ext >&5
26338
26339 eval "$as_ac_var=no"
26340 fi
26341 rm -f conftest.err conftest.$ac_objext \
26342       conftest$ac_exeext conftest.$ac_ext
26343 fi
26344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26346 if test `eval echo '${'$as_ac_var'}'` = yes; then
26347   cat >>confdefs.h <<_ACEOF
26348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26349 _ACEOF
26350
26351 fi
26352 done
26353
26354 ol_cv_func_strerror_r=no
26355 if test "${ac_cv_func_strerror_r}" = yes ; then
26356         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26357 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26358 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26359   echo $ECHO_N "(cached) $ECHO_C" >&6
26360 else
26361
26362         cat >conftest.$ac_ext <<_ACEOF
26363 /* confdefs.h.  */
26364 _ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h.  */
26368 #include <string.h>
26369 _ACEOF
26370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26371   $EGREP "strerror_r" >/dev/null 2>&1; then
26372   ol_decl_strerror_r=yes
26373 else
26374   ol_decl_strerror_r=no
26375 fi
26376 rm -f conftest*
26377
26378         if test $ol_decl_strerror_r = yes ; then
26379                 cat >conftest.$ac_ext <<_ACEOF
26380 /* confdefs.h.  */
26381 _ACEOF
26382 cat confdefs.h >>conftest.$ac_ext
26383 cat >>conftest.$ac_ext <<_ACEOF
26384 /* end confdefs.h.  */
26385 #include <string.h>
26386 int
26387 main ()
26388 {
26389    /* from autoconf 2.59 */
26390                                 char buf[100];
26391                                 char x = *strerror_r (0, buf, sizeof buf);
26392                                 char *p = strerror_r (0, buf, sizeof buf);
26393
26394   ;
26395   return 0;
26396 }
26397 _ACEOF
26398 rm -f conftest.$ac_objext
26399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26400   (eval $ac_compile) 2>conftest.er1
26401   ac_status=$?
26402   grep -v '^ *+' conftest.er1 >conftest.err
26403   rm -f conftest.er1
26404   cat conftest.err >&5
26405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406   (exit $ac_status); } &&
26407          { ac_try='test -z "$ac_c_werror_flag"
26408                          || test ! -s conftest.err'
26409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410   (eval $ac_try) 2>&5
26411   ac_status=$?
26412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413   (exit $ac_status); }; } &&
26414          { ac_try='test -s conftest.$ac_objext'
26415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416   (eval $ac_try) 2>&5
26417   ac_status=$?
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); }; }; then
26420   ol_cv_nonposix_strerror_r=yes
26421 else
26422   echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425 ol_cv_nonposix_strerror_r=no
26426 fi
26427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26428         else
26429                 if test "$cross_compiling" = yes; then
26430   ol_cv_nonposix_strerror=no
26431 else
26432   cat >conftest.$ac_ext <<_ACEOF
26433 /* confdefs.h.  */
26434 _ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h.  */
26438
26439                         main() {
26440                                 char buf[100];
26441                                 buf[0] = 0;
26442                                 strerror_r( 1, buf, sizeof buf );
26443                                 exit( buf[0] == 0 );
26444                         }
26445
26446 _ACEOF
26447 rm -f conftest$ac_exeext
26448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26449   (eval $ac_link) 2>&5
26450   ac_status=$?
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26454   (eval $ac_try) 2>&5
26455   ac_status=$?
26456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457   (exit $ac_status); }; }; then
26458   ol_cv_nonposix_strerror_r=yes
26459 else
26460   echo "$as_me: program exited with status $ac_status" >&5
26461 echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26463
26464 ( exit $ac_status )
26465 ol_cv_nonposix_strerror=no
26466 fi
26467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26468 fi
26469         fi
26470
26471 fi
26472 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26473 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26474 if test $ol_cv_nonposix_strerror_r = yes ; then
26475
26476 cat >>confdefs.h <<\_ACEOF
26477 #define HAVE_NONPOSIX_STRERROR_R 1
26478 _ACEOF
26479
26480 fi
26481
26482 elif test "${ac_cv_func_strerror}" = no ; then
26483         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26484 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26485 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26486   echo $ECHO_N "(cached) $ECHO_C" >&6
26487 else
26488
26489         cat >conftest.$ac_ext <<_ACEOF
26490 /* confdefs.h.  */
26491 _ACEOF
26492 cat confdefs.h >>conftest.$ac_ext
26493 cat >>conftest.$ac_ext <<_ACEOF
26494 /* end confdefs.h.  */
26495
26496 #include <stdio.h>
26497 #include <sys/types.h>
26498 #include <errno.h>
26499 #ifdef WINNT
26500 #include <stdlib.h>
26501 #endif
26502 int
26503 main ()
26504 {
26505 char *c = (char *) *sys_errlist
26506   ;
26507   return 0;
26508 }
26509 _ACEOF
26510 rm -f conftest.$ac_objext
26511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26512   (eval $ac_compile) 2>conftest.er1
26513   ac_status=$?
26514   grep -v '^ *+' conftest.er1 >conftest.err
26515   rm -f conftest.er1
26516   cat conftest.err >&5
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); } &&
26519          { ac_try='test -z "$ac_c_werror_flag"
26520                          || test ! -s conftest.err'
26521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26522   (eval $ac_try) 2>&5
26523   ac_status=$?
26524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525   (exit $ac_status); }; } &&
26526          { ac_try='test -s conftest.$ac_objext'
26527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528   (eval $ac_try) 2>&5
26529   ac_status=$?
26530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); }; }; then
26532   ol_cv_dcl_sys_errlist=yes
26533         ol_cv_have_sys_errlist=yes
26534 else
26535   echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26537
26538 ol_cv_dcl_sys_errlist=no
26539 fi
26540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26541 fi
26542 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26543 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26544 #
26545 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26546 if test $ol_cv_dcl_sys_errlist = no ; then
26547
26548 cat >>confdefs.h <<\_ACEOF
26549 #define DECL_SYS_ERRLIST 1
26550 _ACEOF
26551
26552
26553         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26554 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26555 if test "${ol_cv_have_sys_errlist+set}" = set; then
26556   echo $ECHO_N "(cached) $ECHO_C" >&6
26557 else
26558
26559                 cat >conftest.$ac_ext <<_ACEOF
26560 /* confdefs.h.  */
26561 _ACEOF
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h.  */
26565 #include <errno.h>
26566 int
26567 main ()
26568 {
26569 char *c = (char *) *sys_errlist
26570   ;
26571   return 0;
26572 }
26573 _ACEOF
26574 rm -f conftest.$ac_objext conftest$ac_exeext
26575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26576   (eval $ac_link) 2>conftest.er1
26577   ac_status=$?
26578   grep -v '^ *+' conftest.er1 >conftest.err
26579   rm -f conftest.er1
26580   cat conftest.err >&5
26581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582   (exit $ac_status); } &&
26583          { ac_try='test -z "$ac_c_werror_flag"
26584                          || test ! -s conftest.err'
26585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586   (eval $ac_try) 2>&5
26587   ac_status=$?
26588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589   (exit $ac_status); }; } &&
26590          { ac_try='test -s conftest$ac_exeext'
26591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592   (eval $ac_try) 2>&5
26593   ac_status=$?
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); }; }; then
26596   ol_cv_have_sys_errlist=yes
26597 else
26598   echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26600
26601 ol_cv_have_sys_errlist=no
26602 fi
26603 rm -f conftest.err conftest.$ac_objext \
26604       conftest$ac_exeext conftest.$ac_ext
26605 fi
26606 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26607 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26608 fi
26609 if test $ol_cv_have_sys_errlist = yes ; then
26610
26611 cat >>confdefs.h <<\_ACEOF
26612 #define HAVE_SYS_ERRLIST 1
26613 _ACEOF
26614
26615 fi
26616
26617 fi
26618
26619
26620
26621 for ac_header in regex.h
26622 do
26623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26625   echo "$as_me:$LINENO: checking for $ac_header" >&5
26626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26628   echo $ECHO_N "(cached) $ECHO_C" >&6
26629 fi
26630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26632 else
26633   # Is the header compilable?
26634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26636 cat >conftest.$ac_ext <<_ACEOF
26637 /* confdefs.h.  */
26638 _ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h.  */
26642 $ac_includes_default
26643 #include <$ac_header>
26644 _ACEOF
26645 rm -f conftest.$ac_objext
26646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26647   (eval $ac_compile) 2>conftest.er1
26648   ac_status=$?
26649   grep -v '^ *+' conftest.er1 >conftest.err
26650   rm -f conftest.er1
26651   cat conftest.err >&5
26652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); } &&
26654          { ac_try='test -z "$ac_c_werror_flag"
26655                          || test ! -s conftest.err'
26656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26657   (eval $ac_try) 2>&5
26658   ac_status=$?
26659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660   (exit $ac_status); }; } &&
26661          { ac_try='test -s conftest.$ac_objext'
26662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663   (eval $ac_try) 2>&5
26664   ac_status=$?
26665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666   (exit $ac_status); }; }; then
26667   ac_header_compiler=yes
26668 else
26669   echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672 ac_header_compiler=no
26673 fi
26674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26676 echo "${ECHO_T}$ac_header_compiler" >&6
26677
26678 # Is the header present?
26679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26681 cat >conftest.$ac_ext <<_ACEOF
26682 /* confdefs.h.  */
26683 _ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h.  */
26687 #include <$ac_header>
26688 _ACEOF
26689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26691   ac_status=$?
26692   grep -v '^ *+' conftest.er1 >conftest.err
26693   rm -f conftest.er1
26694   cat conftest.err >&5
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); } >/dev/null; then
26697   if test -s conftest.err; then
26698     ac_cpp_err=$ac_c_preproc_warn_flag
26699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26700   else
26701     ac_cpp_err=
26702   fi
26703 else
26704   ac_cpp_err=yes
26705 fi
26706 if test -z "$ac_cpp_err"; then
26707   ac_header_preproc=yes
26708 else
26709   echo "$as_me: failed program was:" >&5
26710 sed 's/^/| /' conftest.$ac_ext >&5
26711
26712   ac_header_preproc=no
26713 fi
26714 rm -f conftest.err conftest.$ac_ext
26715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26716 echo "${ECHO_T}$ac_header_preproc" >&6
26717
26718 # So?  What about this header?
26719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26720   yes:no: )
26721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26725     ac_header_preproc=yes
26726     ;;
26727   no:yes:* )
26728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26730     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26731 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26732     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26734     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26735 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26738     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26740     (
26741       cat <<\_ASBOX
26742 ## ------------------------------------------ ##
26743 ## Report this to the AC_PACKAGE_NAME lists.  ##
26744 ## ------------------------------------------ ##
26745 _ASBOX
26746     ) |
26747       sed "s/^/$as_me: WARNING:     /" >&2
26748     ;;
26749 esac
26750 echo "$as_me:$LINENO: checking for $ac_header" >&5
26751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26753   echo $ECHO_N "(cached) $ECHO_C" >&6
26754 else
26755   eval "$as_ac_Header=\$ac_header_preproc"
26756 fi
26757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26759
26760 fi
26761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26762   cat >>confdefs.h <<_ACEOF
26763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26764 _ACEOF
26765
26766 fi
26767
26768 done
26769
26770 if test "$ac_cv_header_regex_h" != yes ; then
26771         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26772 echo "$as_me: error: POSIX regex.h required." >&2;}
26773    { (exit 1); exit 1; }; }
26774 fi
26775 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26776 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26777 if test "${ac_cv_search_regfree+set}" = set; then
26778   echo $ECHO_N "(cached) $ECHO_C" >&6
26779 else
26780   ac_func_search_save_LIBS=$LIBS
26781 ac_cv_search_regfree=no
26782 cat >conftest.$ac_ext <<_ACEOF
26783 /* confdefs.h.  */
26784 _ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h.  */
26788
26789 /* Override any gcc2 internal prototype to avoid an error.  */
26790 #ifdef __cplusplus
26791 extern "C"
26792 #endif
26793 /* We use char because int might match the return type of a gcc2
26794    builtin and then its argument prototype would still apply.  */
26795 char regfree ();
26796 int
26797 main ()
26798 {
26799 regfree ();
26800   ;
26801   return 0;
26802 }
26803 _ACEOF
26804 rm -f conftest.$ac_objext conftest$ac_exeext
26805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26806   (eval $ac_link) 2>conftest.er1
26807   ac_status=$?
26808   grep -v '^ *+' conftest.er1 >conftest.err
26809   rm -f conftest.er1
26810   cat conftest.err >&5
26811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812   (exit $ac_status); } &&
26813          { ac_try='test -z "$ac_c_werror_flag"
26814                          || test ! -s conftest.err'
26815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816   (eval $ac_try) 2>&5
26817   ac_status=$?
26818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819   (exit $ac_status); }; } &&
26820          { ac_try='test -s conftest$ac_exeext'
26821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822   (eval $ac_try) 2>&5
26823   ac_status=$?
26824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825   (exit $ac_status); }; }; then
26826   ac_cv_search_regfree="none required"
26827 else
26828   echo "$as_me: failed program was:" >&5
26829 sed 's/^/| /' conftest.$ac_ext >&5
26830
26831 fi
26832 rm -f conftest.err conftest.$ac_objext \
26833       conftest$ac_exeext conftest.$ac_ext
26834 if test "$ac_cv_search_regfree" = no; then
26835   for ac_lib in regex gnuregex; do
26836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26837     cat >conftest.$ac_ext <<_ACEOF
26838 /* confdefs.h.  */
26839 _ACEOF
26840 cat confdefs.h >>conftest.$ac_ext
26841 cat >>conftest.$ac_ext <<_ACEOF
26842 /* end confdefs.h.  */
26843
26844 /* Override any gcc2 internal prototype to avoid an error.  */
26845 #ifdef __cplusplus
26846 extern "C"
26847 #endif
26848 /* We use char because int might match the return type of a gcc2
26849    builtin and then its argument prototype would still apply.  */
26850 char regfree ();
26851 int
26852 main ()
26853 {
26854 regfree ();
26855   ;
26856   return 0;
26857 }
26858 _ACEOF
26859 rm -f conftest.$ac_objext conftest$ac_exeext
26860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26861   (eval $ac_link) 2>conftest.er1
26862   ac_status=$?
26863   grep -v '^ *+' conftest.er1 >conftest.err
26864   rm -f conftest.er1
26865   cat conftest.err >&5
26866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); } &&
26868          { ac_try='test -z "$ac_c_werror_flag"
26869                          || test ! -s conftest.err'
26870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26871   (eval $ac_try) 2>&5
26872   ac_status=$?
26873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874   (exit $ac_status); }; } &&
26875          { ac_try='test -s conftest$ac_exeext'
26876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877   (eval $ac_try) 2>&5
26878   ac_status=$?
26879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880   (exit $ac_status); }; }; then
26881   ac_cv_search_regfree="-l$ac_lib"
26882 break
26883 else
26884   echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26886
26887 fi
26888 rm -f conftest.err conftest.$ac_objext \
26889       conftest$ac_exeext conftest.$ac_ext
26890   done
26891 fi
26892 LIBS=$ac_func_search_save_LIBS
26893 fi
26894 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26895 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26896 if test "$ac_cv_search_regfree" != no; then
26897   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26898   :
26899 else
26900   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26901 echo "$as_me: error: POSIX regex required." >&2;}
26902    { (exit 1); exit 1; }; }
26903 fi
26904
26905
26906
26907 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26908 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26909 if test "${ol_cv_c_posix_regex+set}" = set; then
26910   echo $ECHO_N "(cached) $ECHO_C" >&6
26911 else
26912
26913         if test "$cross_compiling" = yes; then
26914   ol_cv_c_posix_regex=cross
26915 else
26916   cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h.  */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h.  */
26922
26923 #include <sys/types.h>
26924 #include <regex.h>
26925 static char *pattern, *string;
26926 main()
26927 {
26928         int rc;
26929         regex_t re;
26930
26931         pattern = "^A";
26932
26933         if(regcomp(&re, pattern, 0)) {
26934                 return -1;
26935         }
26936
26937         string = "ALL MATCH";
26938
26939         rc = regexec(&re, string, 0, (void*)0, 0);
26940
26941         regfree(&re);
26942
26943         return rc;
26944 }
26945 _ACEOF
26946 rm -f conftest$ac_exeext
26947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26948   (eval $ac_link) 2>&5
26949   ac_status=$?
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953   (eval $ac_try) 2>&5
26954   ac_status=$?
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); }; }; then
26957   ol_cv_c_posix_regex=yes
26958 else
26959   echo "$as_me: program exited with status $ac_status" >&5
26960 echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963 ( exit $ac_status )
26964 ol_cv_c_posix_regex=no
26965 fi
26966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26967 fi
26968 fi
26969 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26970 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26971
26972 if test "$ol_cv_c_posix_regex" = no ; then
26973         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26974 echo "$as_me: error: broken POSIX regex!" >&2;}
26975    { (exit 1); exit 1; }; }
26976 fi
26977
26978
26979 have_uuid=no
26980
26981 for ac_header in sys/uuid.h
26982 do
26983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26985   echo "$as_me:$LINENO: checking for $ac_header" >&5
26986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26988   echo $ECHO_N "(cached) $ECHO_C" >&6
26989 fi
26990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26992 else
26993   # Is the header compilable?
26994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26996 cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002 $ac_includes_default
27003 #include <$ac_header>
27004 _ACEOF
27005 rm -f conftest.$ac_objext
27006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27007   (eval $ac_compile) 2>conftest.er1
27008   ac_status=$?
27009   grep -v '^ *+' conftest.er1 >conftest.err
27010   rm -f conftest.er1
27011   cat conftest.err >&5
27012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013   (exit $ac_status); } &&
27014          { ac_try='test -z "$ac_c_werror_flag"
27015                          || test ! -s conftest.err'
27016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017   (eval $ac_try) 2>&5
27018   ac_status=$?
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); }; } &&
27021          { ac_try='test -s conftest.$ac_objext'
27022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023   (eval $ac_try) 2>&5
27024   ac_status=$?
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); }; }; then
27027   ac_header_compiler=yes
27028 else
27029   echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27031
27032 ac_header_compiler=no
27033 fi
27034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27036 echo "${ECHO_T}$ac_header_compiler" >&6
27037
27038 # Is the header present?
27039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27041 cat >conftest.$ac_ext <<_ACEOF
27042 /* confdefs.h.  */
27043 _ACEOF
27044 cat confdefs.h >>conftest.$ac_ext
27045 cat >>conftest.$ac_ext <<_ACEOF
27046 /* end confdefs.h.  */
27047 #include <$ac_header>
27048 _ACEOF
27049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } >/dev/null; then
27057   if test -s conftest.err; then
27058     ac_cpp_err=$ac_c_preproc_warn_flag
27059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27060   else
27061     ac_cpp_err=
27062   fi
27063 else
27064   ac_cpp_err=yes
27065 fi
27066 if test -z "$ac_cpp_err"; then
27067   ac_header_preproc=yes
27068 else
27069   echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27071
27072   ac_header_preproc=no
27073 fi
27074 rm -f conftest.err conftest.$ac_ext
27075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27076 echo "${ECHO_T}$ac_header_preproc" >&6
27077
27078 # So?  What about this header?
27079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27080   yes:no: )
27081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27085     ac_header_preproc=yes
27086     ;;
27087   no:yes:* )
27088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27100     (
27101       cat <<\_ASBOX
27102 ## ------------------------------------------ ##
27103 ## Report this to the AC_PACKAGE_NAME lists.  ##
27104 ## ------------------------------------------ ##
27105 _ASBOX
27106     ) |
27107       sed "s/^/$as_me: WARNING:     /" >&2
27108     ;;
27109 esac
27110 echo "$as_me:$LINENO: checking for $ac_header" >&5
27111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27113   echo $ECHO_N "(cached) $ECHO_C" >&6
27114 else
27115   eval "$as_ac_Header=\$ac_header_preproc"
27116 fi
27117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27119
27120 fi
27121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27122   cat >>confdefs.h <<_ACEOF
27123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27124 _ACEOF
27125
27126 fi
27127
27128 done
27129
27130 if test $ac_cv_header_sys_uuid_h = yes ; then
27131         save_LIBS="$LIBS"
27132         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27133 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27134 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27135   echo $ECHO_N "(cached) $ECHO_C" >&6
27136 else
27137   ac_func_search_save_LIBS=$LIBS
27138 ac_cv_search_uuid_to_str=no
27139 cat >conftest.$ac_ext <<_ACEOF
27140 /* confdefs.h.  */
27141 _ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h.  */
27145
27146 /* Override any gcc2 internal prototype to avoid an error.  */
27147 #ifdef __cplusplus
27148 extern "C"
27149 #endif
27150 /* We use char because int might match the return type of a gcc2
27151    builtin and then its argument prototype would still apply.  */
27152 char uuid_to_str ();
27153 int
27154 main ()
27155 {
27156 uuid_to_str ();
27157   ;
27158   return 0;
27159 }
27160 _ACEOF
27161 rm -f conftest.$ac_objext conftest$ac_exeext
27162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27163   (eval $ac_link) 2>conftest.er1
27164   ac_status=$?
27165   grep -v '^ *+' conftest.er1 >conftest.err
27166   rm -f conftest.er1
27167   cat conftest.err >&5
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); } &&
27170          { ac_try='test -z "$ac_c_werror_flag"
27171                          || test ! -s conftest.err'
27172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173   (eval $ac_try) 2>&5
27174   ac_status=$?
27175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); }; } &&
27177          { ac_try='test -s conftest$ac_exeext'
27178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27179   (eval $ac_try) 2>&5
27180   ac_status=$?
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); }; }; then
27183   ac_cv_search_uuid_to_str="none required"
27184 else
27185   echo "$as_me: failed program was:" >&5
27186 sed 's/^/| /' conftest.$ac_ext >&5
27187
27188 fi
27189 rm -f conftest.err conftest.$ac_objext \
27190       conftest$ac_exeext conftest.$ac_ext
27191 if test "$ac_cv_search_uuid_to_str" = no; then
27192   for ac_lib in uuid; do
27193     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27194     cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h.  */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h.  */
27200
27201 /* Override any gcc2 internal prototype to avoid an error.  */
27202 #ifdef __cplusplus
27203 extern "C"
27204 #endif
27205 /* We use char because int might match the return type of a gcc2
27206    builtin and then its argument prototype would still apply.  */
27207 char uuid_to_str ();
27208 int
27209 main ()
27210 {
27211 uuid_to_str ();
27212   ;
27213   return 0;
27214 }
27215 _ACEOF
27216 rm -f conftest.$ac_objext conftest$ac_exeext
27217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27218   (eval $ac_link) 2>conftest.er1
27219   ac_status=$?
27220   grep -v '^ *+' conftest.er1 >conftest.err
27221   rm -f conftest.er1
27222   cat conftest.err >&5
27223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224   (exit $ac_status); } &&
27225          { ac_try='test -z "$ac_c_werror_flag"
27226                          || test ! -s conftest.err'
27227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27228   (eval $ac_try) 2>&5
27229   ac_status=$?
27230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231   (exit $ac_status); }; } &&
27232          { ac_try='test -s conftest$ac_exeext'
27233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234   (eval $ac_try) 2>&5
27235   ac_status=$?
27236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237   (exit $ac_status); }; }; then
27238   ac_cv_search_uuid_to_str="-l$ac_lib"
27239 break
27240 else
27241   echo "$as_me: failed program was:" >&5
27242 sed 's/^/| /' conftest.$ac_ext >&5
27243
27244 fi
27245 rm -f conftest.err conftest.$ac_objext \
27246       conftest$ac_exeext conftest.$ac_ext
27247   done
27248 fi
27249 LIBS=$ac_func_search_save_LIBS
27250 fi
27251 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27252 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27253 if test "$ac_cv_search_uuid_to_str" != no; then
27254   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27255   have_uuid=yes
27256 else
27257   :
27258 fi
27259
27260         LIBS="$save_LIBS"
27261
27262         if test have_uuid = yes ; then
27263
27264 cat >>confdefs.h <<\_ACEOF
27265 #define HAVE_UUID_TO_STR 1
27266 _ACEOF
27267
27268
27269                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27270                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27271         fi
27272 fi
27273
27274 if test $have_uuid = no ; then
27275         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27276 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27277         save_LIBS="$LIBS"
27278         LIBS="$LIBS -lrpcrt4"
27279         cat >conftest.$ac_ext <<_ACEOF
27280 /* confdefs.h.  */
27281 _ACEOF
27282 cat confdefs.h >>conftest.$ac_ext
27283 cat >>conftest.$ac_ext <<_ACEOF
27284 /* end confdefs.h.  */
27285
27286                 int __stdcall UuidCreate(void *);
27287                 int __stdcall UuidToStringA(void *,void **);
27288
27289 int
27290 main ()
27291 {
27292
27293                 UuidCreate(0);
27294                 UuidToStringA(0,0);
27295
27296   ;
27297   return 0;
27298 }
27299 _ACEOF
27300 rm -f conftest.$ac_objext conftest$ac_exeext
27301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27302   (eval $ac_link) 2>conftest.er1
27303   ac_status=$?
27304   grep -v '^ *+' conftest.er1 >conftest.err
27305   rm -f conftest.er1
27306   cat conftest.err >&5
27307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); } &&
27309          { ac_try='test -z "$ac_c_werror_flag"
27310                          || test ! -s conftest.err'
27311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312   (eval $ac_try) 2>&5
27313   ac_status=$?
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); }; } &&
27316          { ac_try='test -s conftest$ac_exeext'
27317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27318   (eval $ac_try) 2>&5
27319   ac_status=$?
27320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321   (exit $ac_status); }; }; then
27322   need_rpcrt=yes
27323 else
27324   echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27326
27327 need_rpcrt=no
27328 fi
27329 rm -f conftest.err conftest.$ac_objext \
27330       conftest$ac_exeext conftest.$ac_ext
27331         if test $need_rpcrt = yes; then
27332                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27333         fi
27334         LIBS="$save_LIBS"
27335         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27336 echo "${ECHO_T}$need_rpcrt" >&6
27337 fi
27338
27339 ol_cv_lib_resolver=no
27340 if test $ol_cv_lib_resolver = no ; then
27341         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27342 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27343 if test "${ol_cv_resolver_none+set}" = set; then
27344   echo $ECHO_N "(cached) $ECHO_C" >&6
27345 else
27346
27347         ol_RESOLVER_LIB=
27348         ol_LIBS=$LIBS
27349         LIBS="$ol_RESOLVER_LIB $LIBS"
27350
27351         cat >conftest.$ac_ext <<_ACEOF
27352 /* confdefs.h.  */
27353 _ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h.  */
27357
27358 #ifdef HAVE_SYS_TYPES_H
27359 #       include <sys/types.h>
27360 #endif
27361 #include <netinet/in.h>
27362 #ifdef HAVE_ARPA_NAMESER_H
27363 #       include <arpa/nameser.h>
27364 #endif
27365 #ifdef HAVE_RESOLV_H
27366 #       include <resolv.h>
27367 #endif
27368
27369 int
27370 main ()
27371 {
27372 {
27373         int len, status;
27374         char *request = NULL;
27375         unsigned char reply[64*1024];
27376         unsigned char host[64*1024];
27377         unsigned char *p;
27378
27379 #ifdef NS_HFIXEDSZ
27380         /* Bind 8/9 interface */
27381         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27382 #else
27383         /* Bind 4 interface */
27384 # ifndef T_SRV
27385 #  define T_SRV 33
27386 # endif
27387         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27388 #endif
27389         p = reply;
27390 #ifdef NS_HFIXEDSZ
27391         /* Bind 8/9 interface */
27392         p += NS_HFIXEDSZ;
27393 #elif defined(HFIXEDSZ)
27394         /* Bind 4 interface w/ HFIXEDSZ */
27395         p += HFIXEDSZ;
27396 #else
27397         /* Bind 4 interface w/o HFIXEDSZ */
27398         p += sizeof(HEADER);
27399 #endif
27400         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27401 }
27402   ;
27403   return 0;
27404 }
27405 _ACEOF
27406 rm -f conftest.$ac_objext conftest$ac_exeext
27407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27408   (eval $ac_link) 2>conftest.er1
27409   ac_status=$?
27410   grep -v '^ *+' conftest.er1 >conftest.err
27411   rm -f conftest.er1
27412   cat conftest.err >&5
27413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414   (exit $ac_status); } &&
27415          { ac_try='test -z "$ac_c_werror_flag"
27416                          || test ! -s conftest.err'
27417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27418   (eval $ac_try) 2>&5
27419   ac_status=$?
27420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421   (exit $ac_status); }; } &&
27422          { ac_try='test -s conftest$ac_exeext'
27423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27424   (eval $ac_try) 2>&5
27425   ac_status=$?
27426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427   (exit $ac_status); }; }; then
27428   ol_cv_resolver_none=yes
27429 else
27430   echo "$as_me: failed program was:" >&5
27431 sed 's/^/| /' conftest.$ac_ext >&5
27432
27433 ol_cv_resolver_none=no
27434 fi
27435 rm -f conftest.err conftest.$ac_objext \
27436       conftest$ac_exeext conftest.$ac_ext
27437
27438         LIBS="$ol_LIBS"
27439
27440 fi
27441 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27442 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27443
27444         if test $ol_cv_resolver_none = yes ; then
27445                 ol_cv_lib_resolver=yes
27446         fi
27447 fi
27448
27449 if test $ol_cv_lib_resolver = no ; then
27450         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27451 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27452 if test "${ol_cv_resolver_resolv+set}" = set; then
27453   echo $ECHO_N "(cached) $ECHO_C" >&6
27454 else
27455
27456         ol_RESOLVER_LIB=-lresolv
27457         ol_LIBS=$LIBS
27458         LIBS="$ol_RESOLVER_LIB $LIBS"
27459
27460         cat >conftest.$ac_ext <<_ACEOF
27461 /* confdefs.h.  */
27462 _ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h.  */
27466
27467 #ifdef HAVE_SYS_TYPES_H
27468 #       include <sys/types.h>
27469 #endif
27470 #include <netinet/in.h>
27471 #ifdef HAVE_ARPA_NAMESER_H
27472 #       include <arpa/nameser.h>
27473 #endif
27474 #ifdef HAVE_RESOLV_H
27475 #       include <resolv.h>
27476 #endif
27477
27478 int
27479 main ()
27480 {
27481 {
27482         int len, status;
27483         char *request = NULL;
27484         unsigned char reply[64*1024];
27485         unsigned char host[64*1024];
27486         unsigned char *p;
27487
27488 #ifdef NS_HFIXEDSZ
27489         /* Bind 8/9 interface */
27490         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27491 #else
27492         /* Bind 4 interface */
27493 # ifndef T_SRV
27494 #  define T_SRV 33
27495 # endif
27496         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27497 #endif
27498         p = reply;
27499 #ifdef NS_HFIXEDSZ
27500         /* Bind 8/9 interface */
27501         p += NS_HFIXEDSZ;
27502 #elif defined(HFIXEDSZ)
27503         /* Bind 4 interface w/ HFIXEDSZ */
27504         p += HFIXEDSZ;
27505 #else
27506         /* Bind 4 interface w/o HFIXEDSZ */
27507         p += sizeof(HEADER);
27508 #endif
27509         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27510 }
27511   ;
27512   return 0;
27513 }
27514 _ACEOF
27515 rm -f conftest.$ac_objext conftest$ac_exeext
27516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27517   (eval $ac_link) 2>conftest.er1
27518   ac_status=$?
27519   grep -v '^ *+' conftest.er1 >conftest.err
27520   rm -f conftest.er1
27521   cat conftest.err >&5
27522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523   (exit $ac_status); } &&
27524          { ac_try='test -z "$ac_c_werror_flag"
27525                          || test ! -s conftest.err'
27526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527   (eval $ac_try) 2>&5
27528   ac_status=$?
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); }; } &&
27531          { ac_try='test -s conftest$ac_exeext'
27532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533   (eval $ac_try) 2>&5
27534   ac_status=$?
27535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536   (exit $ac_status); }; }; then
27537   ol_cv_resolver_resolv=yes
27538 else
27539   echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.$ac_ext >&5
27541
27542 ol_cv_resolver_resolv=no
27543 fi
27544 rm -f conftest.err conftest.$ac_objext \
27545       conftest$ac_exeext conftest.$ac_ext
27546
27547         LIBS="$ol_LIBS"
27548
27549 fi
27550 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27551 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27552
27553         if test $ol_cv_resolver_resolv = yes ; then
27554                 ol_cv_lib_resolver=-lresolv
27555         fi
27556 fi
27557
27558 if test $ol_cv_lib_resolver = no ; then
27559         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27560 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27561 if test "${ol_cv_resolver_bind+set}" = set; then
27562   echo $ECHO_N "(cached) $ECHO_C" >&6
27563 else
27564
27565         ol_RESOLVER_LIB=-lbind
27566         ol_LIBS=$LIBS
27567         LIBS="$ol_RESOLVER_LIB $LIBS"
27568
27569         cat >conftest.$ac_ext <<_ACEOF
27570 /* confdefs.h.  */
27571 _ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h.  */
27575
27576 #ifdef HAVE_SYS_TYPES_H
27577 #       include <sys/types.h>
27578 #endif
27579 #include <netinet/in.h>
27580 #ifdef HAVE_ARPA_NAMESER_H
27581 #       include <arpa/nameser.h>
27582 #endif
27583 #ifdef HAVE_RESOLV_H
27584 #       include <resolv.h>
27585 #endif
27586
27587 int
27588 main ()
27589 {
27590 {
27591         int len, status;
27592         char *request = NULL;
27593         unsigned char reply[64*1024];
27594         unsigned char host[64*1024];
27595         unsigned char *p;
27596
27597 #ifdef NS_HFIXEDSZ
27598         /* Bind 8/9 interface */
27599         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27600 #else
27601         /* Bind 4 interface */
27602 # ifndef T_SRV
27603 #  define T_SRV 33
27604 # endif
27605         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27606 #endif
27607         p = reply;
27608 #ifdef NS_HFIXEDSZ
27609         /* Bind 8/9 interface */
27610         p += NS_HFIXEDSZ;
27611 #elif defined(HFIXEDSZ)
27612         /* Bind 4 interface w/ HFIXEDSZ */
27613         p += HFIXEDSZ;
27614 #else
27615         /* Bind 4 interface w/o HFIXEDSZ */
27616         p += sizeof(HEADER);
27617 #endif
27618         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27619 }
27620   ;
27621   return 0;
27622 }
27623 _ACEOF
27624 rm -f conftest.$ac_objext conftest$ac_exeext
27625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27626   (eval $ac_link) 2>conftest.er1
27627   ac_status=$?
27628   grep -v '^ *+' conftest.er1 >conftest.err
27629   rm -f conftest.er1
27630   cat conftest.err >&5
27631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632   (exit $ac_status); } &&
27633          { ac_try='test -z "$ac_c_werror_flag"
27634                          || test ! -s conftest.err'
27635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636   (eval $ac_try) 2>&5
27637   ac_status=$?
27638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); }; } &&
27640          { ac_try='test -s conftest$ac_exeext'
27641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642   (eval $ac_try) 2>&5
27643   ac_status=$?
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); }; }; then
27646   ol_cv_resolver_bind=yes
27647 else
27648   echo "$as_me: failed program was:" >&5
27649 sed 's/^/| /' conftest.$ac_ext >&5
27650
27651 ol_cv_resolver_bind=no
27652 fi
27653 rm -f conftest.err conftest.$ac_objext \
27654       conftest$ac_exeext conftest.$ac_ext
27655
27656         LIBS="$ol_LIBS"
27657
27658 fi
27659 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27660 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27661
27662         if test $ol_cv_resolver_bind = yes ; then
27663                 ol_cv_lib_resolver=-lbind
27664         fi
27665 fi
27666
27667
27668
27669 ol_link_dnssrv=no
27670 if test "$ol_cv_lib_resolver" != no ; then
27671
27672 cat >>confdefs.h <<\_ACEOF
27673 #define HAVE_RES_QUERY 1
27674 _ACEOF
27675
27676
27677         if test "$ol_enable_dnssrv" != no ; then
27678                 ol_link_dnssrv=yes
27679         fi
27680
27681         if test "$ol_cv_lib_resolver" != yes ; then
27682                 LIBS="$ol_cv_lib_resolver $LIBS"
27683         fi
27684 fi
27685
27686 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27687         if test "$ol_link_dnssrv" = no ; then
27688                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27689 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27690    { (exit 1); exit 1; }; }
27691         fi
27692 else
27693         ol_enable_dnssrv=no
27694 fi
27695
27696
27697 for ac_func in hstrerror
27698 do
27699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27700 echo "$as_me:$LINENO: checking for $ac_func" >&5
27701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27702 if eval "test \"\${$as_ac_var+set}\" = set"; then
27703   echo $ECHO_N "(cached) $ECHO_C" >&6
27704 else
27705   cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h.  */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h.  */
27711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27713 #define $ac_func innocuous_$ac_func
27714
27715 /* System header to define __stub macros and hopefully few prototypes,
27716     which can conflict with char $ac_func (); below.
27717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27718     <limits.h> exists even on freestanding compilers.  */
27719
27720 #ifdef __STDC__
27721 # include <limits.h>
27722 #else
27723 # include <assert.h>
27724 #endif
27725
27726 #undef $ac_func
27727
27728 /* Override any gcc2 internal prototype to avoid an error.  */
27729 #ifdef __cplusplus
27730 extern "C"
27731 {
27732 #endif
27733 /* We use char because int might match the return type of a gcc2
27734    builtin and then its argument prototype would still apply.  */
27735 char $ac_func ();
27736 /* The GNU C library defines this for functions which it implements
27737     to always fail with ENOSYS.  Some functions are actually named
27738     something starting with __ and the normal name is an alias.  */
27739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27740 choke me
27741 #else
27742 char (*f) () = $ac_func;
27743 #endif
27744 #ifdef __cplusplus
27745 }
27746 #endif
27747
27748 int
27749 main ()
27750 {
27751 return f != $ac_func;
27752   ;
27753   return 0;
27754 }
27755 _ACEOF
27756 rm -f conftest.$ac_objext conftest$ac_exeext
27757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27758   (eval $ac_link) 2>conftest.er1
27759   ac_status=$?
27760   grep -v '^ *+' conftest.er1 >conftest.err
27761   rm -f conftest.er1
27762   cat conftest.err >&5
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); } &&
27765          { ac_try='test -z "$ac_c_werror_flag"
27766                          || test ! -s conftest.err'
27767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768   (eval $ac_try) 2>&5
27769   ac_status=$?
27770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771   (exit $ac_status); }; } &&
27772          { ac_try='test -s conftest$ac_exeext'
27773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774   (eval $ac_try) 2>&5
27775   ac_status=$?
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); }; }; then
27778   eval "$as_ac_var=yes"
27779 else
27780   echo "$as_me: failed program was:" >&5
27781 sed 's/^/| /' conftest.$ac_ext >&5
27782
27783 eval "$as_ac_var=no"
27784 fi
27785 rm -f conftest.err conftest.$ac_objext \
27786       conftest$ac_exeext conftest.$ac_ext
27787 fi
27788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27790 if test `eval echo '${'$as_ac_var'}'` = yes; then
27791   cat >>confdefs.h <<_ACEOF
27792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27793 _ACEOF
27794
27795 fi
27796 done
27797
27798
27799
27800
27801
27802
27803 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27804 do
27805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27806 echo "$as_me:$LINENO: checking for $ac_func" >&5
27807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27808 if eval "test \"\${$as_ac_var+set}\" = set"; then
27809   echo $ECHO_N "(cached) $ECHO_C" >&6
27810 else
27811   cat >conftest.$ac_ext <<_ACEOF
27812 /* confdefs.h.  */
27813 _ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h.  */
27817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27819 #define $ac_func innocuous_$ac_func
27820
27821 /* System header to define __stub macros and hopefully few prototypes,
27822     which can conflict with char $ac_func (); below.
27823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27824     <limits.h> exists even on freestanding compilers.  */
27825
27826 #ifdef __STDC__
27827 # include <limits.h>
27828 #else
27829 # include <assert.h>
27830 #endif
27831
27832 #undef $ac_func
27833
27834 /* Override any gcc2 internal prototype to avoid an error.  */
27835 #ifdef __cplusplus
27836 extern "C"
27837 {
27838 #endif
27839 /* We use char because int might match the return type of a gcc2
27840    builtin and then its argument prototype would still apply.  */
27841 char $ac_func ();
27842 /* The GNU C library defines this for functions which it implements
27843     to always fail with ENOSYS.  Some functions are actually named
27844     something starting with __ and the normal name is an alias.  */
27845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27846 choke me
27847 #else
27848 char (*f) () = $ac_func;
27849 #endif
27850 #ifdef __cplusplus
27851 }
27852 #endif
27853
27854 int
27855 main ()
27856 {
27857 return f != $ac_func;
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27864   (eval $ac_link) 2>conftest.er1
27865   ac_status=$?
27866   grep -v '^ *+' conftest.er1 >conftest.err
27867   rm -f conftest.er1
27868   cat conftest.err >&5
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); } &&
27871          { ac_try='test -z "$ac_c_werror_flag"
27872                          || test ! -s conftest.err'
27873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874   (eval $ac_try) 2>&5
27875   ac_status=$?
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); }; } &&
27878          { ac_try='test -s conftest$ac_exeext'
27879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880   (eval $ac_try) 2>&5
27881   ac_status=$?
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); }; }; then
27884   eval "$as_ac_var=yes"
27885 else
27886   echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27888
27889 eval "$as_ac_var=no"
27890 fi
27891 rm -f conftest.err conftest.$ac_objext \
27892       conftest$ac_exeext conftest.$ac_ext
27893 fi
27894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27896 if test `eval echo '${'$as_ac_var'}'` = yes; then
27897   cat >>confdefs.h <<_ACEOF
27898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27899 _ACEOF
27900
27901 fi
27902 done
27903
27904
27905 ol_link_ipv6=no
27906 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27907         if test $ol_enable_ipv6 = yes ; then
27908                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27909 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27910    { (exit 1); exit 1; }; }
27911         fi
27912 elif test $ol_enable_ipv6 != no ; then
27913         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27914 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27915 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27916   echo $ECHO_N "(cached) $ECHO_C" >&6
27917 else
27918
27919                 cat >conftest.$ac_ext <<_ACEOF
27920 /* confdefs.h.  */
27921 _ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h.  */
27925
27926 #                       include <netinet/in.h>
27927 #                       ifdef INET6_ADDRSTRLEN
27928                                 __has_inet6_addrstrlen__;
27929 #                       endif
27930
27931 _ACEOF
27932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27933   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27934   ol_cv_inet6_addrstrlen=yes
27935 else
27936   ol_cv_inet6_addrstrlen=no
27937 fi
27938 rm -f conftest*
27939
27940 fi
27941 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27942 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27943
27944
27945         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27946 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27947 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27948   echo $ECHO_N "(cached) $ECHO_C" >&6
27949 else
27950
27951                 cat >conftest.$ac_ext <<_ACEOF
27952 /* confdefs.h.  */
27953 _ACEOF
27954 cat confdefs.h >>conftest.$ac_ext
27955 cat >>conftest.$ac_ext <<_ACEOF
27956 /* end confdefs.h.  */
27957
27958 #include <sys/types.h>
27959 #include <sys/socket.h>
27960
27961 int
27962 main ()
27963 {
27964
27965                         struct sockaddr_storage ss;
27966
27967   ;
27968   return 0;
27969 }
27970 _ACEOF
27971 rm -f conftest.$ac_objext
27972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27973   (eval $ac_compile) 2>conftest.er1
27974   ac_status=$?
27975   grep -v '^ *+' conftest.er1 >conftest.err
27976   rm -f conftest.er1
27977   cat conftest.err >&5
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); } &&
27980          { ac_try='test -z "$ac_c_werror_flag"
27981                          || test ! -s conftest.err'
27982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983   (eval $ac_try) 2>&5
27984   ac_status=$?
27985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986   (exit $ac_status); }; } &&
27987          { ac_try='test -s conftest.$ac_objext'
27988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989   (eval $ac_try) 2>&5
27990   ac_status=$?
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); }; }; then
27993   ol_cv_struct_sockaddr_storage=yes
27994 else
27995   echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27997
27998 ol_cv_struct_sockaddr_storage=no
27999 fi
28000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28001 fi
28002 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
28003 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
28004
28005         if test $ol_cv_inet6_addrstrlen = yes \
28006                 -a $ol_cv_struct_sockaddr_storage = yes ; then
28007                 ol_link_ipv6=yes
28008         elif test $ol_enable_ipv6 = yes \
28009                         -a $ol_cv_inet6_addrstrlen = no ; then
28010                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
28011 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
28012    { (exit 1); exit 1; }; }
28013         elif test $ol_enable_ipv6 = yes \
28014                         -a $ol_cv_struct_sockaddr_storage = no ; then
28015                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
28016 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
28017    { (exit 1); exit 1; }; }
28018         fi
28019 fi
28020
28021 if test $ol_enable_local != no ; then
28022
28023 for ac_header in sys/un.h
28024 do
28025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28027   echo "$as_me:$LINENO: checking for $ac_header" >&5
28028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28030   echo $ECHO_N "(cached) $ECHO_C" >&6
28031 fi
28032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28034 else
28035   # Is the header compilable?
28036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28038 cat >conftest.$ac_ext <<_ACEOF
28039 /* confdefs.h.  */
28040 _ACEOF
28041 cat confdefs.h >>conftest.$ac_ext
28042 cat >>conftest.$ac_ext <<_ACEOF
28043 /* end confdefs.h.  */
28044 $ac_includes_default
28045 #include <$ac_header>
28046 _ACEOF
28047 rm -f conftest.$ac_objext
28048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28049   (eval $ac_compile) 2>conftest.er1
28050   ac_status=$?
28051   grep -v '^ *+' conftest.er1 >conftest.err
28052   rm -f conftest.er1
28053   cat conftest.err >&5
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); } &&
28056          { ac_try='test -z "$ac_c_werror_flag"
28057                          || test ! -s conftest.err'
28058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28059   (eval $ac_try) 2>&5
28060   ac_status=$?
28061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062   (exit $ac_status); }; } &&
28063          { ac_try='test -s conftest.$ac_objext'
28064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28065   (eval $ac_try) 2>&5
28066   ac_status=$?
28067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068   (exit $ac_status); }; }; then
28069   ac_header_compiler=yes
28070 else
28071   echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28073
28074 ac_header_compiler=no
28075 fi
28076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28078 echo "${ECHO_T}$ac_header_compiler" >&6
28079
28080 # Is the header present?
28081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28083 cat >conftest.$ac_ext <<_ACEOF
28084 /* confdefs.h.  */
28085 _ACEOF
28086 cat confdefs.h >>conftest.$ac_ext
28087 cat >>conftest.$ac_ext <<_ACEOF
28088 /* end confdefs.h.  */
28089 #include <$ac_header>
28090 _ACEOF
28091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28093   ac_status=$?
28094   grep -v '^ *+' conftest.er1 >conftest.err
28095   rm -f conftest.er1
28096   cat conftest.err >&5
28097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098   (exit $ac_status); } >/dev/null; then
28099   if test -s conftest.err; then
28100     ac_cpp_err=$ac_c_preproc_warn_flag
28101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28102   else
28103     ac_cpp_err=
28104   fi
28105 else
28106   ac_cpp_err=yes
28107 fi
28108 if test -z "$ac_cpp_err"; then
28109   ac_header_preproc=yes
28110 else
28111   echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28113
28114   ac_header_preproc=no
28115 fi
28116 rm -f conftest.err conftest.$ac_ext
28117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28118 echo "${ECHO_T}$ac_header_preproc" >&6
28119
28120 # So?  What about this header?
28121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28122   yes:no: )
28123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28127     ac_header_preproc=yes
28128     ;;
28129   no:yes:* )
28130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28142     (
28143       cat <<\_ASBOX
28144 ## ------------------------------------------ ##
28145 ## Report this to the AC_PACKAGE_NAME lists.  ##
28146 ## ------------------------------------------ ##
28147 _ASBOX
28148     ) |
28149       sed "s/^/$as_me: WARNING:     /" >&2
28150     ;;
28151 esac
28152 echo "$as_me:$LINENO: checking for $ac_header" >&5
28153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28155   echo $ECHO_N "(cached) $ECHO_C" >&6
28156 else
28157   eval "$as_ac_Header=\$ac_header_preproc"
28158 fi
28159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28161
28162 fi
28163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28164   cat >>confdefs.h <<_ACEOF
28165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28166 _ACEOF
28167
28168 fi
28169
28170 done
28171
28172
28173         if test $ol_enable_local = auto ; then
28174                 ol_enable_local=$ac_cv_header_sys_un_h
28175         elif test $ac_cv_header_sys_un_h = no ; then
28176                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28177 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28178    { (exit 1); exit 1; }; }
28179         fi
28180 fi
28181
28182 ol_link_kbind=no
28183 ol_link_krb5=no
28184 ol_link_krb4=no
28185
28186 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28187         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28188         -o $ol_with_kerberos = k425 ; then
28189
28190
28191 for ac_header in krb5.h
28192 do
28193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28195   echo "$as_me:$LINENO: checking for $ac_header" >&5
28196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28198   echo $ECHO_N "(cached) $ECHO_C" >&6
28199 fi
28200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28202 else
28203   # Is the header compilable?
28204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28206 cat >conftest.$ac_ext <<_ACEOF
28207 /* confdefs.h.  */
28208 _ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h.  */
28212 $ac_includes_default
28213 #include <$ac_header>
28214 _ACEOF
28215 rm -f conftest.$ac_objext
28216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28217   (eval $ac_compile) 2>conftest.er1
28218   ac_status=$?
28219   grep -v '^ *+' conftest.er1 >conftest.err
28220   rm -f conftest.er1
28221   cat conftest.err >&5
28222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223   (exit $ac_status); } &&
28224          { ac_try='test -z "$ac_c_werror_flag"
28225                          || test ! -s conftest.err'
28226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28227   (eval $ac_try) 2>&5
28228   ac_status=$?
28229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230   (exit $ac_status); }; } &&
28231          { ac_try='test -s conftest.$ac_objext'
28232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28233   (eval $ac_try) 2>&5
28234   ac_status=$?
28235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236   (exit $ac_status); }; }; then
28237   ac_header_compiler=yes
28238 else
28239   echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28241
28242 ac_header_compiler=no
28243 fi
28244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28246 echo "${ECHO_T}$ac_header_compiler" >&6
28247
28248 # Is the header present?
28249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28251 cat >conftest.$ac_ext <<_ACEOF
28252 /* confdefs.h.  */
28253 _ACEOF
28254 cat confdefs.h >>conftest.$ac_ext
28255 cat >>conftest.$ac_ext <<_ACEOF
28256 /* end confdefs.h.  */
28257 #include <$ac_header>
28258 _ACEOF
28259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28261   ac_status=$?
28262   grep -v '^ *+' conftest.er1 >conftest.err
28263   rm -f conftest.er1
28264   cat conftest.err >&5
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); } >/dev/null; then
28267   if test -s conftest.err; then
28268     ac_cpp_err=$ac_c_preproc_warn_flag
28269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28270   else
28271     ac_cpp_err=
28272   fi
28273 else
28274   ac_cpp_err=yes
28275 fi
28276 if test -z "$ac_cpp_err"; then
28277   ac_header_preproc=yes
28278 else
28279   echo "$as_me: failed program was:" >&5
28280 sed 's/^/| /' conftest.$ac_ext >&5
28281
28282   ac_header_preproc=no
28283 fi
28284 rm -f conftest.err conftest.$ac_ext
28285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28286 echo "${ECHO_T}$ac_header_preproc" >&6
28287
28288 # So?  What about this header?
28289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28290   yes:no: )
28291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28295     ac_header_preproc=yes
28296     ;;
28297   no:yes:* )
28298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28310     (
28311       cat <<\_ASBOX
28312 ## ------------------------------------------ ##
28313 ## Report this to the AC_PACKAGE_NAME lists.  ##
28314 ## ------------------------------------------ ##
28315 _ASBOX
28316     ) |
28317       sed "s/^/$as_me: WARNING:     /" >&2
28318     ;;
28319 esac
28320 echo "$as_me:$LINENO: checking for $ac_header" >&5
28321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28323   echo $ECHO_N "(cached) $ECHO_C" >&6
28324 else
28325   eval "$as_ac_Header=\$ac_header_preproc"
28326 fi
28327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28329
28330 fi
28331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28332   cat >>confdefs.h <<_ACEOF
28333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28334 _ACEOF
28335
28336 fi
28337
28338 done
28339
28340
28341         if test $ac_cv_header_krb5_h = yes ; then
28342
28343 for ac_header in heim_err.h
28344 do
28345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28347   echo "$as_me:$LINENO: checking for $ac_header" >&5
28348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28350   echo $ECHO_N "(cached) $ECHO_C" >&6
28351 fi
28352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28354 else
28355   # Is the header compilable?
28356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28358 cat >conftest.$ac_ext <<_ACEOF
28359 /* confdefs.h.  */
28360 _ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h.  */
28364 $ac_includes_default
28365 #include <$ac_header>
28366 _ACEOF
28367 rm -f conftest.$ac_objext
28368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28369   (eval $ac_compile) 2>conftest.er1
28370   ac_status=$?
28371   grep -v '^ *+' conftest.er1 >conftest.err
28372   rm -f conftest.er1
28373   cat conftest.err >&5
28374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375   (exit $ac_status); } &&
28376          { ac_try='test -z "$ac_c_werror_flag"
28377                          || test ! -s conftest.err'
28378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379   (eval $ac_try) 2>&5
28380   ac_status=$?
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); }; } &&
28383          { ac_try='test -s conftest.$ac_objext'
28384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28385   (eval $ac_try) 2>&5
28386   ac_status=$?
28387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388   (exit $ac_status); }; }; then
28389   ac_header_compiler=yes
28390 else
28391   echo "$as_me: failed program was:" >&5
28392 sed 's/^/| /' conftest.$ac_ext >&5
28393
28394 ac_header_compiler=no
28395 fi
28396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28398 echo "${ECHO_T}$ac_header_compiler" >&6
28399
28400 # Is the header present?
28401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28403 cat >conftest.$ac_ext <<_ACEOF
28404 /* confdefs.h.  */
28405 _ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h.  */
28409 #include <$ac_header>
28410 _ACEOF
28411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28413   ac_status=$?
28414   grep -v '^ *+' conftest.er1 >conftest.err
28415   rm -f conftest.er1
28416   cat conftest.err >&5
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); } >/dev/null; then
28419   if test -s conftest.err; then
28420     ac_cpp_err=$ac_c_preproc_warn_flag
28421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28422   else
28423     ac_cpp_err=
28424   fi
28425 else
28426   ac_cpp_err=yes
28427 fi
28428 if test -z "$ac_cpp_err"; then
28429   ac_header_preproc=yes
28430 else
28431   echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28433
28434   ac_header_preproc=no
28435 fi
28436 rm -f conftest.err conftest.$ac_ext
28437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28438 echo "${ECHO_T}$ac_header_preproc" >&6
28439
28440 # So?  What about this header?
28441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28442   yes:no: )
28443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28447     ac_header_preproc=yes
28448     ;;
28449   no:yes:* )
28450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28462     (
28463       cat <<\_ASBOX
28464 ## ------------------------------------------ ##
28465 ## Report this to the AC_PACKAGE_NAME lists.  ##
28466 ## ------------------------------------------ ##
28467 _ASBOX
28468     ) |
28469       sed "s/^/$as_me: WARNING:     /" >&2
28470     ;;
28471 esac
28472 echo "$as_me:$LINENO: checking for $ac_header" >&5
28473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28475   echo $ECHO_N "(cached) $ECHO_C" >&6
28476 else
28477   eval "$as_ac_Header=\$ac_header_preproc"
28478 fi
28479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28481
28482 fi
28483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28484   cat >>confdefs.h <<_ACEOF
28485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28486 _ACEOF
28487
28488 fi
28489
28490 done
28491
28492                 if test $ac_cv_header_heim_err_h = yes ; then
28493                         krb5_impl=heimdal
28494                 else
28495                         krb5_impl=mit
28496                 fi
28497
28498                 if test $krb5_impl = mit; then
28499                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28500 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28501 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28502   echo $ECHO_N "(cached) $ECHO_C" >&6
28503 else
28504   ac_check_lib_save_LIBS=$LIBS
28505 LIBS="-lk5crypto  $LIBS"
28506 cat >conftest.$ac_ext <<_ACEOF
28507 /* confdefs.h.  */
28508 _ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h.  */
28512
28513
28514 int
28515 main ()
28516 {
28517 main ();
28518   ;
28519   return 0;
28520 }
28521 _ACEOF
28522 rm -f conftest.$ac_objext conftest$ac_exeext
28523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28524   (eval $ac_link) 2>conftest.er1
28525   ac_status=$?
28526   grep -v '^ *+' conftest.er1 >conftest.err
28527   rm -f conftest.er1
28528   cat conftest.err >&5
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); } &&
28531          { ac_try='test -z "$ac_c_werror_flag"
28532                          || test ! -s conftest.err'
28533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534   (eval $ac_try) 2>&5
28535   ac_status=$?
28536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); }; } &&
28538          { ac_try='test -s conftest$ac_exeext'
28539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540   (eval $ac_try) 2>&5
28541   ac_status=$?
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); }; }; then
28544   ac_cv_lib_k5crypto_main=yes
28545 else
28546   echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28548
28549 ac_cv_lib_k5crypto_main=no
28550 fi
28551 rm -f conftest.err conftest.$ac_objext \
28552       conftest$ac_exeext conftest.$ac_ext
28553 LIBS=$ac_check_lib_save_LIBS
28554 fi
28555 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28556 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28557 if test $ac_cv_lib_k5crypto_main = yes; then
28558   krb5crypto=k5crypto
28559 else
28560   krb5crypto=crypto
28561 fi
28562
28563
28564                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28565 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28566 if test "${ac_cv_lib_krb5_main+set}" = set; then
28567   echo $ECHO_N "(cached) $ECHO_C" >&6
28568 else
28569   ac_check_lib_save_LIBS=$LIBS
28570 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28571 cat >conftest.$ac_ext <<_ACEOF
28572 /* confdefs.h.  */
28573 _ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h.  */
28577
28578
28579 int
28580 main ()
28581 {
28582 main ();
28583   ;
28584   return 0;
28585 }
28586 _ACEOF
28587 rm -f conftest.$ac_objext conftest$ac_exeext
28588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28589   (eval $ac_link) 2>conftest.er1
28590   ac_status=$?
28591   grep -v '^ *+' conftest.er1 >conftest.err
28592   rm -f conftest.er1
28593   cat conftest.err >&5
28594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595   (exit $ac_status); } &&
28596          { ac_try='test -z "$ac_c_werror_flag"
28597                          || test ! -s conftest.err'
28598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599   (eval $ac_try) 2>&5
28600   ac_status=$?
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); }; } &&
28603          { ac_try='test -s conftest$ac_exeext'
28604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605   (eval $ac_try) 2>&5
28606   ac_status=$?
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); }; }; then
28609   ac_cv_lib_krb5_main=yes
28610 else
28611   echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28613
28614 ac_cv_lib_krb5_main=no
28615 fi
28616 rm -f conftest.err conftest.$ac_objext \
28617       conftest$ac_exeext conftest.$ac_ext
28618 LIBS=$ac_check_lib_save_LIBS
28619 fi
28620 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28621 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28622 if test $ac_cv_lib_krb5_main = yes; then
28623   have_krb5=yes
28624                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28625 else
28626   have_krb5=no
28627 fi
28628
28629
28630                 elif test $krb5_impl = heimdal; then
28631                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28632 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28633 if test "${ac_cv_lib_des_main+set}" = set; then
28634   echo $ECHO_N "(cached) $ECHO_C" >&6
28635 else
28636   ac_check_lib_save_LIBS=$LIBS
28637 LIBS="-ldes  $LIBS"
28638 cat >conftest.$ac_ext <<_ACEOF
28639 /* confdefs.h.  */
28640 _ACEOF
28641 cat confdefs.h >>conftest.$ac_ext
28642 cat >>conftest.$ac_ext <<_ACEOF
28643 /* end confdefs.h.  */
28644
28645
28646 int
28647 main ()
28648 {
28649 main ();
28650   ;
28651   return 0;
28652 }
28653 _ACEOF
28654 rm -f conftest.$ac_objext conftest$ac_exeext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28656   (eval $ac_link) 2>conftest.er1
28657   ac_status=$?
28658   grep -v '^ *+' conftest.er1 >conftest.err
28659   rm -f conftest.er1
28660   cat conftest.err >&5
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); } &&
28663          { ac_try='test -z "$ac_c_werror_flag"
28664                          || test ! -s conftest.err'
28665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666   (eval $ac_try) 2>&5
28667   ac_status=$?
28668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); }; } &&
28670          { ac_try='test -s conftest$ac_exeext'
28671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672   (eval $ac_try) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; }; then
28676   ac_cv_lib_des_main=yes
28677 else
28678   echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28680
28681 ac_cv_lib_des_main=no
28682 fi
28683 rm -f conftest.err conftest.$ac_objext \
28684       conftest$ac_exeext conftest.$ac_ext
28685 LIBS=$ac_check_lib_save_LIBS
28686 fi
28687 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28688 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28689 if test $ac_cv_lib_des_main = yes; then
28690   krb5crypto=des
28691 else
28692   krb5crypto=crypto
28693 fi
28694
28695
28696                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28697 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28698 if test "${ac_cv_lib_krb5_main+set}" = set; then
28699   echo $ECHO_N "(cached) $ECHO_C" >&6
28700 else
28701   ac_check_lib_save_LIBS=$LIBS
28702 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28703 cat >conftest.$ac_ext <<_ACEOF
28704 /* confdefs.h.  */
28705 _ACEOF
28706 cat confdefs.h >>conftest.$ac_ext
28707 cat >>conftest.$ac_ext <<_ACEOF
28708 /* end confdefs.h.  */
28709
28710
28711 int
28712 main ()
28713 {
28714 main ();
28715   ;
28716   return 0;
28717 }
28718 _ACEOF
28719 rm -f conftest.$ac_objext conftest$ac_exeext
28720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28721   (eval $ac_link) 2>conftest.er1
28722   ac_status=$?
28723   grep -v '^ *+' conftest.er1 >conftest.err
28724   rm -f conftest.er1
28725   cat conftest.err >&5
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); } &&
28728          { ac_try='test -z "$ac_c_werror_flag"
28729                          || test ! -s conftest.err'
28730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28731   (eval $ac_try) 2>&5
28732   ac_status=$?
28733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734   (exit $ac_status); }; } &&
28735          { ac_try='test -s conftest$ac_exeext'
28736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737   (eval $ac_try) 2>&5
28738   ac_status=$?
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); }; }; then
28741   ac_cv_lib_krb5_main=yes
28742 else
28743   echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28745
28746 ac_cv_lib_krb5_main=no
28747 fi
28748 rm -f conftest.err conftest.$ac_objext \
28749       conftest$ac_exeext conftest.$ac_ext
28750 LIBS=$ac_check_lib_save_LIBS
28751 fi
28752 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28753 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28754 if test $ac_cv_lib_krb5_main = yes; then
28755   have_krb5=yes
28756                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28757 else
28758   have_krb5=no
28759 fi
28760
28761
28762
28763 cat >>confdefs.h <<\_ACEOF
28764 #define HAVE_HEIMDAL_KERBEROS 1
28765 _ACEOF
28766
28767
28768                 else
28769                         have_krb5=no
28770                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28771 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28772                 fi
28773
28774                 if test $have_krb5 = yes ; then
28775                         ol_link_krb5=yes
28776
28777
28778 cat >>confdefs.h <<\_ACEOF
28779 #define HAVE_KRB5 1
28780 _ACEOF
28781
28782
28783                         if test $ol_with_kerberos = k5only ; then
28784                                 ol_with_kerberos=found
28785                         fi
28786
28787                 elif test $ol_with_kerberos != auto ; then
28788                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28789 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28790    { (exit 1); exit 1; }; }
28791                 fi
28792
28793         fi
28794 fi
28795
28796 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28797         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28798
28799
28800
28801 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28802 do
28803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28805   echo "$as_me:$LINENO: checking for $ac_header" >&5
28806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28808   echo $ECHO_N "(cached) $ECHO_C" >&6
28809 fi
28810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28812 else
28813   # Is the header compilable?
28814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28816 cat >conftest.$ac_ext <<_ACEOF
28817 /* confdefs.h.  */
28818 _ACEOF
28819 cat confdefs.h >>conftest.$ac_ext
28820 cat >>conftest.$ac_ext <<_ACEOF
28821 /* end confdefs.h.  */
28822 $ac_includes_default
28823 #include <$ac_header>
28824 _ACEOF
28825 rm -f conftest.$ac_objext
28826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28827   (eval $ac_compile) 2>conftest.er1
28828   ac_status=$?
28829   grep -v '^ *+' conftest.er1 >conftest.err
28830   rm -f conftest.er1
28831   cat conftest.err >&5
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); } &&
28834          { ac_try='test -z "$ac_c_werror_flag"
28835                          || test ! -s conftest.err'
28836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837   (eval $ac_try) 2>&5
28838   ac_status=$?
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; } &&
28841          { ac_try='test -s conftest.$ac_objext'
28842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843   (eval $ac_try) 2>&5
28844   ac_status=$?
28845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846   (exit $ac_status); }; }; then
28847   ac_header_compiler=yes
28848 else
28849   echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28851
28852 ac_header_compiler=no
28853 fi
28854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28856 echo "${ECHO_T}$ac_header_compiler" >&6
28857
28858 # Is the header present?
28859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28861 cat >conftest.$ac_ext <<_ACEOF
28862 /* confdefs.h.  */
28863 _ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h.  */
28867 #include <$ac_header>
28868 _ACEOF
28869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28871   ac_status=$?
28872   grep -v '^ *+' conftest.er1 >conftest.err
28873   rm -f conftest.er1
28874   cat conftest.err >&5
28875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876   (exit $ac_status); } >/dev/null; then
28877   if test -s conftest.err; then
28878     ac_cpp_err=$ac_c_preproc_warn_flag
28879     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28880   else
28881     ac_cpp_err=
28882   fi
28883 else
28884   ac_cpp_err=yes
28885 fi
28886 if test -z "$ac_cpp_err"; then
28887   ac_header_preproc=yes
28888 else
28889   echo "$as_me: failed program was:" >&5
28890 sed 's/^/| /' conftest.$ac_ext >&5
28891
28892   ac_header_preproc=no
28893 fi
28894 rm -f conftest.err conftest.$ac_ext
28895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28896 echo "${ECHO_T}$ac_header_preproc" >&6
28897
28898 # So?  What about this header?
28899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28900   yes:no: )
28901     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28905     ac_header_preproc=yes
28906     ;;
28907   no:yes:* )
28908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28910     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28911 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28912     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28914     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28915 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28918     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28920     (
28921       cat <<\_ASBOX
28922 ## ------------------------------------------ ##
28923 ## Report this to the AC_PACKAGE_NAME lists.  ##
28924 ## ------------------------------------------ ##
28925 _ASBOX
28926     ) |
28927       sed "s/^/$as_me: WARNING:     /" >&2
28928     ;;
28929 esac
28930 echo "$as_me:$LINENO: checking for $ac_header" >&5
28931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28933   echo $ECHO_N "(cached) $ECHO_C" >&6
28934 else
28935   eval "$as_ac_Header=\$ac_header_preproc"
28936 fi
28937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28939
28940 fi
28941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28942   cat >>confdefs.h <<_ACEOF
28943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28944 _ACEOF
28945
28946 fi
28947
28948 done
28949
28950
28951         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28952                 if test $krb5_impl = mit; then
28953                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28954 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28955 if test "${ac_cv_lib_krb4_main+set}" = set; then
28956   echo $ECHO_N "(cached) $ECHO_C" >&6
28957 else
28958   ac_check_lib_save_LIBS=$LIBS
28959 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28960 cat >conftest.$ac_ext <<_ACEOF
28961 /* confdefs.h.  */
28962 _ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h.  */
28966
28967
28968 int
28969 main ()
28970 {
28971 main ();
28972   ;
28973   return 0;
28974 }
28975 _ACEOF
28976 rm -f conftest.$ac_objext conftest$ac_exeext
28977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28978   (eval $ac_link) 2>conftest.er1
28979   ac_status=$?
28980   grep -v '^ *+' conftest.er1 >conftest.err
28981   rm -f conftest.er1
28982   cat conftest.err >&5
28983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984   (exit $ac_status); } &&
28985          { ac_try='test -z "$ac_c_werror_flag"
28986                          || test ! -s conftest.err'
28987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988   (eval $ac_try) 2>&5
28989   ac_status=$?
28990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991   (exit $ac_status); }; } &&
28992          { ac_try='test -s conftest$ac_exeext'
28993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994   (eval $ac_try) 2>&5
28995   ac_status=$?
28996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997   (exit $ac_status); }; }; then
28998   ac_cv_lib_krb4_main=yes
28999 else
29000   echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29002
29003 ac_cv_lib_krb4_main=no
29004 fi
29005 rm -f conftest.err conftest.$ac_objext \
29006       conftest$ac_exeext conftest.$ac_ext
29007 LIBS=$ac_check_lib_save_LIBS
29008 fi
29009 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29010 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29011 if test $ac_cv_lib_krb4_main = yes; then
29012   have_k425=yes
29013                                 KRB4_LIBS="-lkrb4 -ldes425"
29014 else
29015   have_k425=no
29016 fi
29017
29018
29019                 elif test $krb5_impl = heimdal; then
29020                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
29021 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
29022 if test "${ac_cv_lib_krb4_main+set}" = set; then
29023   echo $ECHO_N "(cached) $ECHO_C" >&6
29024 else
29025   ac_check_lib_save_LIBS=$LIBS
29026 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
29027 cat >conftest.$ac_ext <<_ACEOF
29028 /* confdefs.h.  */
29029 _ACEOF
29030 cat confdefs.h >>conftest.$ac_ext
29031 cat >>conftest.$ac_ext <<_ACEOF
29032 /* end confdefs.h.  */
29033
29034
29035 int
29036 main ()
29037 {
29038 main ();
29039   ;
29040   return 0;
29041 }
29042 _ACEOF
29043 rm -f conftest.$ac_objext conftest$ac_exeext
29044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29045   (eval $ac_link) 2>conftest.er1
29046   ac_status=$?
29047   grep -v '^ *+' conftest.er1 >conftest.err
29048   rm -f conftest.er1
29049   cat conftest.err >&5
29050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051   (exit $ac_status); } &&
29052          { ac_try='test -z "$ac_c_werror_flag"
29053                          || test ! -s conftest.err'
29054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055   (eval $ac_try) 2>&5
29056   ac_status=$?
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); }; } &&
29059          { ac_try='test -s conftest$ac_exeext'
29060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061   (eval $ac_try) 2>&5
29062   ac_status=$?
29063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064   (exit $ac_status); }; }; then
29065   ac_cv_lib_krb4_main=yes
29066 else
29067   echo "$as_me: failed program was:" >&5
29068 sed 's/^/| /' conftest.$ac_ext >&5
29069
29070 ac_cv_lib_krb4_main=no
29071 fi
29072 rm -f conftest.err conftest.$ac_objext \
29073       conftest$ac_exeext conftest.$ac_ext
29074 LIBS=$ac_check_lib_save_LIBS
29075 fi
29076 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29077 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29078 if test $ac_cv_lib_krb4_main = yes; then
29079   have_k425=yes
29080                                 KRB4_LIBS="-lkrb4"
29081 else
29082   have_k425=no
29083 fi
29084
29085
29086                 else
29087                         have_425=no
29088                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
29089 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
29090                 fi
29091
29092                 if test $have_k425 = yes ; then
29093                         ol_with_kerberos=found
29094                         ol_link_krb4=yes
29095
29096
29097 cat >>confdefs.h <<\_ACEOF
29098 #define HAVE_KRB425 1
29099 _ACEOF
29100
29101
29102 cat >>confdefs.h <<\_ACEOF
29103 #define HAVE_KRB4 1
29104 _ACEOF
29105
29106
29107                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
29108 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
29109 if test "${ol_cv_var_des_debug+set}" = set; then
29110   echo $ECHO_N "(cached) $ECHO_C" >&6
29111 else
29112
29113                                                                 save_LIBS="$LIBS"
29114                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
29115                                 cat >conftest.$ac_ext <<_ACEOF
29116 /* confdefs.h.  */
29117 _ACEOF
29118 cat confdefs.h >>conftest.$ac_ext
29119 cat >>conftest.$ac_ext <<_ACEOF
29120 /* end confdefs.h.  */
29121
29122 #include <kerberosIV/krb.h>
29123 #include <kerberosIV/des.h>
29124 extern int des_debug;
29125
29126 int
29127 main ()
29128 {
29129
29130 des_debug = 1;
29131
29132   ;
29133   return 0;
29134 }
29135 _ACEOF
29136 rm -f conftest.$ac_objext conftest$ac_exeext
29137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29138   (eval $ac_link) 2>conftest.er1
29139   ac_status=$?
29140   grep -v '^ *+' conftest.er1 >conftest.err
29141   rm -f conftest.er1
29142   cat conftest.err >&5
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); } &&
29145          { ac_try='test -z "$ac_c_werror_flag"
29146                          || test ! -s conftest.err'
29147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148   (eval $ac_try) 2>&5
29149   ac_status=$?
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); }; } &&
29152          { ac_try='test -s conftest$ac_exeext'
29153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154   (eval $ac_try) 2>&5
29155   ac_status=$?
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); }; }; then
29158   ol_cv_var_des_debug=yes
29159 else
29160   echo "$as_me: failed program was:" >&5
29161 sed 's/^/| /' conftest.$ac_ext >&5
29162
29163 ol_cv_var_des_debug=no
29164 fi
29165 rm -f conftest.err conftest.$ac_objext \
29166       conftest$ac_exeext conftest.$ac_ext
29167                                                                 LIBS="$save_LIBS"
29168
29169 fi
29170 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29171 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29172
29173                         if test $ol_cv_var_des_debug = yes ; then
29174
29175 cat >>confdefs.h <<\_ACEOF
29176 #define HAVE_DES_DEBUG 1
29177 _ACEOF
29178
29179                         fi
29180
29181                         LIBS="$save_LIBS"
29182                 fi
29183         fi
29184 fi
29185
29186 if test $ol_link_krb5 = yes ; then
29187         ol_with_kerberos=found
29188 fi
29189
29190 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29191         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29192
29193
29194
29195
29196 for ac_header in krb.h des.h krb-archaeology.h
29197 do
29198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29200   echo "$as_me:$LINENO: checking for $ac_header" >&5
29201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29203   echo $ECHO_N "(cached) $ECHO_C" >&6
29204 fi
29205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29207 else
29208   # Is the header compilable?
29209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29211 cat >conftest.$ac_ext <<_ACEOF
29212 /* confdefs.h.  */
29213 _ACEOF
29214 cat confdefs.h >>conftest.$ac_ext
29215 cat >>conftest.$ac_ext <<_ACEOF
29216 /* end confdefs.h.  */
29217 $ac_includes_default
29218 #include <$ac_header>
29219 _ACEOF
29220 rm -f conftest.$ac_objext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29222   (eval $ac_compile) 2>conftest.er1
29223   ac_status=$?
29224   grep -v '^ *+' conftest.er1 >conftest.err
29225   rm -f conftest.er1
29226   cat conftest.err >&5
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); } &&
29229          { ac_try='test -z "$ac_c_werror_flag"
29230                          || test ! -s conftest.err'
29231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232   (eval $ac_try) 2>&5
29233   ac_status=$?
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); }; } &&
29236          { ac_try='test -s conftest.$ac_objext'
29237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238   (eval $ac_try) 2>&5
29239   ac_status=$?
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); }; }; then
29242   ac_header_compiler=yes
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247 ac_header_compiler=no
29248 fi
29249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29251 echo "${ECHO_T}$ac_header_compiler" >&6
29252
29253 # Is the header present?
29254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29256 cat >conftest.$ac_ext <<_ACEOF
29257 /* confdefs.h.  */
29258 _ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h.  */
29262 #include <$ac_header>
29263 _ACEOF
29264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29266   ac_status=$?
29267   grep -v '^ *+' conftest.er1 >conftest.err
29268   rm -f conftest.er1
29269   cat conftest.err >&5
29270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271   (exit $ac_status); } >/dev/null; then
29272   if test -s conftest.err; then
29273     ac_cpp_err=$ac_c_preproc_warn_flag
29274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29275   else
29276     ac_cpp_err=
29277   fi
29278 else
29279   ac_cpp_err=yes
29280 fi
29281 if test -z "$ac_cpp_err"; then
29282   ac_header_preproc=yes
29283 else
29284   echo "$as_me: failed program was:" >&5
29285 sed 's/^/| /' conftest.$ac_ext >&5
29286
29287   ac_header_preproc=no
29288 fi
29289 rm -f conftest.err conftest.$ac_ext
29290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29291 echo "${ECHO_T}$ac_header_preproc" >&6
29292
29293 # So?  What about this header?
29294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29295   yes:no: )
29296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29300     ac_header_preproc=yes
29301     ;;
29302   no:yes:* )
29303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29315     (
29316       cat <<\_ASBOX
29317 ## ------------------------------------------ ##
29318 ## Report this to the AC_PACKAGE_NAME lists.  ##
29319 ## ------------------------------------------ ##
29320 _ASBOX
29321     ) |
29322       sed "s/^/$as_me: WARNING:     /" >&2
29323     ;;
29324 esac
29325 echo "$as_me:$LINENO: checking for $ac_header" >&5
29326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29328   echo $ECHO_N "(cached) $ECHO_C" >&6
29329 else
29330   eval "$as_ac_Header=\$ac_header_preproc"
29331 fi
29332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29334
29335 fi
29336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29337   cat >>confdefs.h <<_ACEOF
29338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29339 _ACEOF
29340
29341 fi
29342
29343 done
29344
29345
29346         if test $ac_cv_header_krb_h = yes ; then
29347                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29348 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29349 if test "${ac_cv_lib_krb_main+set}" = set; then
29350   echo $ECHO_N "(cached) $ECHO_C" >&6
29351 else
29352   ac_check_lib_save_LIBS=$LIBS
29353 LIBS="-lkrb -ldes $LIBS"
29354 cat >conftest.$ac_ext <<_ACEOF
29355 /* confdefs.h.  */
29356 _ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h.  */
29360
29361
29362 int
29363 main ()
29364 {
29365 main ();
29366   ;
29367   return 0;
29368 }
29369 _ACEOF
29370 rm -f conftest.$ac_objext conftest$ac_exeext
29371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29372   (eval $ac_link) 2>conftest.er1
29373   ac_status=$?
29374   grep -v '^ *+' conftest.er1 >conftest.err
29375   rm -f conftest.er1
29376   cat conftest.err >&5
29377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378   (exit $ac_status); } &&
29379          { ac_try='test -z "$ac_c_werror_flag"
29380                          || test ! -s conftest.err'
29381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382   (eval $ac_try) 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); }; } &&
29386          { ac_try='test -s conftest$ac_exeext'
29387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388   (eval $ac_try) 2>&5
29389   ac_status=$?
29390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); }; }; then
29392   ac_cv_lib_krb_main=yes
29393 else
29394   echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29396
29397 ac_cv_lib_krb_main=no
29398 fi
29399 rm -f conftest.err conftest.$ac_objext \
29400       conftest$ac_exeext conftest.$ac_ext
29401 LIBS=$ac_check_lib_save_LIBS
29402 fi
29403 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29404 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29405 if test $ac_cv_lib_krb_main = yes; then
29406   have_k4=yes
29407 else
29408   have_k4=no
29409 fi
29410
29411
29412                 if test $have_k4 = yes ; then
29413                         ol_with_kerberos=found
29414                         ol_link_krb4=yes
29415
29416
29417 cat >>confdefs.h <<\_ACEOF
29418 #define HAVE_KRB4 1
29419 _ACEOF
29420
29421
29422                         KRB4_LIBS="-lkrb -ldes"
29423
29424                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29425
29426 cat >>confdefs.h <<\_ACEOF
29427 #define HAVE_KTH_KERBEROS 1
29428 _ACEOF
29429
29430                         fi
29431                 fi
29432         fi
29433 fi
29434
29435 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29436         ol_link_kbind=yes
29437
29438 elif test $ol_enable_kbind = yes ; then
29439         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29440 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29441    { (exit 1); exit 1; }; }
29442 fi
29443
29444 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29445
29446 cat >>confdefs.h <<\_ACEOF
29447 #define HAVE_KERBEROS 1
29448 _ACEOF
29449
29450
29451 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29452         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29453 echo "$as_me: error: Kerberos detection failed" >&2;}
29454    { (exit 1); exit 1; }; }
29455 fi
29456
29457
29458 ol_link_tls=no
29459 if test $ol_with_tls != no ; then
29460
29461
29462 for ac_header in openssl/ssl.h ssl.h
29463 do
29464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29466   echo "$as_me:$LINENO: checking for $ac_header" >&5
29467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29469   echo $ECHO_N "(cached) $ECHO_C" >&6
29470 fi
29471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29473 else
29474   # Is the header compilable?
29475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29477 cat >conftest.$ac_ext <<_ACEOF
29478 /* confdefs.h.  */
29479 _ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h.  */
29483 $ac_includes_default
29484 #include <$ac_header>
29485 _ACEOF
29486 rm -f conftest.$ac_objext
29487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29488   (eval $ac_compile) 2>conftest.er1
29489   ac_status=$?
29490   grep -v '^ *+' conftest.er1 >conftest.err
29491   rm -f conftest.er1
29492   cat conftest.err >&5
29493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494   (exit $ac_status); } &&
29495          { ac_try='test -z "$ac_c_werror_flag"
29496                          || test ! -s conftest.err'
29497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29498   (eval $ac_try) 2>&5
29499   ac_status=$?
29500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501   (exit $ac_status); }; } &&
29502          { ac_try='test -s conftest.$ac_objext'
29503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29504   (eval $ac_try) 2>&5
29505   ac_status=$?
29506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507   (exit $ac_status); }; }; then
29508   ac_header_compiler=yes
29509 else
29510   echo "$as_me: failed program was:" >&5
29511 sed 's/^/| /' conftest.$ac_ext >&5
29512
29513 ac_header_compiler=no
29514 fi
29515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29517 echo "${ECHO_T}$ac_header_compiler" >&6
29518
29519 # Is the header present?
29520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29522 cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h.  */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h.  */
29528 #include <$ac_header>
29529 _ACEOF
29530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29532   ac_status=$?
29533   grep -v '^ *+' conftest.er1 >conftest.err
29534   rm -f conftest.er1
29535   cat conftest.err >&5
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); } >/dev/null; then
29538   if test -s conftest.err; then
29539     ac_cpp_err=$ac_c_preproc_warn_flag
29540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29541   else
29542     ac_cpp_err=
29543   fi
29544 else
29545   ac_cpp_err=yes
29546 fi
29547 if test -z "$ac_cpp_err"; then
29548   ac_header_preproc=yes
29549 else
29550   echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29552
29553   ac_header_preproc=no
29554 fi
29555 rm -f conftest.err conftest.$ac_ext
29556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29557 echo "${ECHO_T}$ac_header_preproc" >&6
29558
29559 # So?  What about this header?
29560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29561   yes:no: )
29562     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29566     ac_header_preproc=yes
29567     ;;
29568   no:yes:* )
29569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29571     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29572 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29573     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29575     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29576 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29579     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29581     (
29582       cat <<\_ASBOX
29583 ## ------------------------------------------ ##
29584 ## Report this to the AC_PACKAGE_NAME lists.  ##
29585 ## ------------------------------------------ ##
29586 _ASBOX
29587     ) |
29588       sed "s/^/$as_me: WARNING:     /" >&2
29589     ;;
29590 esac
29591 echo "$as_me:$LINENO: checking for $ac_header" >&5
29592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29594   echo $ECHO_N "(cached) $ECHO_C" >&6
29595 else
29596   eval "$as_ac_Header=\$ac_header_preproc"
29597 fi
29598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29600
29601 fi
29602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29603   cat >>confdefs.h <<_ACEOF
29604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29605 _ACEOF
29606
29607 fi
29608
29609 done
29610
29611
29612         if test $ac_cv_header_openssl_ssl_h = yes \
29613                 -o $ac_cv_header_ssl_h = yes ; then
29614                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29615 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29616 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29617   echo $ECHO_N "(cached) $ECHO_C" >&6
29618 else
29619   ac_check_lib_save_LIBS=$LIBS
29620 LIBS="-lssl -lcrypto $LIBS"
29621 cat >conftest.$ac_ext <<_ACEOF
29622 /* confdefs.h.  */
29623 _ACEOF
29624 cat confdefs.h >>conftest.$ac_ext
29625 cat >>conftest.$ac_ext <<_ACEOF
29626 /* end confdefs.h.  */
29627
29628 /* Override any gcc2 internal prototype to avoid an error.  */
29629 #ifdef __cplusplus
29630 extern "C"
29631 #endif
29632 /* We use char because int might match the return type of a gcc2
29633    builtin and then its argument prototype would still apply.  */
29634 char SSLeay_add_ssl_algorithms ();
29635 int
29636 main ()
29637 {
29638 SSLeay_add_ssl_algorithms ();
29639   ;
29640   return 0;
29641 }
29642 _ACEOF
29643 rm -f conftest.$ac_objext conftest$ac_exeext
29644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29645   (eval $ac_link) 2>conftest.er1
29646   ac_status=$?
29647   grep -v '^ *+' conftest.er1 >conftest.err
29648   rm -f conftest.er1
29649   cat conftest.err >&5
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); } &&
29652          { ac_try='test -z "$ac_c_werror_flag"
29653                          || test ! -s conftest.err'
29654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655   (eval $ac_try) 2>&5
29656   ac_status=$?
29657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658   (exit $ac_status); }; } &&
29659          { ac_try='test -s conftest$ac_exeext'
29660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29661   (eval $ac_try) 2>&5
29662   ac_status=$?
29663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664   (exit $ac_status); }; }; then
29665   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29666 else
29667   echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29669
29670 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29671 fi
29672 rm -f conftest.err conftest.$ac_objext \
29673       conftest$ac_exeext conftest.$ac_ext
29674 LIBS=$ac_check_lib_save_LIBS
29675 fi
29676 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29677 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29678 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29679   have_ssleay=yes
29680                         need_rsaref=no
29681 else
29682   have_ssleay=no
29683 fi
29684
29685
29686                 if test $have_ssleay = no ; then
29687                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29688 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29689 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29690   echo $ECHO_N "(cached) $ECHO_C" >&6
29691 else
29692   ac_check_lib_save_LIBS=$LIBS
29693 LIBS="-lssl -lcrypto $LIBS"
29694 cat >conftest.$ac_ext <<_ACEOF
29695 /* confdefs.h.  */
29696 _ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h.  */
29700
29701 /* Override any gcc2 internal prototype to avoid an error.  */
29702 #ifdef __cplusplus
29703 extern "C"
29704 #endif
29705 /* We use char because int might match the return type of a gcc2
29706    builtin and then its argument prototype would still apply.  */
29707 char SSL_library_init ();
29708 int
29709 main ()
29710 {
29711 SSL_library_init ();
29712   ;
29713   return 0;
29714 }
29715 _ACEOF
29716 rm -f conftest.$ac_objext conftest$ac_exeext
29717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29718   (eval $ac_link) 2>conftest.er1
29719   ac_status=$?
29720   grep -v '^ *+' conftest.er1 >conftest.err
29721   rm -f conftest.er1
29722   cat conftest.err >&5
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); } &&
29725          { ac_try='test -z "$ac_c_werror_flag"
29726                          || test ! -s conftest.err'
29727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728   (eval $ac_try) 2>&5
29729   ac_status=$?
29730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731   (exit $ac_status); }; } &&
29732          { ac_try='test -s conftest$ac_exeext'
29733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734   (eval $ac_try) 2>&5
29735   ac_status=$?
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); }; }; then
29738   ac_cv_lib_ssl_SSL_library_init=yes
29739 else
29740   echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29742
29743 ac_cv_lib_ssl_SSL_library_init=no
29744 fi
29745 rm -f conftest.err conftest.$ac_objext \
29746       conftest$ac_exeext conftest.$ac_ext
29747 LIBS=$ac_check_lib_save_LIBS
29748 fi
29749 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29750 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29751 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29752   have_ssleay=yes
29753                                 need_rsaref=no
29754 else
29755   have_ssleay=no
29756 fi
29757
29758                 fi
29759
29760                 if test $have_ssleay = no ; then
29761                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29762 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29763 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29764   echo $ECHO_N "(cached) $ECHO_C" >&6
29765 else
29766   ac_check_lib_save_LIBS=$LIBS
29767 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29768 cat >conftest.$ac_ext <<_ACEOF
29769 /* confdefs.h.  */
29770 _ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h.  */
29774
29775 /* Override any gcc2 internal prototype to avoid an error.  */
29776 #ifdef __cplusplus
29777 extern "C"
29778 #endif
29779 /* We use char because int might match the return type of a gcc2
29780    builtin and then its argument prototype would still apply.  */
29781 char ssl3_accept ();
29782 int
29783 main ()
29784 {
29785 ssl3_accept ();
29786   ;
29787   return 0;
29788 }
29789 _ACEOF
29790 rm -f conftest.$ac_objext conftest$ac_exeext
29791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29792   (eval $ac_link) 2>conftest.er1
29793   ac_status=$?
29794   grep -v '^ *+' conftest.er1 >conftest.err
29795   rm -f conftest.er1
29796   cat conftest.err >&5
29797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798   (exit $ac_status); } &&
29799          { ac_try='test -z "$ac_c_werror_flag"
29800                          || test ! -s conftest.err'
29801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29802   (eval $ac_try) 2>&5
29803   ac_status=$?
29804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805   (exit $ac_status); }; } &&
29806          { ac_try='test -s conftest$ac_exeext'
29807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29808   (eval $ac_try) 2>&5
29809   ac_status=$?
29810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811   (exit $ac_status); }; }; then
29812   ac_cv_lib_ssl_ssl3_accept=yes
29813 else
29814   echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29816
29817 ac_cv_lib_ssl_ssl3_accept=no
29818 fi
29819 rm -f conftest.err conftest.$ac_objext \
29820       conftest$ac_exeext conftest.$ac_ext
29821 LIBS=$ac_check_lib_save_LIBS
29822 fi
29823 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29824 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29825 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29826   have_ssleay=yes
29827                                 need_rsaref=yes
29828 else
29829   have_ssleay=no
29830 fi
29831
29832                 fi
29833
29834                 if test $have_ssleay = yes ; then
29835                         ol_with_tls=found
29836                         ol_link_tls=yes
29837
29838
29839 cat >>confdefs.h <<\_ACEOF
29840 #define HAVE_SSLEAY 1
29841 _ACEOF
29842
29843
29844                         if test $need_rsaref = yes; then
29845
29846 cat >>confdefs.h <<\_ACEOF
29847 #define HAVE_RSAREF 1
29848 _ACEOF
29849
29850
29851                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29852                         else
29853                                 TLS_LIBS="-lssl -lcrypto"
29854                         fi
29855                 fi
29856                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29857 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29858 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29859   echo $ECHO_N "(cached) $ECHO_C" >&6
29860 else
29861
29862         cat >conftest.$ac_ext <<_ACEOF
29863 /* confdefs.h.  */
29864 _ACEOF
29865 cat confdefs.h >>conftest.$ac_ext
29866 cat >>conftest.$ac_ext <<_ACEOF
29867 /* end confdefs.h.  */
29868
29869 #ifdef HAVE_OPENSSL_SSL_H
29870 #include <openssl/ssl.h>
29871 #else
29872 #include <ssl.h>
29873 #endif
29874
29875 /* Require 0.9.7d+ */
29876 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29877         char *__ssl_compat = "0.9.7d";
29878 #endif
29879
29880 _ACEOF
29881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29882   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29883   ol_cv_ssl_crl_compat=yes
29884 else
29885   ol_cv_ssl_crl_compat=no
29886 fi
29887 rm -f conftest*
29888
29889 fi
29890 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29891 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29892
29893                 if test $ol_cv_ssl_crl_compat = no ; then
29894                         ol_link_ssl=no
29895                 else
29896
29897 cat >>confdefs.h <<\_ACEOF
29898 #define HAVE_OPENSSL_CRL 1
29899 _ACEOF
29900
29901                 fi
29902         fi
29903
29904 else
29905         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29906 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29907 fi
29908
29909 WITH_TLS=no
29910 if test $ol_link_tls = yes ; then
29911
29912 cat >>confdefs.h <<\_ACEOF
29913 #define HAVE_TLS 1
29914 _ACEOF
29915
29916         WITH_TLS=yes
29917
29918 elif test $ol_with_tls = auto ; then
29919         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29920 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29921         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29922 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29923
29924 elif test $ol_with_tls != no ; then
29925         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29926 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29927    { (exit 1); exit 1; }; }
29928 fi
29929
29930 if test $ol_enable_lmpasswd != no; then
29931         if test $ol_link_tls != yes ; then
29932                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29933 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29934    { (exit 1); exit 1; }; }
29935         fi
29936
29937
29938 cat >>confdefs.h <<\_ACEOF
29939 #define SLAPD_LMHASH 1
29940 _ACEOF
29941
29942 fi
29943
29944 ol_link_threads=no
29945
29946 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29947         -o $ol_with_threads = nt ; then
29948
29949
29950         echo "$as_me:$LINENO: checking for _beginthread" >&5
29951 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29952 if test "${ac_cv_func__beginthread+set}" = set; then
29953   echo $ECHO_N "(cached) $ECHO_C" >&6
29954 else
29955   cat >conftest.$ac_ext <<_ACEOF
29956 /* confdefs.h.  */
29957 _ACEOF
29958 cat confdefs.h >>conftest.$ac_ext
29959 cat >>conftest.$ac_ext <<_ACEOF
29960 /* end confdefs.h.  */
29961 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29963 #define _beginthread innocuous__beginthread
29964
29965 /* System header to define __stub macros and hopefully few prototypes,
29966     which can conflict with char _beginthread (); below.
29967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29968     <limits.h> exists even on freestanding compilers.  */
29969
29970 #ifdef __STDC__
29971 # include <limits.h>
29972 #else
29973 # include <assert.h>
29974 #endif
29975
29976 #undef _beginthread
29977
29978 /* Override any gcc2 internal prototype to avoid an error.  */
29979 #ifdef __cplusplus
29980 extern "C"
29981 {
29982 #endif
29983 /* We use char because int might match the return type of a gcc2
29984    builtin and then its argument prototype would still apply.  */
29985 char _beginthread ();
29986 /* The GNU C library defines this for functions which it implements
29987     to always fail with ENOSYS.  Some functions are actually named
29988     something starting with __ and the normal name is an alias.  */
29989 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29990 choke me
29991 #else
29992 char (*f) () = _beginthread;
29993 #endif
29994 #ifdef __cplusplus
29995 }
29996 #endif
29997
29998 int
29999 main ()
30000 {
30001 return f != _beginthread;
30002   ;
30003   return 0;
30004 }
30005 _ACEOF
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30008   (eval $ac_link) 2>conftest.er1
30009   ac_status=$?
30010   grep -v '^ *+' conftest.er1 >conftest.err
30011   rm -f conftest.er1
30012   cat conftest.err >&5
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); } &&
30015          { ac_try='test -z "$ac_c_werror_flag"
30016                          || test ! -s conftest.err'
30017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018   (eval $ac_try) 2>&5
30019   ac_status=$?
30020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021   (exit $ac_status); }; } &&
30022          { ac_try='test -s conftest$ac_exeext'
30023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024   (eval $ac_try) 2>&5
30025   ac_status=$?
30026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027   (exit $ac_status); }; }; then
30028   ac_cv_func__beginthread=yes
30029 else
30030   echo "$as_me: failed program was:" >&5
30031 sed 's/^/| /' conftest.$ac_ext >&5
30032
30033 ac_cv_func__beginthread=no
30034 fi
30035 rm -f conftest.err conftest.$ac_objext \
30036       conftest$ac_exeext conftest.$ac_ext
30037 fi
30038 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
30039 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
30040
30041
30042         if test $ac_cv_func__beginthread = yes ; then
30043
30044 cat >>confdefs.h <<\_ACEOF
30045 #define HAVE_NT_THREADS 1
30046 _ACEOF
30047
30048                 ol_cv_nt_threads=yes
30049         fi
30050
30051
30052         if test "$ol_cv_nt_threads" = yes ; then
30053                 ol_link_threads=nt
30054                 ol_with_threads=found
30055                 ol_with_yielding_select=yes
30056
30057
30058 cat >>confdefs.h <<\_ACEOF
30059 #define HAVE_NT_SERVICE_MANAGER 1
30060 _ACEOF
30061
30062
30063 cat >>confdefs.h <<\_ACEOF
30064 #define HAVE_NT_EVENT_LOG 1
30065 _ACEOF
30066
30067         fi
30068
30069         if test $ol_with_threads = nt ; then
30070                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
30071 echo "$as_me: error: could not locate NT Threads" >&2;}
30072    { (exit 1); exit 1; }; }
30073         fi
30074 fi
30075
30076 if test $ol_with_threads = auto -o $ol_with_threads = yes \
30077         -o $ol_with_threads = posix ; then
30078
30079
30080 for ac_header in pthread.h
30081 do
30082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30084   echo "$as_me:$LINENO: checking for $ac_header" >&5
30085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30087   echo $ECHO_N "(cached) $ECHO_C" >&6
30088 fi
30089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30091 else
30092   # Is the header compilable?
30093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30095 cat >conftest.$ac_ext <<_ACEOF
30096 /* confdefs.h.  */
30097 _ACEOF
30098 cat confdefs.h >>conftest.$ac_ext
30099 cat >>conftest.$ac_ext <<_ACEOF
30100 /* end confdefs.h.  */
30101 $ac_includes_default
30102 #include <$ac_header>
30103 _ACEOF
30104 rm -f conftest.$ac_objext
30105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30106   (eval $ac_compile) 2>conftest.er1
30107   ac_status=$?
30108   grep -v '^ *+' conftest.er1 >conftest.err
30109   rm -f conftest.er1
30110   cat conftest.err >&5
30111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112   (exit $ac_status); } &&
30113          { ac_try='test -z "$ac_c_werror_flag"
30114                          || test ! -s conftest.err'
30115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116   (eval $ac_try) 2>&5
30117   ac_status=$?
30118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119   (exit $ac_status); }; } &&
30120          { ac_try='test -s conftest.$ac_objext'
30121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30122   (eval $ac_try) 2>&5
30123   ac_status=$?
30124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125   (exit $ac_status); }; }; then
30126   ac_header_compiler=yes
30127 else
30128   echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30130
30131 ac_header_compiler=no
30132 fi
30133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30135 echo "${ECHO_T}$ac_header_compiler" >&6
30136
30137 # Is the header present?
30138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30140 cat >conftest.$ac_ext <<_ACEOF
30141 /* confdefs.h.  */
30142 _ACEOF
30143 cat confdefs.h >>conftest.$ac_ext
30144 cat >>conftest.$ac_ext <<_ACEOF
30145 /* end confdefs.h.  */
30146 #include <$ac_header>
30147 _ACEOF
30148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30150   ac_status=$?
30151   grep -v '^ *+' conftest.er1 >conftest.err
30152   rm -f conftest.er1
30153   cat conftest.err >&5
30154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155   (exit $ac_status); } >/dev/null; then
30156   if test -s conftest.err; then
30157     ac_cpp_err=$ac_c_preproc_warn_flag
30158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30159   else
30160     ac_cpp_err=
30161   fi
30162 else
30163   ac_cpp_err=yes
30164 fi
30165 if test -z "$ac_cpp_err"; then
30166   ac_header_preproc=yes
30167 else
30168   echo "$as_me: failed program was:" >&5
30169 sed 's/^/| /' conftest.$ac_ext >&5
30170
30171   ac_header_preproc=no
30172 fi
30173 rm -f conftest.err conftest.$ac_ext
30174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30175 echo "${ECHO_T}$ac_header_preproc" >&6
30176
30177 # So?  What about this header?
30178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30179   yes:no: )
30180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30184     ac_header_preproc=yes
30185     ;;
30186   no:yes:* )
30187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30199     (
30200       cat <<\_ASBOX
30201 ## ------------------------------------------ ##
30202 ## Report this to the AC_PACKAGE_NAME lists.  ##
30203 ## ------------------------------------------ ##
30204 _ASBOX
30205     ) |
30206       sed "s/^/$as_me: WARNING:     /" >&2
30207     ;;
30208 esac
30209 echo "$as_me:$LINENO: checking for $ac_header" >&5
30210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30212   echo $ECHO_N "(cached) $ECHO_C" >&6
30213 else
30214   eval "$as_ac_Header=\$ac_header_preproc"
30215 fi
30216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30218
30219 fi
30220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30221   cat >>confdefs.h <<_ACEOF
30222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30223 _ACEOF
30224
30225 fi
30226
30227 done
30228
30229
30230         if test $ac_cv_header_pthread_h = yes ; then
30231                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30232 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30233 if test "${ol_cv_pthread_version+set}" = set; then
30234   echo $ECHO_N "(cached) $ECHO_C" >&6
30235 else
30236
30237         cat >conftest.$ac_ext <<_ACEOF
30238 /* confdefs.h.  */
30239 _ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h.  */
30243
30244 #               include <pthread.h>
30245
30246 int
30247 main ()
30248 {
30249
30250                 int i = PTHREAD_CREATE_JOINABLE;
30251
30252   ;
30253   return 0;
30254 }
30255 _ACEOF
30256 rm -f conftest.$ac_objext
30257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30258   (eval $ac_compile) 2>conftest.er1
30259   ac_status=$?
30260   grep -v '^ *+' conftest.er1 >conftest.err
30261   rm -f conftest.er1
30262   cat conftest.err >&5
30263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264   (exit $ac_status); } &&
30265          { ac_try='test -z "$ac_c_werror_flag"
30266                          || test ! -s conftest.err'
30267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268   (eval $ac_try) 2>&5
30269   ac_status=$?
30270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271   (exit $ac_status); }; } &&
30272          { ac_try='test -s conftest.$ac_objext'
30273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274   (eval $ac_try) 2>&5
30275   ac_status=$?
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); }; }; then
30278
30279         cat >conftest.$ac_ext <<_ACEOF
30280 /* confdefs.h.  */
30281 _ACEOF
30282 cat confdefs.h >>conftest.$ac_ext
30283 cat >>conftest.$ac_ext <<_ACEOF
30284 /* end confdefs.h.  */
30285 #include <pthread.h>
30286
30287 _ACEOF
30288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30289   $EGREP "pthread_detach" >/dev/null 2>&1; then
30290   ol_cv_pthread_version=10
30291 else
30292   ol_cv_pthread_version=8
30293 fi
30294 rm -f conftest*
30295
30296 else
30297   echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.$ac_ext >&5
30299
30300
30301         cat >conftest.$ac_ext <<_ACEOF
30302 /* confdefs.h.  */
30303 _ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h.  */
30307
30308 #               include <pthread.h>
30309 #               ifdef PTHREAD_CREATE_UNDETACHED
30310                 draft7
30311 #               endif
30312
30313 _ACEOF
30314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30315   $EGREP "draft7" >/dev/null 2>&1; then
30316   ol_cv_pthread_version=7
30317 else
30318
30319         cat >conftest.$ac_ext <<_ACEOF
30320 /* confdefs.h.  */
30321 _ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h.  */
30325 #include <pthread.h>
30326
30327 _ACEOF
30328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30329   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30330   ol_cv_pthread_version=6
30331 else
30332
30333         cat >conftest.$ac_ext <<_ACEOF
30334 /* confdefs.h.  */
30335 _ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h.  */
30339
30340 #               include <pthread.h>
30341 #ifdef          PTHREAD_MUTEX_INITIALIZER
30342                 draft5
30343 #endif
30344
30345 _ACEOF
30346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30347   $EGREP "draft5" >/dev/null 2>&1; then
30348   ol_cv_pthread_version=5
30349 else
30350   ol_cv_pthread_version=4
30351 fi
30352 rm -f conftest*
30353
30354 fi
30355 rm -f conftest*
30356
30357 fi
30358 rm -f conftest*
30359
30360 fi
30361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30362
30363 fi
30364 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30365 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30366
30367
30368                 if test $ol_cv_pthread_version != 0 ; then
30369
30370 cat >>confdefs.h <<_ACEOF
30371 #define HAVE_PTHREADS $ol_cv_pthread_version
30372 _ACEOF
30373
30374                 else
30375                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30376 echo "$as_me: error: unknown pthread version" >&2;}
30377    { (exit 1); exit 1; }; }
30378                 fi
30379
30380                 # consider threads found
30381                 ol_with_threads=found
30382
30383
30384         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30385 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30386 if test "${ol_cv_header_linux_threads+set}" = set; then
30387   echo $ECHO_N "(cached) $ECHO_C" >&6
30388 else
30389   cat >conftest.$ac_ext <<_ACEOF
30390 /* confdefs.h.  */
30391 _ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h.  */
30395 #include <pthread.h>
30396 _ACEOF
30397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30398   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30399   ol_cv_header_linux_threads=yes
30400 else
30401   ol_cv_header_linux_threads=no
30402 fi
30403 rm -f conftest*
30404
30405
30406 fi
30407 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30408 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30409         if test $ol_cv_header_linux_threads = yes; then
30410
30411 cat >>confdefs.h <<\_ACEOF
30412 #define HAVE_LINUX_THREADS 1
30413 _ACEOF
30414
30415         fi
30416
30417
30418         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30419 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30420 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30421   echo $ECHO_N "(cached) $ECHO_C" >&6
30422 else
30423   cat >conftest.$ac_ext <<_ACEOF
30424 /* confdefs.h.  */
30425 _ACEOF
30426 cat confdefs.h >>conftest.$ac_ext
30427 cat >>conftest.$ac_ext <<_ACEOF
30428 /* end confdefs.h.  */
30429 #include <pthread.h>
30430 #ifdef _POSIX_THREAD_IS_GNU_PTH
30431         __gnu_pth__;
30432 #endif
30433
30434 _ACEOF
30435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30436   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30437   ol_cv_header_gnu_pth_pthread_h=yes
30438 else
30439   ol_cv_header_gnu_pth_pthread_h=no
30440 fi
30441 rm -f conftest*
30442
30443
30444 fi
30445 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30446 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30447
30448
30449                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30450
30451 for ac_header in sched.h
30452 do
30453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30455   echo "$as_me:$LINENO: checking for $ac_header" >&5
30456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30458   echo $ECHO_N "(cached) $ECHO_C" >&6
30459 fi
30460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30462 else
30463   # Is the header compilable?
30464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30466 cat >conftest.$ac_ext <<_ACEOF
30467 /* confdefs.h.  */
30468 _ACEOF
30469 cat confdefs.h >>conftest.$ac_ext
30470 cat >>conftest.$ac_ext <<_ACEOF
30471 /* end confdefs.h.  */
30472 $ac_includes_default
30473 #include <$ac_header>
30474 _ACEOF
30475 rm -f conftest.$ac_objext
30476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30477   (eval $ac_compile) 2>conftest.er1
30478   ac_status=$?
30479   grep -v '^ *+' conftest.er1 >conftest.err
30480   rm -f conftest.er1
30481   cat conftest.err >&5
30482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483   (exit $ac_status); } &&
30484          { ac_try='test -z "$ac_c_werror_flag"
30485                          || test ! -s conftest.err'
30486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30487   (eval $ac_try) 2>&5
30488   ac_status=$?
30489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490   (exit $ac_status); }; } &&
30491          { ac_try='test -s conftest.$ac_objext'
30492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30493   (eval $ac_try) 2>&5
30494   ac_status=$?
30495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496   (exit $ac_status); }; }; then
30497   ac_header_compiler=yes
30498 else
30499   echo "$as_me: failed program was:" >&5
30500 sed 's/^/| /' conftest.$ac_ext >&5
30501
30502 ac_header_compiler=no
30503 fi
30504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30506 echo "${ECHO_T}$ac_header_compiler" >&6
30507
30508 # Is the header present?
30509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30511 cat >conftest.$ac_ext <<_ACEOF
30512 /* confdefs.h.  */
30513 _ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h.  */
30517 #include <$ac_header>
30518 _ACEOF
30519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30521   ac_status=$?
30522   grep -v '^ *+' conftest.er1 >conftest.err
30523   rm -f conftest.er1
30524   cat conftest.err >&5
30525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526   (exit $ac_status); } >/dev/null; then
30527   if test -s conftest.err; then
30528     ac_cpp_err=$ac_c_preproc_warn_flag
30529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30530   else
30531     ac_cpp_err=
30532   fi
30533 else
30534   ac_cpp_err=yes
30535 fi
30536 if test -z "$ac_cpp_err"; then
30537   ac_header_preproc=yes
30538 else
30539   echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30541
30542   ac_header_preproc=no
30543 fi
30544 rm -f conftest.err conftest.$ac_ext
30545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30546 echo "${ECHO_T}$ac_header_preproc" >&6
30547
30548 # So?  What about this header?
30549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30550   yes:no: )
30551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30555     ac_header_preproc=yes
30556     ;;
30557   no:yes:* )
30558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30570     (
30571       cat <<\_ASBOX
30572 ## ------------------------------------------ ##
30573 ## Report this to the AC_PACKAGE_NAME lists.  ##
30574 ## ------------------------------------------ ##
30575 _ASBOX
30576     ) |
30577       sed "s/^/$as_me: WARNING:     /" >&2
30578     ;;
30579 esac
30580 echo "$as_me:$LINENO: checking for $ac_header" >&5
30581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30583   echo $ECHO_N "(cached) $ECHO_C" >&6
30584 else
30585   eval "$as_ac_Header=\$ac_header_preproc"
30586 fi
30587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30589
30590 fi
30591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30592   cat >>confdefs.h <<_ACEOF
30593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30594 _ACEOF
30595
30596 fi
30597
30598 done
30599
30600                 fi
30601
30602
30603                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30604 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30605 if test "${ol_cv_pthread_create+set}" = set; then
30606   echo $ECHO_N "(cached) $ECHO_C" >&6
30607 else
30608
30609                         if test "$cross_compiling" = yes; then
30610   cat >conftest.$ac_ext <<_ACEOF
30611 /* confdefs.h.  */
30612 _ACEOF
30613 cat confdefs.h >>conftest.$ac_ext
30614 cat >>conftest.$ac_ext <<_ACEOF
30615 /* end confdefs.h.  */
30616
30617 /* pthread test headers */
30618 #include <pthread.h>
30619 #if HAVE_PTHREADS < 7
30620 #include <errno.h>
30621 #endif
30622 #ifndef NULL
30623 #define NULL (void*)0
30624 #endif
30625
30626 static void *task(p)
30627         void *p;
30628 {
30629         return (void *) (p == NULL);
30630 }
30631
30632 int
30633 main ()
30634 {
30635
30636         /* pthread test function */
30637 #ifndef PTHREAD_CREATE_DETACHED
30638 #define PTHREAD_CREATE_DETACHED 1
30639 #endif
30640         pthread_t t;
30641         int status;
30642         int detach = PTHREAD_CREATE_DETACHED;
30643
30644 #if HAVE_PTHREADS > 4
30645         /* Final pthreads */
30646         pthread_attr_t attr;
30647
30648         status = pthread_attr_init(&attr);
30649         if( status ) return status;
30650
30651 #if HAVE_PTHREADS < 7
30652         status = pthread_attr_setdetachstate(&attr, &detach);
30653         if( status < 0 ) status = errno;
30654 #else
30655         status = pthread_attr_setdetachstate(&attr, detach);
30656 #endif
30657         if( status ) return status;
30658         status = pthread_create( &t, &attr, task, NULL );
30659 #if HAVE_PTHREADS < 7
30660         if( status < 0 ) status = errno;
30661 #endif
30662         if( status ) return status;
30663 #else
30664         /* Draft 4 pthreads */
30665         status = pthread_create( &t, pthread_attr_default, task, NULL );
30666         if( status ) return errno;
30667
30668         /* give thread a chance to complete */
30669         /* it should remain joinable and hence detachable */
30670         sleep( 1 );
30671
30672         status = pthread_detach( &t );
30673         if( status ) return errno;
30674 #endif
30675
30676 #ifdef HAVE_LINUX_THREADS
30677         pthread_kill_other_threads_np();
30678 #endif
30679
30680         return 0;
30681
30682   ;
30683   return 0;
30684 }
30685 _ACEOF
30686 rm -f conftest.$ac_objext conftest$ac_exeext
30687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30688   (eval $ac_link) 2>conftest.er1
30689   ac_status=$?
30690   grep -v '^ *+' conftest.er1 >conftest.err
30691   rm -f conftest.er1
30692   cat conftest.err >&5
30693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694   (exit $ac_status); } &&
30695          { ac_try='test -z "$ac_c_werror_flag"
30696                          || test ! -s conftest.err'
30697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698   (eval $ac_try) 2>&5
30699   ac_status=$?
30700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701   (exit $ac_status); }; } &&
30702          { ac_try='test -s conftest$ac_exeext'
30703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30704   (eval $ac_try) 2>&5
30705   ac_status=$?
30706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707   (exit $ac_status); }; }; then
30708   ol_cv_pthread_create=yes
30709 else
30710   echo "$as_me: failed program was:" >&5
30711 sed 's/^/| /' conftest.$ac_ext >&5
30712
30713 ol_cv_pthread_create=no
30714 fi
30715 rm -f conftest.err conftest.$ac_objext \
30716       conftest$ac_exeext conftest.$ac_ext
30717 else
30718   cat >conftest.$ac_ext <<_ACEOF
30719 /* confdefs.h.  */
30720 _ACEOF
30721 cat confdefs.h >>conftest.$ac_ext
30722 cat >>conftest.$ac_ext <<_ACEOF
30723 /* end confdefs.h.  */
30724
30725 /* pthread test headers */
30726 #include <pthread.h>
30727 #if HAVE_PTHREADS < 7
30728 #include <errno.h>
30729 #endif
30730 #ifndef NULL
30731 #define NULL (void*)0
30732 #endif
30733
30734 static void *task(p)
30735         void *p;
30736 {
30737         return (void *) (p == NULL);
30738 }
30739
30740
30741 int main(argc, argv)
30742         int argc;
30743         char **argv;
30744 {
30745
30746         /* pthread test function */
30747 #ifndef PTHREAD_CREATE_DETACHED
30748 #define PTHREAD_CREATE_DETACHED 1
30749 #endif
30750         pthread_t t;
30751         int status;
30752         int detach = PTHREAD_CREATE_DETACHED;
30753
30754 #if HAVE_PTHREADS > 4
30755         /* Final pthreads */
30756         pthread_attr_t attr;
30757
30758         status = pthread_attr_init(&attr);
30759         if( status ) return status;
30760
30761 #if HAVE_PTHREADS < 7
30762         status = pthread_attr_setdetachstate(&attr, &detach);
30763         if( status < 0 ) status = errno;
30764 #else
30765         status = pthread_attr_setdetachstate(&attr, detach);
30766 #endif
30767         if( status ) return status;
30768         status = pthread_create( &t, &attr, task, NULL );
30769 #if HAVE_PTHREADS < 7
30770         if( status < 0 ) status = errno;
30771 #endif
30772         if( status ) return status;
30773 #else
30774         /* Draft 4 pthreads */
30775         status = pthread_create( &t, pthread_attr_default, task, NULL );
30776         if( status ) return errno;
30777
30778         /* give thread a chance to complete */
30779         /* it should remain joinable and hence detachable */
30780         sleep( 1 );
30781
30782         status = pthread_detach( &t );
30783         if( status ) return errno;
30784 #endif
30785
30786 #ifdef HAVE_LINUX_THREADS
30787         pthread_kill_other_threads_np();
30788 #endif
30789
30790         return 0;
30791
30792 }
30793
30794 _ACEOF
30795 rm -f conftest$ac_exeext
30796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30797   (eval $ac_link) 2>&5
30798   ac_status=$?
30799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30802   (eval $ac_try) 2>&5
30803   ac_status=$?
30804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805   (exit $ac_status); }; }; then
30806   ol_cv_pthread_create=yes
30807 else
30808   echo "$as_me: program exited with status $ac_status" >&5
30809 echo "$as_me: failed program was:" >&5
30810 sed 's/^/| /' conftest.$ac_ext >&5
30811
30812 ( exit $ac_status )
30813 ol_cv_pthread_create=no
30814 fi
30815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30816 fi
30817 fi
30818 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30819 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30820
30821                 if test $ol_cv_pthread_create != no ; then
30822                         ol_link_threads=posix
30823                         ol_link_pthreads=""
30824                 fi
30825
30826                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30827 if test "$ol_link_threads" = no ; then
30828         # try -kthread
30829         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30830 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30831 if test "${ol_cv_pthread_kthread+set}" = set; then
30832   echo $ECHO_N "(cached) $ECHO_C" >&6
30833 else
30834
30835                 # save the flags
30836                 ol_LIBS="$LIBS"
30837                 LIBS="-kthread $LIBS"
30838
30839                 if test "$cross_compiling" = yes; then
30840   cat >conftest.$ac_ext <<_ACEOF
30841 /* confdefs.h.  */
30842 _ACEOF
30843 cat confdefs.h >>conftest.$ac_ext
30844 cat >>conftest.$ac_ext <<_ACEOF
30845 /* end confdefs.h.  */
30846
30847 /* pthread test headers */
30848 #include <pthread.h>
30849 #if HAVE_PTHREADS < 7
30850 #include <errno.h>
30851 #endif
30852 #ifndef NULL
30853 #define NULL (void*)0
30854 #endif
30855
30856 static void *task(p)
30857         void *p;
30858 {
30859         return (void *) (p == NULL);
30860 }
30861
30862 int
30863 main ()
30864 {
30865
30866         /* pthread test function */
30867 #ifndef PTHREAD_CREATE_DETACHED
30868 #define PTHREAD_CREATE_DETACHED 1
30869 #endif
30870         pthread_t t;
30871         int status;
30872         int detach = PTHREAD_CREATE_DETACHED;
30873
30874 #if HAVE_PTHREADS > 4
30875         /* Final pthreads */
30876         pthread_attr_t attr;
30877
30878         status = pthread_attr_init(&attr);
30879         if( status ) return status;
30880
30881 #if HAVE_PTHREADS < 7
30882         status = pthread_attr_setdetachstate(&attr, &detach);
30883         if( status < 0 ) status = errno;
30884 #else
30885         status = pthread_attr_setdetachstate(&attr, detach);
30886 #endif
30887         if( status ) return status;
30888         status = pthread_create( &t, &attr, task, NULL );
30889 #if HAVE_PTHREADS < 7
30890         if( status < 0 ) status = errno;
30891 #endif
30892         if( status ) return status;
30893 #else
30894         /* Draft 4 pthreads */
30895         status = pthread_create( &t, pthread_attr_default, task, NULL );
30896         if( status ) return errno;
30897
30898         /* give thread a chance to complete */
30899         /* it should remain joinable and hence detachable */
30900         sleep( 1 );
30901
30902         status = pthread_detach( &t );
30903         if( status ) return errno;
30904 #endif
30905
30906 #ifdef HAVE_LINUX_THREADS
30907         pthread_kill_other_threads_np();
30908 #endif
30909
30910         return 0;
30911
30912   ;
30913   return 0;
30914 }
30915 _ACEOF
30916 rm -f conftest.$ac_objext conftest$ac_exeext
30917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30918   (eval $ac_link) 2>conftest.er1
30919   ac_status=$?
30920   grep -v '^ *+' conftest.er1 >conftest.err
30921   rm -f conftest.er1
30922   cat conftest.err >&5
30923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924   (exit $ac_status); } &&
30925          { ac_try='test -z "$ac_c_werror_flag"
30926                          || test ! -s conftest.err'
30927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928   (eval $ac_try) 2>&5
30929   ac_status=$?
30930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931   (exit $ac_status); }; } &&
30932          { ac_try='test -s conftest$ac_exeext'
30933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934   (eval $ac_try) 2>&5
30935   ac_status=$?
30936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937   (exit $ac_status); }; }; then
30938   ol_cv_pthread_kthread=yes
30939 else
30940   echo "$as_me: failed program was:" >&5
30941 sed 's/^/| /' conftest.$ac_ext >&5
30942
30943 ol_cv_pthread_kthread=no
30944 fi
30945 rm -f conftest.err conftest.$ac_objext \
30946       conftest$ac_exeext conftest.$ac_ext
30947 else
30948   cat >conftest.$ac_ext <<_ACEOF
30949 /* confdefs.h.  */
30950 _ACEOF
30951 cat confdefs.h >>conftest.$ac_ext
30952 cat >>conftest.$ac_ext <<_ACEOF
30953 /* end confdefs.h.  */
30954
30955 /* pthread test headers */
30956 #include <pthread.h>
30957 #if HAVE_PTHREADS < 7
30958 #include <errno.h>
30959 #endif
30960 #ifndef NULL
30961 #define NULL (void*)0
30962 #endif
30963
30964 static void *task(p)
30965         void *p;
30966 {
30967         return (void *) (p == NULL);
30968 }
30969
30970
30971 int main(argc, argv)
30972         int argc;
30973         char **argv;
30974 {
30975
30976         /* pthread test function */
30977 #ifndef PTHREAD_CREATE_DETACHED
30978 #define PTHREAD_CREATE_DETACHED 1
30979 #endif
30980         pthread_t t;
30981         int status;
30982         int detach = PTHREAD_CREATE_DETACHED;
30983
30984 #if HAVE_PTHREADS > 4
30985         /* Final pthreads */
30986         pthread_attr_t attr;
30987
30988         status = pthread_attr_init(&attr);
30989         if( status ) return status;
30990
30991 #if HAVE_PTHREADS < 7
30992         status = pthread_attr_setdetachstate(&attr, &detach);
30993         if( status < 0 ) status = errno;
30994 #else
30995         status = pthread_attr_setdetachstate(&attr, detach);
30996 #endif
30997         if( status ) return status;
30998         status = pthread_create( &t, &attr, task, NULL );
30999 #if HAVE_PTHREADS < 7
31000         if( status < 0 ) status = errno;
31001 #endif
31002         if( status ) return status;
31003 #else
31004         /* Draft 4 pthreads */
31005         status = pthread_create( &t, pthread_attr_default, task, NULL );
31006         if( status ) return errno;
31007
31008         /* give thread a chance to complete */
31009         /* it should remain joinable and hence detachable */
31010         sleep( 1 );
31011
31012         status = pthread_detach( &t );
31013         if( status ) return errno;
31014 #endif
31015
31016 #ifdef HAVE_LINUX_THREADS
31017         pthread_kill_other_threads_np();
31018 #endif
31019
31020         return 0;
31021
31022 }
31023
31024 _ACEOF
31025 rm -f conftest$ac_exeext
31026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31027   (eval $ac_link) 2>&5
31028   ac_status=$?
31029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032   (eval $ac_try) 2>&5
31033   ac_status=$?
31034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035   (exit $ac_status); }; }; then
31036   ol_cv_pthread_kthread=yes
31037 else
31038   echo "$as_me: program exited with status $ac_status" >&5
31039 echo "$as_me: failed program was:" >&5
31040 sed 's/^/| /' conftest.$ac_ext >&5
31041
31042 ( exit $ac_status )
31043 ol_cv_pthread_kthread=no
31044 fi
31045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31046 fi
31047
31048                 # restore the LIBS
31049                 LIBS="$ol_LIBS"
31050
31051 fi
31052 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
31053 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
31054
31055         if test $ol_cv_pthread_kthread = yes ; then
31056                 ol_link_pthreads="-kthread"
31057                 ol_link_threads=posix
31058         fi
31059 fi
31060
31061                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
31062 if test "$ol_link_threads" = no ; then
31063         # try -pthread
31064         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
31065 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
31066 if test "${ol_cv_pthread_pthread+set}" = set; then
31067   echo $ECHO_N "(cached) $ECHO_C" >&6
31068 else
31069
31070                 # save the flags
31071                 ol_LIBS="$LIBS"
31072                 LIBS="-pthread $LIBS"
31073
31074                 if test "$cross_compiling" = yes; then
31075   cat >conftest.$ac_ext <<_ACEOF
31076 /* confdefs.h.  */
31077 _ACEOF
31078 cat confdefs.h >>conftest.$ac_ext
31079 cat >>conftest.$ac_ext <<_ACEOF
31080 /* end confdefs.h.  */
31081
31082 /* pthread test headers */
31083 #include <pthread.h>
31084 #if HAVE_PTHREADS < 7
31085 #include <errno.h>
31086 #endif
31087 #ifndef NULL
31088 #define NULL (void*)0
31089 #endif
31090
31091 static void *task(p)
31092         void *p;
31093 {
31094         return (void *) (p == NULL);
31095 }
31096
31097 int
31098 main ()
31099 {
31100
31101         /* pthread test function */
31102 #ifndef PTHREAD_CREATE_DETACHED
31103 #define PTHREAD_CREATE_DETACHED 1
31104 #endif
31105         pthread_t t;
31106         int status;
31107         int detach = PTHREAD_CREATE_DETACHED;
31108
31109 #if HAVE_PTHREADS > 4
31110         /* Final pthreads */
31111         pthread_attr_t attr;
31112
31113         status = pthread_attr_init(&attr);
31114         if( status ) return status;
31115
31116 #if HAVE_PTHREADS < 7
31117         status = pthread_attr_setdetachstate(&attr, &detach);
31118         if( status < 0 ) status = errno;
31119 #else
31120         status = pthread_attr_setdetachstate(&attr, detach);
31121 #endif
31122         if( status ) return status;
31123         status = pthread_create( &t, &attr, task, NULL );
31124 #if HAVE_PTHREADS < 7
31125         if( status < 0 ) status = errno;
31126 #endif
31127         if( status ) return status;
31128 #else
31129         /* Draft 4 pthreads */
31130         status = pthread_create( &t, pthread_attr_default, task, NULL );
31131         if( status ) return errno;
31132
31133         /* give thread a chance to complete */
31134         /* it should remain joinable and hence detachable */
31135         sleep( 1 );
31136
31137         status = pthread_detach( &t );
31138         if( status ) return errno;
31139 #endif
31140
31141 #ifdef HAVE_LINUX_THREADS
31142         pthread_kill_other_threads_np();
31143 #endif
31144
31145         return 0;
31146
31147   ;
31148   return 0;
31149 }
31150 _ACEOF
31151 rm -f conftest.$ac_objext conftest$ac_exeext
31152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31153   (eval $ac_link) 2>conftest.er1
31154   ac_status=$?
31155   grep -v '^ *+' conftest.er1 >conftest.err
31156   rm -f conftest.er1
31157   cat conftest.err >&5
31158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159   (exit $ac_status); } &&
31160          { ac_try='test -z "$ac_c_werror_flag"
31161                          || test ! -s conftest.err'
31162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163   (eval $ac_try) 2>&5
31164   ac_status=$?
31165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166   (exit $ac_status); }; } &&
31167          { ac_try='test -s conftest$ac_exeext'
31168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31169   (eval $ac_try) 2>&5
31170   ac_status=$?
31171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172   (exit $ac_status); }; }; then
31173   ol_cv_pthread_pthread=yes
31174 else
31175   echo "$as_me: failed program was:" >&5
31176 sed 's/^/| /' conftest.$ac_ext >&5
31177
31178 ol_cv_pthread_pthread=no
31179 fi
31180 rm -f conftest.err conftest.$ac_objext \
31181       conftest$ac_exeext conftest.$ac_ext
31182 else
31183   cat >conftest.$ac_ext <<_ACEOF
31184 /* confdefs.h.  */
31185 _ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h.  */
31189
31190 /* pthread test headers */
31191 #include <pthread.h>
31192 #if HAVE_PTHREADS < 7
31193 #include <errno.h>
31194 #endif
31195 #ifndef NULL
31196 #define NULL (void*)0
31197 #endif
31198
31199 static void *task(p)
31200         void *p;
31201 {
31202         return (void *) (p == NULL);
31203 }
31204
31205
31206 int main(argc, argv)
31207         int argc;
31208         char **argv;
31209 {
31210
31211         /* pthread test function */
31212 #ifndef PTHREAD_CREATE_DETACHED
31213 #define PTHREAD_CREATE_DETACHED 1
31214 #endif
31215         pthread_t t;
31216         int status;
31217         int detach = PTHREAD_CREATE_DETACHED;
31218
31219 #if HAVE_PTHREADS > 4
31220         /* Final pthreads */
31221         pthread_attr_t attr;
31222
31223         status = pthread_attr_init(&attr);
31224         if( status ) return status;
31225
31226 #if HAVE_PTHREADS < 7
31227         status = pthread_attr_setdetachstate(&attr, &detach);
31228         if( status < 0 ) status = errno;
31229 #else
31230         status = pthread_attr_setdetachstate(&attr, detach);
31231 #endif
31232         if( status ) return status;
31233         status = pthread_create( &t, &attr, task, NULL );
31234 #if HAVE_PTHREADS < 7
31235         if( status < 0 ) status = errno;
31236 #endif
31237         if( status ) return status;
31238 #else
31239         /* Draft 4 pthreads */
31240         status = pthread_create( &t, pthread_attr_default, task, NULL );
31241         if( status ) return errno;
31242
31243         /* give thread a chance to complete */
31244         /* it should remain joinable and hence detachable */
31245         sleep( 1 );
31246
31247         status = pthread_detach( &t );
31248         if( status ) return errno;
31249 #endif
31250
31251 #ifdef HAVE_LINUX_THREADS
31252         pthread_kill_other_threads_np();
31253 #endif
31254
31255         return 0;
31256
31257 }
31258
31259 _ACEOF
31260 rm -f conftest$ac_exeext
31261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31262   (eval $ac_link) 2>&5
31263   ac_status=$?
31264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267   (eval $ac_try) 2>&5
31268   ac_status=$?
31269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270   (exit $ac_status); }; }; then
31271   ol_cv_pthread_pthread=yes
31272 else
31273   echo "$as_me: program exited with status $ac_status" >&5
31274 echo "$as_me: failed program was:" >&5
31275 sed 's/^/| /' conftest.$ac_ext >&5
31276
31277 ( exit $ac_status )
31278 ol_cv_pthread_pthread=no
31279 fi
31280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31281 fi
31282
31283                 # restore the LIBS
31284                 LIBS="$ol_LIBS"
31285
31286 fi
31287 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31288 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31289
31290         if test $ol_cv_pthread_pthread = yes ; then
31291                 ol_link_pthreads="-pthread"
31292                 ol_link_threads=posix
31293         fi
31294 fi
31295
31296                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31297 if test "$ol_link_threads" = no ; then
31298         # try -pthreads
31299         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31300 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31301 if test "${ol_cv_pthread_pthreads+set}" = set; then
31302   echo $ECHO_N "(cached) $ECHO_C" >&6
31303 else
31304
31305                 # save the flags
31306                 ol_LIBS="$LIBS"
31307                 LIBS="-pthreads $LIBS"
31308
31309                 if test "$cross_compiling" = yes; then
31310   cat >conftest.$ac_ext <<_ACEOF
31311 /* confdefs.h.  */
31312 _ACEOF
31313 cat confdefs.h >>conftest.$ac_ext
31314 cat >>conftest.$ac_ext <<_ACEOF
31315 /* end confdefs.h.  */
31316
31317 /* pthread test headers */
31318 #include <pthread.h>
31319 #if HAVE_PTHREADS < 7
31320 #include <errno.h>
31321 #endif
31322 #ifndef NULL
31323 #define NULL (void*)0
31324 #endif
31325
31326 static void *task(p)
31327         void *p;
31328 {
31329         return (void *) (p == NULL);
31330 }
31331
31332 int
31333 main ()
31334 {
31335
31336         /* pthread test function */
31337 #ifndef PTHREAD_CREATE_DETACHED
31338 #define PTHREAD_CREATE_DETACHED 1
31339 #endif
31340         pthread_t t;
31341         int status;
31342         int detach = PTHREAD_CREATE_DETACHED;
31343
31344 #if HAVE_PTHREADS > 4
31345         /* Final pthreads */
31346         pthread_attr_t attr;
31347
31348         status = pthread_attr_init(&attr);
31349         if( status ) return status;
31350
31351 #if HAVE_PTHREADS < 7
31352         status = pthread_attr_setdetachstate(&attr, &detach);
31353         if( status < 0 ) status = errno;
31354 #else
31355         status = pthread_attr_setdetachstate(&attr, detach);
31356 #endif
31357         if( status ) return status;
31358         status = pthread_create( &t, &attr, task, NULL );
31359 #if HAVE_PTHREADS < 7
31360         if( status < 0 ) status = errno;
31361 #endif
31362         if( status ) return status;
31363 #else
31364         /* Draft 4 pthreads */
31365         status = pthread_create( &t, pthread_attr_default, task, NULL );
31366         if( status ) return errno;
31367
31368         /* give thread a chance to complete */
31369         /* it should remain joinable and hence detachable */
31370         sleep( 1 );
31371
31372         status = pthread_detach( &t );
31373         if( status ) return errno;
31374 #endif
31375
31376 #ifdef HAVE_LINUX_THREADS
31377         pthread_kill_other_threads_np();
31378 #endif
31379
31380         return 0;
31381
31382   ;
31383   return 0;
31384 }
31385 _ACEOF
31386 rm -f conftest.$ac_objext conftest$ac_exeext
31387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31388   (eval $ac_link) 2>conftest.er1
31389   ac_status=$?
31390   grep -v '^ *+' conftest.er1 >conftest.err
31391   rm -f conftest.er1
31392   cat conftest.err >&5
31393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394   (exit $ac_status); } &&
31395          { ac_try='test -z "$ac_c_werror_flag"
31396                          || test ! -s conftest.err'
31397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398   (eval $ac_try) 2>&5
31399   ac_status=$?
31400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401   (exit $ac_status); }; } &&
31402          { ac_try='test -s conftest$ac_exeext'
31403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31404   (eval $ac_try) 2>&5
31405   ac_status=$?
31406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407   (exit $ac_status); }; }; then
31408   ol_cv_pthread_pthreads=yes
31409 else
31410   echo "$as_me: failed program was:" >&5
31411 sed 's/^/| /' conftest.$ac_ext >&5
31412
31413 ol_cv_pthread_pthreads=no
31414 fi
31415 rm -f conftest.err conftest.$ac_objext \
31416       conftest$ac_exeext conftest.$ac_ext
31417 else
31418   cat >conftest.$ac_ext <<_ACEOF
31419 /* confdefs.h.  */
31420 _ACEOF
31421 cat confdefs.h >>conftest.$ac_ext
31422 cat >>conftest.$ac_ext <<_ACEOF
31423 /* end confdefs.h.  */
31424
31425 /* pthread test headers */
31426 #include <pthread.h>
31427 #if HAVE_PTHREADS < 7
31428 #include <errno.h>
31429 #endif
31430 #ifndef NULL
31431 #define NULL (void*)0
31432 #endif
31433
31434 static void *task(p)
31435         void *p;
31436 {
31437         return (void *) (p == NULL);
31438 }
31439
31440
31441 int main(argc, argv)
31442         int argc;
31443         char **argv;
31444 {
31445
31446         /* pthread test function */
31447 #ifndef PTHREAD_CREATE_DETACHED
31448 #define PTHREAD_CREATE_DETACHED 1
31449 #endif
31450         pthread_t t;
31451         int status;
31452         int detach = PTHREAD_CREATE_DETACHED;
31453
31454 #if HAVE_PTHREADS > 4
31455         /* Final pthreads */
31456         pthread_attr_t attr;
31457
31458         status = pthread_attr_init(&attr);
31459         if( status ) return status;
31460
31461 #if HAVE_PTHREADS < 7
31462         status = pthread_attr_setdetachstate(&attr, &detach);
31463         if( status < 0 ) status = errno;
31464 #else
31465         status = pthread_attr_setdetachstate(&attr, detach);
31466 #endif
31467         if( status ) return status;
31468         status = pthread_create( &t, &attr, task, NULL );
31469 #if HAVE_PTHREADS < 7
31470         if( status < 0 ) status = errno;
31471 #endif
31472         if( status ) return status;
31473 #else
31474         /* Draft 4 pthreads */
31475         status = pthread_create( &t, pthread_attr_default, task, NULL );
31476         if( status ) return errno;
31477
31478         /* give thread a chance to complete */
31479         /* it should remain joinable and hence detachable */
31480         sleep( 1 );
31481
31482         status = pthread_detach( &t );
31483         if( status ) return errno;
31484 #endif
31485
31486 #ifdef HAVE_LINUX_THREADS
31487         pthread_kill_other_threads_np();
31488 #endif
31489
31490         return 0;
31491
31492 }
31493
31494 _ACEOF
31495 rm -f conftest$ac_exeext
31496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31497   (eval $ac_link) 2>&5
31498   ac_status=$?
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31502   (eval $ac_try) 2>&5
31503   ac_status=$?
31504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505   (exit $ac_status); }; }; then
31506   ol_cv_pthread_pthreads=yes
31507 else
31508   echo "$as_me: program exited with status $ac_status" >&5
31509 echo "$as_me: failed program was:" >&5
31510 sed 's/^/| /' conftest.$ac_ext >&5
31511
31512 ( exit $ac_status )
31513 ol_cv_pthread_pthreads=no
31514 fi
31515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31516 fi
31517
31518                 # restore the LIBS
31519                 LIBS="$ol_LIBS"
31520
31521 fi
31522 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31523 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31524
31525         if test $ol_cv_pthread_pthreads = yes ; then
31526                 ol_link_pthreads="-pthreads"
31527                 ol_link_threads=posix
31528         fi
31529 fi
31530
31531                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31532 if test "$ol_link_threads" = no ; then
31533         # try -mthreads
31534         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31535 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31536 if test "${ol_cv_pthread_mthreads+set}" = set; then
31537   echo $ECHO_N "(cached) $ECHO_C" >&6
31538 else
31539
31540                 # save the flags
31541                 ol_LIBS="$LIBS"
31542                 LIBS="-mthreads $LIBS"
31543
31544                 if test "$cross_compiling" = yes; then
31545   cat >conftest.$ac_ext <<_ACEOF
31546 /* confdefs.h.  */
31547 _ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h.  */
31551
31552 /* pthread test headers */
31553 #include <pthread.h>
31554 #if HAVE_PTHREADS < 7
31555 #include <errno.h>
31556 #endif
31557 #ifndef NULL
31558 #define NULL (void*)0
31559 #endif
31560
31561 static void *task(p)
31562         void *p;
31563 {
31564         return (void *) (p == NULL);
31565 }
31566
31567 int
31568 main ()
31569 {
31570
31571         /* pthread test function */
31572 #ifndef PTHREAD_CREATE_DETACHED
31573 #define PTHREAD_CREATE_DETACHED 1
31574 #endif
31575         pthread_t t;
31576         int status;
31577         int detach = PTHREAD_CREATE_DETACHED;
31578
31579 #if HAVE_PTHREADS > 4
31580         /* Final pthreads */
31581         pthread_attr_t attr;
31582
31583         status = pthread_attr_init(&attr);
31584         if( status ) return status;
31585
31586 #if HAVE_PTHREADS < 7
31587         status = pthread_attr_setdetachstate(&attr, &detach);
31588         if( status < 0 ) status = errno;
31589 #else
31590         status = pthread_attr_setdetachstate(&attr, detach);
31591 #endif
31592         if( status ) return status;
31593         status = pthread_create( &t, &attr, task, NULL );
31594 #if HAVE_PTHREADS < 7
31595         if( status < 0 ) status = errno;
31596 #endif
31597         if( status ) return status;
31598 #else
31599         /* Draft 4 pthreads */
31600         status = pthread_create( &t, pthread_attr_default, task, NULL );
31601         if( status ) return errno;
31602
31603         /* give thread a chance to complete */
31604         /* it should remain joinable and hence detachable */
31605         sleep( 1 );
31606
31607         status = pthread_detach( &t );
31608         if( status ) return errno;
31609 #endif
31610
31611 #ifdef HAVE_LINUX_THREADS
31612         pthread_kill_other_threads_np();
31613 #endif
31614
31615         return 0;
31616
31617   ;
31618   return 0;
31619 }
31620 _ACEOF
31621 rm -f conftest.$ac_objext conftest$ac_exeext
31622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31623   (eval $ac_link) 2>conftest.er1
31624   ac_status=$?
31625   grep -v '^ *+' conftest.er1 >conftest.err
31626   rm -f conftest.er1
31627   cat conftest.err >&5
31628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629   (exit $ac_status); } &&
31630          { ac_try='test -z "$ac_c_werror_flag"
31631                          || test ! -s conftest.err'
31632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31633   (eval $ac_try) 2>&5
31634   ac_status=$?
31635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636   (exit $ac_status); }; } &&
31637          { ac_try='test -s conftest$ac_exeext'
31638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31639   (eval $ac_try) 2>&5
31640   ac_status=$?
31641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642   (exit $ac_status); }; }; then
31643   ol_cv_pthread_mthreads=yes
31644 else
31645   echo "$as_me: failed program was:" >&5
31646 sed 's/^/| /' conftest.$ac_ext >&5
31647
31648 ol_cv_pthread_mthreads=no
31649 fi
31650 rm -f conftest.err conftest.$ac_objext \
31651       conftest$ac_exeext conftest.$ac_ext
31652 else
31653   cat >conftest.$ac_ext <<_ACEOF
31654 /* confdefs.h.  */
31655 _ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h.  */
31659
31660 /* pthread test headers */
31661 #include <pthread.h>
31662 #if HAVE_PTHREADS < 7
31663 #include <errno.h>
31664 #endif
31665 #ifndef NULL
31666 #define NULL (void*)0
31667 #endif
31668
31669 static void *task(p)
31670         void *p;
31671 {
31672         return (void *) (p == NULL);
31673 }
31674
31675
31676 int main(argc, argv)
31677         int argc;
31678         char **argv;
31679 {
31680
31681         /* pthread test function */
31682 #ifndef PTHREAD_CREATE_DETACHED
31683 #define PTHREAD_CREATE_DETACHED 1
31684 #endif
31685         pthread_t t;
31686         int status;
31687         int detach = PTHREAD_CREATE_DETACHED;
31688
31689 #if HAVE_PTHREADS > 4
31690         /* Final pthreads */
31691         pthread_attr_t attr;
31692
31693         status = pthread_attr_init(&attr);
31694         if( status ) return status;
31695
31696 #if HAVE_PTHREADS < 7
31697         status = pthread_attr_setdetachstate(&attr, &detach);
31698         if( status < 0 ) status = errno;
31699 #else
31700         status = pthread_attr_setdetachstate(&attr, detach);
31701 #endif
31702         if( status ) return status;
31703         status = pthread_create( &t, &attr, task, NULL );
31704 #if HAVE_PTHREADS < 7
31705         if( status < 0 ) status = errno;
31706 #endif
31707         if( status ) return status;
31708 #else
31709         /* Draft 4 pthreads */
31710         status = pthread_create( &t, pthread_attr_default, task, NULL );
31711         if( status ) return errno;
31712
31713         /* give thread a chance to complete */
31714         /* it should remain joinable and hence detachable */
31715         sleep( 1 );
31716
31717         status = pthread_detach( &t );
31718         if( status ) return errno;
31719 #endif
31720
31721 #ifdef HAVE_LINUX_THREADS
31722         pthread_kill_other_threads_np();
31723 #endif
31724
31725         return 0;
31726
31727 }
31728
31729 _ACEOF
31730 rm -f conftest$ac_exeext
31731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31732   (eval $ac_link) 2>&5
31733   ac_status=$?
31734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737   (eval $ac_try) 2>&5
31738   ac_status=$?
31739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740   (exit $ac_status); }; }; then
31741   ol_cv_pthread_mthreads=yes
31742 else
31743   echo "$as_me: program exited with status $ac_status" >&5
31744 echo "$as_me: failed program was:" >&5
31745 sed 's/^/| /' conftest.$ac_ext >&5
31746
31747 ( exit $ac_status )
31748 ol_cv_pthread_mthreads=no
31749 fi
31750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31751 fi
31752
31753                 # restore the LIBS
31754                 LIBS="$ol_LIBS"
31755
31756 fi
31757 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31758 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31759
31760         if test $ol_cv_pthread_mthreads = yes ; then
31761                 ol_link_pthreads="-mthreads"
31762                 ol_link_threads=posix
31763         fi
31764 fi
31765
31766                 # Pthread try link: -thread (ol_cv_pthread_thread)
31767 if test "$ol_link_threads" = no ; then
31768         # try -thread
31769         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31770 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31771 if test "${ol_cv_pthread_thread+set}" = set; then
31772   echo $ECHO_N "(cached) $ECHO_C" >&6
31773 else
31774
31775                 # save the flags
31776                 ol_LIBS="$LIBS"
31777                 LIBS="-thread $LIBS"
31778
31779                 if test "$cross_compiling" = yes; then
31780   cat >conftest.$ac_ext <<_ACEOF
31781 /* confdefs.h.  */
31782 _ACEOF
31783 cat confdefs.h >>conftest.$ac_ext
31784 cat >>conftest.$ac_ext <<_ACEOF
31785 /* end confdefs.h.  */
31786
31787 /* pthread test headers */
31788 #include <pthread.h>
31789 #if HAVE_PTHREADS < 7
31790 #include <errno.h>
31791 #endif
31792 #ifndef NULL
31793 #define NULL (void*)0
31794 #endif
31795
31796 static void *task(p)
31797         void *p;
31798 {
31799         return (void *) (p == NULL);
31800 }
31801
31802 int
31803 main ()
31804 {
31805
31806         /* pthread test function */
31807 #ifndef PTHREAD_CREATE_DETACHED
31808 #define PTHREAD_CREATE_DETACHED 1
31809 #endif
31810         pthread_t t;
31811         int status;
31812         int detach = PTHREAD_CREATE_DETACHED;
31813
31814 #if HAVE_PTHREADS > 4
31815         /* Final pthreads */
31816         pthread_attr_t attr;
31817
31818         status = pthread_attr_init(&attr);
31819         if( status ) return status;
31820
31821 #if HAVE_PTHREADS < 7
31822         status = pthread_attr_setdetachstate(&attr, &detach);
31823         if( status < 0 ) status = errno;
31824 #else
31825         status = pthread_attr_setdetachstate(&attr, detach);
31826 #endif
31827         if( status ) return status;
31828         status = pthread_create( &t, &attr, task, NULL );
31829 #if HAVE_PTHREADS < 7
31830         if( status < 0 ) status = errno;
31831 #endif
31832         if( status ) return status;
31833 #else
31834         /* Draft 4 pthreads */
31835         status = pthread_create( &t, pthread_attr_default, task, NULL );
31836         if( status ) return errno;
31837
31838         /* give thread a chance to complete */
31839         /* it should remain joinable and hence detachable */
31840         sleep( 1 );
31841
31842         status = pthread_detach( &t );
31843         if( status ) return errno;
31844 #endif
31845
31846 #ifdef HAVE_LINUX_THREADS
31847         pthread_kill_other_threads_np();
31848 #endif
31849
31850         return 0;
31851
31852   ;
31853   return 0;
31854 }
31855 _ACEOF
31856 rm -f conftest.$ac_objext conftest$ac_exeext
31857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31858   (eval $ac_link) 2>conftest.er1
31859   ac_status=$?
31860   grep -v '^ *+' conftest.er1 >conftest.err
31861   rm -f conftest.er1
31862   cat conftest.err >&5
31863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864   (exit $ac_status); } &&
31865          { ac_try='test -z "$ac_c_werror_flag"
31866                          || test ! -s conftest.err'
31867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868   (eval $ac_try) 2>&5
31869   ac_status=$?
31870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871   (exit $ac_status); }; } &&
31872          { ac_try='test -s conftest$ac_exeext'
31873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31874   (eval $ac_try) 2>&5
31875   ac_status=$?
31876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877   (exit $ac_status); }; }; then
31878   ol_cv_pthread_thread=yes
31879 else
31880   echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31882
31883 ol_cv_pthread_thread=no
31884 fi
31885 rm -f conftest.err conftest.$ac_objext \
31886       conftest$ac_exeext conftest.$ac_ext
31887 else
31888   cat >conftest.$ac_ext <<_ACEOF
31889 /* confdefs.h.  */
31890 _ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h.  */
31894
31895 /* pthread test headers */
31896 #include <pthread.h>
31897 #if HAVE_PTHREADS < 7
31898 #include <errno.h>
31899 #endif
31900 #ifndef NULL
31901 #define NULL (void*)0
31902 #endif
31903
31904 static void *task(p)
31905         void *p;
31906 {
31907         return (void *) (p == NULL);
31908 }
31909
31910
31911 int main(argc, argv)
31912         int argc;
31913         char **argv;
31914 {
31915
31916         /* pthread test function */
31917 #ifndef PTHREAD_CREATE_DETACHED
31918 #define PTHREAD_CREATE_DETACHED 1
31919 #endif
31920         pthread_t t;
31921         int status;
31922         int detach = PTHREAD_CREATE_DETACHED;
31923
31924 #if HAVE_PTHREADS > 4
31925         /* Final pthreads */
31926         pthread_attr_t attr;
31927
31928         status = pthread_attr_init(&attr);
31929         if( status ) return status;
31930
31931 #if HAVE_PTHREADS < 7
31932         status = pthread_attr_setdetachstate(&attr, &detach);
31933         if( status < 0 ) status = errno;
31934 #else
31935         status = pthread_attr_setdetachstate(&attr, detach);
31936 #endif
31937         if( status ) return status;
31938         status = pthread_create( &t, &attr, task, NULL );
31939 #if HAVE_PTHREADS < 7
31940         if( status < 0 ) status = errno;
31941 #endif
31942         if( status ) return status;
31943 #else
31944         /* Draft 4 pthreads */
31945         status = pthread_create( &t, pthread_attr_default, task, NULL );
31946         if( status ) return errno;
31947
31948         /* give thread a chance to complete */
31949         /* it should remain joinable and hence detachable */
31950         sleep( 1 );
31951
31952         status = pthread_detach( &t );
31953         if( status ) return errno;
31954 #endif
31955
31956 #ifdef HAVE_LINUX_THREADS
31957         pthread_kill_other_threads_np();
31958 #endif
31959
31960         return 0;
31961
31962 }
31963
31964 _ACEOF
31965 rm -f conftest$ac_exeext
31966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31967   (eval $ac_link) 2>&5
31968   ac_status=$?
31969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31972   (eval $ac_try) 2>&5
31973   ac_status=$?
31974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975   (exit $ac_status); }; }; then
31976   ol_cv_pthread_thread=yes
31977 else
31978   echo "$as_me: program exited with status $ac_status" >&5
31979 echo "$as_me: failed program was:" >&5
31980 sed 's/^/| /' conftest.$ac_ext >&5
31981
31982 ( exit $ac_status )
31983 ol_cv_pthread_thread=no
31984 fi
31985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31986 fi
31987
31988                 # restore the LIBS
31989                 LIBS="$ol_LIBS"
31990
31991 fi
31992 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31993 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31994
31995         if test $ol_cv_pthread_thread = yes ; then
31996                 ol_link_pthreads="-thread"
31997                 ol_link_threads=posix
31998         fi
31999 fi
32000
32001
32002                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
32003 if test "$ol_link_threads" = no ; then
32004         # try -lpthread -lmach -lexc -lc_r
32005         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
32006 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
32007 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
32008   echo $ECHO_N "(cached) $ECHO_C" >&6
32009 else
32010
32011                 # save the flags
32012                 ol_LIBS="$LIBS"
32013                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
32014
32015                 if test "$cross_compiling" = yes; then
32016   cat >conftest.$ac_ext <<_ACEOF
32017 /* confdefs.h.  */
32018 _ACEOF
32019 cat confdefs.h >>conftest.$ac_ext
32020 cat >>conftest.$ac_ext <<_ACEOF
32021 /* end confdefs.h.  */
32022
32023 /* pthread test headers */
32024 #include <pthread.h>
32025 #if HAVE_PTHREADS < 7
32026 #include <errno.h>
32027 #endif
32028 #ifndef NULL
32029 #define NULL (void*)0
32030 #endif
32031
32032 static void *task(p)
32033         void *p;
32034 {
32035         return (void *) (p == NULL);
32036 }
32037
32038 int
32039 main ()
32040 {
32041
32042         /* pthread test function */
32043 #ifndef PTHREAD_CREATE_DETACHED
32044 #define PTHREAD_CREATE_DETACHED 1
32045 #endif
32046         pthread_t t;
32047         int status;
32048         int detach = PTHREAD_CREATE_DETACHED;
32049
32050 #if HAVE_PTHREADS > 4
32051         /* Final pthreads */
32052         pthread_attr_t attr;
32053
32054         status = pthread_attr_init(&attr);
32055         if( status ) return status;
32056
32057 #if HAVE_PTHREADS < 7
32058         status = pthread_attr_setdetachstate(&attr, &detach);
32059         if( status < 0 ) status = errno;
32060 #else
32061         status = pthread_attr_setdetachstate(&attr, detach);
32062 #endif
32063         if( status ) return status;
32064         status = pthread_create( &t, &attr, task, NULL );
32065 #if HAVE_PTHREADS < 7
32066         if( status < 0 ) status = errno;
32067 #endif
32068         if( status ) return status;
32069 #else
32070         /* Draft 4 pthreads */
32071         status = pthread_create( &t, pthread_attr_default, task, NULL );
32072         if( status ) return errno;
32073
32074         /* give thread a chance to complete */
32075         /* it should remain joinable and hence detachable */
32076         sleep( 1 );
32077
32078         status = pthread_detach( &t );
32079         if( status ) return errno;
32080 #endif
32081
32082 #ifdef HAVE_LINUX_THREADS
32083         pthread_kill_other_threads_np();
32084 #endif
32085
32086         return 0;
32087
32088   ;
32089   return 0;
32090 }
32091 _ACEOF
32092 rm -f conftest.$ac_objext conftest$ac_exeext
32093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32094   (eval $ac_link) 2>conftest.er1
32095   ac_status=$?
32096   grep -v '^ *+' conftest.er1 >conftest.err
32097   rm -f conftest.er1
32098   cat conftest.err >&5
32099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100   (exit $ac_status); } &&
32101          { ac_try='test -z "$ac_c_werror_flag"
32102                          || test ! -s conftest.err'
32103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104   (eval $ac_try) 2>&5
32105   ac_status=$?
32106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107   (exit $ac_status); }; } &&
32108          { ac_try='test -s conftest$ac_exeext'
32109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32110   (eval $ac_try) 2>&5
32111   ac_status=$?
32112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113   (exit $ac_status); }; }; then
32114   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32115 else
32116   echo "$as_me: failed program was:" >&5
32117 sed 's/^/| /' conftest.$ac_ext >&5
32118
32119 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32120 fi
32121 rm -f conftest.err conftest.$ac_objext \
32122       conftest$ac_exeext conftest.$ac_ext
32123 else
32124   cat >conftest.$ac_ext <<_ACEOF
32125 /* confdefs.h.  */
32126 _ACEOF
32127 cat confdefs.h >>conftest.$ac_ext
32128 cat >>conftest.$ac_ext <<_ACEOF
32129 /* end confdefs.h.  */
32130
32131 /* pthread test headers */
32132 #include <pthread.h>
32133 #if HAVE_PTHREADS < 7
32134 #include <errno.h>
32135 #endif
32136 #ifndef NULL
32137 #define NULL (void*)0
32138 #endif
32139
32140 static void *task(p)
32141         void *p;
32142 {
32143         return (void *) (p == NULL);
32144 }
32145
32146
32147 int main(argc, argv)
32148         int argc;
32149         char **argv;
32150 {
32151
32152         /* pthread test function */
32153 #ifndef PTHREAD_CREATE_DETACHED
32154 #define PTHREAD_CREATE_DETACHED 1
32155 #endif
32156         pthread_t t;
32157         int status;
32158         int detach = PTHREAD_CREATE_DETACHED;
32159
32160 #if HAVE_PTHREADS > 4
32161         /* Final pthreads */
32162         pthread_attr_t attr;
32163
32164         status = pthread_attr_init(&attr);
32165         if( status ) return status;
32166
32167 #if HAVE_PTHREADS < 7
32168         status = pthread_attr_setdetachstate(&attr, &detach);
32169         if( status < 0 ) status = errno;
32170 #else
32171         status = pthread_attr_setdetachstate(&attr, detach);
32172 #endif
32173         if( status ) return status;
32174         status = pthread_create( &t, &attr, task, NULL );
32175 #if HAVE_PTHREADS < 7
32176         if( status < 0 ) status = errno;
32177 #endif
32178         if( status ) return status;
32179 #else
32180         /* Draft 4 pthreads */
32181         status = pthread_create( &t, pthread_attr_default, task, NULL );
32182         if( status ) return errno;
32183
32184         /* give thread a chance to complete */
32185         /* it should remain joinable and hence detachable */
32186         sleep( 1 );
32187
32188         status = pthread_detach( &t );
32189         if( status ) return errno;
32190 #endif
32191
32192 #ifdef HAVE_LINUX_THREADS
32193         pthread_kill_other_threads_np();
32194 #endif
32195
32196         return 0;
32197
32198 }
32199
32200 _ACEOF
32201 rm -f conftest$ac_exeext
32202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32203   (eval $ac_link) 2>&5
32204   ac_status=$?
32205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208   (eval $ac_try) 2>&5
32209   ac_status=$?
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); }; }; then
32212   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32213 else
32214   echo "$as_me: program exited with status $ac_status" >&5
32215 echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32217
32218 ( exit $ac_status )
32219 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32220 fi
32221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32222 fi
32223
32224                 # restore the LIBS
32225                 LIBS="$ol_LIBS"
32226
32227 fi
32228 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32229 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32230
32231         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32232                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32233                 ol_link_threads=posix
32234         fi
32235 fi
32236
32237                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32238 if test "$ol_link_threads" = no ; then
32239         # try -lpthread -lmach -lexc
32240         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32241 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32242 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32243   echo $ECHO_N "(cached) $ECHO_C" >&6
32244 else
32245
32246                 # save the flags
32247                 ol_LIBS="$LIBS"
32248                 LIBS="-lpthread -lmach -lexc $LIBS"
32249
32250                 if test "$cross_compiling" = yes; then
32251   cat >conftest.$ac_ext <<_ACEOF
32252 /* confdefs.h.  */
32253 _ACEOF
32254 cat confdefs.h >>conftest.$ac_ext
32255 cat >>conftest.$ac_ext <<_ACEOF
32256 /* end confdefs.h.  */
32257
32258 /* pthread test headers */
32259 #include <pthread.h>
32260 #if HAVE_PTHREADS < 7
32261 #include <errno.h>
32262 #endif
32263 #ifndef NULL
32264 #define NULL (void*)0
32265 #endif
32266
32267 static void *task(p)
32268         void *p;
32269 {
32270         return (void *) (p == NULL);
32271 }
32272
32273 int
32274 main ()
32275 {
32276
32277         /* pthread test function */
32278 #ifndef PTHREAD_CREATE_DETACHED
32279 #define PTHREAD_CREATE_DETACHED 1
32280 #endif
32281         pthread_t t;
32282         int status;
32283         int detach = PTHREAD_CREATE_DETACHED;
32284
32285 #if HAVE_PTHREADS > 4
32286         /* Final pthreads */
32287         pthread_attr_t attr;
32288
32289         status = pthread_attr_init(&attr);
32290         if( status ) return status;
32291
32292 #if HAVE_PTHREADS < 7
32293         status = pthread_attr_setdetachstate(&attr, &detach);
32294         if( status < 0 ) status = errno;
32295 #else
32296         status = pthread_attr_setdetachstate(&attr, detach);
32297 #endif
32298         if( status ) return status;
32299         status = pthread_create( &t, &attr, task, NULL );
32300 #if HAVE_PTHREADS < 7
32301         if( status < 0 ) status = errno;
32302 #endif
32303         if( status ) return status;
32304 #else
32305         /* Draft 4 pthreads */
32306         status = pthread_create( &t, pthread_attr_default, task, NULL );
32307         if( status ) return errno;
32308
32309         /* give thread a chance to complete */
32310         /* it should remain joinable and hence detachable */
32311         sleep( 1 );
32312
32313         status = pthread_detach( &t );
32314         if( status ) return errno;
32315 #endif
32316
32317 #ifdef HAVE_LINUX_THREADS
32318         pthread_kill_other_threads_np();
32319 #endif
32320
32321         return 0;
32322
32323   ;
32324   return 0;
32325 }
32326 _ACEOF
32327 rm -f conftest.$ac_objext conftest$ac_exeext
32328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32329   (eval $ac_link) 2>conftest.er1
32330   ac_status=$?
32331   grep -v '^ *+' conftest.er1 >conftest.err
32332   rm -f conftest.er1
32333   cat conftest.err >&5
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); } &&
32336          { ac_try='test -z "$ac_c_werror_flag"
32337                          || test ! -s conftest.err'
32338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32339   (eval $ac_try) 2>&5
32340   ac_status=$?
32341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342   (exit $ac_status); }; } &&
32343          { ac_try='test -s conftest$ac_exeext'
32344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32345   (eval $ac_try) 2>&5
32346   ac_status=$?
32347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348   (exit $ac_status); }; }; then
32349   ol_cv_pthread_lpthread_lmach_lexc=yes
32350 else
32351   echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.$ac_ext >&5
32353
32354 ol_cv_pthread_lpthread_lmach_lexc=no
32355 fi
32356 rm -f conftest.err conftest.$ac_objext \
32357       conftest$ac_exeext conftest.$ac_ext
32358 else
32359   cat >conftest.$ac_ext <<_ACEOF
32360 /* confdefs.h.  */
32361 _ACEOF
32362 cat confdefs.h >>conftest.$ac_ext
32363 cat >>conftest.$ac_ext <<_ACEOF
32364 /* end confdefs.h.  */
32365
32366 /* pthread test headers */
32367 #include <pthread.h>
32368 #if HAVE_PTHREADS < 7
32369 #include <errno.h>
32370 #endif
32371 #ifndef NULL
32372 #define NULL (void*)0
32373 #endif
32374
32375 static void *task(p)
32376         void *p;
32377 {
32378         return (void *) (p == NULL);
32379 }
32380
32381
32382 int main(argc, argv)
32383         int argc;
32384         char **argv;
32385 {
32386
32387         /* pthread test function */
32388 #ifndef PTHREAD_CREATE_DETACHED
32389 #define PTHREAD_CREATE_DETACHED 1
32390 #endif
32391         pthread_t t;
32392         int status;
32393         int detach = PTHREAD_CREATE_DETACHED;
32394
32395 #if HAVE_PTHREADS > 4
32396         /* Final pthreads */
32397         pthread_attr_t attr;
32398
32399         status = pthread_attr_init(&attr);
32400         if( status ) return status;
32401
32402 #if HAVE_PTHREADS < 7
32403         status = pthread_attr_setdetachstate(&attr, &detach);
32404         if( status < 0 ) status = errno;
32405 #else
32406         status = pthread_attr_setdetachstate(&attr, detach);
32407 #endif
32408         if( status ) return status;
32409         status = pthread_create( &t, &attr, task, NULL );
32410 #if HAVE_PTHREADS < 7
32411         if( status < 0 ) status = errno;
32412 #endif
32413         if( status ) return status;
32414 #else
32415         /* Draft 4 pthreads */
32416         status = pthread_create( &t, pthread_attr_default, task, NULL );
32417         if( status ) return errno;
32418
32419         /* give thread a chance to complete */
32420         /* it should remain joinable and hence detachable */
32421         sleep( 1 );
32422
32423         status = pthread_detach( &t );
32424         if( status ) return errno;
32425 #endif
32426
32427 #ifdef HAVE_LINUX_THREADS
32428         pthread_kill_other_threads_np();
32429 #endif
32430
32431         return 0;
32432
32433 }
32434
32435 _ACEOF
32436 rm -f conftest$ac_exeext
32437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32438   (eval $ac_link) 2>&5
32439   ac_status=$?
32440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32443   (eval $ac_try) 2>&5
32444   ac_status=$?
32445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446   (exit $ac_status); }; }; then
32447   ol_cv_pthread_lpthread_lmach_lexc=yes
32448 else
32449   echo "$as_me: program exited with status $ac_status" >&5
32450 echo "$as_me: failed program was:" >&5
32451 sed 's/^/| /' conftest.$ac_ext >&5
32452
32453 ( exit $ac_status )
32454 ol_cv_pthread_lpthread_lmach_lexc=no
32455 fi
32456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32457 fi
32458
32459                 # restore the LIBS
32460                 LIBS="$ol_LIBS"
32461
32462 fi
32463 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32464 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32465
32466         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32467                 ol_link_pthreads="-lpthread -lmach -lexc"
32468                 ol_link_threads=posix
32469         fi
32470 fi
32471
32472
32473                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32474 if test "$ol_link_threads" = no ; then
32475         # try -lpthread -Wl,-woff,85
32476         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32477 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32478 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32479   echo $ECHO_N "(cached) $ECHO_C" >&6
32480 else
32481
32482                 # save the flags
32483                 ol_LIBS="$LIBS"
32484                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32485
32486                 if test "$cross_compiling" = yes; then
32487   cat >conftest.$ac_ext <<_ACEOF
32488 /* confdefs.h.  */
32489 _ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h.  */
32493
32494 /* pthread test headers */
32495 #include <pthread.h>
32496 #if HAVE_PTHREADS < 7
32497 #include <errno.h>
32498 #endif
32499 #ifndef NULL
32500 #define NULL (void*)0
32501 #endif
32502
32503 static void *task(p)
32504         void *p;
32505 {
32506         return (void *) (p == NULL);
32507 }
32508
32509 int
32510 main ()
32511 {
32512
32513         /* pthread test function */
32514 #ifndef PTHREAD_CREATE_DETACHED
32515 #define PTHREAD_CREATE_DETACHED 1
32516 #endif
32517         pthread_t t;
32518         int status;
32519         int detach = PTHREAD_CREATE_DETACHED;
32520
32521 #if HAVE_PTHREADS > 4
32522         /* Final pthreads */
32523         pthread_attr_t attr;
32524
32525         status = pthread_attr_init(&attr);
32526         if( status ) return status;
32527
32528 #if HAVE_PTHREADS < 7
32529         status = pthread_attr_setdetachstate(&attr, &detach);
32530         if( status < 0 ) status = errno;
32531 #else
32532         status = pthread_attr_setdetachstate(&attr, detach);
32533 #endif
32534         if( status ) return status;
32535         status = pthread_create( &t, &attr, task, NULL );
32536 #if HAVE_PTHREADS < 7
32537         if( status < 0 ) status = errno;
32538 #endif
32539         if( status ) return status;
32540 #else
32541         /* Draft 4 pthreads */
32542         status = pthread_create( &t, pthread_attr_default, task, NULL );
32543         if( status ) return errno;
32544
32545         /* give thread a chance to complete */
32546         /* it should remain joinable and hence detachable */
32547         sleep( 1 );
32548
32549         status = pthread_detach( &t );
32550         if( status ) return errno;
32551 #endif
32552
32553 #ifdef HAVE_LINUX_THREADS
32554         pthread_kill_other_threads_np();
32555 #endif
32556
32557         return 0;
32558
32559   ;
32560   return 0;
32561 }
32562 _ACEOF
32563 rm -f conftest.$ac_objext conftest$ac_exeext
32564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32565   (eval $ac_link) 2>conftest.er1
32566   ac_status=$?
32567   grep -v '^ *+' conftest.er1 >conftest.err
32568   rm -f conftest.er1
32569   cat conftest.err >&5
32570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571   (exit $ac_status); } &&
32572          { ac_try='test -z "$ac_c_werror_flag"
32573                          || test ! -s conftest.err'
32574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32575   (eval $ac_try) 2>&5
32576   ac_status=$?
32577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578   (exit $ac_status); }; } &&
32579          { ac_try='test -s conftest$ac_exeext'
32580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581   (eval $ac_try) 2>&5
32582   ac_status=$?
32583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584   (exit $ac_status); }; }; then
32585   ol_cv_pthread_lib_lpthread_woff=yes
32586 else
32587   echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32589
32590 ol_cv_pthread_lib_lpthread_woff=no
32591 fi
32592 rm -f conftest.err conftest.$ac_objext \
32593       conftest$ac_exeext conftest.$ac_ext
32594 else
32595   cat >conftest.$ac_ext <<_ACEOF
32596 /* confdefs.h.  */
32597 _ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h.  */
32601
32602 /* pthread test headers */
32603 #include <pthread.h>
32604 #if HAVE_PTHREADS < 7
32605 #include <errno.h>
32606 #endif
32607 #ifndef NULL
32608 #define NULL (void*)0
32609 #endif
32610
32611 static void *task(p)
32612         void *p;
32613 {
32614         return (void *) (p == NULL);
32615 }
32616
32617
32618 int main(argc, argv)
32619         int argc;
32620         char **argv;
32621 {
32622
32623         /* pthread test function */
32624 #ifndef PTHREAD_CREATE_DETACHED
32625 #define PTHREAD_CREATE_DETACHED 1
32626 #endif
32627         pthread_t t;
32628         int status;
32629         int detach = PTHREAD_CREATE_DETACHED;
32630
32631 #if HAVE_PTHREADS > 4
32632         /* Final pthreads */
32633         pthread_attr_t attr;
32634
32635         status = pthread_attr_init(&attr);
32636         if( status ) return status;
32637
32638 #if HAVE_PTHREADS < 7
32639         status = pthread_attr_setdetachstate(&attr, &detach);
32640         if( status < 0 ) status = errno;
32641 #else
32642         status = pthread_attr_setdetachstate(&attr, detach);
32643 #endif
32644         if( status ) return status;
32645         status = pthread_create( &t, &attr, task, NULL );
32646 #if HAVE_PTHREADS < 7
32647         if( status < 0 ) status = errno;
32648 #endif
32649         if( status ) return status;
32650 #else
32651         /* Draft 4 pthreads */
32652         status = pthread_create( &t, pthread_attr_default, task, NULL );
32653         if( status ) return errno;
32654
32655         /* give thread a chance to complete */
32656         /* it should remain joinable and hence detachable */
32657         sleep( 1 );
32658
32659         status = pthread_detach( &t );
32660         if( status ) return errno;
32661 #endif
32662
32663 #ifdef HAVE_LINUX_THREADS
32664         pthread_kill_other_threads_np();
32665 #endif
32666
32667         return 0;
32668
32669 }
32670
32671 _ACEOF
32672 rm -f conftest$ac_exeext
32673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32674   (eval $ac_link) 2>&5
32675   ac_status=$?
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32679   (eval $ac_try) 2>&5
32680   ac_status=$?
32681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682   (exit $ac_status); }; }; then
32683   ol_cv_pthread_lib_lpthread_woff=yes
32684 else
32685   echo "$as_me: program exited with status $ac_status" >&5
32686 echo "$as_me: failed program was:" >&5
32687 sed 's/^/| /' conftest.$ac_ext >&5
32688
32689 ( exit $ac_status )
32690 ol_cv_pthread_lib_lpthread_woff=no
32691 fi
32692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32693 fi
32694
32695                 # restore the LIBS
32696                 LIBS="$ol_LIBS"
32697
32698 fi
32699 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32700 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32701
32702         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32703                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32704                 ol_link_threads=posix
32705         fi
32706 fi
32707
32708
32709                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32710 if test "$ol_link_threads" = no ; then
32711         # try -lpthread
32712         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32713 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32714 if test "${ol_cv_pthread_lpthread+set}" = set; then
32715   echo $ECHO_N "(cached) $ECHO_C" >&6
32716 else
32717
32718                 # save the flags
32719                 ol_LIBS="$LIBS"
32720                 LIBS="-lpthread $LIBS"
32721
32722                 if test "$cross_compiling" = yes; then
32723   cat >conftest.$ac_ext <<_ACEOF
32724 /* confdefs.h.  */
32725 _ACEOF
32726 cat confdefs.h >>conftest.$ac_ext
32727 cat >>conftest.$ac_ext <<_ACEOF
32728 /* end confdefs.h.  */
32729
32730 /* pthread test headers */
32731 #include <pthread.h>
32732 #if HAVE_PTHREADS < 7
32733 #include <errno.h>
32734 #endif
32735 #ifndef NULL
32736 #define NULL (void*)0
32737 #endif
32738
32739 static void *task(p)
32740         void *p;
32741 {
32742         return (void *) (p == NULL);
32743 }
32744
32745 int
32746 main ()
32747 {
32748
32749         /* pthread test function */
32750 #ifndef PTHREAD_CREATE_DETACHED
32751 #define PTHREAD_CREATE_DETACHED 1
32752 #endif
32753         pthread_t t;
32754         int status;
32755         int detach = PTHREAD_CREATE_DETACHED;
32756
32757 #if HAVE_PTHREADS > 4
32758         /* Final pthreads */
32759         pthread_attr_t attr;
32760
32761         status = pthread_attr_init(&attr);
32762         if( status ) return status;
32763
32764 #if HAVE_PTHREADS < 7
32765         status = pthread_attr_setdetachstate(&attr, &detach);
32766         if( status < 0 ) status = errno;
32767 #else
32768         status = pthread_attr_setdetachstate(&attr, detach);
32769 #endif
32770         if( status ) return status;
32771         status = pthread_create( &t, &attr, task, NULL );
32772 #if HAVE_PTHREADS < 7
32773         if( status < 0 ) status = errno;
32774 #endif
32775         if( status ) return status;
32776 #else
32777         /* Draft 4 pthreads */
32778         status = pthread_create( &t, pthread_attr_default, task, NULL );
32779         if( status ) return errno;
32780
32781         /* give thread a chance to complete */
32782         /* it should remain joinable and hence detachable */
32783         sleep( 1 );
32784
32785         status = pthread_detach( &t );
32786         if( status ) return errno;
32787 #endif
32788
32789 #ifdef HAVE_LINUX_THREADS
32790         pthread_kill_other_threads_np();
32791 #endif
32792
32793         return 0;
32794
32795   ;
32796   return 0;
32797 }
32798 _ACEOF
32799 rm -f conftest.$ac_objext conftest$ac_exeext
32800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32801   (eval $ac_link) 2>conftest.er1
32802   ac_status=$?
32803   grep -v '^ *+' conftest.er1 >conftest.err
32804   rm -f conftest.er1
32805   cat conftest.err >&5
32806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807   (exit $ac_status); } &&
32808          { ac_try='test -z "$ac_c_werror_flag"
32809                          || test ! -s conftest.err'
32810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32811   (eval $ac_try) 2>&5
32812   ac_status=$?
32813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814   (exit $ac_status); }; } &&
32815          { ac_try='test -s conftest$ac_exeext'
32816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32817   (eval $ac_try) 2>&5
32818   ac_status=$?
32819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820   (exit $ac_status); }; }; then
32821   ol_cv_pthread_lpthread=yes
32822 else
32823   echo "$as_me: failed program was:" >&5
32824 sed 's/^/| /' conftest.$ac_ext >&5
32825
32826 ol_cv_pthread_lpthread=no
32827 fi
32828 rm -f conftest.err conftest.$ac_objext \
32829       conftest$ac_exeext conftest.$ac_ext
32830 else
32831   cat >conftest.$ac_ext <<_ACEOF
32832 /* confdefs.h.  */
32833 _ACEOF
32834 cat confdefs.h >>conftest.$ac_ext
32835 cat >>conftest.$ac_ext <<_ACEOF
32836 /* end confdefs.h.  */
32837
32838 /* pthread test headers */
32839 #include <pthread.h>
32840 #if HAVE_PTHREADS < 7
32841 #include <errno.h>
32842 #endif
32843 #ifndef NULL
32844 #define NULL (void*)0
32845 #endif
32846
32847 static void *task(p)
32848         void *p;
32849 {
32850         return (void *) (p == NULL);
32851 }
32852
32853
32854 int main(argc, argv)
32855         int argc;
32856         char **argv;
32857 {
32858
32859         /* pthread test function */
32860 #ifndef PTHREAD_CREATE_DETACHED
32861 #define PTHREAD_CREATE_DETACHED 1
32862 #endif
32863         pthread_t t;
32864         int status;
32865         int detach = PTHREAD_CREATE_DETACHED;
32866
32867 #if HAVE_PTHREADS > 4
32868         /* Final pthreads */
32869         pthread_attr_t attr;
32870
32871         status = pthread_attr_init(&attr);
32872         if( status ) return status;
32873
32874 #if HAVE_PTHREADS < 7
32875         status = pthread_attr_setdetachstate(&attr, &detach);
32876         if( status < 0 ) status = errno;
32877 #else
32878         status = pthread_attr_setdetachstate(&attr, detach);
32879 #endif
32880         if( status ) return status;
32881         status = pthread_create( &t, &attr, task, NULL );
32882 #if HAVE_PTHREADS < 7
32883         if( status < 0 ) status = errno;
32884 #endif
32885         if( status ) return status;
32886 #else
32887         /* Draft 4 pthreads */
32888         status = pthread_create( &t, pthread_attr_default, task, NULL );
32889         if( status ) return errno;
32890
32891         /* give thread a chance to complete */
32892         /* it should remain joinable and hence detachable */
32893         sleep( 1 );
32894
32895         status = pthread_detach( &t );
32896         if( status ) return errno;
32897 #endif
32898
32899 #ifdef HAVE_LINUX_THREADS
32900         pthread_kill_other_threads_np();
32901 #endif
32902
32903         return 0;
32904
32905 }
32906
32907 _ACEOF
32908 rm -f conftest$ac_exeext
32909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32910   (eval $ac_link) 2>&5
32911   ac_status=$?
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32915   (eval $ac_try) 2>&5
32916   ac_status=$?
32917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918   (exit $ac_status); }; }; then
32919   ol_cv_pthread_lpthread=yes
32920 else
32921   echo "$as_me: program exited with status $ac_status" >&5
32922 echo "$as_me: failed program was:" >&5
32923 sed 's/^/| /' conftest.$ac_ext >&5
32924
32925 ( exit $ac_status )
32926 ol_cv_pthread_lpthread=no
32927 fi
32928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32929 fi
32930
32931                 # restore the LIBS
32932                 LIBS="$ol_LIBS"
32933
32934 fi
32935 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32936 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32937
32938         if test $ol_cv_pthread_lpthread = yes ; then
32939                 ol_link_pthreads="-lpthread"
32940                 ol_link_threads=posix
32941         fi
32942 fi
32943
32944                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32945 if test "$ol_link_threads" = no ; then
32946         # try -lc_r
32947         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32948 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32949 if test "${ol_cv_pthread_lc_r+set}" = set; then
32950   echo $ECHO_N "(cached) $ECHO_C" >&6
32951 else
32952
32953                 # save the flags
32954                 ol_LIBS="$LIBS"
32955                 LIBS="-lc_r $LIBS"
32956
32957                 if test "$cross_compiling" = yes; then
32958   cat >conftest.$ac_ext <<_ACEOF
32959 /* confdefs.h.  */
32960 _ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h.  */
32964
32965 /* pthread test headers */
32966 #include <pthread.h>
32967 #if HAVE_PTHREADS < 7
32968 #include <errno.h>
32969 #endif
32970 #ifndef NULL
32971 #define NULL (void*)0
32972 #endif
32973
32974 static void *task(p)
32975         void *p;
32976 {
32977         return (void *) (p == NULL);
32978 }
32979
32980 int
32981 main ()
32982 {
32983
32984         /* pthread test function */
32985 #ifndef PTHREAD_CREATE_DETACHED
32986 #define PTHREAD_CREATE_DETACHED 1
32987 #endif
32988         pthread_t t;
32989         int status;
32990         int detach = PTHREAD_CREATE_DETACHED;
32991
32992 #if HAVE_PTHREADS > 4
32993         /* Final pthreads */
32994         pthread_attr_t attr;
32995
32996         status = pthread_attr_init(&attr);
32997         if( status ) return status;
32998
32999 #if HAVE_PTHREADS < 7
33000         status = pthread_attr_setdetachstate(&attr, &detach);
33001         if( status < 0 ) status = errno;
33002 #else
33003         status = pthread_attr_setdetachstate(&attr, detach);
33004 #endif
33005         if( status ) return status;
33006         status = pthread_create( &t, &attr, task, NULL );
33007 #if HAVE_PTHREADS < 7
33008         if( status < 0 ) status = errno;
33009 #endif
33010         if( status ) return status;
33011 #else
33012         /* Draft 4 pthreads */
33013         status = pthread_create( &t, pthread_attr_default, task, NULL );
33014         if( status ) return errno;
33015
33016         /* give thread a chance to complete */
33017         /* it should remain joinable and hence detachable */
33018         sleep( 1 );
33019
33020         status = pthread_detach( &t );
33021         if( status ) return errno;
33022 #endif
33023
33024 #ifdef HAVE_LINUX_THREADS
33025         pthread_kill_other_threads_np();
33026 #endif
33027
33028         return 0;
33029
33030   ;
33031   return 0;
33032 }
33033 _ACEOF
33034 rm -f conftest.$ac_objext conftest$ac_exeext
33035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33036   (eval $ac_link) 2>conftest.er1
33037   ac_status=$?
33038   grep -v '^ *+' conftest.er1 >conftest.err
33039   rm -f conftest.er1
33040   cat conftest.err >&5
33041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042   (exit $ac_status); } &&
33043          { ac_try='test -z "$ac_c_werror_flag"
33044                          || test ! -s conftest.err'
33045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33046   (eval $ac_try) 2>&5
33047   ac_status=$?
33048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049   (exit $ac_status); }; } &&
33050          { ac_try='test -s conftest$ac_exeext'
33051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052   (eval $ac_try) 2>&5
33053   ac_status=$?
33054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055   (exit $ac_status); }; }; then
33056   ol_cv_pthread_lc_r=yes
33057 else
33058   echo "$as_me: failed program was:" >&5
33059 sed 's/^/| /' conftest.$ac_ext >&5
33060
33061 ol_cv_pthread_lc_r=no
33062 fi
33063 rm -f conftest.err conftest.$ac_objext \
33064       conftest$ac_exeext conftest.$ac_ext
33065 else
33066   cat >conftest.$ac_ext <<_ACEOF
33067 /* confdefs.h.  */
33068 _ACEOF
33069 cat confdefs.h >>conftest.$ac_ext
33070 cat >>conftest.$ac_ext <<_ACEOF
33071 /* end confdefs.h.  */
33072
33073 /* pthread test headers */
33074 #include <pthread.h>
33075 #if HAVE_PTHREADS < 7
33076 #include <errno.h>
33077 #endif
33078 #ifndef NULL
33079 #define NULL (void*)0
33080 #endif
33081
33082 static void *task(p)
33083         void *p;
33084 {
33085         return (void *) (p == NULL);
33086 }
33087
33088
33089 int main(argc, argv)
33090         int argc;
33091         char **argv;
33092 {
33093
33094         /* pthread test function */
33095 #ifndef PTHREAD_CREATE_DETACHED
33096 #define PTHREAD_CREATE_DETACHED 1
33097 #endif
33098         pthread_t t;
33099         int status;
33100         int detach = PTHREAD_CREATE_DETACHED;
33101
33102 #if HAVE_PTHREADS > 4
33103         /* Final pthreads */
33104         pthread_attr_t attr;
33105
33106         status = pthread_attr_init(&attr);
33107         if( status ) return status;
33108
33109 #if HAVE_PTHREADS < 7
33110         status = pthread_attr_setdetachstate(&attr, &detach);
33111         if( status < 0 ) status = errno;
33112 #else
33113         status = pthread_attr_setdetachstate(&attr, detach);
33114 #endif
33115         if( status ) return status;
33116         status = pthread_create( &t, &attr, task, NULL );
33117 #if HAVE_PTHREADS < 7
33118         if( status < 0 ) status = errno;
33119 #endif
33120         if( status ) return status;
33121 #else
33122         /* Draft 4 pthreads */
33123         status = pthread_create( &t, pthread_attr_default, task, NULL );
33124         if( status ) return errno;
33125
33126         /* give thread a chance to complete */
33127         /* it should remain joinable and hence detachable */
33128         sleep( 1 );
33129
33130         status = pthread_detach( &t );
33131         if( status ) return errno;
33132 #endif
33133
33134 #ifdef HAVE_LINUX_THREADS
33135         pthread_kill_other_threads_np();
33136 #endif
33137
33138         return 0;
33139
33140 }
33141
33142 _ACEOF
33143 rm -f conftest$ac_exeext
33144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33145   (eval $ac_link) 2>&5
33146   ac_status=$?
33147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33150   (eval $ac_try) 2>&5
33151   ac_status=$?
33152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153   (exit $ac_status); }; }; then
33154   ol_cv_pthread_lc_r=yes
33155 else
33156   echo "$as_me: program exited with status $ac_status" >&5
33157 echo "$as_me: failed program was:" >&5
33158 sed 's/^/| /' conftest.$ac_ext >&5
33159
33160 ( exit $ac_status )
33161 ol_cv_pthread_lc_r=no
33162 fi
33163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33164 fi
33165
33166                 # restore the LIBS
33167                 LIBS="$ol_LIBS"
33168
33169 fi
33170 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33171 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33172
33173         if test $ol_cv_pthread_lc_r = yes ; then
33174                 ol_link_pthreads="-lc_r"
33175                 ol_link_threads=posix
33176         fi
33177 fi
33178
33179
33180                 # Pthread try link: -threads (ol_cv_pthread_threads)
33181 if test "$ol_link_threads" = no ; then
33182         # try -threads
33183         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33184 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33185 if test "${ol_cv_pthread_threads+set}" = set; then
33186   echo $ECHO_N "(cached) $ECHO_C" >&6
33187 else
33188
33189                 # save the flags
33190                 ol_LIBS="$LIBS"
33191                 LIBS="-threads $LIBS"
33192
33193                 if test "$cross_compiling" = yes; then
33194   cat >conftest.$ac_ext <<_ACEOF
33195 /* confdefs.h.  */
33196 _ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h.  */
33200
33201 /* pthread test headers */
33202 #include <pthread.h>
33203 #if HAVE_PTHREADS < 7
33204 #include <errno.h>
33205 #endif
33206 #ifndef NULL
33207 #define NULL (void*)0
33208 #endif
33209
33210 static void *task(p)
33211         void *p;
33212 {
33213         return (void *) (p == NULL);
33214 }
33215
33216 int
33217 main ()
33218 {
33219
33220         /* pthread test function */
33221 #ifndef PTHREAD_CREATE_DETACHED
33222 #define PTHREAD_CREATE_DETACHED 1
33223 #endif
33224         pthread_t t;
33225         int status;
33226         int detach = PTHREAD_CREATE_DETACHED;
33227
33228 #if HAVE_PTHREADS > 4
33229         /* Final pthreads */
33230         pthread_attr_t attr;
33231
33232         status = pthread_attr_init(&attr);
33233         if( status ) return status;
33234
33235 #if HAVE_PTHREADS < 7
33236         status = pthread_attr_setdetachstate(&attr, &detach);
33237         if( status < 0 ) status = errno;
33238 #else
33239         status = pthread_attr_setdetachstate(&attr, detach);
33240 #endif
33241         if( status ) return status;
33242         status = pthread_create( &t, &attr, task, NULL );
33243 #if HAVE_PTHREADS < 7
33244         if( status < 0 ) status = errno;
33245 #endif
33246         if( status ) return status;
33247 #else
33248         /* Draft 4 pthreads */
33249         status = pthread_create( &t, pthread_attr_default, task, NULL );
33250         if( status ) return errno;
33251
33252         /* give thread a chance to complete */
33253         /* it should remain joinable and hence detachable */
33254         sleep( 1 );
33255
33256         status = pthread_detach( &t );
33257         if( status ) return errno;
33258 #endif
33259
33260 #ifdef HAVE_LINUX_THREADS
33261         pthread_kill_other_threads_np();
33262 #endif
33263
33264         return 0;
33265
33266   ;
33267   return 0;
33268 }
33269 _ACEOF
33270 rm -f conftest.$ac_objext conftest$ac_exeext
33271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33272   (eval $ac_link) 2>conftest.er1
33273   ac_status=$?
33274   grep -v '^ *+' conftest.er1 >conftest.err
33275   rm -f conftest.er1
33276   cat conftest.err >&5
33277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278   (exit $ac_status); } &&
33279          { ac_try='test -z "$ac_c_werror_flag"
33280                          || test ! -s conftest.err'
33281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33282   (eval $ac_try) 2>&5
33283   ac_status=$?
33284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285   (exit $ac_status); }; } &&
33286          { ac_try='test -s conftest$ac_exeext'
33287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288   (eval $ac_try) 2>&5
33289   ac_status=$?
33290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291   (exit $ac_status); }; }; then
33292   ol_cv_pthread_threads=yes
33293 else
33294   echo "$as_me: failed program was:" >&5
33295 sed 's/^/| /' conftest.$ac_ext >&5
33296
33297 ol_cv_pthread_threads=no
33298 fi
33299 rm -f conftest.err conftest.$ac_objext \
33300       conftest$ac_exeext conftest.$ac_ext
33301 else
33302   cat >conftest.$ac_ext <<_ACEOF
33303 /* confdefs.h.  */
33304 _ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h.  */
33308
33309 /* pthread test headers */
33310 #include <pthread.h>
33311 #if HAVE_PTHREADS < 7
33312 #include <errno.h>
33313 #endif
33314 #ifndef NULL
33315 #define NULL (void*)0
33316 #endif
33317
33318 static void *task(p)
33319         void *p;
33320 {
33321         return (void *) (p == NULL);
33322 }
33323
33324
33325 int main(argc, argv)
33326         int argc;
33327         char **argv;
33328 {
33329
33330         /* pthread test function */
33331 #ifndef PTHREAD_CREATE_DETACHED
33332 #define PTHREAD_CREATE_DETACHED 1
33333 #endif
33334         pthread_t t;
33335         int status;
33336         int detach = PTHREAD_CREATE_DETACHED;
33337
33338 #if HAVE_PTHREADS > 4
33339         /* Final pthreads */
33340         pthread_attr_t attr;
33341
33342         status = pthread_attr_init(&attr);
33343         if( status ) return status;
33344
33345 #if HAVE_PTHREADS < 7
33346         status = pthread_attr_setdetachstate(&attr, &detach);
33347         if( status < 0 ) status = errno;
33348 #else
33349         status = pthread_attr_setdetachstate(&attr, detach);
33350 #endif
33351         if( status ) return status;
33352         status = pthread_create( &t, &attr, task, NULL );
33353 #if HAVE_PTHREADS < 7
33354         if( status < 0 ) status = errno;
33355 #endif
33356         if( status ) return status;
33357 #else
33358         /* Draft 4 pthreads */
33359         status = pthread_create( &t, pthread_attr_default, task, NULL );
33360         if( status ) return errno;
33361
33362         /* give thread a chance to complete */
33363         /* it should remain joinable and hence detachable */
33364         sleep( 1 );
33365
33366         status = pthread_detach( &t );
33367         if( status ) return errno;
33368 #endif
33369
33370 #ifdef HAVE_LINUX_THREADS
33371         pthread_kill_other_threads_np();
33372 #endif
33373
33374         return 0;
33375
33376 }
33377
33378 _ACEOF
33379 rm -f conftest$ac_exeext
33380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33381   (eval $ac_link) 2>&5
33382   ac_status=$?
33383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33386   (eval $ac_try) 2>&5
33387   ac_status=$?
33388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389   (exit $ac_status); }; }; then
33390   ol_cv_pthread_threads=yes
33391 else
33392   echo "$as_me: program exited with status $ac_status" >&5
33393 echo "$as_me: failed program was:" >&5
33394 sed 's/^/| /' conftest.$ac_ext >&5
33395
33396 ( exit $ac_status )
33397 ol_cv_pthread_threads=no
33398 fi
33399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33400 fi
33401
33402                 # restore the LIBS
33403                 LIBS="$ol_LIBS"
33404
33405 fi
33406 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33407 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33408
33409         if test $ol_cv_pthread_threads = yes ; then
33410                 ol_link_pthreads="-threads"
33411                 ol_link_threads=posix
33412         fi
33413 fi
33414
33415
33416                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33417 if test "$ol_link_threads" = no ; then
33418         # try -lpthreads -lmach -lexc -lc_r
33419         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33420 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33421 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33422   echo $ECHO_N "(cached) $ECHO_C" >&6
33423 else
33424
33425                 # save the flags
33426                 ol_LIBS="$LIBS"
33427                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33428
33429                 if test "$cross_compiling" = yes; then
33430   cat >conftest.$ac_ext <<_ACEOF
33431 /* confdefs.h.  */
33432 _ACEOF
33433 cat confdefs.h >>conftest.$ac_ext
33434 cat >>conftest.$ac_ext <<_ACEOF
33435 /* end confdefs.h.  */
33436
33437 /* pthread test headers */
33438 #include <pthread.h>
33439 #if HAVE_PTHREADS < 7
33440 #include <errno.h>
33441 #endif
33442 #ifndef NULL
33443 #define NULL (void*)0
33444 #endif
33445
33446 static void *task(p)
33447         void *p;
33448 {
33449         return (void *) (p == NULL);
33450 }
33451
33452 int
33453 main ()
33454 {
33455
33456         /* pthread test function */
33457 #ifndef PTHREAD_CREATE_DETACHED
33458 #define PTHREAD_CREATE_DETACHED 1
33459 #endif
33460         pthread_t t;
33461         int status;
33462         int detach = PTHREAD_CREATE_DETACHED;
33463
33464 #if HAVE_PTHREADS > 4
33465         /* Final pthreads */
33466         pthread_attr_t attr;
33467
33468         status = pthread_attr_init(&attr);
33469         if( status ) return status;
33470
33471 #if HAVE_PTHREADS < 7
33472         status = pthread_attr_setdetachstate(&attr, &detach);
33473         if( status < 0 ) status = errno;
33474 #else
33475         status = pthread_attr_setdetachstate(&attr, detach);
33476 #endif
33477         if( status ) return status;
33478         status = pthread_create( &t, &attr, task, NULL );
33479 #if HAVE_PTHREADS < 7
33480         if( status < 0 ) status = errno;
33481 #endif
33482         if( status ) return status;
33483 #else
33484         /* Draft 4 pthreads */
33485         status = pthread_create( &t, pthread_attr_default, task, NULL );
33486         if( status ) return errno;
33487
33488         /* give thread a chance to complete */
33489         /* it should remain joinable and hence detachable */
33490         sleep( 1 );
33491
33492         status = pthread_detach( &t );
33493         if( status ) return errno;
33494 #endif
33495
33496 #ifdef HAVE_LINUX_THREADS
33497         pthread_kill_other_threads_np();
33498 #endif
33499
33500         return 0;
33501
33502   ;
33503   return 0;
33504 }
33505 _ACEOF
33506 rm -f conftest.$ac_objext conftest$ac_exeext
33507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33508   (eval $ac_link) 2>conftest.er1
33509   ac_status=$?
33510   grep -v '^ *+' conftest.er1 >conftest.err
33511   rm -f conftest.er1
33512   cat conftest.err >&5
33513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514   (exit $ac_status); } &&
33515          { ac_try='test -z "$ac_c_werror_flag"
33516                          || test ! -s conftest.err'
33517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33518   (eval $ac_try) 2>&5
33519   ac_status=$?
33520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521   (exit $ac_status); }; } &&
33522          { ac_try='test -s conftest$ac_exeext'
33523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524   (eval $ac_try) 2>&5
33525   ac_status=$?
33526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527   (exit $ac_status); }; }; then
33528   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33529 else
33530   echo "$as_me: failed program was:" >&5
33531 sed 's/^/| /' conftest.$ac_ext >&5
33532
33533 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33534 fi
33535 rm -f conftest.err conftest.$ac_objext \
33536       conftest$ac_exeext conftest.$ac_ext
33537 else
33538   cat >conftest.$ac_ext <<_ACEOF
33539 /* confdefs.h.  */
33540 _ACEOF
33541 cat confdefs.h >>conftest.$ac_ext
33542 cat >>conftest.$ac_ext <<_ACEOF
33543 /* end confdefs.h.  */
33544
33545 /* pthread test headers */
33546 #include <pthread.h>
33547 #if HAVE_PTHREADS < 7
33548 #include <errno.h>
33549 #endif
33550 #ifndef NULL
33551 #define NULL (void*)0
33552 #endif
33553
33554 static void *task(p)
33555         void *p;
33556 {
33557         return (void *) (p == NULL);
33558 }
33559
33560
33561 int main(argc, argv)
33562         int argc;
33563         char **argv;
33564 {
33565
33566         /* pthread test function */
33567 #ifndef PTHREAD_CREATE_DETACHED
33568 #define PTHREAD_CREATE_DETACHED 1
33569 #endif
33570         pthread_t t;
33571         int status;
33572         int detach = PTHREAD_CREATE_DETACHED;
33573
33574 #if HAVE_PTHREADS > 4
33575         /* Final pthreads */
33576         pthread_attr_t attr;
33577
33578         status = pthread_attr_init(&attr);
33579         if( status ) return status;
33580
33581 #if HAVE_PTHREADS < 7
33582         status = pthread_attr_setdetachstate(&attr, &detach);
33583         if( status < 0 ) status = errno;
33584 #else
33585         status = pthread_attr_setdetachstate(&attr, detach);
33586 #endif
33587         if( status ) return status;
33588         status = pthread_create( &t, &attr, task, NULL );
33589 #if HAVE_PTHREADS < 7
33590         if( status < 0 ) status = errno;
33591 #endif
33592         if( status ) return status;
33593 #else
33594         /* Draft 4 pthreads */
33595         status = pthread_create( &t, pthread_attr_default, task, NULL );
33596         if( status ) return errno;
33597
33598         /* give thread a chance to complete */
33599         /* it should remain joinable and hence detachable */
33600         sleep( 1 );
33601
33602         status = pthread_detach( &t );
33603         if( status ) return errno;
33604 #endif
33605
33606 #ifdef HAVE_LINUX_THREADS
33607         pthread_kill_other_threads_np();
33608 #endif
33609
33610         return 0;
33611
33612 }
33613
33614 _ACEOF
33615 rm -f conftest$ac_exeext
33616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33617   (eval $ac_link) 2>&5
33618   ac_status=$?
33619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33622   (eval $ac_try) 2>&5
33623   ac_status=$?
33624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625   (exit $ac_status); }; }; then
33626   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33627 else
33628   echo "$as_me: program exited with status $ac_status" >&5
33629 echo "$as_me: failed program was:" >&5
33630 sed 's/^/| /' conftest.$ac_ext >&5
33631
33632 ( exit $ac_status )
33633 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33634 fi
33635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33636 fi
33637
33638                 # restore the LIBS
33639                 LIBS="$ol_LIBS"
33640
33641 fi
33642 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33643 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33644
33645         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33646                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33647                 ol_link_threads=posix
33648         fi
33649 fi
33650
33651                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33652 if test "$ol_link_threads" = no ; then
33653         # try -lpthreads -lmach -lexc
33654         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33655 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33656 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33657   echo $ECHO_N "(cached) $ECHO_C" >&6
33658 else
33659
33660                 # save the flags
33661                 ol_LIBS="$LIBS"
33662                 LIBS="-lpthreads -lmach -lexc $LIBS"
33663
33664                 if test "$cross_compiling" = yes; then
33665   cat >conftest.$ac_ext <<_ACEOF
33666 /* confdefs.h.  */
33667 _ACEOF
33668 cat confdefs.h >>conftest.$ac_ext
33669 cat >>conftest.$ac_ext <<_ACEOF
33670 /* end confdefs.h.  */
33671
33672 /* pthread test headers */
33673 #include <pthread.h>
33674 #if HAVE_PTHREADS < 7
33675 #include <errno.h>
33676 #endif
33677 #ifndef NULL
33678 #define NULL (void*)0
33679 #endif
33680
33681 static void *task(p)
33682         void *p;
33683 {
33684         return (void *) (p == NULL);
33685 }
33686
33687 int
33688 main ()
33689 {
33690
33691         /* pthread test function */
33692 #ifndef PTHREAD_CREATE_DETACHED
33693 #define PTHREAD_CREATE_DETACHED 1
33694 #endif
33695         pthread_t t;
33696         int status;
33697         int detach = PTHREAD_CREATE_DETACHED;
33698
33699 #if HAVE_PTHREADS > 4
33700         /* Final pthreads */
33701         pthread_attr_t attr;
33702
33703         status = pthread_attr_init(&attr);
33704         if( status ) return status;
33705
33706 #if HAVE_PTHREADS < 7
33707         status = pthread_attr_setdetachstate(&attr, &detach);
33708         if( status < 0 ) status = errno;
33709 #else
33710         status = pthread_attr_setdetachstate(&attr, detach);
33711 #endif
33712         if( status ) return status;
33713         status = pthread_create( &t, &attr, task, NULL );
33714 #if HAVE_PTHREADS < 7
33715         if( status < 0 ) status = errno;
33716 #endif
33717         if( status ) return status;
33718 #else
33719         /* Draft 4 pthreads */
33720         status = pthread_create( &t, pthread_attr_default, task, NULL );
33721         if( status ) return errno;
33722
33723         /* give thread a chance to complete */
33724         /* it should remain joinable and hence detachable */
33725         sleep( 1 );
33726
33727         status = pthread_detach( &t );
33728         if( status ) return errno;
33729 #endif
33730
33731 #ifdef HAVE_LINUX_THREADS
33732         pthread_kill_other_threads_np();
33733 #endif
33734
33735         return 0;
33736
33737   ;
33738   return 0;
33739 }
33740 _ACEOF
33741 rm -f conftest.$ac_objext conftest$ac_exeext
33742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33743   (eval $ac_link) 2>conftest.er1
33744   ac_status=$?
33745   grep -v '^ *+' conftest.er1 >conftest.err
33746   rm -f conftest.er1
33747   cat conftest.err >&5
33748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749   (exit $ac_status); } &&
33750          { ac_try='test -z "$ac_c_werror_flag"
33751                          || test ! -s conftest.err'
33752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33753   (eval $ac_try) 2>&5
33754   ac_status=$?
33755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756   (exit $ac_status); }; } &&
33757          { ac_try='test -s conftest$ac_exeext'
33758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33759   (eval $ac_try) 2>&5
33760   ac_status=$?
33761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762   (exit $ac_status); }; }; then
33763   ol_cv_pthread_lpthreads_lmach_lexc=yes
33764 else
33765   echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33767
33768 ol_cv_pthread_lpthreads_lmach_lexc=no
33769 fi
33770 rm -f conftest.err conftest.$ac_objext \
33771       conftest$ac_exeext conftest.$ac_ext
33772 else
33773   cat >conftest.$ac_ext <<_ACEOF
33774 /* confdefs.h.  */
33775 _ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h.  */
33779
33780 /* pthread test headers */
33781 #include <pthread.h>
33782 #if HAVE_PTHREADS < 7
33783 #include <errno.h>
33784 #endif
33785 #ifndef NULL
33786 #define NULL (void*)0
33787 #endif
33788
33789 static void *task(p)
33790         void *p;
33791 {
33792         return (void *) (p == NULL);
33793 }
33794
33795
33796 int main(argc, argv)
33797         int argc;
33798         char **argv;
33799 {
33800
33801         /* pthread test function */
33802 #ifndef PTHREAD_CREATE_DETACHED
33803 #define PTHREAD_CREATE_DETACHED 1
33804 #endif
33805         pthread_t t;
33806         int status;
33807         int detach = PTHREAD_CREATE_DETACHED;
33808
33809 #if HAVE_PTHREADS > 4
33810         /* Final pthreads */
33811         pthread_attr_t attr;
33812
33813         status = pthread_attr_init(&attr);
33814         if( status ) return status;
33815
33816 #if HAVE_PTHREADS < 7
33817         status = pthread_attr_setdetachstate(&attr, &detach);
33818         if( status < 0 ) status = errno;
33819 #else
33820         status = pthread_attr_setdetachstate(&attr, detach);
33821 #endif
33822         if( status ) return status;
33823         status = pthread_create( &t, &attr, task, NULL );
33824 #if HAVE_PTHREADS < 7
33825         if( status < 0 ) status = errno;
33826 #endif
33827         if( status ) return status;
33828 #else
33829         /* Draft 4 pthreads */
33830         status = pthread_create( &t, pthread_attr_default, task, NULL );
33831         if( status ) return errno;
33832
33833         /* give thread a chance to complete */
33834         /* it should remain joinable and hence detachable */
33835         sleep( 1 );
33836
33837         status = pthread_detach( &t );
33838         if( status ) return errno;
33839 #endif
33840
33841 #ifdef HAVE_LINUX_THREADS
33842         pthread_kill_other_threads_np();
33843 #endif
33844
33845         return 0;
33846
33847 }
33848
33849 _ACEOF
33850 rm -f conftest$ac_exeext
33851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33852   (eval $ac_link) 2>&5
33853   ac_status=$?
33854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33857   (eval $ac_try) 2>&5
33858   ac_status=$?
33859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860   (exit $ac_status); }; }; then
33861   ol_cv_pthread_lpthreads_lmach_lexc=yes
33862 else
33863   echo "$as_me: program exited with status $ac_status" >&5
33864 echo "$as_me: failed program was:" >&5
33865 sed 's/^/| /' conftest.$ac_ext >&5
33866
33867 ( exit $ac_status )
33868 ol_cv_pthread_lpthreads_lmach_lexc=no
33869 fi
33870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33871 fi
33872
33873                 # restore the LIBS
33874                 LIBS="$ol_LIBS"
33875
33876 fi
33877 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33878 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33879
33880         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33881                 ol_link_pthreads="-lpthreads -lmach -lexc"
33882                 ol_link_threads=posix
33883         fi
33884 fi
33885
33886                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33887 if test "$ol_link_threads" = no ; then
33888         # try -lpthreads -lexc
33889         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33890 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33891 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33892   echo $ECHO_N "(cached) $ECHO_C" >&6
33893 else
33894
33895                 # save the flags
33896                 ol_LIBS="$LIBS"
33897                 LIBS="-lpthreads -lexc $LIBS"
33898
33899                 if test "$cross_compiling" = yes; then
33900   cat >conftest.$ac_ext <<_ACEOF
33901 /* confdefs.h.  */
33902 _ACEOF
33903 cat confdefs.h >>conftest.$ac_ext
33904 cat >>conftest.$ac_ext <<_ACEOF
33905 /* end confdefs.h.  */
33906
33907 /* pthread test headers */
33908 #include <pthread.h>
33909 #if HAVE_PTHREADS < 7
33910 #include <errno.h>
33911 #endif
33912 #ifndef NULL
33913 #define NULL (void*)0
33914 #endif
33915
33916 static void *task(p)
33917         void *p;
33918 {
33919         return (void *) (p == NULL);
33920 }
33921
33922 int
33923 main ()
33924 {
33925
33926         /* pthread test function */
33927 #ifndef PTHREAD_CREATE_DETACHED
33928 #define PTHREAD_CREATE_DETACHED 1
33929 #endif
33930         pthread_t t;
33931         int status;
33932         int detach = PTHREAD_CREATE_DETACHED;
33933
33934 #if HAVE_PTHREADS > 4
33935         /* Final pthreads */
33936         pthread_attr_t attr;
33937
33938         status = pthread_attr_init(&attr);
33939         if( status ) return status;
33940
33941 #if HAVE_PTHREADS < 7
33942         status = pthread_attr_setdetachstate(&attr, &detach);
33943         if( status < 0 ) status = errno;
33944 #else
33945         status = pthread_attr_setdetachstate(&attr, detach);
33946 #endif
33947         if( status ) return status;
33948         status = pthread_create( &t, &attr, task, NULL );
33949 #if HAVE_PTHREADS < 7
33950         if( status < 0 ) status = errno;
33951 #endif
33952         if( status ) return status;
33953 #else
33954         /* Draft 4 pthreads */
33955         status = pthread_create( &t, pthread_attr_default, task, NULL );
33956         if( status ) return errno;
33957
33958         /* give thread a chance to complete */
33959         /* it should remain joinable and hence detachable */
33960         sleep( 1 );
33961
33962         status = pthread_detach( &t );
33963         if( status ) return errno;
33964 #endif
33965
33966 #ifdef HAVE_LINUX_THREADS
33967         pthread_kill_other_threads_np();
33968 #endif
33969
33970         return 0;
33971
33972   ;
33973   return 0;
33974 }
33975 _ACEOF
33976 rm -f conftest.$ac_objext conftest$ac_exeext
33977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33978   (eval $ac_link) 2>conftest.er1
33979   ac_status=$?
33980   grep -v '^ *+' conftest.er1 >conftest.err
33981   rm -f conftest.er1
33982   cat conftest.err >&5
33983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984   (exit $ac_status); } &&
33985          { ac_try='test -z "$ac_c_werror_flag"
33986                          || test ! -s conftest.err'
33987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33988   (eval $ac_try) 2>&5
33989   ac_status=$?
33990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991   (exit $ac_status); }; } &&
33992          { ac_try='test -s conftest$ac_exeext'
33993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33994   (eval $ac_try) 2>&5
33995   ac_status=$?
33996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33997   (exit $ac_status); }; }; then
33998   ol_cv_pthread_lpthreads_lexc=yes
33999 else
34000   echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34002
34003 ol_cv_pthread_lpthreads_lexc=no
34004 fi
34005 rm -f conftest.err conftest.$ac_objext \
34006       conftest$ac_exeext conftest.$ac_ext
34007 else
34008   cat >conftest.$ac_ext <<_ACEOF
34009 /* confdefs.h.  */
34010 _ACEOF
34011 cat confdefs.h >>conftest.$ac_ext
34012 cat >>conftest.$ac_ext <<_ACEOF
34013 /* end confdefs.h.  */
34014
34015 /* pthread test headers */
34016 #include <pthread.h>
34017 #if HAVE_PTHREADS < 7
34018 #include <errno.h>
34019 #endif
34020 #ifndef NULL
34021 #define NULL (void*)0
34022 #endif
34023
34024 static void *task(p)
34025         void *p;
34026 {
34027         return (void *) (p == NULL);
34028 }
34029
34030
34031 int main(argc, argv)
34032         int argc;
34033         char **argv;
34034 {
34035
34036         /* pthread test function */
34037 #ifndef PTHREAD_CREATE_DETACHED
34038 #define PTHREAD_CREATE_DETACHED 1
34039 #endif
34040         pthread_t t;
34041         int status;
34042         int detach = PTHREAD_CREATE_DETACHED;
34043
34044 #if HAVE_PTHREADS > 4
34045         /* Final pthreads */
34046         pthread_attr_t attr;
34047
34048         status = pthread_attr_init(&attr);
34049         if( status ) return status;
34050
34051 #if HAVE_PTHREADS < 7
34052         status = pthread_attr_setdetachstate(&attr, &detach);
34053         if( status < 0 ) status = errno;
34054 #else
34055         status = pthread_attr_setdetachstate(&attr, detach);
34056 #endif
34057         if( status ) return status;
34058         status = pthread_create( &t, &attr, task, NULL );
34059 #if HAVE_PTHREADS < 7
34060         if( status < 0 ) status = errno;
34061 #endif
34062         if( status ) return status;
34063 #else
34064         /* Draft 4 pthreads */
34065         status = pthread_create( &t, pthread_attr_default, task, NULL );
34066         if( status ) return errno;
34067
34068         /* give thread a chance to complete */
34069         /* it should remain joinable and hence detachable */
34070         sleep( 1 );
34071
34072         status = pthread_detach( &t );
34073         if( status ) return errno;
34074 #endif
34075
34076 #ifdef HAVE_LINUX_THREADS
34077         pthread_kill_other_threads_np();
34078 #endif
34079
34080         return 0;
34081
34082 }
34083
34084 _ACEOF
34085 rm -f conftest$ac_exeext
34086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34087   (eval $ac_link) 2>&5
34088   ac_status=$?
34089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092   (eval $ac_try) 2>&5
34093   ac_status=$?
34094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095   (exit $ac_status); }; }; then
34096   ol_cv_pthread_lpthreads_lexc=yes
34097 else
34098   echo "$as_me: program exited with status $ac_status" >&5
34099 echo "$as_me: failed program was:" >&5
34100 sed 's/^/| /' conftest.$ac_ext >&5
34101
34102 ( exit $ac_status )
34103 ol_cv_pthread_lpthreads_lexc=no
34104 fi
34105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34106 fi
34107
34108                 # restore the LIBS
34109                 LIBS="$ol_LIBS"
34110
34111 fi
34112 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
34113 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
34114
34115         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
34116                 ol_link_pthreads="-lpthreads -lexc"
34117                 ol_link_threads=posix
34118         fi
34119 fi
34120
34121
34122                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
34123 if test "$ol_link_threads" = no ; then
34124         # try -lpthreads
34125         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
34126 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
34127 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
34128   echo $ECHO_N "(cached) $ECHO_C" >&6
34129 else
34130
34131                 # save the flags
34132                 ol_LIBS="$LIBS"
34133                 LIBS="-lpthreads $LIBS"
34134
34135                 if test "$cross_compiling" = yes; then
34136   cat >conftest.$ac_ext <<_ACEOF
34137 /* confdefs.h.  */
34138 _ACEOF
34139 cat confdefs.h >>conftest.$ac_ext
34140 cat >>conftest.$ac_ext <<_ACEOF
34141 /* end confdefs.h.  */
34142
34143 /* pthread test headers */
34144 #include <pthread.h>
34145 #if HAVE_PTHREADS < 7
34146 #include <errno.h>
34147 #endif
34148 #ifndef NULL
34149 #define NULL (void*)0
34150 #endif
34151
34152 static void *task(p)
34153         void *p;
34154 {
34155         return (void *) (p == NULL);
34156 }
34157
34158 int
34159 main ()
34160 {
34161
34162         /* pthread test function */
34163 #ifndef PTHREAD_CREATE_DETACHED
34164 #define PTHREAD_CREATE_DETACHED 1
34165 #endif
34166         pthread_t t;
34167         int status;
34168         int detach = PTHREAD_CREATE_DETACHED;
34169
34170 #if HAVE_PTHREADS > 4
34171         /* Final pthreads */
34172         pthread_attr_t attr;
34173
34174         status = pthread_attr_init(&attr);
34175         if( status ) return status;
34176
34177 #if HAVE_PTHREADS < 7
34178         status = pthread_attr_setdetachstate(&attr, &detach);
34179         if( status < 0 ) status = errno;
34180 #else
34181         status = pthread_attr_setdetachstate(&attr, detach);
34182 #endif
34183         if( status ) return status;
34184         status = pthread_create( &t, &attr, task, NULL );
34185 #if HAVE_PTHREADS < 7
34186         if( status < 0 ) status = errno;
34187 #endif
34188         if( status ) return status;
34189 #else
34190         /* Draft 4 pthreads */
34191         status = pthread_create( &t, pthread_attr_default, task, NULL );
34192         if( status ) return errno;
34193
34194         /* give thread a chance to complete */
34195         /* it should remain joinable and hence detachable */
34196         sleep( 1 );
34197
34198         status = pthread_detach( &t );
34199         if( status ) return errno;
34200 #endif
34201
34202 #ifdef HAVE_LINUX_THREADS
34203         pthread_kill_other_threads_np();
34204 #endif
34205
34206         return 0;
34207
34208   ;
34209   return 0;
34210 }
34211 _ACEOF
34212 rm -f conftest.$ac_objext conftest$ac_exeext
34213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34214   (eval $ac_link) 2>conftest.er1
34215   ac_status=$?
34216   grep -v '^ *+' conftest.er1 >conftest.err
34217   rm -f conftest.er1
34218   cat conftest.err >&5
34219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220   (exit $ac_status); } &&
34221          { ac_try='test -z "$ac_c_werror_flag"
34222                          || test ! -s conftest.err'
34223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34224   (eval $ac_try) 2>&5
34225   ac_status=$?
34226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227   (exit $ac_status); }; } &&
34228          { ac_try='test -s conftest$ac_exeext'
34229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34230   (eval $ac_try) 2>&5
34231   ac_status=$?
34232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34233   (exit $ac_status); }; }; then
34234   ol_cv_pthread_lib_lpthreads=yes
34235 else
34236   echo "$as_me: failed program was:" >&5
34237 sed 's/^/| /' conftest.$ac_ext >&5
34238
34239 ol_cv_pthread_lib_lpthreads=no
34240 fi
34241 rm -f conftest.err conftest.$ac_objext \
34242       conftest$ac_exeext conftest.$ac_ext
34243 else
34244   cat >conftest.$ac_ext <<_ACEOF
34245 /* confdefs.h.  */
34246 _ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h.  */
34250
34251 /* pthread test headers */
34252 #include <pthread.h>
34253 #if HAVE_PTHREADS < 7
34254 #include <errno.h>
34255 #endif
34256 #ifndef NULL
34257 #define NULL (void*)0
34258 #endif
34259
34260 static void *task(p)
34261         void *p;
34262 {
34263         return (void *) (p == NULL);
34264 }
34265
34266
34267 int main(argc, argv)
34268         int argc;
34269         char **argv;
34270 {
34271
34272         /* pthread test function */
34273 #ifndef PTHREAD_CREATE_DETACHED
34274 #define PTHREAD_CREATE_DETACHED 1
34275 #endif
34276         pthread_t t;
34277         int status;
34278         int detach = PTHREAD_CREATE_DETACHED;
34279
34280 #if HAVE_PTHREADS > 4
34281         /* Final pthreads */
34282         pthread_attr_t attr;
34283
34284         status = pthread_attr_init(&attr);
34285         if( status ) return status;
34286
34287 #if HAVE_PTHREADS < 7
34288         status = pthread_attr_setdetachstate(&attr, &detach);
34289         if( status < 0 ) status = errno;
34290 #else
34291         status = pthread_attr_setdetachstate(&attr, detach);
34292 #endif
34293         if( status ) return status;
34294         status = pthread_create( &t, &attr, task, NULL );
34295 #if HAVE_PTHREADS < 7
34296         if( status < 0 ) status = errno;
34297 #endif
34298         if( status ) return status;
34299 #else
34300         /* Draft 4 pthreads */
34301         status = pthread_create( &t, pthread_attr_default, task, NULL );
34302         if( status ) return errno;
34303
34304         /* give thread a chance to complete */
34305         /* it should remain joinable and hence detachable */
34306         sleep( 1 );
34307
34308         status = pthread_detach( &t );
34309         if( status ) return errno;
34310 #endif
34311
34312 #ifdef HAVE_LINUX_THREADS
34313         pthread_kill_other_threads_np();
34314 #endif
34315
34316         return 0;
34317
34318 }
34319
34320 _ACEOF
34321 rm -f conftest$ac_exeext
34322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34323   (eval $ac_link) 2>&5
34324   ac_status=$?
34325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328   (eval $ac_try) 2>&5
34329   ac_status=$?
34330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331   (exit $ac_status); }; }; then
34332   ol_cv_pthread_lib_lpthreads=yes
34333 else
34334   echo "$as_me: program exited with status $ac_status" >&5
34335 echo "$as_me: failed program was:" >&5
34336 sed 's/^/| /' conftest.$ac_ext >&5
34337
34338 ( exit $ac_status )
34339 ol_cv_pthread_lib_lpthreads=no
34340 fi
34341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34342 fi
34343
34344                 # restore the LIBS
34345                 LIBS="$ol_LIBS"
34346
34347 fi
34348 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34349 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34350
34351         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34352                 ol_link_pthreads="-lpthreads"
34353                 ol_link_threads=posix
34354         fi
34355 fi
34356
34357
34358                 if test $ol_link_threads != no ; then
34359                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34360
34361                                                 save_CPPFLAGS="$CPPFLAGS"
34362                         save_LIBS="$LIBS"
34363                         LIBS="$LTHREAD_LIBS $LIBS"
34364
34365
34366
34367
34368 for ac_func in sched_yield pthread_yield thr_yield
34369 do
34370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34371 echo "$as_me:$LINENO: checking for $ac_func" >&5
34372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34373 if eval "test \"\${$as_ac_var+set}\" = set"; then
34374   echo $ECHO_N "(cached) $ECHO_C" >&6
34375 else
34376   cat >conftest.$ac_ext <<_ACEOF
34377 /* confdefs.h.  */
34378 _ACEOF
34379 cat confdefs.h >>conftest.$ac_ext
34380 cat >>conftest.$ac_ext <<_ACEOF
34381 /* end confdefs.h.  */
34382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34384 #define $ac_func innocuous_$ac_func
34385
34386 /* System header to define __stub macros and hopefully few prototypes,
34387     which can conflict with char $ac_func (); below.
34388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34389     <limits.h> exists even on freestanding compilers.  */
34390
34391 #ifdef __STDC__
34392 # include <limits.h>
34393 #else
34394 # include <assert.h>
34395 #endif
34396
34397 #undef $ac_func
34398
34399 /* Override any gcc2 internal prototype to avoid an error.  */
34400 #ifdef __cplusplus
34401 extern "C"
34402 {
34403 #endif
34404 /* We use char because int might match the return type of a gcc2
34405    builtin and then its argument prototype would still apply.  */
34406 char $ac_func ();
34407 /* The GNU C library defines this for functions which it implements
34408     to always fail with ENOSYS.  Some functions are actually named
34409     something starting with __ and the normal name is an alias.  */
34410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34411 choke me
34412 #else
34413 char (*f) () = $ac_func;
34414 #endif
34415 #ifdef __cplusplus
34416 }
34417 #endif
34418
34419 int
34420 main ()
34421 {
34422 return f != $ac_func;
34423   ;
34424   return 0;
34425 }
34426 _ACEOF
34427 rm -f conftest.$ac_objext conftest$ac_exeext
34428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34429   (eval $ac_link) 2>conftest.er1
34430   ac_status=$?
34431   grep -v '^ *+' conftest.er1 >conftest.err
34432   rm -f conftest.er1
34433   cat conftest.err >&5
34434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435   (exit $ac_status); } &&
34436          { ac_try='test -z "$ac_c_werror_flag"
34437                          || test ! -s conftest.err'
34438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439   (eval $ac_try) 2>&5
34440   ac_status=$?
34441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442   (exit $ac_status); }; } &&
34443          { ac_try='test -s conftest$ac_exeext'
34444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34445   (eval $ac_try) 2>&5
34446   ac_status=$?
34447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448   (exit $ac_status); }; }; then
34449   eval "$as_ac_var=yes"
34450 else
34451   echo "$as_me: failed program was:" >&5
34452 sed 's/^/| /' conftest.$ac_ext >&5
34453
34454 eval "$as_ac_var=no"
34455 fi
34456 rm -f conftest.err conftest.$ac_objext \
34457       conftest$ac_exeext conftest.$ac_ext
34458 fi
34459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34461 if test `eval echo '${'$as_ac_var'}'` = yes; then
34462   cat >>confdefs.h <<_ACEOF
34463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34464 _ACEOF
34465
34466 fi
34467 done
34468
34469
34470                         if test $ac_cv_func_sched_yield = no -a \
34471                                 $ac_cv_func_pthread_yield = no -a \
34472                                 $ac_cv_func_thr_yield = no ; then
34473                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34474 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34475 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34476   echo $ECHO_N "(cached) $ECHO_C" >&6
34477 else
34478   ac_check_lib_save_LIBS=$LIBS
34479 LIBS="-lrt  $LIBS"
34480 cat >conftest.$ac_ext <<_ACEOF
34481 /* confdefs.h.  */
34482 _ACEOF
34483 cat confdefs.h >>conftest.$ac_ext
34484 cat >>conftest.$ac_ext <<_ACEOF
34485 /* end confdefs.h.  */
34486
34487 /* Override any gcc2 internal prototype to avoid an error.  */
34488 #ifdef __cplusplus
34489 extern "C"
34490 #endif
34491 /* We use char because int might match the return type of a gcc2
34492    builtin and then its argument prototype would still apply.  */
34493 char sched_yield ();
34494 int
34495 main ()
34496 {
34497 sched_yield ();
34498   ;
34499   return 0;
34500 }
34501 _ACEOF
34502 rm -f conftest.$ac_objext conftest$ac_exeext
34503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34504   (eval $ac_link) 2>conftest.er1
34505   ac_status=$?
34506   grep -v '^ *+' conftest.er1 >conftest.err
34507   rm -f conftest.er1
34508   cat conftest.err >&5
34509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510   (exit $ac_status); } &&
34511          { ac_try='test -z "$ac_c_werror_flag"
34512                          || test ! -s conftest.err'
34513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34514   (eval $ac_try) 2>&5
34515   ac_status=$?
34516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517   (exit $ac_status); }; } &&
34518          { ac_try='test -s conftest$ac_exeext'
34519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34520   (eval $ac_try) 2>&5
34521   ac_status=$?
34522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); }; }; then
34524   ac_cv_lib_rt_sched_yield=yes
34525 else
34526   echo "$as_me: failed program was:" >&5
34527 sed 's/^/| /' conftest.$ac_ext >&5
34528
34529 ac_cv_lib_rt_sched_yield=no
34530 fi
34531 rm -f conftest.err conftest.$ac_objext \
34532       conftest$ac_exeext conftest.$ac_ext
34533 LIBS=$ac_check_lib_save_LIBS
34534 fi
34535 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34536 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34537 if test $ac_cv_lib_rt_sched_yield = yes; then
34538   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34539
34540 cat >>confdefs.h <<\_ACEOF
34541 #define HAVE_SCHED_YIELD 1
34542 _ACEOF
34543
34544                                         ac_cv_func_sched_yield=yes
34545 else
34546   ac_cv_func_sched_yield=no
34547 fi
34548
34549                         fi
34550                         if test $ac_cv_func_sched_yield = no -a \
34551                                 $ac_cv_func_pthread_yield = no -a \
34552                                 "$ac_cv_func_thr_yield" = no ; then
34553                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34554 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34555                         fi
34556
34557
34558
34559 for ac_func in pthread_kill pthread_rwlock_destroy
34560 do
34561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34562 echo "$as_me:$LINENO: checking for $ac_func" >&5
34563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34564 if eval "test \"\${$as_ac_var+set}\" = set"; then
34565   echo $ECHO_N "(cached) $ECHO_C" >&6
34566 else
34567   cat >conftest.$ac_ext <<_ACEOF
34568 /* confdefs.h.  */
34569 _ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h.  */
34573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34575 #define $ac_func innocuous_$ac_func
34576
34577 /* System header to define __stub macros and hopefully few prototypes,
34578     which can conflict with char $ac_func (); below.
34579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34580     <limits.h> exists even on freestanding compilers.  */
34581
34582 #ifdef __STDC__
34583 # include <limits.h>
34584 #else
34585 # include <assert.h>
34586 #endif
34587
34588 #undef $ac_func
34589
34590 /* Override any gcc2 internal prototype to avoid an error.  */
34591 #ifdef __cplusplus
34592 extern "C"
34593 {
34594 #endif
34595 /* We use char because int might match the return type of a gcc2
34596    builtin and then its argument prototype would still apply.  */
34597 char $ac_func ();
34598 /* The GNU C library defines this for functions which it implements
34599     to always fail with ENOSYS.  Some functions are actually named
34600     something starting with __ and the normal name is an alias.  */
34601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34602 choke me
34603 #else
34604 char (*f) () = $ac_func;
34605 #endif
34606 #ifdef __cplusplus
34607 }
34608 #endif
34609
34610 int
34611 main ()
34612 {
34613 return f != $ac_func;
34614   ;
34615   return 0;
34616 }
34617 _ACEOF
34618 rm -f conftest.$ac_objext conftest$ac_exeext
34619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34620   (eval $ac_link) 2>conftest.er1
34621   ac_status=$?
34622   grep -v '^ *+' conftest.er1 >conftest.err
34623   rm -f conftest.er1
34624   cat conftest.err >&5
34625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626   (exit $ac_status); } &&
34627          { ac_try='test -z "$ac_c_werror_flag"
34628                          || test ! -s conftest.err'
34629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630   (eval $ac_try) 2>&5
34631   ac_status=$?
34632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633   (exit $ac_status); }; } &&
34634          { ac_try='test -s conftest$ac_exeext'
34635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34636   (eval $ac_try) 2>&5
34637   ac_status=$?
34638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34639   (exit $ac_status); }; }; then
34640   eval "$as_ac_var=yes"
34641 else
34642   echo "$as_me: failed program was:" >&5
34643 sed 's/^/| /' conftest.$ac_ext >&5
34644
34645 eval "$as_ac_var=no"
34646 fi
34647 rm -f conftest.err conftest.$ac_objext \
34648       conftest$ac_exeext conftest.$ac_ext
34649 fi
34650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34652 if test `eval echo '${'$as_ac_var'}'` = yes; then
34653   cat >>confdefs.h <<_ACEOF
34654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34655 _ACEOF
34656
34657 fi
34658 done
34659
34660
34661                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34662 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34663 if test "${ol_cv_func_pthread_detach+set}" = set; then
34664   echo $ECHO_N "(cached) $ECHO_C" >&6
34665 else
34666
34667                                                                 cat >conftest.$ac_ext <<_ACEOF
34668 /* confdefs.h.  */
34669 _ACEOF
34670 cat confdefs.h >>conftest.$ac_ext
34671 cat >>conftest.$ac_ext <<_ACEOF
34672 /* end confdefs.h.  */
34673
34674 #include <pthread.h>
34675 #ifndef NULL
34676 #define NULL (void*)0
34677 #endif
34678
34679 int
34680 main ()
34681 {
34682 pthread_detach(NULL);
34683   ;
34684   return 0;
34685 }
34686 _ACEOF
34687 rm -f conftest.$ac_objext conftest$ac_exeext
34688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34689   (eval $ac_link) 2>conftest.er1
34690   ac_status=$?
34691   grep -v '^ *+' conftest.er1 >conftest.err
34692   rm -f conftest.er1
34693   cat conftest.err >&5
34694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695   (exit $ac_status); } &&
34696          { ac_try='test -z "$ac_c_werror_flag"
34697                          || test ! -s conftest.err'
34698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34699   (eval $ac_try) 2>&5
34700   ac_status=$?
34701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702   (exit $ac_status); }; } &&
34703          { ac_try='test -s conftest$ac_exeext'
34704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34705   (eval $ac_try) 2>&5
34706   ac_status=$?
34707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708   (exit $ac_status); }; }; then
34709   ol_cv_func_pthread_detach=yes
34710 else
34711   echo "$as_me: failed program was:" >&5
34712 sed 's/^/| /' conftest.$ac_ext >&5
34713
34714 ol_cv_func_pthread_detach=no
34715 fi
34716 rm -f conftest.err conftest.$ac_objext \
34717       conftest$ac_exeext conftest.$ac_ext
34718
34719 fi
34720 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34721 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34722
34723                         if test $ol_cv_func_pthread_detach = no ; then
34724                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34725 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34726    { (exit 1); exit 1; }; }
34727                         fi
34728
34729
34730 cat >>confdefs.h <<\_ACEOF
34731 #define HAVE_PTHREAD_DETACH 1
34732 _ACEOF
34733
34734
34735
34736
34737
34738
34739 for ac_func in \
34740                                 pthread_setconcurrency \
34741                                 pthread_getconcurrency \
34742                                 thr_setconcurrency \
34743                                 thr_getconcurrency \
34744
34745 do
34746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34747 echo "$as_me:$LINENO: checking for $ac_func" >&5
34748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34749 if eval "test \"\${$as_ac_var+set}\" = set"; then
34750   echo $ECHO_N "(cached) $ECHO_C" >&6
34751 else
34752   cat >conftest.$ac_ext <<_ACEOF
34753 /* confdefs.h.  */
34754 _ACEOF
34755 cat confdefs.h >>conftest.$ac_ext
34756 cat >>conftest.$ac_ext <<_ACEOF
34757 /* end confdefs.h.  */
34758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34760 #define $ac_func innocuous_$ac_func
34761
34762 /* System header to define __stub macros and hopefully few prototypes,
34763     which can conflict with char $ac_func (); below.
34764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34765     <limits.h> exists even on freestanding compilers.  */
34766
34767 #ifdef __STDC__
34768 # include <limits.h>
34769 #else
34770 # include <assert.h>
34771 #endif
34772
34773 #undef $ac_func
34774
34775 /* Override any gcc2 internal prototype to avoid an error.  */
34776 #ifdef __cplusplus
34777 extern "C"
34778 {
34779 #endif
34780 /* We use char because int might match the return type of a gcc2
34781    builtin and then its argument prototype would still apply.  */
34782 char $ac_func ();
34783 /* The GNU C library defines this for functions which it implements
34784     to always fail with ENOSYS.  Some functions are actually named
34785     something starting with __ and the normal name is an alias.  */
34786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34787 choke me
34788 #else
34789 char (*f) () = $ac_func;
34790 #endif
34791 #ifdef __cplusplus
34792 }
34793 #endif
34794
34795 int
34796 main ()
34797 {
34798 return f != $ac_func;
34799   ;
34800   return 0;
34801 }
34802 _ACEOF
34803 rm -f conftest.$ac_objext conftest$ac_exeext
34804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34805   (eval $ac_link) 2>conftest.er1
34806   ac_status=$?
34807   grep -v '^ *+' conftest.er1 >conftest.err
34808   rm -f conftest.er1
34809   cat conftest.err >&5
34810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811   (exit $ac_status); } &&
34812          { ac_try='test -z "$ac_c_werror_flag"
34813                          || test ! -s conftest.err'
34814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34815   (eval $ac_try) 2>&5
34816   ac_status=$?
34817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818   (exit $ac_status); }; } &&
34819          { ac_try='test -s conftest$ac_exeext'
34820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34821   (eval $ac_try) 2>&5
34822   ac_status=$?
34823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824   (exit $ac_status); }; }; then
34825   eval "$as_ac_var=yes"
34826 else
34827   echo "$as_me: failed program was:" >&5
34828 sed 's/^/| /' conftest.$ac_ext >&5
34829
34830 eval "$as_ac_var=no"
34831 fi
34832 rm -f conftest.err conftest.$ac_objext \
34833       conftest$ac_exeext conftest.$ac_ext
34834 fi
34835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34837 if test `eval echo '${'$as_ac_var'}'` = yes; then
34838   cat >>confdefs.h <<_ACEOF
34839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34840 _ACEOF
34841
34842 fi
34843 done
34844
34845
34846
34847
34848 for ac_func in pthread_kill_other_threads_np
34849 do
34850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34851 echo "$as_me:$LINENO: checking for $ac_func" >&5
34852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34853 if eval "test \"\${$as_ac_var+set}\" = set"; then
34854   echo $ECHO_N "(cached) $ECHO_C" >&6
34855 else
34856   cat >conftest.$ac_ext <<_ACEOF
34857 /* confdefs.h.  */
34858 _ACEOF
34859 cat confdefs.h >>conftest.$ac_ext
34860 cat >>conftest.$ac_ext <<_ACEOF
34861 /* end confdefs.h.  */
34862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34864 #define $ac_func innocuous_$ac_func
34865
34866 /* System header to define __stub macros and hopefully few prototypes,
34867     which can conflict with char $ac_func (); below.
34868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34869     <limits.h> exists even on freestanding compilers.  */
34870
34871 #ifdef __STDC__
34872 # include <limits.h>
34873 #else
34874 # include <assert.h>
34875 #endif
34876
34877 #undef $ac_func
34878
34879 /* Override any gcc2 internal prototype to avoid an error.  */
34880 #ifdef __cplusplus
34881 extern "C"
34882 {
34883 #endif
34884 /* We use char because int might match the return type of a gcc2
34885    builtin and then its argument prototype would still apply.  */
34886 char $ac_func ();
34887 /* The GNU C library defines this for functions which it implements
34888     to always fail with ENOSYS.  Some functions are actually named
34889     something starting with __ and the normal name is an alias.  */
34890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34891 choke me
34892 #else
34893 char (*f) () = $ac_func;
34894 #endif
34895 #ifdef __cplusplus
34896 }
34897 #endif
34898
34899 int
34900 main ()
34901 {
34902 return f != $ac_func;
34903   ;
34904   return 0;
34905 }
34906 _ACEOF
34907 rm -f conftest.$ac_objext conftest$ac_exeext
34908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34909   (eval $ac_link) 2>conftest.er1
34910   ac_status=$?
34911   grep -v '^ *+' conftest.er1 >conftest.err
34912   rm -f conftest.er1
34913   cat conftest.err >&5
34914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915   (exit $ac_status); } &&
34916          { ac_try='test -z "$ac_c_werror_flag"
34917                          || test ! -s conftest.err'
34918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919   (eval $ac_try) 2>&5
34920   ac_status=$?
34921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922   (exit $ac_status); }; } &&
34923          { ac_try='test -s conftest$ac_exeext'
34924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34925   (eval $ac_try) 2>&5
34926   ac_status=$?
34927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928   (exit $ac_status); }; }; then
34929   eval "$as_ac_var=yes"
34930 else
34931   echo "$as_me: failed program was:" >&5
34932 sed 's/^/| /' conftest.$ac_ext >&5
34933
34934 eval "$as_ac_var=no"
34935 fi
34936 rm -f conftest.err conftest.$ac_objext \
34937       conftest$ac_exeext conftest.$ac_ext
34938 fi
34939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34941 if test `eval echo '${'$as_ac_var'}'` = yes; then
34942   cat >>confdefs.h <<_ACEOF
34943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34944 _ACEOF
34945
34946 fi
34947 done
34948
34949         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34950 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34951 if test "${ol_cv_sys_linux_threads+set}" = set; then
34952   echo $ECHO_N "(cached) $ECHO_C" >&6
34953 else
34954   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34955 fi
34956 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34957 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34958
34959
34960
34961
34962         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34963 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34964 if test "${ol_cv_linux_threads+set}" = set; then
34965   echo $ECHO_N "(cached) $ECHO_C" >&6
34966 else
34967
34968                 if test $ol_cv_header_linux_threads = yes -a \
34969                         $ol_cv_sys_linux_threads = yes; then
34970                         ol_cv_linux_threads=yes
34971                 elif test $ol_cv_header_linux_threads = no -a \
34972                         $ol_cv_sys_linux_threads = no; then
34973                         ol_cv_linux_threads=no
34974                 else
34975                         ol_cv_linux_threads=error
34976                 fi
34977
34978 fi
34979 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34980 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34981
34982
34983                         if test $ol_cv_linux_threads = error; then
34984                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34985 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34986    { (exit 1); exit 1; }; };
34987                         fi
34988
34989                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34990 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34991 if test "${ol_cv_pthread_create_works+set}" = set; then
34992   echo $ECHO_N "(cached) $ECHO_C" >&6
34993 else
34994
34995                         if test "$cross_compiling" = yes; then
34996                                 ol_cv_pthread_create_works=yes
34997 else
34998   cat >conftest.$ac_ext <<_ACEOF
34999 /* confdefs.h.  */
35000 _ACEOF
35001 cat confdefs.h >>conftest.$ac_ext
35002 cat >>conftest.$ac_ext <<_ACEOF
35003 /* end confdefs.h.  */
35004
35005 /* pthread test headers */
35006 #include <pthread.h>
35007 #if HAVE_PTHREADS < 7
35008 #include <errno.h>
35009 #endif
35010 #ifndef NULL
35011 #define NULL (void*)0
35012 #endif
35013
35014 static void *task(p)
35015         void *p;
35016 {
35017         return (void *) (p == NULL);
35018 }
35019
35020
35021 int main(argc, argv)
35022         int argc;
35023         char **argv;
35024 {
35025
35026         /* pthread test function */
35027 #ifndef PTHREAD_CREATE_DETACHED
35028 #define PTHREAD_CREATE_DETACHED 1
35029 #endif
35030         pthread_t t;
35031         int status;
35032         int detach = PTHREAD_CREATE_DETACHED;
35033
35034 #if HAVE_PTHREADS > 4
35035         /* Final pthreads */
35036         pthread_attr_t attr;
35037
35038         status = pthread_attr_init(&attr);
35039         if( status ) return status;
35040
35041 #if HAVE_PTHREADS < 7
35042         status = pthread_attr_setdetachstate(&attr, &detach);
35043         if( status < 0 ) status = errno;
35044 #else
35045         status = pthread_attr_setdetachstate(&attr, detach);
35046 #endif
35047         if( status ) return status;
35048         status = pthread_create( &t, &attr, task, NULL );
35049 #if HAVE_PTHREADS < 7
35050         if( status < 0 ) status = errno;
35051 #endif
35052         if( status ) return status;
35053 #else
35054         /* Draft 4 pthreads */
35055         status = pthread_create( &t, pthread_attr_default, task, NULL );
35056         if( status ) return errno;
35057
35058         /* give thread a chance to complete */
35059         /* it should remain joinable and hence detachable */
35060         sleep( 1 );
35061
35062         status = pthread_detach( &t );
35063         if( status ) return errno;
35064 #endif
35065
35066 #ifdef HAVE_LINUX_THREADS
35067         pthread_kill_other_threads_np();
35068 #endif
35069
35070         return 0;
35071
35072 }
35073
35074 _ACEOF
35075 rm -f conftest$ac_exeext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35077   (eval $ac_link) 2>&5
35078   ac_status=$?
35079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35082   (eval $ac_try) 2>&5
35083   ac_status=$?
35084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085   (exit $ac_status); }; }; then
35086   ol_cv_pthread_create_works=yes
35087 else
35088   echo "$as_me: program exited with status $ac_status" >&5
35089 echo "$as_me: failed program was:" >&5
35090 sed 's/^/| /' conftest.$ac_ext >&5
35091
35092 ( exit $ac_status )
35093 ol_cv_pthread_create_works=no
35094 fi
35095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35096 fi
35097 fi
35098 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
35099 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
35100
35101                         if test $ol_cv_pthread_create_works = no ; then
35102                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
35103 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
35104    { (exit 1); exit 1; }; }
35105                         fi
35106
35107                                                 if test $ol_with_yielding_select = auto ; then
35108                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
35109 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
35110 if test "${ol_cv_pthread_select_yields+set}" = set; then
35111   echo $ECHO_N "(cached) $ECHO_C" >&6
35112 else
35113
35114                                 if test "$cross_compiling" = yes; then
35115   ol_cv_pthread_select_yields=cross
35116 else
35117   cat >conftest.$ac_ext <<_ACEOF
35118 /* confdefs.h.  */
35119 _ACEOF
35120 cat confdefs.h >>conftest.$ac_ext
35121 cat >>conftest.$ac_ext <<_ACEOF
35122 /* end confdefs.h.  */
35123
35124 #include <sys/types.h>
35125 #include <sys/time.h>
35126 #include <unistd.h>
35127 #include <pthread.h>
35128 #ifndef NULL
35129 #define NULL (void*) 0
35130 #endif
35131
35132 static int fildes[2];
35133
35134 static void *task(p)
35135         void *p;
35136 {
35137         int i;
35138         struct timeval tv;
35139
35140         fd_set rfds;
35141
35142         tv.tv_sec=10;
35143         tv.tv_usec=0;
35144
35145         FD_ZERO(&rfds);
35146         FD_SET(fildes[0], &rfds);
35147
35148         /* we're not interested in any fds */
35149         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35150
35151         if(i < 0) {
35152                 perror("select");
35153                 exit(10);
35154         }
35155
35156         exit(0); /* if we exit here, the select blocked the whole process */
35157 }
35158
35159 int main(argc, argv)
35160         int argc;
35161         char **argv;
35162 {
35163         pthread_t t;
35164
35165         /* create a pipe to select */
35166         if(pipe(&fildes[0])) {
35167                 perror("select");
35168                 exit(1);
35169         }
35170
35171 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35172         (void) pthread_setconcurrency(2);
35173 #else
35174 #ifdef HAVE_THR_SETCONCURRENCY
35175         /* Set Solaris LWP concurrency to 2 */
35176         thr_setconcurrency(2);
35177 #endif
35178 #endif
35179
35180 #if HAVE_PTHREADS < 6
35181         pthread_create(&t, pthread_attr_default, task, NULL);
35182 #else
35183         pthread_create(&t, NULL, task, NULL);
35184 #endif
35185
35186         /* make sure task runs first */
35187 #if HAVE_THR_YIELD
35188         thr_yield();
35189 #elif defined( HAVE_SCHED_YIELD )
35190         sched_yield();
35191 #elif defined( HAVE_PTHREAD_YIELD )
35192         pthread_yield();
35193 #endif
35194
35195         exit(2);
35196 }
35197 _ACEOF
35198 rm -f conftest$ac_exeext
35199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35200   (eval $ac_link) 2>&5
35201   ac_status=$?
35202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35205   (eval $ac_try) 2>&5
35206   ac_status=$?
35207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208   (exit $ac_status); }; }; then
35209   ol_cv_pthread_select_yields=no
35210 else
35211   echo "$as_me: program exited with status $ac_status" >&5
35212 echo "$as_me: failed program was:" >&5
35213 sed 's/^/| /' conftest.$ac_ext >&5
35214
35215 ( exit $ac_status )
35216 ol_cv_pthread_select_yields=yes
35217 fi
35218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35219 fi
35220 fi
35221 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35222 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35223
35224                                 if test $ol_cv_pthread_select_yields = cross ; then
35225                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35226 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35227    { (exit 1); exit 1; }; }
35228                                 fi
35229
35230                                 if test $ol_cv_pthread_select_yields = yes ; then
35231                                         ol_with_yielding_select=yes
35232                                 fi
35233                         fi
35234
35235                                                 CPPFLAGS="$save_CPPFLAGS"
35236                         LIBS="$save_LIBS"
35237                 else
35238                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35239 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35240    { (exit 1); exit 1; }; }
35241                 fi
35242         fi
35243
35244         if test $ol_with_threads = posix ; then
35245                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35246 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35247    { (exit 1); exit 1; }; }
35248         fi
35249 fi
35250
35251 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35252         -o $ol_with_threads = mach ; then
35253
35254
35255
35256 for ac_header in mach/cthreads.h cthreads.h
35257 do
35258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35260   echo "$as_me:$LINENO: checking for $ac_header" >&5
35261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35263   echo $ECHO_N "(cached) $ECHO_C" >&6
35264 fi
35265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35267 else
35268   # Is the header compilable?
35269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35271 cat >conftest.$ac_ext <<_ACEOF
35272 /* confdefs.h.  */
35273 _ACEOF
35274 cat confdefs.h >>conftest.$ac_ext
35275 cat >>conftest.$ac_ext <<_ACEOF
35276 /* end confdefs.h.  */
35277 $ac_includes_default
35278 #include <$ac_header>
35279 _ACEOF
35280 rm -f conftest.$ac_objext
35281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35282   (eval $ac_compile) 2>conftest.er1
35283   ac_status=$?
35284   grep -v '^ *+' conftest.er1 >conftest.err
35285   rm -f conftest.er1
35286   cat conftest.err >&5
35287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288   (exit $ac_status); } &&
35289          { ac_try='test -z "$ac_c_werror_flag"
35290                          || test ! -s conftest.err'
35291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35292   (eval $ac_try) 2>&5
35293   ac_status=$?
35294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295   (exit $ac_status); }; } &&
35296          { ac_try='test -s conftest.$ac_objext'
35297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298   (eval $ac_try) 2>&5
35299   ac_status=$?
35300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301   (exit $ac_status); }; }; then
35302   ac_header_compiler=yes
35303 else
35304   echo "$as_me: failed program was:" >&5
35305 sed 's/^/| /' conftest.$ac_ext >&5
35306
35307 ac_header_compiler=no
35308 fi
35309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35311 echo "${ECHO_T}$ac_header_compiler" >&6
35312
35313 # Is the header present?
35314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35316 cat >conftest.$ac_ext <<_ACEOF
35317 /* confdefs.h.  */
35318 _ACEOF
35319 cat confdefs.h >>conftest.$ac_ext
35320 cat >>conftest.$ac_ext <<_ACEOF
35321 /* end confdefs.h.  */
35322 #include <$ac_header>
35323 _ACEOF
35324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35326   ac_status=$?
35327   grep -v '^ *+' conftest.er1 >conftest.err
35328   rm -f conftest.er1
35329   cat conftest.err >&5
35330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331   (exit $ac_status); } >/dev/null; then
35332   if test -s conftest.err; then
35333     ac_cpp_err=$ac_c_preproc_warn_flag
35334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35335   else
35336     ac_cpp_err=
35337   fi
35338 else
35339   ac_cpp_err=yes
35340 fi
35341 if test -z "$ac_cpp_err"; then
35342   ac_header_preproc=yes
35343 else
35344   echo "$as_me: failed program was:" >&5
35345 sed 's/^/| /' conftest.$ac_ext >&5
35346
35347   ac_header_preproc=no
35348 fi
35349 rm -f conftest.err conftest.$ac_ext
35350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35351 echo "${ECHO_T}$ac_header_preproc" >&6
35352
35353 # So?  What about this header?
35354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35355   yes:no: )
35356     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35360     ac_header_preproc=yes
35361     ;;
35362   no:yes:* )
35363     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35365     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35366 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35367     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35369     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35370 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35373     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35375     (
35376       cat <<\_ASBOX
35377 ## ------------------------------------------ ##
35378 ## Report this to the AC_PACKAGE_NAME lists.  ##
35379 ## ------------------------------------------ ##
35380 _ASBOX
35381     ) |
35382       sed "s/^/$as_me: WARNING:     /" >&2
35383     ;;
35384 esac
35385 echo "$as_me:$LINENO: checking for $ac_header" >&5
35386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35388   echo $ECHO_N "(cached) $ECHO_C" >&6
35389 else
35390   eval "$as_ac_Header=\$ac_header_preproc"
35391 fi
35392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35394
35395 fi
35396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35397   cat >>confdefs.h <<_ACEOF
35398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35399 _ACEOF
35400
35401 fi
35402
35403 done
35404
35405         if test $ac_cv_header_mach_cthreads_h = yes ; then
35406                 ol_with_threads=found
35407
35408                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35409 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35410 if test "${ac_cv_func_cthread_fork+set}" = set; then
35411   echo $ECHO_N "(cached) $ECHO_C" >&6
35412 else
35413   cat >conftest.$ac_ext <<_ACEOF
35414 /* confdefs.h.  */
35415 _ACEOF
35416 cat confdefs.h >>conftest.$ac_ext
35417 cat >>conftest.$ac_ext <<_ACEOF
35418 /* end confdefs.h.  */
35419 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35421 #define cthread_fork innocuous_cthread_fork
35422
35423 /* System header to define __stub macros and hopefully few prototypes,
35424     which can conflict with char cthread_fork (); below.
35425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35426     <limits.h> exists even on freestanding compilers.  */
35427
35428 #ifdef __STDC__
35429 # include <limits.h>
35430 #else
35431 # include <assert.h>
35432 #endif
35433
35434 #undef cthread_fork
35435
35436 /* Override any gcc2 internal prototype to avoid an error.  */
35437 #ifdef __cplusplus
35438 extern "C"
35439 {
35440 #endif
35441 /* We use char because int might match the return type of a gcc2
35442    builtin and then its argument prototype would still apply.  */
35443 char cthread_fork ();
35444 /* The GNU C library defines this for functions which it implements
35445     to always fail with ENOSYS.  Some functions are actually named
35446     something starting with __ and the normal name is an alias.  */
35447 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35448 choke me
35449 #else
35450 char (*f) () = cthread_fork;
35451 #endif
35452 #ifdef __cplusplus
35453 }
35454 #endif
35455
35456 int
35457 main ()
35458 {
35459 return f != cthread_fork;
35460   ;
35461   return 0;
35462 }
35463 _ACEOF
35464 rm -f conftest.$ac_objext conftest$ac_exeext
35465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35466   (eval $ac_link) 2>conftest.er1
35467   ac_status=$?
35468   grep -v '^ *+' conftest.er1 >conftest.err
35469   rm -f conftest.er1
35470   cat conftest.err >&5
35471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472   (exit $ac_status); } &&
35473          { ac_try='test -z "$ac_c_werror_flag"
35474                          || test ! -s conftest.err'
35475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35476   (eval $ac_try) 2>&5
35477   ac_status=$?
35478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479   (exit $ac_status); }; } &&
35480          { ac_try='test -s conftest$ac_exeext'
35481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482   (eval $ac_try) 2>&5
35483   ac_status=$?
35484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485   (exit $ac_status); }; }; then
35486   ac_cv_func_cthread_fork=yes
35487 else
35488   echo "$as_me: failed program was:" >&5
35489 sed 's/^/| /' conftest.$ac_ext >&5
35490
35491 ac_cv_func_cthread_fork=no
35492 fi
35493 rm -f conftest.err conftest.$ac_objext \
35494       conftest$ac_exeext conftest.$ac_ext
35495 fi
35496 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35497 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35498 if test $ac_cv_func_cthread_fork = yes; then
35499   ol_link_threads=yes
35500 fi
35501
35502
35503                 if test $ol_link_threads = no ; then
35504                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35505 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35506 if test "${ol_cv_cthread_all_load+set}" = set; then
35507   echo $ECHO_N "(cached) $ECHO_C" >&6
35508 else
35509
35510                                                                 save_LIBS="$LIBS"
35511                                 LIBS="-all_load $LIBS"
35512                                 cat >conftest.$ac_ext <<_ACEOF
35513 /* confdefs.h.  */
35514 _ACEOF
35515 cat confdefs.h >>conftest.$ac_ext
35516 cat >>conftest.$ac_ext <<_ACEOF
35517 /* end confdefs.h.  */
35518 #include <mach/cthreads.h>
35519 int
35520 main ()
35521 {
35522
35523                                         cthread_fork((void *)0, (void *)0);
35524
35525   ;
35526   return 0;
35527 }
35528 _ACEOF
35529 rm -f conftest.$ac_objext conftest$ac_exeext
35530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35531   (eval $ac_link) 2>conftest.er1
35532   ac_status=$?
35533   grep -v '^ *+' conftest.er1 >conftest.err
35534   rm -f conftest.er1
35535   cat conftest.err >&5
35536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537   (exit $ac_status); } &&
35538          { ac_try='test -z "$ac_c_werror_flag"
35539                          || test ! -s conftest.err'
35540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35541   (eval $ac_try) 2>&5
35542   ac_status=$?
35543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544   (exit $ac_status); }; } &&
35545          { ac_try='test -s conftest$ac_exeext'
35546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35547   (eval $ac_try) 2>&5
35548   ac_status=$?
35549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550   (exit $ac_status); }; }; then
35551   ol_cv_cthread_all_load=yes
35552 else
35553   echo "$as_me: failed program was:" >&5
35554 sed 's/^/| /' conftest.$ac_ext >&5
35555
35556 ol_cv_cthread_all_load=no
35557 fi
35558 rm -f conftest.err conftest.$ac_objext \
35559       conftest$ac_exeext conftest.$ac_ext
35560                                                                 LIBS="$save_LIBS"
35561
35562 fi
35563 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35564 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35565
35566                         if test $ol_cv_cthread_all_load = yes ; then
35567                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35568                                 ol_link_threads=mach
35569                                 ol_with_threads=found
35570                         fi
35571                 fi
35572
35573         elif test $ac_cv_header_cthreads_h = yes ; then
35574
35575                 ol_with_threads=found
35576
35577                                 save_LIBS="$LIBS"
35578                 LIBS="$LIBS -lthreads"
35579                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35580 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35581 if test "${ac_cv_func_cthread_fork+set}" = set; then
35582   echo $ECHO_N "(cached) $ECHO_C" >&6
35583 else
35584   cat >conftest.$ac_ext <<_ACEOF
35585 /* confdefs.h.  */
35586 _ACEOF
35587 cat confdefs.h >>conftest.$ac_ext
35588 cat >>conftest.$ac_ext <<_ACEOF
35589 /* end confdefs.h.  */
35590 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35592 #define cthread_fork innocuous_cthread_fork
35593
35594 /* System header to define __stub macros and hopefully few prototypes,
35595     which can conflict with char cthread_fork (); below.
35596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35597     <limits.h> exists even on freestanding compilers.  */
35598
35599 #ifdef __STDC__
35600 # include <limits.h>
35601 #else
35602 # include <assert.h>
35603 #endif
35604
35605 #undef cthread_fork
35606
35607 /* Override any gcc2 internal prototype to avoid an error.  */
35608 #ifdef __cplusplus
35609 extern "C"
35610 {
35611 #endif
35612 /* We use char because int might match the return type of a gcc2
35613    builtin and then its argument prototype would still apply.  */
35614 char cthread_fork ();
35615 /* The GNU C library defines this for functions which it implements
35616     to always fail with ENOSYS.  Some functions are actually named
35617     something starting with __ and the normal name is an alias.  */
35618 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35619 choke me
35620 #else
35621 char (*f) () = cthread_fork;
35622 #endif
35623 #ifdef __cplusplus
35624 }
35625 #endif
35626
35627 int
35628 main ()
35629 {
35630 return f != cthread_fork;
35631   ;
35632   return 0;
35633 }
35634 _ACEOF
35635 rm -f conftest.$ac_objext conftest$ac_exeext
35636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35637   (eval $ac_link) 2>conftest.er1
35638   ac_status=$?
35639   grep -v '^ *+' conftest.er1 >conftest.err
35640   rm -f conftest.er1
35641   cat conftest.err >&5
35642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643   (exit $ac_status); } &&
35644          { ac_try='test -z "$ac_c_werror_flag"
35645                          || test ! -s conftest.err'
35646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647   (eval $ac_try) 2>&5
35648   ac_status=$?
35649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650   (exit $ac_status); }; } &&
35651          { ac_try='test -s conftest$ac_exeext'
35652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653   (eval $ac_try) 2>&5
35654   ac_status=$?
35655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656   (exit $ac_status); }; }; then
35657   ac_cv_func_cthread_fork=yes
35658 else
35659   echo "$as_me: failed program was:" >&5
35660 sed 's/^/| /' conftest.$ac_ext >&5
35661
35662 ac_cv_func_cthread_fork=no
35663 fi
35664 rm -f conftest.err conftest.$ac_objext \
35665       conftest$ac_exeext conftest.$ac_ext
35666 fi
35667 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35668 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35669 if test $ac_cv_func_cthread_fork = yes; then
35670   ol_link_threads=yes
35671 fi
35672
35673                 LIBS="$save_LIBS"
35674
35675                 if test $ol_link_threads = yes ; then
35676                         LTHREAD_LIBS="-lthreads"
35677                         ol_link_threads=mach
35678                         ol_with_threads=found
35679                 else
35680                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35681 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35682    { (exit 1); exit 1; }; }
35683                 fi
35684
35685         elif test $ol_with_threads = mach ; then
35686                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35687 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35688    { (exit 1); exit 1; }; }
35689         fi
35690
35691         if test $ol_link_threads = mach ; then
35692
35693 cat >>confdefs.h <<\_ACEOF
35694 #define HAVE_MACH_CTHREADS 1
35695 _ACEOF
35696
35697         elif test $ol_with_threads = found ; then
35698                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35699 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35700    { (exit 1); exit 1; }; }
35701         fi
35702 fi
35703
35704 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35705         -o $ol_with_threads = pth ; then
35706
35707
35708 for ac_header in pth.h
35709 do
35710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35712   echo "$as_me:$LINENO: checking for $ac_header" >&5
35713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35715   echo $ECHO_N "(cached) $ECHO_C" >&6
35716 fi
35717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35719 else
35720   # Is the header compilable?
35721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35723 cat >conftest.$ac_ext <<_ACEOF
35724 /* confdefs.h.  */
35725 _ACEOF
35726 cat confdefs.h >>conftest.$ac_ext
35727 cat >>conftest.$ac_ext <<_ACEOF
35728 /* end confdefs.h.  */
35729 $ac_includes_default
35730 #include <$ac_header>
35731 _ACEOF
35732 rm -f conftest.$ac_objext
35733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35734   (eval $ac_compile) 2>conftest.er1
35735   ac_status=$?
35736   grep -v '^ *+' conftest.er1 >conftest.err
35737   rm -f conftest.er1
35738   cat conftest.err >&5
35739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740   (exit $ac_status); } &&
35741          { ac_try='test -z "$ac_c_werror_flag"
35742                          || test ! -s conftest.err'
35743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35744   (eval $ac_try) 2>&5
35745   ac_status=$?
35746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747   (exit $ac_status); }; } &&
35748          { ac_try='test -s conftest.$ac_objext'
35749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35750   (eval $ac_try) 2>&5
35751   ac_status=$?
35752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753   (exit $ac_status); }; }; then
35754   ac_header_compiler=yes
35755 else
35756   echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35758
35759 ac_header_compiler=no
35760 fi
35761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35763 echo "${ECHO_T}$ac_header_compiler" >&6
35764
35765 # Is the header present?
35766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35768 cat >conftest.$ac_ext <<_ACEOF
35769 /* confdefs.h.  */
35770 _ACEOF
35771 cat confdefs.h >>conftest.$ac_ext
35772 cat >>conftest.$ac_ext <<_ACEOF
35773 /* end confdefs.h.  */
35774 #include <$ac_header>
35775 _ACEOF
35776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35778   ac_status=$?
35779   grep -v '^ *+' conftest.er1 >conftest.err
35780   rm -f conftest.er1
35781   cat conftest.err >&5
35782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35783   (exit $ac_status); } >/dev/null; then
35784   if test -s conftest.err; then
35785     ac_cpp_err=$ac_c_preproc_warn_flag
35786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35787   else
35788     ac_cpp_err=
35789   fi
35790 else
35791   ac_cpp_err=yes
35792 fi
35793 if test -z "$ac_cpp_err"; then
35794   ac_header_preproc=yes
35795 else
35796   echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35798
35799   ac_header_preproc=no
35800 fi
35801 rm -f conftest.err conftest.$ac_ext
35802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35803 echo "${ECHO_T}$ac_header_preproc" >&6
35804
35805 # So?  What about this header?
35806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35807   yes:no: )
35808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35812     ac_header_preproc=yes
35813     ;;
35814   no:yes:* )
35815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35827     (
35828       cat <<\_ASBOX
35829 ## ------------------------------------------ ##
35830 ## Report this to the AC_PACKAGE_NAME lists.  ##
35831 ## ------------------------------------------ ##
35832 _ASBOX
35833     ) |
35834       sed "s/^/$as_me: WARNING:     /" >&2
35835     ;;
35836 esac
35837 echo "$as_me:$LINENO: checking for $ac_header" >&5
35838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35840   echo $ECHO_N "(cached) $ECHO_C" >&6
35841 else
35842   eval "$as_ac_Header=\$ac_header_preproc"
35843 fi
35844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35846
35847 fi
35848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35849   cat >>confdefs.h <<_ACEOF
35850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35851 _ACEOF
35852
35853 fi
35854
35855 done
35856
35857
35858         if test $ac_cv_header_pth_h = yes ; then
35859                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35860 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35861 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35862   echo $ECHO_N "(cached) $ECHO_C" >&6
35863 else
35864   ac_check_lib_save_LIBS=$LIBS
35865 LIBS="-lpth  $LIBS"
35866 cat >conftest.$ac_ext <<_ACEOF
35867 /* confdefs.h.  */
35868 _ACEOF
35869 cat confdefs.h >>conftest.$ac_ext
35870 cat >>conftest.$ac_ext <<_ACEOF
35871 /* end confdefs.h.  */
35872
35873 /* Override any gcc2 internal prototype to avoid an error.  */
35874 #ifdef __cplusplus
35875 extern "C"
35876 #endif
35877 /* We use char because int might match the return type of a gcc2
35878    builtin and then its argument prototype would still apply.  */
35879 char pth_version ();
35880 int
35881 main ()
35882 {
35883 pth_version ();
35884   ;
35885   return 0;
35886 }
35887 _ACEOF
35888 rm -f conftest.$ac_objext conftest$ac_exeext
35889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35890   (eval $ac_link) 2>conftest.er1
35891   ac_status=$?
35892   grep -v '^ *+' conftest.er1 >conftest.err
35893   rm -f conftest.er1
35894   cat conftest.err >&5
35895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896   (exit $ac_status); } &&
35897          { ac_try='test -z "$ac_c_werror_flag"
35898                          || test ! -s conftest.err'
35899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35900   (eval $ac_try) 2>&5
35901   ac_status=$?
35902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903   (exit $ac_status); }; } &&
35904          { ac_try='test -s conftest$ac_exeext'
35905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35906   (eval $ac_try) 2>&5
35907   ac_status=$?
35908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909   (exit $ac_status); }; }; then
35910   ac_cv_lib_pth_pth_version=yes
35911 else
35912   echo "$as_me: failed program was:" >&5
35913 sed 's/^/| /' conftest.$ac_ext >&5
35914
35915 ac_cv_lib_pth_pth_version=no
35916 fi
35917 rm -f conftest.err conftest.$ac_objext \
35918       conftest$ac_exeext conftest.$ac_ext
35919 LIBS=$ac_check_lib_save_LIBS
35920 fi
35921 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35922 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35923 if test $ac_cv_lib_pth_pth_version = yes; then
35924   have_pth=yes
35925 else
35926   have_pth=no
35927 fi
35928
35929
35930                 if test $have_pth = yes ; then
35931
35932 cat >>confdefs.h <<\_ACEOF
35933 #define HAVE_GNU_PTH 1
35934 _ACEOF
35935
35936                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35937                         ol_link_threads=pth
35938                         ol_with_threads=found
35939
35940                         if test $ol_with_yielding_select = auto ; then
35941                                 ol_with_yielding_select=yes
35942                         fi
35943                 fi
35944         fi
35945 fi
35946
35947 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35948         -o $ol_with_threads = lwp ; then
35949
35950
35951
35952 for ac_header in thread.h synch.h
35953 do
35954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35956   echo "$as_me:$LINENO: checking for $ac_header" >&5
35957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35959   echo $ECHO_N "(cached) $ECHO_C" >&6
35960 fi
35961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35963 else
35964   # Is the header compilable?
35965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35967 cat >conftest.$ac_ext <<_ACEOF
35968 /* confdefs.h.  */
35969 _ACEOF
35970 cat confdefs.h >>conftest.$ac_ext
35971 cat >>conftest.$ac_ext <<_ACEOF
35972 /* end confdefs.h.  */
35973 $ac_includes_default
35974 #include <$ac_header>
35975 _ACEOF
35976 rm -f conftest.$ac_objext
35977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35978   (eval $ac_compile) 2>conftest.er1
35979   ac_status=$?
35980   grep -v '^ *+' conftest.er1 >conftest.err
35981   rm -f conftest.er1
35982   cat conftest.err >&5
35983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984   (exit $ac_status); } &&
35985          { ac_try='test -z "$ac_c_werror_flag"
35986                          || test ! -s conftest.err'
35987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35988   (eval $ac_try) 2>&5
35989   ac_status=$?
35990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35991   (exit $ac_status); }; } &&
35992          { ac_try='test -s conftest.$ac_objext'
35993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35994   (eval $ac_try) 2>&5
35995   ac_status=$?
35996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997   (exit $ac_status); }; }; then
35998   ac_header_compiler=yes
35999 else
36000   echo "$as_me: failed program was:" >&5
36001 sed 's/^/| /' conftest.$ac_ext >&5
36002
36003 ac_header_compiler=no
36004 fi
36005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36007 echo "${ECHO_T}$ac_header_compiler" >&6
36008
36009 # Is the header present?
36010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36012 cat >conftest.$ac_ext <<_ACEOF
36013 /* confdefs.h.  */
36014 _ACEOF
36015 cat confdefs.h >>conftest.$ac_ext
36016 cat >>conftest.$ac_ext <<_ACEOF
36017 /* end confdefs.h.  */
36018 #include <$ac_header>
36019 _ACEOF
36020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36022   ac_status=$?
36023   grep -v '^ *+' conftest.er1 >conftest.err
36024   rm -f conftest.er1
36025   cat conftest.err >&5
36026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027   (exit $ac_status); } >/dev/null; then
36028   if test -s conftest.err; then
36029     ac_cpp_err=$ac_c_preproc_warn_flag
36030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36031   else
36032     ac_cpp_err=
36033   fi
36034 else
36035   ac_cpp_err=yes
36036 fi
36037 if test -z "$ac_cpp_err"; then
36038   ac_header_preproc=yes
36039 else
36040   echo "$as_me: failed program was:" >&5
36041 sed 's/^/| /' conftest.$ac_ext >&5
36042
36043   ac_header_preproc=no
36044 fi
36045 rm -f conftest.err conftest.$ac_ext
36046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36047 echo "${ECHO_T}$ac_header_preproc" >&6
36048
36049 # So?  What about this header?
36050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36051   yes:no: )
36052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36056     ac_header_preproc=yes
36057     ;;
36058   no:yes:* )
36059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36071     (
36072       cat <<\_ASBOX
36073 ## ------------------------------------------ ##
36074 ## Report this to the AC_PACKAGE_NAME lists.  ##
36075 ## ------------------------------------------ ##
36076 _ASBOX
36077     ) |
36078       sed "s/^/$as_me: WARNING:     /" >&2
36079     ;;
36080 esac
36081 echo "$as_me:$LINENO: checking for $ac_header" >&5
36082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36084   echo $ECHO_N "(cached) $ECHO_C" >&6
36085 else
36086   eval "$as_ac_Header=\$ac_header_preproc"
36087 fi
36088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36090
36091 fi
36092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36093   cat >>confdefs.h <<_ACEOF
36094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36095 _ACEOF
36096
36097 fi
36098
36099 done
36100
36101         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
36102                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
36103 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
36104 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
36105   echo $ECHO_N "(cached) $ECHO_C" >&6
36106 else
36107   ac_check_lib_save_LIBS=$LIBS
36108 LIBS="-lthread  $LIBS"
36109 cat >conftest.$ac_ext <<_ACEOF
36110 /* confdefs.h.  */
36111 _ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h.  */
36115
36116 /* Override any gcc2 internal prototype to avoid an error.  */
36117 #ifdef __cplusplus
36118 extern "C"
36119 #endif
36120 /* We use char because int might match the return type of a gcc2
36121    builtin and then its argument prototype would still apply.  */
36122 char thr_create ();
36123 int
36124 main ()
36125 {
36126 thr_create ();
36127   ;
36128   return 0;
36129 }
36130 _ACEOF
36131 rm -f conftest.$ac_objext conftest$ac_exeext
36132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36133   (eval $ac_link) 2>conftest.er1
36134   ac_status=$?
36135   grep -v '^ *+' conftest.er1 >conftest.err
36136   rm -f conftest.er1
36137   cat conftest.err >&5
36138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139   (exit $ac_status); } &&
36140          { ac_try='test -z "$ac_c_werror_flag"
36141                          || test ! -s conftest.err'
36142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143   (eval $ac_try) 2>&5
36144   ac_status=$?
36145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146   (exit $ac_status); }; } &&
36147          { ac_try='test -s conftest$ac_exeext'
36148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36149   (eval $ac_try) 2>&5
36150   ac_status=$?
36151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152   (exit $ac_status); }; }; then
36153   ac_cv_lib_thread_thr_create=yes
36154 else
36155   echo "$as_me: failed program was:" >&5
36156 sed 's/^/| /' conftest.$ac_ext >&5
36157
36158 ac_cv_lib_thread_thr_create=no
36159 fi
36160 rm -f conftest.err conftest.$ac_objext \
36161       conftest$ac_exeext conftest.$ac_ext
36162 LIBS=$ac_check_lib_save_LIBS
36163 fi
36164 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36165 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36166 if test $ac_cv_lib_thread_thr_create = yes; then
36167   have_thr=yes
36168 else
36169   have_thr=no
36170 fi
36171
36172
36173                 if test $have_thr = yes ; then
36174
36175 cat >>confdefs.h <<\_ACEOF
36176 #define HAVE_THR 1
36177 _ACEOF
36178
36179                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36180                         ol_link_threads=thr
36181
36182                         if test $ol_with_yielding_select = auto ; then
36183                                 ol_with_yielding_select=yes
36184                         fi
36185
36186
36187
36188 for ac_func in \
36189                                 thr_setconcurrency \
36190                                 thr_getconcurrency \
36191
36192 do
36193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36194 echo "$as_me:$LINENO: checking for $ac_func" >&5
36195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36196 if eval "test \"\${$as_ac_var+set}\" = set"; then
36197   echo $ECHO_N "(cached) $ECHO_C" >&6
36198 else
36199   cat >conftest.$ac_ext <<_ACEOF
36200 /* confdefs.h.  */
36201 _ACEOF
36202 cat confdefs.h >>conftest.$ac_ext
36203 cat >>conftest.$ac_ext <<_ACEOF
36204 /* end confdefs.h.  */
36205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36207 #define $ac_func innocuous_$ac_func
36208
36209 /* System header to define __stub macros and hopefully few prototypes,
36210     which can conflict with char $ac_func (); below.
36211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36212     <limits.h> exists even on freestanding compilers.  */
36213
36214 #ifdef __STDC__
36215 # include <limits.h>
36216 #else
36217 # include <assert.h>
36218 #endif
36219
36220 #undef $ac_func
36221
36222 /* Override any gcc2 internal prototype to avoid an error.  */
36223 #ifdef __cplusplus
36224 extern "C"
36225 {
36226 #endif
36227 /* We use char because int might match the return type of a gcc2
36228    builtin and then its argument prototype would still apply.  */
36229 char $ac_func ();
36230 /* The GNU C library defines this for functions which it implements
36231     to always fail with ENOSYS.  Some functions are actually named
36232     something starting with __ and the normal name is an alias.  */
36233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36234 choke me
36235 #else
36236 char (*f) () = $ac_func;
36237 #endif
36238 #ifdef __cplusplus
36239 }
36240 #endif
36241
36242 int
36243 main ()
36244 {
36245 return f != $ac_func;
36246   ;
36247   return 0;
36248 }
36249 _ACEOF
36250 rm -f conftest.$ac_objext conftest$ac_exeext
36251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36252   (eval $ac_link) 2>conftest.er1
36253   ac_status=$?
36254   grep -v '^ *+' conftest.er1 >conftest.err
36255   rm -f conftest.er1
36256   cat conftest.err >&5
36257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258   (exit $ac_status); } &&
36259          { ac_try='test -z "$ac_c_werror_flag"
36260                          || test ! -s conftest.err'
36261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36262   (eval $ac_try) 2>&5
36263   ac_status=$?
36264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265   (exit $ac_status); }; } &&
36266          { ac_try='test -s conftest$ac_exeext'
36267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36268   (eval $ac_try) 2>&5
36269   ac_status=$?
36270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271   (exit $ac_status); }; }; then
36272   eval "$as_ac_var=yes"
36273 else
36274   echo "$as_me: failed program was:" >&5
36275 sed 's/^/| /' conftest.$ac_ext >&5
36276
36277 eval "$as_ac_var=no"
36278 fi
36279 rm -f conftest.err conftest.$ac_objext \
36280       conftest$ac_exeext conftest.$ac_ext
36281 fi
36282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36284 if test `eval echo '${'$as_ac_var'}'` = yes; then
36285   cat >>confdefs.h <<_ACEOF
36286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36287 _ACEOF
36288
36289 fi
36290 done
36291
36292                 fi
36293         fi
36294
36295
36296 for ac_header in lwp/lwp.h
36297 do
36298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36300   echo "$as_me:$LINENO: checking for $ac_header" >&5
36301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36303   echo $ECHO_N "(cached) $ECHO_C" >&6
36304 fi
36305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36307 else
36308   # Is the header compilable?
36309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36311 cat >conftest.$ac_ext <<_ACEOF
36312 /* confdefs.h.  */
36313 _ACEOF
36314 cat confdefs.h >>conftest.$ac_ext
36315 cat >>conftest.$ac_ext <<_ACEOF
36316 /* end confdefs.h.  */
36317 $ac_includes_default
36318 #include <$ac_header>
36319 _ACEOF
36320 rm -f conftest.$ac_objext
36321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36322   (eval $ac_compile) 2>conftest.er1
36323   ac_status=$?
36324   grep -v '^ *+' conftest.er1 >conftest.err
36325   rm -f conftest.er1
36326   cat conftest.err >&5
36327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328   (exit $ac_status); } &&
36329          { ac_try='test -z "$ac_c_werror_flag"
36330                          || test ! -s conftest.err'
36331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36332   (eval $ac_try) 2>&5
36333   ac_status=$?
36334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335   (exit $ac_status); }; } &&
36336          { ac_try='test -s conftest.$ac_objext'
36337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36338   (eval $ac_try) 2>&5
36339   ac_status=$?
36340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341   (exit $ac_status); }; }; then
36342   ac_header_compiler=yes
36343 else
36344   echo "$as_me: failed program was:" >&5
36345 sed 's/^/| /' conftest.$ac_ext >&5
36346
36347 ac_header_compiler=no
36348 fi
36349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36351 echo "${ECHO_T}$ac_header_compiler" >&6
36352
36353 # Is the header present?
36354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36356 cat >conftest.$ac_ext <<_ACEOF
36357 /* confdefs.h.  */
36358 _ACEOF
36359 cat confdefs.h >>conftest.$ac_ext
36360 cat >>conftest.$ac_ext <<_ACEOF
36361 /* end confdefs.h.  */
36362 #include <$ac_header>
36363 _ACEOF
36364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36366   ac_status=$?
36367   grep -v '^ *+' conftest.er1 >conftest.err
36368   rm -f conftest.er1
36369   cat conftest.err >&5
36370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371   (exit $ac_status); } >/dev/null; then
36372   if test -s conftest.err; then
36373     ac_cpp_err=$ac_c_preproc_warn_flag
36374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36375   else
36376     ac_cpp_err=
36377   fi
36378 else
36379   ac_cpp_err=yes
36380 fi
36381 if test -z "$ac_cpp_err"; then
36382   ac_header_preproc=yes
36383 else
36384   echo "$as_me: failed program was:" >&5
36385 sed 's/^/| /' conftest.$ac_ext >&5
36386
36387   ac_header_preproc=no
36388 fi
36389 rm -f conftest.err conftest.$ac_ext
36390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36391 echo "${ECHO_T}$ac_header_preproc" >&6
36392
36393 # So?  What about this header?
36394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36395   yes:no: )
36396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36400     ac_header_preproc=yes
36401     ;;
36402   no:yes:* )
36403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36405     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36406 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36407     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36409     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36410 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36413     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36415     (
36416       cat <<\_ASBOX
36417 ## ------------------------------------------ ##
36418 ## Report this to the AC_PACKAGE_NAME lists.  ##
36419 ## ------------------------------------------ ##
36420 _ASBOX
36421     ) |
36422       sed "s/^/$as_me: WARNING:     /" >&2
36423     ;;
36424 esac
36425 echo "$as_me:$LINENO: checking for $ac_header" >&5
36426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36428   echo $ECHO_N "(cached) $ECHO_C" >&6
36429 else
36430   eval "$as_ac_Header=\$ac_header_preproc"
36431 fi
36432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36434
36435 fi
36436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36437   cat >>confdefs.h <<_ACEOF
36438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36439 _ACEOF
36440
36441 fi
36442
36443 done
36444
36445         if test $ac_cv_header_lwp_lwp_h = yes ; then
36446                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36447 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36448 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36449   echo $ECHO_N "(cached) $ECHO_C" >&6
36450 else
36451   ac_check_lib_save_LIBS=$LIBS
36452 LIBS="-llwp  $LIBS"
36453 cat >conftest.$ac_ext <<_ACEOF
36454 /* confdefs.h.  */
36455 _ACEOF
36456 cat confdefs.h >>conftest.$ac_ext
36457 cat >>conftest.$ac_ext <<_ACEOF
36458 /* end confdefs.h.  */
36459
36460 /* Override any gcc2 internal prototype to avoid an error.  */
36461 #ifdef __cplusplus
36462 extern "C"
36463 #endif
36464 /* We use char because int might match the return type of a gcc2
36465    builtin and then its argument prototype would still apply.  */
36466 char lwp_create ();
36467 int
36468 main ()
36469 {
36470 lwp_create ();
36471   ;
36472   return 0;
36473 }
36474 _ACEOF
36475 rm -f conftest.$ac_objext conftest$ac_exeext
36476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36477   (eval $ac_link) 2>conftest.er1
36478   ac_status=$?
36479   grep -v '^ *+' conftest.er1 >conftest.err
36480   rm -f conftest.er1
36481   cat conftest.err >&5
36482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483   (exit $ac_status); } &&
36484          { ac_try='test -z "$ac_c_werror_flag"
36485                          || test ! -s conftest.err'
36486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36487   (eval $ac_try) 2>&5
36488   ac_status=$?
36489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490   (exit $ac_status); }; } &&
36491          { ac_try='test -s conftest$ac_exeext'
36492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36493   (eval $ac_try) 2>&5
36494   ac_status=$?
36495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496   (exit $ac_status); }; }; then
36497   ac_cv_lib_lwp_lwp_create=yes
36498 else
36499   echo "$as_me: failed program was:" >&5
36500 sed 's/^/| /' conftest.$ac_ext >&5
36501
36502 ac_cv_lib_lwp_lwp_create=no
36503 fi
36504 rm -f conftest.err conftest.$ac_objext \
36505       conftest$ac_exeext conftest.$ac_ext
36506 LIBS=$ac_check_lib_save_LIBS
36507 fi
36508 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36509 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36510 if test $ac_cv_lib_lwp_lwp_create = yes; then
36511   have_lwp=yes
36512 else
36513   have_lwp=no
36514 fi
36515
36516
36517                 if test $have_lwp = yes ; then
36518
36519 cat >>confdefs.h <<\_ACEOF
36520 #define HAVE_LWP 1
36521 _ACEOF
36522
36523                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36524                         ol_link_threads=lwp
36525
36526                         if test $ol_with_yielding_select = auto ; then
36527                                 ol_with_yielding_select=no
36528                         fi
36529                 fi
36530         fi
36531 fi
36532
36533 if test $ol_with_yielding_select = yes ; then
36534
36535 cat >>confdefs.h <<\_ACEOF
36536 #define HAVE_YIELDING_SELECT 1
36537 _ACEOF
36538
36539 fi
36540
36541 if test $ol_with_threads = manual ; then
36542                 ol_link_threads=yes
36543
36544         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36545 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36546
36547
36548
36549 for ac_header in pthread.h sched.h
36550 do
36551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36553   echo "$as_me:$LINENO: checking for $ac_header" >&5
36554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36556   echo $ECHO_N "(cached) $ECHO_C" >&6
36557 fi
36558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36560 else
36561   # Is the header compilable?
36562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36564 cat >conftest.$ac_ext <<_ACEOF
36565 /* confdefs.h.  */
36566 _ACEOF
36567 cat confdefs.h >>conftest.$ac_ext
36568 cat >>conftest.$ac_ext <<_ACEOF
36569 /* end confdefs.h.  */
36570 $ac_includes_default
36571 #include <$ac_header>
36572 _ACEOF
36573 rm -f conftest.$ac_objext
36574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36575   (eval $ac_compile) 2>conftest.er1
36576   ac_status=$?
36577   grep -v '^ *+' conftest.er1 >conftest.err
36578   rm -f conftest.er1
36579   cat conftest.err >&5
36580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581   (exit $ac_status); } &&
36582          { ac_try='test -z "$ac_c_werror_flag"
36583                          || test ! -s conftest.err'
36584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585   (eval $ac_try) 2>&5
36586   ac_status=$?
36587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588   (exit $ac_status); }; } &&
36589          { ac_try='test -s conftest.$ac_objext'
36590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591   (eval $ac_try) 2>&5
36592   ac_status=$?
36593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594   (exit $ac_status); }; }; then
36595   ac_header_compiler=yes
36596 else
36597   echo "$as_me: failed program was:" >&5
36598 sed 's/^/| /' conftest.$ac_ext >&5
36599
36600 ac_header_compiler=no
36601 fi
36602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36604 echo "${ECHO_T}$ac_header_compiler" >&6
36605
36606 # Is the header present?
36607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36609 cat >conftest.$ac_ext <<_ACEOF
36610 /* confdefs.h.  */
36611 _ACEOF
36612 cat confdefs.h >>conftest.$ac_ext
36613 cat >>conftest.$ac_ext <<_ACEOF
36614 /* end confdefs.h.  */
36615 #include <$ac_header>
36616 _ACEOF
36617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36619   ac_status=$?
36620   grep -v '^ *+' conftest.er1 >conftest.err
36621   rm -f conftest.er1
36622   cat conftest.err >&5
36623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624   (exit $ac_status); } >/dev/null; then
36625   if test -s conftest.err; then
36626     ac_cpp_err=$ac_c_preproc_warn_flag
36627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36628   else
36629     ac_cpp_err=
36630   fi
36631 else
36632   ac_cpp_err=yes
36633 fi
36634 if test -z "$ac_cpp_err"; then
36635   ac_header_preproc=yes
36636 else
36637   echo "$as_me: failed program was:" >&5
36638 sed 's/^/| /' conftest.$ac_ext >&5
36639
36640   ac_header_preproc=no
36641 fi
36642 rm -f conftest.err conftest.$ac_ext
36643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36644 echo "${ECHO_T}$ac_header_preproc" >&6
36645
36646 # So?  What about this header?
36647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36648   yes:no: )
36649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36653     ac_header_preproc=yes
36654     ;;
36655   no:yes:* )
36656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36668     (
36669       cat <<\_ASBOX
36670 ## ------------------------------------------ ##
36671 ## Report this to the AC_PACKAGE_NAME lists.  ##
36672 ## ------------------------------------------ ##
36673 _ASBOX
36674     ) |
36675       sed "s/^/$as_me: WARNING:     /" >&2
36676     ;;
36677 esac
36678 echo "$as_me:$LINENO: checking for $ac_header" >&5
36679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36681   echo $ECHO_N "(cached) $ECHO_C" >&6
36682 else
36683   eval "$as_ac_Header=\$ac_header_preproc"
36684 fi
36685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36687
36688 fi
36689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36690   cat >>confdefs.h <<_ACEOF
36691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36692 _ACEOF
36693
36694 fi
36695
36696 done
36697
36698
36699
36700 for ac_func in sched_yield pthread_yield
36701 do
36702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36703 echo "$as_me:$LINENO: checking for $ac_func" >&5
36704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36705 if eval "test \"\${$as_ac_var+set}\" = set"; then
36706   echo $ECHO_N "(cached) $ECHO_C" >&6
36707 else
36708   cat >conftest.$ac_ext <<_ACEOF
36709 /* confdefs.h.  */
36710 _ACEOF
36711 cat confdefs.h >>conftest.$ac_ext
36712 cat >>conftest.$ac_ext <<_ACEOF
36713 /* end confdefs.h.  */
36714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36716 #define $ac_func innocuous_$ac_func
36717
36718 /* System header to define __stub macros and hopefully few prototypes,
36719     which can conflict with char $ac_func (); below.
36720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36721     <limits.h> exists even on freestanding compilers.  */
36722
36723 #ifdef __STDC__
36724 # include <limits.h>
36725 #else
36726 # include <assert.h>
36727 #endif
36728
36729 #undef $ac_func
36730
36731 /* Override any gcc2 internal prototype to avoid an error.  */
36732 #ifdef __cplusplus
36733 extern "C"
36734 {
36735 #endif
36736 /* We use char because int might match the return type of a gcc2
36737    builtin and then its argument prototype would still apply.  */
36738 char $ac_func ();
36739 /* The GNU C library defines this for functions which it implements
36740     to always fail with ENOSYS.  Some functions are actually named
36741     something starting with __ and the normal name is an alias.  */
36742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36743 choke me
36744 #else
36745 char (*f) () = $ac_func;
36746 #endif
36747 #ifdef __cplusplus
36748 }
36749 #endif
36750
36751 int
36752 main ()
36753 {
36754 return f != $ac_func;
36755   ;
36756   return 0;
36757 }
36758 _ACEOF
36759 rm -f conftest.$ac_objext conftest$ac_exeext
36760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36761   (eval $ac_link) 2>conftest.er1
36762   ac_status=$?
36763   grep -v '^ *+' conftest.er1 >conftest.err
36764   rm -f conftest.er1
36765   cat conftest.err >&5
36766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767   (exit $ac_status); } &&
36768          { ac_try='test -z "$ac_c_werror_flag"
36769                          || test ! -s conftest.err'
36770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36771   (eval $ac_try) 2>&5
36772   ac_status=$?
36773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774   (exit $ac_status); }; } &&
36775          { ac_try='test -s conftest$ac_exeext'
36776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36777   (eval $ac_try) 2>&5
36778   ac_status=$?
36779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36780   (exit $ac_status); }; }; then
36781   eval "$as_ac_var=yes"
36782 else
36783   echo "$as_me: failed program was:" >&5
36784 sed 's/^/| /' conftest.$ac_ext >&5
36785
36786 eval "$as_ac_var=no"
36787 fi
36788 rm -f conftest.err conftest.$ac_objext \
36789       conftest$ac_exeext conftest.$ac_ext
36790 fi
36791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36793 if test `eval echo '${'$as_ac_var'}'` = yes; then
36794   cat >>confdefs.h <<_ACEOF
36795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36796 _ACEOF
36797
36798 fi
36799 done
36800
36801
36802         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36803 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36804 if test "${ol_cv_header_linux_threads+set}" = set; then
36805   echo $ECHO_N "(cached) $ECHO_C" >&6
36806 else
36807   cat >conftest.$ac_ext <<_ACEOF
36808 /* confdefs.h.  */
36809 _ACEOF
36810 cat confdefs.h >>conftest.$ac_ext
36811 cat >>conftest.$ac_ext <<_ACEOF
36812 /* end confdefs.h.  */
36813 #include <pthread.h>
36814 _ACEOF
36815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36816   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36817   ol_cv_header_linux_threads=yes
36818 else
36819   ol_cv_header_linux_threads=no
36820 fi
36821 rm -f conftest*
36822
36823
36824 fi
36825 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36826 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36827         if test $ol_cv_header_linux_threads = yes; then
36828
36829 cat >>confdefs.h <<\_ACEOF
36830 #define HAVE_LINUX_THREADS 1
36831 _ACEOF
36832
36833         fi
36834
36835
36836
36837 for ac_header in mach/cthreads.h
36838 do
36839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36841   echo "$as_me:$LINENO: checking for $ac_header" >&5
36842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36844   echo $ECHO_N "(cached) $ECHO_C" >&6
36845 fi
36846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36848 else
36849   # Is the header compilable?
36850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36852 cat >conftest.$ac_ext <<_ACEOF
36853 /* confdefs.h.  */
36854 _ACEOF
36855 cat confdefs.h >>conftest.$ac_ext
36856 cat >>conftest.$ac_ext <<_ACEOF
36857 /* end confdefs.h.  */
36858 $ac_includes_default
36859 #include <$ac_header>
36860 _ACEOF
36861 rm -f conftest.$ac_objext
36862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36863   (eval $ac_compile) 2>conftest.er1
36864   ac_status=$?
36865   grep -v '^ *+' conftest.er1 >conftest.err
36866   rm -f conftest.er1
36867   cat conftest.err >&5
36868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869   (exit $ac_status); } &&
36870          { ac_try='test -z "$ac_c_werror_flag"
36871                          || test ! -s conftest.err'
36872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873   (eval $ac_try) 2>&5
36874   ac_status=$?
36875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876   (exit $ac_status); }; } &&
36877          { ac_try='test -s conftest.$ac_objext'
36878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879   (eval $ac_try) 2>&5
36880   ac_status=$?
36881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882   (exit $ac_status); }; }; then
36883   ac_header_compiler=yes
36884 else
36885   echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36887
36888 ac_header_compiler=no
36889 fi
36890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36892 echo "${ECHO_T}$ac_header_compiler" >&6
36893
36894 # Is the header present?
36895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36897 cat >conftest.$ac_ext <<_ACEOF
36898 /* confdefs.h.  */
36899 _ACEOF
36900 cat confdefs.h >>conftest.$ac_ext
36901 cat >>conftest.$ac_ext <<_ACEOF
36902 /* end confdefs.h.  */
36903 #include <$ac_header>
36904 _ACEOF
36905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36907   ac_status=$?
36908   grep -v '^ *+' conftest.er1 >conftest.err
36909   rm -f conftest.er1
36910   cat conftest.err >&5
36911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912   (exit $ac_status); } >/dev/null; then
36913   if test -s conftest.err; then
36914     ac_cpp_err=$ac_c_preproc_warn_flag
36915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36916   else
36917     ac_cpp_err=
36918   fi
36919 else
36920   ac_cpp_err=yes
36921 fi
36922 if test -z "$ac_cpp_err"; then
36923   ac_header_preproc=yes
36924 else
36925   echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36927
36928   ac_header_preproc=no
36929 fi
36930 rm -f conftest.err conftest.$ac_ext
36931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36932 echo "${ECHO_T}$ac_header_preproc" >&6
36933
36934 # So?  What about this header?
36935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36936   yes:no: )
36937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36941     ac_header_preproc=yes
36942     ;;
36943   no:yes:* )
36944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36956     (
36957       cat <<\_ASBOX
36958 ## ------------------------------------------ ##
36959 ## Report this to the AC_PACKAGE_NAME lists.  ##
36960 ## ------------------------------------------ ##
36961 _ASBOX
36962     ) |
36963       sed "s/^/$as_me: WARNING:     /" >&2
36964     ;;
36965 esac
36966 echo "$as_me:$LINENO: checking for $ac_header" >&5
36967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36969   echo $ECHO_N "(cached) $ECHO_C" >&6
36970 else
36971   eval "$as_ac_Header=\$ac_header_preproc"
36972 fi
36973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36975
36976 fi
36977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36978   cat >>confdefs.h <<_ACEOF
36979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36980 _ACEOF
36981
36982 fi
36983
36984 done
36985
36986
36987 for ac_header in lwp/lwp.h
36988 do
36989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36991   echo "$as_me:$LINENO: checking for $ac_header" >&5
36992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36994   echo $ECHO_N "(cached) $ECHO_C" >&6
36995 fi
36996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36998 else
36999   # Is the header compilable?
37000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37002 cat >conftest.$ac_ext <<_ACEOF
37003 /* confdefs.h.  */
37004 _ACEOF
37005 cat confdefs.h >>conftest.$ac_ext
37006 cat >>conftest.$ac_ext <<_ACEOF
37007 /* end confdefs.h.  */
37008 $ac_includes_default
37009 #include <$ac_header>
37010 _ACEOF
37011 rm -f conftest.$ac_objext
37012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37013   (eval $ac_compile) 2>conftest.er1
37014   ac_status=$?
37015   grep -v '^ *+' conftest.er1 >conftest.err
37016   rm -f conftest.er1
37017   cat conftest.err >&5
37018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019   (exit $ac_status); } &&
37020          { ac_try='test -z "$ac_c_werror_flag"
37021                          || test ! -s conftest.err'
37022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023   (eval $ac_try) 2>&5
37024   ac_status=$?
37025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026   (exit $ac_status); }; } &&
37027          { ac_try='test -s conftest.$ac_objext'
37028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37029   (eval $ac_try) 2>&5
37030   ac_status=$?
37031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032   (exit $ac_status); }; }; then
37033   ac_header_compiler=yes
37034 else
37035   echo "$as_me: failed program was:" >&5
37036 sed 's/^/| /' conftest.$ac_ext >&5
37037
37038 ac_header_compiler=no
37039 fi
37040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37042 echo "${ECHO_T}$ac_header_compiler" >&6
37043
37044 # Is the header present?
37045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37047 cat >conftest.$ac_ext <<_ACEOF
37048 /* confdefs.h.  */
37049 _ACEOF
37050 cat confdefs.h >>conftest.$ac_ext
37051 cat >>conftest.$ac_ext <<_ACEOF
37052 /* end confdefs.h.  */
37053 #include <$ac_header>
37054 _ACEOF
37055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37057   ac_status=$?
37058   grep -v '^ *+' conftest.er1 >conftest.err
37059   rm -f conftest.er1
37060   cat conftest.err >&5
37061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062   (exit $ac_status); } >/dev/null; then
37063   if test -s conftest.err; then
37064     ac_cpp_err=$ac_c_preproc_warn_flag
37065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37066   else
37067     ac_cpp_err=
37068   fi
37069 else
37070   ac_cpp_err=yes
37071 fi
37072 if test -z "$ac_cpp_err"; then
37073   ac_header_preproc=yes
37074 else
37075   echo "$as_me: failed program was:" >&5
37076 sed 's/^/| /' conftest.$ac_ext >&5
37077
37078   ac_header_preproc=no
37079 fi
37080 rm -f conftest.err conftest.$ac_ext
37081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37082 echo "${ECHO_T}$ac_header_preproc" >&6
37083
37084 # So?  What about this header?
37085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37086   yes:no: )
37087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37091     ac_header_preproc=yes
37092     ;;
37093   no:yes:* )
37094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37106     (
37107       cat <<\_ASBOX
37108 ## ------------------------------------------ ##
37109 ## Report this to the AC_PACKAGE_NAME lists.  ##
37110 ## ------------------------------------------ ##
37111 _ASBOX
37112     ) |
37113       sed "s/^/$as_me: WARNING:     /" >&2
37114     ;;
37115 esac
37116 echo "$as_me:$LINENO: checking for $ac_header" >&5
37117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37119   echo $ECHO_N "(cached) $ECHO_C" >&6
37120 else
37121   eval "$as_ac_Header=\$ac_header_preproc"
37122 fi
37123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37125
37126 fi
37127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37128   cat >>confdefs.h <<_ACEOF
37129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37130 _ACEOF
37131
37132 fi
37133
37134 done
37135
37136
37137
37138 for ac_header in thread.h synch.h
37139 do
37140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37142   echo "$as_me:$LINENO: checking for $ac_header" >&5
37143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37145   echo $ECHO_N "(cached) $ECHO_C" >&6
37146 fi
37147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37149 else
37150   # Is the header compilable?
37151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37153 cat >conftest.$ac_ext <<_ACEOF
37154 /* confdefs.h.  */
37155 _ACEOF
37156 cat confdefs.h >>conftest.$ac_ext
37157 cat >>conftest.$ac_ext <<_ACEOF
37158 /* end confdefs.h.  */
37159 $ac_includes_default
37160 #include <$ac_header>
37161 _ACEOF
37162 rm -f conftest.$ac_objext
37163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37164   (eval $ac_compile) 2>conftest.er1
37165   ac_status=$?
37166   grep -v '^ *+' conftest.er1 >conftest.err
37167   rm -f conftest.er1
37168   cat conftest.err >&5
37169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170   (exit $ac_status); } &&
37171          { ac_try='test -z "$ac_c_werror_flag"
37172                          || test ! -s conftest.err'
37173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174   (eval $ac_try) 2>&5
37175   ac_status=$?
37176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177   (exit $ac_status); }; } &&
37178          { ac_try='test -s conftest.$ac_objext'
37179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37180   (eval $ac_try) 2>&5
37181   ac_status=$?
37182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183   (exit $ac_status); }; }; then
37184   ac_header_compiler=yes
37185 else
37186   echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37188
37189 ac_header_compiler=no
37190 fi
37191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37193 echo "${ECHO_T}$ac_header_compiler" >&6
37194
37195 # Is the header present?
37196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37198 cat >conftest.$ac_ext <<_ACEOF
37199 /* confdefs.h.  */
37200 _ACEOF
37201 cat confdefs.h >>conftest.$ac_ext
37202 cat >>conftest.$ac_ext <<_ACEOF
37203 /* end confdefs.h.  */
37204 #include <$ac_header>
37205 _ACEOF
37206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37208   ac_status=$?
37209   grep -v '^ *+' conftest.er1 >conftest.err
37210   rm -f conftest.er1
37211   cat conftest.err >&5
37212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213   (exit $ac_status); } >/dev/null; then
37214   if test -s conftest.err; then
37215     ac_cpp_err=$ac_c_preproc_warn_flag
37216     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37217   else
37218     ac_cpp_err=
37219   fi
37220 else
37221   ac_cpp_err=yes
37222 fi
37223 if test -z "$ac_cpp_err"; then
37224   ac_header_preproc=yes
37225 else
37226   echo "$as_me: failed program was:" >&5
37227 sed 's/^/| /' conftest.$ac_ext >&5
37228
37229   ac_header_preproc=no
37230 fi
37231 rm -f conftest.err conftest.$ac_ext
37232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37233 echo "${ECHO_T}$ac_header_preproc" >&6
37234
37235 # So?  What about this header?
37236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37237   yes:no: )
37238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37242     ac_header_preproc=yes
37243     ;;
37244   no:yes:* )
37245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37257     (
37258       cat <<\_ASBOX
37259 ## ------------------------------------------ ##
37260 ## Report this to the AC_PACKAGE_NAME lists.  ##
37261 ## ------------------------------------------ ##
37262 _ASBOX
37263     ) |
37264       sed "s/^/$as_me: WARNING:     /" >&2
37265     ;;
37266 esac
37267 echo "$as_me:$LINENO: checking for $ac_header" >&5
37268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37270   echo $ECHO_N "(cached) $ECHO_C" >&6
37271 else
37272   eval "$as_ac_Header=\$ac_header_preproc"
37273 fi
37274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37276
37277 fi
37278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37279   cat >>confdefs.h <<_ACEOF
37280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37281 _ACEOF
37282
37283 fi
37284
37285 done
37286
37287 fi
37288
37289 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37290                         cat >>confdefs.h <<\_ACEOF
37291 #define REENTRANT 1
37292 _ACEOF
37293
37294         cat >>confdefs.h <<\_ACEOF
37295 #define _REENTRANT 1
37296 _ACEOF
37297
37298         cat >>confdefs.h <<\_ACEOF
37299 #define THREAD_SAFE 1
37300 _ACEOF
37301
37302         cat >>confdefs.h <<\_ACEOF
37303 #define _THREAD_SAFE 1
37304 _ACEOF
37305
37306         cat >>confdefs.h <<\_ACEOF
37307 #define THREADSAFE 1
37308 _ACEOF
37309
37310         cat >>confdefs.h <<\_ACEOF
37311 #define _THREADSAFE 1
37312 _ACEOF
37313
37314         cat >>confdefs.h <<\_ACEOF
37315 #define _SGI_MP_SOURCE 1
37316 _ACEOF
37317
37318
37319                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37320 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37321 if test "${ol_cv_errno_thread_specific+set}" = set; then
37322   echo $ECHO_N "(cached) $ECHO_C" >&6
37323 else
37324
37325                 cat >conftest.$ac_ext <<_ACEOF
37326 /* confdefs.h.  */
37327 _ACEOF
37328 cat confdefs.h >>conftest.$ac_ext
37329 cat >>conftest.$ac_ext <<_ACEOF
37330 /* end confdefs.h.  */
37331 #include <errno.h>
37332 int
37333 main ()
37334 {
37335 errno = 0;
37336   ;
37337   return 0;
37338 }
37339 _ACEOF
37340 rm -f conftest.$ac_objext conftest$ac_exeext
37341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37342   (eval $ac_link) 2>conftest.er1
37343   ac_status=$?
37344   grep -v '^ *+' conftest.er1 >conftest.err
37345   rm -f conftest.er1
37346   cat conftest.err >&5
37347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348   (exit $ac_status); } &&
37349          { ac_try='test -z "$ac_c_werror_flag"
37350                          || test ! -s conftest.err'
37351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352   (eval $ac_try) 2>&5
37353   ac_status=$?
37354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355   (exit $ac_status); }; } &&
37356          { ac_try='test -s conftest$ac_exeext'
37357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358   (eval $ac_try) 2>&5
37359   ac_status=$?
37360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361   (exit $ac_status); }; }; then
37362   ol_cv_errno_thread_specific=yes
37363 else
37364   echo "$as_me: failed program was:" >&5
37365 sed 's/^/| /' conftest.$ac_ext >&5
37366
37367 ol_cv_errno_thread_specific=no
37368 fi
37369 rm -f conftest.err conftest.$ac_objext \
37370       conftest$ac_exeext conftest.$ac_ext
37371
37372 fi
37373 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37374 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37375
37376                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37377 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37378 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37379   echo $ECHO_N "(cached) $ECHO_C" >&6
37380 else
37381
37382                 cat >conftest.$ac_ext <<_ACEOF
37383 /* confdefs.h.  */
37384 _ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h.  */
37388 #include <netdb.h>
37389 int
37390 main ()
37391 {
37392 h_errno = 0;
37393   ;
37394   return 0;
37395 }
37396 _ACEOF
37397 rm -f conftest.$ac_objext conftest$ac_exeext
37398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37399   (eval $ac_link) 2>conftest.er1
37400   ac_status=$?
37401   grep -v '^ *+' conftest.er1 >conftest.err
37402   rm -f conftest.er1
37403   cat conftest.err >&5
37404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405   (exit $ac_status); } &&
37406          { ac_try='test -z "$ac_c_werror_flag"
37407                          || test ! -s conftest.err'
37408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409   (eval $ac_try) 2>&5
37410   ac_status=$?
37411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412   (exit $ac_status); }; } &&
37413          { ac_try='test -s conftest$ac_exeext'
37414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415   (eval $ac_try) 2>&5
37416   ac_status=$?
37417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418   (exit $ac_status); }; }; then
37419   ol_cv_h_errno_thread_specific=yes
37420 else
37421   echo "$as_me: failed program was:" >&5
37422 sed 's/^/| /' conftest.$ac_ext >&5
37423
37424 ol_cv_h_errno_thread_specific=no
37425 fi
37426 rm -f conftest.err conftest.$ac_objext \
37427       conftest$ac_exeext conftest.$ac_ext
37428
37429 fi
37430 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37431 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37432
37433         if test $ol_cv_errno_thread_specific != yes \
37434                 -o $ol_cv_h_errno_thread_specific != yes ; then
37435                 LIBS="$LTHREAD_LIBS $LIBS"
37436                 LTHREAD_LIBS=""
37437         fi
37438
37439 fi
37440
37441 if test $ol_link_threads = no ; then
37442         if test $ol_with_threads = yes ; then
37443                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37444 echo "$as_me: error: no suitable thread support" >&2;}
37445    { (exit 1); exit 1; }; }
37446         fi
37447
37448         if test $ol_with_threads = auto ; then
37449                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37450 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37451                 ol_with_threads=no
37452         fi
37453
37454
37455 cat >>confdefs.h <<\_ACEOF
37456 #define NO_THREADS 1
37457 _ACEOF
37458
37459         LTHREAD_LIBS=""
37460 fi
37461
37462 if test $ol_link_threads != no ; then
37463
37464 cat >>confdefs.h <<\_ACEOF
37465 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37466 _ACEOF
37467
37468 fi
37469
37470
37471
37472
37473 for ac_func in \
37474         ctime_r                 \
37475         gethostbyname_r gethostbyaddr_r \
37476
37477 do
37478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37479 echo "$as_me:$LINENO: checking for $ac_func" >&5
37480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37481 if eval "test \"\${$as_ac_var+set}\" = set"; then
37482   echo $ECHO_N "(cached) $ECHO_C" >&6
37483 else
37484   cat >conftest.$ac_ext <<_ACEOF
37485 /* confdefs.h.  */
37486 _ACEOF
37487 cat confdefs.h >>conftest.$ac_ext
37488 cat >>conftest.$ac_ext <<_ACEOF
37489 /* end confdefs.h.  */
37490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37492 #define $ac_func innocuous_$ac_func
37493
37494 /* System header to define __stub macros and hopefully few prototypes,
37495     which can conflict with char $ac_func (); below.
37496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37497     <limits.h> exists even on freestanding compilers.  */
37498
37499 #ifdef __STDC__
37500 # include <limits.h>
37501 #else
37502 # include <assert.h>
37503 #endif
37504
37505 #undef $ac_func
37506
37507 /* Override any gcc2 internal prototype to avoid an error.  */
37508 #ifdef __cplusplus
37509 extern "C"
37510 {
37511 #endif
37512 /* We use char because int might match the return type of a gcc2
37513    builtin and then its argument prototype would still apply.  */
37514 char $ac_func ();
37515 /* The GNU C library defines this for functions which it implements
37516     to always fail with ENOSYS.  Some functions are actually named
37517     something starting with __ and the normal name is an alias.  */
37518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37519 choke me
37520 #else
37521 char (*f) () = $ac_func;
37522 #endif
37523 #ifdef __cplusplus
37524 }
37525 #endif
37526
37527 int
37528 main ()
37529 {
37530 return f != $ac_func;
37531   ;
37532   return 0;
37533 }
37534 _ACEOF
37535 rm -f conftest.$ac_objext conftest$ac_exeext
37536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37537   (eval $ac_link) 2>conftest.er1
37538   ac_status=$?
37539   grep -v '^ *+' conftest.er1 >conftest.err
37540   rm -f conftest.er1
37541   cat conftest.err >&5
37542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543   (exit $ac_status); } &&
37544          { ac_try='test -z "$ac_c_werror_flag"
37545                          || test ! -s conftest.err'
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); }; } &&
37551          { ac_try='test -s conftest$ac_exeext'
37552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37553   (eval $ac_try) 2>&5
37554   ac_status=$?
37555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556   (exit $ac_status); }; }; then
37557   eval "$as_ac_var=yes"
37558 else
37559   echo "$as_me: failed program was:" >&5
37560 sed 's/^/| /' conftest.$ac_ext >&5
37561
37562 eval "$as_ac_var=no"
37563 fi
37564 rm -f conftest.err conftest.$ac_objext \
37565       conftest$ac_exeext conftest.$ac_ext
37566 fi
37567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37569 if test `eval echo '${'$as_ac_var'}'` = yes; then
37570   cat >>confdefs.h <<_ACEOF
37571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37572 _ACEOF
37573
37574 fi
37575 done
37576
37577
37578 if test "$ac_cv_func_ctime_r" = no ; then
37579         ol_cv_func_ctime_r_nargs=0
37580 else
37581         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37582 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37583 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37584   echo $ECHO_N "(cached) $ECHO_C" >&6
37585 else
37586   cat >conftest.$ac_ext <<_ACEOF
37587 /* confdefs.h.  */
37588 _ACEOF
37589 cat confdefs.h >>conftest.$ac_ext
37590 cat >>conftest.$ac_ext <<_ACEOF
37591 /* end confdefs.h.  */
37592 #include <time.h>
37593 int
37594 main ()
37595 {
37596 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37597   ;
37598   return 0;
37599 }
37600 _ACEOF
37601 rm -f conftest.$ac_objext
37602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37603   (eval $ac_compile) 2>conftest.er1
37604   ac_status=$?
37605   grep -v '^ *+' conftest.er1 >conftest.err
37606   rm -f conftest.er1
37607   cat conftest.err >&5
37608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609   (exit $ac_status); } &&
37610          { ac_try='test -z "$ac_c_werror_flag"
37611                          || test ! -s conftest.err'
37612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37613   (eval $ac_try) 2>&5
37614   ac_status=$?
37615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616   (exit $ac_status); }; } &&
37617          { ac_try='test -s conftest.$ac_objext'
37618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37619   (eval $ac_try) 2>&5
37620   ac_status=$?
37621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622   (exit $ac_status); }; }; then
37623   ol_cv_func_ctime_r_nargs3=yes
37624 else
37625   echo "$as_me: failed program was:" >&5
37626 sed 's/^/| /' conftest.$ac_ext >&5
37627
37628 ol_cv_func_ctime_r_nargs3=no
37629 fi
37630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37631
37632         cat >conftest.$ac_ext <<_ACEOF
37633 /* confdefs.h.  */
37634 _ACEOF
37635 cat confdefs.h >>conftest.$ac_ext
37636 cat >>conftest.$ac_ext <<_ACEOF
37637 /* end confdefs.h.  */
37638 #include <time.h>
37639 int
37640 main ()
37641 {
37642 time_t ti; char *buffer; ctime_r(&ti,buffer);
37643   ;
37644   return 0;
37645 }
37646 _ACEOF
37647 rm -f conftest.$ac_objext
37648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37649   (eval $ac_compile) 2>conftest.er1
37650   ac_status=$?
37651   grep -v '^ *+' conftest.er1 >conftest.err
37652   rm -f conftest.er1
37653   cat conftest.err >&5
37654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655   (exit $ac_status); } &&
37656          { ac_try='test -z "$ac_c_werror_flag"
37657                          || test ! -s conftest.err'
37658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37659   (eval $ac_try) 2>&5
37660   ac_status=$?
37661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662   (exit $ac_status); }; } &&
37663          { ac_try='test -s conftest.$ac_objext'
37664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37665   (eval $ac_try) 2>&5
37666   ac_status=$?
37667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668   (exit $ac_status); }; }; then
37669   ol_cv_func_ctime_r_nargs2=yes
37670 else
37671   echo "$as_me: failed program was:" >&5
37672 sed 's/^/| /' conftest.$ac_ext >&5
37673
37674 ol_cv_func_ctime_r_nargs2=no
37675 fi
37676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37677
37678         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37679                 $ol_cv_func_ctime_r_nargs2 = no ; then
37680
37681                 ol_cv_func_ctime_r_nargs=3
37682
37683         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37684                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37685
37686                 ol_cv_func_ctime_r_nargs=2
37687
37688         else
37689                 ol_cv_func_ctime_r_nargs=0
37690         fi
37691
37692 fi
37693 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37694 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37695
37696   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37697
37698 cat >>confdefs.h <<_ACEOF
37699 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37700 _ACEOF
37701
37702   fi
37703
37704 fi
37705
37706 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37707         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37708 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37709 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37710   echo $ECHO_N "(cached) $ECHO_C" >&6
37711 else
37712   cat >conftest.$ac_ext <<_ACEOF
37713 /* confdefs.h.  */
37714 _ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h.  */
37718 #include <sys/types.h>
37719 #include <sys/socket.h>
37720 #include <netinet/in.h>
37721 #include <netdb.h>
37722 #define BUFSIZE (sizeof(struct hostent)+10)
37723 int
37724 main ()
37725 {
37726 struct hostent hent; char buffer[BUFSIZE];
37727                 int bufsize=BUFSIZE;int h_errno;
37728                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37729                         buffer, bufsize, &h_errno);
37730   ;
37731   return 0;
37732 }
37733 _ACEOF
37734 rm -f conftest.$ac_objext
37735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37736   (eval $ac_compile) 2>conftest.er1
37737   ac_status=$?
37738   grep -v '^ *+' conftest.er1 >conftest.err
37739   rm -f conftest.er1
37740   cat conftest.err >&5
37741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37742   (exit $ac_status); } &&
37743          { ac_try='test -z "$ac_c_werror_flag"
37744                          || test ! -s conftest.err'
37745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37746   (eval $ac_try) 2>&5
37747   ac_status=$?
37748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749   (exit $ac_status); }; } &&
37750          { ac_try='test -s conftest.$ac_objext'
37751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37752   (eval $ac_try) 2>&5
37753   ac_status=$?
37754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755   (exit $ac_status); }; }; then
37756   ol_cv_func_gethostbyname_r_nargs5=yes
37757 else
37758   echo "$as_me: failed program was:" >&5
37759 sed 's/^/| /' conftest.$ac_ext >&5
37760
37761 ol_cv_func_gethostbyname_r_nargs5=no
37762 fi
37763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37764
37765         cat >conftest.$ac_ext <<_ACEOF
37766 /* confdefs.h.  */
37767 _ACEOF
37768 cat confdefs.h >>conftest.$ac_ext
37769 cat >>conftest.$ac_ext <<_ACEOF
37770 /* end confdefs.h.  */
37771 #include <sys/types.h>
37772 #include <sys/socket.h>
37773 #include <netinet/in.h>
37774 #include <netdb.h>
37775 #define BUFSIZE (sizeof(struct hostent)+10)
37776 int
37777 main ()
37778 {
37779 struct hostent hent;struct hostent *rhent;
37780                 char buffer[BUFSIZE];
37781                 int bufsize=BUFSIZE;int h_errno;
37782                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37783                         &rhent, &h_errno);
37784   ;
37785   return 0;
37786 }
37787 _ACEOF
37788 rm -f conftest.$ac_objext
37789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37790   (eval $ac_compile) 2>conftest.er1
37791   ac_status=$?
37792   grep -v '^ *+' conftest.er1 >conftest.err
37793   rm -f conftest.er1
37794   cat conftest.err >&5
37795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796   (exit $ac_status); } &&
37797          { ac_try='test -z "$ac_c_werror_flag"
37798                          || test ! -s conftest.err'
37799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37800   (eval $ac_try) 2>&5
37801   ac_status=$?
37802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803   (exit $ac_status); }; } &&
37804          { ac_try='test -s conftest.$ac_objext'
37805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37806   (eval $ac_try) 2>&5
37807   ac_status=$?
37808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809   (exit $ac_status); }; }; then
37810   ol_cv_func_gethostbyname_r_nargs6=yes
37811 else
37812   echo "$as_me: failed program was:" >&5
37813 sed 's/^/| /' conftest.$ac_ext >&5
37814
37815 ol_cv_func_gethostbyname_r_nargs6=no
37816 fi
37817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37818
37819         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37820                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37821
37822                 ol_cv_func_gethostbyname_r_nargs=5
37823
37824         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37825                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37826
37827                 ol_cv_func_gethostbyname_r_nargs=6
37828
37829         else
37830                 ol_cv_func_gethostbyname_r_nargs=0
37831         fi
37832
37833 fi
37834 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37835 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37836   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37837
37838 cat >>confdefs.h <<_ACEOF
37839 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37840 _ACEOF
37841
37842   fi
37843
37844 else
37845         ol_cv_func_gethostbyname_r_nargs=0
37846 fi
37847
37848 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37849         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37850 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37851 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37852   echo $ECHO_N "(cached) $ECHO_C" >&6
37853 else
37854   cat >conftest.$ac_ext <<_ACEOF
37855 /* confdefs.h.  */
37856 _ACEOF
37857 cat confdefs.h >>conftest.$ac_ext
37858 cat >>conftest.$ac_ext <<_ACEOF
37859 /* end confdefs.h.  */
37860 #include <sys/types.h>
37861 #include <sys/socket.h>
37862 #include <netinet/in.h>
37863 #include <netdb.h>
37864 #define BUFSIZE (sizeof(struct hostent)+10)
37865 int
37866 main ()
37867 {
37868 struct hostent hent; char buffer[BUFSIZE];
37869             struct in_addr add;
37870             size_t alen=sizeof(struct in_addr);
37871             int bufsize=BUFSIZE;int h_errno;
37872                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37873                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37874   ;
37875   return 0;
37876 }
37877 _ACEOF
37878 rm -f conftest.$ac_objext
37879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37880   (eval $ac_compile) 2>conftest.er1
37881   ac_status=$?
37882   grep -v '^ *+' conftest.er1 >conftest.err
37883   rm -f conftest.er1
37884   cat conftest.err >&5
37885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886   (exit $ac_status); } &&
37887          { ac_try='test -z "$ac_c_werror_flag"
37888                          || test ! -s conftest.err'
37889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37890   (eval $ac_try) 2>&5
37891   ac_status=$?
37892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37893   (exit $ac_status); }; } &&
37894          { ac_try='test -s conftest.$ac_objext'
37895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37896   (eval $ac_try) 2>&5
37897   ac_status=$?
37898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899   (exit $ac_status); }; }; then
37900   ol_cv_func_gethostbyaddr_r_nargs7=yes
37901 else
37902   echo "$as_me: failed program was:" >&5
37903 sed 's/^/| /' conftest.$ac_ext >&5
37904
37905 ol_cv_func_gethostbyaddr_r_nargs7=no
37906 fi
37907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37908
37909         cat >conftest.$ac_ext <<_ACEOF
37910 /* confdefs.h.  */
37911 _ACEOF
37912 cat confdefs.h >>conftest.$ac_ext
37913 cat >>conftest.$ac_ext <<_ACEOF
37914 /* end confdefs.h.  */
37915 #include <sys/types.h>
37916 #include <sys/socket.h>
37917 #include <netinet/in.h>
37918 #include <netdb.h>
37919 #define BUFSIZE (sizeof(struct hostent)+10)
37920 int
37921 main ()
37922 {
37923 struct hostent hent;
37924                 struct hostent *rhent; char buffer[BUFSIZE];
37925                 struct in_addr add;
37926                 size_t alen=sizeof(struct in_addr);
37927                 int bufsize=BUFSIZE;int h_errno;
37928                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37929                         alen, AF_INET, &hent, buffer, bufsize,
37930                         &rhent, &h_errno);
37931   ;
37932   return 0;
37933 }
37934 _ACEOF
37935 rm -f conftest.$ac_objext
37936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37937   (eval $ac_compile) 2>conftest.er1
37938   ac_status=$?
37939   grep -v '^ *+' conftest.er1 >conftest.err
37940   rm -f conftest.er1
37941   cat conftest.err >&5
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); } &&
37944          { ac_try='test -z "$ac_c_werror_flag"
37945                          || test ! -s conftest.err'
37946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37947   (eval $ac_try) 2>&5
37948   ac_status=$?
37949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950   (exit $ac_status); }; } &&
37951          { ac_try='test -s conftest.$ac_objext'
37952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37953   (eval $ac_try) 2>&5
37954   ac_status=$?
37955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956   (exit $ac_status); }; }; then
37957   ol_cv_func_gethostbyaddr_r_nargs8=yes
37958 else
37959   echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37961
37962 ol_cv_func_gethostbyaddr_r_nargs8=no
37963 fi
37964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37965
37966         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37967                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37968
37969                 ol_cv_func_gethostbyaddr_r_nargs=7
37970
37971         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37972                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37973
37974                 ol_cv_func_gethostbyaddr_r_nargs=8
37975
37976         else
37977                 ol_cv_func_gethostbyaddr_r_nargs=0
37978         fi
37979
37980 fi
37981 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37982 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37983   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37984
37985 cat >>confdefs.h <<_ACEOF
37986 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37987 _ACEOF
37988
37989   fi
37990
37991 else
37992         ol_cv_func_gethostbyaddr_r_nargs=0
37993 fi
37994
37995 ol_link_ldbm=no
37996
37997 if test $ol_enable_ldbm_api = auto \
37998         -o $ol_enable_ldbm_api = berkeley \
37999         -o $ol_enable_ldbm_api = bcompat ; then
38000
38001         if test $ol_enable_ldbm_api = bcompat; then \
38002
38003
38004 for ac_header in db_185.h db.h
38005 do
38006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38008   echo "$as_me:$LINENO: checking for $ac_header" >&5
38009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38011   echo $ECHO_N "(cached) $ECHO_C" >&6
38012 fi
38013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38015 else
38016   # Is the header compilable?
38017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38019 cat >conftest.$ac_ext <<_ACEOF
38020 /* confdefs.h.  */
38021 _ACEOF
38022 cat confdefs.h >>conftest.$ac_ext
38023 cat >>conftest.$ac_ext <<_ACEOF
38024 /* end confdefs.h.  */
38025 $ac_includes_default
38026 #include <$ac_header>
38027 _ACEOF
38028 rm -f conftest.$ac_objext
38029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38030   (eval $ac_compile) 2>conftest.er1
38031   ac_status=$?
38032   grep -v '^ *+' conftest.er1 >conftest.err
38033   rm -f conftest.er1
38034   cat conftest.err >&5
38035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036   (exit $ac_status); } &&
38037          { ac_try='test -z "$ac_c_werror_flag"
38038                          || test ! -s conftest.err'
38039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040   (eval $ac_try) 2>&5
38041   ac_status=$?
38042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043   (exit $ac_status); }; } &&
38044          { ac_try='test -s conftest.$ac_objext'
38045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38046   (eval $ac_try) 2>&5
38047   ac_status=$?
38048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049   (exit $ac_status); }; }; then
38050   ac_header_compiler=yes
38051 else
38052   echo "$as_me: failed program was:" >&5
38053 sed 's/^/| /' conftest.$ac_ext >&5
38054
38055 ac_header_compiler=no
38056 fi
38057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38059 echo "${ECHO_T}$ac_header_compiler" >&6
38060
38061 # Is the header present?
38062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38064 cat >conftest.$ac_ext <<_ACEOF
38065 /* confdefs.h.  */
38066 _ACEOF
38067 cat confdefs.h >>conftest.$ac_ext
38068 cat >>conftest.$ac_ext <<_ACEOF
38069 /* end confdefs.h.  */
38070 #include <$ac_header>
38071 _ACEOF
38072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38074   ac_status=$?
38075   grep -v '^ *+' conftest.er1 >conftest.err
38076   rm -f conftest.er1
38077   cat conftest.err >&5
38078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079   (exit $ac_status); } >/dev/null; then
38080   if test -s conftest.err; then
38081     ac_cpp_err=$ac_c_preproc_warn_flag
38082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38083   else
38084     ac_cpp_err=
38085   fi
38086 else
38087   ac_cpp_err=yes
38088 fi
38089 if test -z "$ac_cpp_err"; then
38090   ac_header_preproc=yes
38091 else
38092   echo "$as_me: failed program was:" >&5
38093 sed 's/^/| /' conftest.$ac_ext >&5
38094
38095   ac_header_preproc=no
38096 fi
38097 rm -f conftest.err conftest.$ac_ext
38098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38099 echo "${ECHO_T}$ac_header_preproc" >&6
38100
38101 # So?  What about this header?
38102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38103   yes:no: )
38104     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38108     ac_header_preproc=yes
38109     ;;
38110   no:yes:* )
38111     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38113     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38114 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38115     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38117     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38118 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38121     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38123     (
38124       cat <<\_ASBOX
38125 ## ------------------------------------------ ##
38126 ## Report this to the AC_PACKAGE_NAME lists.  ##
38127 ## ------------------------------------------ ##
38128 _ASBOX
38129     ) |
38130       sed "s/^/$as_me: WARNING:     /" >&2
38131     ;;
38132 esac
38133 echo "$as_me:$LINENO: checking for $ac_header" >&5
38134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38136   echo $ECHO_N "(cached) $ECHO_C" >&6
38137 else
38138   eval "$as_ac_Header=\$ac_header_preproc"
38139 fi
38140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38142
38143 fi
38144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38145   cat >>confdefs.h <<_ACEOF
38146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38147 _ACEOF
38148
38149 fi
38150
38151 done
38152
38153 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38154         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38155 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38156 if test "${ol_cv_header_db1+set}" = set; then
38157   echo $ECHO_N "(cached) $ECHO_C" >&6
38158 else
38159
38160                 cat >conftest.$ac_ext <<_ACEOF
38161 /* confdefs.h.  */
38162 _ACEOF
38163 cat confdefs.h >>conftest.$ac_ext
38164 cat >>conftest.$ac_ext <<_ACEOF
38165 /* end confdefs.h.  */
38166
38167 #if HAVE_DB_185_H
38168 #       include <db_185.h>
38169 #else
38170 #       include <db.h>
38171 #endif
38172
38173  /* this check could be improved */
38174 #ifndef DB_VERSION_MAJOR
38175 #       define DB_VERSION_MAJOR 1
38176 #endif
38177
38178 #if DB_VERSION_MAJOR == 1
38179         __db_version_1
38180 #endif
38181
38182 _ACEOF
38183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38184   $EGREP "__db_version_1" >/dev/null 2>&1; then
38185   ol_cv_header_db1=yes
38186 else
38187   ol_cv_header_db1=no
38188 fi
38189 rm -f conftest*
38190
38191 fi
38192 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38193 echo "${ECHO_T}$ol_cv_header_db1" >&6
38194
38195         if test $ol_cv_header_db1 = yes ; then
38196                 ol_cv_lib_db=no
38197 if test $ol_cv_lib_db = no ; then
38198         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38199 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38200 if test "${ol_cv_db_none+set}" = set; then
38201   echo $ECHO_N "(cached) $ECHO_C" >&6
38202 else
38203
38204         ol_DB_LIB=
38205         ol_LIBS=$LIBS
38206         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38207
38208         cat >conftest.$ac_ext <<_ACEOF
38209 /* confdefs.h.  */
38210 _ACEOF
38211 cat confdefs.h >>conftest.$ac_ext
38212 cat >>conftest.$ac_ext <<_ACEOF
38213 /* end confdefs.h.  */
38214
38215 #ifdef HAVE_DB_185_H
38216 # include <db_185.h>
38217 #else
38218 # include <db.h>
38219 #endif
38220
38221 #ifndef DB_VERSION_MAJOR
38222 # define DB_VERSION_MAJOR 1
38223 #endif
38224
38225 #ifndef NULL
38226 #define NULL ((void*)0)
38227 #endif
38228
38229 int
38230 main ()
38231 {
38232
38233 #if DB_VERSION_MAJOR > 1
38234         {
38235                 char *version;
38236                 int major, minor, patch;
38237
38238                 version = db_version( &major, &minor, &patch );
38239
38240                 if( major != DB_VERSION_MAJOR ||
38241                         minor < DB_VERSION_MINOR )
38242                 {
38243                         printf("Berkeley DB version mismatch\n"
38244                                 "\theader: %s\n\tlibrary: %s\n",
38245                                 DB_VERSION_STRING, version);
38246                         return 1;
38247                 }
38248         }
38249 #endif
38250
38251 #if DB_VERSION_MAJOR > 2
38252         db_env_create( NULL, 0 );
38253 #elif DB_VERSION_MAJOR > 1
38254         db_appexit( NULL );
38255 #else
38256         (void) dbopen( NULL, 0, 0, 0, NULL);
38257 #endif
38258
38259   ;
38260   return 0;
38261 }
38262 _ACEOF
38263 rm -f conftest.$ac_objext conftest$ac_exeext
38264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38265   (eval $ac_link) 2>conftest.er1
38266   ac_status=$?
38267   grep -v '^ *+' conftest.er1 >conftest.err
38268   rm -f conftest.er1
38269   cat conftest.err >&5
38270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271   (exit $ac_status); } &&
38272          { ac_try='test -z "$ac_c_werror_flag"
38273                          || test ! -s conftest.err'
38274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38275   (eval $ac_try) 2>&5
38276   ac_status=$?
38277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278   (exit $ac_status); }; } &&
38279          { ac_try='test -s conftest$ac_exeext'
38280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38281   (eval $ac_try) 2>&5
38282   ac_status=$?
38283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284   (exit $ac_status); }; }; then
38285   ol_cv_db_none=yes
38286 else
38287   echo "$as_me: failed program was:" >&5
38288 sed 's/^/| /' conftest.$ac_ext >&5
38289
38290 ol_cv_db_none=no
38291 fi
38292 rm -f conftest.err conftest.$ac_objext \
38293       conftest$ac_exeext conftest.$ac_ext
38294
38295         LIBS="$ol_LIBS"
38296
38297 fi
38298 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38299 echo "${ECHO_T}$ol_cv_db_none" >&6
38300
38301         if test $ol_cv_db_none = yes ; then
38302                 ol_cv_lib_db=yes
38303         fi
38304 fi
38305
38306 if test $ol_cv_lib_db = no ; then
38307         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38308 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38309 if test "${ol_cv_db_db43+set}" = set; then
38310   echo $ECHO_N "(cached) $ECHO_C" >&6
38311 else
38312
38313         ol_DB_LIB=-ldb43
38314         ol_LIBS=$LIBS
38315         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38316
38317         cat >conftest.$ac_ext <<_ACEOF
38318 /* confdefs.h.  */
38319 _ACEOF
38320 cat confdefs.h >>conftest.$ac_ext
38321 cat >>conftest.$ac_ext <<_ACEOF
38322 /* end confdefs.h.  */
38323
38324 #ifdef HAVE_DB_185_H
38325 # include <db_185.h>
38326 #else
38327 # include <db.h>
38328 #endif
38329
38330 #ifndef DB_VERSION_MAJOR
38331 # define DB_VERSION_MAJOR 1
38332 #endif
38333
38334 #ifndef NULL
38335 #define NULL ((void*)0)
38336 #endif
38337
38338 int
38339 main ()
38340 {
38341
38342 #if DB_VERSION_MAJOR > 1
38343         {
38344                 char *version;
38345                 int major, minor, patch;
38346
38347                 version = db_version( &major, &minor, &patch );
38348
38349                 if( major != DB_VERSION_MAJOR ||
38350                         minor < DB_VERSION_MINOR )
38351                 {
38352                         printf("Berkeley DB version mismatch\n"
38353                                 "\theader: %s\n\tlibrary: %s\n",
38354                                 DB_VERSION_STRING, version);
38355                         return 1;
38356                 }
38357         }
38358 #endif
38359
38360 #if DB_VERSION_MAJOR > 2
38361         db_env_create( NULL, 0 );
38362 #elif DB_VERSION_MAJOR > 1
38363         db_appexit( NULL );
38364 #else
38365         (void) dbopen( NULL, 0, 0, 0, NULL);
38366 #endif
38367
38368   ;
38369   return 0;
38370 }
38371 _ACEOF
38372 rm -f conftest.$ac_objext conftest$ac_exeext
38373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38374   (eval $ac_link) 2>conftest.er1
38375   ac_status=$?
38376   grep -v '^ *+' conftest.er1 >conftest.err
38377   rm -f conftest.er1
38378   cat conftest.err >&5
38379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380   (exit $ac_status); } &&
38381          { ac_try='test -z "$ac_c_werror_flag"
38382                          || test ! -s conftest.err'
38383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38384   (eval $ac_try) 2>&5
38385   ac_status=$?
38386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387   (exit $ac_status); }; } &&
38388          { ac_try='test -s conftest$ac_exeext'
38389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390   (eval $ac_try) 2>&5
38391   ac_status=$?
38392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393   (exit $ac_status); }; }; then
38394   ol_cv_db_db43=yes
38395 else
38396   echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38398
38399 ol_cv_db_db43=no
38400 fi
38401 rm -f conftest.err conftest.$ac_objext \
38402       conftest$ac_exeext conftest.$ac_ext
38403
38404         LIBS="$ol_LIBS"
38405
38406 fi
38407 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38408 echo "${ECHO_T}$ol_cv_db_db43" >&6
38409
38410         if test $ol_cv_db_db43 = yes ; then
38411                 ol_cv_lib_db=-ldb43
38412         fi
38413 fi
38414
38415 if test $ol_cv_lib_db = no ; then
38416         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38417 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38418 if test "${ol_cv_db_db_43+set}" = set; then
38419   echo $ECHO_N "(cached) $ECHO_C" >&6
38420 else
38421
38422         ol_DB_LIB=-ldb-43
38423         ol_LIBS=$LIBS
38424         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38425
38426         cat >conftest.$ac_ext <<_ACEOF
38427 /* confdefs.h.  */
38428 _ACEOF
38429 cat confdefs.h >>conftest.$ac_ext
38430 cat >>conftest.$ac_ext <<_ACEOF
38431 /* end confdefs.h.  */
38432
38433 #ifdef HAVE_DB_185_H
38434 # include <db_185.h>
38435 #else
38436 # include <db.h>
38437 #endif
38438
38439 #ifndef DB_VERSION_MAJOR
38440 # define DB_VERSION_MAJOR 1
38441 #endif
38442
38443 #ifndef NULL
38444 #define NULL ((void*)0)
38445 #endif
38446
38447 int
38448 main ()
38449 {
38450
38451 #if DB_VERSION_MAJOR > 1
38452         {
38453                 char *version;
38454                 int major, minor, patch;
38455
38456                 version = db_version( &major, &minor, &patch );
38457
38458                 if( major != DB_VERSION_MAJOR ||
38459                         minor < DB_VERSION_MINOR )
38460                 {
38461                         printf("Berkeley DB version mismatch\n"
38462                                 "\theader: %s\n\tlibrary: %s\n",
38463                                 DB_VERSION_STRING, version);
38464                         return 1;
38465                 }
38466         }
38467 #endif
38468
38469 #if DB_VERSION_MAJOR > 2
38470         db_env_create( NULL, 0 );
38471 #elif DB_VERSION_MAJOR > 1
38472         db_appexit( NULL );
38473 #else
38474         (void) dbopen( NULL, 0, 0, 0, NULL);
38475 #endif
38476
38477   ;
38478   return 0;
38479 }
38480 _ACEOF
38481 rm -f conftest.$ac_objext conftest$ac_exeext
38482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38483   (eval $ac_link) 2>conftest.er1
38484   ac_status=$?
38485   grep -v '^ *+' conftest.er1 >conftest.err
38486   rm -f conftest.er1
38487   cat conftest.err >&5
38488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489   (exit $ac_status); } &&
38490          { ac_try='test -z "$ac_c_werror_flag"
38491                          || test ! -s conftest.err'
38492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38493   (eval $ac_try) 2>&5
38494   ac_status=$?
38495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38496   (exit $ac_status); }; } &&
38497          { ac_try='test -s conftest$ac_exeext'
38498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38499   (eval $ac_try) 2>&5
38500   ac_status=$?
38501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502   (exit $ac_status); }; }; then
38503   ol_cv_db_db_43=yes
38504 else
38505   echo "$as_me: failed program was:" >&5
38506 sed 's/^/| /' conftest.$ac_ext >&5
38507
38508 ol_cv_db_db_43=no
38509 fi
38510 rm -f conftest.err conftest.$ac_objext \
38511       conftest$ac_exeext conftest.$ac_ext
38512
38513         LIBS="$ol_LIBS"
38514
38515 fi
38516 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38517 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38518
38519         if test $ol_cv_db_db_43 = yes ; then
38520                 ol_cv_lib_db=-ldb-43
38521         fi
38522 fi
38523
38524 if test $ol_cv_lib_db = no ; then
38525         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38526 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38527 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38528   echo $ECHO_N "(cached) $ECHO_C" >&6
38529 else
38530
38531         ol_DB_LIB=-ldb-4.3
38532         ol_LIBS=$LIBS
38533         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38534
38535         cat >conftest.$ac_ext <<_ACEOF
38536 /* confdefs.h.  */
38537 _ACEOF
38538 cat confdefs.h >>conftest.$ac_ext
38539 cat >>conftest.$ac_ext <<_ACEOF
38540 /* end confdefs.h.  */
38541
38542 #ifdef HAVE_DB_185_H
38543 # include <db_185.h>
38544 #else
38545 # include <db.h>
38546 #endif
38547
38548 #ifndef DB_VERSION_MAJOR
38549 # define DB_VERSION_MAJOR 1
38550 #endif
38551
38552 #ifndef NULL
38553 #define NULL ((void*)0)
38554 #endif
38555
38556 int
38557 main ()
38558 {
38559
38560 #if DB_VERSION_MAJOR > 1
38561         {
38562                 char *version;
38563                 int major, minor, patch;
38564
38565                 version = db_version( &major, &minor, &patch );
38566
38567                 if( major != DB_VERSION_MAJOR ||
38568                         minor < DB_VERSION_MINOR )
38569                 {
38570                         printf("Berkeley DB version mismatch\n"
38571                                 "\theader: %s\n\tlibrary: %s\n",
38572                                 DB_VERSION_STRING, version);
38573                         return 1;
38574                 }
38575         }
38576 #endif
38577
38578 #if DB_VERSION_MAJOR > 2
38579         db_env_create( NULL, 0 );
38580 #elif DB_VERSION_MAJOR > 1
38581         db_appexit( NULL );
38582 #else
38583         (void) dbopen( NULL, 0, 0, 0, NULL);
38584 #endif
38585
38586   ;
38587   return 0;
38588 }
38589 _ACEOF
38590 rm -f conftest.$ac_objext conftest$ac_exeext
38591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38592   (eval $ac_link) 2>conftest.er1
38593   ac_status=$?
38594   grep -v '^ *+' conftest.er1 >conftest.err
38595   rm -f conftest.er1
38596   cat conftest.err >&5
38597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38598   (exit $ac_status); } &&
38599          { ac_try='test -z "$ac_c_werror_flag"
38600                          || test ! -s conftest.err'
38601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38602   (eval $ac_try) 2>&5
38603   ac_status=$?
38604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605   (exit $ac_status); }; } &&
38606          { ac_try='test -s conftest$ac_exeext'
38607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38608   (eval $ac_try) 2>&5
38609   ac_status=$?
38610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611   (exit $ac_status); }; }; then
38612   ol_cv_db_db_4_dot_3=yes
38613 else
38614   echo "$as_me: failed program was:" >&5
38615 sed 's/^/| /' conftest.$ac_ext >&5
38616
38617 ol_cv_db_db_4_dot_3=no
38618 fi
38619 rm -f conftest.err conftest.$ac_objext \
38620       conftest$ac_exeext conftest.$ac_ext
38621
38622         LIBS="$ol_LIBS"
38623
38624 fi
38625 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38626 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38627
38628         if test $ol_cv_db_db_4_dot_3 = yes ; then
38629                 ol_cv_lib_db=-ldb-4.3
38630         fi
38631 fi
38632
38633 if test $ol_cv_lib_db = no ; then
38634         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38635 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38636 if test "${ol_cv_db_db_4_3+set}" = set; then
38637   echo $ECHO_N "(cached) $ECHO_C" >&6
38638 else
38639
38640         ol_DB_LIB=-ldb-4-3
38641         ol_LIBS=$LIBS
38642         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38643
38644         cat >conftest.$ac_ext <<_ACEOF
38645 /* confdefs.h.  */
38646 _ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h.  */
38650
38651 #ifdef HAVE_DB_185_H
38652 # include <db_185.h>
38653 #else
38654 # include <db.h>
38655 #endif
38656
38657 #ifndef DB_VERSION_MAJOR
38658 # define DB_VERSION_MAJOR 1
38659 #endif
38660
38661 #ifndef NULL
38662 #define NULL ((void*)0)
38663 #endif
38664
38665 int
38666 main ()
38667 {
38668
38669 #if DB_VERSION_MAJOR > 1
38670         {
38671                 char *version;
38672                 int major, minor, patch;
38673
38674                 version = db_version( &major, &minor, &patch );
38675
38676                 if( major != DB_VERSION_MAJOR ||
38677                         minor < DB_VERSION_MINOR )
38678                 {
38679                         printf("Berkeley DB version mismatch\n"
38680                                 "\theader: %s\n\tlibrary: %s\n",
38681                                 DB_VERSION_STRING, version);
38682                         return 1;
38683                 }
38684         }
38685 #endif
38686
38687 #if DB_VERSION_MAJOR > 2
38688         db_env_create( NULL, 0 );
38689 #elif DB_VERSION_MAJOR > 1
38690         db_appexit( NULL );
38691 #else
38692         (void) dbopen( NULL, 0, 0, 0, NULL);
38693 #endif
38694
38695   ;
38696   return 0;
38697 }
38698 _ACEOF
38699 rm -f conftest.$ac_objext conftest$ac_exeext
38700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38701   (eval $ac_link) 2>conftest.er1
38702   ac_status=$?
38703   grep -v '^ *+' conftest.er1 >conftest.err
38704   rm -f conftest.er1
38705   cat conftest.err >&5
38706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707   (exit $ac_status); } &&
38708          { ac_try='test -z "$ac_c_werror_flag"
38709                          || test ! -s conftest.err'
38710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38711   (eval $ac_try) 2>&5
38712   ac_status=$?
38713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38714   (exit $ac_status); }; } &&
38715          { ac_try='test -s conftest$ac_exeext'
38716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38717   (eval $ac_try) 2>&5
38718   ac_status=$?
38719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720   (exit $ac_status); }; }; then
38721   ol_cv_db_db_4_3=yes
38722 else
38723   echo "$as_me: failed program was:" >&5
38724 sed 's/^/| /' conftest.$ac_ext >&5
38725
38726 ol_cv_db_db_4_3=no
38727 fi
38728 rm -f conftest.err conftest.$ac_objext \
38729       conftest$ac_exeext conftest.$ac_ext
38730
38731         LIBS="$ol_LIBS"
38732
38733 fi
38734 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38735 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38736
38737         if test $ol_cv_db_db_4_3 = yes ; then
38738                 ol_cv_lib_db=-ldb-4-3
38739         fi
38740 fi
38741
38742 if test $ol_cv_lib_db = no ; then
38743         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38744 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38745 if test "${ol_cv_db_db42+set}" = set; then
38746   echo $ECHO_N "(cached) $ECHO_C" >&6
38747 else
38748
38749         ol_DB_LIB=-ldb42
38750         ol_LIBS=$LIBS
38751         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38752
38753         cat >conftest.$ac_ext <<_ACEOF
38754 /* confdefs.h.  */
38755 _ACEOF
38756 cat confdefs.h >>conftest.$ac_ext
38757 cat >>conftest.$ac_ext <<_ACEOF
38758 /* end confdefs.h.  */
38759
38760 #ifdef HAVE_DB_185_H
38761 # include <db_185.h>
38762 #else
38763 # include <db.h>
38764 #endif
38765
38766 #ifndef DB_VERSION_MAJOR
38767 # define DB_VERSION_MAJOR 1
38768 #endif
38769
38770 #ifndef NULL
38771 #define NULL ((void*)0)
38772 #endif
38773
38774 int
38775 main ()
38776 {
38777
38778 #if DB_VERSION_MAJOR > 1
38779         {
38780                 char *version;
38781                 int major, minor, patch;
38782
38783                 version = db_version( &major, &minor, &patch );
38784
38785                 if( major != DB_VERSION_MAJOR ||
38786                         minor < DB_VERSION_MINOR )
38787                 {
38788                         printf("Berkeley DB version mismatch\n"
38789                                 "\theader: %s\n\tlibrary: %s\n",
38790                                 DB_VERSION_STRING, version);
38791                         return 1;
38792                 }
38793         }
38794 #endif
38795
38796 #if DB_VERSION_MAJOR > 2
38797         db_env_create( NULL, 0 );
38798 #elif DB_VERSION_MAJOR > 1
38799         db_appexit( NULL );
38800 #else
38801         (void) dbopen( NULL, 0, 0, 0, NULL);
38802 #endif
38803
38804   ;
38805   return 0;
38806 }
38807 _ACEOF
38808 rm -f conftest.$ac_objext conftest$ac_exeext
38809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38810   (eval $ac_link) 2>conftest.er1
38811   ac_status=$?
38812   grep -v '^ *+' conftest.er1 >conftest.err
38813   rm -f conftest.er1
38814   cat conftest.err >&5
38815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816   (exit $ac_status); } &&
38817          { ac_try='test -z "$ac_c_werror_flag"
38818                          || test ! -s conftest.err'
38819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38820   (eval $ac_try) 2>&5
38821   ac_status=$?
38822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823   (exit $ac_status); }; } &&
38824          { ac_try='test -s conftest$ac_exeext'
38825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826   (eval $ac_try) 2>&5
38827   ac_status=$?
38828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829   (exit $ac_status); }; }; then
38830   ol_cv_db_db42=yes
38831 else
38832   echo "$as_me: failed program was:" >&5
38833 sed 's/^/| /' conftest.$ac_ext >&5
38834
38835 ol_cv_db_db42=no
38836 fi
38837 rm -f conftest.err conftest.$ac_objext \
38838       conftest$ac_exeext conftest.$ac_ext
38839
38840         LIBS="$ol_LIBS"
38841
38842 fi
38843 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38844 echo "${ECHO_T}$ol_cv_db_db42" >&6
38845
38846         if test $ol_cv_db_db42 = yes ; then
38847                 ol_cv_lib_db=-ldb42
38848         fi
38849 fi
38850
38851 if test $ol_cv_lib_db = no ; then
38852         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38853 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38854 if test "${ol_cv_db_db_42+set}" = set; then
38855   echo $ECHO_N "(cached) $ECHO_C" >&6
38856 else
38857
38858         ol_DB_LIB=-ldb-42
38859         ol_LIBS=$LIBS
38860         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38861
38862         cat >conftest.$ac_ext <<_ACEOF
38863 /* confdefs.h.  */
38864 _ACEOF
38865 cat confdefs.h >>conftest.$ac_ext
38866 cat >>conftest.$ac_ext <<_ACEOF
38867 /* end confdefs.h.  */
38868
38869 #ifdef HAVE_DB_185_H
38870 # include <db_185.h>
38871 #else
38872 # include <db.h>
38873 #endif
38874
38875 #ifndef DB_VERSION_MAJOR
38876 # define DB_VERSION_MAJOR 1
38877 #endif
38878
38879 #ifndef NULL
38880 #define NULL ((void*)0)
38881 #endif
38882
38883 int
38884 main ()
38885 {
38886
38887 #if DB_VERSION_MAJOR > 1
38888         {
38889                 char *version;
38890                 int major, minor, patch;
38891
38892                 version = db_version( &major, &minor, &patch );
38893
38894                 if( major != DB_VERSION_MAJOR ||
38895                         minor < DB_VERSION_MINOR )
38896                 {
38897                         printf("Berkeley DB version mismatch\n"
38898                                 "\theader: %s\n\tlibrary: %s\n",
38899                                 DB_VERSION_STRING, version);
38900                         return 1;
38901                 }
38902         }
38903 #endif
38904
38905 #if DB_VERSION_MAJOR > 2
38906         db_env_create( NULL, 0 );
38907 #elif DB_VERSION_MAJOR > 1
38908         db_appexit( NULL );
38909 #else
38910         (void) dbopen( NULL, 0, 0, 0, NULL);
38911 #endif
38912
38913   ;
38914   return 0;
38915 }
38916 _ACEOF
38917 rm -f conftest.$ac_objext conftest$ac_exeext
38918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38919   (eval $ac_link) 2>conftest.er1
38920   ac_status=$?
38921   grep -v '^ *+' conftest.er1 >conftest.err
38922   rm -f conftest.er1
38923   cat conftest.err >&5
38924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38925   (exit $ac_status); } &&
38926          { ac_try='test -z "$ac_c_werror_flag"
38927                          || test ! -s conftest.err'
38928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38929   (eval $ac_try) 2>&5
38930   ac_status=$?
38931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932   (exit $ac_status); }; } &&
38933          { ac_try='test -s conftest$ac_exeext'
38934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38935   (eval $ac_try) 2>&5
38936   ac_status=$?
38937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938   (exit $ac_status); }; }; then
38939   ol_cv_db_db_42=yes
38940 else
38941   echo "$as_me: failed program was:" >&5
38942 sed 's/^/| /' conftest.$ac_ext >&5
38943
38944 ol_cv_db_db_42=no
38945 fi
38946 rm -f conftest.err conftest.$ac_objext \
38947       conftest$ac_exeext conftest.$ac_ext
38948
38949         LIBS="$ol_LIBS"
38950
38951 fi
38952 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38953 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38954
38955         if test $ol_cv_db_db_42 = yes ; then
38956                 ol_cv_lib_db=-ldb-42
38957         fi
38958 fi
38959
38960 if test $ol_cv_lib_db = no ; then
38961         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38962 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38963 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38964   echo $ECHO_N "(cached) $ECHO_C" >&6
38965 else
38966
38967         ol_DB_LIB=-ldb-4.2
38968         ol_LIBS=$LIBS
38969         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38970
38971         cat >conftest.$ac_ext <<_ACEOF
38972 /* confdefs.h.  */
38973 _ACEOF
38974 cat confdefs.h >>conftest.$ac_ext
38975 cat >>conftest.$ac_ext <<_ACEOF
38976 /* end confdefs.h.  */
38977
38978 #ifdef HAVE_DB_185_H
38979 # include <db_185.h>
38980 #else
38981 # include <db.h>
38982 #endif
38983
38984 #ifndef DB_VERSION_MAJOR
38985 # define DB_VERSION_MAJOR 1
38986 #endif
38987
38988 #ifndef NULL
38989 #define NULL ((void*)0)
38990 #endif
38991
38992 int
38993 main ()
38994 {
38995
38996 #if DB_VERSION_MAJOR > 1
38997         {
38998                 char *version;
38999                 int major, minor, patch;
39000
39001                 version = db_version( &major, &minor, &patch );
39002
39003                 if( major != DB_VERSION_MAJOR ||
39004                         minor < DB_VERSION_MINOR )
39005                 {
39006                         printf("Berkeley DB version mismatch\n"
39007                                 "\theader: %s\n\tlibrary: %s\n",
39008                                 DB_VERSION_STRING, version);
39009                         return 1;
39010                 }
39011         }
39012 #endif
39013
39014 #if DB_VERSION_MAJOR > 2
39015         db_env_create( NULL, 0 );
39016 #elif DB_VERSION_MAJOR > 1
39017         db_appexit( NULL );
39018 #else
39019         (void) dbopen( NULL, 0, 0, 0, NULL);
39020 #endif
39021
39022   ;
39023   return 0;
39024 }
39025 _ACEOF
39026 rm -f conftest.$ac_objext conftest$ac_exeext
39027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39028   (eval $ac_link) 2>conftest.er1
39029   ac_status=$?
39030   grep -v '^ *+' conftest.er1 >conftest.err
39031   rm -f conftest.er1
39032   cat conftest.err >&5
39033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034   (exit $ac_status); } &&
39035          { ac_try='test -z "$ac_c_werror_flag"
39036                          || test ! -s conftest.err'
39037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39038   (eval $ac_try) 2>&5
39039   ac_status=$?
39040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39041   (exit $ac_status); }; } &&
39042          { ac_try='test -s conftest$ac_exeext'
39043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39044   (eval $ac_try) 2>&5
39045   ac_status=$?
39046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047   (exit $ac_status); }; }; then
39048   ol_cv_db_db_4_dot_2=yes
39049 else
39050   echo "$as_me: failed program was:" >&5
39051 sed 's/^/| /' conftest.$ac_ext >&5
39052
39053 ol_cv_db_db_4_dot_2=no
39054 fi
39055 rm -f conftest.err conftest.$ac_objext \
39056       conftest$ac_exeext conftest.$ac_ext
39057
39058         LIBS="$ol_LIBS"
39059
39060 fi
39061 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
39062 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
39063
39064         if test $ol_cv_db_db_4_dot_2 = yes ; then
39065                 ol_cv_lib_db=-ldb-4.2
39066         fi
39067 fi
39068
39069 if test $ol_cv_lib_db = no ; then
39070         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
39071 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
39072 if test "${ol_cv_db_db_4_2+set}" = set; then
39073   echo $ECHO_N "(cached) $ECHO_C" >&6
39074 else
39075
39076         ol_DB_LIB=-ldb-4-2
39077         ol_LIBS=$LIBS
39078         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39079
39080         cat >conftest.$ac_ext <<_ACEOF
39081 /* confdefs.h.  */
39082 _ACEOF
39083 cat confdefs.h >>conftest.$ac_ext
39084 cat >>conftest.$ac_ext <<_ACEOF
39085 /* end confdefs.h.  */
39086
39087 #ifdef HAVE_DB_185_H
39088 # include <db_185.h>
39089 #else
39090 # include <db.h>
39091 #endif
39092
39093 #ifndef DB_VERSION_MAJOR
39094 # define DB_VERSION_MAJOR 1
39095 #endif
39096
39097 #ifndef NULL
39098 #define NULL ((void*)0)
39099 #endif
39100
39101 int
39102 main ()
39103 {
39104
39105 #if DB_VERSION_MAJOR > 1
39106         {
39107                 char *version;
39108                 int major, minor, patch;
39109
39110                 version = db_version( &major, &minor, &patch );
39111
39112                 if( major != DB_VERSION_MAJOR ||
39113                         minor < DB_VERSION_MINOR )
39114                 {
39115                         printf("Berkeley DB version mismatch\n"
39116                                 "\theader: %s\n\tlibrary: %s\n",
39117                                 DB_VERSION_STRING, version);
39118                         return 1;
39119                 }
39120         }
39121 #endif
39122
39123 #if DB_VERSION_MAJOR > 2
39124         db_env_create( NULL, 0 );
39125 #elif DB_VERSION_MAJOR > 1
39126         db_appexit( NULL );
39127 #else
39128         (void) dbopen( NULL, 0, 0, 0, NULL);
39129 #endif
39130
39131   ;
39132   return 0;
39133 }
39134 _ACEOF
39135 rm -f conftest.$ac_objext conftest$ac_exeext
39136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39137   (eval $ac_link) 2>conftest.er1
39138   ac_status=$?
39139   grep -v '^ *+' conftest.er1 >conftest.err
39140   rm -f conftest.er1
39141   cat conftest.err >&5
39142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39143   (exit $ac_status); } &&
39144          { ac_try='test -z "$ac_c_werror_flag"
39145                          || test ! -s conftest.err'
39146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39147   (eval $ac_try) 2>&5
39148   ac_status=$?
39149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150   (exit $ac_status); }; } &&
39151          { ac_try='test -s conftest$ac_exeext'
39152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39153   (eval $ac_try) 2>&5
39154   ac_status=$?
39155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156   (exit $ac_status); }; }; then
39157   ol_cv_db_db_4_2=yes
39158 else
39159   echo "$as_me: failed program was:" >&5
39160 sed 's/^/| /' conftest.$ac_ext >&5
39161
39162 ol_cv_db_db_4_2=no
39163 fi
39164 rm -f conftest.err conftest.$ac_objext \
39165       conftest$ac_exeext conftest.$ac_ext
39166
39167         LIBS="$ol_LIBS"
39168
39169 fi
39170 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39171 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39172
39173         if test $ol_cv_db_db_4_2 = yes ; then
39174                 ol_cv_lib_db=-ldb-4-2
39175         fi
39176 fi
39177
39178 if test $ol_cv_lib_db = no ; then
39179         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39180 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39181 if test "${ol_cv_db_db_4+set}" = set; then
39182   echo $ECHO_N "(cached) $ECHO_C" >&6
39183 else
39184
39185         ol_DB_LIB=-ldb-4
39186         ol_LIBS=$LIBS
39187         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39188
39189         cat >conftest.$ac_ext <<_ACEOF
39190 /* confdefs.h.  */
39191 _ACEOF
39192 cat confdefs.h >>conftest.$ac_ext
39193 cat >>conftest.$ac_ext <<_ACEOF
39194 /* end confdefs.h.  */
39195
39196 #ifdef HAVE_DB_185_H
39197 # include <db_185.h>
39198 #else
39199 # include <db.h>
39200 #endif
39201
39202 #ifndef DB_VERSION_MAJOR
39203 # define DB_VERSION_MAJOR 1
39204 #endif
39205
39206 #ifndef NULL
39207 #define NULL ((void*)0)
39208 #endif
39209
39210 int
39211 main ()
39212 {
39213
39214 #if DB_VERSION_MAJOR > 1
39215         {
39216                 char *version;
39217                 int major, minor, patch;
39218
39219                 version = db_version( &major, &minor, &patch );
39220
39221                 if( major != DB_VERSION_MAJOR ||
39222                         minor < DB_VERSION_MINOR )
39223                 {
39224                         printf("Berkeley DB version mismatch\n"
39225                                 "\theader: %s\n\tlibrary: %s\n",
39226                                 DB_VERSION_STRING, version);
39227                         return 1;
39228                 }
39229         }
39230 #endif
39231
39232 #if DB_VERSION_MAJOR > 2
39233         db_env_create( NULL, 0 );
39234 #elif DB_VERSION_MAJOR > 1
39235         db_appexit( NULL );
39236 #else
39237         (void) dbopen( NULL, 0, 0, 0, NULL);
39238 #endif
39239
39240   ;
39241   return 0;
39242 }
39243 _ACEOF
39244 rm -f conftest.$ac_objext conftest$ac_exeext
39245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39246   (eval $ac_link) 2>conftest.er1
39247   ac_status=$?
39248   grep -v '^ *+' conftest.er1 >conftest.err
39249   rm -f conftest.er1
39250   cat conftest.err >&5
39251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39252   (exit $ac_status); } &&
39253          { ac_try='test -z "$ac_c_werror_flag"
39254                          || test ! -s conftest.err'
39255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39256   (eval $ac_try) 2>&5
39257   ac_status=$?
39258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39259   (exit $ac_status); }; } &&
39260          { ac_try='test -s conftest$ac_exeext'
39261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39262   (eval $ac_try) 2>&5
39263   ac_status=$?
39264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265   (exit $ac_status); }; }; then
39266   ol_cv_db_db_4=yes
39267 else
39268   echo "$as_me: failed program was:" >&5
39269 sed 's/^/| /' conftest.$ac_ext >&5
39270
39271 ol_cv_db_db_4=no
39272 fi
39273 rm -f conftest.err conftest.$ac_objext \
39274       conftest$ac_exeext conftest.$ac_ext
39275
39276         LIBS="$ol_LIBS"
39277
39278 fi
39279 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39280 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39281
39282         if test $ol_cv_db_db_4 = yes ; then
39283                 ol_cv_lib_db=-ldb-4
39284         fi
39285 fi
39286
39287 if test $ol_cv_lib_db = no ; then
39288         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39289 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39290 if test "${ol_cv_db_db4+set}" = set; then
39291   echo $ECHO_N "(cached) $ECHO_C" >&6
39292 else
39293
39294         ol_DB_LIB=-ldb4
39295         ol_LIBS=$LIBS
39296         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39297
39298         cat >conftest.$ac_ext <<_ACEOF
39299 /* confdefs.h.  */
39300 _ACEOF
39301 cat confdefs.h >>conftest.$ac_ext
39302 cat >>conftest.$ac_ext <<_ACEOF
39303 /* end confdefs.h.  */
39304
39305 #ifdef HAVE_DB_185_H
39306 # include <db_185.h>
39307 #else
39308 # include <db.h>
39309 #endif
39310
39311 #ifndef DB_VERSION_MAJOR
39312 # define DB_VERSION_MAJOR 1
39313 #endif
39314
39315 #ifndef NULL
39316 #define NULL ((void*)0)
39317 #endif
39318
39319 int
39320 main ()
39321 {
39322
39323 #if DB_VERSION_MAJOR > 1
39324         {
39325                 char *version;
39326                 int major, minor, patch;
39327
39328                 version = db_version( &major, &minor, &patch );
39329
39330                 if( major != DB_VERSION_MAJOR ||
39331                         minor < DB_VERSION_MINOR )
39332                 {
39333                         printf("Berkeley DB version mismatch\n"
39334                                 "\theader: %s\n\tlibrary: %s\n",
39335                                 DB_VERSION_STRING, version);
39336                         return 1;
39337                 }
39338         }
39339 #endif
39340
39341 #if DB_VERSION_MAJOR > 2
39342         db_env_create( NULL, 0 );
39343 #elif DB_VERSION_MAJOR > 1
39344         db_appexit( NULL );
39345 #else
39346         (void) dbopen( NULL, 0, 0, 0, NULL);
39347 #endif
39348
39349   ;
39350   return 0;
39351 }
39352 _ACEOF
39353 rm -f conftest.$ac_objext conftest$ac_exeext
39354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39355   (eval $ac_link) 2>conftest.er1
39356   ac_status=$?
39357   grep -v '^ *+' conftest.er1 >conftest.err
39358   rm -f conftest.er1
39359   cat conftest.err >&5
39360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39361   (exit $ac_status); } &&
39362          { ac_try='test -z "$ac_c_werror_flag"
39363                          || test ! -s conftest.err'
39364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39365   (eval $ac_try) 2>&5
39366   ac_status=$?
39367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39368   (exit $ac_status); }; } &&
39369          { ac_try='test -s conftest$ac_exeext'
39370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39371   (eval $ac_try) 2>&5
39372   ac_status=$?
39373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39374   (exit $ac_status); }; }; then
39375   ol_cv_db_db4=yes
39376 else
39377   echo "$as_me: failed program was:" >&5
39378 sed 's/^/| /' conftest.$ac_ext >&5
39379
39380 ol_cv_db_db4=no
39381 fi
39382 rm -f conftest.err conftest.$ac_objext \
39383       conftest$ac_exeext conftest.$ac_ext
39384
39385         LIBS="$ol_LIBS"
39386
39387 fi
39388 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39389 echo "${ECHO_T}$ol_cv_db_db4" >&6
39390
39391         if test $ol_cv_db_db4 = yes ; then
39392                 ol_cv_lib_db=-ldb4
39393         fi
39394 fi
39395
39396 if test $ol_cv_lib_db = no ; then
39397         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39398 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39399 if test "${ol_cv_db_db+set}" = set; then
39400   echo $ECHO_N "(cached) $ECHO_C" >&6
39401 else
39402
39403         ol_DB_LIB=-ldb
39404         ol_LIBS=$LIBS
39405         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39406
39407         cat >conftest.$ac_ext <<_ACEOF
39408 /* confdefs.h.  */
39409 _ACEOF
39410 cat confdefs.h >>conftest.$ac_ext
39411 cat >>conftest.$ac_ext <<_ACEOF
39412 /* end confdefs.h.  */
39413
39414 #ifdef HAVE_DB_185_H
39415 # include <db_185.h>
39416 #else
39417 # include <db.h>
39418 #endif
39419
39420 #ifndef DB_VERSION_MAJOR
39421 # define DB_VERSION_MAJOR 1
39422 #endif
39423
39424 #ifndef NULL
39425 #define NULL ((void*)0)
39426 #endif
39427
39428 int
39429 main ()
39430 {
39431
39432 #if DB_VERSION_MAJOR > 1
39433         {
39434                 char *version;
39435                 int major, minor, patch;
39436
39437                 version = db_version( &major, &minor, &patch );
39438
39439                 if( major != DB_VERSION_MAJOR ||
39440                         minor < DB_VERSION_MINOR )
39441                 {
39442                         printf("Berkeley DB version mismatch\n"
39443                                 "\theader: %s\n\tlibrary: %s\n",
39444                                 DB_VERSION_STRING, version);
39445                         return 1;
39446                 }
39447         }
39448 #endif
39449
39450 #if DB_VERSION_MAJOR > 2
39451         db_env_create( NULL, 0 );
39452 #elif DB_VERSION_MAJOR > 1
39453         db_appexit( NULL );
39454 #else
39455         (void) dbopen( NULL, 0, 0, 0, NULL);
39456 #endif
39457
39458   ;
39459   return 0;
39460 }
39461 _ACEOF
39462 rm -f conftest.$ac_objext conftest$ac_exeext
39463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39464   (eval $ac_link) 2>conftest.er1
39465   ac_status=$?
39466   grep -v '^ *+' conftest.er1 >conftest.err
39467   rm -f conftest.er1
39468   cat conftest.err >&5
39469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470   (exit $ac_status); } &&
39471          { ac_try='test -z "$ac_c_werror_flag"
39472                          || test ! -s conftest.err'
39473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474   (eval $ac_try) 2>&5
39475   ac_status=$?
39476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477   (exit $ac_status); }; } &&
39478          { ac_try='test -s conftest$ac_exeext'
39479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39480   (eval $ac_try) 2>&5
39481   ac_status=$?
39482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483   (exit $ac_status); }; }; then
39484   ol_cv_db_db=yes
39485 else
39486   echo "$as_me: failed program was:" >&5
39487 sed 's/^/| /' conftest.$ac_ext >&5
39488
39489 ol_cv_db_db=no
39490 fi
39491 rm -f conftest.err conftest.$ac_objext \
39492       conftest$ac_exeext conftest.$ac_ext
39493
39494         LIBS="$ol_LIBS"
39495
39496 fi
39497 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39498 echo "${ECHO_T}$ol_cv_db_db" >&6
39499
39500         if test $ol_cv_db_db = yes ; then
39501                 ol_cv_lib_db=-ldb
39502         fi
39503 fi
39504
39505 if test $ol_cv_lib_db = no ; then
39506         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39507 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39508 if test "${ol_cv_db_db41+set}" = set; then
39509   echo $ECHO_N "(cached) $ECHO_C" >&6
39510 else
39511
39512         ol_DB_LIB=-ldb41
39513         ol_LIBS=$LIBS
39514         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39515
39516         cat >conftest.$ac_ext <<_ACEOF
39517 /* confdefs.h.  */
39518 _ACEOF
39519 cat confdefs.h >>conftest.$ac_ext
39520 cat >>conftest.$ac_ext <<_ACEOF
39521 /* end confdefs.h.  */
39522
39523 #ifdef HAVE_DB_185_H
39524 # include <db_185.h>
39525 #else
39526 # include <db.h>
39527 #endif
39528
39529 #ifndef DB_VERSION_MAJOR
39530 # define DB_VERSION_MAJOR 1
39531 #endif
39532
39533 #ifndef NULL
39534 #define NULL ((void*)0)
39535 #endif
39536
39537 int
39538 main ()
39539 {
39540
39541 #if DB_VERSION_MAJOR > 1
39542         {
39543                 char *version;
39544                 int major, minor, patch;
39545
39546                 version = db_version( &major, &minor, &patch );
39547
39548                 if( major != DB_VERSION_MAJOR ||
39549                         minor < DB_VERSION_MINOR )
39550                 {
39551                         printf("Berkeley DB version mismatch\n"
39552                                 "\theader: %s\n\tlibrary: %s\n",
39553                                 DB_VERSION_STRING, version);
39554                         return 1;
39555                 }
39556         }
39557 #endif
39558
39559 #if DB_VERSION_MAJOR > 2
39560         db_env_create( NULL, 0 );
39561 #elif DB_VERSION_MAJOR > 1
39562         db_appexit( NULL );
39563 #else
39564         (void) dbopen( NULL, 0, 0, 0, NULL);
39565 #endif
39566
39567   ;
39568   return 0;
39569 }
39570 _ACEOF
39571 rm -f conftest.$ac_objext conftest$ac_exeext
39572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39573   (eval $ac_link) 2>conftest.er1
39574   ac_status=$?
39575   grep -v '^ *+' conftest.er1 >conftest.err
39576   rm -f conftest.er1
39577   cat conftest.err >&5
39578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39579   (exit $ac_status); } &&
39580          { ac_try='test -z "$ac_c_werror_flag"
39581                          || test ! -s conftest.err'
39582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39583   (eval $ac_try) 2>&5
39584   ac_status=$?
39585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586   (exit $ac_status); }; } &&
39587          { ac_try='test -s conftest$ac_exeext'
39588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39589   (eval $ac_try) 2>&5
39590   ac_status=$?
39591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592   (exit $ac_status); }; }; then
39593   ol_cv_db_db41=yes
39594 else
39595   echo "$as_me: failed program was:" >&5
39596 sed 's/^/| /' conftest.$ac_ext >&5
39597
39598 ol_cv_db_db41=no
39599 fi
39600 rm -f conftest.err conftest.$ac_objext \
39601       conftest$ac_exeext conftest.$ac_ext
39602
39603         LIBS="$ol_LIBS"
39604
39605 fi
39606 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39607 echo "${ECHO_T}$ol_cv_db_db41" >&6
39608
39609         if test $ol_cv_db_db41 = yes ; then
39610                 ol_cv_lib_db=-ldb41
39611         fi
39612 fi
39613
39614 if test $ol_cv_lib_db = no ; then
39615         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39616 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39617 if test "${ol_cv_db_db_41+set}" = set; then
39618   echo $ECHO_N "(cached) $ECHO_C" >&6
39619 else
39620
39621         ol_DB_LIB=-ldb-41
39622         ol_LIBS=$LIBS
39623         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39624
39625         cat >conftest.$ac_ext <<_ACEOF
39626 /* confdefs.h.  */
39627 _ACEOF
39628 cat confdefs.h >>conftest.$ac_ext
39629 cat >>conftest.$ac_ext <<_ACEOF
39630 /* end confdefs.h.  */
39631
39632 #ifdef HAVE_DB_185_H
39633 # include <db_185.h>
39634 #else
39635 # include <db.h>
39636 #endif
39637
39638 #ifndef DB_VERSION_MAJOR
39639 # define DB_VERSION_MAJOR 1
39640 #endif
39641
39642 #ifndef NULL
39643 #define NULL ((void*)0)
39644 #endif
39645
39646 int
39647 main ()
39648 {
39649
39650 #if DB_VERSION_MAJOR > 1
39651         {
39652                 char *version;
39653                 int major, minor, patch;
39654
39655                 version = db_version( &major, &minor, &patch );
39656
39657                 if( major != DB_VERSION_MAJOR ||
39658                         minor < DB_VERSION_MINOR )
39659                 {
39660                         printf("Berkeley DB version mismatch\n"
39661                                 "\theader: %s\n\tlibrary: %s\n",
39662                                 DB_VERSION_STRING, version);
39663                         return 1;
39664                 }
39665         }
39666 #endif
39667
39668 #if DB_VERSION_MAJOR > 2
39669         db_env_create( NULL, 0 );
39670 #elif DB_VERSION_MAJOR > 1
39671         db_appexit( NULL );
39672 #else
39673         (void) dbopen( NULL, 0, 0, 0, NULL);
39674 #endif
39675
39676   ;
39677   return 0;
39678 }
39679 _ACEOF
39680 rm -f conftest.$ac_objext conftest$ac_exeext
39681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39682   (eval $ac_link) 2>conftest.er1
39683   ac_status=$?
39684   grep -v '^ *+' conftest.er1 >conftest.err
39685   rm -f conftest.er1
39686   cat conftest.err >&5
39687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39688   (exit $ac_status); } &&
39689          { ac_try='test -z "$ac_c_werror_flag"
39690                          || test ! -s conftest.err'
39691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39692   (eval $ac_try) 2>&5
39693   ac_status=$?
39694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695   (exit $ac_status); }; } &&
39696          { ac_try='test -s conftest$ac_exeext'
39697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39698   (eval $ac_try) 2>&5
39699   ac_status=$?
39700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701   (exit $ac_status); }; }; then
39702   ol_cv_db_db_41=yes
39703 else
39704   echo "$as_me: failed program was:" >&5
39705 sed 's/^/| /' conftest.$ac_ext >&5
39706
39707 ol_cv_db_db_41=no
39708 fi
39709 rm -f conftest.err conftest.$ac_objext \
39710       conftest$ac_exeext conftest.$ac_ext
39711
39712         LIBS="$ol_LIBS"
39713
39714 fi
39715 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39716 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39717
39718         if test $ol_cv_db_db_41 = yes ; then
39719                 ol_cv_lib_db=-ldb-41
39720         fi
39721 fi
39722
39723 if test $ol_cv_lib_db = no ; then
39724         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39725 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39726 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39727   echo $ECHO_N "(cached) $ECHO_C" >&6
39728 else
39729
39730         ol_DB_LIB=-ldb-4.1
39731         ol_LIBS=$LIBS
39732         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39733
39734         cat >conftest.$ac_ext <<_ACEOF
39735 /* confdefs.h.  */
39736 _ACEOF
39737 cat confdefs.h >>conftest.$ac_ext
39738 cat >>conftest.$ac_ext <<_ACEOF
39739 /* end confdefs.h.  */
39740
39741 #ifdef HAVE_DB_185_H
39742 # include <db_185.h>
39743 #else
39744 # include <db.h>
39745 #endif
39746
39747 #ifndef DB_VERSION_MAJOR
39748 # define DB_VERSION_MAJOR 1
39749 #endif
39750
39751 #ifndef NULL
39752 #define NULL ((void*)0)
39753 #endif
39754
39755 int
39756 main ()
39757 {
39758
39759 #if DB_VERSION_MAJOR > 1
39760         {
39761                 char *version;
39762                 int major, minor, patch;
39763
39764                 version = db_version( &major, &minor, &patch );
39765
39766                 if( major != DB_VERSION_MAJOR ||
39767                         minor < DB_VERSION_MINOR )
39768                 {
39769                         printf("Berkeley DB version mismatch\n"
39770                                 "\theader: %s\n\tlibrary: %s\n",
39771                                 DB_VERSION_STRING, version);
39772                         return 1;
39773                 }
39774         }
39775 #endif
39776
39777 #if DB_VERSION_MAJOR > 2
39778         db_env_create( NULL, 0 );
39779 #elif DB_VERSION_MAJOR > 1
39780         db_appexit( NULL );
39781 #else
39782         (void) dbopen( NULL, 0, 0, 0, NULL);
39783 #endif
39784
39785   ;
39786   return 0;
39787 }
39788 _ACEOF
39789 rm -f conftest.$ac_objext conftest$ac_exeext
39790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39791   (eval $ac_link) 2>conftest.er1
39792   ac_status=$?
39793   grep -v '^ *+' conftest.er1 >conftest.err
39794   rm -f conftest.er1
39795   cat conftest.err >&5
39796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797   (exit $ac_status); } &&
39798          { ac_try='test -z "$ac_c_werror_flag"
39799                          || test ! -s conftest.err'
39800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801   (eval $ac_try) 2>&5
39802   ac_status=$?
39803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804   (exit $ac_status); }; } &&
39805          { ac_try='test -s conftest$ac_exeext'
39806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39807   (eval $ac_try) 2>&5
39808   ac_status=$?
39809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810   (exit $ac_status); }; }; then
39811   ol_cv_db_db_4_dot_1=yes
39812 else
39813   echo "$as_me: failed program was:" >&5
39814 sed 's/^/| /' conftest.$ac_ext >&5
39815
39816 ol_cv_db_db_4_dot_1=no
39817 fi
39818 rm -f conftest.err conftest.$ac_objext \
39819       conftest$ac_exeext conftest.$ac_ext
39820
39821         LIBS="$ol_LIBS"
39822
39823 fi
39824 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39825 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39826
39827         if test $ol_cv_db_db_4_dot_1 = yes ; then
39828                 ol_cv_lib_db=-ldb-4.1
39829         fi
39830 fi
39831
39832 if test $ol_cv_lib_db = no ; then
39833         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39834 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39835 if test "${ol_cv_db_db_4_1+set}" = set; then
39836   echo $ECHO_N "(cached) $ECHO_C" >&6
39837 else
39838
39839         ol_DB_LIB=-ldb-4-1
39840         ol_LIBS=$LIBS
39841         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39842
39843         cat >conftest.$ac_ext <<_ACEOF
39844 /* confdefs.h.  */
39845 _ACEOF
39846 cat confdefs.h >>conftest.$ac_ext
39847 cat >>conftest.$ac_ext <<_ACEOF
39848 /* end confdefs.h.  */
39849
39850 #ifdef HAVE_DB_185_H
39851 # include <db_185.h>
39852 #else
39853 # include <db.h>
39854 #endif
39855
39856 #ifndef DB_VERSION_MAJOR
39857 # define DB_VERSION_MAJOR 1
39858 #endif
39859
39860 #ifndef NULL
39861 #define NULL ((void*)0)
39862 #endif
39863
39864 int
39865 main ()
39866 {
39867
39868 #if DB_VERSION_MAJOR > 1
39869         {
39870                 char *version;
39871                 int major, minor, patch;
39872
39873                 version = db_version( &major, &minor, &patch );
39874
39875                 if( major != DB_VERSION_MAJOR ||
39876                         minor < DB_VERSION_MINOR )
39877                 {
39878                         printf("Berkeley DB version mismatch\n"
39879                                 "\theader: %s\n\tlibrary: %s\n",
39880                                 DB_VERSION_STRING, version);
39881                         return 1;
39882                 }
39883         }
39884 #endif
39885
39886 #if DB_VERSION_MAJOR > 2
39887         db_env_create( NULL, 0 );
39888 #elif DB_VERSION_MAJOR > 1
39889         db_appexit( NULL );
39890 #else
39891         (void) dbopen( NULL, 0, 0, 0, NULL);
39892 #endif
39893
39894   ;
39895   return 0;
39896 }
39897 _ACEOF
39898 rm -f conftest.$ac_objext conftest$ac_exeext
39899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39900   (eval $ac_link) 2>conftest.er1
39901   ac_status=$?
39902   grep -v '^ *+' conftest.er1 >conftest.err
39903   rm -f conftest.er1
39904   cat conftest.err >&5
39905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906   (exit $ac_status); } &&
39907          { ac_try='test -z "$ac_c_werror_flag"
39908                          || test ! -s conftest.err'
39909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910   (eval $ac_try) 2>&5
39911   ac_status=$?
39912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913   (exit $ac_status); }; } &&
39914          { ac_try='test -s conftest$ac_exeext'
39915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39916   (eval $ac_try) 2>&5
39917   ac_status=$?
39918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919   (exit $ac_status); }; }; then
39920   ol_cv_db_db_4_1=yes
39921 else
39922   echo "$as_me: failed program was:" >&5
39923 sed 's/^/| /' conftest.$ac_ext >&5
39924
39925 ol_cv_db_db_4_1=no
39926 fi
39927 rm -f conftest.err conftest.$ac_objext \
39928       conftest$ac_exeext conftest.$ac_ext
39929
39930         LIBS="$ol_LIBS"
39931
39932 fi
39933 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39934 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39935
39936         if test $ol_cv_db_db_4_1 = yes ; then
39937                 ol_cv_lib_db=-ldb-4-1
39938         fi
39939 fi
39940
39941 if test $ol_cv_lib_db = no ; then
39942         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39943 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39944 if test "${ol_cv_db_db3+set}" = set; then
39945   echo $ECHO_N "(cached) $ECHO_C" >&6
39946 else
39947
39948         ol_DB_LIB=-ldb3
39949         ol_LIBS=$LIBS
39950         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39951
39952         cat >conftest.$ac_ext <<_ACEOF
39953 /* confdefs.h.  */
39954 _ACEOF
39955 cat confdefs.h >>conftest.$ac_ext
39956 cat >>conftest.$ac_ext <<_ACEOF
39957 /* end confdefs.h.  */
39958
39959 #ifdef HAVE_DB_185_H
39960 # include <db_185.h>
39961 #else
39962 # include <db.h>
39963 #endif
39964
39965 #ifndef DB_VERSION_MAJOR
39966 # define DB_VERSION_MAJOR 1
39967 #endif
39968
39969 #ifndef NULL
39970 #define NULL ((void*)0)
39971 #endif
39972
39973 int
39974 main ()
39975 {
39976
39977 #if DB_VERSION_MAJOR > 1
39978         {
39979                 char *version;
39980                 int major, minor, patch;
39981
39982                 version = db_version( &major, &minor, &patch );
39983
39984                 if( major != DB_VERSION_MAJOR ||
39985                         minor < DB_VERSION_MINOR )
39986                 {
39987                         printf("Berkeley DB version mismatch\n"
39988                                 "\theader: %s\n\tlibrary: %s\n",
39989                                 DB_VERSION_STRING, version);
39990                         return 1;
39991                 }
39992         }
39993 #endif
39994
39995 #if DB_VERSION_MAJOR > 2
39996         db_env_create( NULL, 0 );
39997 #elif DB_VERSION_MAJOR > 1
39998         db_appexit( NULL );
39999 #else
40000         (void) dbopen( NULL, 0, 0, 0, NULL);
40001 #endif
40002
40003   ;
40004   return 0;
40005 }
40006 _ACEOF
40007 rm -f conftest.$ac_objext conftest$ac_exeext
40008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40009   (eval $ac_link) 2>conftest.er1
40010   ac_status=$?
40011   grep -v '^ *+' conftest.er1 >conftest.err
40012   rm -f conftest.er1
40013   cat conftest.err >&5
40014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015   (exit $ac_status); } &&
40016          { ac_try='test -z "$ac_c_werror_flag"
40017                          || test ! -s conftest.err'
40018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40019   (eval $ac_try) 2>&5
40020   ac_status=$?
40021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022   (exit $ac_status); }; } &&
40023          { ac_try='test -s conftest$ac_exeext'
40024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40025   (eval $ac_try) 2>&5
40026   ac_status=$?
40027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40028   (exit $ac_status); }; }; then
40029   ol_cv_db_db3=yes
40030 else
40031   echo "$as_me: failed program was:" >&5
40032 sed 's/^/| /' conftest.$ac_ext >&5
40033
40034 ol_cv_db_db3=no
40035 fi
40036 rm -f conftest.err conftest.$ac_objext \
40037       conftest$ac_exeext conftest.$ac_ext
40038
40039         LIBS="$ol_LIBS"
40040
40041 fi
40042 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
40043 echo "${ECHO_T}$ol_cv_db_db3" >&6
40044
40045         if test $ol_cv_db_db3 = yes ; then
40046                 ol_cv_lib_db=-ldb3
40047         fi
40048 fi
40049
40050 if test $ol_cv_lib_db = no ; then
40051         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
40052 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
40053 if test "${ol_cv_db_db_3+set}" = set; then
40054   echo $ECHO_N "(cached) $ECHO_C" >&6
40055 else
40056
40057         ol_DB_LIB=-ldb-3
40058         ol_LIBS=$LIBS
40059         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40060
40061         cat >conftest.$ac_ext <<_ACEOF
40062 /* confdefs.h.  */
40063 _ACEOF
40064 cat confdefs.h >>conftest.$ac_ext
40065 cat >>conftest.$ac_ext <<_ACEOF
40066 /* end confdefs.h.  */
40067
40068 #ifdef HAVE_DB_185_H
40069 # include <db_185.h>
40070 #else
40071 # include <db.h>
40072 #endif
40073
40074 #ifndef DB_VERSION_MAJOR
40075 # define DB_VERSION_MAJOR 1
40076 #endif
40077
40078 #ifndef NULL
40079 #define NULL ((void*)0)
40080 #endif
40081
40082 int
40083 main ()
40084 {
40085
40086 #if DB_VERSION_MAJOR > 1
40087         {
40088                 char *version;
40089                 int major, minor, patch;
40090
40091                 version = db_version( &major, &minor, &patch );
40092
40093                 if( major != DB_VERSION_MAJOR ||
40094                         minor < DB_VERSION_MINOR )
40095                 {
40096                         printf("Berkeley DB version mismatch\n"
40097                                 "\theader: %s\n\tlibrary: %s\n",
40098                                 DB_VERSION_STRING, version);
40099                         return 1;
40100                 }
40101         }
40102 #endif
40103
40104 #if DB_VERSION_MAJOR > 2
40105         db_env_create( NULL, 0 );
40106 #elif DB_VERSION_MAJOR > 1
40107         db_appexit( NULL );
40108 #else
40109         (void) dbopen( NULL, 0, 0, 0, NULL);
40110 #endif
40111
40112   ;
40113   return 0;
40114 }
40115 _ACEOF
40116 rm -f conftest.$ac_objext conftest$ac_exeext
40117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40118   (eval $ac_link) 2>conftest.er1
40119   ac_status=$?
40120   grep -v '^ *+' conftest.er1 >conftest.err
40121   rm -f conftest.er1
40122   cat conftest.err >&5
40123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40124   (exit $ac_status); } &&
40125          { ac_try='test -z "$ac_c_werror_flag"
40126                          || test ! -s conftest.err'
40127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40128   (eval $ac_try) 2>&5
40129   ac_status=$?
40130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40131   (exit $ac_status); }; } &&
40132          { ac_try='test -s conftest$ac_exeext'
40133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40134   (eval $ac_try) 2>&5
40135   ac_status=$?
40136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137   (exit $ac_status); }; }; then
40138   ol_cv_db_db_3=yes
40139 else
40140   echo "$as_me: failed program was:" >&5
40141 sed 's/^/| /' conftest.$ac_ext >&5
40142
40143 ol_cv_db_db_3=no
40144 fi
40145 rm -f conftest.err conftest.$ac_objext \
40146       conftest$ac_exeext conftest.$ac_ext
40147
40148         LIBS="$ol_LIBS"
40149
40150 fi
40151 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40152 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40153
40154         if test $ol_cv_db_db_3 = yes ; then
40155                 ol_cv_lib_db=-ldb-3
40156         fi
40157 fi
40158
40159 if test $ol_cv_lib_db = no ; then
40160         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40161 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40162 if test "${ol_cv_db_db2+set}" = set; then
40163   echo $ECHO_N "(cached) $ECHO_C" >&6
40164 else
40165
40166         ol_DB_LIB=-ldb2
40167         ol_LIBS=$LIBS
40168         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40169
40170         cat >conftest.$ac_ext <<_ACEOF
40171 /* confdefs.h.  */
40172 _ACEOF
40173 cat confdefs.h >>conftest.$ac_ext
40174 cat >>conftest.$ac_ext <<_ACEOF
40175 /* end confdefs.h.  */
40176
40177 #ifdef HAVE_DB_185_H
40178 # include <db_185.h>
40179 #else
40180 # include <db.h>
40181 #endif
40182
40183 #ifndef DB_VERSION_MAJOR
40184 # define DB_VERSION_MAJOR 1
40185 #endif
40186
40187 #ifndef NULL
40188 #define NULL ((void*)0)
40189 #endif
40190
40191 int
40192 main ()
40193 {
40194
40195 #if DB_VERSION_MAJOR > 1
40196         {
40197                 char *version;
40198                 int major, minor, patch;
40199
40200                 version = db_version( &major, &minor, &patch );
40201
40202                 if( major != DB_VERSION_MAJOR ||
40203                         minor < DB_VERSION_MINOR )
40204                 {
40205                         printf("Berkeley DB version mismatch\n"
40206                                 "\theader: %s\n\tlibrary: %s\n",
40207                                 DB_VERSION_STRING, version);
40208                         return 1;
40209                 }
40210         }
40211 #endif
40212
40213 #if DB_VERSION_MAJOR > 2
40214         db_env_create( NULL, 0 );
40215 #elif DB_VERSION_MAJOR > 1
40216         db_appexit( NULL );
40217 #else
40218         (void) dbopen( NULL, 0, 0, 0, NULL);
40219 #endif
40220
40221   ;
40222   return 0;
40223 }
40224 _ACEOF
40225 rm -f conftest.$ac_objext conftest$ac_exeext
40226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40227   (eval $ac_link) 2>conftest.er1
40228   ac_status=$?
40229   grep -v '^ *+' conftest.er1 >conftest.err
40230   rm -f conftest.er1
40231   cat conftest.err >&5
40232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233   (exit $ac_status); } &&
40234          { ac_try='test -z "$ac_c_werror_flag"
40235                          || test ! -s conftest.err'
40236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40237   (eval $ac_try) 2>&5
40238   ac_status=$?
40239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40240   (exit $ac_status); }; } &&
40241          { ac_try='test -s conftest$ac_exeext'
40242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40243   (eval $ac_try) 2>&5
40244   ac_status=$?
40245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40246   (exit $ac_status); }; }; then
40247   ol_cv_db_db2=yes
40248 else
40249   echo "$as_me: failed program was:" >&5
40250 sed 's/^/| /' conftest.$ac_ext >&5
40251
40252 ol_cv_db_db2=no
40253 fi
40254 rm -f conftest.err conftest.$ac_objext \
40255       conftest$ac_exeext conftest.$ac_ext
40256
40257         LIBS="$ol_LIBS"
40258
40259 fi
40260 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40261 echo "${ECHO_T}$ol_cv_db_db2" >&6
40262
40263         if test $ol_cv_db_db2 = yes ; then
40264                 ol_cv_lib_db=-ldb2
40265         fi
40266 fi
40267
40268 if test $ol_cv_lib_db = no ; then
40269         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40270 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40271 if test "${ol_cv_db_db_2+set}" = set; then
40272   echo $ECHO_N "(cached) $ECHO_C" >&6
40273 else
40274
40275         ol_DB_LIB=-ldb-2
40276         ol_LIBS=$LIBS
40277         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40278
40279         cat >conftest.$ac_ext <<_ACEOF
40280 /* confdefs.h.  */
40281 _ACEOF
40282 cat confdefs.h >>conftest.$ac_ext
40283 cat >>conftest.$ac_ext <<_ACEOF
40284 /* end confdefs.h.  */
40285
40286 #ifdef HAVE_DB_185_H
40287 # include <db_185.h>
40288 #else
40289 # include <db.h>
40290 #endif
40291
40292 #ifndef DB_VERSION_MAJOR
40293 # define DB_VERSION_MAJOR 1
40294 #endif
40295
40296 #ifndef NULL
40297 #define NULL ((void*)0)
40298 #endif
40299
40300 int
40301 main ()
40302 {
40303
40304 #if DB_VERSION_MAJOR > 1
40305         {
40306                 char *version;
40307                 int major, minor, patch;
40308
40309                 version = db_version( &major, &minor, &patch );
40310
40311                 if( major != DB_VERSION_MAJOR ||
40312                         minor < DB_VERSION_MINOR )
40313                 {
40314                         printf("Berkeley DB version mismatch\n"
40315                                 "\theader: %s\n\tlibrary: %s\n",
40316                                 DB_VERSION_STRING, version);
40317                         return 1;
40318                 }
40319         }
40320 #endif
40321
40322 #if DB_VERSION_MAJOR > 2
40323         db_env_create( NULL, 0 );
40324 #elif DB_VERSION_MAJOR > 1
40325         db_appexit( NULL );
40326 #else
40327         (void) dbopen( NULL, 0, 0, 0, NULL);
40328 #endif
40329
40330   ;
40331   return 0;
40332 }
40333 _ACEOF
40334 rm -f conftest.$ac_objext conftest$ac_exeext
40335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40336   (eval $ac_link) 2>conftest.er1
40337   ac_status=$?
40338   grep -v '^ *+' conftest.er1 >conftest.err
40339   rm -f conftest.er1
40340   cat conftest.err >&5
40341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342   (exit $ac_status); } &&
40343          { ac_try='test -z "$ac_c_werror_flag"
40344                          || test ! -s conftest.err'
40345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40346   (eval $ac_try) 2>&5
40347   ac_status=$?
40348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40349   (exit $ac_status); }; } &&
40350          { ac_try='test -s conftest$ac_exeext'
40351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40352   (eval $ac_try) 2>&5
40353   ac_status=$?
40354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40355   (exit $ac_status); }; }; then
40356   ol_cv_db_db_2=yes
40357 else
40358   echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40360
40361 ol_cv_db_db_2=no
40362 fi
40363 rm -f conftest.err conftest.$ac_objext \
40364       conftest$ac_exeext conftest.$ac_ext
40365
40366         LIBS="$ol_LIBS"
40367
40368 fi
40369 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40370 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40371
40372         if test $ol_cv_db_db_2 = yes ; then
40373                 ol_cv_lib_db=-ldb-2
40374         fi
40375 fi
40376
40377 if test $ol_cv_lib_db = no ; then
40378         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40379 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40380 if test "${ol_cv_db_db1+set}" = set; then
40381   echo $ECHO_N "(cached) $ECHO_C" >&6
40382 else
40383
40384         ol_DB_LIB=-ldb1
40385         ol_LIBS=$LIBS
40386         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40387
40388         cat >conftest.$ac_ext <<_ACEOF
40389 /* confdefs.h.  */
40390 _ACEOF
40391 cat confdefs.h >>conftest.$ac_ext
40392 cat >>conftest.$ac_ext <<_ACEOF
40393 /* end confdefs.h.  */
40394
40395 #ifdef HAVE_DB_185_H
40396 # include <db_185.h>
40397 #else
40398 # include <db.h>
40399 #endif
40400
40401 #ifndef DB_VERSION_MAJOR
40402 # define DB_VERSION_MAJOR 1
40403 #endif
40404
40405 #ifndef NULL
40406 #define NULL ((void*)0)
40407 #endif
40408
40409 int
40410 main ()
40411 {
40412
40413 #if DB_VERSION_MAJOR > 1
40414         {
40415                 char *version;
40416                 int major, minor, patch;
40417
40418                 version = db_version( &major, &minor, &patch );
40419
40420                 if( major != DB_VERSION_MAJOR ||
40421                         minor < DB_VERSION_MINOR )
40422                 {
40423                         printf("Berkeley DB version mismatch\n"
40424                                 "\theader: %s\n\tlibrary: %s\n",
40425                                 DB_VERSION_STRING, version);
40426                         return 1;
40427                 }
40428         }
40429 #endif
40430
40431 #if DB_VERSION_MAJOR > 2
40432         db_env_create( NULL, 0 );
40433 #elif DB_VERSION_MAJOR > 1
40434         db_appexit( NULL );
40435 #else
40436         (void) dbopen( NULL, 0, 0, 0, NULL);
40437 #endif
40438
40439   ;
40440   return 0;
40441 }
40442 _ACEOF
40443 rm -f conftest.$ac_objext conftest$ac_exeext
40444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40445   (eval $ac_link) 2>conftest.er1
40446   ac_status=$?
40447   grep -v '^ *+' conftest.er1 >conftest.err
40448   rm -f conftest.er1
40449   cat conftest.err >&5
40450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451   (exit $ac_status); } &&
40452          { ac_try='test -z "$ac_c_werror_flag"
40453                          || test ! -s conftest.err'
40454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40455   (eval $ac_try) 2>&5
40456   ac_status=$?
40457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458   (exit $ac_status); }; } &&
40459          { ac_try='test -s conftest$ac_exeext'
40460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40461   (eval $ac_try) 2>&5
40462   ac_status=$?
40463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40464   (exit $ac_status); }; }; then
40465   ol_cv_db_db1=yes
40466 else
40467   echo "$as_me: failed program was:" >&5
40468 sed 's/^/| /' conftest.$ac_ext >&5
40469
40470 ol_cv_db_db1=no
40471 fi
40472 rm -f conftest.err conftest.$ac_objext \
40473       conftest$ac_exeext conftest.$ac_ext
40474
40475         LIBS="$ol_LIBS"
40476
40477 fi
40478 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40479 echo "${ECHO_T}$ol_cv_db_db1" >&6
40480
40481         if test $ol_cv_db_db1 = yes ; then
40482                 ol_cv_lib_db=-ldb1
40483         fi
40484 fi
40485
40486 if test $ol_cv_lib_db = no ; then
40487         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40488 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40489 if test "${ol_cv_db_db_1+set}" = set; then
40490   echo $ECHO_N "(cached) $ECHO_C" >&6
40491 else
40492
40493         ol_DB_LIB=-ldb-1
40494         ol_LIBS=$LIBS
40495         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40496
40497         cat >conftest.$ac_ext <<_ACEOF
40498 /* confdefs.h.  */
40499 _ACEOF
40500 cat confdefs.h >>conftest.$ac_ext
40501 cat >>conftest.$ac_ext <<_ACEOF
40502 /* end confdefs.h.  */
40503
40504 #ifdef HAVE_DB_185_H
40505 # include <db_185.h>
40506 #else
40507 # include <db.h>
40508 #endif
40509
40510 #ifndef DB_VERSION_MAJOR
40511 # define DB_VERSION_MAJOR 1
40512 #endif
40513
40514 #ifndef NULL
40515 #define NULL ((void*)0)
40516 #endif
40517
40518 int
40519 main ()
40520 {
40521
40522 #if DB_VERSION_MAJOR > 1
40523         {
40524                 char *version;
40525                 int major, minor, patch;
40526
40527                 version = db_version( &major, &minor, &patch );
40528
40529                 if( major != DB_VERSION_MAJOR ||
40530                         minor < DB_VERSION_MINOR )
40531                 {
40532                         printf("Berkeley DB version mismatch\n"
40533                                 "\theader: %s\n\tlibrary: %s\n",
40534                                 DB_VERSION_STRING, version);
40535                         return 1;
40536                 }
40537         }
40538 #endif
40539
40540 #if DB_VERSION_MAJOR > 2
40541         db_env_create( NULL, 0 );
40542 #elif DB_VERSION_MAJOR > 1
40543         db_appexit( NULL );
40544 #else
40545         (void) dbopen( NULL, 0, 0, 0, NULL);
40546 #endif
40547
40548   ;
40549   return 0;
40550 }
40551 _ACEOF
40552 rm -f conftest.$ac_objext conftest$ac_exeext
40553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40554   (eval $ac_link) 2>conftest.er1
40555   ac_status=$?
40556   grep -v '^ *+' conftest.er1 >conftest.err
40557   rm -f conftest.er1
40558   cat conftest.err >&5
40559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40560   (exit $ac_status); } &&
40561          { ac_try='test -z "$ac_c_werror_flag"
40562                          || test ! -s conftest.err'
40563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40564   (eval $ac_try) 2>&5
40565   ac_status=$?
40566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40567   (exit $ac_status); }; } &&
40568          { ac_try='test -s conftest$ac_exeext'
40569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40570   (eval $ac_try) 2>&5
40571   ac_status=$?
40572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40573   (exit $ac_status); }; }; then
40574   ol_cv_db_db_1=yes
40575 else
40576   echo "$as_me: failed program was:" >&5
40577 sed 's/^/| /' conftest.$ac_ext >&5
40578
40579 ol_cv_db_db_1=no
40580 fi
40581 rm -f conftest.err conftest.$ac_objext \
40582       conftest$ac_exeext conftest.$ac_ext
40583
40584         LIBS="$ol_LIBS"
40585
40586 fi
40587 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40588 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40589
40590         if test $ol_cv_db_db_1 = yes ; then
40591                 ol_cv_lib_db=-ldb-1
40592         fi
40593 fi
40594
40595
40596                 if test "$ol_cv_lib_db" != no ; then
40597                         ol_cv_berkeley_db=yes
40598                 fi
40599         fi
40600 fi
40601
40602         else
40603                 ol_cv_berkeley_db=no
40604
40605 for ac_header in db.h
40606 do
40607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40609   echo "$as_me:$LINENO: checking for $ac_header" >&5
40610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40612   echo $ECHO_N "(cached) $ECHO_C" >&6
40613 fi
40614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40616 else
40617   # Is the header compilable?
40618 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40620 cat >conftest.$ac_ext <<_ACEOF
40621 /* confdefs.h.  */
40622 _ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h.  */
40626 $ac_includes_default
40627 #include <$ac_header>
40628 _ACEOF
40629 rm -f conftest.$ac_objext
40630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40631   (eval $ac_compile) 2>conftest.er1
40632   ac_status=$?
40633   grep -v '^ *+' conftest.er1 >conftest.err
40634   rm -f conftest.er1
40635   cat conftest.err >&5
40636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637   (exit $ac_status); } &&
40638          { ac_try='test -z "$ac_c_werror_flag"
40639                          || test ! -s conftest.err'
40640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40641   (eval $ac_try) 2>&5
40642   ac_status=$?
40643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644   (exit $ac_status); }; } &&
40645          { ac_try='test -s conftest.$ac_objext'
40646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40647   (eval $ac_try) 2>&5
40648   ac_status=$?
40649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650   (exit $ac_status); }; }; then
40651   ac_header_compiler=yes
40652 else
40653   echo "$as_me: failed program was:" >&5
40654 sed 's/^/| /' conftest.$ac_ext >&5
40655
40656 ac_header_compiler=no
40657 fi
40658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40660 echo "${ECHO_T}$ac_header_compiler" >&6
40661
40662 # Is the header present?
40663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40665 cat >conftest.$ac_ext <<_ACEOF
40666 /* confdefs.h.  */
40667 _ACEOF
40668 cat confdefs.h >>conftest.$ac_ext
40669 cat >>conftest.$ac_ext <<_ACEOF
40670 /* end confdefs.h.  */
40671 #include <$ac_header>
40672 _ACEOF
40673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40675   ac_status=$?
40676   grep -v '^ *+' conftest.er1 >conftest.err
40677   rm -f conftest.er1
40678   cat conftest.err >&5
40679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40680   (exit $ac_status); } >/dev/null; then
40681   if test -s conftest.err; then
40682     ac_cpp_err=$ac_c_preproc_warn_flag
40683     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40684   else
40685     ac_cpp_err=
40686   fi
40687 else
40688   ac_cpp_err=yes
40689 fi
40690 if test -z "$ac_cpp_err"; then
40691   ac_header_preproc=yes
40692 else
40693   echo "$as_me: failed program was:" >&5
40694 sed 's/^/| /' conftest.$ac_ext >&5
40695
40696   ac_header_preproc=no
40697 fi
40698 rm -f conftest.err conftest.$ac_ext
40699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40700 echo "${ECHO_T}$ac_header_preproc" >&6
40701
40702 # So?  What about this header?
40703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40704   yes:no: )
40705     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40709     ac_header_preproc=yes
40710     ;;
40711   no:yes:* )
40712     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40714     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40715 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40716     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40718     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40719 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40722     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40724     (
40725       cat <<\_ASBOX
40726 ## ------------------------------------------ ##
40727 ## Report this to the AC_PACKAGE_NAME lists.  ##
40728 ## ------------------------------------------ ##
40729 _ASBOX
40730     ) |
40731       sed "s/^/$as_me: WARNING:     /" >&2
40732     ;;
40733 esac
40734 echo "$as_me:$LINENO: checking for $ac_header" >&5
40735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40737   echo $ECHO_N "(cached) $ECHO_C" >&6
40738 else
40739   eval "$as_ac_Header=\$ac_header_preproc"
40740 fi
40741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40743
40744 fi
40745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40746   cat >>confdefs.h <<_ACEOF
40747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40748 _ACEOF
40749
40750 fi
40751
40752 done
40753
40754 if test $ac_cv_header_db_h = yes; then
40755         ol_cv_lib_db=no
40756 if test $ol_cv_lib_db = no ; then
40757         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40758 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40759 if test "${ol_cv_db_none+set}" = set; then
40760   echo $ECHO_N "(cached) $ECHO_C" >&6
40761 else
40762
40763         ol_DB_LIB=
40764         ol_LIBS=$LIBS
40765         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40766
40767         cat >conftest.$ac_ext <<_ACEOF
40768 /* confdefs.h.  */
40769 _ACEOF
40770 cat confdefs.h >>conftest.$ac_ext
40771 cat >>conftest.$ac_ext <<_ACEOF
40772 /* end confdefs.h.  */
40773
40774 #ifdef HAVE_DB_185_H
40775 # include <db_185.h>
40776 #else
40777 # include <db.h>
40778 #endif
40779
40780 #ifndef DB_VERSION_MAJOR
40781 # define DB_VERSION_MAJOR 1
40782 #endif
40783
40784 #ifndef NULL
40785 #define NULL ((void*)0)
40786 #endif
40787
40788 int
40789 main ()
40790 {
40791
40792 #if DB_VERSION_MAJOR > 1
40793         {
40794                 char *version;
40795                 int major, minor, patch;
40796
40797                 version = db_version( &major, &minor, &patch );
40798
40799                 if( major != DB_VERSION_MAJOR ||
40800                         minor < DB_VERSION_MINOR )
40801                 {
40802                         printf("Berkeley DB version mismatch\n"
40803                                 "\theader: %s\n\tlibrary: %s\n",
40804                                 DB_VERSION_STRING, version);
40805                         return 1;
40806                 }
40807         }
40808 #endif
40809
40810 #if DB_VERSION_MAJOR > 2
40811         db_env_create( NULL, 0 );
40812 #elif DB_VERSION_MAJOR > 1
40813         db_appexit( NULL );
40814 #else
40815         (void) dbopen( NULL, 0, 0, 0, NULL);
40816 #endif
40817
40818   ;
40819   return 0;
40820 }
40821 _ACEOF
40822 rm -f conftest.$ac_objext conftest$ac_exeext
40823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40824   (eval $ac_link) 2>conftest.er1
40825   ac_status=$?
40826   grep -v '^ *+' conftest.er1 >conftest.err
40827   rm -f conftest.er1
40828   cat conftest.err >&5
40829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40830   (exit $ac_status); } &&
40831          { ac_try='test -z "$ac_c_werror_flag"
40832                          || test ! -s conftest.err'
40833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40834   (eval $ac_try) 2>&5
40835   ac_status=$?
40836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40837   (exit $ac_status); }; } &&
40838          { ac_try='test -s conftest$ac_exeext'
40839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40840   (eval $ac_try) 2>&5
40841   ac_status=$?
40842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843   (exit $ac_status); }; }; then
40844   ol_cv_db_none=yes
40845 else
40846   echo "$as_me: failed program was:" >&5
40847 sed 's/^/| /' conftest.$ac_ext >&5
40848
40849 ol_cv_db_none=no
40850 fi
40851 rm -f conftest.err conftest.$ac_objext \
40852       conftest$ac_exeext conftest.$ac_ext
40853
40854         LIBS="$ol_LIBS"
40855
40856 fi
40857 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40858 echo "${ECHO_T}$ol_cv_db_none" >&6
40859
40860         if test $ol_cv_db_none = yes ; then
40861                 ol_cv_lib_db=yes
40862         fi
40863 fi
40864
40865 if test $ol_cv_lib_db = no ; then
40866         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40867 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40868 if test "${ol_cv_db_db43+set}" = set; then
40869   echo $ECHO_N "(cached) $ECHO_C" >&6
40870 else
40871
40872         ol_DB_LIB=-ldb43
40873         ol_LIBS=$LIBS
40874         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40875
40876         cat >conftest.$ac_ext <<_ACEOF
40877 /* confdefs.h.  */
40878 _ACEOF
40879 cat confdefs.h >>conftest.$ac_ext
40880 cat >>conftest.$ac_ext <<_ACEOF
40881 /* end confdefs.h.  */
40882
40883 #ifdef HAVE_DB_185_H
40884 # include <db_185.h>
40885 #else
40886 # include <db.h>
40887 #endif
40888
40889 #ifndef DB_VERSION_MAJOR
40890 # define DB_VERSION_MAJOR 1
40891 #endif
40892
40893 #ifndef NULL
40894 #define NULL ((void*)0)
40895 #endif
40896
40897 int
40898 main ()
40899 {
40900
40901 #if DB_VERSION_MAJOR > 1
40902         {
40903                 char *version;
40904                 int major, minor, patch;
40905
40906                 version = db_version( &major, &minor, &patch );
40907
40908                 if( major != DB_VERSION_MAJOR ||
40909                         minor < DB_VERSION_MINOR )
40910                 {
40911                         printf("Berkeley DB version mismatch\n"
40912                                 "\theader: %s\n\tlibrary: %s\n",
40913                                 DB_VERSION_STRING, version);
40914                         return 1;
40915                 }
40916         }
40917 #endif
40918
40919 #if DB_VERSION_MAJOR > 2
40920         db_env_create( NULL, 0 );
40921 #elif DB_VERSION_MAJOR > 1
40922         db_appexit( NULL );
40923 #else
40924         (void) dbopen( NULL, 0, 0, 0, NULL);
40925 #endif
40926
40927   ;
40928   return 0;
40929 }
40930 _ACEOF
40931 rm -f conftest.$ac_objext conftest$ac_exeext
40932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40933   (eval $ac_link) 2>conftest.er1
40934   ac_status=$?
40935   grep -v '^ *+' conftest.er1 >conftest.err
40936   rm -f conftest.er1
40937   cat conftest.err >&5
40938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939   (exit $ac_status); } &&
40940          { ac_try='test -z "$ac_c_werror_flag"
40941                          || test ! -s conftest.err'
40942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40943   (eval $ac_try) 2>&5
40944   ac_status=$?
40945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40946   (exit $ac_status); }; } &&
40947          { ac_try='test -s conftest$ac_exeext'
40948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40949   (eval $ac_try) 2>&5
40950   ac_status=$?
40951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40952   (exit $ac_status); }; }; then
40953   ol_cv_db_db43=yes
40954 else
40955   echo "$as_me: failed program was:" >&5
40956 sed 's/^/| /' conftest.$ac_ext >&5
40957
40958 ol_cv_db_db43=no
40959 fi
40960 rm -f conftest.err conftest.$ac_objext \
40961       conftest$ac_exeext conftest.$ac_ext
40962
40963         LIBS="$ol_LIBS"
40964
40965 fi
40966 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40967 echo "${ECHO_T}$ol_cv_db_db43" >&6
40968
40969         if test $ol_cv_db_db43 = yes ; then
40970                 ol_cv_lib_db=-ldb43
40971         fi
40972 fi
40973
40974 if test $ol_cv_lib_db = no ; then
40975         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40976 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40977 if test "${ol_cv_db_db_43+set}" = set; then
40978   echo $ECHO_N "(cached) $ECHO_C" >&6
40979 else
40980
40981         ol_DB_LIB=-ldb-43
40982         ol_LIBS=$LIBS
40983         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40984
40985         cat >conftest.$ac_ext <<_ACEOF
40986 /* confdefs.h.  */
40987 _ACEOF
40988 cat confdefs.h >>conftest.$ac_ext
40989 cat >>conftest.$ac_ext <<_ACEOF
40990 /* end confdefs.h.  */
40991
40992 #ifdef HAVE_DB_185_H
40993 # include <db_185.h>
40994 #else
40995 # include <db.h>
40996 #endif
40997
40998 #ifndef DB_VERSION_MAJOR
40999 # define DB_VERSION_MAJOR 1
41000 #endif
41001
41002 #ifndef NULL
41003 #define NULL ((void*)0)
41004 #endif
41005
41006 int
41007 main ()
41008 {
41009
41010 #if DB_VERSION_MAJOR > 1
41011         {
41012                 char *version;
41013                 int major, minor, patch;
41014
41015                 version = db_version( &major, &minor, &patch );
41016
41017                 if( major != DB_VERSION_MAJOR ||
41018                         minor < DB_VERSION_MINOR )
41019                 {
41020                         printf("Berkeley DB version mismatch\n"
41021                                 "\theader: %s\n\tlibrary: %s\n",
41022                                 DB_VERSION_STRING, version);
41023                         return 1;
41024                 }
41025         }
41026 #endif
41027
41028 #if DB_VERSION_MAJOR > 2
41029         db_env_create( NULL, 0 );
41030 #elif DB_VERSION_MAJOR > 1
41031         db_appexit( NULL );
41032 #else
41033         (void) dbopen( NULL, 0, 0, 0, NULL);
41034 #endif
41035
41036   ;
41037   return 0;
41038 }
41039 _ACEOF
41040 rm -f conftest.$ac_objext conftest$ac_exeext
41041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41042   (eval $ac_link) 2>conftest.er1
41043   ac_status=$?
41044   grep -v '^ *+' conftest.er1 >conftest.err
41045   rm -f conftest.er1
41046   cat conftest.err >&5
41047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048   (exit $ac_status); } &&
41049          { ac_try='test -z "$ac_c_werror_flag"
41050                          || test ! -s conftest.err'
41051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41052   (eval $ac_try) 2>&5
41053   ac_status=$?
41054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41055   (exit $ac_status); }; } &&
41056          { ac_try='test -s conftest$ac_exeext'
41057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41058   (eval $ac_try) 2>&5
41059   ac_status=$?
41060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061   (exit $ac_status); }; }; then
41062   ol_cv_db_db_43=yes
41063 else
41064   echo "$as_me: failed program was:" >&5
41065 sed 's/^/| /' conftest.$ac_ext >&5
41066
41067 ol_cv_db_db_43=no
41068 fi
41069 rm -f conftest.err conftest.$ac_objext \
41070       conftest$ac_exeext conftest.$ac_ext
41071
41072         LIBS="$ol_LIBS"
41073
41074 fi
41075 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
41076 echo "${ECHO_T}$ol_cv_db_db_43" >&6
41077
41078         if test $ol_cv_db_db_43 = yes ; then
41079                 ol_cv_lib_db=-ldb-43
41080         fi
41081 fi
41082
41083 if test $ol_cv_lib_db = no ; then
41084         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
41085 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
41086 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
41087   echo $ECHO_N "(cached) $ECHO_C" >&6
41088 else
41089
41090         ol_DB_LIB=-ldb-4.3
41091         ol_LIBS=$LIBS
41092         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41093
41094         cat >conftest.$ac_ext <<_ACEOF
41095 /* confdefs.h.  */
41096 _ACEOF
41097 cat confdefs.h >>conftest.$ac_ext
41098 cat >>conftest.$ac_ext <<_ACEOF
41099 /* end confdefs.h.  */
41100
41101 #ifdef HAVE_DB_185_H
41102 # include <db_185.h>
41103 #else
41104 # include <db.h>
41105 #endif
41106
41107 #ifndef DB_VERSION_MAJOR
41108 # define DB_VERSION_MAJOR 1
41109 #endif
41110
41111 #ifndef NULL
41112 #define NULL ((void*)0)
41113 #endif
41114
41115 int
41116 main ()
41117 {
41118
41119 #if DB_VERSION_MAJOR > 1
41120         {
41121                 char *version;
41122                 int major, minor, patch;
41123
41124                 version = db_version( &major, &minor, &patch );
41125
41126                 if( major != DB_VERSION_MAJOR ||
41127                         minor < DB_VERSION_MINOR )
41128                 {
41129                         printf("Berkeley DB version mismatch\n"
41130                                 "\theader: %s\n\tlibrary: %s\n",
41131                                 DB_VERSION_STRING, version);
41132                         return 1;
41133                 }
41134         }
41135 #endif
41136
41137 #if DB_VERSION_MAJOR > 2
41138         db_env_create( NULL, 0 );
41139 #elif DB_VERSION_MAJOR > 1
41140         db_appexit( NULL );
41141 #else
41142         (void) dbopen( NULL, 0, 0, 0, NULL);
41143 #endif
41144
41145   ;
41146   return 0;
41147 }
41148 _ACEOF
41149 rm -f conftest.$ac_objext conftest$ac_exeext
41150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41151   (eval $ac_link) 2>conftest.er1
41152   ac_status=$?
41153   grep -v '^ *+' conftest.er1 >conftest.err
41154   rm -f conftest.er1
41155   cat conftest.err >&5
41156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41157   (exit $ac_status); } &&
41158          { ac_try='test -z "$ac_c_werror_flag"
41159                          || test ! -s conftest.err'
41160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41161   (eval $ac_try) 2>&5
41162   ac_status=$?
41163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41164   (exit $ac_status); }; } &&
41165          { ac_try='test -s conftest$ac_exeext'
41166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41167   (eval $ac_try) 2>&5
41168   ac_status=$?
41169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41170   (exit $ac_status); }; }; then
41171   ol_cv_db_db_4_dot_3=yes
41172 else
41173   echo "$as_me: failed program was:" >&5
41174 sed 's/^/| /' conftest.$ac_ext >&5
41175
41176 ol_cv_db_db_4_dot_3=no
41177 fi
41178 rm -f conftest.err conftest.$ac_objext \
41179       conftest$ac_exeext conftest.$ac_ext
41180
41181         LIBS="$ol_LIBS"
41182
41183 fi
41184 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41185 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41186
41187         if test $ol_cv_db_db_4_dot_3 = yes ; then
41188                 ol_cv_lib_db=-ldb-4.3
41189         fi
41190 fi
41191
41192 if test $ol_cv_lib_db = no ; then
41193         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41194 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41195 if test "${ol_cv_db_db_4_3+set}" = set; then
41196   echo $ECHO_N "(cached) $ECHO_C" >&6
41197 else
41198
41199         ol_DB_LIB=-ldb-4-3
41200         ol_LIBS=$LIBS
41201         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41202
41203         cat >conftest.$ac_ext <<_ACEOF
41204 /* confdefs.h.  */
41205 _ACEOF
41206 cat confdefs.h >>conftest.$ac_ext
41207 cat >>conftest.$ac_ext <<_ACEOF
41208 /* end confdefs.h.  */
41209
41210 #ifdef HAVE_DB_185_H
41211 # include <db_185.h>
41212 #else
41213 # include <db.h>
41214 #endif
41215
41216 #ifndef DB_VERSION_MAJOR
41217 # define DB_VERSION_MAJOR 1
41218 #endif
41219
41220 #ifndef NULL
41221 #define NULL ((void*)0)
41222 #endif
41223
41224 int
41225 main ()
41226 {
41227
41228 #if DB_VERSION_MAJOR > 1
41229         {
41230                 char *version;
41231                 int major, minor, patch;
41232
41233                 version = db_version( &major, &minor, &patch );
41234
41235                 if( major != DB_VERSION_MAJOR ||
41236                         minor < DB_VERSION_MINOR )
41237                 {
41238                         printf("Berkeley DB version mismatch\n"
41239                                 "\theader: %s\n\tlibrary: %s\n",
41240                                 DB_VERSION_STRING, version);
41241                         return 1;
41242                 }
41243         }
41244 #endif
41245
41246 #if DB_VERSION_MAJOR > 2
41247         db_env_create( NULL, 0 );
41248 #elif DB_VERSION_MAJOR > 1
41249         db_appexit( NULL );
41250 #else
41251         (void) dbopen( NULL, 0, 0, 0, NULL);
41252 #endif
41253
41254   ;
41255   return 0;
41256 }
41257 _ACEOF
41258 rm -f conftest.$ac_objext conftest$ac_exeext
41259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41260   (eval $ac_link) 2>conftest.er1
41261   ac_status=$?
41262   grep -v '^ *+' conftest.er1 >conftest.err
41263   rm -f conftest.er1
41264   cat conftest.err >&5
41265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266   (exit $ac_status); } &&
41267          { ac_try='test -z "$ac_c_werror_flag"
41268                          || test ! -s conftest.err'
41269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41270   (eval $ac_try) 2>&5
41271   ac_status=$?
41272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273   (exit $ac_status); }; } &&
41274          { ac_try='test -s conftest$ac_exeext'
41275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41276   (eval $ac_try) 2>&5
41277   ac_status=$?
41278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279   (exit $ac_status); }; }; then
41280   ol_cv_db_db_4_3=yes
41281 else
41282   echo "$as_me: failed program was:" >&5
41283 sed 's/^/| /' conftest.$ac_ext >&5
41284
41285 ol_cv_db_db_4_3=no
41286 fi
41287 rm -f conftest.err conftest.$ac_objext \
41288       conftest$ac_exeext conftest.$ac_ext
41289
41290         LIBS="$ol_LIBS"
41291
41292 fi
41293 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41294 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41295
41296         if test $ol_cv_db_db_4_3 = yes ; then
41297                 ol_cv_lib_db=-ldb-4-3
41298         fi
41299 fi
41300
41301 if test $ol_cv_lib_db = no ; then
41302         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41303 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41304 if test "${ol_cv_db_db42+set}" = set; then
41305   echo $ECHO_N "(cached) $ECHO_C" >&6
41306 else
41307
41308         ol_DB_LIB=-ldb42
41309         ol_LIBS=$LIBS
41310         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41311
41312         cat >conftest.$ac_ext <<_ACEOF
41313 /* confdefs.h.  */
41314 _ACEOF
41315 cat confdefs.h >>conftest.$ac_ext
41316 cat >>conftest.$ac_ext <<_ACEOF
41317 /* end confdefs.h.  */
41318
41319 #ifdef HAVE_DB_185_H
41320 # include <db_185.h>
41321 #else
41322 # include <db.h>
41323 #endif
41324
41325 #ifndef DB_VERSION_MAJOR
41326 # define DB_VERSION_MAJOR 1
41327 #endif
41328
41329 #ifndef NULL
41330 #define NULL ((void*)0)
41331 #endif
41332
41333 int
41334 main ()
41335 {
41336
41337 #if DB_VERSION_MAJOR > 1
41338         {
41339                 char *version;
41340                 int major, minor, patch;
41341
41342                 version = db_version( &major, &minor, &patch );
41343
41344                 if( major != DB_VERSION_MAJOR ||
41345                         minor < DB_VERSION_MINOR )
41346                 {
41347                         printf("Berkeley DB version mismatch\n"
41348                                 "\theader: %s\n\tlibrary: %s\n",
41349                                 DB_VERSION_STRING, version);
41350                         return 1;
41351                 }
41352         }
41353 #endif
41354
41355 #if DB_VERSION_MAJOR > 2
41356         db_env_create( NULL, 0 );
41357 #elif DB_VERSION_MAJOR > 1
41358         db_appexit( NULL );
41359 #else
41360         (void) dbopen( NULL, 0, 0, 0, NULL);
41361 #endif
41362
41363   ;
41364   return 0;
41365 }
41366 _ACEOF
41367 rm -f conftest.$ac_objext conftest$ac_exeext
41368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41369   (eval $ac_link) 2>conftest.er1
41370   ac_status=$?
41371   grep -v '^ *+' conftest.er1 >conftest.err
41372   rm -f conftest.er1
41373   cat conftest.err >&5
41374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41375   (exit $ac_status); } &&
41376          { ac_try='test -z "$ac_c_werror_flag"
41377                          || test ! -s conftest.err'
41378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41379   (eval $ac_try) 2>&5
41380   ac_status=$?
41381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41382   (exit $ac_status); }; } &&
41383          { ac_try='test -s conftest$ac_exeext'
41384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41385   (eval $ac_try) 2>&5
41386   ac_status=$?
41387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388   (exit $ac_status); }; }; then
41389   ol_cv_db_db42=yes
41390 else
41391   echo "$as_me: failed program was:" >&5
41392 sed 's/^/| /' conftest.$ac_ext >&5
41393
41394 ol_cv_db_db42=no
41395 fi
41396 rm -f conftest.err conftest.$ac_objext \
41397       conftest$ac_exeext conftest.$ac_ext
41398
41399         LIBS="$ol_LIBS"
41400
41401 fi
41402 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41403 echo "${ECHO_T}$ol_cv_db_db42" >&6
41404
41405         if test $ol_cv_db_db42 = yes ; then
41406                 ol_cv_lib_db=-ldb42
41407         fi
41408 fi
41409
41410 if test $ol_cv_lib_db = no ; then
41411         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41412 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41413 if test "${ol_cv_db_db_42+set}" = set; then
41414   echo $ECHO_N "(cached) $ECHO_C" >&6
41415 else
41416
41417         ol_DB_LIB=-ldb-42
41418         ol_LIBS=$LIBS
41419         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41420
41421         cat >conftest.$ac_ext <<_ACEOF
41422 /* confdefs.h.  */
41423 _ACEOF
41424 cat confdefs.h >>conftest.$ac_ext
41425 cat >>conftest.$ac_ext <<_ACEOF
41426 /* end confdefs.h.  */
41427
41428 #ifdef HAVE_DB_185_H
41429 # include <db_185.h>
41430 #else
41431 # include <db.h>
41432 #endif
41433
41434 #ifndef DB_VERSION_MAJOR
41435 # define DB_VERSION_MAJOR 1
41436 #endif
41437
41438 #ifndef NULL
41439 #define NULL ((void*)0)
41440 #endif
41441
41442 int
41443 main ()
41444 {
41445
41446 #if DB_VERSION_MAJOR > 1
41447         {
41448                 char *version;
41449                 int major, minor, patch;
41450
41451                 version = db_version( &major, &minor, &patch );
41452
41453                 if( major != DB_VERSION_MAJOR ||
41454                         minor < DB_VERSION_MINOR )
41455                 {
41456                         printf("Berkeley DB version mismatch\n"
41457                                 "\theader: %s\n\tlibrary: %s\n",
41458                                 DB_VERSION_STRING, version);
41459                         return 1;
41460                 }
41461         }
41462 #endif
41463
41464 #if DB_VERSION_MAJOR > 2
41465         db_env_create( NULL, 0 );
41466 #elif DB_VERSION_MAJOR > 1
41467         db_appexit( NULL );
41468 #else
41469         (void) dbopen( NULL, 0, 0, 0, NULL);
41470 #endif
41471
41472   ;
41473   return 0;
41474 }
41475 _ACEOF
41476 rm -f conftest.$ac_objext conftest$ac_exeext
41477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41478   (eval $ac_link) 2>conftest.er1
41479   ac_status=$?
41480   grep -v '^ *+' conftest.er1 >conftest.err
41481   rm -f conftest.er1
41482   cat conftest.err >&5
41483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484   (exit $ac_status); } &&
41485          { ac_try='test -z "$ac_c_werror_flag"
41486                          || test ! -s conftest.err'
41487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41488   (eval $ac_try) 2>&5
41489   ac_status=$?
41490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41491   (exit $ac_status); }; } &&
41492          { ac_try='test -s conftest$ac_exeext'
41493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41494   (eval $ac_try) 2>&5
41495   ac_status=$?
41496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497   (exit $ac_status); }; }; then
41498   ol_cv_db_db_42=yes
41499 else
41500   echo "$as_me: failed program was:" >&5
41501 sed 's/^/| /' conftest.$ac_ext >&5
41502
41503 ol_cv_db_db_42=no
41504 fi
41505 rm -f conftest.err conftest.$ac_objext \
41506       conftest$ac_exeext conftest.$ac_ext
41507
41508         LIBS="$ol_LIBS"
41509
41510 fi
41511 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41512 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41513
41514         if test $ol_cv_db_db_42 = yes ; then
41515                 ol_cv_lib_db=-ldb-42
41516         fi
41517 fi
41518
41519 if test $ol_cv_lib_db = no ; then
41520         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41521 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41522 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41523   echo $ECHO_N "(cached) $ECHO_C" >&6
41524 else
41525
41526         ol_DB_LIB=-ldb-4.2
41527         ol_LIBS=$LIBS
41528         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41529
41530         cat >conftest.$ac_ext <<_ACEOF
41531 /* confdefs.h.  */
41532 _ACEOF
41533 cat confdefs.h >>conftest.$ac_ext
41534 cat >>conftest.$ac_ext <<_ACEOF
41535 /* end confdefs.h.  */
41536
41537 #ifdef HAVE_DB_185_H
41538 # include <db_185.h>
41539 #else
41540 # include <db.h>
41541 #endif
41542
41543 #ifndef DB_VERSION_MAJOR
41544 # define DB_VERSION_MAJOR 1
41545 #endif
41546
41547 #ifndef NULL
41548 #define NULL ((void*)0)
41549 #endif
41550
41551 int
41552 main ()
41553 {
41554
41555 #if DB_VERSION_MAJOR > 1
41556         {
41557                 char *version;
41558                 int major, minor, patch;
41559
41560                 version = db_version( &major, &minor, &patch );
41561
41562                 if( major != DB_VERSION_MAJOR ||
41563                         minor < DB_VERSION_MINOR )
41564                 {
41565                         printf("Berkeley DB version mismatch\n"
41566                                 "\theader: %s\n\tlibrary: %s\n",
41567                                 DB_VERSION_STRING, version);
41568                         return 1;
41569                 }
41570         }
41571 #endif
41572
41573 #if DB_VERSION_MAJOR > 2
41574         db_env_create( NULL, 0 );
41575 #elif DB_VERSION_MAJOR > 1
41576         db_appexit( NULL );
41577 #else
41578         (void) dbopen( NULL, 0, 0, 0, NULL);
41579 #endif
41580
41581   ;
41582   return 0;
41583 }
41584 _ACEOF
41585 rm -f conftest.$ac_objext conftest$ac_exeext
41586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41587   (eval $ac_link) 2>conftest.er1
41588   ac_status=$?
41589   grep -v '^ *+' conftest.er1 >conftest.err
41590   rm -f conftest.er1
41591   cat conftest.err >&5
41592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41593   (exit $ac_status); } &&
41594          { ac_try='test -z "$ac_c_werror_flag"
41595                          || test ! -s conftest.err'
41596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41597   (eval $ac_try) 2>&5
41598   ac_status=$?
41599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41600   (exit $ac_status); }; } &&
41601          { ac_try='test -s conftest$ac_exeext'
41602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41603   (eval $ac_try) 2>&5
41604   ac_status=$?
41605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41606   (exit $ac_status); }; }; then
41607   ol_cv_db_db_4_dot_2=yes
41608 else
41609   echo "$as_me: failed program was:" >&5
41610 sed 's/^/| /' conftest.$ac_ext >&5
41611
41612 ol_cv_db_db_4_dot_2=no
41613 fi
41614 rm -f conftest.err conftest.$ac_objext \
41615       conftest$ac_exeext conftest.$ac_ext
41616
41617         LIBS="$ol_LIBS"
41618
41619 fi
41620 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41621 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41622
41623         if test $ol_cv_db_db_4_dot_2 = yes ; then
41624                 ol_cv_lib_db=-ldb-4.2
41625         fi
41626 fi
41627
41628 if test $ol_cv_lib_db = no ; then
41629         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41630 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41631 if test "${ol_cv_db_db_4_2+set}" = set; then
41632   echo $ECHO_N "(cached) $ECHO_C" >&6
41633 else
41634
41635         ol_DB_LIB=-ldb-4-2
41636         ol_LIBS=$LIBS
41637         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41638
41639         cat >conftest.$ac_ext <<_ACEOF
41640 /* confdefs.h.  */
41641 _ACEOF
41642 cat confdefs.h >>conftest.$ac_ext
41643 cat >>conftest.$ac_ext <<_ACEOF
41644 /* end confdefs.h.  */
41645
41646 #ifdef HAVE_DB_185_H
41647 # include <db_185.h>
41648 #else
41649 # include <db.h>
41650 #endif
41651
41652 #ifndef DB_VERSION_MAJOR
41653 # define DB_VERSION_MAJOR 1
41654 #endif
41655
41656 #ifndef NULL
41657 #define NULL ((void*)0)
41658 #endif
41659
41660 int
41661 main ()
41662 {
41663
41664 #if DB_VERSION_MAJOR > 1
41665         {
41666                 char *version;
41667                 int major, minor, patch;
41668
41669                 version = db_version( &major, &minor, &patch );
41670
41671                 if( major != DB_VERSION_MAJOR ||
41672                         minor < DB_VERSION_MINOR )
41673                 {
41674                         printf("Berkeley DB version mismatch\n"
41675                                 "\theader: %s\n\tlibrary: %s\n",
41676                                 DB_VERSION_STRING, version);
41677                         return 1;
41678                 }
41679         }
41680 #endif
41681
41682 #if DB_VERSION_MAJOR > 2
41683         db_env_create( NULL, 0 );
41684 #elif DB_VERSION_MAJOR > 1
41685         db_appexit( NULL );
41686 #else
41687         (void) dbopen( NULL, 0, 0, 0, NULL);
41688 #endif
41689
41690   ;
41691   return 0;
41692 }
41693 _ACEOF
41694 rm -f conftest.$ac_objext conftest$ac_exeext
41695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41696   (eval $ac_link) 2>conftest.er1
41697   ac_status=$?
41698   grep -v '^ *+' conftest.er1 >conftest.err
41699   rm -f conftest.er1
41700   cat conftest.err >&5
41701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702   (exit $ac_status); } &&
41703          { ac_try='test -z "$ac_c_werror_flag"
41704                          || test ! -s conftest.err'
41705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41706   (eval $ac_try) 2>&5
41707   ac_status=$?
41708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41709   (exit $ac_status); }; } &&
41710          { ac_try='test -s conftest$ac_exeext'
41711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41712   (eval $ac_try) 2>&5
41713   ac_status=$?
41714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715   (exit $ac_status); }; }; then
41716   ol_cv_db_db_4_2=yes
41717 else
41718   echo "$as_me: failed program was:" >&5
41719 sed 's/^/| /' conftest.$ac_ext >&5
41720
41721 ol_cv_db_db_4_2=no
41722 fi
41723 rm -f conftest.err conftest.$ac_objext \
41724       conftest$ac_exeext conftest.$ac_ext
41725
41726         LIBS="$ol_LIBS"
41727
41728 fi
41729 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41730 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41731
41732         if test $ol_cv_db_db_4_2 = yes ; then
41733                 ol_cv_lib_db=-ldb-4-2
41734         fi
41735 fi
41736
41737 if test $ol_cv_lib_db = no ; then
41738         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41739 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41740 if test "${ol_cv_db_db_4+set}" = set; then
41741   echo $ECHO_N "(cached) $ECHO_C" >&6
41742 else
41743
41744         ol_DB_LIB=-ldb-4
41745         ol_LIBS=$LIBS
41746         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41747
41748         cat >conftest.$ac_ext <<_ACEOF
41749 /* confdefs.h.  */
41750 _ACEOF
41751 cat confdefs.h >>conftest.$ac_ext
41752 cat >>conftest.$ac_ext <<_ACEOF
41753 /* end confdefs.h.  */
41754
41755 #ifdef HAVE_DB_185_H
41756 # include <db_185.h>
41757 #else
41758 # include <db.h>
41759 #endif
41760
41761 #ifndef DB_VERSION_MAJOR
41762 # define DB_VERSION_MAJOR 1
41763 #endif
41764
41765 #ifndef NULL
41766 #define NULL ((void*)0)
41767 #endif
41768
41769 int
41770 main ()
41771 {
41772
41773 #if DB_VERSION_MAJOR > 1
41774         {
41775                 char *version;
41776                 int major, minor, patch;
41777
41778                 version = db_version( &major, &minor, &patch );
41779
41780                 if( major != DB_VERSION_MAJOR ||
41781                         minor < DB_VERSION_MINOR )
41782                 {
41783                         printf("Berkeley DB version mismatch\n"
41784                                 "\theader: %s\n\tlibrary: %s\n",
41785                                 DB_VERSION_STRING, version);
41786                         return 1;
41787                 }
41788         }
41789 #endif
41790
41791 #if DB_VERSION_MAJOR > 2
41792         db_env_create( NULL, 0 );
41793 #elif DB_VERSION_MAJOR > 1
41794         db_appexit( NULL );
41795 #else
41796         (void) dbopen( NULL, 0, 0, 0, NULL);
41797 #endif
41798
41799   ;
41800   return 0;
41801 }
41802 _ACEOF
41803 rm -f conftest.$ac_objext conftest$ac_exeext
41804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41805   (eval $ac_link) 2>conftest.er1
41806   ac_status=$?
41807   grep -v '^ *+' conftest.er1 >conftest.err
41808   rm -f conftest.er1
41809   cat conftest.err >&5
41810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41811   (exit $ac_status); } &&
41812          { ac_try='test -z "$ac_c_werror_flag"
41813                          || test ! -s conftest.err'
41814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41815   (eval $ac_try) 2>&5
41816   ac_status=$?
41817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818   (exit $ac_status); }; } &&
41819          { ac_try='test -s conftest$ac_exeext'
41820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41821   (eval $ac_try) 2>&5
41822   ac_status=$?
41823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824   (exit $ac_status); }; }; then
41825   ol_cv_db_db_4=yes
41826 else
41827   echo "$as_me: failed program was:" >&5
41828 sed 's/^/| /' conftest.$ac_ext >&5
41829
41830 ol_cv_db_db_4=no
41831 fi
41832 rm -f conftest.err conftest.$ac_objext \
41833       conftest$ac_exeext conftest.$ac_ext
41834
41835         LIBS="$ol_LIBS"
41836
41837 fi
41838 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41839 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41840
41841         if test $ol_cv_db_db_4 = yes ; then
41842                 ol_cv_lib_db=-ldb-4
41843         fi
41844 fi
41845
41846 if test $ol_cv_lib_db = no ; then
41847         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41848 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41849 if test "${ol_cv_db_db4+set}" = set; then
41850   echo $ECHO_N "(cached) $ECHO_C" >&6
41851 else
41852
41853         ol_DB_LIB=-ldb4
41854         ol_LIBS=$LIBS
41855         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41856
41857         cat >conftest.$ac_ext <<_ACEOF
41858 /* confdefs.h.  */
41859 _ACEOF
41860 cat confdefs.h >>conftest.$ac_ext
41861 cat >>conftest.$ac_ext <<_ACEOF
41862 /* end confdefs.h.  */
41863
41864 #ifdef HAVE_DB_185_H
41865 # include <db_185.h>
41866 #else
41867 # include <db.h>
41868 #endif
41869
41870 #ifndef DB_VERSION_MAJOR
41871 # define DB_VERSION_MAJOR 1
41872 #endif
41873
41874 #ifndef NULL
41875 #define NULL ((void*)0)
41876 #endif
41877
41878 int
41879 main ()
41880 {
41881
41882 #if DB_VERSION_MAJOR > 1
41883         {
41884                 char *version;
41885                 int major, minor, patch;
41886
41887                 version = db_version( &major, &minor, &patch );
41888
41889                 if( major != DB_VERSION_MAJOR ||
41890                         minor < DB_VERSION_MINOR )
41891                 {
41892                         printf("Berkeley DB version mismatch\n"
41893                                 "\theader: %s\n\tlibrary: %s\n",
41894                                 DB_VERSION_STRING, version);
41895                         return 1;
41896                 }
41897         }
41898 #endif
41899
41900 #if DB_VERSION_MAJOR > 2
41901         db_env_create( NULL, 0 );
41902 #elif DB_VERSION_MAJOR > 1
41903         db_appexit( NULL );
41904 #else
41905         (void) dbopen( NULL, 0, 0, 0, NULL);
41906 #endif
41907
41908   ;
41909   return 0;
41910 }
41911 _ACEOF
41912 rm -f conftest.$ac_objext conftest$ac_exeext
41913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41914   (eval $ac_link) 2>conftest.er1
41915   ac_status=$?
41916   grep -v '^ *+' conftest.er1 >conftest.err
41917   rm -f conftest.er1
41918   cat conftest.err >&5
41919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41920   (exit $ac_status); } &&
41921          { ac_try='test -z "$ac_c_werror_flag"
41922                          || test ! -s conftest.err'
41923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41924   (eval $ac_try) 2>&5
41925   ac_status=$?
41926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41927   (exit $ac_status); }; } &&
41928          { ac_try='test -s conftest$ac_exeext'
41929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41930   (eval $ac_try) 2>&5
41931   ac_status=$?
41932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933   (exit $ac_status); }; }; then
41934   ol_cv_db_db4=yes
41935 else
41936   echo "$as_me: failed program was:" >&5
41937 sed 's/^/| /' conftest.$ac_ext >&5
41938
41939 ol_cv_db_db4=no
41940 fi
41941 rm -f conftest.err conftest.$ac_objext \
41942       conftest$ac_exeext conftest.$ac_ext
41943
41944         LIBS="$ol_LIBS"
41945
41946 fi
41947 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41948 echo "${ECHO_T}$ol_cv_db_db4" >&6
41949
41950         if test $ol_cv_db_db4 = yes ; then
41951                 ol_cv_lib_db=-ldb4
41952         fi
41953 fi
41954
41955 if test $ol_cv_lib_db = no ; then
41956         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41957 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41958 if test "${ol_cv_db_db+set}" = set; then
41959   echo $ECHO_N "(cached) $ECHO_C" >&6
41960 else
41961
41962         ol_DB_LIB=-ldb
41963         ol_LIBS=$LIBS
41964         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41965
41966         cat >conftest.$ac_ext <<_ACEOF
41967 /* confdefs.h.  */
41968 _ACEOF
41969 cat confdefs.h >>conftest.$ac_ext
41970 cat >>conftest.$ac_ext <<_ACEOF
41971 /* end confdefs.h.  */
41972
41973 #ifdef HAVE_DB_185_H
41974 # include <db_185.h>
41975 #else
41976 # include <db.h>
41977 #endif
41978
41979 #ifndef DB_VERSION_MAJOR
41980 # define DB_VERSION_MAJOR 1
41981 #endif
41982
41983 #ifndef NULL
41984 #define NULL ((void*)0)
41985 #endif
41986
41987 int
41988 main ()
41989 {
41990
41991 #if DB_VERSION_MAJOR > 1
41992         {
41993                 char *version;
41994                 int major, minor, patch;
41995
41996                 version = db_version( &major, &minor, &patch );
41997
41998                 if( major != DB_VERSION_MAJOR ||
41999                         minor < DB_VERSION_MINOR )
42000                 {
42001                         printf("Berkeley DB version mismatch\n"
42002                                 "\theader: %s\n\tlibrary: %s\n",
42003                                 DB_VERSION_STRING, version);
42004                         return 1;
42005                 }
42006         }
42007 #endif
42008
42009 #if DB_VERSION_MAJOR > 2
42010         db_env_create( NULL, 0 );
42011 #elif DB_VERSION_MAJOR > 1
42012         db_appexit( NULL );
42013 #else
42014         (void) dbopen( NULL, 0, 0, 0, NULL);
42015 #endif
42016
42017   ;
42018   return 0;
42019 }
42020 _ACEOF
42021 rm -f conftest.$ac_objext conftest$ac_exeext
42022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42023   (eval $ac_link) 2>conftest.er1
42024   ac_status=$?
42025   grep -v '^ *+' conftest.er1 >conftest.err
42026   rm -f conftest.er1
42027   cat conftest.err >&5
42028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42029   (exit $ac_status); } &&
42030          { ac_try='test -z "$ac_c_werror_flag"
42031                          || test ! -s conftest.err'
42032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42033   (eval $ac_try) 2>&5
42034   ac_status=$?
42035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42036   (exit $ac_status); }; } &&
42037          { ac_try='test -s conftest$ac_exeext'
42038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42039   (eval $ac_try) 2>&5
42040   ac_status=$?
42041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42042   (exit $ac_status); }; }; then
42043   ol_cv_db_db=yes
42044 else
42045   echo "$as_me: failed program was:" >&5
42046 sed 's/^/| /' conftest.$ac_ext >&5
42047
42048 ol_cv_db_db=no
42049 fi
42050 rm -f conftest.err conftest.$ac_objext \
42051       conftest$ac_exeext conftest.$ac_ext
42052
42053         LIBS="$ol_LIBS"
42054
42055 fi
42056 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
42057 echo "${ECHO_T}$ol_cv_db_db" >&6
42058
42059         if test $ol_cv_db_db = yes ; then
42060                 ol_cv_lib_db=-ldb
42061         fi
42062 fi
42063
42064 if test $ol_cv_lib_db = no ; then
42065         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
42066 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
42067 if test "${ol_cv_db_db41+set}" = set; then
42068   echo $ECHO_N "(cached) $ECHO_C" >&6
42069 else
42070
42071         ol_DB_LIB=-ldb41
42072         ol_LIBS=$LIBS
42073         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42074
42075         cat >conftest.$ac_ext <<_ACEOF
42076 /* confdefs.h.  */
42077 _ACEOF
42078 cat confdefs.h >>conftest.$ac_ext
42079 cat >>conftest.$ac_ext <<_ACEOF
42080 /* end confdefs.h.  */
42081
42082 #ifdef HAVE_DB_185_H
42083 # include <db_185.h>
42084 #else
42085 # include <db.h>
42086 #endif
42087
42088 #ifndef DB_VERSION_MAJOR
42089 # define DB_VERSION_MAJOR 1
42090 #endif
42091
42092 #ifndef NULL
42093 #define NULL ((void*)0)
42094 #endif
42095
42096 int
42097 main ()
42098 {
42099
42100 #if DB_VERSION_MAJOR > 1
42101         {
42102                 char *version;
42103                 int major, minor, patch;
42104
42105                 version = db_version( &major, &minor, &patch );
42106
42107                 if( major != DB_VERSION_MAJOR ||
42108                         minor < DB_VERSION_MINOR )
42109                 {
42110                         printf("Berkeley DB version mismatch\n"
42111                                 "\theader: %s\n\tlibrary: %s\n",
42112                                 DB_VERSION_STRING, version);
42113                         return 1;
42114                 }
42115         }
42116 #endif
42117
42118 #if DB_VERSION_MAJOR > 2
42119         db_env_create( NULL, 0 );
42120 #elif DB_VERSION_MAJOR > 1
42121         db_appexit( NULL );
42122 #else
42123         (void) dbopen( NULL, 0, 0, 0, NULL);
42124 #endif
42125
42126   ;
42127   return 0;
42128 }
42129 _ACEOF
42130 rm -f conftest.$ac_objext conftest$ac_exeext
42131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42132   (eval $ac_link) 2>conftest.er1
42133   ac_status=$?
42134   grep -v '^ *+' conftest.er1 >conftest.err
42135   rm -f conftest.er1
42136   cat conftest.err >&5
42137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138   (exit $ac_status); } &&
42139          { ac_try='test -z "$ac_c_werror_flag"
42140                          || test ! -s conftest.err'
42141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42142   (eval $ac_try) 2>&5
42143   ac_status=$?
42144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145   (exit $ac_status); }; } &&
42146          { ac_try='test -s conftest$ac_exeext'
42147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42148   (eval $ac_try) 2>&5
42149   ac_status=$?
42150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151   (exit $ac_status); }; }; then
42152   ol_cv_db_db41=yes
42153 else
42154   echo "$as_me: failed program was:" >&5
42155 sed 's/^/| /' conftest.$ac_ext >&5
42156
42157 ol_cv_db_db41=no
42158 fi
42159 rm -f conftest.err conftest.$ac_objext \
42160       conftest$ac_exeext conftest.$ac_ext
42161
42162         LIBS="$ol_LIBS"
42163
42164 fi
42165 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42166 echo "${ECHO_T}$ol_cv_db_db41" >&6
42167
42168         if test $ol_cv_db_db41 = yes ; then
42169                 ol_cv_lib_db=-ldb41
42170         fi
42171 fi
42172
42173 if test $ol_cv_lib_db = no ; then
42174         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42175 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42176 if test "${ol_cv_db_db_41+set}" = set; then
42177   echo $ECHO_N "(cached) $ECHO_C" >&6
42178 else
42179
42180         ol_DB_LIB=-ldb-41
42181         ol_LIBS=$LIBS
42182         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42183
42184         cat >conftest.$ac_ext <<_ACEOF
42185 /* confdefs.h.  */
42186 _ACEOF
42187 cat confdefs.h >>conftest.$ac_ext
42188 cat >>conftest.$ac_ext <<_ACEOF
42189 /* end confdefs.h.  */
42190
42191 #ifdef HAVE_DB_185_H
42192 # include <db_185.h>
42193 #else
42194 # include <db.h>
42195 #endif
42196
42197 #ifndef DB_VERSION_MAJOR
42198 # define DB_VERSION_MAJOR 1
42199 #endif
42200
42201 #ifndef NULL
42202 #define NULL ((void*)0)
42203 #endif
42204
42205 int
42206 main ()
42207 {
42208
42209 #if DB_VERSION_MAJOR > 1
42210         {
42211                 char *version;
42212                 int major, minor, patch;
42213
42214                 version = db_version( &major, &minor, &patch );
42215
42216                 if( major != DB_VERSION_MAJOR ||
42217                         minor < DB_VERSION_MINOR )
42218                 {
42219                         printf("Berkeley DB version mismatch\n"
42220                                 "\theader: %s\n\tlibrary: %s\n",
42221                                 DB_VERSION_STRING, version);
42222                         return 1;
42223                 }
42224         }
42225 #endif
42226
42227 #if DB_VERSION_MAJOR > 2
42228         db_env_create( NULL, 0 );
42229 #elif DB_VERSION_MAJOR > 1
42230         db_appexit( NULL );
42231 #else
42232         (void) dbopen( NULL, 0, 0, 0, NULL);
42233 #endif
42234
42235   ;
42236   return 0;
42237 }
42238 _ACEOF
42239 rm -f conftest.$ac_objext conftest$ac_exeext
42240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42241   (eval $ac_link) 2>conftest.er1
42242   ac_status=$?
42243   grep -v '^ *+' conftest.er1 >conftest.err
42244   rm -f conftest.er1
42245   cat conftest.err >&5
42246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247   (exit $ac_status); } &&
42248          { ac_try='test -z "$ac_c_werror_flag"
42249                          || test ! -s conftest.err'
42250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42251   (eval $ac_try) 2>&5
42252   ac_status=$?
42253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254   (exit $ac_status); }; } &&
42255          { ac_try='test -s conftest$ac_exeext'
42256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42257   (eval $ac_try) 2>&5
42258   ac_status=$?
42259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42260   (exit $ac_status); }; }; then
42261   ol_cv_db_db_41=yes
42262 else
42263   echo "$as_me: failed program was:" >&5
42264 sed 's/^/| /' conftest.$ac_ext >&5
42265
42266 ol_cv_db_db_41=no
42267 fi
42268 rm -f conftest.err conftest.$ac_objext \
42269       conftest$ac_exeext conftest.$ac_ext
42270
42271         LIBS="$ol_LIBS"
42272
42273 fi
42274 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42275 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42276
42277         if test $ol_cv_db_db_41 = yes ; then
42278                 ol_cv_lib_db=-ldb-41
42279         fi
42280 fi
42281
42282 if test $ol_cv_lib_db = no ; then
42283         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42284 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42285 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42286   echo $ECHO_N "(cached) $ECHO_C" >&6
42287 else
42288
42289         ol_DB_LIB=-ldb-4.1
42290         ol_LIBS=$LIBS
42291         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42292
42293         cat >conftest.$ac_ext <<_ACEOF
42294 /* confdefs.h.  */
42295 _ACEOF
42296 cat confdefs.h >>conftest.$ac_ext
42297 cat >>conftest.$ac_ext <<_ACEOF
42298 /* end confdefs.h.  */
42299
42300 #ifdef HAVE_DB_185_H
42301 # include <db_185.h>
42302 #else
42303 # include <db.h>
42304 #endif
42305
42306 #ifndef DB_VERSION_MAJOR
42307 # define DB_VERSION_MAJOR 1
42308 #endif
42309
42310 #ifndef NULL
42311 #define NULL ((void*)0)
42312 #endif
42313
42314 int
42315 main ()
42316 {
42317
42318 #if DB_VERSION_MAJOR > 1
42319         {
42320                 char *version;
42321                 int major, minor, patch;
42322
42323                 version = db_version( &major, &minor, &patch );
42324
42325                 if( major != DB_VERSION_MAJOR ||
42326                         minor < DB_VERSION_MINOR )
42327                 {
42328                         printf("Berkeley DB version mismatch\n"
42329                                 "\theader: %s\n\tlibrary: %s\n",
42330                                 DB_VERSION_STRING, version);
42331                         return 1;
42332                 }
42333         }
42334 #endif
42335
42336 #if DB_VERSION_MAJOR > 2
42337         db_env_create( NULL, 0 );
42338 #elif DB_VERSION_MAJOR > 1
42339         db_appexit( NULL );
42340 #else
42341         (void) dbopen( NULL, 0, 0, 0, NULL);
42342 #endif
42343
42344   ;
42345   return 0;
42346 }
42347 _ACEOF
42348 rm -f conftest.$ac_objext conftest$ac_exeext
42349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42350   (eval $ac_link) 2>conftest.er1
42351   ac_status=$?
42352   grep -v '^ *+' conftest.er1 >conftest.err
42353   rm -f conftest.er1
42354   cat conftest.err >&5
42355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42356   (exit $ac_status); } &&
42357          { ac_try='test -z "$ac_c_werror_flag"
42358                          || test ! -s conftest.err'
42359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42360   (eval $ac_try) 2>&5
42361   ac_status=$?
42362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42363   (exit $ac_status); }; } &&
42364          { ac_try='test -s conftest$ac_exeext'
42365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42366   (eval $ac_try) 2>&5
42367   ac_status=$?
42368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42369   (exit $ac_status); }; }; then
42370   ol_cv_db_db_4_dot_1=yes
42371 else
42372   echo "$as_me: failed program was:" >&5
42373 sed 's/^/| /' conftest.$ac_ext >&5
42374
42375 ol_cv_db_db_4_dot_1=no
42376 fi
42377 rm -f conftest.err conftest.$ac_objext \
42378       conftest$ac_exeext conftest.$ac_ext
42379
42380         LIBS="$ol_LIBS"
42381
42382 fi
42383 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42384 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42385
42386         if test $ol_cv_db_db_4_dot_1 = yes ; then
42387                 ol_cv_lib_db=-ldb-4.1
42388         fi
42389 fi
42390
42391 if test $ol_cv_lib_db = no ; then
42392         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42393 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42394 if test "${ol_cv_db_db_4_1+set}" = set; then
42395   echo $ECHO_N "(cached) $ECHO_C" >&6
42396 else
42397
42398         ol_DB_LIB=-ldb-4-1
42399         ol_LIBS=$LIBS
42400         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42401
42402         cat >conftest.$ac_ext <<_ACEOF
42403 /* confdefs.h.  */
42404 _ACEOF
42405 cat confdefs.h >>conftest.$ac_ext
42406 cat >>conftest.$ac_ext <<_ACEOF
42407 /* end confdefs.h.  */
42408
42409 #ifdef HAVE_DB_185_H
42410 # include <db_185.h>
42411 #else
42412 # include <db.h>
42413 #endif
42414
42415 #ifndef DB_VERSION_MAJOR
42416 # define DB_VERSION_MAJOR 1
42417 #endif
42418
42419 #ifndef NULL
42420 #define NULL ((void*)0)
42421 #endif
42422
42423 int
42424 main ()
42425 {
42426
42427 #if DB_VERSION_MAJOR > 1
42428         {
42429                 char *version;
42430                 int major, minor, patch;
42431
42432                 version = db_version( &major, &minor, &patch );
42433
42434                 if( major != DB_VERSION_MAJOR ||
42435                         minor < DB_VERSION_MINOR )
42436                 {
42437                         printf("Berkeley DB version mismatch\n"
42438                                 "\theader: %s\n\tlibrary: %s\n",
42439                                 DB_VERSION_STRING, version);
42440                         return 1;
42441                 }
42442         }
42443 #endif
42444
42445 #if DB_VERSION_MAJOR > 2
42446         db_env_create( NULL, 0 );
42447 #elif DB_VERSION_MAJOR > 1
42448         db_appexit( NULL );
42449 #else
42450         (void) dbopen( NULL, 0, 0, 0, NULL);
42451 #endif
42452
42453   ;
42454   return 0;
42455 }
42456 _ACEOF
42457 rm -f conftest.$ac_objext conftest$ac_exeext
42458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42459   (eval $ac_link) 2>conftest.er1
42460   ac_status=$?
42461   grep -v '^ *+' conftest.er1 >conftest.err
42462   rm -f conftest.er1
42463   cat conftest.err >&5
42464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465   (exit $ac_status); } &&
42466          { ac_try='test -z "$ac_c_werror_flag"
42467                          || test ! -s conftest.err'
42468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42469   (eval $ac_try) 2>&5
42470   ac_status=$?
42471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42472   (exit $ac_status); }; } &&
42473          { ac_try='test -s conftest$ac_exeext'
42474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42475   (eval $ac_try) 2>&5
42476   ac_status=$?
42477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478   (exit $ac_status); }; }; then
42479   ol_cv_db_db_4_1=yes
42480 else
42481   echo "$as_me: failed program was:" >&5
42482 sed 's/^/| /' conftest.$ac_ext >&5
42483
42484 ol_cv_db_db_4_1=no
42485 fi
42486 rm -f conftest.err conftest.$ac_objext \
42487       conftest$ac_exeext conftest.$ac_ext
42488
42489         LIBS="$ol_LIBS"
42490
42491 fi
42492 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42493 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42494
42495         if test $ol_cv_db_db_4_1 = yes ; then
42496                 ol_cv_lib_db=-ldb-4-1
42497         fi
42498 fi
42499
42500 if test $ol_cv_lib_db = no ; then
42501         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42502 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42503 if test "${ol_cv_db_db3+set}" = set; then
42504   echo $ECHO_N "(cached) $ECHO_C" >&6
42505 else
42506
42507         ol_DB_LIB=-ldb3
42508         ol_LIBS=$LIBS
42509         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42510
42511         cat >conftest.$ac_ext <<_ACEOF
42512 /* confdefs.h.  */
42513 _ACEOF
42514 cat confdefs.h >>conftest.$ac_ext
42515 cat >>conftest.$ac_ext <<_ACEOF
42516 /* end confdefs.h.  */
42517
42518 #ifdef HAVE_DB_185_H
42519 # include <db_185.h>
42520 #else
42521 # include <db.h>
42522 #endif
42523
42524 #ifndef DB_VERSION_MAJOR
42525 # define DB_VERSION_MAJOR 1
42526 #endif
42527
42528 #ifndef NULL
42529 #define NULL ((void*)0)
42530 #endif
42531
42532 int
42533 main ()
42534 {
42535
42536 #if DB_VERSION_MAJOR > 1
42537         {
42538                 char *version;
42539                 int major, minor, patch;
42540
42541                 version = db_version( &major, &minor, &patch );
42542
42543                 if( major != DB_VERSION_MAJOR ||
42544                         minor < DB_VERSION_MINOR )
42545                 {
42546                         printf("Berkeley DB version mismatch\n"
42547                                 "\theader: %s\n\tlibrary: %s\n",
42548                                 DB_VERSION_STRING, version);
42549                         return 1;
42550                 }
42551         }
42552 #endif
42553
42554 #if DB_VERSION_MAJOR > 2
42555         db_env_create( NULL, 0 );
42556 #elif DB_VERSION_MAJOR > 1
42557         db_appexit( NULL );
42558 #else
42559         (void) dbopen( NULL, 0, 0, 0, NULL);
42560 #endif
42561
42562   ;
42563   return 0;
42564 }
42565 _ACEOF
42566 rm -f conftest.$ac_objext conftest$ac_exeext
42567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42568   (eval $ac_link) 2>conftest.er1
42569   ac_status=$?
42570   grep -v '^ *+' conftest.er1 >conftest.err
42571   rm -f conftest.er1
42572   cat conftest.err >&5
42573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574   (exit $ac_status); } &&
42575          { ac_try='test -z "$ac_c_werror_flag"
42576                          || test ! -s conftest.err'
42577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42578   (eval $ac_try) 2>&5
42579   ac_status=$?
42580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581   (exit $ac_status); }; } &&
42582          { ac_try='test -s conftest$ac_exeext'
42583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42584   (eval $ac_try) 2>&5
42585   ac_status=$?
42586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587   (exit $ac_status); }; }; then
42588   ol_cv_db_db3=yes
42589 else
42590   echo "$as_me: failed program was:" >&5
42591 sed 's/^/| /' conftest.$ac_ext >&5
42592
42593 ol_cv_db_db3=no
42594 fi
42595 rm -f conftest.err conftest.$ac_objext \
42596       conftest$ac_exeext conftest.$ac_ext
42597
42598         LIBS="$ol_LIBS"
42599
42600 fi
42601 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42602 echo "${ECHO_T}$ol_cv_db_db3" >&6
42603
42604         if test $ol_cv_db_db3 = yes ; then
42605                 ol_cv_lib_db=-ldb3
42606         fi
42607 fi
42608
42609 if test $ol_cv_lib_db = no ; then
42610         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42611 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42612 if test "${ol_cv_db_db_3+set}" = set; then
42613   echo $ECHO_N "(cached) $ECHO_C" >&6
42614 else
42615
42616         ol_DB_LIB=-ldb-3
42617         ol_LIBS=$LIBS
42618         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42619
42620         cat >conftest.$ac_ext <<_ACEOF
42621 /* confdefs.h.  */
42622 _ACEOF
42623 cat confdefs.h >>conftest.$ac_ext
42624 cat >>conftest.$ac_ext <<_ACEOF
42625 /* end confdefs.h.  */
42626
42627 #ifdef HAVE_DB_185_H
42628 # include <db_185.h>
42629 #else
42630 # include <db.h>
42631 #endif
42632
42633 #ifndef DB_VERSION_MAJOR
42634 # define DB_VERSION_MAJOR 1
42635 #endif
42636
42637 #ifndef NULL
42638 #define NULL ((void*)0)
42639 #endif
42640
42641 int
42642 main ()
42643 {
42644
42645 #if DB_VERSION_MAJOR > 1
42646         {
42647                 char *version;
42648                 int major, minor, patch;
42649
42650                 version = db_version( &major, &minor, &patch );
42651
42652                 if( major != DB_VERSION_MAJOR ||
42653                         minor < DB_VERSION_MINOR )
42654                 {
42655                         printf("Berkeley DB version mismatch\n"
42656                                 "\theader: %s\n\tlibrary: %s\n",
42657                                 DB_VERSION_STRING, version);
42658                         return 1;
42659                 }
42660         }
42661 #endif
42662
42663 #if DB_VERSION_MAJOR > 2
42664         db_env_create( NULL, 0 );
42665 #elif DB_VERSION_MAJOR > 1
42666         db_appexit( NULL );
42667 #else
42668         (void) dbopen( NULL, 0, 0, 0, NULL);
42669 #endif
42670
42671   ;
42672   return 0;
42673 }
42674 _ACEOF
42675 rm -f conftest.$ac_objext conftest$ac_exeext
42676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42677   (eval $ac_link) 2>conftest.er1
42678   ac_status=$?
42679   grep -v '^ *+' conftest.er1 >conftest.err
42680   rm -f conftest.er1
42681   cat conftest.err >&5
42682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42683   (exit $ac_status); } &&
42684          { ac_try='test -z "$ac_c_werror_flag"
42685                          || test ! -s conftest.err'
42686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42687   (eval $ac_try) 2>&5
42688   ac_status=$?
42689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42690   (exit $ac_status); }; } &&
42691          { ac_try='test -s conftest$ac_exeext'
42692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42693   (eval $ac_try) 2>&5
42694   ac_status=$?
42695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42696   (exit $ac_status); }; }; then
42697   ol_cv_db_db_3=yes
42698 else
42699   echo "$as_me: failed program was:" >&5
42700 sed 's/^/| /' conftest.$ac_ext >&5
42701
42702 ol_cv_db_db_3=no
42703 fi
42704 rm -f conftest.err conftest.$ac_objext \
42705       conftest$ac_exeext conftest.$ac_ext
42706
42707         LIBS="$ol_LIBS"
42708
42709 fi
42710 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42711 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42712
42713         if test $ol_cv_db_db_3 = yes ; then
42714                 ol_cv_lib_db=-ldb-3
42715         fi
42716 fi
42717
42718 if test $ol_cv_lib_db = no ; then
42719         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42720 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42721 if test "${ol_cv_db_db2+set}" = set; then
42722   echo $ECHO_N "(cached) $ECHO_C" >&6
42723 else
42724
42725         ol_DB_LIB=-ldb2
42726         ol_LIBS=$LIBS
42727         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42728
42729         cat >conftest.$ac_ext <<_ACEOF
42730 /* confdefs.h.  */
42731 _ACEOF
42732 cat confdefs.h >>conftest.$ac_ext
42733 cat >>conftest.$ac_ext <<_ACEOF
42734 /* end confdefs.h.  */
42735
42736 #ifdef HAVE_DB_185_H
42737 # include <db_185.h>
42738 #else
42739 # include <db.h>
42740 #endif
42741
42742 #ifndef DB_VERSION_MAJOR
42743 # define DB_VERSION_MAJOR 1
42744 #endif
42745
42746 #ifndef NULL
42747 #define NULL ((void*)0)
42748 #endif
42749
42750 int
42751 main ()
42752 {
42753
42754 #if DB_VERSION_MAJOR > 1
42755         {
42756                 char *version;
42757                 int major, minor, patch;
42758
42759                 version = db_version( &major, &minor, &patch );
42760
42761                 if( major != DB_VERSION_MAJOR ||
42762                         minor < DB_VERSION_MINOR )
42763                 {
42764                         printf("Berkeley DB version mismatch\n"
42765                                 "\theader: %s\n\tlibrary: %s\n",
42766                                 DB_VERSION_STRING, version);
42767                         return 1;
42768                 }
42769         }
42770 #endif
42771
42772 #if DB_VERSION_MAJOR > 2
42773         db_env_create( NULL, 0 );
42774 #elif DB_VERSION_MAJOR > 1
42775         db_appexit( NULL );
42776 #else
42777         (void) dbopen( NULL, 0, 0, 0, NULL);
42778 #endif
42779
42780   ;
42781   return 0;
42782 }
42783 _ACEOF
42784 rm -f conftest.$ac_objext conftest$ac_exeext
42785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42786   (eval $ac_link) 2>conftest.er1
42787   ac_status=$?
42788   grep -v '^ *+' conftest.er1 >conftest.err
42789   rm -f conftest.er1
42790   cat conftest.err >&5
42791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42792   (exit $ac_status); } &&
42793          { ac_try='test -z "$ac_c_werror_flag"
42794                          || test ! -s conftest.err'
42795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42796   (eval $ac_try) 2>&5
42797   ac_status=$?
42798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799   (exit $ac_status); }; } &&
42800          { ac_try='test -s conftest$ac_exeext'
42801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42802   (eval $ac_try) 2>&5
42803   ac_status=$?
42804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42805   (exit $ac_status); }; }; then
42806   ol_cv_db_db2=yes
42807 else
42808   echo "$as_me: failed program was:" >&5
42809 sed 's/^/| /' conftest.$ac_ext >&5
42810
42811 ol_cv_db_db2=no
42812 fi
42813 rm -f conftest.err conftest.$ac_objext \
42814       conftest$ac_exeext conftest.$ac_ext
42815
42816         LIBS="$ol_LIBS"
42817
42818 fi
42819 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42820 echo "${ECHO_T}$ol_cv_db_db2" >&6
42821
42822         if test $ol_cv_db_db2 = yes ; then
42823                 ol_cv_lib_db=-ldb2
42824         fi
42825 fi
42826
42827 if test $ol_cv_lib_db = no ; then
42828         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42829 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42830 if test "${ol_cv_db_db_2+set}" = set; then
42831   echo $ECHO_N "(cached) $ECHO_C" >&6
42832 else
42833
42834         ol_DB_LIB=-ldb-2
42835         ol_LIBS=$LIBS
42836         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42837
42838         cat >conftest.$ac_ext <<_ACEOF
42839 /* confdefs.h.  */
42840 _ACEOF
42841 cat confdefs.h >>conftest.$ac_ext
42842 cat >>conftest.$ac_ext <<_ACEOF
42843 /* end confdefs.h.  */
42844
42845 #ifdef HAVE_DB_185_H
42846 # include <db_185.h>
42847 #else
42848 # include <db.h>
42849 #endif
42850
42851 #ifndef DB_VERSION_MAJOR
42852 # define DB_VERSION_MAJOR 1
42853 #endif
42854
42855 #ifndef NULL
42856 #define NULL ((void*)0)
42857 #endif
42858
42859 int
42860 main ()
42861 {
42862
42863 #if DB_VERSION_MAJOR > 1
42864         {
42865                 char *version;
42866                 int major, minor, patch;
42867
42868                 version = db_version( &major, &minor, &patch );
42869
42870                 if( major != DB_VERSION_MAJOR ||
42871                         minor < DB_VERSION_MINOR )
42872                 {
42873                         printf("Berkeley DB version mismatch\n"
42874                                 "\theader: %s\n\tlibrary: %s\n",
42875                                 DB_VERSION_STRING, version);
42876                         return 1;
42877                 }
42878         }
42879 #endif
42880
42881 #if DB_VERSION_MAJOR > 2
42882         db_env_create( NULL, 0 );
42883 #elif DB_VERSION_MAJOR > 1
42884         db_appexit( NULL );
42885 #else
42886         (void) dbopen( NULL, 0, 0, 0, NULL);
42887 #endif
42888
42889   ;
42890   return 0;
42891 }
42892 _ACEOF
42893 rm -f conftest.$ac_objext conftest$ac_exeext
42894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42895   (eval $ac_link) 2>conftest.er1
42896   ac_status=$?
42897   grep -v '^ *+' conftest.er1 >conftest.err
42898   rm -f conftest.er1
42899   cat conftest.err >&5
42900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42901   (exit $ac_status); } &&
42902          { ac_try='test -z "$ac_c_werror_flag"
42903                          || test ! -s conftest.err'
42904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42905   (eval $ac_try) 2>&5
42906   ac_status=$?
42907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908   (exit $ac_status); }; } &&
42909          { ac_try='test -s conftest$ac_exeext'
42910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42911   (eval $ac_try) 2>&5
42912   ac_status=$?
42913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914   (exit $ac_status); }; }; then
42915   ol_cv_db_db_2=yes
42916 else
42917   echo "$as_me: failed program was:" >&5
42918 sed 's/^/| /' conftest.$ac_ext >&5
42919
42920 ol_cv_db_db_2=no
42921 fi
42922 rm -f conftest.err conftest.$ac_objext \
42923       conftest$ac_exeext conftest.$ac_ext
42924
42925         LIBS="$ol_LIBS"
42926
42927 fi
42928 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42929 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42930
42931         if test $ol_cv_db_db_2 = yes ; then
42932                 ol_cv_lib_db=-ldb-2
42933         fi
42934 fi
42935
42936 if test $ol_cv_lib_db = no ; then
42937         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42938 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42939 if test "${ol_cv_db_db1+set}" = set; then
42940   echo $ECHO_N "(cached) $ECHO_C" >&6
42941 else
42942
42943         ol_DB_LIB=-ldb1
42944         ol_LIBS=$LIBS
42945         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42946
42947         cat >conftest.$ac_ext <<_ACEOF
42948 /* confdefs.h.  */
42949 _ACEOF
42950 cat confdefs.h >>conftest.$ac_ext
42951 cat >>conftest.$ac_ext <<_ACEOF
42952 /* end confdefs.h.  */
42953
42954 #ifdef HAVE_DB_185_H
42955 # include <db_185.h>
42956 #else
42957 # include <db.h>
42958 #endif
42959
42960 #ifndef DB_VERSION_MAJOR
42961 # define DB_VERSION_MAJOR 1
42962 #endif
42963
42964 #ifndef NULL
42965 #define NULL ((void*)0)
42966 #endif
42967
42968 int
42969 main ()
42970 {
42971
42972 #if DB_VERSION_MAJOR > 1
42973         {
42974                 char *version;
42975                 int major, minor, patch;
42976
42977                 version = db_version( &major, &minor, &patch );
42978
42979                 if( major != DB_VERSION_MAJOR ||
42980                         minor < DB_VERSION_MINOR )
42981                 {
42982                         printf("Berkeley DB version mismatch\n"
42983                                 "\theader: %s\n\tlibrary: %s\n",
42984                                 DB_VERSION_STRING, version);
42985                         return 1;
42986                 }
42987         }
42988 #endif
42989
42990 #if DB_VERSION_MAJOR > 2
42991         db_env_create( NULL, 0 );
42992 #elif DB_VERSION_MAJOR > 1
42993         db_appexit( NULL );
42994 #else
42995         (void) dbopen( NULL, 0, 0, 0, NULL);
42996 #endif
42997
42998   ;
42999   return 0;
43000 }
43001 _ACEOF
43002 rm -f conftest.$ac_objext conftest$ac_exeext
43003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43004   (eval $ac_link) 2>conftest.er1
43005   ac_status=$?
43006   grep -v '^ *+' conftest.er1 >conftest.err
43007   rm -f conftest.er1
43008   cat conftest.err >&5
43009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010   (exit $ac_status); } &&
43011          { ac_try='test -z "$ac_c_werror_flag"
43012                          || test ! -s conftest.err'
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); }; } &&
43018          { ac_try='test -s conftest$ac_exeext'
43019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43020   (eval $ac_try) 2>&5
43021   ac_status=$?
43022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43023   (exit $ac_status); }; }; then
43024   ol_cv_db_db1=yes
43025 else
43026   echo "$as_me: failed program was:" >&5
43027 sed 's/^/| /' conftest.$ac_ext >&5
43028
43029 ol_cv_db_db1=no
43030 fi
43031 rm -f conftest.err conftest.$ac_objext \
43032       conftest$ac_exeext conftest.$ac_ext
43033
43034         LIBS="$ol_LIBS"
43035
43036 fi
43037 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
43038 echo "${ECHO_T}$ol_cv_db_db1" >&6
43039
43040         if test $ol_cv_db_db1 = yes ; then
43041                 ol_cv_lib_db=-ldb1
43042         fi
43043 fi
43044
43045 if test $ol_cv_lib_db = no ; then
43046         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
43047 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
43048 if test "${ol_cv_db_db_1+set}" = set; then
43049   echo $ECHO_N "(cached) $ECHO_C" >&6
43050 else
43051
43052         ol_DB_LIB=-ldb-1
43053         ol_LIBS=$LIBS
43054         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
43055
43056         cat >conftest.$ac_ext <<_ACEOF
43057 /* confdefs.h.  */
43058 _ACEOF
43059 cat confdefs.h >>conftest.$ac_ext
43060 cat >>conftest.$ac_ext <<_ACEOF
43061 /* end confdefs.h.  */
43062
43063 #ifdef HAVE_DB_185_H
43064 # include <db_185.h>
43065 #else
43066 # include <db.h>
43067 #endif
43068
43069 #ifndef DB_VERSION_MAJOR
43070 # define DB_VERSION_MAJOR 1
43071 #endif
43072
43073 #ifndef NULL
43074 #define NULL ((void*)0)
43075 #endif
43076
43077 int
43078 main ()
43079 {
43080
43081 #if DB_VERSION_MAJOR > 1
43082         {
43083                 char *version;
43084                 int major, minor, patch;
43085
43086                 version = db_version( &major, &minor, &patch );
43087
43088                 if( major != DB_VERSION_MAJOR ||
43089                         minor < DB_VERSION_MINOR )
43090                 {
43091                         printf("Berkeley DB version mismatch\n"
43092                                 "\theader: %s\n\tlibrary: %s\n",
43093                                 DB_VERSION_STRING, version);
43094                         return 1;
43095                 }
43096         }
43097 #endif
43098
43099 #if DB_VERSION_MAJOR > 2
43100         db_env_create( NULL, 0 );
43101 #elif DB_VERSION_MAJOR > 1
43102         db_appexit( NULL );
43103 #else
43104         (void) dbopen( NULL, 0, 0, 0, NULL);
43105 #endif
43106
43107   ;
43108   return 0;
43109 }
43110 _ACEOF
43111 rm -f conftest.$ac_objext conftest$ac_exeext
43112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43113   (eval $ac_link) 2>conftest.er1
43114   ac_status=$?
43115   grep -v '^ *+' conftest.er1 >conftest.err
43116   rm -f conftest.er1
43117   cat conftest.err >&5
43118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119   (exit $ac_status); } &&
43120          { ac_try='test -z "$ac_c_werror_flag"
43121                          || test ! -s conftest.err'
43122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43123   (eval $ac_try) 2>&5
43124   ac_status=$?
43125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43126   (exit $ac_status); }; } &&
43127          { ac_try='test -s conftest$ac_exeext'
43128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43129   (eval $ac_try) 2>&5
43130   ac_status=$?
43131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132   (exit $ac_status); }; }; then
43133   ol_cv_db_db_1=yes
43134 else
43135   echo "$as_me: failed program was:" >&5
43136 sed 's/^/| /' conftest.$ac_ext >&5
43137
43138 ol_cv_db_db_1=no
43139 fi
43140 rm -f conftest.err conftest.$ac_objext \
43141       conftest$ac_exeext conftest.$ac_ext
43142
43143         LIBS="$ol_LIBS"
43144
43145 fi
43146 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43147 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43148
43149         if test $ol_cv_db_db_1 = yes ; then
43150                 ol_cv_lib_db=-ldb-1
43151         fi
43152 fi
43153
43154
43155         if test "$ol_cv_lib_db" != no ; then
43156                 ol_cv_berkeley_db=yes
43157                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43158 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43159 if test "${ol_cv_berkeley_db_version+set}" = set; then
43160   echo $ECHO_N "(cached) $ECHO_C" >&6
43161 else
43162
43163         ol_LIBS="$LIBS"
43164         LIBS="$LTHREAD_LIBS $LIBS"
43165         if test $ol_cv_lib_db != yes ; then
43166                 LIBS="$ol_cv_lib_db $LIBS"
43167         fi
43168
43169         if test "$cross_compiling" = yes; then
43170   ol_cv_berkeley_db_version=cross
43171 else
43172   cat >conftest.$ac_ext <<_ACEOF
43173 /* confdefs.h.  */
43174 _ACEOF
43175 cat confdefs.h >>conftest.$ac_ext
43176 cat >>conftest.$ac_ext <<_ACEOF
43177 /* end confdefs.h.  */
43178
43179 #ifdef HAVE_DB_185_H
43180         choke me;
43181 #else
43182 #include <db.h>
43183 #endif
43184 #ifndef DB_VERSION_MAJOR
43185 # define DB_VERSION_MAJOR 1
43186 #endif
43187 #ifndef NULL
43188 #define NULL ((void *)0)
43189 #endif
43190 main()
43191 {
43192 #if DB_VERSION_MAJOR > 1
43193         char *version;
43194         int major, minor, patch;
43195
43196         version = db_version( &major, &minor, &patch );
43197
43198         if( major != DB_VERSION_MAJOR ||
43199                 minor != DB_VERSION_MINOR ||
43200                 patch != DB_VERSION_PATCH )
43201         {
43202                 printf("Berkeley DB version mismatch\n"
43203                         "\theader: %s\n\tlibrary: %s\n",
43204                         DB_VERSION_STRING, version);
43205                 return 1;
43206         }
43207 #endif
43208
43209         return 0;
43210 }
43211 _ACEOF
43212 rm -f conftest$ac_exeext
43213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43214   (eval $ac_link) 2>&5
43215   ac_status=$?
43216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43219   (eval $ac_try) 2>&5
43220   ac_status=$?
43221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222   (exit $ac_status); }; }; then
43223   ol_cv_berkeley_db_version=yes
43224 else
43225   echo "$as_me: program exited with status $ac_status" >&5
43226 echo "$as_me: failed program was:" >&5
43227 sed 's/^/| /' conftest.$ac_ext >&5
43228
43229 ( exit $ac_status )
43230 ol_cv_berkeley_db_version=no
43231 fi
43232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43233 fi
43234
43235         LIBS="$ol_LIBS"
43236
43237 fi
43238 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43239 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43240
43241         if test $ol_cv_berkeley_db_version = no ; then
43242                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43243 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43244    { (exit 1); exit 1; }; }
43245         fi
43246
43247                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43248 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43249 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43250   echo $ECHO_N "(cached) $ECHO_C" >&6
43251 else
43252
43253         ol_LIBS="$LIBS"
43254         LIBS="$LTHREAD_LIBS $LIBS"
43255         if test $ol_cv_lib_db != yes ; then
43256                 LIBS="$ol_cv_lib_db $LIBS"
43257         fi
43258
43259         if test "$cross_compiling" = yes; then
43260   ol_cv_berkeley_db_thread=cross
43261 else
43262   cat >conftest.$ac_ext <<_ACEOF
43263 /* confdefs.h.  */
43264 _ACEOF
43265 cat confdefs.h >>conftest.$ac_ext
43266 cat >>conftest.$ac_ext <<_ACEOF
43267 /* end confdefs.h.  */
43268
43269 #ifdef HAVE_DB_185_H
43270         choke me;
43271 #else
43272 #include <db.h>
43273 #endif
43274 #ifndef NULL
43275 #define NULL ((void *)0)
43276 #endif
43277 main()
43278 {
43279         int rc;
43280         u_int32_t flags = DB_CREATE |
43281 #ifdef DB_PRIVATE
43282                 DB_PRIVATE |
43283 #endif
43284                 DB_THREAD;
43285
43286 #if DB_VERSION_MAJOR > 2
43287         DB_ENV *env = NULL;
43288
43289         rc = db_env_create( &env, 0 );
43290
43291         flags |= DB_INIT_MPOOL;
43292 #ifdef DB_MPOOL_PRIVATE
43293         flags |= DB_MPOOL_PRIVATE;
43294 #endif
43295
43296         if( rc ) {
43297                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43298                 return rc;
43299         }
43300
43301 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43302         rc = env->open( env, NULL, flags, 0 );
43303 #else
43304         rc = env->open( env, NULL, NULL, flags, 0 );
43305 #endif
43306
43307         if ( rc == 0 ) {
43308                 rc = env->close( env, 0 );
43309         }
43310
43311         if( rc ) {
43312                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43313                 return rc;
43314         }
43315
43316 #else
43317         DB_ENV env;
43318         memset( &env, '\0', sizeof(env) );
43319
43320         rc = db_appinit( NULL, NULL, &env, flags );
43321
43322         if( rc == 0 ) {
43323                 db_appexit( &env );
43324         }
43325
43326         unlink("__db_mpool.share");
43327         unlink("__db_lock.share");
43328 #endif
43329
43330         return rc;
43331 }
43332 _ACEOF
43333 rm -f conftest$ac_exeext
43334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43335   (eval $ac_link) 2>&5
43336   ac_status=$?
43337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43340   (eval $ac_try) 2>&5
43341   ac_status=$?
43342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43343   (exit $ac_status); }; }; then
43344   ol_cv_berkeley_db_thread=yes
43345 else
43346   echo "$as_me: program exited with status $ac_status" >&5
43347 echo "$as_me: failed program was:" >&5
43348 sed 's/^/| /' conftest.$ac_ext >&5
43349
43350 ( exit $ac_status )
43351 ol_cv_berkeley_db_thread=no
43352 fi
43353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43354 fi
43355
43356         LIBS="$ol_LIBS"
43357
43358 fi
43359 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43360 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43361
43362         if test $ol_cv_berkeley_db_thread != no ; then
43363
43364 cat >>confdefs.h <<\_ACEOF
43365 #define HAVE_BERKELEY_DB_THREAD 1
43366 _ACEOF
43367
43368         fi
43369
43370         fi
43371 fi
43372
43373         fi
43374
43375         if test $ol_cv_berkeley_db != no ; then
43376
43377 cat >>confdefs.h <<\_ACEOF
43378 #define HAVE_BERKELEY_DB 1
43379 _ACEOF
43380
43381
43382                 ol_link_ldbm=berkeley
43383                 ol_enable_ldbm_api=berkeley
43384
43385                 if test $ol_enable_ldbm_type = hash ; then
43386
43387 cat >>confdefs.h <<\_ACEOF
43388 #define LDBM_USE_DBHASH 1
43389 _ACEOF
43390
43391                 else
43392
43393 cat >>confdefs.h <<\_ACEOF
43394 #define LDBM_USE_DBBTREE 1
43395 _ACEOF
43396
43397                 fi
43398
43399                                                 if test $ol_cv_lib_db != yes ; then
43400                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43401                 fi
43402         fi
43403 fi
43404
43405 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43406         if test $ol_link_ldbm != berkeley ; then
43407                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43408 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43409    { (exit 1); exit 1; }; }
43410         else
43411                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43412 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43413 if test "${ol_cv_bdb_compat+set}" = set; then
43414   echo $ECHO_N "(cached) $ECHO_C" >&6
43415 else
43416
43417         cat >conftest.$ac_ext <<_ACEOF
43418 /* confdefs.h.  */
43419 _ACEOF
43420 cat confdefs.h >>conftest.$ac_ext
43421 cat >>conftest.$ac_ext <<_ACEOF
43422 /* end confdefs.h.  */
43423
43424 #include <db.h>
43425
43426  /* this check could be improved */
43427 #ifndef DB_VERSION_MAJOR
43428 #       define DB_VERSION_MAJOR 1
43429 #endif
43430 #ifndef DB_VERSION_MINOR
43431 #       define DB_VERSION_MINOR 0
43432 #endif
43433
43434 /* require 4.2 or later */
43435 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43436         __db_version_compat
43437 #endif
43438
43439 _ACEOF
43440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43441   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43442   ol_cv_bdb_compat=yes
43443 else
43444   ol_cv_bdb_compat=no
43445 fi
43446 rm -f conftest*
43447
43448 fi
43449 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43450 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43451
43452
43453                 if test $ol_cv_bdb_compat != yes ; then
43454                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43455 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43456    { (exit 1); exit 1; }; }
43457                 fi
43458         fi
43459 fi
43460
43461 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
43462         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43463 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43464         ol_enable_ldbm_api=none
43465 fi
43466
43467 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
43468         echo "$as_me:$LINENO: checking for MDBM library" >&5
43469 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43470 if test "${ol_cv_lib_mdbm+set}" = set; then
43471   echo $ECHO_N "(cached) $ECHO_C" >&6
43472 else
43473         ol_LIBS="$LIBS"
43474         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43475 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43476 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43477   echo $ECHO_N "(cached) $ECHO_C" >&6
43478 else
43479   cat >conftest.$ac_ext <<_ACEOF
43480 /* confdefs.h.  */
43481 _ACEOF
43482 cat confdefs.h >>conftest.$ac_ext
43483 cat >>conftest.$ac_ext <<_ACEOF
43484 /* end confdefs.h.  */
43485 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43487 #define mdbm_set_chain innocuous_mdbm_set_chain
43488
43489 /* System header to define __stub macros and hopefully few prototypes,
43490     which can conflict with char mdbm_set_chain (); below.
43491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43492     <limits.h> exists even on freestanding compilers.  */
43493
43494 #ifdef __STDC__
43495 # include <limits.h>
43496 #else
43497 # include <assert.h>
43498 #endif
43499
43500 #undef mdbm_set_chain
43501
43502 /* Override any gcc2 internal prototype to avoid an error.  */
43503 #ifdef __cplusplus
43504 extern "C"
43505 {
43506 #endif
43507 /* We use char because int might match the return type of a gcc2
43508    builtin and then its argument prototype would still apply.  */
43509 char mdbm_set_chain ();
43510 /* The GNU C library defines this for functions which it implements
43511     to always fail with ENOSYS.  Some functions are actually named
43512     something starting with __ and the normal name is an alias.  */
43513 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43514 choke me
43515 #else
43516 char (*f) () = mdbm_set_chain;
43517 #endif
43518 #ifdef __cplusplus
43519 }
43520 #endif
43521
43522 int
43523 main ()
43524 {
43525 return f != mdbm_set_chain;
43526   ;
43527   return 0;
43528 }
43529 _ACEOF
43530 rm -f conftest.$ac_objext conftest$ac_exeext
43531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43532   (eval $ac_link) 2>conftest.er1
43533   ac_status=$?
43534   grep -v '^ *+' conftest.er1 >conftest.err
43535   rm -f conftest.er1
43536   cat conftest.err >&5
43537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43538   (exit $ac_status); } &&
43539          { ac_try='test -z "$ac_c_werror_flag"
43540                          || test ! -s conftest.err'
43541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43542   (eval $ac_try) 2>&5
43543   ac_status=$?
43544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43545   (exit $ac_status); }; } &&
43546          { ac_try='test -s conftest$ac_exeext'
43547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43548   (eval $ac_try) 2>&5
43549   ac_status=$?
43550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551   (exit $ac_status); }; }; then
43552   ac_cv_func_mdbm_set_chain=yes
43553 else
43554   echo "$as_me: failed program was:" >&5
43555 sed 's/^/| /' conftest.$ac_ext >&5
43556
43557 ac_cv_func_mdbm_set_chain=no
43558 fi
43559 rm -f conftest.err conftest.$ac_objext \
43560       conftest$ac_exeext conftest.$ac_ext
43561 fi
43562 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43563 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43564 if test $ac_cv_func_mdbm_set_chain = yes; then
43565   ol_cv_lib_mdbm=yes
43566 else
43567
43568                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43569 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43570 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43571   echo $ECHO_N "(cached) $ECHO_C" >&6
43572 else
43573   ac_check_lib_save_LIBS=$LIBS
43574 LIBS="-lmdbm  $LIBS"
43575 cat >conftest.$ac_ext <<_ACEOF
43576 /* confdefs.h.  */
43577 _ACEOF
43578 cat confdefs.h >>conftest.$ac_ext
43579 cat >>conftest.$ac_ext <<_ACEOF
43580 /* end confdefs.h.  */
43581
43582 /* Override any gcc2 internal prototype to avoid an error.  */
43583 #ifdef __cplusplus
43584 extern "C"
43585 #endif
43586 /* We use char because int might match the return type of a gcc2
43587    builtin and then its argument prototype would still apply.  */
43588 char mdbm_set_chain ();
43589 int
43590 main ()
43591 {
43592 mdbm_set_chain ();
43593   ;
43594   return 0;
43595 }
43596 _ACEOF
43597 rm -f conftest.$ac_objext conftest$ac_exeext
43598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43599   (eval $ac_link) 2>conftest.er1
43600   ac_status=$?
43601   grep -v '^ *+' conftest.er1 >conftest.err
43602   rm -f conftest.er1
43603   cat conftest.err >&5
43604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605   (exit $ac_status); } &&
43606          { ac_try='test -z "$ac_c_werror_flag"
43607                          || test ! -s conftest.err'
43608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43609   (eval $ac_try) 2>&5
43610   ac_status=$?
43611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43612   (exit $ac_status); }; } &&
43613          { ac_try='test -s conftest$ac_exeext'
43614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43615   (eval $ac_try) 2>&5
43616   ac_status=$?
43617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618   (exit $ac_status); }; }; then
43619   ac_cv_lib_mdbm_mdbm_set_chain=yes
43620 else
43621   echo "$as_me: failed program was:" >&5
43622 sed 's/^/| /' conftest.$ac_ext >&5
43623
43624 ac_cv_lib_mdbm_mdbm_set_chain=no
43625 fi
43626 rm -f conftest.err conftest.$ac_objext \
43627       conftest$ac_exeext conftest.$ac_ext
43628 LIBS=$ac_check_lib_save_LIBS
43629 fi
43630 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43631 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43632 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43633   ol_cv_lib_mdbm=-lmdbm
43634 else
43635   ol_cv_lib_mdbm=no
43636 fi
43637
43638
43639 fi
43640
43641         LIBS="$ol_LIBS"
43642
43643 fi
43644 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43645 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43646
43647
43648
43649 for ac_header in mdbm.h
43650 do
43651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43653   echo "$as_me:$LINENO: checking for $ac_header" >&5
43654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43656   echo $ECHO_N "(cached) $ECHO_C" >&6
43657 fi
43658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43660 else
43661   # Is the header compilable?
43662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43664 cat >conftest.$ac_ext <<_ACEOF
43665 /* confdefs.h.  */
43666 _ACEOF
43667 cat confdefs.h >>conftest.$ac_ext
43668 cat >>conftest.$ac_ext <<_ACEOF
43669 /* end confdefs.h.  */
43670 $ac_includes_default
43671 #include <$ac_header>
43672 _ACEOF
43673 rm -f conftest.$ac_objext
43674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43675   (eval $ac_compile) 2>conftest.er1
43676   ac_status=$?
43677   grep -v '^ *+' conftest.er1 >conftest.err
43678   rm -f conftest.er1
43679   cat conftest.err >&5
43680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43681   (exit $ac_status); } &&
43682          { ac_try='test -z "$ac_c_werror_flag"
43683                          || test ! -s conftest.err'
43684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43685   (eval $ac_try) 2>&5
43686   ac_status=$?
43687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43688   (exit $ac_status); }; } &&
43689          { ac_try='test -s conftest.$ac_objext'
43690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43691   (eval $ac_try) 2>&5
43692   ac_status=$?
43693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694   (exit $ac_status); }; }; then
43695   ac_header_compiler=yes
43696 else
43697   echo "$as_me: failed program was:" >&5
43698 sed 's/^/| /' conftest.$ac_ext >&5
43699
43700 ac_header_compiler=no
43701 fi
43702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43704 echo "${ECHO_T}$ac_header_compiler" >&6
43705
43706 # Is the header present?
43707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43709 cat >conftest.$ac_ext <<_ACEOF
43710 /* confdefs.h.  */
43711 _ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h.  */
43715 #include <$ac_header>
43716 _ACEOF
43717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43718   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43719   ac_status=$?
43720   grep -v '^ *+' conftest.er1 >conftest.err
43721   rm -f conftest.er1
43722   cat conftest.err >&5
43723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43724   (exit $ac_status); } >/dev/null; then
43725   if test -s conftest.err; then
43726     ac_cpp_err=$ac_c_preproc_warn_flag
43727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43728   else
43729     ac_cpp_err=
43730   fi
43731 else
43732   ac_cpp_err=yes
43733 fi
43734 if test -z "$ac_cpp_err"; then
43735   ac_header_preproc=yes
43736 else
43737   echo "$as_me: failed program was:" >&5
43738 sed 's/^/| /' conftest.$ac_ext >&5
43739
43740   ac_header_preproc=no
43741 fi
43742 rm -f conftest.err conftest.$ac_ext
43743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43744 echo "${ECHO_T}$ac_header_preproc" >&6
43745
43746 # So?  What about this header?
43747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43748   yes:no: )
43749     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43753     ac_header_preproc=yes
43754     ;;
43755   no:yes:* )
43756     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43758     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43759 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43760     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43762     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43763 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43766     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43768     (
43769       cat <<\_ASBOX
43770 ## ------------------------------------------ ##
43771 ## Report this to the AC_PACKAGE_NAME lists.  ##
43772 ## ------------------------------------------ ##
43773 _ASBOX
43774     ) |
43775       sed "s/^/$as_me: WARNING:     /" >&2
43776     ;;
43777 esac
43778 echo "$as_me:$LINENO: checking for $ac_header" >&5
43779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43781   echo $ECHO_N "(cached) $ECHO_C" >&6
43782 else
43783   eval "$as_ac_Header=\$ac_header_preproc"
43784 fi
43785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43787
43788 fi
43789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43790   cat >>confdefs.h <<_ACEOF
43791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43792 _ACEOF
43793
43794 fi
43795
43796 done
43797
43798  echo "$as_me:$LINENO: checking for db" >&5
43799 echo $ECHO_N "checking for db... $ECHO_C" >&6
43800 if test "${ol_cv_mdbm+set}" = set; then
43801   echo $ECHO_N "(cached) $ECHO_C" >&6
43802 else
43803
43804         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43805                 ol_cv_mdbm=no
43806         else
43807                 ol_cv_mdbm=yes
43808         fi
43809
43810 fi
43811 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43812 echo "${ECHO_T}$ol_cv_mdbm" >&6
43813  if test $ol_cv_mdbm = yes ; then
43814
43815 cat >>confdefs.h <<\_ACEOF
43816 #define HAVE_MDBM 1
43817 _ACEOF
43818
43819  fi
43820
43821
43822         if test $ol_cv_mdbm = yes ; then
43823                 ol_link_ldbm=mdbm
43824                 ol_enable_ldbm_api=mdbm
43825                 if test $ol_cv_lib_mdbm != yes ; then
43826                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43827                 fi
43828         fi
43829 fi
43830
43831 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
43832         echo "$as_me:$LINENO: checking for GDBM library" >&5
43833 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43834 if test "${ol_cv_lib_gdbm+set}" = set; then
43835   echo $ECHO_N "(cached) $ECHO_C" >&6
43836 else
43837         ol_LIBS="$LIBS"
43838         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43839 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43840 if test "${ac_cv_func_gdbm_open+set}" = set; then
43841   echo $ECHO_N "(cached) $ECHO_C" >&6
43842 else
43843   cat >conftest.$ac_ext <<_ACEOF
43844 /* confdefs.h.  */
43845 _ACEOF
43846 cat confdefs.h >>conftest.$ac_ext
43847 cat >>conftest.$ac_ext <<_ACEOF
43848 /* end confdefs.h.  */
43849 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43851 #define gdbm_open innocuous_gdbm_open
43852
43853 /* System header to define __stub macros and hopefully few prototypes,
43854     which can conflict with char gdbm_open (); below.
43855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43856     <limits.h> exists even on freestanding compilers.  */
43857
43858 #ifdef __STDC__
43859 # include <limits.h>
43860 #else
43861 # include <assert.h>
43862 #endif
43863
43864 #undef gdbm_open
43865
43866 /* Override any gcc2 internal prototype to avoid an error.  */
43867 #ifdef __cplusplus
43868 extern "C"
43869 {
43870 #endif
43871 /* We use char because int might match the return type of a gcc2
43872    builtin and then its argument prototype would still apply.  */
43873 char gdbm_open ();
43874 /* The GNU C library defines this for functions which it implements
43875     to always fail with ENOSYS.  Some functions are actually named
43876     something starting with __ and the normal name is an alias.  */
43877 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43878 choke me
43879 #else
43880 char (*f) () = gdbm_open;
43881 #endif
43882 #ifdef __cplusplus
43883 }
43884 #endif
43885
43886 int
43887 main ()
43888 {
43889 return f != gdbm_open;
43890   ;
43891   return 0;
43892 }
43893 _ACEOF
43894 rm -f conftest.$ac_objext conftest$ac_exeext
43895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43896   (eval $ac_link) 2>conftest.er1
43897   ac_status=$?
43898   grep -v '^ *+' conftest.er1 >conftest.err
43899   rm -f conftest.er1
43900   cat conftest.err >&5
43901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43902   (exit $ac_status); } &&
43903          { ac_try='test -z "$ac_c_werror_flag"
43904                          || test ! -s conftest.err'
43905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43906   (eval $ac_try) 2>&5
43907   ac_status=$?
43908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43909   (exit $ac_status); }; } &&
43910          { ac_try='test -s conftest$ac_exeext'
43911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43912   (eval $ac_try) 2>&5
43913   ac_status=$?
43914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43915   (exit $ac_status); }; }; then
43916   ac_cv_func_gdbm_open=yes
43917 else
43918   echo "$as_me: failed program was:" >&5
43919 sed 's/^/| /' conftest.$ac_ext >&5
43920
43921 ac_cv_func_gdbm_open=no
43922 fi
43923 rm -f conftest.err conftest.$ac_objext \
43924       conftest$ac_exeext conftest.$ac_ext
43925 fi
43926 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43927 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43928 if test $ac_cv_func_gdbm_open = yes; then
43929   ol_cv_lib_gdbm=yes
43930 else
43931
43932                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43933 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43934 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43935   echo $ECHO_N "(cached) $ECHO_C" >&6
43936 else
43937   ac_check_lib_save_LIBS=$LIBS
43938 LIBS="-lgdbm  $LIBS"
43939 cat >conftest.$ac_ext <<_ACEOF
43940 /* confdefs.h.  */
43941 _ACEOF
43942 cat confdefs.h >>conftest.$ac_ext
43943 cat >>conftest.$ac_ext <<_ACEOF
43944 /* end confdefs.h.  */
43945
43946 /* Override any gcc2 internal prototype to avoid an error.  */
43947 #ifdef __cplusplus
43948 extern "C"
43949 #endif
43950 /* We use char because int might match the return type of a gcc2
43951    builtin and then its argument prototype would still apply.  */
43952 char gdbm_open ();
43953 int
43954 main ()
43955 {
43956 gdbm_open ();
43957   ;
43958   return 0;
43959 }
43960 _ACEOF
43961 rm -f conftest.$ac_objext conftest$ac_exeext
43962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43963   (eval $ac_link) 2>conftest.er1
43964   ac_status=$?
43965   grep -v '^ *+' conftest.er1 >conftest.err
43966   rm -f conftest.er1
43967   cat conftest.err >&5
43968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43969   (exit $ac_status); } &&
43970          { ac_try='test -z "$ac_c_werror_flag"
43971                          || test ! -s conftest.err'
43972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43973   (eval $ac_try) 2>&5
43974   ac_status=$?
43975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43976   (exit $ac_status); }; } &&
43977          { ac_try='test -s conftest$ac_exeext'
43978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43979   (eval $ac_try) 2>&5
43980   ac_status=$?
43981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43982   (exit $ac_status); }; }; then
43983   ac_cv_lib_gdbm_gdbm_open=yes
43984 else
43985   echo "$as_me: failed program was:" >&5
43986 sed 's/^/| /' conftest.$ac_ext >&5
43987
43988 ac_cv_lib_gdbm_gdbm_open=no
43989 fi
43990 rm -f conftest.err conftest.$ac_objext \
43991       conftest$ac_exeext conftest.$ac_ext
43992 LIBS=$ac_check_lib_save_LIBS
43993 fi
43994 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43995 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43996 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43997   ol_cv_lib_gdbm=-lgdbm
43998 else
43999   ol_cv_lib_gdbm=no
44000 fi
44001
44002
44003 fi
44004
44005         LIBS="$ol_LIBS"
44006
44007 fi
44008 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
44009 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
44010
44011
44012
44013 for ac_header in gdbm.h
44014 do
44015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44017   echo "$as_me:$LINENO: checking for $ac_header" >&5
44018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44020   echo $ECHO_N "(cached) $ECHO_C" >&6
44021 fi
44022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44024 else
44025   # Is the header compilable?
44026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44028 cat >conftest.$ac_ext <<_ACEOF
44029 /* confdefs.h.  */
44030 _ACEOF
44031 cat confdefs.h >>conftest.$ac_ext
44032 cat >>conftest.$ac_ext <<_ACEOF
44033 /* end confdefs.h.  */
44034 $ac_includes_default
44035 #include <$ac_header>
44036 _ACEOF
44037 rm -f conftest.$ac_objext
44038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44039   (eval $ac_compile) 2>conftest.er1
44040   ac_status=$?
44041   grep -v '^ *+' conftest.er1 >conftest.err
44042   rm -f conftest.er1
44043   cat conftest.err >&5
44044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44045   (exit $ac_status); } &&
44046          { ac_try='test -z "$ac_c_werror_flag"
44047                          || test ! -s conftest.err'
44048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44049   (eval $ac_try) 2>&5
44050   ac_status=$?
44051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052   (exit $ac_status); }; } &&
44053          { ac_try='test -s conftest.$ac_objext'
44054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44055   (eval $ac_try) 2>&5
44056   ac_status=$?
44057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44058   (exit $ac_status); }; }; then
44059   ac_header_compiler=yes
44060 else
44061   echo "$as_me: failed program was:" >&5
44062 sed 's/^/| /' conftest.$ac_ext >&5
44063
44064 ac_header_compiler=no
44065 fi
44066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44068 echo "${ECHO_T}$ac_header_compiler" >&6
44069
44070 # Is the header present?
44071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44073 cat >conftest.$ac_ext <<_ACEOF
44074 /* confdefs.h.  */
44075 _ACEOF
44076 cat confdefs.h >>conftest.$ac_ext
44077 cat >>conftest.$ac_ext <<_ACEOF
44078 /* end confdefs.h.  */
44079 #include <$ac_header>
44080 _ACEOF
44081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44083   ac_status=$?
44084   grep -v '^ *+' conftest.er1 >conftest.err
44085   rm -f conftest.er1
44086   cat conftest.err >&5
44087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44088   (exit $ac_status); } >/dev/null; then
44089   if test -s conftest.err; then
44090     ac_cpp_err=$ac_c_preproc_warn_flag
44091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44092   else
44093     ac_cpp_err=
44094   fi
44095 else
44096   ac_cpp_err=yes
44097 fi
44098 if test -z "$ac_cpp_err"; then
44099   ac_header_preproc=yes
44100 else
44101   echo "$as_me: failed program was:" >&5
44102 sed 's/^/| /' conftest.$ac_ext >&5
44103
44104   ac_header_preproc=no
44105 fi
44106 rm -f conftest.err conftest.$ac_ext
44107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44108 echo "${ECHO_T}$ac_header_preproc" >&6
44109
44110 # So?  What about this header?
44111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44112   yes:no: )
44113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44117     ac_header_preproc=yes
44118     ;;
44119   no:yes:* )
44120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44132     (
44133       cat <<\_ASBOX
44134 ## ------------------------------------------ ##
44135 ## Report this to the AC_PACKAGE_NAME lists.  ##
44136 ## ------------------------------------------ ##
44137 _ASBOX
44138     ) |
44139       sed "s/^/$as_me: WARNING:     /" >&2
44140     ;;
44141 esac
44142 echo "$as_me:$LINENO: checking for $ac_header" >&5
44143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44145   echo $ECHO_N "(cached) $ECHO_C" >&6
44146 else
44147   eval "$as_ac_Header=\$ac_header_preproc"
44148 fi
44149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44151
44152 fi
44153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44154   cat >>confdefs.h <<_ACEOF
44155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44156 _ACEOF
44157
44158 fi
44159
44160 done
44161
44162  echo "$as_me:$LINENO: checking for db" >&5
44163 echo $ECHO_N "checking for db... $ECHO_C" >&6
44164 if test "${ol_cv_gdbm+set}" = set; then
44165   echo $ECHO_N "(cached) $ECHO_C" >&6
44166 else
44167
44168         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44169                 ol_cv_gdbm=no
44170         else
44171                 ol_cv_gdbm=yes
44172         fi
44173
44174 fi
44175 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44176 echo "${ECHO_T}$ol_cv_gdbm" >&6
44177  if test $ol_cv_gdbm = yes ; then
44178
44179 cat >>confdefs.h <<\_ACEOF
44180 #define HAVE_GDBM 1
44181 _ACEOF
44182
44183  fi
44184
44185
44186         if test $ol_cv_gdbm = yes ; then
44187                 ol_link_ldbm=gdbm
44188                 ol_enable_ldbm_api=gdbm
44189
44190                 if test $ol_cv_lib_gdbm != yes ; then
44191                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44192                 fi
44193         fi
44194 fi
44195
44196 if test $ol_enable_ldbm_api = ndbm ; then
44197         echo "$as_me:$LINENO: checking for NDBM library" >&5
44198 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44199 if test "${ol_cv_lib_ndbm+set}" = set; then
44200   echo $ECHO_N "(cached) $ECHO_C" >&6
44201 else
44202         ol_LIBS="$LIBS"
44203         echo "$as_me:$LINENO: checking for dbm_open" >&5
44204 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44205 if test "${ac_cv_func_dbm_open+set}" = set; then
44206   echo $ECHO_N "(cached) $ECHO_C" >&6
44207 else
44208   cat >conftest.$ac_ext <<_ACEOF
44209 /* confdefs.h.  */
44210 _ACEOF
44211 cat confdefs.h >>conftest.$ac_ext
44212 cat >>conftest.$ac_ext <<_ACEOF
44213 /* end confdefs.h.  */
44214 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44216 #define dbm_open innocuous_dbm_open
44217
44218 /* System header to define __stub macros and hopefully few prototypes,
44219     which can conflict with char dbm_open (); below.
44220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44221     <limits.h> exists even on freestanding compilers.  */
44222
44223 #ifdef __STDC__
44224 # include <limits.h>
44225 #else
44226 # include <assert.h>
44227 #endif
44228
44229 #undef dbm_open
44230
44231 /* Override any gcc2 internal prototype to avoid an error.  */
44232 #ifdef __cplusplus
44233 extern "C"
44234 {
44235 #endif
44236 /* We use char because int might match the return type of a gcc2
44237    builtin and then its argument prototype would still apply.  */
44238 char dbm_open ();
44239 /* The GNU C library defines this for functions which it implements
44240     to always fail with ENOSYS.  Some functions are actually named
44241     something starting with __ and the normal name is an alias.  */
44242 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44243 choke me
44244 #else
44245 char (*f) () = dbm_open;
44246 #endif
44247 #ifdef __cplusplus
44248 }
44249 #endif
44250
44251 int
44252 main ()
44253 {
44254 return f != dbm_open;
44255   ;
44256   return 0;
44257 }
44258 _ACEOF
44259 rm -f conftest.$ac_objext conftest$ac_exeext
44260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44261   (eval $ac_link) 2>conftest.er1
44262   ac_status=$?
44263   grep -v '^ *+' conftest.er1 >conftest.err
44264   rm -f conftest.er1
44265   cat conftest.err >&5
44266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44267   (exit $ac_status); } &&
44268          { ac_try='test -z "$ac_c_werror_flag"
44269                          || test ! -s conftest.err'
44270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44271   (eval $ac_try) 2>&5
44272   ac_status=$?
44273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44274   (exit $ac_status); }; } &&
44275          { ac_try='test -s conftest$ac_exeext'
44276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44277   (eval $ac_try) 2>&5
44278   ac_status=$?
44279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44280   (exit $ac_status); }; }; then
44281   ac_cv_func_dbm_open=yes
44282 else
44283   echo "$as_me: failed program was:" >&5
44284 sed 's/^/| /' conftest.$ac_ext >&5
44285
44286 ac_cv_func_dbm_open=no
44287 fi
44288 rm -f conftest.err conftest.$ac_objext \
44289       conftest$ac_exeext conftest.$ac_ext
44290 fi
44291 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44292 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44293 if test $ac_cv_func_dbm_open = yes; then
44294   ol_cv_lib_ndbm=yes
44295 else
44296
44297                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44298 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44299 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44300   echo $ECHO_N "(cached) $ECHO_C" >&6
44301 else
44302   ac_check_lib_save_LIBS=$LIBS
44303 LIBS="-lndbm  $LIBS"
44304 cat >conftest.$ac_ext <<_ACEOF
44305 /* confdefs.h.  */
44306 _ACEOF
44307 cat confdefs.h >>conftest.$ac_ext
44308 cat >>conftest.$ac_ext <<_ACEOF
44309 /* end confdefs.h.  */
44310
44311 /* Override any gcc2 internal prototype to avoid an error.  */
44312 #ifdef __cplusplus
44313 extern "C"
44314 #endif
44315 /* We use char because int might match the return type of a gcc2
44316    builtin and then its argument prototype would still apply.  */
44317 char dbm_open ();
44318 int
44319 main ()
44320 {
44321 dbm_open ();
44322   ;
44323   return 0;
44324 }
44325 _ACEOF
44326 rm -f conftest.$ac_objext conftest$ac_exeext
44327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44328   (eval $ac_link) 2>conftest.er1
44329   ac_status=$?
44330   grep -v '^ *+' conftest.er1 >conftest.err
44331   rm -f conftest.er1
44332   cat conftest.err >&5
44333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44334   (exit $ac_status); } &&
44335          { ac_try='test -z "$ac_c_werror_flag"
44336                          || test ! -s conftest.err'
44337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44338   (eval $ac_try) 2>&5
44339   ac_status=$?
44340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44341   (exit $ac_status); }; } &&
44342          { ac_try='test -s conftest$ac_exeext'
44343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44344   (eval $ac_try) 2>&5
44345   ac_status=$?
44346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44347   (exit $ac_status); }; }; then
44348   ac_cv_lib_ndbm_dbm_open=yes
44349 else
44350   echo "$as_me: failed program was:" >&5
44351 sed 's/^/| /' conftest.$ac_ext >&5
44352
44353 ac_cv_lib_ndbm_dbm_open=no
44354 fi
44355 rm -f conftest.err conftest.$ac_objext \
44356       conftest$ac_exeext conftest.$ac_ext
44357 LIBS=$ac_check_lib_save_LIBS
44358 fi
44359 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44360 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44361 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44362   ol_cv_lib_ndbm=-lndbm
44363 else
44364
44365                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44366 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44367 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44368   echo $ECHO_N "(cached) $ECHO_C" >&6
44369 else
44370   ac_check_lib_save_LIBS=$LIBS
44371 LIBS="-ldbm  $LIBS"
44372 cat >conftest.$ac_ext <<_ACEOF
44373 /* confdefs.h.  */
44374 _ACEOF
44375 cat confdefs.h >>conftest.$ac_ext
44376 cat >>conftest.$ac_ext <<_ACEOF
44377 /* end confdefs.h.  */
44378
44379 /* Override any gcc2 internal prototype to avoid an error.  */
44380 #ifdef __cplusplus
44381 extern "C"
44382 #endif
44383 /* We use char because int might match the return type of a gcc2
44384    builtin and then its argument prototype would still apply.  */
44385 char dbm_open ();
44386 int
44387 main ()
44388 {
44389 dbm_open ();
44390   ;
44391   return 0;
44392 }
44393 _ACEOF
44394 rm -f conftest.$ac_objext conftest$ac_exeext
44395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44396   (eval $ac_link) 2>conftest.er1
44397   ac_status=$?
44398   grep -v '^ *+' conftest.er1 >conftest.err
44399   rm -f conftest.er1
44400   cat conftest.err >&5
44401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44402   (exit $ac_status); } &&
44403          { ac_try='test -z "$ac_c_werror_flag"
44404                          || test ! -s conftest.err'
44405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44406   (eval $ac_try) 2>&5
44407   ac_status=$?
44408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44409   (exit $ac_status); }; } &&
44410          { ac_try='test -s conftest$ac_exeext'
44411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44412   (eval $ac_try) 2>&5
44413   ac_status=$?
44414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44415   (exit $ac_status); }; }; then
44416   ac_cv_lib_dbm_dbm_open=yes
44417 else
44418   echo "$as_me: failed program was:" >&5
44419 sed 's/^/| /' conftest.$ac_ext >&5
44420
44421 ac_cv_lib_dbm_dbm_open=no
44422 fi
44423 rm -f conftest.err conftest.$ac_objext \
44424       conftest$ac_exeext conftest.$ac_ext
44425 LIBS=$ac_check_lib_save_LIBS
44426 fi
44427 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44428 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44429 if test $ac_cv_lib_dbm_dbm_open = yes; then
44430   ol_cv_lib_ndbm=-ldbm
44431 else
44432   ol_cv_lib_ndbm=no
44433 fi
44434
44435 fi
44436
44437
44438 fi
44439
44440         LIBS="$ol_LIBS"
44441
44442 fi
44443 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44444 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44445
44446
44447
44448 for ac_header in ndbm.h
44449 do
44450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44452   echo "$as_me:$LINENO: checking for $ac_header" >&5
44453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44455   echo $ECHO_N "(cached) $ECHO_C" >&6
44456 fi
44457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44459 else
44460   # Is the header compilable?
44461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44463 cat >conftest.$ac_ext <<_ACEOF
44464 /* confdefs.h.  */
44465 _ACEOF
44466 cat confdefs.h >>conftest.$ac_ext
44467 cat >>conftest.$ac_ext <<_ACEOF
44468 /* end confdefs.h.  */
44469 $ac_includes_default
44470 #include <$ac_header>
44471 _ACEOF
44472 rm -f conftest.$ac_objext
44473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44474   (eval $ac_compile) 2>conftest.er1
44475   ac_status=$?
44476   grep -v '^ *+' conftest.er1 >conftest.err
44477   rm -f conftest.er1
44478   cat conftest.err >&5
44479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44480   (exit $ac_status); } &&
44481          { ac_try='test -z "$ac_c_werror_flag"
44482                          || test ! -s conftest.err'
44483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44484   (eval $ac_try) 2>&5
44485   ac_status=$?
44486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487   (exit $ac_status); }; } &&
44488          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
44494   ac_header_compiler=yes
44495 else
44496   echo "$as_me: failed program was:" >&5
44497 sed 's/^/| /' conftest.$ac_ext >&5
44498
44499 ac_header_compiler=no
44500 fi
44501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44503 echo "${ECHO_T}$ac_header_compiler" >&6
44504
44505 # Is the header present?
44506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44508 cat >conftest.$ac_ext <<_ACEOF
44509 /* confdefs.h.  */
44510 _ACEOF
44511 cat confdefs.h >>conftest.$ac_ext
44512 cat >>conftest.$ac_ext <<_ACEOF
44513 /* end confdefs.h.  */
44514 #include <$ac_header>
44515 _ACEOF
44516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44518   ac_status=$?
44519   grep -v '^ *+' conftest.er1 >conftest.err
44520   rm -f conftest.er1
44521   cat conftest.err >&5
44522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44523   (exit $ac_status); } >/dev/null; then
44524   if test -s conftest.err; then
44525     ac_cpp_err=$ac_c_preproc_warn_flag
44526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44527   else
44528     ac_cpp_err=
44529   fi
44530 else
44531   ac_cpp_err=yes
44532 fi
44533 if test -z "$ac_cpp_err"; then
44534   ac_header_preproc=yes
44535 else
44536   echo "$as_me: failed program was:" >&5
44537 sed 's/^/| /' conftest.$ac_ext >&5
44538
44539   ac_header_preproc=no
44540 fi
44541 rm -f conftest.err conftest.$ac_ext
44542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44543 echo "${ECHO_T}$ac_header_preproc" >&6
44544
44545 # So?  What about this header?
44546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44547   yes:no: )
44548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44552     ac_header_preproc=yes
44553     ;;
44554   no:yes:* )
44555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44567     (
44568       cat <<\_ASBOX
44569 ## ------------------------------------------ ##
44570 ## Report this to the AC_PACKAGE_NAME lists.  ##
44571 ## ------------------------------------------ ##
44572 _ASBOX
44573     ) |
44574       sed "s/^/$as_me: WARNING:     /" >&2
44575     ;;
44576 esac
44577 echo "$as_me:$LINENO: checking for $ac_header" >&5
44578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44580   echo $ECHO_N "(cached) $ECHO_C" >&6
44581 else
44582   eval "$as_ac_Header=\$ac_header_preproc"
44583 fi
44584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44586
44587 fi
44588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44589   cat >>confdefs.h <<_ACEOF
44590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44591 _ACEOF
44592
44593 fi
44594
44595 done
44596
44597  echo "$as_me:$LINENO: checking for db" >&5
44598 echo $ECHO_N "checking for db... $ECHO_C" >&6
44599 if test "${ol_cv_ndbm+set}" = set; then
44600   echo $ECHO_N "(cached) $ECHO_C" >&6
44601 else
44602
44603         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44604                 ol_cv_ndbm=no
44605         else
44606                 ol_cv_ndbm=yes
44607         fi
44608
44609 fi
44610 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44611 echo "${ECHO_T}$ol_cv_ndbm" >&6
44612  if test $ol_cv_ndbm = yes ; then
44613
44614 cat >>confdefs.h <<\_ACEOF
44615 #define HAVE_NDBM 1
44616 _ACEOF
44617
44618  fi
44619
44620
44621         if test $ol_cv_ndbm = yes ; then
44622                 ol_link_ldbm=ndbm
44623                 ol_enable_ldbm_api=ndbm
44624
44625                 if test $ol_cv_lib_ndbm != yes ; then
44626                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44627                 fi
44628         fi
44629 fi
44630
44631 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44632         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44633 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44634    { (exit 1); exit 1; }; }
44635 fi
44636
44637 if test $ol_enable_bdb = yes -o \
44638         $ol_enable_hdb = yes -o \
44639         $ol_enable_ldbm = yes ; then
44640         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44641 fi
44642
44643
44644 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44645         BUILD_LIBS_DYNAMIC=shared
44646
44647 cat >>confdefs.h <<\_ACEOF
44648 #define LDAP_LIBS_DYNAMIC 1
44649 _ACEOF
44650
44651         LTSTATIC=""
44652 else
44653         BUILD_LIBS_DYNAMIC=static
44654         LTSTATIC="-static"
44655 fi
44656
44657 if test $ol_enable_wrappers != no ; then
44658
44659 for ac_header in tcpd.h
44660 do
44661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44663   echo "$as_me:$LINENO: checking for $ac_header" >&5
44664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44666   echo $ECHO_N "(cached) $ECHO_C" >&6
44667 fi
44668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44670 else
44671   # Is the header compilable?
44672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44674 cat >conftest.$ac_ext <<_ACEOF
44675 /* confdefs.h.  */
44676 _ACEOF
44677 cat confdefs.h >>conftest.$ac_ext
44678 cat >>conftest.$ac_ext <<_ACEOF
44679 /* end confdefs.h.  */
44680 $ac_includes_default
44681 #include <$ac_header>
44682 _ACEOF
44683 rm -f conftest.$ac_objext
44684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44685   (eval $ac_compile) 2>conftest.er1
44686   ac_status=$?
44687   grep -v '^ *+' conftest.er1 >conftest.err
44688   rm -f conftest.er1
44689   cat conftest.err >&5
44690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44691   (exit $ac_status); } &&
44692          { ac_try='test -z "$ac_c_werror_flag"
44693                          || test ! -s conftest.err'
44694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44695   (eval $ac_try) 2>&5
44696   ac_status=$?
44697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698   (exit $ac_status); }; } &&
44699          { ac_try='test -s conftest.$ac_objext'
44700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44701   (eval $ac_try) 2>&5
44702   ac_status=$?
44703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44704   (exit $ac_status); }; }; then
44705   ac_header_compiler=yes
44706 else
44707   echo "$as_me: failed program was:" >&5
44708 sed 's/^/| /' conftest.$ac_ext >&5
44709
44710 ac_header_compiler=no
44711 fi
44712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44714 echo "${ECHO_T}$ac_header_compiler" >&6
44715
44716 # Is the header present?
44717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44719 cat >conftest.$ac_ext <<_ACEOF
44720 /* confdefs.h.  */
44721 _ACEOF
44722 cat confdefs.h >>conftest.$ac_ext
44723 cat >>conftest.$ac_ext <<_ACEOF
44724 /* end confdefs.h.  */
44725 #include <$ac_header>
44726 _ACEOF
44727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44729   ac_status=$?
44730   grep -v '^ *+' conftest.er1 >conftest.err
44731   rm -f conftest.er1
44732   cat conftest.err >&5
44733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44734   (exit $ac_status); } >/dev/null; then
44735   if test -s conftest.err; then
44736     ac_cpp_err=$ac_c_preproc_warn_flag
44737     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44738   else
44739     ac_cpp_err=
44740   fi
44741 else
44742   ac_cpp_err=yes
44743 fi
44744 if test -z "$ac_cpp_err"; then
44745   ac_header_preproc=yes
44746 else
44747   echo "$as_me: failed program was:" >&5
44748 sed 's/^/| /' conftest.$ac_ext >&5
44749
44750   ac_header_preproc=no
44751 fi
44752 rm -f conftest.err conftest.$ac_ext
44753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44754 echo "${ECHO_T}$ac_header_preproc" >&6
44755
44756 # So?  What about this header?
44757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44758   yes:no: )
44759     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44763     ac_header_preproc=yes
44764     ;;
44765   no:yes:* )
44766     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44768     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44769 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44770     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44772     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44773 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44776     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44778     (
44779       cat <<\_ASBOX
44780 ## ------------------------------------------ ##
44781 ## Report this to the AC_PACKAGE_NAME lists.  ##
44782 ## ------------------------------------------ ##
44783 _ASBOX
44784     ) |
44785       sed "s/^/$as_me: WARNING:     /" >&2
44786     ;;
44787 esac
44788 echo "$as_me:$LINENO: checking for $ac_header" >&5
44789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44791   echo $ECHO_N "(cached) $ECHO_C" >&6
44792 else
44793   eval "$as_ac_Header=\$ac_header_preproc"
44794 fi
44795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44797
44798 fi
44799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44800   cat >>confdefs.h <<_ACEOF
44801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44802 _ACEOF
44803
44804                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44805 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44806                 save_LIBS="$LIBS"
44807                 LIBS="$LIBS -lwrap"
44808                 cat >conftest.$ac_ext <<_ACEOF
44809 /* confdefs.h.  */
44810 _ACEOF
44811 cat confdefs.h >>conftest.$ac_ext
44812 cat >>conftest.$ac_ext <<_ACEOF
44813 /* end confdefs.h.  */
44814
44815 #include <tcpd.h>
44816 int allow_severity = 0;
44817 int deny_severity  = 0;
44818
44819 struct request_info *req;
44820
44821 int
44822 main ()
44823 {
44824
44825 hosts_access(req)
44826
44827   ;
44828   return 0;
44829 }
44830 _ACEOF
44831 rm -f conftest.$ac_objext conftest$ac_exeext
44832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44833   (eval $ac_link) 2>conftest.er1
44834   ac_status=$?
44835   grep -v '^ *+' conftest.er1 >conftest.err
44836   rm -f conftest.er1
44837   cat conftest.err >&5
44838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44839   (exit $ac_status); } &&
44840          { ac_try='test -z "$ac_c_werror_flag"
44841                          || test ! -s conftest.err'
44842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44843   (eval $ac_try) 2>&5
44844   ac_status=$?
44845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44846   (exit $ac_status); }; } &&
44847          { ac_try='test -s conftest$ac_exeext'
44848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44849   (eval $ac_try) 2>&5
44850   ac_status=$?
44851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44852   (exit $ac_status); }; }; then
44853   echo "$as_me:$LINENO: result: -lwrap" >&5
44854 echo "${ECHO_T}-lwrap" >&6
44855                 have_wrappers=yes
44856                 LIBS="$save_LIBS"
44857 else
44858   echo "$as_me: failed program was:" >&5
44859 sed 's/^/| /' conftest.$ac_ext >&5
44860
44861
44862                                 LIBS="$LIBS -lnsl"
44863                 cat >conftest.$ac_ext <<_ACEOF
44864 /* confdefs.h.  */
44865 _ACEOF
44866 cat confdefs.h >>conftest.$ac_ext
44867 cat >>conftest.$ac_ext <<_ACEOF
44868 /* end confdefs.h.  */
44869
44870 #include <tcpd.h>
44871 int allow_severity = 0;
44872 int deny_severity  = 0;
44873
44874 struct request_info *req;
44875
44876 int
44877 main ()
44878 {
44879
44880 hosts_access(req)
44881
44882   ;
44883   return 0;
44884 }
44885 _ACEOF
44886 rm -f conftest.$ac_objext conftest$ac_exeext
44887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44888   (eval $ac_link) 2>conftest.er1
44889   ac_status=$?
44890   grep -v '^ *+' conftest.er1 >conftest.err
44891   rm -f conftest.er1
44892   cat conftest.err >&5
44893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44894   (exit $ac_status); } &&
44895          { ac_try='test -z "$ac_c_werror_flag"
44896                          || test ! -s conftest.err'
44897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44898   (eval $ac_try) 2>&5
44899   ac_status=$?
44900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44901   (exit $ac_status); }; } &&
44902          { ac_try='test -s conftest$ac_exeext'
44903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44904   (eval $ac_try) 2>&5
44905   ac_status=$?
44906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44907   (exit $ac_status); }; }; then
44908   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44909 echo "${ECHO_T}-lwrap -lnsl" >&6
44910                 have_wrappers=yes
44911                 LIBS="$save_LIBS -lnsl"
44912 else
44913   echo "$as_me: failed program was:" >&5
44914 sed 's/^/| /' conftest.$ac_ext >&5
44915
44916
44917                 echo "$as_me:$LINENO: result: no" >&5
44918 echo "${ECHO_T}no" >&6
44919                 have_wrappers=no
44920                 LIBS=$save_LIBS
44921 fi
44922 rm -f conftest.err conftest.$ac_objext \
44923       conftest$ac_exeext conftest.$ac_ext
44924 fi
44925 rm -f conftest.err conftest.$ac_objext \
44926       conftest$ac_exeext conftest.$ac_ext
44927 else
44928   have_wrappers=no
44929 fi
44930
44931 done
44932
44933
44934         if test $have_wrappers = yes ; then
44935
44936 cat >>confdefs.h <<\_ACEOF
44937 #define HAVE_TCPD 1
44938 _ACEOF
44939
44940                 WRAP_LIBS="-lwrap"
44941         elif test $ol_enable_wrappers = yes ; then
44942                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44943 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44944    { (exit 1); exit 1; }; }
44945         else
44946                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44947 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44948                 WRAP_LIBS=""
44949         fi
44950 fi
44951
44952 if test $ol_enable_syslog != no ; then
44953         echo "$as_me:$LINENO: checking for openlog" >&5
44954 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44955 if test "${ac_cv_func_openlog+set}" = set; then
44956   echo $ECHO_N "(cached) $ECHO_C" >&6
44957 else
44958   cat >conftest.$ac_ext <<_ACEOF
44959 /* confdefs.h.  */
44960 _ACEOF
44961 cat confdefs.h >>conftest.$ac_ext
44962 cat >>conftest.$ac_ext <<_ACEOF
44963 /* end confdefs.h.  */
44964 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44966 #define openlog innocuous_openlog
44967
44968 /* System header to define __stub macros and hopefully few prototypes,
44969     which can conflict with char openlog (); below.
44970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44971     <limits.h> exists even on freestanding compilers.  */
44972
44973 #ifdef __STDC__
44974 # include <limits.h>
44975 #else
44976 # include <assert.h>
44977 #endif
44978
44979 #undef openlog
44980
44981 /* Override any gcc2 internal prototype to avoid an error.  */
44982 #ifdef __cplusplus
44983 extern "C"
44984 {
44985 #endif
44986 /* We use char because int might match the return type of a gcc2
44987    builtin and then its argument prototype would still apply.  */
44988 char openlog ();
44989 /* The GNU C library defines this for functions which it implements
44990     to always fail with ENOSYS.  Some functions are actually named
44991     something starting with __ and the normal name is an alias.  */
44992 #if defined (__stub_openlog) || defined (__stub___openlog)
44993 choke me
44994 #else
44995 char (*f) () = openlog;
44996 #endif
44997 #ifdef __cplusplus
44998 }
44999 #endif
45000
45001 int
45002 main ()
45003 {
45004 return f != openlog;
45005   ;
45006   return 0;
45007 }
45008 _ACEOF
45009 rm -f conftest.$ac_objext conftest$ac_exeext
45010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45011   (eval $ac_link) 2>conftest.er1
45012   ac_status=$?
45013   grep -v '^ *+' conftest.er1 >conftest.err
45014   rm -f conftest.er1
45015   cat conftest.err >&5
45016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45017   (exit $ac_status); } &&
45018          { ac_try='test -z "$ac_c_werror_flag"
45019                          || test ! -s conftest.err'
45020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45021   (eval $ac_try) 2>&5
45022   ac_status=$?
45023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45024   (exit $ac_status); }; } &&
45025          { ac_try='test -s conftest$ac_exeext'
45026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45027   (eval $ac_try) 2>&5
45028   ac_status=$?
45029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45030   (exit $ac_status); }; }; then
45031   ac_cv_func_openlog=yes
45032 else
45033   echo "$as_me: failed program was:" >&5
45034 sed 's/^/| /' conftest.$ac_ext >&5
45035
45036 ac_cv_func_openlog=no
45037 fi
45038 rm -f conftest.err conftest.$ac_objext \
45039       conftest$ac_exeext conftest.$ac_ext
45040 fi
45041 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
45042 echo "${ECHO_T}$ac_cv_func_openlog" >&6
45043
45044         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
45045                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
45046 echo "$as_me: error: could not find syslog" >&2;}
45047    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
45048         fi
45049         ol_enable_syslog=$ac_cv_func_openlog
45050 fi
45051
45052 ol_link_sql=no
45053 if test $ol_enable_sql != no ; then
45054
45055
45056 for ac_header in sql.h sqlext.h
45057 do
45058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45060   echo "$as_me:$LINENO: checking for $ac_header" >&5
45061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45063   echo $ECHO_N "(cached) $ECHO_C" >&6
45064 fi
45065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45067 else
45068   # Is the header compilable?
45069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45071 cat >conftest.$ac_ext <<_ACEOF
45072 /* confdefs.h.  */
45073 _ACEOF
45074 cat confdefs.h >>conftest.$ac_ext
45075 cat >>conftest.$ac_ext <<_ACEOF
45076 /* end confdefs.h.  */
45077 $ac_includes_default
45078 #include <$ac_header>
45079 _ACEOF
45080 rm -f conftest.$ac_objext
45081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45082   (eval $ac_compile) 2>conftest.er1
45083   ac_status=$?
45084   grep -v '^ *+' conftest.er1 >conftest.err
45085   rm -f conftest.er1
45086   cat conftest.err >&5
45087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45088   (exit $ac_status); } &&
45089          { ac_try='test -z "$ac_c_werror_flag"
45090                          || test ! -s conftest.err'
45091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45092   (eval $ac_try) 2>&5
45093   ac_status=$?
45094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45095   (exit $ac_status); }; } &&
45096          { ac_try='test -s conftest.$ac_objext'
45097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45098   (eval $ac_try) 2>&5
45099   ac_status=$?
45100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45101   (exit $ac_status); }; }; then
45102   ac_header_compiler=yes
45103 else
45104   echo "$as_me: failed program was:" >&5
45105 sed 's/^/| /' conftest.$ac_ext >&5
45106
45107 ac_header_compiler=no
45108 fi
45109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45111 echo "${ECHO_T}$ac_header_compiler" >&6
45112
45113 # Is the header present?
45114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45116 cat >conftest.$ac_ext <<_ACEOF
45117 /* confdefs.h.  */
45118 _ACEOF
45119 cat confdefs.h >>conftest.$ac_ext
45120 cat >>conftest.$ac_ext <<_ACEOF
45121 /* end confdefs.h.  */
45122 #include <$ac_header>
45123 _ACEOF
45124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45126   ac_status=$?
45127   grep -v '^ *+' conftest.er1 >conftest.err
45128   rm -f conftest.er1
45129   cat conftest.err >&5
45130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45131   (exit $ac_status); } >/dev/null; then
45132   if test -s conftest.err; then
45133     ac_cpp_err=$ac_c_preproc_warn_flag
45134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45135   else
45136     ac_cpp_err=
45137   fi
45138 else
45139   ac_cpp_err=yes
45140 fi
45141 if test -z "$ac_cpp_err"; then
45142   ac_header_preproc=yes
45143 else
45144   echo "$as_me: failed program was:" >&5
45145 sed 's/^/| /' conftest.$ac_ext >&5
45146
45147   ac_header_preproc=no
45148 fi
45149 rm -f conftest.err conftest.$ac_ext
45150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45151 echo "${ECHO_T}$ac_header_preproc" >&6
45152
45153 # So?  What about this header?
45154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45155   yes:no: )
45156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45160     ac_header_preproc=yes
45161     ;;
45162   no:yes:* )
45163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45165     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45166 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45167     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45169     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45170 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45173     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45175     (
45176       cat <<\_ASBOX
45177 ## ------------------------------------------ ##
45178 ## Report this to the AC_PACKAGE_NAME lists.  ##
45179 ## ------------------------------------------ ##
45180 _ASBOX
45181     ) |
45182       sed "s/^/$as_me: WARNING:     /" >&2
45183     ;;
45184 esac
45185 echo "$as_me:$LINENO: checking for $ac_header" >&5
45186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45188   echo $ECHO_N "(cached) $ECHO_C" >&6
45189 else
45190   eval "$as_ac_Header=\$ac_header_preproc"
45191 fi
45192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45194
45195 fi
45196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45197   cat >>confdefs.h <<_ACEOF
45198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45199 _ACEOF
45200
45201 else
45202
45203                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45204 echo "$as_me: error: could not locate SQL headers" >&2;}
45205    { (exit 1); exit 1; }; }
45206
45207 fi
45208
45209 done
45210
45211
45212         sql_LIBS="$LIBS"
45213         LIBS="$LTHREAD_LIBS"
45214
45215         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45216 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45217 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45218   echo $ECHO_N "(cached) $ECHO_C" >&6
45219 else
45220   ac_check_lib_save_LIBS=$LIBS
45221 LIBS="-liodbc  $LIBS"
45222 cat >conftest.$ac_ext <<_ACEOF
45223 /* confdefs.h.  */
45224 _ACEOF
45225 cat confdefs.h >>conftest.$ac_ext
45226 cat >>conftest.$ac_ext <<_ACEOF
45227 /* end confdefs.h.  */
45228
45229 /* Override any gcc2 internal prototype to avoid an error.  */
45230 #ifdef __cplusplus
45231 extern "C"
45232 #endif
45233 /* We use char because int might match the return type of a gcc2
45234    builtin and then its argument prototype would still apply.  */
45235 char SQLDriverConnect ();
45236 int
45237 main ()
45238 {
45239 SQLDriverConnect ();
45240   ;
45241   return 0;
45242 }
45243 _ACEOF
45244 rm -f conftest.$ac_objext conftest$ac_exeext
45245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45246   (eval $ac_link) 2>conftest.er1
45247   ac_status=$?
45248   grep -v '^ *+' conftest.er1 >conftest.err
45249   rm -f conftest.er1
45250   cat conftest.err >&5
45251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45252   (exit $ac_status); } &&
45253          { ac_try='test -z "$ac_c_werror_flag"
45254                          || test ! -s conftest.err'
45255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45256   (eval $ac_try) 2>&5
45257   ac_status=$?
45258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45259   (exit $ac_status); }; } &&
45260          { ac_try='test -s conftest$ac_exeext'
45261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45262   (eval $ac_try) 2>&5
45263   ac_status=$?
45264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45265   (exit $ac_status); }; }; then
45266   ac_cv_lib_iodbc_SQLDriverConnect=yes
45267 else
45268   echo "$as_me: failed program was:" >&5
45269 sed 's/^/| /' conftest.$ac_ext >&5
45270
45271 ac_cv_lib_iodbc_SQLDriverConnect=no
45272 fi
45273 rm -f conftest.err conftest.$ac_objext \
45274       conftest$ac_exeext conftest.$ac_ext
45275 LIBS=$ac_check_lib_save_LIBS
45276 fi
45277 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45278 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45279 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45280   have_iodbc=yes
45281 else
45282   have_iodbc=no
45283 fi
45284
45285         if test $have_iodbc = yes ; then
45286                 ol_link_sql="-liodbc"
45287         else
45288                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45289 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45290 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45291   echo $ECHO_N "(cached) $ECHO_C" >&6
45292 else
45293   ac_check_lib_save_LIBS=$LIBS
45294 LIBS="-lodbc  $LIBS"
45295 cat >conftest.$ac_ext <<_ACEOF
45296 /* confdefs.h.  */
45297 _ACEOF
45298 cat confdefs.h >>conftest.$ac_ext
45299 cat >>conftest.$ac_ext <<_ACEOF
45300 /* end confdefs.h.  */
45301
45302 /* Override any gcc2 internal prototype to avoid an error.  */
45303 #ifdef __cplusplus
45304 extern "C"
45305 #endif
45306 /* We use char because int might match the return type of a gcc2
45307    builtin and then its argument prototype would still apply.  */
45308 char SQLDriverConnect ();
45309 int
45310 main ()
45311 {
45312 SQLDriverConnect ();
45313   ;
45314   return 0;
45315 }
45316 _ACEOF
45317 rm -f conftest.$ac_objext conftest$ac_exeext
45318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45319   (eval $ac_link) 2>conftest.er1
45320   ac_status=$?
45321   grep -v '^ *+' conftest.er1 >conftest.err
45322   rm -f conftest.er1
45323   cat conftest.err >&5
45324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45325   (exit $ac_status); } &&
45326          { ac_try='test -z "$ac_c_werror_flag"
45327                          || test ! -s conftest.err'
45328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45329   (eval $ac_try) 2>&5
45330   ac_status=$?
45331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45332   (exit $ac_status); }; } &&
45333          { ac_try='test -s conftest$ac_exeext'
45334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45335   (eval $ac_try) 2>&5
45336   ac_status=$?
45337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45338   (exit $ac_status); }; }; then
45339   ac_cv_lib_odbc_SQLDriverConnect=yes
45340 else
45341   echo "$as_me: failed program was:" >&5
45342 sed 's/^/| /' conftest.$ac_ext >&5
45343
45344 ac_cv_lib_odbc_SQLDriverConnect=no
45345 fi
45346 rm -f conftest.err conftest.$ac_objext \
45347       conftest$ac_exeext conftest.$ac_ext
45348 LIBS=$ac_check_lib_save_LIBS
45349 fi
45350 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45351 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45352 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45353   have_odbc=yes
45354 else
45355   have_odbc=no
45356 fi
45357
45358                 if test $have_odbc = yes ; then
45359                         ol_link_sql="-lodbc"
45360                 fi
45361         fi
45362
45363         LIBS="$sql_LIBS"
45364
45365         if test $ol_link_sql != no ; then
45366                 SLAPD_SQL_LIBS="$ol_link_sql"
45367
45368         elif test $ol_enable_sql != auto ; then
45369                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45370 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45371    { (exit 1); exit 1; }; }
45372         fi
45373 fi
45374
45375 WITH_SASL=no
45376 ol_link_sasl=no
45377 ol_link_spasswd=no
45378 if test $ol_with_cyrus_sasl != no ; then
45379
45380
45381 for ac_header in sasl/sasl.h sasl.h
45382 do
45383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45385   echo "$as_me:$LINENO: checking for $ac_header" >&5
45386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45388   echo $ECHO_N "(cached) $ECHO_C" >&6
45389 fi
45390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45392 else
45393   # Is the header compilable?
45394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45396 cat >conftest.$ac_ext <<_ACEOF
45397 /* confdefs.h.  */
45398 _ACEOF
45399 cat confdefs.h >>conftest.$ac_ext
45400 cat >>conftest.$ac_ext <<_ACEOF
45401 /* end confdefs.h.  */
45402 $ac_includes_default
45403 #include <$ac_header>
45404 _ACEOF
45405 rm -f conftest.$ac_objext
45406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45407   (eval $ac_compile) 2>conftest.er1
45408   ac_status=$?
45409   grep -v '^ *+' conftest.er1 >conftest.err
45410   rm -f conftest.er1
45411   cat conftest.err >&5
45412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413   (exit $ac_status); } &&
45414          { ac_try='test -z "$ac_c_werror_flag"
45415                          || test ! -s conftest.err'
45416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45417   (eval $ac_try) 2>&5
45418   ac_status=$?
45419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45420   (exit $ac_status); }; } &&
45421          { ac_try='test -s conftest.$ac_objext'
45422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45423   (eval $ac_try) 2>&5
45424   ac_status=$?
45425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45426   (exit $ac_status); }; }; then
45427   ac_header_compiler=yes
45428 else
45429   echo "$as_me: failed program was:" >&5
45430 sed 's/^/| /' conftest.$ac_ext >&5
45431
45432 ac_header_compiler=no
45433 fi
45434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45436 echo "${ECHO_T}$ac_header_compiler" >&6
45437
45438 # Is the header present?
45439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45441 cat >conftest.$ac_ext <<_ACEOF
45442 /* confdefs.h.  */
45443 _ACEOF
45444 cat confdefs.h >>conftest.$ac_ext
45445 cat >>conftest.$ac_ext <<_ACEOF
45446 /* end confdefs.h.  */
45447 #include <$ac_header>
45448 _ACEOF
45449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45451   ac_status=$?
45452   grep -v '^ *+' conftest.er1 >conftest.err
45453   rm -f conftest.er1
45454   cat conftest.err >&5
45455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456   (exit $ac_status); } >/dev/null; then
45457   if test -s conftest.err; then
45458     ac_cpp_err=$ac_c_preproc_warn_flag
45459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45460   else
45461     ac_cpp_err=
45462   fi
45463 else
45464   ac_cpp_err=yes
45465 fi
45466 if test -z "$ac_cpp_err"; then
45467   ac_header_preproc=yes
45468 else
45469   echo "$as_me: failed program was:" >&5
45470 sed 's/^/| /' conftest.$ac_ext >&5
45471
45472   ac_header_preproc=no
45473 fi
45474 rm -f conftest.err conftest.$ac_ext
45475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45476 echo "${ECHO_T}$ac_header_preproc" >&6
45477
45478 # So?  What about this header?
45479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45480   yes:no: )
45481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45485     ac_header_preproc=yes
45486     ;;
45487   no:yes:* )
45488     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45490     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45491 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45492     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45494     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45495 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45498     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45500     (
45501       cat <<\_ASBOX
45502 ## ------------------------------------------ ##
45503 ## Report this to the AC_PACKAGE_NAME lists.  ##
45504 ## ------------------------------------------ ##
45505 _ASBOX
45506     ) |
45507       sed "s/^/$as_me: WARNING:     /" >&2
45508     ;;
45509 esac
45510 echo "$as_me:$LINENO: checking for $ac_header" >&5
45511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45513   echo $ECHO_N "(cached) $ECHO_C" >&6
45514 else
45515   eval "$as_ac_Header=\$ac_header_preproc"
45516 fi
45517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45519
45520 fi
45521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45522   cat >>confdefs.h <<_ACEOF
45523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45524 _ACEOF
45525
45526 fi
45527
45528 done
45529
45530
45531         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45532                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45533 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45534 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45535   echo $ECHO_N "(cached) $ECHO_C" >&6
45536 else
45537   ac_check_lib_save_LIBS=$LIBS
45538 LIBS="-lsasl2  $LIBS"
45539 cat >conftest.$ac_ext <<_ACEOF
45540 /* confdefs.h.  */
45541 _ACEOF
45542 cat confdefs.h >>conftest.$ac_ext
45543 cat >>conftest.$ac_ext <<_ACEOF
45544 /* end confdefs.h.  */
45545
45546 /* Override any gcc2 internal prototype to avoid an error.  */
45547 #ifdef __cplusplus
45548 extern "C"
45549 #endif
45550 /* We use char because int might match the return type of a gcc2
45551    builtin and then its argument prototype would still apply.  */
45552 char sasl_client_init ();
45553 int
45554 main ()
45555 {
45556 sasl_client_init ();
45557   ;
45558   return 0;
45559 }
45560 _ACEOF
45561 rm -f conftest.$ac_objext conftest$ac_exeext
45562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45563   (eval $ac_link) 2>conftest.er1
45564   ac_status=$?
45565   grep -v '^ *+' conftest.er1 >conftest.err
45566   rm -f conftest.er1
45567   cat conftest.err >&5
45568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45569   (exit $ac_status); } &&
45570          { ac_try='test -z "$ac_c_werror_flag"
45571                          || test ! -s conftest.err'
45572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45573   (eval $ac_try) 2>&5
45574   ac_status=$?
45575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45576   (exit $ac_status); }; } &&
45577          { ac_try='test -s conftest$ac_exeext'
45578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45579   (eval $ac_try) 2>&5
45580   ac_status=$?
45581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45582   (exit $ac_status); }; }; then
45583   ac_cv_lib_sasl2_sasl_client_init=yes
45584 else
45585   echo "$as_me: failed program was:" >&5
45586 sed 's/^/| /' conftest.$ac_ext >&5
45587
45588 ac_cv_lib_sasl2_sasl_client_init=no
45589 fi
45590 rm -f conftest.err conftest.$ac_objext \
45591       conftest$ac_exeext conftest.$ac_ext
45592 LIBS=$ac_check_lib_save_LIBS
45593 fi
45594 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45595 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45596 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45597   ol_link_sasl="-lsasl2"
45598 else
45599   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45600 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45601 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45602   echo $ECHO_N "(cached) $ECHO_C" >&6
45603 else
45604   ac_check_lib_save_LIBS=$LIBS
45605 LIBS="-lsasl  $LIBS"
45606 cat >conftest.$ac_ext <<_ACEOF
45607 /* confdefs.h.  */
45608 _ACEOF
45609 cat confdefs.h >>conftest.$ac_ext
45610 cat >>conftest.$ac_ext <<_ACEOF
45611 /* end confdefs.h.  */
45612
45613 /* Override any gcc2 internal prototype to avoid an error.  */
45614 #ifdef __cplusplus
45615 extern "C"
45616 #endif
45617 /* We use char because int might match the return type of a gcc2
45618    builtin and then its argument prototype would still apply.  */
45619 char sasl_client_init ();
45620 int
45621 main ()
45622 {
45623 sasl_client_init ();
45624   ;
45625   return 0;
45626 }
45627 _ACEOF
45628 rm -f conftest.$ac_objext conftest$ac_exeext
45629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45630   (eval $ac_link) 2>conftest.er1
45631   ac_status=$?
45632   grep -v '^ *+' conftest.er1 >conftest.err
45633   rm -f conftest.er1
45634   cat conftest.err >&5
45635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45636   (exit $ac_status); } &&
45637          { ac_try='test -z "$ac_c_werror_flag"
45638                          || test ! -s conftest.err'
45639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45640   (eval $ac_try) 2>&5
45641   ac_status=$?
45642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45643   (exit $ac_status); }; } &&
45644          { ac_try='test -s conftest$ac_exeext'
45645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45646   (eval $ac_try) 2>&5
45647   ac_status=$?
45648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45649   (exit $ac_status); }; }; then
45650   ac_cv_lib_sasl_sasl_client_init=yes
45651 else
45652   echo "$as_me: failed program was:" >&5
45653 sed 's/^/| /' conftest.$ac_ext >&5
45654
45655 ac_cv_lib_sasl_sasl_client_init=no
45656 fi
45657 rm -f conftest.err conftest.$ac_objext \
45658       conftest$ac_exeext conftest.$ac_ext
45659 LIBS=$ac_check_lib_save_LIBS
45660 fi
45661 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45662 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45663 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45664   ol_link_sasl="-lsasl"
45665 fi
45666
45667 fi
45668
45669         fi
45670
45671         if test $ol_link_sasl = no ; then
45672                 if test $ol_with_cyrus_sasl != auto ; then
45673                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45674 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45675    { (exit 1); exit 1; }; }
45676                 else
45677                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45678 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45679                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45680 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45681                         if test $ol_link_tls = no ; then
45682                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45683 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45684                         fi
45685                 fi
45686         else
45687                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45688 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45689 if test "${ol_cv_sasl_compat+set}" = set; then
45690   echo $ECHO_N "(cached) $ECHO_C" >&6
45691 else
45692
45693         cat >conftest.$ac_ext <<_ACEOF
45694 /* confdefs.h.  */
45695 _ACEOF
45696 cat confdefs.h >>conftest.$ac_ext
45697 cat >>conftest.$ac_ext <<_ACEOF
45698 /* end confdefs.h.  */
45699
45700 #ifdef HAVE_SASL_SASL_H
45701 #include <sasl/sasl.h>
45702 #else
45703 #include <sasl.h>
45704 #endif
45705
45706 /* Require 2.1.15+ */
45707 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45708         char *__sasl_compat = "2.2+ or better okay (we guess)";
45709 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45710         && SASL_VERSION_STEP >=15
45711         char *__sasl_compat = "2.1.15+ or better okay";
45712 #endif
45713
45714 _ACEOF
45715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45716   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45717   ol_cv_sasl_compat=yes
45718 else
45719   ol_cv_sasl_compat=no
45720 fi
45721 rm -f conftest*
45722
45723 fi
45724 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45725 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45726
45727                 if test $ol_cv_sasl_compat = no ; then
45728                         ol_link_sasl=no
45729                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45730 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45731    { (exit 1); exit 1; }; }
45732                 fi
45733
45734
45735 cat >>confdefs.h <<\_ACEOF
45736 #define HAVE_CYRUS_SASL 1
45737 _ACEOF
45738
45739                 SASL_LIBS="$ol_link_sasl"
45740                 if test $ol_enable_spasswd != no ; then
45741                         ol_link_spasswd=yes
45742                 fi
45743
45744                 ac_save_LIBS="$LIBS"
45745                 LIBS="$LIBS $ol_link_sasl"
45746                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45747 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45748 if test "${ac_cv_func_sasl_version+set}" = set; then
45749   echo $ECHO_N "(cached) $ECHO_C" >&6
45750 else
45751   cat >conftest.$ac_ext <<_ACEOF
45752 /* confdefs.h.  */
45753 _ACEOF
45754 cat confdefs.h >>conftest.$ac_ext
45755 cat >>conftest.$ac_ext <<_ACEOF
45756 /* end confdefs.h.  */
45757 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45759 #define sasl_version innocuous_sasl_version
45760
45761 /* System header to define __stub macros and hopefully few prototypes,
45762     which can conflict with char sasl_version (); below.
45763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45764     <limits.h> exists even on freestanding compilers.  */
45765
45766 #ifdef __STDC__
45767 # include <limits.h>
45768 #else
45769 # include <assert.h>
45770 #endif
45771
45772 #undef sasl_version
45773
45774 /* Override any gcc2 internal prototype to avoid an error.  */
45775 #ifdef __cplusplus
45776 extern "C"
45777 {
45778 #endif
45779 /* We use char because int might match the return type of a gcc2
45780    builtin and then its argument prototype would still apply.  */
45781 char sasl_version ();
45782 /* The GNU C library defines this for functions which it implements
45783     to always fail with ENOSYS.  Some functions are actually named
45784     something starting with __ and the normal name is an alias.  */
45785 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45786 choke me
45787 #else
45788 char (*f) () = sasl_version;
45789 #endif
45790 #ifdef __cplusplus
45791 }
45792 #endif
45793
45794 int
45795 main ()
45796 {
45797 return f != sasl_version;
45798   ;
45799   return 0;
45800 }
45801 _ACEOF
45802 rm -f conftest.$ac_objext conftest$ac_exeext
45803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45804   (eval $ac_link) 2>conftest.er1
45805   ac_status=$?
45806   grep -v '^ *+' conftest.er1 >conftest.err
45807   rm -f conftest.er1
45808   cat conftest.err >&5
45809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45810   (exit $ac_status); } &&
45811          { ac_try='test -z "$ac_c_werror_flag"
45812                          || test ! -s conftest.err'
45813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45814   (eval $ac_try) 2>&5
45815   ac_status=$?
45816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45817   (exit $ac_status); }; } &&
45818          { ac_try='test -s conftest$ac_exeext'
45819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45820   (eval $ac_try) 2>&5
45821   ac_status=$?
45822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45823   (exit $ac_status); }; }; then
45824   ac_cv_func_sasl_version=yes
45825 else
45826   echo "$as_me: failed program was:" >&5
45827 sed 's/^/| /' conftest.$ac_ext >&5
45828
45829 ac_cv_func_sasl_version=no
45830 fi
45831 rm -f conftest.err conftest.$ac_objext \
45832       conftest$ac_exeext conftest.$ac_ext
45833 fi
45834 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45835 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45836 if test $ac_cv_func_sasl_version = yes; then
45837
45838 cat >>confdefs.h <<\_ACEOF
45839 #define HAVE_SASL_VERSION 1
45840 _ACEOF
45841
45842 fi
45843
45844                 LIBS="$ac_save_LIBS"
45845
45846                 WITH_SASL=yes
45847         fi
45848
45849 else
45850         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45851 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45852         if test $ol_link_tls = no ; then
45853                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45854 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45855         fi
45856 fi
45857
45858 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45859         dev=no
45860         if test -r /dev/urandom ; then
45861                 dev="/dev/urandom";
45862         elif test -r /idev/urandom ; then
45863                 dev="/idev/urandom";
45864         elif test -r /dev/srandom ; then
45865                 dev="/dev/srandom";
45866         elif test -r /dev/random ; then
45867                 dev="/dev/random";
45868         elif test -r /idev/random ; then
45869                 dev="/idev/random";
45870         fi
45871
45872         if test $dev != no ; then
45873
45874 cat >>confdefs.h <<_ACEOF
45875 #define URANDOM_DEVICE "$dev"
45876 _ACEOF
45877
45878         fi
45879 fi
45880
45881 ol_link_fetch=no
45882 if test $ol_with_fetch != no ; then
45883         ol_LIBS=$LIBS
45884 LIBS="-lfetch -lcom_err $LIBS"
45885 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45886 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45887 if test "${ol_cv_lib_fetch+set}" = set; then
45888   echo $ECHO_N "(cached) $ECHO_C" >&6
45889 else
45890
45891         cat >conftest.$ac_ext <<_ACEOF
45892 /* confdefs.h.  */
45893 _ACEOF
45894 cat confdefs.h >>conftest.$ac_ext
45895 cat >>conftest.$ac_ext <<_ACEOF
45896 /* end confdefs.h.  */
45897
45898 #include <sys/param.h>
45899 #include <stdio.h>
45900 #include <fetch.h>
45901 int
45902 main ()
45903 {
45904 struct url *u = fetchParseURL("file:///");
45905   ;
45906   return 0;
45907 }
45908 _ACEOF
45909 rm -f conftest.$ac_objext conftest$ac_exeext
45910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45911   (eval $ac_link) 2>conftest.er1
45912   ac_status=$?
45913   grep -v '^ *+' conftest.er1 >conftest.err
45914   rm -f conftest.er1
45915   cat conftest.err >&5
45916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45917   (exit $ac_status); } &&
45918          { ac_try='test -z "$ac_c_werror_flag"
45919                          || test ! -s conftest.err'
45920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45921   (eval $ac_try) 2>&5
45922   ac_status=$?
45923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45924   (exit $ac_status); }; } &&
45925          { ac_try='test -s conftest$ac_exeext'
45926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45927   (eval $ac_try) 2>&5
45928   ac_status=$?
45929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930   (exit $ac_status); }; }; then
45931   ol_cv_lib_fetch=yes
45932 else
45933   echo "$as_me: failed program was:" >&5
45934 sed 's/^/| /' conftest.$ac_ext >&5
45935
45936 ol_cv_lib_fetch=no
45937 fi
45938 rm -f conftest.err conftest.$ac_objext \
45939       conftest$ac_exeext conftest.$ac_ext
45940 fi
45941 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45942 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45943 LIBS=$ol_LIBS
45944 if test $ol_cv_lib_fetch != no ; then
45945         ol_link_fetch="-lfetch -lcom_err"
45946
45947 cat >>confdefs.h <<\_ACEOF
45948 #define HAVE_FETCH 1
45949 _ACEOF
45950
45951 fi
45952
45953
45954         if test $ol_cv_lib_fetch != no ; then
45955                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45956                 ol_link_fetch=freebsd
45957
45958         elif test $ol_with_fetch != auto ; then
45959                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45960 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45961    { (exit 1); exit 1; }; }
45962         fi
45963 fi
45964
45965 if test $ol_enable_crypt != no ; then
45966         save_LIBS="$LIBS"
45967         LIBS="$TLS_LIBS $LIBS"
45968
45969         echo "$as_me:$LINENO: checking for crypt" >&5
45970 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45971 if test "${ac_cv_func_crypt+set}" = set; then
45972   echo $ECHO_N "(cached) $ECHO_C" >&6
45973 else
45974   cat >conftest.$ac_ext <<_ACEOF
45975 /* confdefs.h.  */
45976 _ACEOF
45977 cat confdefs.h >>conftest.$ac_ext
45978 cat >>conftest.$ac_ext <<_ACEOF
45979 /* end confdefs.h.  */
45980 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45982 #define crypt innocuous_crypt
45983
45984 /* System header to define __stub macros and hopefully few prototypes,
45985     which can conflict with char crypt (); below.
45986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45987     <limits.h> exists even on freestanding compilers.  */
45988
45989 #ifdef __STDC__
45990 # include <limits.h>
45991 #else
45992 # include <assert.h>
45993 #endif
45994
45995 #undef crypt
45996
45997 /* Override any gcc2 internal prototype to avoid an error.  */
45998 #ifdef __cplusplus
45999 extern "C"
46000 {
46001 #endif
46002 /* We use char because int might match the return type of a gcc2
46003    builtin and then its argument prototype would still apply.  */
46004 char crypt ();
46005 /* The GNU C library defines this for functions which it implements
46006     to always fail with ENOSYS.  Some functions are actually named
46007     something starting with __ and the normal name is an alias.  */
46008 #if defined (__stub_crypt) || defined (__stub___crypt)
46009 choke me
46010 #else
46011 char (*f) () = crypt;
46012 #endif
46013 #ifdef __cplusplus
46014 }
46015 #endif
46016
46017 int
46018 main ()
46019 {
46020 return f != crypt;
46021   ;
46022   return 0;
46023 }
46024 _ACEOF
46025 rm -f conftest.$ac_objext conftest$ac_exeext
46026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46027   (eval $ac_link) 2>conftest.er1
46028   ac_status=$?
46029   grep -v '^ *+' conftest.er1 >conftest.err
46030   rm -f conftest.er1
46031   cat conftest.err >&5
46032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46033   (exit $ac_status); } &&
46034          { ac_try='test -z "$ac_c_werror_flag"
46035                          || test ! -s conftest.err'
46036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46037   (eval $ac_try) 2>&5
46038   ac_status=$?
46039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46040   (exit $ac_status); }; } &&
46041          { ac_try='test -s conftest$ac_exeext'
46042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46043   (eval $ac_try) 2>&5
46044   ac_status=$?
46045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46046   (exit $ac_status); }; }; then
46047   ac_cv_func_crypt=yes
46048 else
46049   echo "$as_me: failed program was:" >&5
46050 sed 's/^/| /' conftest.$ac_ext >&5
46051
46052 ac_cv_func_crypt=no
46053 fi
46054 rm -f conftest.err conftest.$ac_objext \
46055       conftest$ac_exeext conftest.$ac_ext
46056 fi
46057 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
46058 echo "${ECHO_T}$ac_cv_func_crypt" >&6
46059 if test $ac_cv_func_crypt = yes; then
46060   have_crypt=yes
46061 else
46062
46063                 LIBS="$save_LIBS"
46064                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
46065 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
46066 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
46067   echo $ECHO_N "(cached) $ECHO_C" >&6
46068 else
46069   ac_check_lib_save_LIBS=$LIBS
46070 LIBS="-lcrypt  $LIBS"
46071 cat >conftest.$ac_ext <<_ACEOF
46072 /* confdefs.h.  */
46073 _ACEOF
46074 cat confdefs.h >>conftest.$ac_ext
46075 cat >>conftest.$ac_ext <<_ACEOF
46076 /* end confdefs.h.  */
46077
46078 /* Override any gcc2 internal prototype to avoid an error.  */
46079 #ifdef __cplusplus
46080 extern "C"
46081 #endif
46082 /* We use char because int might match the return type of a gcc2
46083    builtin and then its argument prototype would still apply.  */
46084 char crypt ();
46085 int
46086 main ()
46087 {
46088 crypt ();
46089   ;
46090   return 0;
46091 }
46092 _ACEOF
46093 rm -f conftest.$ac_objext conftest$ac_exeext
46094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46095   (eval $ac_link) 2>conftest.er1
46096   ac_status=$?
46097   grep -v '^ *+' conftest.er1 >conftest.err
46098   rm -f conftest.er1
46099   cat conftest.err >&5
46100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46101   (exit $ac_status); } &&
46102          { ac_try='test -z "$ac_c_werror_flag"
46103                          || test ! -s conftest.err'
46104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46105   (eval $ac_try) 2>&5
46106   ac_status=$?
46107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46108   (exit $ac_status); }; } &&
46109          { ac_try='test -s conftest$ac_exeext'
46110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46111   (eval $ac_try) 2>&5
46112   ac_status=$?
46113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46114   (exit $ac_status); }; }; then
46115   ac_cv_lib_crypt_crypt=yes
46116 else
46117   echo "$as_me: failed program was:" >&5
46118 sed 's/^/| /' conftest.$ac_ext >&5
46119
46120 ac_cv_lib_crypt_crypt=no
46121 fi
46122 rm -f conftest.err conftest.$ac_objext \
46123       conftest$ac_exeext conftest.$ac_ext
46124 LIBS=$ac_check_lib_save_LIBS
46125 fi
46126 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
46127 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
46128 if test $ac_cv_lib_crypt_crypt = yes; then
46129   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46130                         have_crypt=yes
46131 else
46132   have_crypt=no
46133 fi
46134
46135 fi
46136
46137
46138         LIBS="$save_LIBS"
46139
46140         if test $have_crypt = yes ; then
46141
46142 cat >>confdefs.h <<\_ACEOF
46143 #define HAVE_CRYPT 1
46144 _ACEOF
46145
46146         else
46147                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46148 echo "$as_me: WARNING: could not find crypt" >&2;}
46149                 if test $ol_enable_crypt = yes ; then
46150                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46151 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46152    { (exit 1); exit 1; }; }
46153                 fi
46154
46155                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46156 echo "$as_me: WARNING: disabling crypt support" >&2;}
46157                 ol_enable_crypt=no
46158         fi
46159 fi
46160
46161 if test $ol_enable_proctitle != no ; then
46162         echo "$as_me:$LINENO: checking for setproctitle" >&5
46163 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46164 if test "${ac_cv_func_setproctitle+set}" = set; then
46165   echo $ECHO_N "(cached) $ECHO_C" >&6
46166 else
46167   cat >conftest.$ac_ext <<_ACEOF
46168 /* confdefs.h.  */
46169 _ACEOF
46170 cat confdefs.h >>conftest.$ac_ext
46171 cat >>conftest.$ac_ext <<_ACEOF
46172 /* end confdefs.h.  */
46173 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46175 #define setproctitle innocuous_setproctitle
46176
46177 /* System header to define __stub macros and hopefully few prototypes,
46178     which can conflict with char setproctitle (); below.
46179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46180     <limits.h> exists even on freestanding compilers.  */
46181
46182 #ifdef __STDC__
46183 # include <limits.h>
46184 #else
46185 # include <assert.h>
46186 #endif
46187
46188 #undef setproctitle
46189
46190 /* Override any gcc2 internal prototype to avoid an error.  */
46191 #ifdef __cplusplus
46192 extern "C"
46193 {
46194 #endif
46195 /* We use char because int might match the return type of a gcc2
46196    builtin and then its argument prototype would still apply.  */
46197 char setproctitle ();
46198 /* The GNU C library defines this for functions which it implements
46199     to always fail with ENOSYS.  Some functions are actually named
46200     something starting with __ and the normal name is an alias.  */
46201 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46202 choke me
46203 #else
46204 char (*f) () = setproctitle;
46205 #endif
46206 #ifdef __cplusplus
46207 }
46208 #endif
46209
46210 int
46211 main ()
46212 {
46213 return f != setproctitle;
46214   ;
46215   return 0;
46216 }
46217 _ACEOF
46218 rm -f conftest.$ac_objext conftest$ac_exeext
46219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46220   (eval $ac_link) 2>conftest.er1
46221   ac_status=$?
46222   grep -v '^ *+' conftest.er1 >conftest.err
46223   rm -f conftest.er1
46224   cat conftest.err >&5
46225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46226   (exit $ac_status); } &&
46227          { ac_try='test -z "$ac_c_werror_flag"
46228                          || test ! -s conftest.err'
46229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46230   (eval $ac_try) 2>&5
46231   ac_status=$?
46232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46233   (exit $ac_status); }; } &&
46234          { ac_try='test -s conftest$ac_exeext'
46235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46236   (eval $ac_try) 2>&5
46237   ac_status=$?
46238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46239   (exit $ac_status); }; }; then
46240   ac_cv_func_setproctitle=yes
46241 else
46242   echo "$as_me: failed program was:" >&5
46243 sed 's/^/| /' conftest.$ac_ext >&5
46244
46245 ac_cv_func_setproctitle=no
46246 fi
46247 rm -f conftest.err conftest.$ac_objext \
46248       conftest$ac_exeext conftest.$ac_ext
46249 fi
46250 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46251 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46252 if test $ac_cv_func_setproctitle = yes; then
46253   have_setproctitle=yes
46254 else
46255
46256                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46257 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46258 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46259   echo $ECHO_N "(cached) $ECHO_C" >&6
46260 else
46261   ac_check_lib_save_LIBS=$LIBS
46262 LIBS="-lutil  $LIBS"
46263 cat >conftest.$ac_ext <<_ACEOF
46264 /* confdefs.h.  */
46265 _ACEOF
46266 cat confdefs.h >>conftest.$ac_ext
46267 cat >>conftest.$ac_ext <<_ACEOF
46268 /* end confdefs.h.  */
46269
46270 /* Override any gcc2 internal prototype to avoid an error.  */
46271 #ifdef __cplusplus
46272 extern "C"
46273 #endif
46274 /* We use char because int might match the return type of a gcc2
46275    builtin and then its argument prototype would still apply.  */
46276 char setproctitle ();
46277 int
46278 main ()
46279 {
46280 setproctitle ();
46281   ;
46282   return 0;
46283 }
46284 _ACEOF
46285 rm -f conftest.$ac_objext conftest$ac_exeext
46286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46287   (eval $ac_link) 2>conftest.er1
46288   ac_status=$?
46289   grep -v '^ *+' conftest.er1 >conftest.err
46290   rm -f conftest.er1
46291   cat conftest.err >&5
46292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46293   (exit $ac_status); } &&
46294          { ac_try='test -z "$ac_c_werror_flag"
46295                          || test ! -s conftest.err'
46296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46297   (eval $ac_try) 2>&5
46298   ac_status=$?
46299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46300   (exit $ac_status); }; } &&
46301          { ac_try='test -s conftest$ac_exeext'
46302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46303   (eval $ac_try) 2>&5
46304   ac_status=$?
46305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46306   (exit $ac_status); }; }; then
46307   ac_cv_lib_util_setproctitle=yes
46308 else
46309   echo "$as_me: failed program was:" >&5
46310 sed 's/^/| /' conftest.$ac_ext >&5
46311
46312 ac_cv_lib_util_setproctitle=no
46313 fi
46314 rm -f conftest.err conftest.$ac_objext \
46315       conftest$ac_exeext conftest.$ac_ext
46316 LIBS=$ac_check_lib_save_LIBS
46317 fi
46318 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46319 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46320 if test $ac_cv_lib_util_setproctitle = yes; then
46321   have_setproctitle=yes
46322                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46323 else
46324   have_setproctitle=no
46325                         case $LIBOBJS in
46326     "setproctitle.$ac_objext"   | \
46327   *" setproctitle.$ac_objext"   | \
46328     "setproctitle.$ac_objext "* | \
46329   *" setproctitle.$ac_objext "* ) ;;
46330   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46331 esac
46332
46333                         LIBSRCS="$LIBSRCS setproctitle.c"
46334 fi
46335
46336 fi
46337
46338
46339         if test $have_setproctitle = yes ; then
46340
46341 cat >>confdefs.h <<\_ACEOF
46342 #define HAVE_SETPROCTITLE 1
46343 _ACEOF
46344
46345         fi
46346 fi
46347
46348 if test $ol_enable_slp != no ; then
46349
46350 for ac_header in slp.h
46351 do
46352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46354   echo "$as_me:$LINENO: checking for $ac_header" >&5
46355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46357   echo $ECHO_N "(cached) $ECHO_C" >&6
46358 fi
46359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46361 else
46362   # Is the header compilable?
46363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46365 cat >conftest.$ac_ext <<_ACEOF
46366 /* confdefs.h.  */
46367 _ACEOF
46368 cat confdefs.h >>conftest.$ac_ext
46369 cat >>conftest.$ac_ext <<_ACEOF
46370 /* end confdefs.h.  */
46371 $ac_includes_default
46372 #include <$ac_header>
46373 _ACEOF
46374 rm -f conftest.$ac_objext
46375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46376   (eval $ac_compile) 2>conftest.er1
46377   ac_status=$?
46378   grep -v '^ *+' conftest.er1 >conftest.err
46379   rm -f conftest.er1
46380   cat conftest.err >&5
46381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46382   (exit $ac_status); } &&
46383          { ac_try='test -z "$ac_c_werror_flag"
46384                          || test ! -s conftest.err'
46385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46386   (eval $ac_try) 2>&5
46387   ac_status=$?
46388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46389   (exit $ac_status); }; } &&
46390          { ac_try='test -s conftest.$ac_objext'
46391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46392   (eval $ac_try) 2>&5
46393   ac_status=$?
46394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46395   (exit $ac_status); }; }; then
46396   ac_header_compiler=yes
46397 else
46398   echo "$as_me: failed program was:" >&5
46399 sed 's/^/| /' conftest.$ac_ext >&5
46400
46401 ac_header_compiler=no
46402 fi
46403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46405 echo "${ECHO_T}$ac_header_compiler" >&6
46406
46407 # Is the header present?
46408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46410 cat >conftest.$ac_ext <<_ACEOF
46411 /* confdefs.h.  */
46412 _ACEOF
46413 cat confdefs.h >>conftest.$ac_ext
46414 cat >>conftest.$ac_ext <<_ACEOF
46415 /* end confdefs.h.  */
46416 #include <$ac_header>
46417 _ACEOF
46418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46420   ac_status=$?
46421   grep -v '^ *+' conftest.er1 >conftest.err
46422   rm -f conftest.er1
46423   cat conftest.err >&5
46424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46425   (exit $ac_status); } >/dev/null; then
46426   if test -s conftest.err; then
46427     ac_cpp_err=$ac_c_preproc_warn_flag
46428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46429   else
46430     ac_cpp_err=
46431   fi
46432 else
46433   ac_cpp_err=yes
46434 fi
46435 if test -z "$ac_cpp_err"; then
46436   ac_header_preproc=yes
46437 else
46438   echo "$as_me: failed program was:" >&5
46439 sed 's/^/| /' conftest.$ac_ext >&5
46440
46441   ac_header_preproc=no
46442 fi
46443 rm -f conftest.err conftest.$ac_ext
46444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46445 echo "${ECHO_T}$ac_header_preproc" >&6
46446
46447 # So?  What about this header?
46448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46449   yes:no: )
46450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46454     ac_header_preproc=yes
46455     ;;
46456   no:yes:* )
46457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46459     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46460 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46461     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46463     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46464 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46467     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46469     (
46470       cat <<\_ASBOX
46471 ## ------------------------------------------ ##
46472 ## Report this to the AC_PACKAGE_NAME lists.  ##
46473 ## ------------------------------------------ ##
46474 _ASBOX
46475     ) |
46476       sed "s/^/$as_me: WARNING:     /" >&2
46477     ;;
46478 esac
46479 echo "$as_me:$LINENO: checking for $ac_header" >&5
46480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46482   echo $ECHO_N "(cached) $ECHO_C" >&6
46483 else
46484   eval "$as_ac_Header=\$ac_header_preproc"
46485 fi
46486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46488
46489 fi
46490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46491   cat >>confdefs.h <<_ACEOF
46492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46493 _ACEOF
46494
46495 fi
46496
46497 done
46498
46499
46500         if test $ac_cv_header_slp_h = yes ; then
46501                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46502 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46503 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46504   echo $ECHO_N "(cached) $ECHO_C" >&6
46505 else
46506   ac_check_lib_save_LIBS=$LIBS
46507 LIBS="-lslp  $LIBS"
46508 cat >conftest.$ac_ext <<_ACEOF
46509 /* confdefs.h.  */
46510 _ACEOF
46511 cat confdefs.h >>conftest.$ac_ext
46512 cat >>conftest.$ac_ext <<_ACEOF
46513 /* end confdefs.h.  */
46514
46515 /* Override any gcc2 internal prototype to avoid an error.  */
46516 #ifdef __cplusplus
46517 extern "C"
46518 #endif
46519 /* We use char because int might match the return type of a gcc2
46520    builtin and then its argument prototype would still apply.  */
46521 char SLPOpen ();
46522 int
46523 main ()
46524 {
46525 SLPOpen ();
46526   ;
46527   return 0;
46528 }
46529 _ACEOF
46530 rm -f conftest.$ac_objext conftest$ac_exeext
46531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46532   (eval $ac_link) 2>conftest.er1
46533   ac_status=$?
46534   grep -v '^ *+' conftest.er1 >conftest.err
46535   rm -f conftest.er1
46536   cat conftest.err >&5
46537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46538   (exit $ac_status); } &&
46539          { ac_try='test -z "$ac_c_werror_flag"
46540                          || test ! -s conftest.err'
46541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46542   (eval $ac_try) 2>&5
46543   ac_status=$?
46544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46545   (exit $ac_status); }; } &&
46546          { ac_try='test -s conftest$ac_exeext'
46547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46548   (eval $ac_try) 2>&5
46549   ac_status=$?
46550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46551   (exit $ac_status); }; }; then
46552   ac_cv_lib_slp_SLPOpen=yes
46553 else
46554   echo "$as_me: failed program was:" >&5
46555 sed 's/^/| /' conftest.$ac_ext >&5
46556
46557 ac_cv_lib_slp_SLPOpen=no
46558 fi
46559 rm -f conftest.err conftest.$ac_objext \
46560       conftest$ac_exeext conftest.$ac_ext
46561 LIBS=$ac_check_lib_save_LIBS
46562 fi
46563 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46564 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46565 if test $ac_cv_lib_slp_SLPOpen = yes; then
46566   have_slp=yes
46567 else
46568   have_slp=no
46569 fi
46570
46571                 if test $have_slp = yes ; then
46572
46573 cat >>confdefs.h <<\_ACEOF
46574 #define HAVE_SLP 1
46575 _ACEOF
46576
46577                         SLAPD_SLP_LIBS=-lslp
46578                 fi
46579
46580         elif test $ol_enable_slp = yes ; then
46581                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46582 echo "$as_me: error: SLP not found" >&2;}
46583    { (exit 1); exit 1; }; }
46584         fi
46585 fi
46586
46587 if test "$ol_with_multiple_precision" != "no" ; then
46588         ol_have_bignum=no
46589         ol_have_gmp=no
46590
46591
46592
46593 for ac_header in openssl/bn.h bn.h
46594 do
46595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46597   echo "$as_me:$LINENO: checking for $ac_header" >&5
46598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46600   echo $ECHO_N "(cached) $ECHO_C" >&6
46601 fi
46602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46604 else
46605   # Is the header compilable?
46606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46608 cat >conftest.$ac_ext <<_ACEOF
46609 /* confdefs.h.  */
46610 _ACEOF
46611 cat confdefs.h >>conftest.$ac_ext
46612 cat >>conftest.$ac_ext <<_ACEOF
46613 /* end confdefs.h.  */
46614 $ac_includes_default
46615 #include <$ac_header>
46616 _ACEOF
46617 rm -f conftest.$ac_objext
46618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46619   (eval $ac_compile) 2>conftest.er1
46620   ac_status=$?
46621   grep -v '^ *+' conftest.er1 >conftest.err
46622   rm -f conftest.er1
46623   cat conftest.err >&5
46624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46625   (exit $ac_status); } &&
46626          { ac_try='test -z "$ac_c_werror_flag"
46627                          || test ! -s conftest.err'
46628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46629   (eval $ac_try) 2>&5
46630   ac_status=$?
46631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46632   (exit $ac_status); }; } &&
46633          { ac_try='test -s conftest.$ac_objext'
46634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46635   (eval $ac_try) 2>&5
46636   ac_status=$?
46637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46638   (exit $ac_status); }; }; then
46639   ac_header_compiler=yes
46640 else
46641   echo "$as_me: failed program was:" >&5
46642 sed 's/^/| /' conftest.$ac_ext >&5
46643
46644 ac_header_compiler=no
46645 fi
46646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46648 echo "${ECHO_T}$ac_header_compiler" >&6
46649
46650 # Is the header present?
46651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46653 cat >conftest.$ac_ext <<_ACEOF
46654 /* confdefs.h.  */
46655 _ACEOF
46656 cat confdefs.h >>conftest.$ac_ext
46657 cat >>conftest.$ac_ext <<_ACEOF
46658 /* end confdefs.h.  */
46659 #include <$ac_header>
46660 _ACEOF
46661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46663   ac_status=$?
46664   grep -v '^ *+' conftest.er1 >conftest.err
46665   rm -f conftest.er1
46666   cat conftest.err >&5
46667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46668   (exit $ac_status); } >/dev/null; then
46669   if test -s conftest.err; then
46670     ac_cpp_err=$ac_c_preproc_warn_flag
46671     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46672   else
46673     ac_cpp_err=
46674   fi
46675 else
46676   ac_cpp_err=yes
46677 fi
46678 if test -z "$ac_cpp_err"; then
46679   ac_header_preproc=yes
46680 else
46681   echo "$as_me: failed program was:" >&5
46682 sed 's/^/| /' conftest.$ac_ext >&5
46683
46684   ac_header_preproc=no
46685 fi
46686 rm -f conftest.err conftest.$ac_ext
46687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46688 echo "${ECHO_T}$ac_header_preproc" >&6
46689
46690 # So?  What about this header?
46691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46692   yes:no: )
46693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46697     ac_header_preproc=yes
46698     ;;
46699   no:yes:* )
46700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46712     (
46713       cat <<\_ASBOX
46714 ## ------------------------------------------ ##
46715 ## Report this to the AC_PACKAGE_NAME lists.  ##
46716 ## ------------------------------------------ ##
46717 _ASBOX
46718     ) |
46719       sed "s/^/$as_me: WARNING:     /" >&2
46720     ;;
46721 esac
46722 echo "$as_me:$LINENO: checking for $ac_header" >&5
46723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46725   echo $ECHO_N "(cached) $ECHO_C" >&6
46726 else
46727   eval "$as_ac_Header=\$ac_header_preproc"
46728 fi
46729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46731
46732 fi
46733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46734   cat >>confdefs.h <<_ACEOF
46735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46736 _ACEOF
46737
46738 fi
46739
46740 done
46741
46742
46743
46744 for ac_header in openssl/crypto.h crypto.h
46745 do
46746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46748   echo "$as_me:$LINENO: checking for $ac_header" >&5
46749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46751   echo $ECHO_N "(cached) $ECHO_C" >&6
46752 fi
46753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46755 else
46756   # Is the header compilable?
46757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46759 cat >conftest.$ac_ext <<_ACEOF
46760 /* confdefs.h.  */
46761 _ACEOF
46762 cat confdefs.h >>conftest.$ac_ext
46763 cat >>conftest.$ac_ext <<_ACEOF
46764 /* end confdefs.h.  */
46765 $ac_includes_default
46766 #include <$ac_header>
46767 _ACEOF
46768 rm -f conftest.$ac_objext
46769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46770   (eval $ac_compile) 2>conftest.er1
46771   ac_status=$?
46772   grep -v '^ *+' conftest.er1 >conftest.err
46773   rm -f conftest.er1
46774   cat conftest.err >&5
46775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46776   (exit $ac_status); } &&
46777          { ac_try='test -z "$ac_c_werror_flag"
46778                          || test ! -s conftest.err'
46779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46780   (eval $ac_try) 2>&5
46781   ac_status=$?
46782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46783   (exit $ac_status); }; } &&
46784          { ac_try='test -s conftest.$ac_objext'
46785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46786   (eval $ac_try) 2>&5
46787   ac_status=$?
46788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46789   (exit $ac_status); }; }; then
46790   ac_header_compiler=yes
46791 else
46792   echo "$as_me: failed program was:" >&5
46793 sed 's/^/| /' conftest.$ac_ext >&5
46794
46795 ac_header_compiler=no
46796 fi
46797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46799 echo "${ECHO_T}$ac_header_compiler" >&6
46800
46801 # Is the header present?
46802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46804 cat >conftest.$ac_ext <<_ACEOF
46805 /* confdefs.h.  */
46806 _ACEOF
46807 cat confdefs.h >>conftest.$ac_ext
46808 cat >>conftest.$ac_ext <<_ACEOF
46809 /* end confdefs.h.  */
46810 #include <$ac_header>
46811 _ACEOF
46812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46814   ac_status=$?
46815   grep -v '^ *+' conftest.er1 >conftest.err
46816   rm -f conftest.er1
46817   cat conftest.err >&5
46818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46819   (exit $ac_status); } >/dev/null; then
46820   if test -s conftest.err; then
46821     ac_cpp_err=$ac_c_preproc_warn_flag
46822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46823   else
46824     ac_cpp_err=
46825   fi
46826 else
46827   ac_cpp_err=yes
46828 fi
46829 if test -z "$ac_cpp_err"; then
46830   ac_header_preproc=yes
46831 else
46832   echo "$as_me: failed program was:" >&5
46833 sed 's/^/| /' conftest.$ac_ext >&5
46834
46835   ac_header_preproc=no
46836 fi
46837 rm -f conftest.err conftest.$ac_ext
46838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46839 echo "${ECHO_T}$ac_header_preproc" >&6
46840
46841 # So?  What about this header?
46842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46843   yes:no: )
46844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46848     ac_header_preproc=yes
46849     ;;
46850   no:yes:* )
46851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46863     (
46864       cat <<\_ASBOX
46865 ## ------------------------------------------ ##
46866 ## Report this to the AC_PACKAGE_NAME lists.  ##
46867 ## ------------------------------------------ ##
46868 _ASBOX
46869     ) |
46870       sed "s/^/$as_me: WARNING:     /" >&2
46871     ;;
46872 esac
46873 echo "$as_me:$LINENO: checking for $ac_header" >&5
46874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46876   echo $ECHO_N "(cached) $ECHO_C" >&6
46877 else
46878   eval "$as_ac_Header=\$ac_header_preproc"
46879 fi
46880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46882
46883 fi
46884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46885   cat >>confdefs.h <<_ACEOF
46886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46887 _ACEOF
46888
46889 fi
46890
46891 done
46892
46893
46894 for ac_header in gmp.h
46895 do
46896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46898   echo "$as_me:$LINENO: checking for $ac_header" >&5
46899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46901   echo $ECHO_N "(cached) $ECHO_C" >&6
46902 fi
46903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46905 else
46906   # Is the header compilable?
46907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46909 cat >conftest.$ac_ext <<_ACEOF
46910 /* confdefs.h.  */
46911 _ACEOF
46912 cat confdefs.h >>conftest.$ac_ext
46913 cat >>conftest.$ac_ext <<_ACEOF
46914 /* end confdefs.h.  */
46915 $ac_includes_default
46916 #include <$ac_header>
46917 _ACEOF
46918 rm -f conftest.$ac_objext
46919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46920   (eval $ac_compile) 2>conftest.er1
46921   ac_status=$?
46922   grep -v '^ *+' conftest.er1 >conftest.err
46923   rm -f conftest.er1
46924   cat conftest.err >&5
46925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46926   (exit $ac_status); } &&
46927          { ac_try='test -z "$ac_c_werror_flag"
46928                          || test ! -s conftest.err'
46929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46930   (eval $ac_try) 2>&5
46931   ac_status=$?
46932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46933   (exit $ac_status); }; } &&
46934          { ac_try='test -s conftest.$ac_objext'
46935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46936   (eval $ac_try) 2>&5
46937   ac_status=$?
46938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46939   (exit $ac_status); }; }; then
46940   ac_header_compiler=yes
46941 else
46942   echo "$as_me: failed program was:" >&5
46943 sed 's/^/| /' conftest.$ac_ext >&5
46944
46945 ac_header_compiler=no
46946 fi
46947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46949 echo "${ECHO_T}$ac_header_compiler" >&6
46950
46951 # Is the header present?
46952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46954 cat >conftest.$ac_ext <<_ACEOF
46955 /* confdefs.h.  */
46956 _ACEOF
46957 cat confdefs.h >>conftest.$ac_ext
46958 cat >>conftest.$ac_ext <<_ACEOF
46959 /* end confdefs.h.  */
46960 #include <$ac_header>
46961 _ACEOF
46962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46964   ac_status=$?
46965   grep -v '^ *+' conftest.er1 >conftest.err
46966   rm -f conftest.er1
46967   cat conftest.err >&5
46968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46969   (exit $ac_status); } >/dev/null; then
46970   if test -s conftest.err; then
46971     ac_cpp_err=$ac_c_preproc_warn_flag
46972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46973   else
46974     ac_cpp_err=
46975   fi
46976 else
46977   ac_cpp_err=yes
46978 fi
46979 if test -z "$ac_cpp_err"; then
46980   ac_header_preproc=yes
46981 else
46982   echo "$as_me: failed program was:" >&5
46983 sed 's/^/| /' conftest.$ac_ext >&5
46984
46985   ac_header_preproc=no
46986 fi
46987 rm -f conftest.err conftest.$ac_ext
46988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46989 echo "${ECHO_T}$ac_header_preproc" >&6
46990
46991 # So?  What about this header?
46992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46993   yes:no: )
46994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46998     ac_header_preproc=yes
46999     ;;
47000   no:yes:* )
47001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47013     (
47014       cat <<\_ASBOX
47015 ## ------------------------------------------ ##
47016 ## Report this to the AC_PACKAGE_NAME lists.  ##
47017 ## ------------------------------------------ ##
47018 _ASBOX
47019     ) |
47020       sed "s/^/$as_me: WARNING:     /" >&2
47021     ;;
47022 esac
47023 echo "$as_me:$LINENO: checking for $ac_header" >&5
47024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47026   echo $ECHO_N "(cached) $ECHO_C" >&6
47027 else
47028   eval "$as_ac_Header=\$ac_header_preproc"
47029 fi
47030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47032
47033 fi
47034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47035   cat >>confdefs.h <<_ACEOF
47036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47037 _ACEOF
47038
47039 fi
47040
47041 done
47042
47043
47044         if test "$ol_with_tls" = "found" ; then
47045                 ol_have_bn_h=no
47046                 ol_have_crypto_h=no
47047
47048                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
47049                                 -o "$ac_cv_header_bn_h" = "yes" ; then
47050                         ol_have_bn_h=yes
47051                 fi
47052
47053                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
47054                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
47055                         ol_have_crypto_h=yes
47056                 fi
47057
47058                 if test "$ol_have_bn_h" = "yes" \
47059                                 -a "$ol_have_crypto_h" = "yes" ; then
47060                         ol_have_bignum=yes
47061                 fi
47062         fi
47063
47064         if test $ac_cv_header_gmp_h = yes ; then
47065                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
47066 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
47067 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
47068   echo $ECHO_N "(cached) $ECHO_C" >&6
47069 else
47070   ac_check_lib_save_LIBS=$LIBS
47071 LIBS="-lgmp  $LIBS"
47072 cat >conftest.$ac_ext <<_ACEOF
47073 /* confdefs.h.  */
47074 _ACEOF
47075 cat confdefs.h >>conftest.$ac_ext
47076 cat >>conftest.$ac_ext <<_ACEOF
47077 /* end confdefs.h.  */
47078
47079 /* Override any gcc2 internal prototype to avoid an error.  */
47080 #ifdef __cplusplus
47081 extern "C"
47082 #endif
47083 /* We use char because int might match the return type of a gcc2
47084    builtin and then its argument prototype would still apply.  */
47085 char __gmpz_add_ui ();
47086 int
47087 main ()
47088 {
47089 __gmpz_add_ui ();
47090   ;
47091   return 0;
47092 }
47093 _ACEOF
47094 rm -f conftest.$ac_objext conftest$ac_exeext
47095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47096   (eval $ac_link) 2>conftest.er1
47097   ac_status=$?
47098   grep -v '^ *+' conftest.er1 >conftest.err
47099   rm -f conftest.er1
47100   cat conftest.err >&5
47101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47102   (exit $ac_status); } &&
47103          { ac_try='test -z "$ac_c_werror_flag"
47104                          || test ! -s conftest.err'
47105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47106   (eval $ac_try) 2>&5
47107   ac_status=$?
47108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47109   (exit $ac_status); }; } &&
47110          { ac_try='test -s conftest$ac_exeext'
47111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47112   (eval $ac_try) 2>&5
47113   ac_status=$?
47114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47115   (exit $ac_status); }; }; then
47116   ac_cv_lib_gmp___gmpz_add_ui=yes
47117 else
47118   echo "$as_me: failed program was:" >&5
47119 sed 's/^/| /' conftest.$ac_ext >&5
47120
47121 ac_cv_lib_gmp___gmpz_add_ui=no
47122 fi
47123 rm -f conftest.err conftest.$ac_objext \
47124       conftest$ac_exeext conftest.$ac_ext
47125 LIBS=$ac_check_lib_save_LIBS
47126 fi
47127 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
47128 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47129 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47130   have_gmp=yes
47131 else
47132   have_gmp=no
47133 fi
47134
47135                 if test $have_gmp = yes ; then
47136                         ol_have_gmp=yes
47137                 fi
47138         fi
47139
47140         echo "$as_me:$LINENO: checking for multiple precision support" >&5
47141 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47142
47143         ol_mp_support="none"
47144         case "$ol_with_multiple_precision" in
47145         auto)
47146                                                                                 if test "$ol_have_bignum" = "yes" ; then
47147                         ol_mp_support="bignum"
47148                 else
47149                         if test "$ol_have_gmp" = "yes" ; then
47150                                 ol_mp_support="gmp"
47151                         fi
47152                 fi
47153                 ;;
47154         bignum)
47155                 if test "$ol_have_bignum" != "yes" ; then
47156                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47157 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47158    { (exit 1); exit 1; }; }
47159                 fi
47160                 ol_mp_support="bignum"
47161                 ;;
47162         gmp)
47163                 if test "$ol_have_gmp" != "yes" ; then
47164                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
47165 echo "$as_me: error: GMP not available" >&2;}
47166    { (exit 1); exit 1; }; }
47167                 fi
47168                 ol_mp_support="gmp"
47169                 ;;
47170         yes)
47171                 if test "$ol_have_bignum" = "yes" ; then
47172                         ol_mp_support="bignum"
47173                 elif test "$ol_have_gmp" = "yes" ; then
47174                         ol_mp_support="gmp"
47175                 else
47176                         { { echo "$as_me:$LINENO: error: not available" >&5
47177 echo "$as_me: error: not available" >&2;}
47178    { (exit 1); exit 1; }; }
47179                 fi
47180                 ;;
47181         esac
47182
47183         case "$ol_mp_support" in
47184         bignum)
47185
47186 cat >>confdefs.h <<\_ACEOF
47187 #define HAVE_BIGNUM 1
47188 _ACEOF
47189
47190                 ;;
47191         gmp)
47192
47193 cat >>confdefs.h <<\_ACEOF
47194 #define HAVE_GMP 1
47195 _ACEOF
47196
47197                 SLAPD_GMP_LIBS=-lgmp
47198                 ;;
47199         none)
47200                 ;;
47201         esac
47202
47203         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47204 echo "${ECHO_T}$ol_mp_support" >&6
47205 fi
47206
47207
47208 echo "$as_me:$LINENO: checking for mode_t" >&5
47209 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47210 if test "${ac_cv_type_mode_t+set}" = set; then
47211   echo $ECHO_N "(cached) $ECHO_C" >&6
47212 else
47213   cat >conftest.$ac_ext <<_ACEOF
47214 /* confdefs.h.  */
47215 _ACEOF
47216 cat confdefs.h >>conftest.$ac_ext
47217 cat >>conftest.$ac_ext <<_ACEOF
47218 /* end confdefs.h.  */
47219 $ac_includes_default
47220 int
47221 main ()
47222 {
47223 if ((mode_t *) 0)
47224   return 0;
47225 if (sizeof (mode_t))
47226   return 0;
47227   ;
47228   return 0;
47229 }
47230 _ACEOF
47231 rm -f conftest.$ac_objext
47232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47233   (eval $ac_compile) 2>conftest.er1
47234   ac_status=$?
47235   grep -v '^ *+' conftest.er1 >conftest.err
47236   rm -f conftest.er1
47237   cat conftest.err >&5
47238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47239   (exit $ac_status); } &&
47240          { ac_try='test -z "$ac_c_werror_flag"
47241                          || test ! -s conftest.err'
47242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47243   (eval $ac_try) 2>&5
47244   ac_status=$?
47245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47246   (exit $ac_status); }; } &&
47247          { ac_try='test -s conftest.$ac_objext'
47248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47249   (eval $ac_try) 2>&5
47250   ac_status=$?
47251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47252   (exit $ac_status); }; }; then
47253   ac_cv_type_mode_t=yes
47254 else
47255   echo "$as_me: failed program was:" >&5
47256 sed 's/^/| /' conftest.$ac_ext >&5
47257
47258 ac_cv_type_mode_t=no
47259 fi
47260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47261 fi
47262 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47263 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47264 if test $ac_cv_type_mode_t = yes; then
47265   :
47266 else
47267
47268 cat >>confdefs.h <<_ACEOF
47269 #define mode_t int
47270 _ACEOF
47271
47272 fi
47273
47274 echo "$as_me:$LINENO: checking for off_t" >&5
47275 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47276 if test "${ac_cv_type_off_t+set}" = set; then
47277   echo $ECHO_N "(cached) $ECHO_C" >&6
47278 else
47279   cat >conftest.$ac_ext <<_ACEOF
47280 /* confdefs.h.  */
47281 _ACEOF
47282 cat confdefs.h >>conftest.$ac_ext
47283 cat >>conftest.$ac_ext <<_ACEOF
47284 /* end confdefs.h.  */
47285 $ac_includes_default
47286 int
47287 main ()
47288 {
47289 if ((off_t *) 0)
47290   return 0;
47291 if (sizeof (off_t))
47292   return 0;
47293   ;
47294   return 0;
47295 }
47296 _ACEOF
47297 rm -f conftest.$ac_objext
47298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47299   (eval $ac_compile) 2>conftest.er1
47300   ac_status=$?
47301   grep -v '^ *+' conftest.er1 >conftest.err
47302   rm -f conftest.er1
47303   cat conftest.err >&5
47304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47305   (exit $ac_status); } &&
47306          { ac_try='test -z "$ac_c_werror_flag"
47307                          || test ! -s conftest.err'
47308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47309   (eval $ac_try) 2>&5
47310   ac_status=$?
47311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47312   (exit $ac_status); }; } &&
47313          { ac_try='test -s conftest.$ac_objext'
47314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47315   (eval $ac_try) 2>&5
47316   ac_status=$?
47317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47318   (exit $ac_status); }; }; then
47319   ac_cv_type_off_t=yes
47320 else
47321   echo "$as_me: failed program was:" >&5
47322 sed 's/^/| /' conftest.$ac_ext >&5
47323
47324 ac_cv_type_off_t=no
47325 fi
47326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47327 fi
47328 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47329 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47330 if test $ac_cv_type_off_t = yes; then
47331   :
47332 else
47333
47334 cat >>confdefs.h <<_ACEOF
47335 #define off_t long
47336 _ACEOF
47337
47338 fi
47339
47340 echo "$as_me:$LINENO: checking for pid_t" >&5
47341 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47342 if test "${ac_cv_type_pid_t+set}" = set; then
47343   echo $ECHO_N "(cached) $ECHO_C" >&6
47344 else
47345   cat >conftest.$ac_ext <<_ACEOF
47346 /* confdefs.h.  */
47347 _ACEOF
47348 cat confdefs.h >>conftest.$ac_ext
47349 cat >>conftest.$ac_ext <<_ACEOF
47350 /* end confdefs.h.  */
47351 $ac_includes_default
47352 int
47353 main ()
47354 {
47355 if ((pid_t *) 0)
47356   return 0;
47357 if (sizeof (pid_t))
47358   return 0;
47359   ;
47360   return 0;
47361 }
47362 _ACEOF
47363 rm -f conftest.$ac_objext
47364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47365   (eval $ac_compile) 2>conftest.er1
47366   ac_status=$?
47367   grep -v '^ *+' conftest.er1 >conftest.err
47368   rm -f conftest.er1
47369   cat conftest.err >&5
47370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47371   (exit $ac_status); } &&
47372          { ac_try='test -z "$ac_c_werror_flag"
47373                          || test ! -s conftest.err'
47374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47375   (eval $ac_try) 2>&5
47376   ac_status=$?
47377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47378   (exit $ac_status); }; } &&
47379          { ac_try='test -s conftest.$ac_objext'
47380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47381   (eval $ac_try) 2>&5
47382   ac_status=$?
47383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47384   (exit $ac_status); }; }; then
47385   ac_cv_type_pid_t=yes
47386 else
47387   echo "$as_me: failed program was:" >&5
47388 sed 's/^/| /' conftest.$ac_ext >&5
47389
47390 ac_cv_type_pid_t=no
47391 fi
47392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47393 fi
47394 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47395 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47396 if test $ac_cv_type_pid_t = yes; then
47397   :
47398 else
47399
47400 cat >>confdefs.h <<_ACEOF
47401 #define pid_t int
47402 _ACEOF
47403
47404 fi
47405
47406 echo "$as_me:$LINENO: checking for ssize_t" >&5
47407 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47408 if test "${ac_cv_type_ssize_t+set}" = set; then
47409   echo $ECHO_N "(cached) $ECHO_C" >&6
47410 else
47411   cat >conftest.$ac_ext <<_ACEOF
47412 /* confdefs.h.  */
47413 _ACEOF
47414 cat confdefs.h >>conftest.$ac_ext
47415 cat >>conftest.$ac_ext <<_ACEOF
47416 /* end confdefs.h.  */
47417 $ac_includes_default
47418 int
47419 main ()
47420 {
47421 if ((ssize_t *) 0)
47422   return 0;
47423 if (sizeof (ssize_t))
47424   return 0;
47425   ;
47426   return 0;
47427 }
47428 _ACEOF
47429 rm -f conftest.$ac_objext
47430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47431   (eval $ac_compile) 2>conftest.er1
47432   ac_status=$?
47433   grep -v '^ *+' conftest.er1 >conftest.err
47434   rm -f conftest.er1
47435   cat conftest.err >&5
47436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47437   (exit $ac_status); } &&
47438          { ac_try='test -z "$ac_c_werror_flag"
47439                          || test ! -s conftest.err'
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); }; } &&
47445          { ac_try='test -s conftest.$ac_objext'
47446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47447   (eval $ac_try) 2>&5
47448   ac_status=$?
47449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47450   (exit $ac_status); }; }; then
47451   ac_cv_type_ssize_t=yes
47452 else
47453   echo "$as_me: failed program was:" >&5
47454 sed 's/^/| /' conftest.$ac_ext >&5
47455
47456 ac_cv_type_ssize_t=no
47457 fi
47458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47459 fi
47460 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47461 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47462 if test $ac_cv_type_ssize_t = yes; then
47463   :
47464 else
47465
47466 cat >>confdefs.h <<_ACEOF
47467 #define ssize_t signed int
47468 _ACEOF
47469
47470 fi
47471
47472 echo "$as_me:$LINENO: checking for caddr_t" >&5
47473 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47474 if test "${ac_cv_type_caddr_t+set}" = set; then
47475   echo $ECHO_N "(cached) $ECHO_C" >&6
47476 else
47477   cat >conftest.$ac_ext <<_ACEOF
47478 /* confdefs.h.  */
47479 _ACEOF
47480 cat confdefs.h >>conftest.$ac_ext
47481 cat >>conftest.$ac_ext <<_ACEOF
47482 /* end confdefs.h.  */
47483 $ac_includes_default
47484 int
47485 main ()
47486 {
47487 if ((caddr_t *) 0)
47488   return 0;
47489 if (sizeof (caddr_t))
47490   return 0;
47491   ;
47492   return 0;
47493 }
47494 _ACEOF
47495 rm -f conftest.$ac_objext
47496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47497   (eval $ac_compile) 2>conftest.er1
47498   ac_status=$?
47499   grep -v '^ *+' conftest.er1 >conftest.err
47500   rm -f conftest.er1
47501   cat conftest.err >&5
47502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47503   (exit $ac_status); } &&
47504          { ac_try='test -z "$ac_c_werror_flag"
47505                          || test ! -s conftest.err'
47506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47507   (eval $ac_try) 2>&5
47508   ac_status=$?
47509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510   (exit $ac_status); }; } &&
47511          { ac_try='test -s conftest.$ac_objext'
47512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47513   (eval $ac_try) 2>&5
47514   ac_status=$?
47515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47516   (exit $ac_status); }; }; then
47517   ac_cv_type_caddr_t=yes
47518 else
47519   echo "$as_me: failed program was:" >&5
47520 sed 's/^/| /' conftest.$ac_ext >&5
47521
47522 ac_cv_type_caddr_t=no
47523 fi
47524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47525 fi
47526 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47527 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47528 if test $ac_cv_type_caddr_t = yes; then
47529   :
47530 else
47531
47532 cat >>confdefs.h <<_ACEOF
47533 #define caddr_t char *
47534 _ACEOF
47535
47536 fi
47537
47538 echo "$as_me:$LINENO: checking for size_t" >&5
47539 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47540 if test "${ac_cv_type_size_t+set}" = set; then
47541   echo $ECHO_N "(cached) $ECHO_C" >&6
47542 else
47543   cat >conftest.$ac_ext <<_ACEOF
47544 /* confdefs.h.  */
47545 _ACEOF
47546 cat confdefs.h >>conftest.$ac_ext
47547 cat >>conftest.$ac_ext <<_ACEOF
47548 /* end confdefs.h.  */
47549 $ac_includes_default
47550 int
47551 main ()
47552 {
47553 if ((size_t *) 0)
47554   return 0;
47555 if (sizeof (size_t))
47556   return 0;
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_size_t=yes
47584 else
47585   echo "$as_me: failed program was:" >&5
47586 sed 's/^/| /' conftest.$ac_ext >&5
47587
47588 ac_cv_type_size_t=no
47589 fi
47590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47591 fi
47592 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47593 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47594 if test $ac_cv_type_size_t = yes; then
47595   :
47596 else
47597
47598 cat >>confdefs.h <<_ACEOF
47599 #define size_t unsigned
47600 _ACEOF
47601
47602 fi
47603
47604
47605 echo "$as_me:$LINENO: checking for long long" >&5
47606 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47607 if test "${ac_cv_type_long_long+set}" = set; then
47608   echo $ECHO_N "(cached) $ECHO_C" >&6
47609 else
47610   cat >conftest.$ac_ext <<_ACEOF
47611 /* confdefs.h.  */
47612 _ACEOF
47613 cat confdefs.h >>conftest.$ac_ext
47614 cat >>conftest.$ac_ext <<_ACEOF
47615 /* end confdefs.h.  */
47616 $ac_includes_default
47617 int
47618 main ()
47619 {
47620 if ((long long *) 0)
47621   return 0;
47622 if (sizeof (long long))
47623   return 0;
47624   ;
47625   return 0;
47626 }
47627 _ACEOF
47628 rm -f conftest.$ac_objext
47629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47630   (eval $ac_compile) 2>conftest.er1
47631   ac_status=$?
47632   grep -v '^ *+' conftest.er1 >conftest.err
47633   rm -f conftest.er1
47634   cat conftest.err >&5
47635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47636   (exit $ac_status); } &&
47637          { ac_try='test -z "$ac_c_werror_flag"
47638                          || test ! -s conftest.err'
47639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47640   (eval $ac_try) 2>&5
47641   ac_status=$?
47642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47643   (exit $ac_status); }; } &&
47644          { ac_try='test -s conftest.$ac_objext'
47645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47646   (eval $ac_try) 2>&5
47647   ac_status=$?
47648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47649   (exit $ac_status); }; }; then
47650   ac_cv_type_long_long=yes
47651 else
47652   echo "$as_me: failed program was:" >&5
47653 sed 's/^/| /' conftest.$ac_ext >&5
47654
47655 ac_cv_type_long_long=no
47656 fi
47657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47658 fi
47659 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47660 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47661 if test $ac_cv_type_long_long = yes; then
47662
47663 cat >>confdefs.h <<_ACEOF
47664 #define HAVE_LONG_LONG 1
47665 _ACEOF
47666
47667
47668 fi
47669
47670 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47671 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47672 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47673   echo $ECHO_N "(cached) $ECHO_C" >&6
47674 else
47675   cat >conftest.$ac_ext <<_ACEOF
47676 /* confdefs.h.  */
47677 _ACEOF
47678 cat confdefs.h >>conftest.$ac_ext
47679 cat >>conftest.$ac_ext <<_ACEOF
47680 /* end confdefs.h.  */
47681 $ac_includes_default
47682 int
47683 main ()
47684 {
47685 if ((ptrdiff_t *) 0)
47686   return 0;
47687 if (sizeof (ptrdiff_t))
47688   return 0;
47689   ;
47690   return 0;
47691 }
47692 _ACEOF
47693 rm -f conftest.$ac_objext
47694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47695   (eval $ac_compile) 2>conftest.er1
47696   ac_status=$?
47697   grep -v '^ *+' conftest.er1 >conftest.err
47698   rm -f conftest.er1
47699   cat conftest.err >&5
47700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47701   (exit $ac_status); } &&
47702          { ac_try='test -z "$ac_c_werror_flag"
47703                          || test ! -s conftest.err'
47704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47705   (eval $ac_try) 2>&5
47706   ac_status=$?
47707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47708   (exit $ac_status); }; } &&
47709          { ac_try='test -s conftest.$ac_objext'
47710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47711   (eval $ac_try) 2>&5
47712   ac_status=$?
47713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47714   (exit $ac_status); }; }; then
47715   ac_cv_type_ptrdiff_t=yes
47716 else
47717   echo "$as_me: failed program was:" >&5
47718 sed 's/^/| /' conftest.$ac_ext >&5
47719
47720 ac_cv_type_ptrdiff_t=no
47721 fi
47722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47723 fi
47724 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47725 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47726 if test $ac_cv_type_ptrdiff_t = yes; then
47727
47728 cat >>confdefs.h <<_ACEOF
47729 #define HAVE_PTRDIFF_T 1
47730 _ACEOF
47731
47732
47733 fi
47734
47735
47736 echo "$as_me:$LINENO: checking for socklen_t" >&5
47737 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47738 if test "${ac_cv_type_socklen_t+set}" = set; then
47739   echo $ECHO_N "(cached) $ECHO_C" >&6
47740 else
47741   cat >conftest.$ac_ext <<_ACEOF
47742 /* confdefs.h.  */
47743 _ACEOF
47744 cat confdefs.h >>conftest.$ac_ext
47745 cat >>conftest.$ac_ext <<_ACEOF
47746 /* end confdefs.h.  */
47747 $ac_includes_default
47748 #ifdef HAVE_SYS_SOCKET_H
47749 #include <sys/socket.h>
47750 #endif
47751
47752
47753 int
47754 main ()
47755 {
47756 if ((socklen_t *) 0)
47757   return 0;
47758 if (sizeof (socklen_t))
47759   return 0;
47760   ;
47761   return 0;
47762 }
47763 _ACEOF
47764 rm -f conftest.$ac_objext
47765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47766   (eval $ac_compile) 2>conftest.er1
47767   ac_status=$?
47768   grep -v '^ *+' conftest.er1 >conftest.err
47769   rm -f conftest.er1
47770   cat conftest.err >&5
47771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47772   (exit $ac_status); } &&
47773          { ac_try='test -z "$ac_c_werror_flag"
47774                          || test ! -s conftest.err'
47775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47776   (eval $ac_try) 2>&5
47777   ac_status=$?
47778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47779   (exit $ac_status); }; } &&
47780          { ac_try='test -s conftest.$ac_objext'
47781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47782   (eval $ac_try) 2>&5
47783   ac_status=$?
47784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47785   (exit $ac_status); }; }; then
47786   ac_cv_type_socklen_t=yes
47787 else
47788   echo "$as_me: failed program was:" >&5
47789 sed 's/^/| /' conftest.$ac_ext >&5
47790
47791 ac_cv_type_socklen_t=no
47792 fi
47793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47794 fi
47795 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47796 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47797 if test $ac_cv_type_socklen_t = yes; then
47798   :
47799 else
47800
47801 cat >>confdefs.h <<_ACEOF
47802 #define socklen_t int
47803 _ACEOF
47804
47805 fi
47806
47807
47808 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47809 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47810 if test "${ac_cv_type_signal+set}" = set; then
47811   echo $ECHO_N "(cached) $ECHO_C" >&6
47812 else
47813   cat >conftest.$ac_ext <<_ACEOF
47814 /* confdefs.h.  */
47815 _ACEOF
47816 cat confdefs.h >>conftest.$ac_ext
47817 cat >>conftest.$ac_ext <<_ACEOF
47818 /* end confdefs.h.  */
47819 #include <sys/types.h>
47820 #include <signal.h>
47821 #ifdef signal
47822 # undef signal
47823 #endif
47824 #ifdef __cplusplus
47825 extern "C" void (*signal (int, void (*)(int)))(int);
47826 #else
47827 void (*signal ()) ();
47828 #endif
47829
47830 int
47831 main ()
47832 {
47833 int i;
47834   ;
47835   return 0;
47836 }
47837 _ACEOF
47838 rm -f conftest.$ac_objext
47839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47840   (eval $ac_compile) 2>conftest.er1
47841   ac_status=$?
47842   grep -v '^ *+' conftest.er1 >conftest.err
47843   rm -f conftest.er1
47844   cat conftest.err >&5
47845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47846   (exit $ac_status); } &&
47847          { ac_try='test -z "$ac_c_werror_flag"
47848                          || test ! -s conftest.err'
47849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47850   (eval $ac_try) 2>&5
47851   ac_status=$?
47852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47853   (exit $ac_status); }; } &&
47854          { ac_try='test -s conftest.$ac_objext'
47855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47856   (eval $ac_try) 2>&5
47857   ac_status=$?
47858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47859   (exit $ac_status); }; }; then
47860   ac_cv_type_signal=void
47861 else
47862   echo "$as_me: failed program was:" >&5
47863 sed 's/^/| /' conftest.$ac_ext >&5
47864
47865 ac_cv_type_signal=int
47866 fi
47867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47868 fi
47869 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47870 echo "${ECHO_T}$ac_cv_type_signal" >&6
47871
47872 cat >>confdefs.h <<_ACEOF
47873 #define RETSIGTYPE $ac_cv_type_signal
47874 _ACEOF
47875
47876
47877
47878 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47879 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47880 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47881   echo $ECHO_N "(cached) $ECHO_C" >&6
47882 else
47883   cat >conftest.$ac_ext <<_ACEOF
47884 /* confdefs.h.  */
47885 _ACEOF
47886 cat confdefs.h >>conftest.$ac_ext
47887 cat >>conftest.$ac_ext <<_ACEOF
47888 /* end confdefs.h.  */
47889 $ac_includes_default
47890 #include <signal.h>
47891
47892
47893 int
47894 main ()
47895 {
47896 if ((sig_atomic_t *) 0)
47897   return 0;
47898 if (sizeof (sig_atomic_t))
47899   return 0;
47900   ;
47901   return 0;
47902 }
47903 _ACEOF
47904 rm -f conftest.$ac_objext
47905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47906   (eval $ac_compile) 2>conftest.er1
47907   ac_status=$?
47908   grep -v '^ *+' conftest.er1 >conftest.err
47909   rm -f conftest.er1
47910   cat conftest.err >&5
47911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47912   (exit $ac_status); } &&
47913          { ac_try='test -z "$ac_c_werror_flag"
47914                          || test ! -s conftest.err'
47915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47916   (eval $ac_try) 2>&5
47917   ac_status=$?
47918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47919   (exit $ac_status); }; } &&
47920          { ac_try='test -s conftest.$ac_objext'
47921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47922   (eval $ac_try) 2>&5
47923   ac_status=$?
47924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47925   (exit $ac_status); }; }; then
47926   ac_cv_type_sig_atomic_t=yes
47927 else
47928   echo "$as_me: failed program was:" >&5
47929 sed 's/^/| /' conftest.$ac_ext >&5
47930
47931 ac_cv_type_sig_atomic_t=no
47932 fi
47933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47934 fi
47935 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47936 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47937 if test $ac_cv_type_sig_atomic_t = yes; then
47938   :
47939 else
47940
47941 cat >>confdefs.h <<_ACEOF
47942 #define sig_atomic_t int
47943 _ACEOF
47944
47945 fi
47946
47947
47948 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47949 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47950 if test "${ac_cv_type_uid_t+set}" = set; then
47951   echo $ECHO_N "(cached) $ECHO_C" >&6
47952 else
47953   cat >conftest.$ac_ext <<_ACEOF
47954 /* confdefs.h.  */
47955 _ACEOF
47956 cat confdefs.h >>conftest.$ac_ext
47957 cat >>conftest.$ac_ext <<_ACEOF
47958 /* end confdefs.h.  */
47959 #include <sys/types.h>
47960
47961 _ACEOF
47962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47963   $EGREP "uid_t" >/dev/null 2>&1; then
47964   ac_cv_type_uid_t=yes
47965 else
47966   ac_cv_type_uid_t=no
47967 fi
47968 rm -f conftest*
47969
47970 fi
47971 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47972 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47973 if test $ac_cv_type_uid_t = no; then
47974
47975 cat >>confdefs.h <<\_ACEOF
47976 #define uid_t int
47977 _ACEOF
47978
47979
47980 cat >>confdefs.h <<\_ACEOF
47981 #define gid_t int
47982 _ACEOF
47983
47984 fi
47985
47986
47987 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47988 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47989 if test "${ac_cv_header_time+set}" = set; then
47990   echo $ECHO_N "(cached) $ECHO_C" >&6
47991 else
47992   cat >conftest.$ac_ext <<_ACEOF
47993 /* confdefs.h.  */
47994 _ACEOF
47995 cat confdefs.h >>conftest.$ac_ext
47996 cat >>conftest.$ac_ext <<_ACEOF
47997 /* end confdefs.h.  */
47998 #include <sys/types.h>
47999 #include <sys/time.h>
48000 #include <time.h>
48001
48002 int
48003 main ()
48004 {
48005 if ((struct tm *) 0)
48006 return 0;
48007   ;
48008   return 0;
48009 }
48010 _ACEOF
48011 rm -f conftest.$ac_objext
48012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48013   (eval $ac_compile) 2>conftest.er1
48014   ac_status=$?
48015   grep -v '^ *+' conftest.er1 >conftest.err
48016   rm -f conftest.er1
48017   cat conftest.err >&5
48018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48019   (exit $ac_status); } &&
48020          { ac_try='test -z "$ac_c_werror_flag"
48021                          || test ! -s conftest.err'
48022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48023   (eval $ac_try) 2>&5
48024   ac_status=$?
48025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48026   (exit $ac_status); }; } &&
48027          { ac_try='test -s conftest.$ac_objext'
48028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48029   (eval $ac_try) 2>&5
48030   ac_status=$?
48031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48032   (exit $ac_status); }; }; then
48033   ac_cv_header_time=yes
48034 else
48035   echo "$as_me: failed program was:" >&5
48036 sed 's/^/| /' conftest.$ac_ext >&5
48037
48038 ac_cv_header_time=no
48039 fi
48040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48041 fi
48042 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48043 echo "${ECHO_T}$ac_cv_header_time" >&6
48044 if test $ac_cv_header_time = yes; then
48045
48046 cat >>confdefs.h <<\_ACEOF
48047 #define TIME_WITH_SYS_TIME 1
48048 _ACEOF
48049
48050 fi
48051
48052 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48053 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48054 if test "${ac_cv_struct_tm+set}" = set; then
48055   echo $ECHO_N "(cached) $ECHO_C" >&6
48056 else
48057   cat >conftest.$ac_ext <<_ACEOF
48058 /* confdefs.h.  */
48059 _ACEOF
48060 cat confdefs.h >>conftest.$ac_ext
48061 cat >>conftest.$ac_ext <<_ACEOF
48062 /* end confdefs.h.  */
48063 #include <sys/types.h>
48064 #include <time.h>
48065
48066 int
48067 main ()
48068 {
48069 struct tm *tp; tp->tm_sec;
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_struct_tm=time.h
48097 else
48098   echo "$as_me: failed program was:" >&5
48099 sed 's/^/| /' conftest.$ac_ext >&5
48100
48101 ac_cv_struct_tm=sys/time.h
48102 fi
48103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48104 fi
48105 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48106 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48107 if test $ac_cv_struct_tm = sys/time.h; then
48108
48109 cat >>confdefs.h <<\_ACEOF
48110 #define TM_IN_SYS_TIME 1
48111 _ACEOF
48112
48113 fi
48114
48115 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
48116 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
48117 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
48118   echo $ECHO_N "(cached) $ECHO_C" >&6
48119 else
48120   cat >conftest.$ac_ext <<_ACEOF
48121 /* confdefs.h.  */
48122 _ACEOF
48123 cat confdefs.h >>conftest.$ac_ext
48124 cat >>conftest.$ac_ext <<_ACEOF
48125 /* end confdefs.h.  */
48126 $ac_includes_default
48127 int
48128 main ()
48129 {
48130 static struct stat ac_aggr;
48131 if (ac_aggr.st_blksize)
48132 return 0;
48133   ;
48134   return 0;
48135 }
48136 _ACEOF
48137 rm -f conftest.$ac_objext
48138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48139   (eval $ac_compile) 2>conftest.er1
48140   ac_status=$?
48141   grep -v '^ *+' conftest.er1 >conftest.err
48142   rm -f conftest.er1
48143   cat conftest.err >&5
48144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48145   (exit $ac_status); } &&
48146          { ac_try='test -z "$ac_c_werror_flag"
48147                          || test ! -s conftest.err'
48148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48149   (eval $ac_try) 2>&5
48150   ac_status=$?
48151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48152   (exit $ac_status); }; } &&
48153          { ac_try='test -s conftest.$ac_objext'
48154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48155   (eval $ac_try) 2>&5
48156   ac_status=$?
48157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48158   (exit $ac_status); }; }; then
48159   ac_cv_member_struct_stat_st_blksize=yes
48160 else
48161   echo "$as_me: failed program was:" >&5
48162 sed 's/^/| /' conftest.$ac_ext >&5
48163
48164 cat >conftest.$ac_ext <<_ACEOF
48165 /* confdefs.h.  */
48166 _ACEOF
48167 cat confdefs.h >>conftest.$ac_ext
48168 cat >>conftest.$ac_ext <<_ACEOF
48169 /* end confdefs.h.  */
48170 $ac_includes_default
48171 int
48172 main ()
48173 {
48174 static struct stat ac_aggr;
48175 if (sizeof ac_aggr.st_blksize)
48176 return 0;
48177   ;
48178   return 0;
48179 }
48180 _ACEOF
48181 rm -f conftest.$ac_objext
48182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48183   (eval $ac_compile) 2>conftest.er1
48184   ac_status=$?
48185   grep -v '^ *+' conftest.er1 >conftest.err
48186   rm -f conftest.er1
48187   cat conftest.err >&5
48188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48189   (exit $ac_status); } &&
48190          { ac_try='test -z "$ac_c_werror_flag"
48191                          || test ! -s conftest.err'
48192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48193   (eval $ac_try) 2>&5
48194   ac_status=$?
48195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48196   (exit $ac_status); }; } &&
48197          { ac_try='test -s conftest.$ac_objext'
48198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48199   (eval $ac_try) 2>&5
48200   ac_status=$?
48201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48202   (exit $ac_status); }; }; then
48203   ac_cv_member_struct_stat_st_blksize=yes
48204 else
48205   echo "$as_me: failed program was:" >&5
48206 sed 's/^/| /' conftest.$ac_ext >&5
48207
48208 ac_cv_member_struct_stat_st_blksize=no
48209 fi
48210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48211 fi
48212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48213 fi
48214 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48215 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48216 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48217
48218 cat >>confdefs.h <<_ACEOF
48219 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48220 _ACEOF
48221
48222
48223 fi
48224
48225 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48226 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48227 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48228   echo $ECHO_N "(cached) $ECHO_C" >&6
48229 else
48230   cat >conftest.$ac_ext <<_ACEOF
48231 /* confdefs.h.  */
48232 _ACEOF
48233 cat confdefs.h >>conftest.$ac_ext
48234 cat >>conftest.$ac_ext <<_ACEOF
48235 /* end confdefs.h.  */
48236 $ac_includes_default
48237 #include <pwd.h>
48238
48239 int
48240 main ()
48241 {
48242 static struct passwd ac_aggr;
48243 if (ac_aggr.pw_gecos)
48244 return 0;
48245   ;
48246   return 0;
48247 }
48248 _ACEOF
48249 rm -f conftest.$ac_objext
48250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48251   (eval $ac_compile) 2>conftest.er1
48252   ac_status=$?
48253   grep -v '^ *+' conftest.er1 >conftest.err
48254   rm -f conftest.er1
48255   cat conftest.err >&5
48256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48257   (exit $ac_status); } &&
48258          { ac_try='test -z "$ac_c_werror_flag"
48259                          || test ! -s conftest.err'
48260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48261   (eval $ac_try) 2>&5
48262   ac_status=$?
48263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48264   (exit $ac_status); }; } &&
48265          { ac_try='test -s conftest.$ac_objext'
48266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48267   (eval $ac_try) 2>&5
48268   ac_status=$?
48269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48270   (exit $ac_status); }; }; then
48271   ac_cv_member_struct_passwd_pw_gecos=yes
48272 else
48273   echo "$as_me: failed program was:" >&5
48274 sed 's/^/| /' conftest.$ac_ext >&5
48275
48276 cat >conftest.$ac_ext <<_ACEOF
48277 /* confdefs.h.  */
48278 _ACEOF
48279 cat confdefs.h >>conftest.$ac_ext
48280 cat >>conftest.$ac_ext <<_ACEOF
48281 /* end confdefs.h.  */
48282 $ac_includes_default
48283 #include <pwd.h>
48284
48285 int
48286 main ()
48287 {
48288 static struct passwd ac_aggr;
48289 if (sizeof ac_aggr.pw_gecos)
48290 return 0;
48291   ;
48292   return 0;
48293 }
48294 _ACEOF
48295 rm -f conftest.$ac_objext
48296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48297   (eval $ac_compile) 2>conftest.er1
48298   ac_status=$?
48299   grep -v '^ *+' conftest.er1 >conftest.err
48300   rm -f conftest.er1
48301   cat conftest.err >&5
48302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48303   (exit $ac_status); } &&
48304          { ac_try='test -z "$ac_c_werror_flag"
48305                          || test ! -s conftest.err'
48306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48307   (eval $ac_try) 2>&5
48308   ac_status=$?
48309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48310   (exit $ac_status); }; } &&
48311          { ac_try='test -s conftest.$ac_objext'
48312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48313   (eval $ac_try) 2>&5
48314   ac_status=$?
48315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48316   (exit $ac_status); }; }; then
48317   ac_cv_member_struct_passwd_pw_gecos=yes
48318 else
48319   echo "$as_me: failed program was:" >&5
48320 sed 's/^/| /' conftest.$ac_ext >&5
48321
48322 ac_cv_member_struct_passwd_pw_gecos=no
48323 fi
48324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48325 fi
48326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48327 fi
48328 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48329 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48330 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48331
48332 cat >>confdefs.h <<_ACEOF
48333 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48334 _ACEOF
48335
48336
48337 fi
48338
48339 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48340 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48341 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48342   echo $ECHO_N "(cached) $ECHO_C" >&6
48343 else
48344   cat >conftest.$ac_ext <<_ACEOF
48345 /* confdefs.h.  */
48346 _ACEOF
48347 cat confdefs.h >>conftest.$ac_ext
48348 cat >>conftest.$ac_ext <<_ACEOF
48349 /* end confdefs.h.  */
48350 $ac_includes_default
48351 #include <pwd.h>
48352
48353 int
48354 main ()
48355 {
48356 static struct passwd ac_aggr;
48357 if (ac_aggr.pw_passwd)
48358 return 0;
48359   ;
48360   return 0;
48361 }
48362 _ACEOF
48363 rm -f conftest.$ac_objext
48364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48365   (eval $ac_compile) 2>conftest.er1
48366   ac_status=$?
48367   grep -v '^ *+' conftest.er1 >conftest.err
48368   rm -f conftest.er1
48369   cat conftest.err >&5
48370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48371   (exit $ac_status); } &&
48372          { ac_try='test -z "$ac_c_werror_flag"
48373                          || test ! -s conftest.err'
48374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48375   (eval $ac_try) 2>&5
48376   ac_status=$?
48377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378   (exit $ac_status); }; } &&
48379          { ac_try='test -s conftest.$ac_objext'
48380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48381   (eval $ac_try) 2>&5
48382   ac_status=$?
48383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48384   (exit $ac_status); }; }; then
48385   ac_cv_member_struct_passwd_pw_passwd=yes
48386 else
48387   echo "$as_me: failed program was:" >&5
48388 sed 's/^/| /' conftest.$ac_ext >&5
48389
48390 cat >conftest.$ac_ext <<_ACEOF
48391 /* confdefs.h.  */
48392 _ACEOF
48393 cat confdefs.h >>conftest.$ac_ext
48394 cat >>conftest.$ac_ext <<_ACEOF
48395 /* end confdefs.h.  */
48396 $ac_includes_default
48397 #include <pwd.h>
48398
48399 int
48400 main ()
48401 {
48402 static struct passwd ac_aggr;
48403 if (sizeof ac_aggr.pw_passwd)
48404 return 0;
48405   ;
48406   return 0;
48407 }
48408 _ACEOF
48409 rm -f conftest.$ac_objext
48410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48411   (eval $ac_compile) 2>conftest.er1
48412   ac_status=$?
48413   grep -v '^ *+' conftest.er1 >conftest.err
48414   rm -f conftest.er1
48415   cat conftest.err >&5
48416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48417   (exit $ac_status); } &&
48418          { ac_try='test -z "$ac_c_werror_flag"
48419                          || test ! -s conftest.err'
48420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48421   (eval $ac_try) 2>&5
48422   ac_status=$?
48423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48424   (exit $ac_status); }; } &&
48425          { ac_try='test -s conftest.$ac_objext'
48426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48427   (eval $ac_try) 2>&5
48428   ac_status=$?
48429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48430   (exit $ac_status); }; }; then
48431   ac_cv_member_struct_passwd_pw_passwd=yes
48432 else
48433   echo "$as_me: failed program was:" >&5
48434 sed 's/^/| /' conftest.$ac_ext >&5
48435
48436 ac_cv_member_struct_passwd_pw_passwd=no
48437 fi
48438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48439 fi
48440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48441 fi
48442 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48443 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48444 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48445
48446 cat >>confdefs.h <<_ACEOF
48447 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48448 _ACEOF
48449
48450
48451 fi
48452
48453
48454 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48455 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48456 if test "${ol_cv_c_upper_lower+set}" = set; then
48457   echo $ECHO_N "(cached) $ECHO_C" >&6
48458 else
48459
48460         if test "$cross_compiling" = yes; then
48461   ol_cv_c_upper_lower=safe
48462 else
48463   cat >conftest.$ac_ext <<_ACEOF
48464 /* confdefs.h.  */
48465 _ACEOF
48466 cat confdefs.h >>conftest.$ac_ext
48467 cat >>conftest.$ac_ext <<_ACEOF
48468 /* end confdefs.h.  */
48469
48470 #include <ctype.h>
48471 main()
48472 {
48473         if ('C' == toupper('C'))
48474                 exit(0);
48475         else
48476                 exit(1);
48477 }
48478 _ACEOF
48479 rm -f conftest$ac_exeext
48480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48481   (eval $ac_link) 2>&5
48482   ac_status=$?
48483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48486   (eval $ac_try) 2>&5
48487   ac_status=$?
48488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48489   (exit $ac_status); }; }; then
48490   ol_cv_c_upper_lower=no
48491 else
48492   echo "$as_me: program exited with status $ac_status" >&5
48493 echo "$as_me: failed program was:" >&5
48494 sed 's/^/| /' conftest.$ac_ext >&5
48495
48496 ( exit $ac_status )
48497 ol_cv_c_upper_lower=yes
48498 fi
48499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48500 fi
48501 fi
48502 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48503 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48504 if test $ol_cv_c_upper_lower != no ; then
48505
48506 cat >>confdefs.h <<\_ACEOF
48507 #define C_UPPER_LOWER 1
48508 _ACEOF
48509
48510 fi
48511
48512 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48513 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48514 if test "${ac_cv_c_const+set}" = set; then
48515   echo $ECHO_N "(cached) $ECHO_C" >&6
48516 else
48517   cat >conftest.$ac_ext <<_ACEOF
48518 /* confdefs.h.  */
48519 _ACEOF
48520 cat confdefs.h >>conftest.$ac_ext
48521 cat >>conftest.$ac_ext <<_ACEOF
48522 /* end confdefs.h.  */
48523
48524 int
48525 main ()
48526 {
48527 /* FIXME: Include the comments suggested by Paul. */
48528 #ifndef __cplusplus
48529   /* Ultrix mips cc rejects this.  */
48530   typedef int charset[2];
48531   const charset x;
48532   /* SunOS 4.1.1 cc rejects this.  */
48533   char const *const *ccp;
48534   char **p;
48535   /* NEC SVR4.0.2 mips cc rejects this.  */
48536   struct point {int x, y;};
48537   static struct point const zero = {0,0};
48538   /* AIX XL C 1.02.0.0 rejects this.
48539      It does not let you subtract one const X* pointer from another in
48540      an arm of an if-expression whose if-part is not a constant
48541      expression */
48542   const char *g = "string";
48543   ccp = &g + (g ? g-g : 0);
48544   /* HPUX 7.0 cc rejects these. */
48545   ++ccp;
48546   p = (char**) ccp;
48547   ccp = (char const *const *) p;
48548   { /* SCO 3.2v4 cc rejects this.  */
48549     char *t;
48550     char const *s = 0 ? (char *) 0 : (char const *) 0;
48551
48552     *t++ = 0;
48553   }
48554   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48555     int x[] = {25, 17};
48556     const int *foo = &x[0];
48557     ++foo;
48558   }
48559   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48560     typedef const int *iptr;
48561     iptr p = 0;
48562     ++p;
48563   }
48564   { /* AIX XL C 1.02.0.0 rejects this saying
48565        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48566     struct s { int j; const int *ap[3]; };
48567     struct s *b; b->j = 5;
48568   }
48569   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48570     const int foo = 10;
48571   }
48572 #endif
48573
48574   ;
48575   return 0;
48576 }
48577 _ACEOF
48578 rm -f conftest.$ac_objext
48579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48580   (eval $ac_compile) 2>conftest.er1
48581   ac_status=$?
48582   grep -v '^ *+' conftest.er1 >conftest.err
48583   rm -f conftest.er1
48584   cat conftest.err >&5
48585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48586   (exit $ac_status); } &&
48587          { ac_try='test -z "$ac_c_werror_flag"
48588                          || test ! -s conftest.err'
48589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48590   (eval $ac_try) 2>&5
48591   ac_status=$?
48592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48593   (exit $ac_status); }; } &&
48594          { ac_try='test -s conftest.$ac_objext'
48595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48596   (eval $ac_try) 2>&5
48597   ac_status=$?
48598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48599   (exit $ac_status); }; }; then
48600   ac_cv_c_const=yes
48601 else
48602   echo "$as_me: failed program was:" >&5
48603 sed 's/^/| /' conftest.$ac_ext >&5
48604
48605 ac_cv_c_const=no
48606 fi
48607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48608 fi
48609 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48610 echo "${ECHO_T}$ac_cv_c_const" >&6
48611 if test $ac_cv_c_const = no; then
48612
48613 cat >>confdefs.h <<\_ACEOF
48614 #define const
48615 _ACEOF
48616
48617 fi
48618
48619 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48620 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48621 if test "${ol_cv_c_volatile+set}" = set; then
48622   echo $ECHO_N "(cached) $ECHO_C" >&6
48623 else
48624   cat >conftest.$ac_ext <<_ACEOF
48625 /* confdefs.h.  */
48626 _ACEOF
48627 cat confdefs.h >>conftest.$ac_ext
48628 cat >>conftest.$ac_ext <<_ACEOF
48629 /* end confdefs.h.  */
48630 int x, y, z;
48631 int
48632 main ()
48633 {
48634 volatile int a; int * volatile b = x ? &y : &z;
48635       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48636       *b = 0;
48637   ;
48638   return 0;
48639 }
48640 _ACEOF
48641 rm -f conftest.$ac_objext
48642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48643   (eval $ac_compile) 2>conftest.er1
48644   ac_status=$?
48645   grep -v '^ *+' conftest.er1 >conftest.err
48646   rm -f conftest.er1
48647   cat conftest.err >&5
48648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48649   (exit $ac_status); } &&
48650          { ac_try='test -z "$ac_c_werror_flag"
48651                          || test ! -s conftest.err'
48652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48653   (eval $ac_try) 2>&5
48654   ac_status=$?
48655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48656   (exit $ac_status); }; } &&
48657          { ac_try='test -s conftest.$ac_objext'
48658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48659   (eval $ac_try) 2>&5
48660   ac_status=$?
48661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48662   (exit $ac_status); }; }; then
48663   ol_cv_c_volatile=yes
48664 else
48665   echo "$as_me: failed program was:" >&5
48666 sed 's/^/| /' conftest.$ac_ext >&5
48667
48668 ol_cv_c_volatile=no
48669 fi
48670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48671 fi
48672 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48673 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48674   if test $ol_cv_c_volatile = yes; then
48675     :
48676   else
48677
48678 cat >>confdefs.h <<\_ACEOF
48679 #define volatile
48680 _ACEOF
48681
48682   fi
48683
48684
48685 if test $cross_compiling = yes ; then
48686         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48687 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48688
48689 cat >>confdefs.h <<\_ACEOF
48690 #define CROSS_COMPILING 1
48691 _ACEOF
48692
48693 else
48694         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48695 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48696 if test "${ac_cv_c_bigendian+set}" = set; then
48697   echo $ECHO_N "(cached) $ECHO_C" >&6
48698 else
48699   # See if sys/param.h defines the BYTE_ORDER macro.
48700 cat >conftest.$ac_ext <<_ACEOF
48701 /* confdefs.h.  */
48702 _ACEOF
48703 cat confdefs.h >>conftest.$ac_ext
48704 cat >>conftest.$ac_ext <<_ACEOF
48705 /* end confdefs.h.  */
48706 #include <sys/types.h>
48707 #include <sys/param.h>
48708
48709 int
48710 main ()
48711 {
48712 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48713  bogus endian macros
48714 #endif
48715
48716   ;
48717   return 0;
48718 }
48719 _ACEOF
48720 rm -f conftest.$ac_objext
48721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48722   (eval $ac_compile) 2>conftest.er1
48723   ac_status=$?
48724   grep -v '^ *+' conftest.er1 >conftest.err
48725   rm -f conftest.er1
48726   cat conftest.err >&5
48727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48728   (exit $ac_status); } &&
48729          { ac_try='test -z "$ac_c_werror_flag"
48730                          || test ! -s conftest.err'
48731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48732   (eval $ac_try) 2>&5
48733   ac_status=$?
48734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48735   (exit $ac_status); }; } &&
48736          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
48742   # It does; now see whether it defined to BIG_ENDIAN or not.
48743 cat >conftest.$ac_ext <<_ACEOF
48744 /* confdefs.h.  */
48745 _ACEOF
48746 cat confdefs.h >>conftest.$ac_ext
48747 cat >>conftest.$ac_ext <<_ACEOF
48748 /* end confdefs.h.  */
48749 #include <sys/types.h>
48750 #include <sys/param.h>
48751
48752 int
48753 main ()
48754 {
48755 #if BYTE_ORDER != BIG_ENDIAN
48756  not big endian
48757 #endif
48758
48759   ;
48760   return 0;
48761 }
48762 _ACEOF
48763 rm -f conftest.$ac_objext
48764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48765   (eval $ac_compile) 2>conftest.er1
48766   ac_status=$?
48767   grep -v '^ *+' conftest.er1 >conftest.err
48768   rm -f conftest.er1
48769   cat conftest.err >&5
48770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48771   (exit $ac_status); } &&
48772          { ac_try='test -z "$ac_c_werror_flag"
48773                          || test ! -s conftest.err'
48774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48775   (eval $ac_try) 2>&5
48776   ac_status=$?
48777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48778   (exit $ac_status); }; } &&
48779          { ac_try='test -s conftest.$ac_objext'
48780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48781   (eval $ac_try) 2>&5
48782   ac_status=$?
48783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48784   (exit $ac_status); }; }; then
48785   ac_cv_c_bigendian=yes
48786 else
48787   echo "$as_me: failed program was:" >&5
48788 sed 's/^/| /' conftest.$ac_ext >&5
48789
48790 ac_cv_c_bigendian=no
48791 fi
48792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48793 else
48794   echo "$as_me: failed program was:" >&5
48795 sed 's/^/| /' conftest.$ac_ext >&5
48796
48797 # It does not; compile a test program.
48798 if test "$cross_compiling" = yes; then
48799   # try to guess the endianness by grepping values into an object file
48800   ac_cv_c_bigendian=unknown
48801   cat >conftest.$ac_ext <<_ACEOF
48802 /* confdefs.h.  */
48803 _ACEOF
48804 cat confdefs.h >>conftest.$ac_ext
48805 cat >>conftest.$ac_ext <<_ACEOF
48806 /* end confdefs.h.  */
48807 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48808 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48809 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48810 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48811 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48812 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48813 int
48814 main ()
48815 {
48816  _ascii (); _ebcdic ();
48817   ;
48818   return 0;
48819 }
48820 _ACEOF
48821 rm -f conftest.$ac_objext
48822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48823   (eval $ac_compile) 2>conftest.er1
48824   ac_status=$?
48825   grep -v '^ *+' conftest.er1 >conftest.err
48826   rm -f conftest.er1
48827   cat conftest.err >&5
48828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48829   (exit $ac_status); } &&
48830          { ac_try='test -z "$ac_c_werror_flag"
48831                          || test ! -s conftest.err'
48832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48833   (eval $ac_try) 2>&5
48834   ac_status=$?
48835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48836   (exit $ac_status); }; } &&
48837          { ac_try='test -s conftest.$ac_objext'
48838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48839   (eval $ac_try) 2>&5
48840   ac_status=$?
48841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48842   (exit $ac_status); }; }; then
48843   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48844   ac_cv_c_bigendian=yes
48845 fi
48846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48847   if test "$ac_cv_c_bigendian" = unknown; then
48848     ac_cv_c_bigendian=no
48849   else
48850     # finding both strings is unlikely to happen, but who knows?
48851     ac_cv_c_bigendian=unknown
48852   fi
48853 fi
48854 else
48855   echo "$as_me: failed program was:" >&5
48856 sed 's/^/| /' conftest.$ac_ext >&5
48857
48858 fi
48859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48860 else
48861   cat >conftest.$ac_ext <<_ACEOF
48862 /* confdefs.h.  */
48863 _ACEOF
48864 cat confdefs.h >>conftest.$ac_ext
48865 cat >>conftest.$ac_ext <<_ACEOF
48866 /* end confdefs.h.  */
48867 int
48868 main ()
48869 {
48870   /* Are we little or big endian?  From Harbison&Steele.  */
48871   union
48872   {
48873     long l;
48874     char c[sizeof (long)];
48875   } u;
48876   u.l = 1;
48877   exit (u.c[sizeof (long) - 1] == 1);
48878 }
48879 _ACEOF
48880 rm -f conftest$ac_exeext
48881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48882   (eval $ac_link) 2>&5
48883   ac_status=$?
48884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48887   (eval $ac_try) 2>&5
48888   ac_status=$?
48889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48890   (exit $ac_status); }; }; then
48891   ac_cv_c_bigendian=no
48892 else
48893   echo "$as_me: program exited with status $ac_status" >&5
48894 echo "$as_me: failed program was:" >&5
48895 sed 's/^/| /' conftest.$ac_ext >&5
48896
48897 ( exit $ac_status )
48898 ac_cv_c_bigendian=yes
48899 fi
48900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48901 fi
48902 fi
48903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48904 fi
48905 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48906 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48907 case $ac_cv_c_bigendian in
48908   yes)
48909
48910 cat >>confdefs.h <<\_ACEOF
48911 #define WORDS_BIGENDIAN 1
48912 _ACEOF
48913  ;;
48914   no)
48915      ;;
48916   *)
48917     { { echo "$as_me:$LINENO: error: unknown endianness
48918 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48919 echo "$as_me: error: unknown endianness
48920 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48921    { (exit 1); exit 1; }; } ;;
48922 esac
48923
48924 fi
48925
48926 echo "$as_me:$LINENO: checking for short" >&5
48927 echo $ECHO_N "checking for short... $ECHO_C" >&6
48928 if test "${ac_cv_type_short+set}" = set; then
48929   echo $ECHO_N "(cached) $ECHO_C" >&6
48930 else
48931   cat >conftest.$ac_ext <<_ACEOF
48932 /* confdefs.h.  */
48933 _ACEOF
48934 cat confdefs.h >>conftest.$ac_ext
48935 cat >>conftest.$ac_ext <<_ACEOF
48936 /* end confdefs.h.  */
48937 $ac_includes_default
48938 int
48939 main ()
48940 {
48941 if ((short *) 0)
48942   return 0;
48943 if (sizeof (short))
48944   return 0;
48945   ;
48946   return 0;
48947 }
48948 _ACEOF
48949 rm -f conftest.$ac_objext
48950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48951   (eval $ac_compile) 2>conftest.er1
48952   ac_status=$?
48953   grep -v '^ *+' conftest.er1 >conftest.err
48954   rm -f conftest.er1
48955   cat conftest.err >&5
48956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48957   (exit $ac_status); } &&
48958          { ac_try='test -z "$ac_c_werror_flag"
48959                          || test ! -s conftest.err'
48960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48961   (eval $ac_try) 2>&5
48962   ac_status=$?
48963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48964   (exit $ac_status); }; } &&
48965          { ac_try='test -s conftest.$ac_objext'
48966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48967   (eval $ac_try) 2>&5
48968   ac_status=$?
48969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48970   (exit $ac_status); }; }; then
48971   ac_cv_type_short=yes
48972 else
48973   echo "$as_me: failed program was:" >&5
48974 sed 's/^/| /' conftest.$ac_ext >&5
48975
48976 ac_cv_type_short=no
48977 fi
48978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48979 fi
48980 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48981 echo "${ECHO_T}$ac_cv_type_short" >&6
48982
48983 echo "$as_me:$LINENO: checking size of short" >&5
48984 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48985 if test "${ac_cv_sizeof_short+set}" = set; then
48986   echo $ECHO_N "(cached) $ECHO_C" >&6
48987 else
48988   if test "$ac_cv_type_short" = yes; then
48989   # The cast to unsigned long works around a bug in the HP C Compiler
48990   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48991   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48992   # This bug is HP SR number 8606223364.
48993   if test "$cross_compiling" = yes; then
48994   # Depending upon the size, compute the lo and hi bounds.
48995 cat >conftest.$ac_ext <<_ACEOF
48996 /* confdefs.h.  */
48997 _ACEOF
48998 cat confdefs.h >>conftest.$ac_ext
48999 cat >>conftest.$ac_ext <<_ACEOF
49000 /* end confdefs.h.  */
49001 $ac_includes_default
49002 int
49003 main ()
49004 {
49005 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
49006 test_array [0] = 0
49007
49008   ;
49009   return 0;
49010 }
49011 _ACEOF
49012 rm -f conftest.$ac_objext
49013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49014   (eval $ac_compile) 2>conftest.er1
49015   ac_status=$?
49016   grep -v '^ *+' conftest.er1 >conftest.err
49017   rm -f conftest.er1
49018   cat conftest.err >&5
49019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49020   (exit $ac_status); } &&
49021          { ac_try='test -z "$ac_c_werror_flag"
49022                          || test ! -s conftest.err'
49023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49024   (eval $ac_try) 2>&5
49025   ac_status=$?
49026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49027   (exit $ac_status); }; } &&
49028          { ac_try='test -s conftest.$ac_objext'
49029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49030   (eval $ac_try) 2>&5
49031   ac_status=$?
49032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49033   (exit $ac_status); }; }; then
49034   ac_lo=0 ac_mid=0
49035   while :; do
49036     cat >conftest.$ac_ext <<_ACEOF
49037 /* confdefs.h.  */
49038 _ACEOF
49039 cat confdefs.h >>conftest.$ac_ext
49040 cat >>conftest.$ac_ext <<_ACEOF
49041 /* end confdefs.h.  */
49042 $ac_includes_default
49043 int
49044 main ()
49045 {
49046 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49047 test_array [0] = 0
49048
49049   ;
49050   return 0;
49051 }
49052 _ACEOF
49053 rm -f conftest.$ac_objext
49054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49055   (eval $ac_compile) 2>conftest.er1
49056   ac_status=$?
49057   grep -v '^ *+' conftest.er1 >conftest.err
49058   rm -f conftest.er1
49059   cat conftest.err >&5
49060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49061   (exit $ac_status); } &&
49062          { ac_try='test -z "$ac_c_werror_flag"
49063                          || test ! -s conftest.err'
49064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49065   (eval $ac_try) 2>&5
49066   ac_status=$?
49067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49068   (exit $ac_status); }; } &&
49069          { ac_try='test -s conftest.$ac_objext'
49070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49071   (eval $ac_try) 2>&5
49072   ac_status=$?
49073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49074   (exit $ac_status); }; }; then
49075   ac_hi=$ac_mid; break
49076 else
49077   echo "$as_me: failed program was:" >&5
49078 sed 's/^/| /' conftest.$ac_ext >&5
49079
49080 ac_lo=`expr $ac_mid + 1`
49081                     if test $ac_lo -le $ac_mid; then
49082                       ac_lo= ac_hi=
49083                       break
49084                     fi
49085                     ac_mid=`expr 2 '*' $ac_mid + 1`
49086 fi
49087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49088   done
49089 else
49090   echo "$as_me: failed program was:" >&5
49091 sed 's/^/| /' conftest.$ac_ext >&5
49092
49093 cat >conftest.$ac_ext <<_ACEOF
49094 /* confdefs.h.  */
49095 _ACEOF
49096 cat confdefs.h >>conftest.$ac_ext
49097 cat >>conftest.$ac_ext <<_ACEOF
49098 /* end confdefs.h.  */
49099 $ac_includes_default
49100 int
49101 main ()
49102 {
49103 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
49104 test_array [0] = 0
49105
49106   ;
49107   return 0;
49108 }
49109 _ACEOF
49110 rm -f conftest.$ac_objext
49111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49112   (eval $ac_compile) 2>conftest.er1
49113   ac_status=$?
49114   grep -v '^ *+' conftest.er1 >conftest.err
49115   rm -f conftest.er1
49116   cat conftest.err >&5
49117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49118   (exit $ac_status); } &&
49119          { ac_try='test -z "$ac_c_werror_flag"
49120                          || test ! -s conftest.err'
49121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49122   (eval $ac_try) 2>&5
49123   ac_status=$?
49124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49125   (exit $ac_status); }; } &&
49126          { ac_try='test -s conftest.$ac_objext'
49127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49128   (eval $ac_try) 2>&5
49129   ac_status=$?
49130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49131   (exit $ac_status); }; }; then
49132   ac_hi=-1 ac_mid=-1
49133   while :; do
49134     cat >conftest.$ac_ext <<_ACEOF
49135 /* confdefs.h.  */
49136 _ACEOF
49137 cat confdefs.h >>conftest.$ac_ext
49138 cat >>conftest.$ac_ext <<_ACEOF
49139 /* end confdefs.h.  */
49140 $ac_includes_default
49141 int
49142 main ()
49143 {
49144 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49145 test_array [0] = 0
49146
49147   ;
49148   return 0;
49149 }
49150 _ACEOF
49151 rm -f conftest.$ac_objext
49152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49153   (eval $ac_compile) 2>conftest.er1
49154   ac_status=$?
49155   grep -v '^ *+' conftest.er1 >conftest.err
49156   rm -f conftest.er1
49157   cat conftest.err >&5
49158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49159   (exit $ac_status); } &&
49160          { ac_try='test -z "$ac_c_werror_flag"
49161                          || test ! -s conftest.err'
49162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49163   (eval $ac_try) 2>&5
49164   ac_status=$?
49165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49166   (exit $ac_status); }; } &&
49167          { ac_try='test -s conftest.$ac_objext'
49168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49169   (eval $ac_try) 2>&5
49170   ac_status=$?
49171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49172   (exit $ac_status); }; }; then
49173   ac_lo=$ac_mid; break
49174 else
49175   echo "$as_me: failed program was:" >&5
49176 sed 's/^/| /' conftest.$ac_ext >&5
49177
49178 ac_hi=`expr '(' $ac_mid ')' - 1`
49179                        if test $ac_mid -le $ac_hi; then
49180                          ac_lo= ac_hi=
49181                          break
49182                        fi
49183                        ac_mid=`expr 2 '*' $ac_mid`
49184 fi
49185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49186   done
49187 else
49188   echo "$as_me: failed program was:" >&5
49189 sed 's/^/| /' conftest.$ac_ext >&5
49190
49191 ac_lo= ac_hi=
49192 fi
49193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49194 fi
49195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49196 # Binary search between lo and hi bounds.
49197 while test "x$ac_lo" != "x$ac_hi"; do
49198   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49199   cat >conftest.$ac_ext <<_ACEOF
49200 /* confdefs.h.  */
49201 _ACEOF
49202 cat confdefs.h >>conftest.$ac_ext
49203 cat >>conftest.$ac_ext <<_ACEOF
49204 /* end confdefs.h.  */
49205 $ac_includes_default
49206 int
49207 main ()
49208 {
49209 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49210 test_array [0] = 0
49211
49212   ;
49213   return 0;
49214 }
49215 _ACEOF
49216 rm -f conftest.$ac_objext
49217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49218   (eval $ac_compile) 2>conftest.er1
49219   ac_status=$?
49220   grep -v '^ *+' conftest.er1 >conftest.err
49221   rm -f conftest.er1
49222   cat conftest.err >&5
49223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49224   (exit $ac_status); } &&
49225          { ac_try='test -z "$ac_c_werror_flag"
49226                          || test ! -s conftest.err'
49227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49228   (eval $ac_try) 2>&5
49229   ac_status=$?
49230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49231   (exit $ac_status); }; } &&
49232          { ac_try='test -s conftest.$ac_objext'
49233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49234   (eval $ac_try) 2>&5
49235   ac_status=$?
49236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49237   (exit $ac_status); }; }; then
49238   ac_hi=$ac_mid
49239 else
49240   echo "$as_me: failed program was:" >&5
49241 sed 's/^/| /' conftest.$ac_ext >&5
49242
49243 ac_lo=`expr '(' $ac_mid ')' + 1`
49244 fi
49245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49246 done
49247 case $ac_lo in
49248 ?*) ac_cv_sizeof_short=$ac_lo;;
49249 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49250 See \`config.log' for more details." >&5
49251 echo "$as_me: error: cannot compute sizeof (short), 77
49252 See \`config.log' for more details." >&2;}
49253    { (exit 1); exit 1; }; } ;;
49254 esac
49255 else
49256   if test "$cross_compiling" = yes; then
49257   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49258 See \`config.log' for more details." >&5
49259 echo "$as_me: error: cannot run test program while cross compiling
49260 See \`config.log' for more details." >&2;}
49261    { (exit 1); exit 1; }; }
49262 else
49263   cat >conftest.$ac_ext <<_ACEOF
49264 /* confdefs.h.  */
49265 _ACEOF
49266 cat confdefs.h >>conftest.$ac_ext
49267 cat >>conftest.$ac_ext <<_ACEOF
49268 /* end confdefs.h.  */
49269 $ac_includes_default
49270 long longval () { return (long) (sizeof (short)); }
49271 unsigned long ulongval () { return (long) (sizeof (short)); }
49272 #include <stdio.h>
49273 #include <stdlib.h>
49274 int
49275 main ()
49276 {
49277
49278   FILE *f = fopen ("conftest.val", "w");
49279   if (! f)
49280     exit (1);
49281   if (((long) (sizeof (short))) < 0)
49282     {
49283       long i = longval ();
49284       if (i != ((long) (sizeof (short))))
49285         exit (1);
49286       fprintf (f, "%ld\n", i);
49287     }
49288   else
49289     {
49290       unsigned long i = ulongval ();
49291       if (i != ((long) (sizeof (short))))
49292         exit (1);
49293       fprintf (f, "%lu\n", i);
49294     }
49295   exit (ferror (f) || fclose (f) != 0);
49296
49297   ;
49298   return 0;
49299 }
49300 _ACEOF
49301 rm -f conftest$ac_exeext
49302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49303   (eval $ac_link) 2>&5
49304   ac_status=$?
49305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49308   (eval $ac_try) 2>&5
49309   ac_status=$?
49310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49311   (exit $ac_status); }; }; then
49312   ac_cv_sizeof_short=`cat conftest.val`
49313 else
49314   echo "$as_me: program exited with status $ac_status" >&5
49315 echo "$as_me: failed program was:" >&5
49316 sed 's/^/| /' conftest.$ac_ext >&5
49317
49318 ( exit $ac_status )
49319 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49320 See \`config.log' for more details." >&5
49321 echo "$as_me: error: cannot compute sizeof (short), 77
49322 See \`config.log' for more details." >&2;}
49323    { (exit 1); exit 1; }; }
49324 fi
49325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49326 fi
49327 fi
49328 rm -f conftest.val
49329 else
49330   ac_cv_sizeof_short=0
49331 fi
49332 fi
49333 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49334 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49335 cat >>confdefs.h <<_ACEOF
49336 #define SIZEOF_SHORT $ac_cv_sizeof_short
49337 _ACEOF
49338
49339
49340 echo "$as_me:$LINENO: checking for int" >&5
49341 echo $ECHO_N "checking for int... $ECHO_C" >&6
49342 if test "${ac_cv_type_int+set}" = set; then
49343   echo $ECHO_N "(cached) $ECHO_C" >&6
49344 else
49345   cat >conftest.$ac_ext <<_ACEOF
49346 /* confdefs.h.  */
49347 _ACEOF
49348 cat confdefs.h >>conftest.$ac_ext
49349 cat >>conftest.$ac_ext <<_ACEOF
49350 /* end confdefs.h.  */
49351 $ac_includes_default
49352 int
49353 main ()
49354 {
49355 if ((int *) 0)
49356   return 0;
49357 if (sizeof (int))
49358   return 0;
49359   ;
49360   return 0;
49361 }
49362 _ACEOF
49363 rm -f conftest.$ac_objext
49364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49365   (eval $ac_compile) 2>conftest.er1
49366   ac_status=$?
49367   grep -v '^ *+' conftest.er1 >conftest.err
49368   rm -f conftest.er1
49369   cat conftest.err >&5
49370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49371   (exit $ac_status); } &&
49372          { ac_try='test -z "$ac_c_werror_flag"
49373                          || test ! -s conftest.err'
49374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49375   (eval $ac_try) 2>&5
49376   ac_status=$?
49377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49378   (exit $ac_status); }; } &&
49379          { ac_try='test -s conftest.$ac_objext'
49380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49381   (eval $ac_try) 2>&5
49382   ac_status=$?
49383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49384   (exit $ac_status); }; }; then
49385   ac_cv_type_int=yes
49386 else
49387   echo "$as_me: failed program was:" >&5
49388 sed 's/^/| /' conftest.$ac_ext >&5
49389
49390 ac_cv_type_int=no
49391 fi
49392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49393 fi
49394 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49395 echo "${ECHO_T}$ac_cv_type_int" >&6
49396
49397 echo "$as_me:$LINENO: checking size of int" >&5
49398 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49399 if test "${ac_cv_sizeof_int+set}" = set; then
49400   echo $ECHO_N "(cached) $ECHO_C" >&6
49401 else
49402   if test "$ac_cv_type_int" = yes; then
49403   # The cast to unsigned long works around a bug in the HP C Compiler
49404   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49405   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49406   # This bug is HP SR number 8606223364.
49407   if test "$cross_compiling" = yes; then
49408   # Depending upon the size, compute the lo and hi bounds.
49409 cat >conftest.$ac_ext <<_ACEOF
49410 /* confdefs.h.  */
49411 _ACEOF
49412 cat confdefs.h >>conftest.$ac_ext
49413 cat >>conftest.$ac_ext <<_ACEOF
49414 /* end confdefs.h.  */
49415 $ac_includes_default
49416 int
49417 main ()
49418 {
49419 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49420 test_array [0] = 0
49421
49422   ;
49423   return 0;
49424 }
49425 _ACEOF
49426 rm -f conftest.$ac_objext
49427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49428   (eval $ac_compile) 2>conftest.er1
49429   ac_status=$?
49430   grep -v '^ *+' conftest.er1 >conftest.err
49431   rm -f conftest.er1
49432   cat conftest.err >&5
49433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49434   (exit $ac_status); } &&
49435          { ac_try='test -z "$ac_c_werror_flag"
49436                          || test ! -s conftest.err'
49437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49438   (eval $ac_try) 2>&5
49439   ac_status=$?
49440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49441   (exit $ac_status); }; } &&
49442          { ac_try='test -s conftest.$ac_objext'
49443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49444   (eval $ac_try) 2>&5
49445   ac_status=$?
49446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49447   (exit $ac_status); }; }; then
49448   ac_lo=0 ac_mid=0
49449   while :; do
49450     cat >conftest.$ac_ext <<_ACEOF
49451 /* confdefs.h.  */
49452 _ACEOF
49453 cat confdefs.h >>conftest.$ac_ext
49454 cat >>conftest.$ac_ext <<_ACEOF
49455 /* end confdefs.h.  */
49456 $ac_includes_default
49457 int
49458 main ()
49459 {
49460 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49461 test_array [0] = 0
49462
49463   ;
49464   return 0;
49465 }
49466 _ACEOF
49467 rm -f conftest.$ac_objext
49468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49469   (eval $ac_compile) 2>conftest.er1
49470   ac_status=$?
49471   grep -v '^ *+' conftest.er1 >conftest.err
49472   rm -f conftest.er1
49473   cat conftest.err >&5
49474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49475   (exit $ac_status); } &&
49476          { ac_try='test -z "$ac_c_werror_flag"
49477                          || test ! -s conftest.err'
49478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49479   (eval $ac_try) 2>&5
49480   ac_status=$?
49481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49482   (exit $ac_status); }; } &&
49483          { ac_try='test -s conftest.$ac_objext'
49484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49485   (eval $ac_try) 2>&5
49486   ac_status=$?
49487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49488   (exit $ac_status); }; }; then
49489   ac_hi=$ac_mid; break
49490 else
49491   echo "$as_me: failed program was:" >&5
49492 sed 's/^/| /' conftest.$ac_ext >&5
49493
49494 ac_lo=`expr $ac_mid + 1`
49495                     if test $ac_lo -le $ac_mid; then
49496                       ac_lo= ac_hi=
49497                       break
49498                     fi
49499                     ac_mid=`expr 2 '*' $ac_mid + 1`
49500 fi
49501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49502   done
49503 else
49504   echo "$as_me: failed program was:" >&5
49505 sed 's/^/| /' conftest.$ac_ext >&5
49506
49507 cat >conftest.$ac_ext <<_ACEOF
49508 /* confdefs.h.  */
49509 _ACEOF
49510 cat confdefs.h >>conftest.$ac_ext
49511 cat >>conftest.$ac_ext <<_ACEOF
49512 /* end confdefs.h.  */
49513 $ac_includes_default
49514 int
49515 main ()
49516 {
49517 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49518 test_array [0] = 0
49519
49520   ;
49521   return 0;
49522 }
49523 _ACEOF
49524 rm -f conftest.$ac_objext
49525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49526   (eval $ac_compile) 2>conftest.er1
49527   ac_status=$?
49528   grep -v '^ *+' conftest.er1 >conftest.err
49529   rm -f conftest.er1
49530   cat conftest.err >&5
49531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49532   (exit $ac_status); } &&
49533          { ac_try='test -z "$ac_c_werror_flag"
49534                          || test ! -s conftest.err'
49535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49536   (eval $ac_try) 2>&5
49537   ac_status=$?
49538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49539   (exit $ac_status); }; } &&
49540          { ac_try='test -s conftest.$ac_objext'
49541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49542   (eval $ac_try) 2>&5
49543   ac_status=$?
49544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49545   (exit $ac_status); }; }; then
49546   ac_hi=-1 ac_mid=-1
49547   while :; do
49548     cat >conftest.$ac_ext <<_ACEOF
49549 /* confdefs.h.  */
49550 _ACEOF
49551 cat confdefs.h >>conftest.$ac_ext
49552 cat >>conftest.$ac_ext <<_ACEOF
49553 /* end confdefs.h.  */
49554 $ac_includes_default
49555 int
49556 main ()
49557 {
49558 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49559 test_array [0] = 0
49560
49561   ;
49562   return 0;
49563 }
49564 _ACEOF
49565 rm -f conftest.$ac_objext
49566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49567   (eval $ac_compile) 2>conftest.er1
49568   ac_status=$?
49569   grep -v '^ *+' conftest.er1 >conftest.err
49570   rm -f conftest.er1
49571   cat conftest.err >&5
49572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49573   (exit $ac_status); } &&
49574          { ac_try='test -z "$ac_c_werror_flag"
49575                          || test ! -s conftest.err'
49576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49577   (eval $ac_try) 2>&5
49578   ac_status=$?
49579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49580   (exit $ac_status); }; } &&
49581          { ac_try='test -s conftest.$ac_objext'
49582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49583   (eval $ac_try) 2>&5
49584   ac_status=$?
49585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49586   (exit $ac_status); }; }; then
49587   ac_lo=$ac_mid; break
49588 else
49589   echo "$as_me: failed program was:" >&5
49590 sed 's/^/| /' conftest.$ac_ext >&5
49591
49592 ac_hi=`expr '(' $ac_mid ')' - 1`
49593                        if test $ac_mid -le $ac_hi; then
49594                          ac_lo= ac_hi=
49595                          break
49596                        fi
49597                        ac_mid=`expr 2 '*' $ac_mid`
49598 fi
49599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49600   done
49601 else
49602   echo "$as_me: failed program was:" >&5
49603 sed 's/^/| /' conftest.$ac_ext >&5
49604
49605 ac_lo= ac_hi=
49606 fi
49607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49608 fi
49609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49610 # Binary search between lo and hi bounds.
49611 while test "x$ac_lo" != "x$ac_hi"; do
49612   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49613   cat >conftest.$ac_ext <<_ACEOF
49614 /* confdefs.h.  */
49615 _ACEOF
49616 cat confdefs.h >>conftest.$ac_ext
49617 cat >>conftest.$ac_ext <<_ACEOF
49618 /* end confdefs.h.  */
49619 $ac_includes_default
49620 int
49621 main ()
49622 {
49623 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49624 test_array [0] = 0
49625
49626   ;
49627   return 0;
49628 }
49629 _ACEOF
49630 rm -f conftest.$ac_objext
49631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49632   (eval $ac_compile) 2>conftest.er1
49633   ac_status=$?
49634   grep -v '^ *+' conftest.er1 >conftest.err
49635   rm -f conftest.er1
49636   cat conftest.err >&5
49637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49638   (exit $ac_status); } &&
49639          { ac_try='test -z "$ac_c_werror_flag"
49640                          || test ! -s conftest.err'
49641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49642   (eval $ac_try) 2>&5
49643   ac_status=$?
49644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49645   (exit $ac_status); }; } &&
49646          { ac_try='test -s conftest.$ac_objext'
49647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49648   (eval $ac_try) 2>&5
49649   ac_status=$?
49650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49651   (exit $ac_status); }; }; then
49652   ac_hi=$ac_mid
49653 else
49654   echo "$as_me: failed program was:" >&5
49655 sed 's/^/| /' conftest.$ac_ext >&5
49656
49657 ac_lo=`expr '(' $ac_mid ')' + 1`
49658 fi
49659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49660 done
49661 case $ac_lo in
49662 ?*) ac_cv_sizeof_int=$ac_lo;;
49663 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49664 See \`config.log' for more details." >&5
49665 echo "$as_me: error: cannot compute sizeof (int), 77
49666 See \`config.log' for more details." >&2;}
49667    { (exit 1); exit 1; }; } ;;
49668 esac
49669 else
49670   if test "$cross_compiling" = yes; then
49671   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49672 See \`config.log' for more details." >&5
49673 echo "$as_me: error: cannot run test program while cross compiling
49674 See \`config.log' for more details." >&2;}
49675    { (exit 1); exit 1; }; }
49676 else
49677   cat >conftest.$ac_ext <<_ACEOF
49678 /* confdefs.h.  */
49679 _ACEOF
49680 cat confdefs.h >>conftest.$ac_ext
49681 cat >>conftest.$ac_ext <<_ACEOF
49682 /* end confdefs.h.  */
49683 $ac_includes_default
49684 long longval () { return (long) (sizeof (int)); }
49685 unsigned long ulongval () { return (long) (sizeof (int)); }
49686 #include <stdio.h>
49687 #include <stdlib.h>
49688 int
49689 main ()
49690 {
49691
49692   FILE *f = fopen ("conftest.val", "w");
49693   if (! f)
49694     exit (1);
49695   if (((long) (sizeof (int))) < 0)
49696     {
49697       long i = longval ();
49698       if (i != ((long) (sizeof (int))))
49699         exit (1);
49700       fprintf (f, "%ld\n", i);
49701     }
49702   else
49703     {
49704       unsigned long i = ulongval ();
49705       if (i != ((long) (sizeof (int))))
49706         exit (1);
49707       fprintf (f, "%lu\n", i);
49708     }
49709   exit (ferror (f) || fclose (f) != 0);
49710
49711   ;
49712   return 0;
49713 }
49714 _ACEOF
49715 rm -f conftest$ac_exeext
49716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49717   (eval $ac_link) 2>&5
49718   ac_status=$?
49719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49722   (eval $ac_try) 2>&5
49723   ac_status=$?
49724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49725   (exit $ac_status); }; }; then
49726   ac_cv_sizeof_int=`cat conftest.val`
49727 else
49728   echo "$as_me: program exited with status $ac_status" >&5
49729 echo "$as_me: failed program was:" >&5
49730 sed 's/^/| /' conftest.$ac_ext >&5
49731
49732 ( exit $ac_status )
49733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49734 See \`config.log' for more details." >&5
49735 echo "$as_me: error: cannot compute sizeof (int), 77
49736 See \`config.log' for more details." >&2;}
49737    { (exit 1); exit 1; }; }
49738 fi
49739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49740 fi
49741 fi
49742 rm -f conftest.val
49743 else
49744   ac_cv_sizeof_int=0
49745 fi
49746 fi
49747 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49748 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49749 cat >>confdefs.h <<_ACEOF
49750 #define SIZEOF_INT $ac_cv_sizeof_int
49751 _ACEOF
49752
49753
49754 echo "$as_me:$LINENO: checking for long" >&5
49755 echo $ECHO_N "checking for long... $ECHO_C" >&6
49756 if test "${ac_cv_type_long+set}" = set; then
49757   echo $ECHO_N "(cached) $ECHO_C" >&6
49758 else
49759   cat >conftest.$ac_ext <<_ACEOF
49760 /* confdefs.h.  */
49761 _ACEOF
49762 cat confdefs.h >>conftest.$ac_ext
49763 cat >>conftest.$ac_ext <<_ACEOF
49764 /* end confdefs.h.  */
49765 $ac_includes_default
49766 int
49767 main ()
49768 {
49769 if ((long *) 0)
49770   return 0;
49771 if (sizeof (long))
49772   return 0;
49773   ;
49774   return 0;
49775 }
49776 _ACEOF
49777 rm -f conftest.$ac_objext
49778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49779   (eval $ac_compile) 2>conftest.er1
49780   ac_status=$?
49781   grep -v '^ *+' conftest.er1 >conftest.err
49782   rm -f conftest.er1
49783   cat conftest.err >&5
49784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49785   (exit $ac_status); } &&
49786          { ac_try='test -z "$ac_c_werror_flag"
49787                          || test ! -s conftest.err'
49788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49789   (eval $ac_try) 2>&5
49790   ac_status=$?
49791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49792   (exit $ac_status); }; } &&
49793          { ac_try='test -s conftest.$ac_objext'
49794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49795   (eval $ac_try) 2>&5
49796   ac_status=$?
49797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49798   (exit $ac_status); }; }; then
49799   ac_cv_type_long=yes
49800 else
49801   echo "$as_me: failed program was:" >&5
49802 sed 's/^/| /' conftest.$ac_ext >&5
49803
49804 ac_cv_type_long=no
49805 fi
49806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49807 fi
49808 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49809 echo "${ECHO_T}$ac_cv_type_long" >&6
49810
49811 echo "$as_me:$LINENO: checking size of long" >&5
49812 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49813 if test "${ac_cv_sizeof_long+set}" = set; then
49814   echo $ECHO_N "(cached) $ECHO_C" >&6
49815 else
49816   if test "$ac_cv_type_long" = yes; then
49817   # The cast to unsigned long works around a bug in the HP C Compiler
49818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49820   # This bug is HP SR number 8606223364.
49821   if test "$cross_compiling" = yes; then
49822   # Depending upon the size, compute the lo and hi bounds.
49823 cat >conftest.$ac_ext <<_ACEOF
49824 /* confdefs.h.  */
49825 _ACEOF
49826 cat confdefs.h >>conftest.$ac_ext
49827 cat >>conftest.$ac_ext <<_ACEOF
49828 /* end confdefs.h.  */
49829 $ac_includes_default
49830 int
49831 main ()
49832 {
49833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49834 test_array [0] = 0
49835
49836   ;
49837   return 0;
49838 }
49839 _ACEOF
49840 rm -f conftest.$ac_objext
49841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49842   (eval $ac_compile) 2>conftest.er1
49843   ac_status=$?
49844   grep -v '^ *+' conftest.er1 >conftest.err
49845   rm -f conftest.er1
49846   cat conftest.err >&5
49847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49848   (exit $ac_status); } &&
49849          { ac_try='test -z "$ac_c_werror_flag"
49850                          || test ! -s conftest.err'
49851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49852   (eval $ac_try) 2>&5
49853   ac_status=$?
49854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49855   (exit $ac_status); }; } &&
49856          { ac_try='test -s conftest.$ac_objext'
49857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49858   (eval $ac_try) 2>&5
49859   ac_status=$?
49860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49861   (exit $ac_status); }; }; then
49862   ac_lo=0 ac_mid=0
49863   while :; do
49864     cat >conftest.$ac_ext <<_ACEOF
49865 /* confdefs.h.  */
49866 _ACEOF
49867 cat confdefs.h >>conftest.$ac_ext
49868 cat >>conftest.$ac_ext <<_ACEOF
49869 /* end confdefs.h.  */
49870 $ac_includes_default
49871 int
49872 main ()
49873 {
49874 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49875 test_array [0] = 0
49876
49877   ;
49878   return 0;
49879 }
49880 _ACEOF
49881 rm -f conftest.$ac_objext
49882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49883   (eval $ac_compile) 2>conftest.er1
49884   ac_status=$?
49885   grep -v '^ *+' conftest.er1 >conftest.err
49886   rm -f conftest.er1
49887   cat conftest.err >&5
49888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49889   (exit $ac_status); } &&
49890          { ac_try='test -z "$ac_c_werror_flag"
49891                          || test ! -s conftest.err'
49892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49893   (eval $ac_try) 2>&5
49894   ac_status=$?
49895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49896   (exit $ac_status); }; } &&
49897          { ac_try='test -s conftest.$ac_objext'
49898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49899   (eval $ac_try) 2>&5
49900   ac_status=$?
49901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49902   (exit $ac_status); }; }; then
49903   ac_hi=$ac_mid; break
49904 else
49905   echo "$as_me: failed program was:" >&5
49906 sed 's/^/| /' conftest.$ac_ext >&5
49907
49908 ac_lo=`expr $ac_mid + 1`
49909                     if test $ac_lo -le $ac_mid; then
49910                       ac_lo= ac_hi=
49911                       break
49912                     fi
49913                     ac_mid=`expr 2 '*' $ac_mid + 1`
49914 fi
49915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49916   done
49917 else
49918   echo "$as_me: failed program was:" >&5
49919 sed 's/^/| /' conftest.$ac_ext >&5
49920
49921 cat >conftest.$ac_ext <<_ACEOF
49922 /* confdefs.h.  */
49923 _ACEOF
49924 cat confdefs.h >>conftest.$ac_ext
49925 cat >>conftest.$ac_ext <<_ACEOF
49926 /* end confdefs.h.  */
49927 $ac_includes_default
49928 int
49929 main ()
49930 {
49931 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49932 test_array [0] = 0
49933
49934   ;
49935   return 0;
49936 }
49937 _ACEOF
49938 rm -f conftest.$ac_objext
49939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49940   (eval $ac_compile) 2>conftest.er1
49941   ac_status=$?
49942   grep -v '^ *+' conftest.er1 >conftest.err
49943   rm -f conftest.er1
49944   cat conftest.err >&5
49945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49946   (exit $ac_status); } &&
49947          { ac_try='test -z "$ac_c_werror_flag"
49948                          || test ! -s conftest.err'
49949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49950   (eval $ac_try) 2>&5
49951   ac_status=$?
49952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49953   (exit $ac_status); }; } &&
49954          { ac_try='test -s conftest.$ac_objext'
49955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49956   (eval $ac_try) 2>&5
49957   ac_status=$?
49958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49959   (exit $ac_status); }; }; then
49960   ac_hi=-1 ac_mid=-1
49961   while :; do
49962     cat >conftest.$ac_ext <<_ACEOF
49963 /* confdefs.h.  */
49964 _ACEOF
49965 cat confdefs.h >>conftest.$ac_ext
49966 cat >>conftest.$ac_ext <<_ACEOF
49967 /* end confdefs.h.  */
49968 $ac_includes_default
49969 int
49970 main ()
49971 {
49972 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49973 test_array [0] = 0
49974
49975   ;
49976   return 0;
49977 }
49978 _ACEOF
49979 rm -f conftest.$ac_objext
49980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49981   (eval $ac_compile) 2>conftest.er1
49982   ac_status=$?
49983   grep -v '^ *+' conftest.er1 >conftest.err
49984   rm -f conftest.er1
49985   cat conftest.err >&5
49986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49987   (exit $ac_status); } &&
49988          { ac_try='test -z "$ac_c_werror_flag"
49989                          || test ! -s conftest.err'
49990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49991   (eval $ac_try) 2>&5
49992   ac_status=$?
49993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49994   (exit $ac_status); }; } &&
49995          { ac_try='test -s conftest.$ac_objext'
49996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49997   (eval $ac_try) 2>&5
49998   ac_status=$?
49999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50000   (exit $ac_status); }; }; then
50001   ac_lo=$ac_mid; break
50002 else
50003   echo "$as_me: failed program was:" >&5
50004 sed 's/^/| /' conftest.$ac_ext >&5
50005
50006 ac_hi=`expr '(' $ac_mid ')' - 1`
50007                        if test $ac_mid -le $ac_hi; then
50008                          ac_lo= ac_hi=
50009                          break
50010                        fi
50011                        ac_mid=`expr 2 '*' $ac_mid`
50012 fi
50013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50014   done
50015 else
50016   echo "$as_me: failed program was:" >&5
50017 sed 's/^/| /' conftest.$ac_ext >&5
50018
50019 ac_lo= ac_hi=
50020 fi
50021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50022 fi
50023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50024 # Binary search between lo and hi bounds.
50025 while test "x$ac_lo" != "x$ac_hi"; do
50026   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50027   cat >conftest.$ac_ext <<_ACEOF
50028 /* confdefs.h.  */
50029 _ACEOF
50030 cat confdefs.h >>conftest.$ac_ext
50031 cat >>conftest.$ac_ext <<_ACEOF
50032 /* end confdefs.h.  */
50033 $ac_includes_default
50034 int
50035 main ()
50036 {
50037 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
50038 test_array [0] = 0
50039
50040   ;
50041   return 0;
50042 }
50043 _ACEOF
50044 rm -f conftest.$ac_objext
50045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50046   (eval $ac_compile) 2>conftest.er1
50047   ac_status=$?
50048   grep -v '^ *+' conftest.er1 >conftest.err
50049   rm -f conftest.er1
50050   cat conftest.err >&5
50051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50052   (exit $ac_status); } &&
50053          { ac_try='test -z "$ac_c_werror_flag"
50054                          || test ! -s conftest.err'
50055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50056   (eval $ac_try) 2>&5
50057   ac_status=$?
50058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50059   (exit $ac_status); }; } &&
50060          { ac_try='test -s conftest.$ac_objext'
50061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50062   (eval $ac_try) 2>&5
50063   ac_status=$?
50064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50065   (exit $ac_status); }; }; then
50066   ac_hi=$ac_mid
50067 else
50068   echo "$as_me: failed program was:" >&5
50069 sed 's/^/| /' conftest.$ac_ext >&5
50070
50071 ac_lo=`expr '(' $ac_mid ')' + 1`
50072 fi
50073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50074 done
50075 case $ac_lo in
50076 ?*) ac_cv_sizeof_long=$ac_lo;;
50077 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50078 See \`config.log' for more details." >&5
50079 echo "$as_me: error: cannot compute sizeof (long), 77
50080 See \`config.log' for more details." >&2;}
50081    { (exit 1); exit 1; }; } ;;
50082 esac
50083 else
50084   if test "$cross_compiling" = yes; then
50085   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50086 See \`config.log' for more details." >&5
50087 echo "$as_me: error: cannot run test program while cross compiling
50088 See \`config.log' for more details." >&2;}
50089    { (exit 1); exit 1; }; }
50090 else
50091   cat >conftest.$ac_ext <<_ACEOF
50092 /* confdefs.h.  */
50093 _ACEOF
50094 cat confdefs.h >>conftest.$ac_ext
50095 cat >>conftest.$ac_ext <<_ACEOF
50096 /* end confdefs.h.  */
50097 $ac_includes_default
50098 long longval () { return (long) (sizeof (long)); }
50099 unsigned long ulongval () { return (long) (sizeof (long)); }
50100 #include <stdio.h>
50101 #include <stdlib.h>
50102 int
50103 main ()
50104 {
50105
50106   FILE *f = fopen ("conftest.val", "w");
50107   if (! f)
50108     exit (1);
50109   if (((long) (sizeof (long))) < 0)
50110     {
50111       long i = longval ();
50112       if (i != ((long) (sizeof (long))))
50113         exit (1);
50114       fprintf (f, "%ld\n", i);
50115     }
50116   else
50117     {
50118       unsigned long i = ulongval ();
50119       if (i != ((long) (sizeof (long))))
50120         exit (1);
50121       fprintf (f, "%lu\n", i);
50122     }
50123   exit (ferror (f) || fclose (f) != 0);
50124
50125   ;
50126   return 0;
50127 }
50128 _ACEOF
50129 rm -f conftest$ac_exeext
50130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50131   (eval $ac_link) 2>&5
50132   ac_status=$?
50133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50136   (eval $ac_try) 2>&5
50137   ac_status=$?
50138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50139   (exit $ac_status); }; }; then
50140   ac_cv_sizeof_long=`cat conftest.val`
50141 else
50142   echo "$as_me: program exited with status $ac_status" >&5
50143 echo "$as_me: failed program was:" >&5
50144 sed 's/^/| /' conftest.$ac_ext >&5
50145
50146 ( exit $ac_status )
50147 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50148 See \`config.log' for more details." >&5
50149 echo "$as_me: error: cannot compute sizeof (long), 77
50150 See \`config.log' for more details." >&2;}
50151    { (exit 1); exit 1; }; }
50152 fi
50153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50154 fi
50155 fi
50156 rm -f conftest.val
50157 else
50158   ac_cv_sizeof_long=0
50159 fi
50160 fi
50161 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50162 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50163 cat >>confdefs.h <<_ACEOF
50164 #define SIZEOF_LONG $ac_cv_sizeof_long
50165 _ACEOF
50166
50167
50168 echo "$as_me:$LINENO: checking for wchar_t" >&5
50169 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50170 if test "${ac_cv_type_wchar_t+set}" = set; then
50171   echo $ECHO_N "(cached) $ECHO_C" >&6
50172 else
50173   cat >conftest.$ac_ext <<_ACEOF
50174 /* confdefs.h.  */
50175 _ACEOF
50176 cat confdefs.h >>conftest.$ac_ext
50177 cat >>conftest.$ac_ext <<_ACEOF
50178 /* end confdefs.h.  */
50179 $ac_includes_default
50180 int
50181 main ()
50182 {
50183 if ((wchar_t *) 0)
50184   return 0;
50185 if (sizeof (wchar_t))
50186   return 0;
50187   ;
50188   return 0;
50189 }
50190 _ACEOF
50191 rm -f conftest.$ac_objext
50192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50193   (eval $ac_compile) 2>conftest.er1
50194   ac_status=$?
50195   grep -v '^ *+' conftest.er1 >conftest.err
50196   rm -f conftest.er1
50197   cat conftest.err >&5
50198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50199   (exit $ac_status); } &&
50200          { ac_try='test -z "$ac_c_werror_flag"
50201                          || test ! -s conftest.err'
50202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50203   (eval $ac_try) 2>&5
50204   ac_status=$?
50205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50206   (exit $ac_status); }; } &&
50207          { ac_try='test -s conftest.$ac_objext'
50208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50209   (eval $ac_try) 2>&5
50210   ac_status=$?
50211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50212   (exit $ac_status); }; }; then
50213   ac_cv_type_wchar_t=yes
50214 else
50215   echo "$as_me: failed program was:" >&5
50216 sed 's/^/| /' conftest.$ac_ext >&5
50217
50218 ac_cv_type_wchar_t=no
50219 fi
50220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50221 fi
50222 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50223 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50224
50225 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50226 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50227 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50228   echo $ECHO_N "(cached) $ECHO_C" >&6
50229 else
50230   if test "$ac_cv_type_wchar_t" = yes; then
50231   # The cast to unsigned long works around a bug in the HP C Compiler
50232   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50233   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50234   # This bug is HP SR number 8606223364.
50235   if test "$cross_compiling" = yes; then
50236   # Depending upon the size, compute the lo and hi bounds.
50237 cat >conftest.$ac_ext <<_ACEOF
50238 /* confdefs.h.  */
50239 _ACEOF
50240 cat confdefs.h >>conftest.$ac_ext
50241 cat >>conftest.$ac_ext <<_ACEOF
50242 /* end confdefs.h.  */
50243 $ac_includes_default
50244 int
50245 main ()
50246 {
50247 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50248 test_array [0] = 0
50249
50250   ;
50251   return 0;
50252 }
50253 _ACEOF
50254 rm -f conftest.$ac_objext
50255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50256   (eval $ac_compile) 2>conftest.er1
50257   ac_status=$?
50258   grep -v '^ *+' conftest.er1 >conftest.err
50259   rm -f conftest.er1
50260   cat conftest.err >&5
50261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50262   (exit $ac_status); } &&
50263          { ac_try='test -z "$ac_c_werror_flag"
50264                          || test ! -s conftest.err'
50265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50266   (eval $ac_try) 2>&5
50267   ac_status=$?
50268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50269   (exit $ac_status); }; } &&
50270          { ac_try='test -s conftest.$ac_objext'
50271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50272   (eval $ac_try) 2>&5
50273   ac_status=$?
50274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50275   (exit $ac_status); }; }; then
50276   ac_lo=0 ac_mid=0
50277   while :; do
50278     cat >conftest.$ac_ext <<_ACEOF
50279 /* confdefs.h.  */
50280 _ACEOF
50281 cat confdefs.h >>conftest.$ac_ext
50282 cat >>conftest.$ac_ext <<_ACEOF
50283 /* end confdefs.h.  */
50284 $ac_includes_default
50285 int
50286 main ()
50287 {
50288 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50289 test_array [0] = 0
50290
50291   ;
50292   return 0;
50293 }
50294 _ACEOF
50295 rm -f conftest.$ac_objext
50296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50297   (eval $ac_compile) 2>conftest.er1
50298   ac_status=$?
50299   grep -v '^ *+' conftest.er1 >conftest.err
50300   rm -f conftest.er1
50301   cat conftest.err >&5
50302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50303   (exit $ac_status); } &&
50304          { ac_try='test -z "$ac_c_werror_flag"
50305                          || test ! -s conftest.err'
50306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50307   (eval $ac_try) 2>&5
50308   ac_status=$?
50309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50310   (exit $ac_status); }; } &&
50311          { ac_try='test -s conftest.$ac_objext'
50312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50313   (eval $ac_try) 2>&5
50314   ac_status=$?
50315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50316   (exit $ac_status); }; }; then
50317   ac_hi=$ac_mid; break
50318 else
50319   echo "$as_me: failed program was:" >&5
50320 sed 's/^/| /' conftest.$ac_ext >&5
50321
50322 ac_lo=`expr $ac_mid + 1`
50323                     if test $ac_lo -le $ac_mid; then
50324                       ac_lo= ac_hi=
50325                       break
50326                     fi
50327                     ac_mid=`expr 2 '*' $ac_mid + 1`
50328 fi
50329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50330   done
50331 else
50332   echo "$as_me: failed program was:" >&5
50333 sed 's/^/| /' conftest.$ac_ext >&5
50334
50335 cat >conftest.$ac_ext <<_ACEOF
50336 /* confdefs.h.  */
50337 _ACEOF
50338 cat confdefs.h >>conftest.$ac_ext
50339 cat >>conftest.$ac_ext <<_ACEOF
50340 /* end confdefs.h.  */
50341 $ac_includes_default
50342 int
50343 main ()
50344 {
50345 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50346 test_array [0] = 0
50347
50348   ;
50349   return 0;
50350 }
50351 _ACEOF
50352 rm -f conftest.$ac_objext
50353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50354   (eval $ac_compile) 2>conftest.er1
50355   ac_status=$?
50356   grep -v '^ *+' conftest.er1 >conftest.err
50357   rm -f conftest.er1
50358   cat conftest.err >&5
50359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50360   (exit $ac_status); } &&
50361          { ac_try='test -z "$ac_c_werror_flag"
50362                          || test ! -s conftest.err'
50363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50364   (eval $ac_try) 2>&5
50365   ac_status=$?
50366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50367   (exit $ac_status); }; } &&
50368          { ac_try='test -s conftest.$ac_objext'
50369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50370   (eval $ac_try) 2>&5
50371   ac_status=$?
50372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50373   (exit $ac_status); }; }; then
50374   ac_hi=-1 ac_mid=-1
50375   while :; do
50376     cat >conftest.$ac_ext <<_ACEOF
50377 /* confdefs.h.  */
50378 _ACEOF
50379 cat confdefs.h >>conftest.$ac_ext
50380 cat >>conftest.$ac_ext <<_ACEOF
50381 /* end confdefs.h.  */
50382 $ac_includes_default
50383 int
50384 main ()
50385 {
50386 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50387 test_array [0] = 0
50388
50389   ;
50390   return 0;
50391 }
50392 _ACEOF
50393 rm -f conftest.$ac_objext
50394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50395   (eval $ac_compile) 2>conftest.er1
50396   ac_status=$?
50397   grep -v '^ *+' conftest.er1 >conftest.err
50398   rm -f conftest.er1
50399   cat conftest.err >&5
50400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50401   (exit $ac_status); } &&
50402          { ac_try='test -z "$ac_c_werror_flag"
50403                          || test ! -s conftest.err'
50404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50405   (eval $ac_try) 2>&5
50406   ac_status=$?
50407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50408   (exit $ac_status); }; } &&
50409          { ac_try='test -s conftest.$ac_objext'
50410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50411   (eval $ac_try) 2>&5
50412   ac_status=$?
50413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50414   (exit $ac_status); }; }; then
50415   ac_lo=$ac_mid; break
50416 else
50417   echo "$as_me: failed program was:" >&5
50418 sed 's/^/| /' conftest.$ac_ext >&5
50419
50420 ac_hi=`expr '(' $ac_mid ')' - 1`
50421                        if test $ac_mid -le $ac_hi; then
50422                          ac_lo= ac_hi=
50423                          break
50424                        fi
50425                        ac_mid=`expr 2 '*' $ac_mid`
50426 fi
50427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50428   done
50429 else
50430   echo "$as_me: failed program was:" >&5
50431 sed 's/^/| /' conftest.$ac_ext >&5
50432
50433 ac_lo= ac_hi=
50434 fi
50435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50436 fi
50437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50438 # Binary search between lo and hi bounds.
50439 while test "x$ac_lo" != "x$ac_hi"; do
50440   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50441   cat >conftest.$ac_ext <<_ACEOF
50442 /* confdefs.h.  */
50443 _ACEOF
50444 cat confdefs.h >>conftest.$ac_ext
50445 cat >>conftest.$ac_ext <<_ACEOF
50446 /* end confdefs.h.  */
50447 $ac_includes_default
50448 int
50449 main ()
50450 {
50451 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50452 test_array [0] = 0
50453
50454   ;
50455   return 0;
50456 }
50457 _ACEOF
50458 rm -f conftest.$ac_objext
50459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50460   (eval $ac_compile) 2>conftest.er1
50461   ac_status=$?
50462   grep -v '^ *+' conftest.er1 >conftest.err
50463   rm -f conftest.er1
50464   cat conftest.err >&5
50465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50466   (exit $ac_status); } &&
50467          { ac_try='test -z "$ac_c_werror_flag"
50468                          || test ! -s conftest.err'
50469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50470   (eval $ac_try) 2>&5
50471   ac_status=$?
50472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50473   (exit $ac_status); }; } &&
50474          { ac_try='test -s conftest.$ac_objext'
50475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50476   (eval $ac_try) 2>&5
50477   ac_status=$?
50478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50479   (exit $ac_status); }; }; then
50480   ac_hi=$ac_mid
50481 else
50482   echo "$as_me: failed program was:" >&5
50483 sed 's/^/| /' conftest.$ac_ext >&5
50484
50485 ac_lo=`expr '(' $ac_mid ')' + 1`
50486 fi
50487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50488 done
50489 case $ac_lo in
50490 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50491 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50492 See \`config.log' for more details." >&5
50493 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50494 See \`config.log' for more details." >&2;}
50495    { (exit 1); exit 1; }; } ;;
50496 esac
50497 else
50498   if test "$cross_compiling" = yes; then
50499   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50500 See \`config.log' for more details." >&5
50501 echo "$as_me: error: cannot run test program while cross compiling
50502 See \`config.log' for more details." >&2;}
50503    { (exit 1); exit 1; }; }
50504 else
50505   cat >conftest.$ac_ext <<_ACEOF
50506 /* confdefs.h.  */
50507 _ACEOF
50508 cat confdefs.h >>conftest.$ac_ext
50509 cat >>conftest.$ac_ext <<_ACEOF
50510 /* end confdefs.h.  */
50511 $ac_includes_default
50512 long longval () { return (long) (sizeof (wchar_t)); }
50513 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50514 #include <stdio.h>
50515 #include <stdlib.h>
50516 int
50517 main ()
50518 {
50519
50520   FILE *f = fopen ("conftest.val", "w");
50521   if (! f)
50522     exit (1);
50523   if (((long) (sizeof (wchar_t))) < 0)
50524     {
50525       long i = longval ();
50526       if (i != ((long) (sizeof (wchar_t))))
50527         exit (1);
50528       fprintf (f, "%ld\n", i);
50529     }
50530   else
50531     {
50532       unsigned long i = ulongval ();
50533       if (i != ((long) (sizeof (wchar_t))))
50534         exit (1);
50535       fprintf (f, "%lu\n", i);
50536     }
50537   exit (ferror (f) || fclose (f) != 0);
50538
50539   ;
50540   return 0;
50541 }
50542 _ACEOF
50543 rm -f conftest$ac_exeext
50544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50545   (eval $ac_link) 2>&5
50546   ac_status=$?
50547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50550   (eval $ac_try) 2>&5
50551   ac_status=$?
50552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50553   (exit $ac_status); }; }; then
50554   ac_cv_sizeof_wchar_t=`cat conftest.val`
50555 else
50556   echo "$as_me: program exited with status $ac_status" >&5
50557 echo "$as_me: failed program was:" >&5
50558 sed 's/^/| /' conftest.$ac_ext >&5
50559
50560 ( exit $ac_status )
50561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50562 See \`config.log' for more details." >&5
50563 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50564 See \`config.log' for more details." >&2;}
50565    { (exit 1); exit 1; }; }
50566 fi
50567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50568 fi
50569 fi
50570 rm -f conftest.val
50571 else
50572   ac_cv_sizeof_wchar_t=0
50573 fi
50574 fi
50575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50576 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50577 cat >>confdefs.h <<_ACEOF
50578 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50579 _ACEOF
50580
50581
50582
50583 if test "$ac_cv_sizeof_int" -lt 4 ; then
50584         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50585 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50586
50587
50588 cat >>confdefs.h <<\_ACEOF
50589 #define LBER_INT_T long
50590 _ACEOF
50591
50592 else
50593
50594 cat >>confdefs.h <<\_ACEOF
50595 #define LBER_INT_T int
50596 _ACEOF
50597
50598 fi
50599
50600
50601 cat >>confdefs.h <<\_ACEOF
50602 #define LBER_LEN_T long
50603 _ACEOF
50604
50605
50606 cat >>confdefs.h <<\_ACEOF
50607 #define LBER_SOCKET_T int
50608 _ACEOF
50609
50610
50611 cat >>confdefs.h <<\_ACEOF
50612 #define LBER_TAG_T long
50613 _ACEOF
50614
50615
50616 echo "$as_me:$LINENO: checking for working memcmp" >&5
50617 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50618 if test "${ac_cv_func_memcmp_working+set}" = set; then
50619   echo $ECHO_N "(cached) $ECHO_C" >&6
50620 else
50621   if test "$cross_compiling" = yes; then
50622   ac_cv_func_memcmp_working=no
50623 else
50624   cat >conftest.$ac_ext <<_ACEOF
50625 /* confdefs.h.  */
50626 _ACEOF
50627 cat confdefs.h >>conftest.$ac_ext
50628 cat >>conftest.$ac_ext <<_ACEOF
50629 /* end confdefs.h.  */
50630 $ac_includes_default
50631 int
50632 main ()
50633 {
50634
50635   /* Some versions of memcmp are not 8-bit clean.  */
50636   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50637   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50638     exit (1);
50639
50640   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50641      or more and with at least one buffer not starting on a 4-byte boundary.
50642      William Lewis provided this test program.   */
50643   {
50644     char foo[21];
50645     char bar[21];
50646     int i;
50647     for (i = 0; i < 4; i++)
50648       {
50649         char *a = foo + i;
50650         char *b = bar + i;
50651         strcpy (a, "--------01111111");
50652         strcpy (b, "--------10000000");
50653         if (memcmp (a, b, 16) >= 0)
50654           exit (1);
50655       }
50656     exit (0);
50657   }
50658
50659   ;
50660   return 0;
50661 }
50662 _ACEOF
50663 rm -f conftest$ac_exeext
50664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50665   (eval $ac_link) 2>&5
50666   ac_status=$?
50667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50670   (eval $ac_try) 2>&5
50671   ac_status=$?
50672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50673   (exit $ac_status); }; }; then
50674   ac_cv_func_memcmp_working=yes
50675 else
50676   echo "$as_me: program exited with status $ac_status" >&5
50677 echo "$as_me: failed program was:" >&5
50678 sed 's/^/| /' conftest.$ac_ext >&5
50679
50680 ( exit $ac_status )
50681 ac_cv_func_memcmp_working=no
50682 fi
50683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50684 fi
50685 fi
50686 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50687 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50688 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50689     "memcmp.$ac_objext"   | \
50690   *" memcmp.$ac_objext"   | \
50691     "memcmp.$ac_objext "* | \
50692   *" memcmp.$ac_objext "* ) ;;
50693   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50694 esac
50695
50696
50697
50698 if test $ac_cv_func_memcmp_working = no ; then
50699
50700 cat >>confdefs.h <<\_ACEOF
50701 #define NEED_MEMCMP_REPLACEMENT 1
50702 _ACEOF
50703
50704 fi
50705
50706
50707 for ac_func in strftime
50708 do
50709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50710 echo "$as_me:$LINENO: checking for $ac_func" >&5
50711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50712 if eval "test \"\${$as_ac_var+set}\" = set"; then
50713   echo $ECHO_N "(cached) $ECHO_C" >&6
50714 else
50715   cat >conftest.$ac_ext <<_ACEOF
50716 /* confdefs.h.  */
50717 _ACEOF
50718 cat confdefs.h >>conftest.$ac_ext
50719 cat >>conftest.$ac_ext <<_ACEOF
50720 /* end confdefs.h.  */
50721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50723 #define $ac_func innocuous_$ac_func
50724
50725 /* System header to define __stub macros and hopefully few prototypes,
50726     which can conflict with char $ac_func (); below.
50727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50728     <limits.h> exists even on freestanding compilers.  */
50729
50730 #ifdef __STDC__
50731 # include <limits.h>
50732 #else
50733 # include <assert.h>
50734 #endif
50735
50736 #undef $ac_func
50737
50738 /* Override any gcc2 internal prototype to avoid an error.  */
50739 #ifdef __cplusplus
50740 extern "C"
50741 {
50742 #endif
50743 /* We use char because int might match the return type of a gcc2
50744    builtin and then its argument prototype would still apply.  */
50745 char $ac_func ();
50746 /* The GNU C library defines this for functions which it implements
50747     to always fail with ENOSYS.  Some functions are actually named
50748     something starting with __ and the normal name is an alias.  */
50749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50750 choke me
50751 #else
50752 char (*f) () = $ac_func;
50753 #endif
50754 #ifdef __cplusplus
50755 }
50756 #endif
50757
50758 int
50759 main ()
50760 {
50761 return f != $ac_func;
50762   ;
50763   return 0;
50764 }
50765 _ACEOF
50766 rm -f conftest.$ac_objext conftest$ac_exeext
50767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50768   (eval $ac_link) 2>conftest.er1
50769   ac_status=$?
50770   grep -v '^ *+' conftest.er1 >conftest.err
50771   rm -f conftest.er1
50772   cat conftest.err >&5
50773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50774   (exit $ac_status); } &&
50775          { ac_try='test -z "$ac_c_werror_flag"
50776                          || test ! -s conftest.err'
50777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50778   (eval $ac_try) 2>&5
50779   ac_status=$?
50780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50781   (exit $ac_status); }; } &&
50782          { ac_try='test -s conftest$ac_exeext'
50783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50784   (eval $ac_try) 2>&5
50785   ac_status=$?
50786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50787   (exit $ac_status); }; }; then
50788   eval "$as_ac_var=yes"
50789 else
50790   echo "$as_me: failed program was:" >&5
50791 sed 's/^/| /' conftest.$ac_ext >&5
50792
50793 eval "$as_ac_var=no"
50794 fi
50795 rm -f conftest.err conftest.$ac_objext \
50796       conftest$ac_exeext conftest.$ac_ext
50797 fi
50798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50800 if test `eval echo '${'$as_ac_var'}'` = yes; then
50801   cat >>confdefs.h <<_ACEOF
50802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50803 _ACEOF
50804
50805 else
50806   # strftime is in -lintl on SCO UNIX.
50807 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50808 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50809 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50810   echo $ECHO_N "(cached) $ECHO_C" >&6
50811 else
50812   ac_check_lib_save_LIBS=$LIBS
50813 LIBS="-lintl  $LIBS"
50814 cat >conftest.$ac_ext <<_ACEOF
50815 /* confdefs.h.  */
50816 _ACEOF
50817 cat confdefs.h >>conftest.$ac_ext
50818 cat >>conftest.$ac_ext <<_ACEOF
50819 /* end confdefs.h.  */
50820
50821 /* Override any gcc2 internal prototype to avoid an error.  */
50822 #ifdef __cplusplus
50823 extern "C"
50824 #endif
50825 /* We use char because int might match the return type of a gcc2
50826    builtin and then its argument prototype would still apply.  */
50827 char strftime ();
50828 int
50829 main ()
50830 {
50831 strftime ();
50832   ;
50833   return 0;
50834 }
50835 _ACEOF
50836 rm -f conftest.$ac_objext conftest$ac_exeext
50837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50838   (eval $ac_link) 2>conftest.er1
50839   ac_status=$?
50840   grep -v '^ *+' conftest.er1 >conftest.err
50841   rm -f conftest.er1
50842   cat conftest.err >&5
50843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50844   (exit $ac_status); } &&
50845          { ac_try='test -z "$ac_c_werror_flag"
50846                          || test ! -s conftest.err'
50847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50848   (eval $ac_try) 2>&5
50849   ac_status=$?
50850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50851   (exit $ac_status); }; } &&
50852          { ac_try='test -s conftest$ac_exeext'
50853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50854   (eval $ac_try) 2>&5
50855   ac_status=$?
50856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50857   (exit $ac_status); }; }; then
50858   ac_cv_lib_intl_strftime=yes
50859 else
50860   echo "$as_me: failed program was:" >&5
50861 sed 's/^/| /' conftest.$ac_ext >&5
50862
50863 ac_cv_lib_intl_strftime=no
50864 fi
50865 rm -f conftest.err conftest.$ac_objext \
50866       conftest$ac_exeext conftest.$ac_ext
50867 LIBS=$ac_check_lib_save_LIBS
50868 fi
50869 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50870 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50871 if test $ac_cv_lib_intl_strftime = yes; then
50872   cat >>confdefs.h <<\_ACEOF
50873 #define HAVE_STRFTIME 1
50874 _ACEOF
50875
50876 LIBS="-lintl $LIBS"
50877 fi
50878
50879 fi
50880 done
50881
50882
50883 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50884 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50885 if test "${ol_cv_func_inet_aton+set}" = set; then
50886   echo $ECHO_N "(cached) $ECHO_C" >&6
50887 else
50888   cat >conftest.$ac_ext <<_ACEOF
50889 /* confdefs.h.  */
50890 _ACEOF
50891 cat confdefs.h >>conftest.$ac_ext
50892 cat >>conftest.$ac_ext <<_ACEOF
50893 /* end confdefs.h.  */
50894
50895 #ifdef HAVE_SYS_TYPES_H
50896 #       include <sys/types.h>
50897 #endif
50898 #ifdef HAVE_SYS_SOCKET_H
50899 #       include <sys/socket.h>
50900 #       ifdef HAVE_SYS_SELECT_H
50901 #               include <sys/select.h>
50902 #       endif
50903 #       include <netinet/in.h>
50904 #       ifdef HAVE_ARPA_INET_H
50905 #               include <arpa/inet.h>
50906 #       endif
50907 #endif
50908
50909 int
50910 main ()
50911 {
50912 struct in_addr in;
50913 int rc = inet_aton( "255.255.255.255", &in );
50914   ;
50915   return 0;
50916 }
50917 _ACEOF
50918 rm -f conftest.$ac_objext conftest$ac_exeext
50919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50920   (eval $ac_link) 2>conftest.er1
50921   ac_status=$?
50922   grep -v '^ *+' conftest.er1 >conftest.err
50923   rm -f conftest.er1
50924   cat conftest.err >&5
50925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50926   (exit $ac_status); } &&
50927          { ac_try='test -z "$ac_c_werror_flag"
50928                          || test ! -s conftest.err'
50929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50930   (eval $ac_try) 2>&5
50931   ac_status=$?
50932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50933   (exit $ac_status); }; } &&
50934          { ac_try='test -s conftest$ac_exeext'
50935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50936   (eval $ac_try) 2>&5
50937   ac_status=$?
50938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50939   (exit $ac_status); }; }; then
50940   ol_cv_func_inet_aton=yes
50941 else
50942   echo "$as_me: failed program was:" >&5
50943 sed 's/^/| /' conftest.$ac_ext >&5
50944
50945 ol_cv_func_inet_aton=no
50946 fi
50947 rm -f conftest.err conftest.$ac_objext \
50948       conftest$ac_exeext conftest.$ac_ext
50949 fi
50950 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50951 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50952   if test $ol_cv_func_inet_aton != no; then
50953
50954 cat >>confdefs.h <<\_ACEOF
50955 #define HAVE_INET_ATON 1
50956 _ACEOF
50957
50958   fi
50959
50960
50961 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50962 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50963 if test "${ac_cv_func__spawnlp+set}" = set; then
50964   echo $ECHO_N "(cached) $ECHO_C" >&6
50965 else
50966   cat >conftest.$ac_ext <<_ACEOF
50967 /* confdefs.h.  */
50968 _ACEOF
50969 cat confdefs.h >>conftest.$ac_ext
50970 cat >>conftest.$ac_ext <<_ACEOF
50971 /* end confdefs.h.  */
50972 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50974 #define _spawnlp innocuous__spawnlp
50975
50976 /* System header to define __stub macros and hopefully few prototypes,
50977     which can conflict with char _spawnlp (); below.
50978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50979     <limits.h> exists even on freestanding compilers.  */
50980
50981 #ifdef __STDC__
50982 # include <limits.h>
50983 #else
50984 # include <assert.h>
50985 #endif
50986
50987 #undef _spawnlp
50988
50989 /* Override any gcc2 internal prototype to avoid an error.  */
50990 #ifdef __cplusplus
50991 extern "C"
50992 {
50993 #endif
50994 /* We use char because int might match the return type of a gcc2
50995    builtin and then its argument prototype would still apply.  */
50996 char _spawnlp ();
50997 /* The GNU C library defines this for functions which it implements
50998     to always fail with ENOSYS.  Some functions are actually named
50999     something starting with __ and the normal name is an alias.  */
51000 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
51001 choke me
51002 #else
51003 char (*f) () = _spawnlp;
51004 #endif
51005 #ifdef __cplusplus
51006 }
51007 #endif
51008
51009 int
51010 main ()
51011 {
51012 return f != _spawnlp;
51013   ;
51014   return 0;
51015 }
51016 _ACEOF
51017 rm -f conftest.$ac_objext conftest$ac_exeext
51018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51019   (eval $ac_link) 2>conftest.er1
51020   ac_status=$?
51021   grep -v '^ *+' conftest.er1 >conftest.err
51022   rm -f conftest.er1
51023   cat conftest.err >&5
51024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51025   (exit $ac_status); } &&
51026          { ac_try='test -z "$ac_c_werror_flag"
51027                          || test ! -s conftest.err'
51028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51029   (eval $ac_try) 2>&5
51030   ac_status=$?
51031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51032   (exit $ac_status); }; } &&
51033          { ac_try='test -s conftest$ac_exeext'
51034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51035   (eval $ac_try) 2>&5
51036   ac_status=$?
51037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51038   (exit $ac_status); }; }; then
51039   ac_cv_func__spawnlp=yes
51040 else
51041   echo "$as_me: failed program was:" >&5
51042 sed 's/^/| /' conftest.$ac_ext >&5
51043
51044 ac_cv_func__spawnlp=no
51045 fi
51046 rm -f conftest.err conftest.$ac_objext \
51047       conftest$ac_exeext conftest.$ac_ext
51048 fi
51049 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
51050 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
51051 if test $ac_cv_func__spawnlp = yes; then
51052
51053 cat >>confdefs.h <<\_ACEOF
51054 #define HAVE_SPAWNLP 1
51055 _ACEOF
51056
51057 fi
51058
51059
51060 echo "$as_me:$LINENO: checking for _snprintf" >&5
51061 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
51062 if test "${ac_cv_func__snprintf+set}" = set; then
51063   echo $ECHO_N "(cached) $ECHO_C" >&6
51064 else
51065   cat >conftest.$ac_ext <<_ACEOF
51066 /* confdefs.h.  */
51067 _ACEOF
51068 cat confdefs.h >>conftest.$ac_ext
51069 cat >>conftest.$ac_ext <<_ACEOF
51070 /* end confdefs.h.  */
51071 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
51072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51073 #define _snprintf innocuous__snprintf
51074
51075 /* System header to define __stub macros and hopefully few prototypes,
51076     which can conflict with char _snprintf (); below.
51077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51078     <limits.h> exists even on freestanding compilers.  */
51079
51080 #ifdef __STDC__
51081 # include <limits.h>
51082 #else
51083 # include <assert.h>
51084 #endif
51085
51086 #undef _snprintf
51087
51088 /* Override any gcc2 internal prototype to avoid an error.  */
51089 #ifdef __cplusplus
51090 extern "C"
51091 {
51092 #endif
51093 /* We use char because int might match the return type of a gcc2
51094    builtin and then its argument prototype would still apply.  */
51095 char _snprintf ();
51096 /* The GNU C library defines this for functions which it implements
51097     to always fail with ENOSYS.  Some functions are actually named
51098     something starting with __ and the normal name is an alias.  */
51099 #if defined (__stub__snprintf) || defined (__stub____snprintf)
51100 choke me
51101 #else
51102 char (*f) () = _snprintf;
51103 #endif
51104 #ifdef __cplusplus
51105 }
51106 #endif
51107
51108 int
51109 main ()
51110 {
51111 return f != _snprintf;
51112   ;
51113   return 0;
51114 }
51115 _ACEOF
51116 rm -f conftest.$ac_objext conftest$ac_exeext
51117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51118   (eval $ac_link) 2>conftest.er1
51119   ac_status=$?
51120   grep -v '^ *+' conftest.er1 >conftest.err
51121   rm -f conftest.er1
51122   cat conftest.err >&5
51123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51124   (exit $ac_status); } &&
51125          { ac_try='test -z "$ac_c_werror_flag"
51126                          || test ! -s conftest.err'
51127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51128   (eval $ac_try) 2>&5
51129   ac_status=$?
51130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51131   (exit $ac_status); }; } &&
51132          { ac_try='test -s conftest$ac_exeext'
51133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51134   (eval $ac_try) 2>&5
51135   ac_status=$?
51136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51137   (exit $ac_status); }; }; then
51138   ac_cv_func__snprintf=yes
51139 else
51140   echo "$as_me: failed program was:" >&5
51141 sed 's/^/| /' conftest.$ac_ext >&5
51142
51143 ac_cv_func__snprintf=no
51144 fi
51145 rm -f conftest.err conftest.$ac_objext \
51146       conftest$ac_exeext conftest.$ac_ext
51147 fi
51148 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51149 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51150 if test $ac_cv_func__snprintf = yes; then
51151   ac_cv_func_snprintf=yes
51152
51153 cat >>confdefs.h <<\_ACEOF
51154 #define snprintf _snprintf
51155 _ACEOF
51156
51157
51158 fi
51159
51160
51161 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51162 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51163 if test "${ac_cv_func__vsnprintf+set}" = set; then
51164   echo $ECHO_N "(cached) $ECHO_C" >&6
51165 else
51166   cat >conftest.$ac_ext <<_ACEOF
51167 /* confdefs.h.  */
51168 _ACEOF
51169 cat confdefs.h >>conftest.$ac_ext
51170 cat >>conftest.$ac_ext <<_ACEOF
51171 /* end confdefs.h.  */
51172 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51174 #define _vsnprintf innocuous__vsnprintf
51175
51176 /* System header to define __stub macros and hopefully few prototypes,
51177     which can conflict with char _vsnprintf (); below.
51178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51179     <limits.h> exists even on freestanding compilers.  */
51180
51181 #ifdef __STDC__
51182 # include <limits.h>
51183 #else
51184 # include <assert.h>
51185 #endif
51186
51187 #undef _vsnprintf
51188
51189 /* Override any gcc2 internal prototype to avoid an error.  */
51190 #ifdef __cplusplus
51191 extern "C"
51192 {
51193 #endif
51194 /* We use char because int might match the return type of a gcc2
51195    builtin and then its argument prototype would still apply.  */
51196 char _vsnprintf ();
51197 /* The GNU C library defines this for functions which it implements
51198     to always fail with ENOSYS.  Some functions are actually named
51199     something starting with __ and the normal name is an alias.  */
51200 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51201 choke me
51202 #else
51203 char (*f) () = _vsnprintf;
51204 #endif
51205 #ifdef __cplusplus
51206 }
51207 #endif
51208
51209 int
51210 main ()
51211 {
51212 return f != _vsnprintf;
51213   ;
51214   return 0;
51215 }
51216 _ACEOF
51217 rm -f conftest.$ac_objext conftest$ac_exeext
51218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51219   (eval $ac_link) 2>conftest.er1
51220   ac_status=$?
51221   grep -v '^ *+' conftest.er1 >conftest.err
51222   rm -f conftest.er1
51223   cat conftest.err >&5
51224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51225   (exit $ac_status); } &&
51226          { ac_try='test -z "$ac_c_werror_flag"
51227                          || test ! -s conftest.err'
51228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51229   (eval $ac_try) 2>&5
51230   ac_status=$?
51231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51232   (exit $ac_status); }; } &&
51233          { ac_try='test -s conftest$ac_exeext'
51234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51235   (eval $ac_try) 2>&5
51236   ac_status=$?
51237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51238   (exit $ac_status); }; }; then
51239   ac_cv_func__vsnprintf=yes
51240 else
51241   echo "$as_me: failed program was:" >&5
51242 sed 's/^/| /' conftest.$ac_ext >&5
51243
51244 ac_cv_func__vsnprintf=no
51245 fi
51246 rm -f conftest.err conftest.$ac_objext \
51247       conftest$ac_exeext conftest.$ac_ext
51248 fi
51249 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51250 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51251 if test $ac_cv_func__vsnprintf = yes; then
51252   ac_cv_func_vsnprintf=yes
51253
51254 cat >>confdefs.h <<\_ACEOF
51255 #define vsnprintf _vsnprintf
51256 _ACEOF
51257
51258
51259 fi
51260
51261
51262
51263 for ac_func in vprintf
51264 do
51265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51266 echo "$as_me:$LINENO: checking for $ac_func" >&5
51267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51268 if eval "test \"\${$as_ac_var+set}\" = set"; then
51269   echo $ECHO_N "(cached) $ECHO_C" >&6
51270 else
51271   cat >conftest.$ac_ext <<_ACEOF
51272 /* confdefs.h.  */
51273 _ACEOF
51274 cat confdefs.h >>conftest.$ac_ext
51275 cat >>conftest.$ac_ext <<_ACEOF
51276 /* end confdefs.h.  */
51277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51279 #define $ac_func innocuous_$ac_func
51280
51281 /* System header to define __stub macros and hopefully few prototypes,
51282     which can conflict with char $ac_func (); below.
51283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51284     <limits.h> exists even on freestanding compilers.  */
51285
51286 #ifdef __STDC__
51287 # include <limits.h>
51288 #else
51289 # include <assert.h>
51290 #endif
51291
51292 #undef $ac_func
51293
51294 /* Override any gcc2 internal prototype to avoid an error.  */
51295 #ifdef __cplusplus
51296 extern "C"
51297 {
51298 #endif
51299 /* We use char because int might match the return type of a gcc2
51300    builtin and then its argument prototype would still apply.  */
51301 char $ac_func ();
51302 /* The GNU C library defines this for functions which it implements
51303     to always fail with ENOSYS.  Some functions are actually named
51304     something starting with __ and the normal name is an alias.  */
51305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51306 choke me
51307 #else
51308 char (*f) () = $ac_func;
51309 #endif
51310 #ifdef __cplusplus
51311 }
51312 #endif
51313
51314 int
51315 main ()
51316 {
51317 return f != $ac_func;
51318   ;
51319   return 0;
51320 }
51321 _ACEOF
51322 rm -f conftest.$ac_objext conftest$ac_exeext
51323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51324   (eval $ac_link) 2>conftest.er1
51325   ac_status=$?
51326   grep -v '^ *+' conftest.er1 >conftest.err
51327   rm -f conftest.er1
51328   cat conftest.err >&5
51329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51330   (exit $ac_status); } &&
51331          { ac_try='test -z "$ac_c_werror_flag"
51332                          || test ! -s conftest.err'
51333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51334   (eval $ac_try) 2>&5
51335   ac_status=$?
51336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51337   (exit $ac_status); }; } &&
51338          { ac_try='test -s conftest$ac_exeext'
51339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51340   (eval $ac_try) 2>&5
51341   ac_status=$?
51342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51343   (exit $ac_status); }; }; then
51344   eval "$as_ac_var=yes"
51345 else
51346   echo "$as_me: failed program was:" >&5
51347 sed 's/^/| /' conftest.$ac_ext >&5
51348
51349 eval "$as_ac_var=no"
51350 fi
51351 rm -f conftest.err conftest.$ac_objext \
51352       conftest$ac_exeext conftest.$ac_ext
51353 fi
51354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51356 if test `eval echo '${'$as_ac_var'}'` = yes; then
51357   cat >>confdefs.h <<_ACEOF
51358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51359 _ACEOF
51360
51361 echo "$as_me:$LINENO: checking for _doprnt" >&5
51362 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51363 if test "${ac_cv_func__doprnt+set}" = set; then
51364   echo $ECHO_N "(cached) $ECHO_C" >&6
51365 else
51366   cat >conftest.$ac_ext <<_ACEOF
51367 /* confdefs.h.  */
51368 _ACEOF
51369 cat confdefs.h >>conftest.$ac_ext
51370 cat >>conftest.$ac_ext <<_ACEOF
51371 /* end confdefs.h.  */
51372 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51374 #define _doprnt innocuous__doprnt
51375
51376 /* System header to define __stub macros and hopefully few prototypes,
51377     which can conflict with char _doprnt (); below.
51378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51379     <limits.h> exists even on freestanding compilers.  */
51380
51381 #ifdef __STDC__
51382 # include <limits.h>
51383 #else
51384 # include <assert.h>
51385 #endif
51386
51387 #undef _doprnt
51388
51389 /* Override any gcc2 internal prototype to avoid an error.  */
51390 #ifdef __cplusplus
51391 extern "C"
51392 {
51393 #endif
51394 /* We use char because int might match the return type of a gcc2
51395    builtin and then its argument prototype would still apply.  */
51396 char _doprnt ();
51397 /* The GNU C library defines this for functions which it implements
51398     to always fail with ENOSYS.  Some functions are actually named
51399     something starting with __ and the normal name is an alias.  */
51400 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51401 choke me
51402 #else
51403 char (*f) () = _doprnt;
51404 #endif
51405 #ifdef __cplusplus
51406 }
51407 #endif
51408
51409 int
51410 main ()
51411 {
51412 return f != _doprnt;
51413   ;
51414   return 0;
51415 }
51416 _ACEOF
51417 rm -f conftest.$ac_objext conftest$ac_exeext
51418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51419   (eval $ac_link) 2>conftest.er1
51420   ac_status=$?
51421   grep -v '^ *+' conftest.er1 >conftest.err
51422   rm -f conftest.er1
51423   cat conftest.err >&5
51424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51425   (exit $ac_status); } &&
51426          { ac_try='test -z "$ac_c_werror_flag"
51427                          || test ! -s conftest.err'
51428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51429   (eval $ac_try) 2>&5
51430   ac_status=$?
51431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51432   (exit $ac_status); }; } &&
51433          { ac_try='test -s conftest$ac_exeext'
51434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51435   (eval $ac_try) 2>&5
51436   ac_status=$?
51437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51438   (exit $ac_status); }; }; then
51439   ac_cv_func__doprnt=yes
51440 else
51441   echo "$as_me: failed program was:" >&5
51442 sed 's/^/| /' conftest.$ac_ext >&5
51443
51444 ac_cv_func__doprnt=no
51445 fi
51446 rm -f conftest.err conftest.$ac_objext \
51447       conftest$ac_exeext conftest.$ac_ext
51448 fi
51449 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51450 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51451 if test $ac_cv_func__doprnt = yes; then
51452
51453 cat >>confdefs.h <<\_ACEOF
51454 #define HAVE_DOPRNT 1
51455 _ACEOF
51456
51457 fi
51458
51459 fi
51460 done
51461
51462
51463
51464 if test $ac_cv_func_vprintf = yes ; then
51465
51466
51467 for ac_func in snprintf vsnprintf
51468 do
51469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51470 echo "$as_me:$LINENO: checking for $ac_func" >&5
51471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51472 if eval "test \"\${$as_ac_var+set}\" = set"; then
51473   echo $ECHO_N "(cached) $ECHO_C" >&6
51474 else
51475   cat >conftest.$ac_ext <<_ACEOF
51476 /* confdefs.h.  */
51477 _ACEOF
51478 cat confdefs.h >>conftest.$ac_ext
51479 cat >>conftest.$ac_ext <<_ACEOF
51480 /* end confdefs.h.  */
51481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51483 #define $ac_func innocuous_$ac_func
51484
51485 /* System header to define __stub macros and hopefully few prototypes,
51486     which can conflict with char $ac_func (); below.
51487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51488     <limits.h> exists even on freestanding compilers.  */
51489
51490 #ifdef __STDC__
51491 # include <limits.h>
51492 #else
51493 # include <assert.h>
51494 #endif
51495
51496 #undef $ac_func
51497
51498 /* Override any gcc2 internal prototype to avoid an error.  */
51499 #ifdef __cplusplus
51500 extern "C"
51501 {
51502 #endif
51503 /* We use char because int might match the return type of a gcc2
51504    builtin and then its argument prototype would still apply.  */
51505 char $ac_func ();
51506 /* The GNU C library defines this for functions which it implements
51507     to always fail with ENOSYS.  Some functions are actually named
51508     something starting with __ and the normal name is an alias.  */
51509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51510 choke me
51511 #else
51512 char (*f) () = $ac_func;
51513 #endif
51514 #ifdef __cplusplus
51515 }
51516 #endif
51517
51518 int
51519 main ()
51520 {
51521 return f != $ac_func;
51522   ;
51523   return 0;
51524 }
51525 _ACEOF
51526 rm -f conftest.$ac_objext conftest$ac_exeext
51527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51528   (eval $ac_link) 2>conftest.er1
51529   ac_status=$?
51530   grep -v '^ *+' conftest.er1 >conftest.err
51531   rm -f conftest.er1
51532   cat conftest.err >&5
51533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51534   (exit $ac_status); } &&
51535          { ac_try='test -z "$ac_c_werror_flag"
51536                          || test ! -s conftest.err'
51537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51538   (eval $ac_try) 2>&5
51539   ac_status=$?
51540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51541   (exit $ac_status); }; } &&
51542          { ac_try='test -s conftest$ac_exeext'
51543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51544   (eval $ac_try) 2>&5
51545   ac_status=$?
51546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51547   (exit $ac_status); }; }; then
51548   eval "$as_ac_var=yes"
51549 else
51550   echo "$as_me: failed program was:" >&5
51551 sed 's/^/| /' conftest.$ac_ext >&5
51552
51553 eval "$as_ac_var=no"
51554 fi
51555 rm -f conftest.err conftest.$ac_objext \
51556       conftest$ac_exeext conftest.$ac_ext
51557 fi
51558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51560 if test `eval echo '${'$as_ac_var'}'` = yes; then
51561   cat >>confdefs.h <<_ACEOF
51562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51563 _ACEOF
51564
51565 fi
51566 done
51567
51568 fi
51569
51570
51571
51572
51573
51574
51575
51576
51577
51578
51579
51580
51581
51582
51583
51584
51585
51586
51587
51588
51589
51590
51591
51592
51593
51594
51595
51596
51597
51598
51599
51600
51601
51602
51603
51604
51605
51606
51607
51608
51609
51610
51611
51612
51613
51614
51615
51616
51617
51618
51619
51620
51621
51622
51623 for ac_func in \
51624         bcopy                   \
51625         closesocket             \
51626         chroot                  \
51627         endgrent                \
51628         endpwent                \
51629         fcntl                   \
51630         flock                   \
51631         fstat                   \
51632         getdtablesize   \
51633         getgrgid                \
51634         gethostname             \
51635         getpass                 \
51636         getpassphrase   \
51637         getpwuid                \
51638         getpwnam                \
51639         getspnam                \
51640         gettimeofday    \
51641         initgroups              \
51642         lockf                   \
51643         memcpy                  \
51644         memmove                 \
51645         mkstemp                 \
51646         mktemp                  \
51647         pipe                    \
51648         read                    \
51649         recv                    \
51650         recvfrom                \
51651         setpwfile               \
51652         setgid                  \
51653         setegid                 \
51654         setsid                  \
51655         setuid                  \
51656         seteuid                 \
51657         signal                  \
51658         strdup                  \
51659         strpbrk                 \
51660         strrchr                 \
51661         strsep                  \
51662         strstr                  \
51663         strtol                  \
51664         strtoul                 \
51665         strtoq                  \
51666         strtouq                 \
51667         strtoll                 \
51668         strspn                  \
51669         sysconf                 \
51670         usleep                  \
51671         waitpid                 \
51672         wait4                   \
51673         write                   \
51674         send                    \
51675         sendmsg                 \
51676         sendto                  \
51677
51678 do
51679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51680 echo "$as_me:$LINENO: checking for $ac_func" >&5
51681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51682 if eval "test \"\${$as_ac_var+set}\" = set"; then
51683   echo $ECHO_N "(cached) $ECHO_C" >&6
51684 else
51685   cat >conftest.$ac_ext <<_ACEOF
51686 /* confdefs.h.  */
51687 _ACEOF
51688 cat confdefs.h >>conftest.$ac_ext
51689 cat >>conftest.$ac_ext <<_ACEOF
51690 /* end confdefs.h.  */
51691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51693 #define $ac_func innocuous_$ac_func
51694
51695 /* System header to define __stub macros and hopefully few prototypes,
51696     which can conflict with char $ac_func (); below.
51697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51698     <limits.h> exists even on freestanding compilers.  */
51699
51700 #ifdef __STDC__
51701 # include <limits.h>
51702 #else
51703 # include <assert.h>
51704 #endif
51705
51706 #undef $ac_func
51707
51708 /* Override any gcc2 internal prototype to avoid an error.  */
51709 #ifdef __cplusplus
51710 extern "C"
51711 {
51712 #endif
51713 /* We use char because int might match the return type of a gcc2
51714    builtin and then its argument prototype would still apply.  */
51715 char $ac_func ();
51716 /* The GNU C library defines this for functions which it implements
51717     to always fail with ENOSYS.  Some functions are actually named
51718     something starting with __ and the normal name is an alias.  */
51719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51720 choke me
51721 #else
51722 char (*f) () = $ac_func;
51723 #endif
51724 #ifdef __cplusplus
51725 }
51726 #endif
51727
51728 int
51729 main ()
51730 {
51731 return f != $ac_func;
51732   ;
51733   return 0;
51734 }
51735 _ACEOF
51736 rm -f conftest.$ac_objext conftest$ac_exeext
51737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51738   (eval $ac_link) 2>conftest.er1
51739   ac_status=$?
51740   grep -v '^ *+' conftest.er1 >conftest.err
51741   rm -f conftest.er1
51742   cat conftest.err >&5
51743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51744   (exit $ac_status); } &&
51745          { ac_try='test -z "$ac_c_werror_flag"
51746                          || test ! -s conftest.err'
51747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51748   (eval $ac_try) 2>&5
51749   ac_status=$?
51750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51751   (exit $ac_status); }; } &&
51752          { ac_try='test -s conftest$ac_exeext'
51753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51754   (eval $ac_try) 2>&5
51755   ac_status=$?
51756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51757   (exit $ac_status); }; }; then
51758   eval "$as_ac_var=yes"
51759 else
51760   echo "$as_me: failed program was:" >&5
51761 sed 's/^/| /' conftest.$ac_ext >&5
51762
51763 eval "$as_ac_var=no"
51764 fi
51765 rm -f conftest.err conftest.$ac_objext \
51766       conftest$ac_exeext conftest.$ac_ext
51767 fi
51768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51770 if test `eval echo '${'$as_ac_var'}'` = yes; then
51771   cat >>confdefs.h <<_ACEOF
51772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51773 _ACEOF
51774
51775 fi
51776 done
51777
51778
51779
51780
51781 for ac_func in getopt getpeereid
51782 do
51783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51784 echo "$as_me:$LINENO: checking for $ac_func" >&5
51785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51786 if eval "test \"\${$as_ac_var+set}\" = set"; then
51787   echo $ECHO_N "(cached) $ECHO_C" >&6
51788 else
51789   cat >conftest.$ac_ext <<_ACEOF
51790 /* confdefs.h.  */
51791 _ACEOF
51792 cat confdefs.h >>conftest.$ac_ext
51793 cat >>conftest.$ac_ext <<_ACEOF
51794 /* end confdefs.h.  */
51795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51797 #define $ac_func innocuous_$ac_func
51798
51799 /* System header to define __stub macros and hopefully few prototypes,
51800     which can conflict with char $ac_func (); below.
51801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51802     <limits.h> exists even on freestanding compilers.  */
51803
51804 #ifdef __STDC__
51805 # include <limits.h>
51806 #else
51807 # include <assert.h>
51808 #endif
51809
51810 #undef $ac_func
51811
51812 /* Override any gcc2 internal prototype to avoid an error.  */
51813 #ifdef __cplusplus
51814 extern "C"
51815 {
51816 #endif
51817 /* We use char because int might match the return type of a gcc2
51818    builtin and then its argument prototype would still apply.  */
51819 char $ac_func ();
51820 /* The GNU C library defines this for functions which it implements
51821     to always fail with ENOSYS.  Some functions are actually named
51822     something starting with __ and the normal name is an alias.  */
51823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51824 choke me
51825 #else
51826 char (*f) () = $ac_func;
51827 #endif
51828 #ifdef __cplusplus
51829 }
51830 #endif
51831
51832 int
51833 main ()
51834 {
51835 return f != $ac_func;
51836   ;
51837   return 0;
51838 }
51839 _ACEOF
51840 rm -f conftest.$ac_objext conftest$ac_exeext
51841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51842   (eval $ac_link) 2>conftest.er1
51843   ac_status=$?
51844   grep -v '^ *+' conftest.er1 >conftest.err
51845   rm -f conftest.er1
51846   cat conftest.err >&5
51847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51848   (exit $ac_status); } &&
51849          { ac_try='test -z "$ac_c_werror_flag"
51850                          || test ! -s conftest.err'
51851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51852   (eval $ac_try) 2>&5
51853   ac_status=$?
51854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51855   (exit $ac_status); }; } &&
51856          { ac_try='test -s conftest$ac_exeext'
51857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51858   (eval $ac_try) 2>&5
51859   ac_status=$?
51860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51861   (exit $ac_status); }; }; then
51862   eval "$as_ac_var=yes"
51863 else
51864   echo "$as_me: failed program was:" >&5
51865 sed 's/^/| /' conftest.$ac_ext >&5
51866
51867 eval "$as_ac_var=no"
51868 fi
51869 rm -f conftest.err conftest.$ac_objext \
51870       conftest$ac_exeext conftest.$ac_ext
51871 fi
51872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51874 if test `eval echo '${'$as_ac_var'}'` = yes; then
51875   cat >>confdefs.h <<_ACEOF
51876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51877 _ACEOF
51878
51879 else
51880   case $LIBOBJS in
51881     "$ac_func.$ac_objext"   | \
51882   *" $ac_func.$ac_objext"   | \
51883     "$ac_func.$ac_objext "* | \
51884   *" $ac_func.$ac_objext "* ) ;;
51885   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51886 esac
51887
51888 fi
51889 done
51890
51891
51892
51893 if test "$ac_cv_func_getopt" != yes; then
51894         LIBSRCS="$LIBSRCS getopt.c"
51895 fi
51896 if test "$ac_cv_func_getpeereid" != yes; then
51897         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51898 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51899 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51900   echo $ECHO_N "(cached) $ECHO_C" >&6
51901 else
51902   cat >conftest.$ac_ext <<_ACEOF
51903 /* confdefs.h.  */
51904 _ACEOF
51905 cat confdefs.h >>conftest.$ac_ext
51906 cat >>conftest.$ac_ext <<_ACEOF
51907 /* end confdefs.h.  */
51908 $ac_includes_default
51909 #ifdef HAVE_SYS_SOCKET_H
51910 #include <sys/socket.h>
51911 #endif
51912
51913 int
51914 main ()
51915 {
51916 static struct msghdr ac_aggr;
51917 if (ac_aggr.msg_accrightslen)
51918 return 0;
51919   ;
51920   return 0;
51921 }
51922 _ACEOF
51923 rm -f conftest.$ac_objext
51924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51925   (eval $ac_compile) 2>conftest.er1
51926   ac_status=$?
51927   grep -v '^ *+' conftest.er1 >conftest.err
51928   rm -f conftest.er1
51929   cat conftest.err >&5
51930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51931   (exit $ac_status); } &&
51932          { ac_try='test -z "$ac_c_werror_flag"
51933                          || test ! -s conftest.err'
51934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51935   (eval $ac_try) 2>&5
51936   ac_status=$?
51937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51938   (exit $ac_status); }; } &&
51939          { ac_try='test -s conftest.$ac_objext'
51940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51941   (eval $ac_try) 2>&5
51942   ac_status=$?
51943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51944   (exit $ac_status); }; }; then
51945   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51946 else
51947   echo "$as_me: failed program was:" >&5
51948 sed 's/^/| /' conftest.$ac_ext >&5
51949
51950 cat >conftest.$ac_ext <<_ACEOF
51951 /* confdefs.h.  */
51952 _ACEOF
51953 cat confdefs.h >>conftest.$ac_ext
51954 cat >>conftest.$ac_ext <<_ACEOF
51955 /* end confdefs.h.  */
51956 $ac_includes_default
51957 #ifdef HAVE_SYS_SOCKET_H
51958 #include <sys/socket.h>
51959 #endif
51960
51961 int
51962 main ()
51963 {
51964 static struct msghdr ac_aggr;
51965 if (sizeof ac_aggr.msg_accrightslen)
51966 return 0;
51967   ;
51968   return 0;
51969 }
51970 _ACEOF
51971 rm -f conftest.$ac_objext
51972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51973   (eval $ac_compile) 2>conftest.er1
51974   ac_status=$?
51975   grep -v '^ *+' conftest.er1 >conftest.err
51976   rm -f conftest.er1
51977   cat conftest.err >&5
51978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51979   (exit $ac_status); } &&
51980          { ac_try='test -z "$ac_c_werror_flag"
51981                          || test ! -s conftest.err'
51982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51983   (eval $ac_try) 2>&5
51984   ac_status=$?
51985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51986   (exit $ac_status); }; } &&
51987          { ac_try='test -s conftest.$ac_objext'
51988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51989   (eval $ac_try) 2>&5
51990   ac_status=$?
51991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51992   (exit $ac_status); }; }; then
51993   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51994 else
51995   echo "$as_me: failed program was:" >&5
51996 sed 's/^/| /' conftest.$ac_ext >&5
51997
51998 ac_cv_member_struct_msghdr_msg_accrightslen=no
51999 fi
52000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52001 fi
52002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52003 fi
52004 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
52005 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
52006 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
52007
52008 cat >>confdefs.h <<_ACEOF
52009 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
52010 _ACEOF
52011
52012
52013 fi
52014
52015         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
52016                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
52017 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
52018 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
52019   echo $ECHO_N "(cached) $ECHO_C" >&6
52020 else
52021   cat >conftest.$ac_ext <<_ACEOF
52022 /* confdefs.h.  */
52023 _ACEOF
52024 cat confdefs.h >>conftest.$ac_ext
52025 cat >>conftest.$ac_ext <<_ACEOF
52026 /* end confdefs.h.  */
52027 $ac_includes_default
52028 #ifdef HAVE_SYS_SOCKET_H
52029 #include <sys/socket.h>
52030 #endif
52031
52032 int
52033 main ()
52034 {
52035 static struct msghdr ac_aggr;
52036 if (ac_aggr.msg_control)
52037 return 0;
52038   ;
52039   return 0;
52040 }
52041 _ACEOF
52042 rm -f conftest.$ac_objext
52043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52044   (eval $ac_compile) 2>conftest.er1
52045   ac_status=$?
52046   grep -v '^ *+' conftest.er1 >conftest.err
52047   rm -f conftest.er1
52048   cat conftest.err >&5
52049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52050   (exit $ac_status); } &&
52051          { ac_try='test -z "$ac_c_werror_flag"
52052                          || test ! -s conftest.err'
52053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52054   (eval $ac_try) 2>&5
52055   ac_status=$?
52056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52057   (exit $ac_status); }; } &&
52058          { ac_try='test -s conftest.$ac_objext'
52059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52060   (eval $ac_try) 2>&5
52061   ac_status=$?
52062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52063   (exit $ac_status); }; }; then
52064   ac_cv_member_struct_msghdr_msg_control=yes
52065 else
52066   echo "$as_me: failed program was:" >&5
52067 sed 's/^/| /' conftest.$ac_ext >&5
52068
52069 cat >conftest.$ac_ext <<_ACEOF
52070 /* confdefs.h.  */
52071 _ACEOF
52072 cat confdefs.h >>conftest.$ac_ext
52073 cat >>conftest.$ac_ext <<_ACEOF
52074 /* end confdefs.h.  */
52075 $ac_includes_default
52076 #ifdef HAVE_SYS_SOCKET_H
52077 #include <sys/socket.h>
52078 #endif
52079
52080 int
52081 main ()
52082 {
52083 static struct msghdr ac_aggr;
52084 if (sizeof ac_aggr.msg_control)
52085 return 0;
52086   ;
52087   return 0;
52088 }
52089 _ACEOF
52090 rm -f conftest.$ac_objext
52091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52092   (eval $ac_compile) 2>conftest.er1
52093   ac_status=$?
52094   grep -v '^ *+' conftest.er1 >conftest.err
52095   rm -f conftest.er1
52096   cat conftest.err >&5
52097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52098   (exit $ac_status); } &&
52099          { ac_try='test -z "$ac_c_werror_flag"
52100                          || test ! -s conftest.err'
52101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52102   (eval $ac_try) 2>&5
52103   ac_status=$?
52104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52105   (exit $ac_status); }; } &&
52106          { ac_try='test -s conftest.$ac_objext'
52107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52108   (eval $ac_try) 2>&5
52109   ac_status=$?
52110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52111   (exit $ac_status); }; }; then
52112   ac_cv_member_struct_msghdr_msg_control=yes
52113 else
52114   echo "$as_me: failed program was:" >&5
52115 sed 's/^/| /' conftest.$ac_ext >&5
52116
52117 ac_cv_member_struct_msghdr_msg_control=no
52118 fi
52119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52120 fi
52121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52122 fi
52123 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
52124 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
52125 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
52126
52127 cat >>confdefs.h <<_ACEOF
52128 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52129 _ACEOF
52130
52131
52132 fi
52133
52134         fi
52135         LIBSRCS="$LIBSRCS getpeereid.c"
52136 fi
52137 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52138         if test "$ac_cv_func_snprintf" != yes; then
52139
52140 cat >>confdefs.h <<\_ACEOF
52141 #define snprintf ber_pvt_snprintf
52142 _ACEOF
52143
52144         fi
52145         if test "$ac_cv_func_vsnprintf" != yes; then
52146
52147 cat >>confdefs.h <<\_ACEOF
52148 #define vsnprintf ber_pvt_vsnprintf
52149 _ACEOF
52150
52151         fi
52152 fi
52153
52154
52155 if test "$ol_enable_slapi" != no ; then
52156
52157 for ac_header in ltdl.h
52158 do
52159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52161   echo "$as_me:$LINENO: checking for $ac_header" >&5
52162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52164   echo $ECHO_N "(cached) $ECHO_C" >&6
52165 fi
52166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52168 else
52169   # Is the header compilable?
52170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52172 cat >conftest.$ac_ext <<_ACEOF
52173 /* confdefs.h.  */
52174 _ACEOF
52175 cat confdefs.h >>conftest.$ac_ext
52176 cat >>conftest.$ac_ext <<_ACEOF
52177 /* end confdefs.h.  */
52178 $ac_includes_default
52179 #include <$ac_header>
52180 _ACEOF
52181 rm -f conftest.$ac_objext
52182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52183   (eval $ac_compile) 2>conftest.er1
52184   ac_status=$?
52185   grep -v '^ *+' conftest.er1 >conftest.err
52186   rm -f conftest.er1
52187   cat conftest.err >&5
52188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52189   (exit $ac_status); } &&
52190          { ac_try='test -z "$ac_c_werror_flag"
52191                          || test ! -s conftest.err'
52192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52193   (eval $ac_try) 2>&5
52194   ac_status=$?
52195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52196   (exit $ac_status); }; } &&
52197          { ac_try='test -s conftest.$ac_objext'
52198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52199   (eval $ac_try) 2>&5
52200   ac_status=$?
52201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52202   (exit $ac_status); }; }; then
52203   ac_header_compiler=yes
52204 else
52205   echo "$as_me: failed program was:" >&5
52206 sed 's/^/| /' conftest.$ac_ext >&5
52207
52208 ac_header_compiler=no
52209 fi
52210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52212 echo "${ECHO_T}$ac_header_compiler" >&6
52213
52214 # Is the header present?
52215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52217 cat >conftest.$ac_ext <<_ACEOF
52218 /* confdefs.h.  */
52219 _ACEOF
52220 cat confdefs.h >>conftest.$ac_ext
52221 cat >>conftest.$ac_ext <<_ACEOF
52222 /* end confdefs.h.  */
52223 #include <$ac_header>
52224 _ACEOF
52225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52227   ac_status=$?
52228   grep -v '^ *+' conftest.er1 >conftest.err
52229   rm -f conftest.er1
52230   cat conftest.err >&5
52231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52232   (exit $ac_status); } >/dev/null; then
52233   if test -s conftest.err; then
52234     ac_cpp_err=$ac_c_preproc_warn_flag
52235     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52236   else
52237     ac_cpp_err=
52238   fi
52239 else
52240   ac_cpp_err=yes
52241 fi
52242 if test -z "$ac_cpp_err"; then
52243   ac_header_preproc=yes
52244 else
52245   echo "$as_me: failed program was:" >&5
52246 sed 's/^/| /' conftest.$ac_ext >&5
52247
52248   ac_header_preproc=no
52249 fi
52250 rm -f conftest.err conftest.$ac_ext
52251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52252 echo "${ECHO_T}$ac_header_preproc" >&6
52253
52254 # So?  What about this header?
52255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52256   yes:no: )
52257     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52261     ac_header_preproc=yes
52262     ;;
52263   no:yes:* )
52264     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52266     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52267 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52268     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52270     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52271 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52274     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52276     (
52277       cat <<\_ASBOX
52278 ## ------------------------------------------ ##
52279 ## Report this to the AC_PACKAGE_NAME lists.  ##
52280 ## ------------------------------------------ ##
52281 _ASBOX
52282     ) |
52283       sed "s/^/$as_me: WARNING:     /" >&2
52284     ;;
52285 esac
52286 echo "$as_me:$LINENO: checking for $ac_header" >&5
52287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52289   echo $ECHO_N "(cached) $ECHO_C" >&6
52290 else
52291   eval "$as_ac_Header=\$ac_header_preproc"
52292 fi
52293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52295
52296 fi
52297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52298   cat >>confdefs.h <<_ACEOF
52299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52300 _ACEOF
52301
52302 fi
52303
52304 done
52305
52306
52307         if test $ac_cv_header_ltdl_h != yes ; then
52308                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52309 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52310    { (exit 1); exit 1; }; }
52311         fi
52312         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52313 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52314 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52315   echo $ECHO_N "(cached) $ECHO_C" >&6
52316 else
52317   ac_check_lib_save_LIBS=$LIBS
52318 LIBS="-lltdl  $LIBS"
52319 cat >conftest.$ac_ext <<_ACEOF
52320 /* confdefs.h.  */
52321 _ACEOF
52322 cat confdefs.h >>conftest.$ac_ext
52323 cat >>conftest.$ac_ext <<_ACEOF
52324 /* end confdefs.h.  */
52325
52326 /* Override any gcc2 internal prototype to avoid an error.  */
52327 #ifdef __cplusplus
52328 extern "C"
52329 #endif
52330 /* We use char because int might match the return type of a gcc2
52331    builtin and then its argument prototype would still apply.  */
52332 char lt_dlinit ();
52333 int
52334 main ()
52335 {
52336 lt_dlinit ();
52337   ;
52338   return 0;
52339 }
52340 _ACEOF
52341 rm -f conftest.$ac_objext conftest$ac_exeext
52342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52343   (eval $ac_link) 2>conftest.er1
52344   ac_status=$?
52345   grep -v '^ *+' conftest.er1 >conftest.err
52346   rm -f conftest.er1
52347   cat conftest.err >&5
52348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52349   (exit $ac_status); } &&
52350          { ac_try='test -z "$ac_c_werror_flag"
52351                          || test ! -s conftest.err'
52352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52353   (eval $ac_try) 2>&5
52354   ac_status=$?
52355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52356   (exit $ac_status); }; } &&
52357          { ac_try='test -s conftest$ac_exeext'
52358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52359   (eval $ac_try) 2>&5
52360   ac_status=$?
52361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52362   (exit $ac_status); }; }; then
52363   ac_cv_lib_ltdl_lt_dlinit=yes
52364 else
52365   echo "$as_me: failed program was:" >&5
52366 sed 's/^/| /' conftest.$ac_ext >&5
52367
52368 ac_cv_lib_ltdl_lt_dlinit=no
52369 fi
52370 rm -f conftest.err conftest.$ac_objext \
52371       conftest$ac_exeext conftest.$ac_ext
52372 LIBS=$ac_check_lib_save_LIBS
52373 fi
52374 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52375 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52376 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52377
52378                 SLAPI_LIBS=-lltdl
52379                 LIBSLAPI=libslapi.a
52380                 LIBSLAPITOOLS=../libslapi.a
52381
52382 cat >>confdefs.h <<\_ACEOF
52383 #define HAVE_LIBLTDL 1
52384 _ACEOF
52385
52386
52387 else
52388   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52389 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52390    { (exit 1); exit 1; }; }
52391 fi
52392
52393
52394
52395 cat >>confdefs.h <<\_ACEOF
52396 #define LDAP_SLAPI 1
52397 _ACEOF
52398
52399 fi
52400
52401 if test "$ol_enable_debug" != no ; then
52402
52403 cat >>confdefs.h <<\_ACEOF
52404 #define LDAP_DEBUG 1
52405 _ACEOF
52406
52407 fi
52408 if test "$ol_enable_syslog" = yes ; then
52409
52410 cat >>confdefs.h <<\_ACEOF
52411 #define LDAP_SYSLOG 1
52412 _ACEOF
52413
52414 fi
52415 if test "$ol_link_kbind" != no ; then
52416
52417 cat >>confdefs.h <<\_ACEOF
52418 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52419 _ACEOF
52420
52421 fi
52422 if test "$ol_enable_proctitle" != no ; then
52423
52424 cat >>confdefs.h <<\_ACEOF
52425 #define LDAP_PROCTITLE 1
52426 _ACEOF
52427
52428 fi
52429 if test "$ol_enable_referrals" != no ; then
52430
52431 cat >>confdefs.h <<\_ACEOF
52432 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52433 _ACEOF
52434
52435 fi
52436 if test "$ol_enable_local" != no; then
52437
52438 cat >>confdefs.h <<\_ACEOF
52439 #define LDAP_PF_LOCAL 1
52440 _ACEOF
52441
52442 fi
52443 if test "$ol_link_ipv6" != no; then
52444
52445 cat >>confdefs.h <<\_ACEOF
52446 #define LDAP_PF_INET6 1
52447 _ACEOF
52448
52449 fi
52450 if test "$ol_enable_cleartext" != no ; then
52451
52452 cat >>confdefs.h <<\_ACEOF
52453 #define SLAPD_CLEARTEXT 1
52454 _ACEOF
52455
52456 fi
52457 if test "$ol_enable_crypt" != no ; then
52458
52459 cat >>confdefs.h <<\_ACEOF
52460 #define SLAPD_CRYPT 1
52461 _ACEOF
52462
52463 fi
52464 if test "$ol_link_spasswd" != no ; then
52465
52466 cat >>confdefs.h <<\_ACEOF
52467 #define SLAPD_SPASSWD 1
52468 _ACEOF
52469
52470 fi
52471 if test "$ol_enable_multimaster" != no ; then
52472
52473 cat >>confdefs.h <<\_ACEOF
52474 #define SLAPD_MULTIMASTER 1
52475 _ACEOF
52476
52477 fi
52478 if test "$ol_enable_rlookups" != no ; then
52479
52480 cat >>confdefs.h <<\_ACEOF
52481 #define SLAPD_RLOOKUPS 1
52482 _ACEOF
52483
52484 fi
52485 if test "$ol_enable_aci" != no ; then
52486
52487 cat >>confdefs.h <<\_ACEOF
52488 #define SLAPD_ACI_ENABLED 1
52489 _ACEOF
52490
52491 fi
52492
52493 if test "$ol_link_modules" != no ; then
52494
52495 cat >>confdefs.h <<\_ACEOF
52496 #define SLAPD_MODULES 1
52497 _ACEOF
52498
52499         BUILD_SLAPD=yes
52500         SLAPD_MODULES_LDFLAGS="-dlopen self"
52501 fi
52502
52503
52504 cat >>confdefs.h <<\_ACEOF
52505 #define SLAPD_MOD_STATIC 1
52506 _ACEOF
52507
52508
52509 cat >>confdefs.h <<\_ACEOF
52510 #define SLAPD_MOD_DYNAMIC 2
52511 _ACEOF
52512
52513
52514 if test "$ol_enable_bdb" != no ; then
52515         BUILD_SLAPD=yes
52516         BUILD_BDB=$ol_enable_bdb
52517         if test "$ol_enable_bdb" = mod ; then
52518                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52519                 MFLAG=SLAPD_MOD_DYNAMIC
52520         else
52521                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52522                 MFLAG=SLAPD_MOD_STATIC
52523         fi
52524
52525 cat >>confdefs.h <<_ACEOF
52526 #define SLAPD_BDB $MFLAG
52527 _ACEOF
52528
52529 fi
52530
52531 if test "$ol_enable_dnssrv" != no ; then
52532         BUILD_SLAPD=yes
52533         BUILD_DNSSRV=$ol_enable_dnssrv
52534         if test "$ol_enable_dnssrv" = mod ; then
52535                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52536                 MFLAG=SLAPD_MOD_DYNAMIC
52537         else
52538                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52539                 MFLAG=SLAPD_MOD_STATIC
52540         fi
52541
52542 cat >>confdefs.h <<_ACEOF
52543 #define SLAPD_DNSSRV $MFLAG
52544 _ACEOF
52545
52546 fi
52547
52548 if test "$ol_enable_hdb" != no ; then
52549         BUILD_SLAPD=yes
52550         BUILD_HDB=$ol_enable_hdb
52551         if test "$ol_enable_hdb" = mod ; then
52552                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52553                 MFLAG=SLAPD_MOD_DYNAMIC
52554         else
52555                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52556                 MFLAG=SLAPD_MOD_STATIC
52557         fi
52558
52559 cat >>confdefs.h <<_ACEOF
52560 #define SLAPD_HDB $MFLAG
52561 _ACEOF
52562
52563 fi
52564
52565 if test "$ol_enable_ldap" != no ; then
52566         BUILD_SLAPD=yes
52567         BUILD_LDAP=$ol_enable_ldap
52568         if test "$ol_enable_ldap" = mod ; then
52569                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52570                 MFLAG=SLAPD_MOD_DYNAMIC
52571         else
52572                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52573                 MFLAG=SLAPD_MOD_STATIC
52574         fi
52575
52576 cat >>confdefs.h <<_ACEOF
52577 #define SLAPD_LDAP $MFLAG
52578 _ACEOF
52579
52580 fi
52581
52582 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52583         BUILD_SLAPD=yes
52584         BUILD_LDBM=$ol_enable_ldbm
52585         if test "$ol_enable_ldbm" = mod ; then
52586                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52587                 MFLAG=SLAPD_MOD_DYNAMIC
52588         else
52589                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52590                 MFLAG=SLAPD_MOD_STATIC
52591         fi
52592
52593 cat >>confdefs.h <<_ACEOF
52594 #define SLAPD_LDBM $MFLAG
52595 _ACEOF
52596
52597 fi
52598
52599 if test "$ol_enable_meta" != no ; then
52600         BUILD_SLAPD=yes
52601         BUILD_META=$ol_enable_meta
52602         BUILD_REWRITE=yes
52603         if test "$ol_enable_meta" = mod ; then
52604                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52605                 MFLAG=SLAPD_MOD_DYNAMIC
52606         else
52607                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52608                 MFLAG=SLAPD_MOD_STATIC
52609         fi
52610
52611 cat >>confdefs.h <<_ACEOF
52612 #define SLAPD_META $MFLAG
52613 _ACEOF
52614
52615 fi
52616
52617 if test "$ol_enable_monitor" != no ; then
52618         BUILD_SLAPD=yes
52619         BUILD_MONITOR=$ol_enable_monitor
52620         if test "$ol_enable_monitor" = mod ; then
52621                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52622                 MFLAG=SLAPD_MOD_DYNAMIC
52623         else
52624                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52625                 MFLAG=SLAPD_MOD_STATIC
52626         fi
52627
52628 cat >>confdefs.h <<_ACEOF
52629 #define SLAPD_MONITOR $MFLAG
52630 _ACEOF
52631
52632 fi
52633
52634 if test "$ol_enable_null" != no ; then
52635         BUILD_SLAPD=yes
52636         BUILD_NULL=$ol_enable_null
52637         if test "$ol_enable_null" = mod ; then
52638                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52639                 MFLAG=SLAPD_MOD_DYNAMIC
52640         else
52641                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52642                 MFLAG=SLAPD_MOD_STATIC
52643         fi
52644
52645 cat >>confdefs.h <<_ACEOF
52646 #define SLAPD_NULL $MFLAG
52647 _ACEOF
52648
52649 fi
52650
52651 if test "$ol_enable_passwd" != no ; then
52652         BUILD_SLAPD=yes
52653         BUILD_PASSWD=$ol_enable_passwd
52654         if test "$ol_enable_passwd" = mod ; then
52655                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52656                 MFLAG=SLAPD_MOD_DYNAMIC
52657         else
52658                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52659                 MFLAG=SLAPD_MOD_STATIC
52660         fi
52661
52662 cat >>confdefs.h <<_ACEOF
52663 #define SLAPD_PASSWD $MFLAG
52664 _ACEOF
52665
52666 fi
52667
52668 if test "$ol_link_perl" != no ; then
52669         BUILD_SLAPD=yes
52670         BUILD_PERL=$ol_enable_perl
52671         if test "$ol_enable_perl" = mod ; then
52672                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52673                 MFLAG=SLAPD_MOD_DYNAMIC
52674         else
52675                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52676                 MFLAG=SLAPD_MOD_STATIC
52677         fi
52678
52679 cat >>confdefs.h <<_ACEOF
52680 #define SLAPD_PERL $MFLAG
52681 _ACEOF
52682
52683 fi
52684
52685 if test "$ol_enable_relay" != no ; then
52686         BUILD_SLAPD=yes
52687         BUILD_RELAY=$ol_enable_relay
52688         if test "$ol_enable_relay" = mod ; then
52689                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52690                 MFLAG=SLAPD_MOD_DYNAMIC
52691         else
52692                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52693                 MFLAG=SLAPD_MOD_STATIC
52694         fi
52695
52696 cat >>confdefs.h <<_ACEOF
52697 #define SLAPD_RELAY $MFLAG
52698 _ACEOF
52699
52700 fi
52701
52702 if test "$ol_enable_shell" != no ; then
52703         if test "$ol_link_threads" != no ; then
52704                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52705 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52706         fi
52707         BUILD_SLAPD=yes
52708         BUILD_SHELL=$ol_enable_shell
52709         if test "$ol_enable_shell" = mod ; then
52710                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52711                 MFLAG=SLAPD_MOD_DYNAMIC
52712         else
52713                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52714                 MFLAG=SLAPD_MOD_STATIC
52715         fi
52716
52717 cat >>confdefs.h <<_ACEOF
52718 #define SLAPD_SHELL $MFLAG
52719 _ACEOF
52720
52721 fi
52722
52723 if test "$ol_link_sql" != no ; then
52724         BUILD_SLAPD=yes
52725         BUILD_SQL=$ol_enable_sql
52726         if test "$ol_enable_sql" = mod; then
52727                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52728                 MFLAG=SLAPD_MOD_DYNAMIC
52729         else
52730                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52731                 MFLAG=SLAPD_MOD_STATIC
52732         fi
52733
52734 cat >>confdefs.h <<_ACEOF
52735 #define SLAPD_SQL $MFLAG
52736 _ACEOF
52737
52738 fi
52739
52740 if test "$ol_enable_accesslog" != no ; then
52741         BUILD_ACCESSLOG=$ol_enable_accesslog
52742         if test "$ol_enable_accesslog" = mod ; then
52743                 MFLAG=SLAPD_MOD_DYNAMIC
52744                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52745         else
52746                 MFLAG=SLAPD_MOD_STATIC
52747                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52748         fi
52749
52750 cat >>confdefs.h <<_ACEOF
52751 #define SLAPD_OVER_ACCESSLOG $MFLAG
52752 _ACEOF
52753
52754 fi
52755
52756 if test "$ol_enable_denyop" != no ; then
52757         BUILD_DENYOP=$ol_enable_denyop
52758         if test "$ol_enable_denyop" = mod ; then
52759                 MFLAG=SLAPD_MOD_DYNAMIC
52760                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52761         else
52762                 MFLAG=SLAPD_MOD_STATIC
52763                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52764         fi
52765
52766 cat >>confdefs.h <<_ACEOF
52767 #define SLAPD_OVER_DENYOP $MFLAG
52768 _ACEOF
52769
52770 fi
52771
52772 if test "$ol_enable_dyngroup" != no ; then
52773         BUILD_DYNGROUP=$ol_enable_dyngroup
52774         if test "$ol_enable_dyngroup" = mod ; then
52775                 MFLAG=SLAPD_MOD_DYNAMIC
52776                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52777         else
52778                 MFLAG=SLAPD_MOD_STATIC
52779                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52780         fi
52781
52782 cat >>confdefs.h <<_ACEOF
52783 #define SLAPD_OVER_DYNGROUP $MFLAG
52784 _ACEOF
52785
52786 fi
52787
52788 if test "$ol_enable_dynlist" != no ; then
52789         BUILD_DYNLIST=$ol_enable_dynlist
52790         if test "$ol_enable_dynlist" = mod ; then
52791                 MFLAG=SLAPD_MOD_DYNAMIC
52792                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52793         else
52794                 MFLAG=SLAPD_MOD_STATIC
52795                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52796         fi
52797
52798 cat >>confdefs.h <<_ACEOF
52799 #define SLAPD_OVER_DYNLIST $MFLAG
52800 _ACEOF
52801
52802 fi
52803
52804 if test "$ol_enable_glue" != no ; then
52805         BUILD_GLUE=$ol_enable_glue
52806         if test "$ol_enable_glue" = mod ; then
52807                 MFLAG=SLAPD_MOD_DYNAMIC
52808                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52809         else
52810                 MFLAG=SLAPD_MOD_STATIC
52811                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52812         fi
52813
52814 cat >>confdefs.h <<_ACEOF
52815 #define SLAPD_OVER_GLUE $MFLAG
52816 _ACEOF
52817
52818 fi
52819
52820 if test "$ol_enable_lastmod" != no ; then
52821         BUILD_LASTMOD=$ol_enable_lastmod
52822         if test "$ol_enable_lastmod" = mod ; then
52823                 MFLAG=SLAPD_MOD_DYNAMIC
52824                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52825         else
52826                 MFLAG=SLAPD_MOD_STATIC
52827                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52828         fi
52829
52830 cat >>confdefs.h <<_ACEOF
52831 #define SLAPD_OVER_LASTMOD $MFLAG
52832 _ACEOF
52833
52834 fi
52835
52836 if test "$ol_enable_ppolicy" != no ; then
52837         BUILD_PPOLICY=$ol_enable_ppolicy
52838         if test "$ol_enable_ppolicy" = mod ; then
52839                 MFLAG=SLAPD_MOD_DYNAMIC
52840                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52841         else
52842                 MFLAG=SLAPD_MOD_STATIC
52843                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52844         fi
52845
52846 cat >>confdefs.h <<_ACEOF
52847 #define SLAPD_OVER_PPOLICY $MFLAG
52848 _ACEOF
52849
52850 fi
52851
52852 if test "$ol_enable_proxycache" != no ; then
52853         BUILD_PROXYCACHE=$ol_enable_proxycache
52854         if test "$ol_enable_proxycache" = mod ; then
52855                 MFLAG=SLAPD_MOD_DYNAMIC
52856                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52857         else
52858                 MFLAG=SLAPD_MOD_STATIC
52859                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52860         fi
52861
52862 cat >>confdefs.h <<_ACEOF
52863 #define SLAPD_OVER_PROXYCACHE $MFLAG
52864 _ACEOF
52865
52866 fi
52867
52868 if test "$ol_enable_refint" != no ; then
52869         BUILD_REFINT=$ol_enable_refint
52870         if test "$ol_enable_refint" = mod ; then
52871                 MFLAG=SLAPD_MOD_DYNAMIC
52872                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52873         else
52874                 MFLAG=SLAPD_MOD_STATIC
52875                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52876         fi
52877
52878 cat >>confdefs.h <<_ACEOF
52879 #define SLAPD_OVER_REFINT $MFLAG
52880 _ACEOF
52881
52882 fi
52883
52884 if test "$ol_enable_retcode" != no ; then
52885         BUILD_RETCODE=$ol_enable_retcode
52886         if test "$ol_enable_retcode" = mod ; then
52887                 MFLAG=SLAPD_MOD_DYNAMIC
52888                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52889         else
52890                 MFLAG=SLAPD_MOD_STATIC
52891                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52892         fi
52893
52894 cat >>confdefs.h <<_ACEOF
52895 #define SLAPD_OVER_RETCODE $MFLAG
52896 _ACEOF
52897
52898 fi
52899
52900 if test "$ol_enable_rwm" != no ; then
52901         BUILD_REWRITE=yes
52902         BUILD_RWM=$ol_enable_rwm
52903         if test "$ol_enable_rwm" = mod ; then
52904                 MFLAG=SLAPD_MOD_DYNAMIC
52905                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52906         else
52907                 MFLAG=SLAPD_MOD_STATIC
52908                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52909         fi
52910
52911 cat >>confdefs.h <<_ACEOF
52912 #define SLAPD_OVER_RWM $MFLAG
52913 _ACEOF
52914
52915 fi
52916
52917 if test "$ol_enable_syncprov" != no ; then
52918         BUILD_SYNCPROV=$ol_enable_syncprov
52919         if test "$ol_enable_syncprov" = mod ; then
52920                 MFLAG=SLAPD_MOD_DYNAMIC
52921                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52922         else
52923                 MFLAG=SLAPD_MOD_STATIC
52924                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52925         fi
52926
52927 cat >>confdefs.h <<_ACEOF
52928 #define SLAPD_OVER_SYNCPROV $MFLAG
52929 _ACEOF
52930
52931 fi
52932
52933 if test "$ol_enable_translucent" != no ; then
52934         BUILD_TRANSLUCENT=$ol_enable_translucent
52935         if test "$ol_enable_translucent" = mod ; then
52936                 MFLAG=SLAPD_MOD_DYNAMIC
52937                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52938         else
52939                 MFLAG=SLAPD_MOD_STATIC
52940                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52941         fi
52942
52943 cat >>confdefs.h <<_ACEOF
52944 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52945 _ACEOF
52946
52947 fi
52948
52949 if test "$ol_enable_unique" != no ; then
52950         BUILD_UNIQUE=$ol_enable_unique
52951         if test "$ol_enable_unique" = mod ; then
52952                 MFLAG=SLAPD_MOD_DYNAMIC
52953                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52954         else
52955                 MFLAG=SLAPD_MOD_STATIC
52956                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52957         fi
52958
52959 cat >>confdefs.h <<_ACEOF
52960 #define SLAPD_OVER_UNIQUE $MFLAG
52961 _ACEOF
52962
52963 fi
52964
52965 if test "$ol_enable_valsort" != no ; then
52966         BUILD_VALSORT=$ol_enable_valsort
52967         if test "$ol_enable_valsort" = mod ; then
52968                 MFLAG=SLAPD_MOD_DYNAMIC
52969                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
52970         else
52971                 MFLAG=SLAPD_MOD_STATIC
52972                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
52973         fi
52974
52975 cat >>confdefs.h <<_ACEOF
52976 #define SLAPD_OVER_VALSORT $MFLAG
52977 _ACEOF
52978
52979 fi
52980
52981 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52982         $BUILD_SLAPD = yes ; then
52983         BUILD_SLURPD=yes
52984 fi
52985
52986 if test "$ol_enable_rewrite" != no ; then
52987
52988 cat >>confdefs.h <<\_ACEOF
52989 #define ENABLE_REWRITE 1
52990 _ACEOF
52991
52992         BUILD_REWRITE=yes
52993 fi
52994
52995 if test "$ol_enable_slapi" != no ; then
52996
52997 cat >>confdefs.h <<\_ACEOF
52998 #define ENABLE_SLAPI 1
52999 _ACEOF
53000
53001         BUILD_SLAPI=yes
53002         SLAPD_SLAPI_DEPEND=libslapi.a
53003 fi
53004
53005
53006
53007 if test "$ac_cv_mingw32" = yes ; then
53008         PLAT=NT
53009         SLAPD_MODULES_LDFLAGS=
53010 else
53011         PLAT=UNIX
53012 fi
53013
53014
53015
53016
53017
53018
53019
53020
53021
53022
53023
53024
53025
53026
53027
53028
53029
53030
53031
53032
53033
53034
53035
53036
53037
53038
53039
53040
53041
53042
53043
53044
53045
53046
53047
53048
53049
53050
53051
53052
53053
53054
53055
53056
53057
53058
53059
53060
53061
53062
53063
53064
53065
53066
53067
53068
53069
53070
53071
53072
53073
53074
53075
53076
53077
53078
53079
53080
53081
53082
53083
53084
53085
53086
53087
53088
53089
53090
53091
53092
53093 # Check whether --with-xxinstall or --without-xxinstall was given.
53094 if test "${with_xxinstall+set}" = set; then
53095   withval="$with_xxinstall"
53096
53097 fi;
53098
53099
53100                                                                                                                                                                                                                                                                                                                                                                                                                 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"
53101
53102
53103           ac_config_commands="$ac_config_commands default"
53104
53105
53106
53107 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53108 # Let make expand exec_prefix.
53109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53110
53111 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53112 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53113 # trailing colons and then remove the whole line if VPATH becomes empty
53114 # (actually we leave an empty line to preserve line numbers).
53115 if test "x$srcdir" = x.; then
53116   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53117 s/:*\$(srcdir):*/:/;
53118 s/:*\${srcdir}:*/:/;
53119 s/:*@srcdir@:*/:/;
53120 s/^\([^=]*=[     ]*\):*/\1/;
53121 s/:*$//;
53122 s/^[^=]*=[       ]*$//;
53123 }'
53124 fi
53125
53126 DEFS=-DHAVE_CONFIG_H
53127
53128 ac_libobjs=
53129 ac_ltlibobjs=
53130 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53131   # 1. Remove the extension, and $U if already installed.
53132   ac_i=`echo "$ac_i" |
53133          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53134   # 2. Add them.
53135   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53136   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53137 done
53138 LIBOBJS=$ac_libobjs
53139
53140 LTLIBOBJS=$ac_ltlibobjs
53141
53142
53143 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53144   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53145 Usually this means the macro was only invoked conditionally." >&5
53146 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53147 Usually this means the macro was only invoked conditionally." >&2;}
53148    { (exit 1); exit 1; }; }
53149 fi
53150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53151   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53152 Usually this means the macro was only invoked conditionally." >&5
53153 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53154 Usually this means the macro was only invoked conditionally." >&2;}
53155    { (exit 1); exit 1; }; }
53156 fi
53157 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53158   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53159 Usually this means the macro was only invoked conditionally." >&5
53160 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53161 Usually this means the macro was only invoked conditionally." >&2;}
53162    { (exit 1); exit 1; }; }
53163 fi
53164 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53165   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53166 Usually this means the macro was only invoked conditionally." >&5
53167 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53168 Usually this means the macro was only invoked conditionally." >&2;}
53169    { (exit 1); exit 1; }; }
53170 fi
53171
53172 : ${CONFIG_STATUS=./config.status}
53173 ac_clean_files_save=$ac_clean_files
53174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53175 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53176 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53177 cat >$CONFIG_STATUS <<_ACEOF
53178 #! $SHELL
53179 # Generated by $as_me.
53180 # Run this file to recreate the current configuration.
53181 # Compiler output produced by configure, useful for debugging
53182 # configure, is in config.log if it exists.
53183
53184 debug=false
53185 ac_cs_recheck=false
53186 ac_cs_silent=false
53187 SHELL=\${CONFIG_SHELL-$SHELL}
53188 _ACEOF
53189
53190 cat >>$CONFIG_STATUS <<\_ACEOF
53191 ## --------------------- ##
53192 ## M4sh Initialization.  ##
53193 ## --------------------- ##
53194
53195 # Be Bourne compatible
53196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53197   emulate sh
53198   NULLCMD=:
53199   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53200   # is contrary to our usage.  Disable this feature.
53201   alias -g '${1+"$@"}'='"$@"'
53202 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53203   set -o posix
53204 fi
53205 DUALCASE=1; export DUALCASE # for MKS sh
53206
53207 # Support unset when possible.
53208 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53209   as_unset=unset
53210 else
53211   as_unset=false
53212 fi
53213
53214
53215 # Work around bugs in pre-3.0 UWIN ksh.
53216 $as_unset ENV MAIL MAILPATH
53217 PS1='$ '
53218 PS2='> '
53219 PS4='+ '
53220
53221 # NLS nuisances.
53222 for as_var in \
53223   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53224   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53225   LC_TELEPHONE LC_TIME
53226 do
53227   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53228     eval $as_var=C; export $as_var
53229   else
53230     $as_unset $as_var
53231   fi
53232 done
53233
53234 # Required to use basename.
53235 if expr a : '\(a\)' >/dev/null 2>&1; then
53236   as_expr=expr
53237 else
53238   as_expr=false
53239 fi
53240
53241 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53242   as_basename=basename
53243 else
53244   as_basename=false
53245 fi
53246
53247
53248 # Name of the executable.
53249 as_me=`$as_basename "$0" ||
53250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53251          X"$0" : 'X\(//\)$' \| \
53252          X"$0" : 'X\(/\)$' \| \
53253          .     : '\(.\)' 2>/dev/null ||
53254 echo X/"$0" |
53255     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53256           /^X\/\(\/\/\)$/{ s//\1/; q; }
53257           /^X\/\(\/\).*/{ s//\1/; q; }
53258           s/.*/./; q'`
53259
53260
53261 # PATH needs CR, and LINENO needs CR and PATH.
53262 # Avoid depending upon Character Ranges.
53263 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53264 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53265 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53266 as_cr_digits='0123456789'
53267 as_cr_alnum=$as_cr_Letters$as_cr_digits
53268
53269 # The user is always right.
53270 if test "${PATH_SEPARATOR+set}" != set; then
53271   echo "#! /bin/sh" >conf$$.sh
53272   echo  "exit 0"   >>conf$$.sh
53273   chmod +x conf$$.sh
53274   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53275     PATH_SEPARATOR=';'
53276   else
53277     PATH_SEPARATOR=:
53278   fi
53279   rm -f conf$$.sh
53280 fi
53281
53282
53283   as_lineno_1=$LINENO
53284   as_lineno_2=$LINENO
53285   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53286   test "x$as_lineno_1" != "x$as_lineno_2" &&
53287   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53288   # Find who we are.  Look in the path if we contain no path at all
53289   # relative or not.
53290   case $0 in
53291     *[\\/]* ) as_myself=$0 ;;
53292     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53293 for as_dir in $PATH
53294 do
53295   IFS=$as_save_IFS
53296   test -z "$as_dir" && as_dir=.
53297   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53298 done
53299
53300        ;;
53301   esac
53302   # We did not find ourselves, most probably we were run as `sh COMMAND'
53303   # in which case we are not to be found in the path.
53304   if test "x$as_myself" = x; then
53305     as_myself=$0
53306   fi
53307   if test ! -f "$as_myself"; then
53308     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53309 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53310    { (exit 1); exit 1; }; }
53311   fi
53312   case $CONFIG_SHELL in
53313   '')
53314     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53315 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53316 do
53317   IFS=$as_save_IFS
53318   test -z "$as_dir" && as_dir=.
53319   for as_base in sh bash ksh sh5; do
53320          case $as_dir in
53321          /*)
53322            if ("$as_dir/$as_base" -c '
53323   as_lineno_1=$LINENO
53324   as_lineno_2=$LINENO
53325   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53326   test "x$as_lineno_1" != "x$as_lineno_2" &&
53327   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53328              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53329              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53330              CONFIG_SHELL=$as_dir/$as_base
53331              export CONFIG_SHELL
53332              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53333            fi;;
53334          esac
53335        done
53336 done
53337 ;;
53338   esac
53339
53340   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53341   # uniformly replaced by the line number.  The first 'sed' inserts a
53342   # line-number line before each line; the second 'sed' does the real
53343   # work.  The second script uses 'N' to pair each line-number line
53344   # with the numbered line, and appends trailing '-' during
53345   # substitution so that $LINENO is not a special case at line end.
53346   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53347   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53348   sed '=' <$as_myself |
53349     sed '
53350       N
53351       s,$,-,
53352       : loop
53353       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53354       t loop
53355       s,-$,,
53356       s,^['$as_cr_digits']*\n,,
53357     ' >$as_me.lineno &&
53358   chmod +x $as_me.lineno ||
53359     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53360 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53361    { (exit 1); exit 1; }; }
53362
53363   # Don't try to exec as it changes $[0], causing all sort of problems
53364   # (the dirname of $[0] is not the place where we might find the
53365   # original and so on.  Autoconf is especially sensible to this).
53366   . ./$as_me.lineno
53367   # Exit status is that of the last command.
53368   exit
53369 }
53370
53371
53372 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53373   *c*,-n*) ECHO_N= ECHO_C='
53374 ' ECHO_T='      ' ;;
53375   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53376   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53377 esac
53378
53379 if expr a : '\(a\)' >/dev/null 2>&1; then
53380   as_expr=expr
53381 else
53382   as_expr=false
53383 fi
53384
53385 rm -f conf$$ conf$$.exe conf$$.file
53386 echo >conf$$.file
53387 if ln -s conf$$.file conf$$ 2>/dev/null; then
53388   # We could just check for DJGPP; but this test a) works b) is more generic
53389   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53390   if test -f conf$$.exe; then
53391     # Don't use ln at all; we don't have any links
53392     as_ln_s='cp -p'
53393   else
53394     as_ln_s='ln -s'
53395   fi
53396 elif ln conf$$.file conf$$ 2>/dev/null; then
53397   as_ln_s=ln
53398 else
53399   as_ln_s='cp -p'
53400 fi
53401 rm -f conf$$ conf$$.exe conf$$.file
53402
53403 if mkdir -p . 2>/dev/null; then
53404   as_mkdir_p=:
53405 else
53406   test -d ./-p && rmdir ./-p
53407   as_mkdir_p=false
53408 fi
53409
53410 as_executable_p="test -f"
53411
53412 # Sed expression to map a string onto a valid CPP name.
53413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53414
53415 # Sed expression to map a string onto a valid variable name.
53416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53417
53418
53419 # IFS
53420 # We need space, tab and new line, in precisely that order.
53421 as_nl='
53422 '
53423 IFS="   $as_nl"
53424
53425 # CDPATH.
53426 $as_unset CDPATH
53427
53428 exec 6>&1
53429
53430 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53431 # report actual input values of CONFIG_FILES etc. instead of their
53432 # values after options handling.  Logging --version etc. is OK.
53433 exec 5>>config.log
53434 {
53435   echo
53436   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53437 ## Running $as_me. ##
53438 _ASBOX
53439 } >&5
53440 cat >&5 <<_CSEOF
53441
53442 This file was extended by $as_me, which was
53443 generated by GNU Autoconf 2.59.  Invocation command line was
53444
53445   CONFIG_FILES    = $CONFIG_FILES
53446   CONFIG_HEADERS  = $CONFIG_HEADERS
53447   CONFIG_LINKS    = $CONFIG_LINKS
53448   CONFIG_COMMANDS = $CONFIG_COMMANDS
53449   $ $0 $@
53450
53451 _CSEOF
53452 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53453 echo >&5
53454 _ACEOF
53455
53456 # Files that config.status was made for.
53457 if test -n "$ac_config_files"; then
53458   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53459 fi
53460
53461 if test -n "$ac_config_headers"; then
53462   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53463 fi
53464
53465 if test -n "$ac_config_links"; then
53466   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53467 fi
53468
53469 if test -n "$ac_config_commands"; then
53470   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53471 fi
53472
53473 cat >>$CONFIG_STATUS <<\_ACEOF
53474
53475 ac_cs_usage="\
53476 \`$as_me' instantiates files from templates according to the
53477 current configuration.
53478
53479 Usage: $0 [OPTIONS] [FILE]...
53480
53481   -h, --help       print this help, then exit
53482   -V, --version    print version number, then exit
53483   -q, --quiet      do not print progress messages
53484   -d, --debug      don't remove temporary files
53485       --recheck    update $as_me by reconfiguring in the same conditions
53486   --file=FILE[:TEMPLATE]
53487                    instantiate the configuration file FILE
53488   --header=FILE[:TEMPLATE]
53489                    instantiate the configuration header FILE
53490
53491 Configuration files:
53492 $config_files
53493
53494 Configuration headers:
53495 $config_headers
53496
53497 Configuration commands:
53498 $config_commands
53499
53500 Report bugs to <bug-autoconf@gnu.org>."
53501 _ACEOF
53502
53503 cat >>$CONFIG_STATUS <<_ACEOF
53504 ac_cs_version="\\
53505 config.status
53506 configured by $0, generated by GNU Autoconf 2.59,
53507   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53508
53509 Copyright (C) 2003 Free Software Foundation, Inc.
53510 This config.status script is free software; the Free Software Foundation
53511 gives unlimited permission to copy, distribute and modify it."
53512 srcdir=$srcdir
53513 INSTALL="$INSTALL"
53514 _ACEOF
53515
53516 cat >>$CONFIG_STATUS <<\_ACEOF
53517 # If no file are specified by the user, then we need to provide default
53518 # value.  By we need to know if files were specified by the user.
53519 ac_need_defaults=:
53520 while test $# != 0
53521 do
53522   case $1 in
53523   --*=*)
53524     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53525     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53526     ac_shift=:
53527     ;;
53528   -*)
53529     ac_option=$1
53530     ac_optarg=$2
53531     ac_shift=shift
53532     ;;
53533   *) # This is not an option, so the user has probably given explicit
53534      # arguments.
53535      ac_option=$1
53536      ac_need_defaults=false;;
53537   esac
53538
53539   case $ac_option in
53540   # Handling of the options.
53541 _ACEOF
53542 cat >>$CONFIG_STATUS <<\_ACEOF
53543   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53544     ac_cs_recheck=: ;;
53545   --version | --vers* | -V )
53546     echo "$ac_cs_version"; exit 0 ;;
53547   --he | --h)
53548     # Conflict between --help and --header
53549     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53550 Try \`$0 --help' for more information." >&5
53551 echo "$as_me: error: ambiguous option: $1
53552 Try \`$0 --help' for more information." >&2;}
53553    { (exit 1); exit 1; }; };;
53554   --help | --hel | -h )
53555     echo "$ac_cs_usage"; exit 0 ;;
53556   --debug | --d* | -d )
53557     debug=: ;;
53558   --file | --fil | --fi | --f )
53559     $ac_shift
53560     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53561     ac_need_defaults=false;;
53562   --header | --heade | --head | --hea )
53563     $ac_shift
53564     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53565     ac_need_defaults=false;;
53566   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53567   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53568     ac_cs_silent=: ;;
53569
53570   # This is an error.
53571   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53572 Try \`$0 --help' for more information." >&5
53573 echo "$as_me: error: unrecognized option: $1
53574 Try \`$0 --help' for more information." >&2;}
53575    { (exit 1); exit 1; }; } ;;
53576
53577   *) ac_config_targets="$ac_config_targets $1" ;;
53578
53579   esac
53580   shift
53581 done
53582
53583 ac_configure_extra_args=
53584
53585 if $ac_cs_silent; then
53586   exec 6>/dev/null
53587   ac_configure_extra_args="$ac_configure_extra_args --silent"
53588 fi
53589
53590 _ACEOF
53591 cat >>$CONFIG_STATUS <<_ACEOF
53592 if \$ac_cs_recheck; then
53593   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53594   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53595 fi
53596
53597 _ACEOF
53598
53599 cat >>$CONFIG_STATUS <<_ACEOF
53600 #
53601 # INIT-COMMANDS section.
53602 #
53603
53604 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53605 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53606
53607 _ACEOF
53608
53609
53610
53611 cat >>$CONFIG_STATUS <<\_ACEOF
53612 for ac_config_target in $ac_config_targets
53613 do
53614   case "$ac_config_target" in
53615   # Handling of arguments.
53616   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53617   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53618   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53619   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53620   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53621   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53622   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53623   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53624   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53625   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53626   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53627   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53628   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53629   "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" ;;
53630   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53631   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53632   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53633   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53634   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53635   "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" ;;
53636   "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" ;;
53637   "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" ;;
53638   "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" ;;
53639   "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" ;;
53640   "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" ;;
53641   "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" ;;
53642   "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" ;;
53643   "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" ;;
53644   "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" ;;
53645   "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" ;;
53646   "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" ;;
53647   "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" ;;
53648   "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" ;;
53649   "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" ;;
53650   "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" ;;
53651   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53652   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53653   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53654   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53655   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53656   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53657   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53658   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53659   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53660   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53661   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53662 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53663    { (exit 1); exit 1; }; };;
53664   esac
53665 done
53666
53667 # If the user did not use the arguments to specify the items to instantiate,
53668 # then the envvar interface is used.  Set only those that are not.
53669 # We use the long form for the default assignment because of an extremely
53670 # bizarre bug on SunOS 4.1.3.
53671 if $ac_need_defaults; then
53672   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53673   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53674   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53675 fi
53676
53677 # Have a temporary directory for convenience.  Make it in the build tree
53678 # simply because there is no reason to put it here, and in addition,
53679 # creating and moving files from /tmp can sometimes cause problems.
53680 # Create a temporary directory, and hook for its removal unless debugging.
53681 $debug ||
53682 {
53683   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53684   trap '{ (exit 1); exit 1; }' 1 2 13 15
53685 }
53686
53687 # Create a (secure) tmp directory for tmp files.
53688
53689 {
53690   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53691   test -n "$tmp" && test -d "$tmp"
53692 }  ||
53693 {
53694   tmp=./confstat$$-$RANDOM
53695   (umask 077 && mkdir $tmp)
53696 } ||
53697 {
53698    echo "$me: cannot create a temporary directory in ." >&2
53699    { (exit 1); exit 1; }
53700 }
53701
53702 _ACEOF
53703
53704 cat >>$CONFIG_STATUS <<_ACEOF
53705
53706 #
53707 # CONFIG_FILES section.
53708 #
53709
53710 # No need to generate the scripts if there are no CONFIG_FILES.
53711 # This happens for instance when ./config.status config.h
53712 if test -n "\$CONFIG_FILES"; then
53713   # Protect against being on the right side of a sed subst in config.status.
53714   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53715    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53716 s,@SHELL@,$SHELL,;t t
53717 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53718 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53719 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53720 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53721 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53722 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53723 s,@exec_prefix@,$exec_prefix,;t t
53724 s,@prefix@,$prefix,;t t
53725 s,@program_transform_name@,$program_transform_name,;t t
53726 s,@bindir@,$bindir,;t t
53727 s,@sbindir@,$sbindir,;t t
53728 s,@libexecdir@,$libexecdir,;t t
53729 s,@datadir@,$datadir,;t t
53730 s,@sysconfdir@,$sysconfdir,;t t
53731 s,@sharedstatedir@,$sharedstatedir,;t t
53732 s,@localstatedir@,$localstatedir,;t t
53733 s,@libdir@,$libdir,;t t
53734 s,@includedir@,$includedir,;t t
53735 s,@oldincludedir@,$oldincludedir,;t t
53736 s,@infodir@,$infodir,;t t
53737 s,@mandir@,$mandir,;t t
53738 s,@build_alias@,$build_alias,;t t
53739 s,@host_alias@,$host_alias,;t t
53740 s,@target_alias@,$target_alias,;t t
53741 s,@DEFS@,$DEFS,;t t
53742 s,@ECHO_C@,$ECHO_C,;t t
53743 s,@ECHO_N@,$ECHO_N,;t t
53744 s,@ECHO_T@,$ECHO_T,;t t
53745 s,@LIBS@,$LIBS,;t t
53746 s,@build@,$build,;t t
53747 s,@build_cpu@,$build_cpu,;t t
53748 s,@build_vendor@,$build_vendor,;t t
53749 s,@build_os@,$build_os,;t t
53750 s,@host@,$host,;t t
53751 s,@host_cpu@,$host_cpu,;t t
53752 s,@host_vendor@,$host_vendor,;t t
53753 s,@host_os@,$host_os,;t t
53754 s,@target@,$target,;t t
53755 s,@target_cpu@,$target_cpu,;t t
53756 s,@target_vendor@,$target_vendor,;t t
53757 s,@target_os@,$target_os,;t t
53758 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53759 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53760 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53761 s,@CYGPATH_W@,$CYGPATH_W,;t t
53762 s,@PACKAGE@,$PACKAGE,;t t
53763 s,@VERSION@,$VERSION,;t t
53764 s,@ACLOCAL@,$ACLOCAL,;t t
53765 s,@AUTOCONF@,$AUTOCONF,;t t
53766 s,@AUTOMAKE@,$AUTOMAKE,;t t
53767 s,@AUTOHEADER@,$AUTOHEADER,;t t
53768 s,@MAKEINFO@,$MAKEINFO,;t t
53769 s,@install_sh@,$install_sh,;t t
53770 s,@STRIP@,$STRIP,;t t
53771 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53772 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53773 s,@mkdir_p@,$mkdir_p,;t t
53774 s,@AWK@,$AWK,;t t
53775 s,@SET_MAKE@,$SET_MAKE,;t t
53776 s,@am__leading_dot@,$am__leading_dot,;t t
53777 s,@AMTAR@,$AMTAR,;t t
53778 s,@am__tar@,$am__tar,;t t
53779 s,@am__untar@,$am__untar,;t t
53780 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53781 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53782 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53783 s,@top_builddir@,$top_builddir,;t t
53784 s,@ldap_subdir@,$ldap_subdir,;t t
53785 s,@CC@,$CC,;t t
53786 s,@AR@,$AR,;t t
53787 s,@CFLAGS@,$CFLAGS,;t t
53788 s,@LDFLAGS@,$LDFLAGS,;t t
53789 s,@CPPFLAGS@,$CPPFLAGS,;t t
53790 s,@ac_ct_CC@,$ac_ct_CC,;t t
53791 s,@EXEEXT@,$EXEEXT,;t t
53792 s,@OBJEXT@,$OBJEXT,;t t
53793 s,@DEPDIR@,$DEPDIR,;t t
53794 s,@am__include@,$am__include,;t t
53795 s,@am__quote@,$am__quote,;t t
53796 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53797 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53798 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53799 s,@CCDEPMODE@,$CCDEPMODE,;t t
53800 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53801 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53802 s,@EGREP@,$EGREP,;t t
53803 s,@LN_S@,$LN_S,;t t
53804 s,@ECHO@,$ECHO,;t t
53805 s,@ac_ct_AR@,$ac_ct_AR,;t t
53806 s,@RANLIB@,$RANLIB,;t t
53807 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53808 s,@DLLTOOL@,$DLLTOOL,;t t
53809 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53810 s,@AS@,$AS,;t t
53811 s,@ac_ct_AS@,$ac_ct_AS,;t t
53812 s,@OBJDUMP@,$OBJDUMP,;t t
53813 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53814 s,@CPP@,$CPP,;t t
53815 s,@CXX@,$CXX,;t t
53816 s,@CXXFLAGS@,$CXXFLAGS,;t t
53817 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53818 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53819 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53820 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53821 s,@CXXCPP@,$CXXCPP,;t t
53822 s,@F77@,$F77,;t t
53823 s,@FFLAGS@,$FFLAGS,;t t
53824 s,@ac_ct_F77@,$ac_ct_F77,;t t
53825 s,@LIBTOOL@,$LIBTOOL,;t t
53826 s,@PERLBIN@,$PERLBIN,;t t
53827 s,@OL_MKDEP@,$OL_MKDEP,;t t
53828 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53829 s,@LTSTATIC@,$LTSTATIC,;t t
53830 s,@LIBOBJS@,$LIBOBJS,;t t
53831 s,@LIBSRCS@,$LIBSRCS,;t t
53832 s,@PLAT@,$PLAT,;t t
53833 s,@WITH_SASL@,$WITH_SASL,;t t
53834 s,@WITH_TLS@,$WITH_TLS,;t t
53835 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53836 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53837 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53838 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53839 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53840 s,@BUILD_BDB@,$BUILD_BDB,;t t
53841 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53842 s,@BUILD_HDB@,$BUILD_HDB,;t t
53843 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53844 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53845 s,@BUILD_META@,$BUILD_META,;t t
53846 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53847 s,@BUILD_NULL@,$BUILD_NULL,;t t
53848 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53849 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53850 s,@BUILD_PERL@,$BUILD_PERL,;t t
53851 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53852 s,@BUILD_SQL@,$BUILD_SQL,;t t
53853 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53854 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53855 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53856 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53857 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53858 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53859 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53860 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53861 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53862 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53863 s,@BUILD_RWM@,$BUILD_RWM,;t t
53864 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53865 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53866 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53867 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
53868 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53869 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53870 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53871 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53872 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53873 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53874 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53875 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53876 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53877 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53878 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53879 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53880 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53881 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53882 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53883 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53884 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53885 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53886 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53887 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53888 s,@SASL_LIBS@,$SASL_LIBS,;t t
53889 s,@TLS_LIBS@,$TLS_LIBS,;t t
53890 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53891 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53892 s,@LIBSLAPI@,$LIBSLAPI,;t t
53893 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53894 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53895 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53896 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53897 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53898 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53899 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53900 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53901 CEOF
53902
53903 _ACEOF
53904
53905   cat >>$CONFIG_STATUS <<\_ACEOF
53906   # Split the substitutions into bite-sized pieces for seds with
53907   # small command number limits, like on Digital OSF/1 and HP-UX.
53908   ac_max_sed_lines=48
53909   ac_sed_frag=1 # Number of current file.
53910   ac_beg=1 # First line for current file.
53911   ac_end=$ac_max_sed_lines # Line after last line for current file.
53912   ac_more_lines=:
53913   ac_sed_cmds=
53914   while $ac_more_lines; do
53915     if test $ac_beg -gt 1; then
53916       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53917     else
53918       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53919     fi
53920     if test ! -s $tmp/subs.frag; then
53921       ac_more_lines=false
53922     else
53923       # The purpose of the label and of the branching condition is to
53924       # speed up the sed processing (if there are no `@' at all, there
53925       # is no need to browse any of the substitutions).
53926       # These are the two extra sed commands mentioned above.
53927       (echo ':t
53928   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53929       if test -z "$ac_sed_cmds"; then
53930         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53931       else
53932         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53933       fi
53934       ac_sed_frag=`expr $ac_sed_frag + 1`
53935       ac_beg=$ac_end
53936       ac_end=`expr $ac_end + $ac_max_sed_lines`
53937     fi
53938   done
53939   if test -z "$ac_sed_cmds"; then
53940     ac_sed_cmds=cat
53941   fi
53942 fi # test -n "$CONFIG_FILES"
53943
53944 _ACEOF
53945 cat >>$CONFIG_STATUS <<\_ACEOF
53946 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53947   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53948   case $ac_file in
53949   - | *:- | *:-:* ) # input from stdin
53950         cat >$tmp/stdin
53951         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53952         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53953   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53954         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53955   * )   ac_file_in=$ac_file.in ;;
53956   esac
53957
53958   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53959   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53961          X"$ac_file" : 'X\(//\)[^/]' \| \
53962          X"$ac_file" : 'X\(//\)$' \| \
53963          X"$ac_file" : 'X\(/\)' \| \
53964          .     : '\(.\)' 2>/dev/null ||
53965 echo X"$ac_file" |
53966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53967           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53968           /^X\(\/\/\)$/{ s//\1/; q; }
53969           /^X\(\/\).*/{ s//\1/; q; }
53970           s/.*/./; q'`
53971   { if $as_mkdir_p; then
53972     mkdir -p "$ac_dir"
53973   else
53974     as_dir="$ac_dir"
53975     as_dirs=
53976     while test ! -d "$as_dir"; do
53977       as_dirs="$as_dir $as_dirs"
53978       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53980          X"$as_dir" : 'X\(//\)[^/]' \| \
53981          X"$as_dir" : 'X\(//\)$' \| \
53982          X"$as_dir" : 'X\(/\)' \| \
53983          .     : '\(.\)' 2>/dev/null ||
53984 echo X"$as_dir" |
53985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53986           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53987           /^X\(\/\/\)$/{ s//\1/; q; }
53988           /^X\(\/\).*/{ s//\1/; q; }
53989           s/.*/./; q'`
53990     done
53991     test ! -n "$as_dirs" || mkdir $as_dirs
53992   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53993 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53994    { (exit 1); exit 1; }; }; }
53995
53996   ac_builddir=.
53997
53998 if test "$ac_dir" != .; then
53999   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54000   # A "../" for each directory in $ac_dir_suffix.
54001   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54002 else
54003   ac_dir_suffix= ac_top_builddir=
54004 fi
54005
54006 case $srcdir in
54007   .)  # No --srcdir option.  We are building in place.
54008     ac_srcdir=.
54009     if test -z "$ac_top_builddir"; then
54010        ac_top_srcdir=.
54011     else
54012        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54013     fi ;;
54014   [\\/]* | ?:[\\/]* )  # Absolute path.
54015     ac_srcdir=$srcdir$ac_dir_suffix;
54016     ac_top_srcdir=$srcdir ;;
54017   *) # Relative path.
54018     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54019     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54020 esac
54021
54022 # Do not use `cd foo && pwd` to compute absolute paths, because
54023 # the directories may not exist.
54024 case `pwd` in
54025 .) ac_abs_builddir="$ac_dir";;
54026 *)
54027   case "$ac_dir" in
54028   .) ac_abs_builddir=`pwd`;;
54029   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54030   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54031   esac;;
54032 esac
54033 case $ac_abs_builddir in
54034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54035 *)
54036   case ${ac_top_builddir}. in
54037   .) ac_abs_top_builddir=$ac_abs_builddir;;
54038   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54039   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54040   esac;;
54041 esac
54042 case $ac_abs_builddir in
54043 .) ac_abs_srcdir=$ac_srcdir;;
54044 *)
54045   case $ac_srcdir in
54046   .) ac_abs_srcdir=$ac_abs_builddir;;
54047   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54048   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54049   esac;;
54050 esac
54051 case $ac_abs_builddir in
54052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54053 *)
54054   case $ac_top_srcdir in
54055   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54056   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54057   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54058   esac;;
54059 esac
54060
54061
54062   case $INSTALL in
54063   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54064   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54065   esac
54066
54067   if test x"$ac_file" != x-; then
54068     { echo "$as_me:$LINENO: creating $ac_file" >&5
54069 echo "$as_me: creating $ac_file" >&6;}
54070     rm -f "$ac_file"
54071   fi
54072   # Let's still pretend it is `configure' which instantiates (i.e., don't
54073   # use $as_me), people would be surprised to read:
54074   #    /* config.h.  Generated by config.status.  */
54075   if test x"$ac_file" = x-; then
54076     configure_input=
54077   else
54078     configure_input="$ac_file.  "
54079   fi
54080   configure_input=$configure_input"Generated from `echo $ac_file_in |
54081                                      sed 's,.*/,,'` by configure."
54082
54083   # First look for the input files in the build tree, otherwise in the
54084   # src tree.
54085   ac_file_inputs=`IFS=:
54086     for f in $ac_file_in; do
54087       case $f in
54088       -) echo $tmp/stdin ;;
54089       [\\/$]*)
54090          # Absolute (can't be DOS-style, as IFS=:)
54091          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54092 echo "$as_me: error: cannot find input file: $f" >&2;}
54093    { (exit 1); exit 1; }; }
54094          echo "$f";;
54095       *) # Relative
54096          if test -f "$f"; then
54097            # Build tree
54098            echo "$f"
54099          elif test -f "$srcdir/$f"; then
54100            # Source tree
54101            echo "$srcdir/$f"
54102          else
54103            # /dev/null tree
54104            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54105 echo "$as_me: error: cannot find input file: $f" >&2;}
54106    { (exit 1); exit 1; }; }
54107          fi;;
54108       esac
54109     done` || { (exit 1); exit 1; }
54110 _ACEOF
54111 cat >>$CONFIG_STATUS <<_ACEOF
54112   sed "$ac_vpsub
54113 $extrasub
54114 _ACEOF
54115 cat >>$CONFIG_STATUS <<\_ACEOF
54116 :t
54117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54118 s,@configure_input@,$configure_input,;t t
54119 s,@srcdir@,$ac_srcdir,;t t
54120 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54121 s,@top_srcdir@,$ac_top_srcdir,;t t
54122 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54123 s,@builddir@,$ac_builddir,;t t
54124 s,@abs_builddir@,$ac_abs_builddir,;t t
54125 s,@top_builddir@,$ac_top_builddir,;t t
54126 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54127 s,@INSTALL@,$ac_INSTALL,;t t
54128 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54129   rm -f $tmp/stdin
54130   if test x"$ac_file" != x-; then
54131     mv $tmp/out $ac_file
54132   else
54133     cat $tmp/out
54134     rm -f $tmp/out
54135   fi
54136
54137 done
54138 _ACEOF
54139 cat >>$CONFIG_STATUS <<\_ACEOF
54140
54141 #
54142 # CONFIG_HEADER section.
54143 #
54144
54145 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54146 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54147 #
54148 # ac_d sets the value in "#define NAME VALUE" lines.
54149 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
54150 ac_dB='[         ].*$,\1#\2'
54151 ac_dC=' '
54152 ac_dD=',;t'
54153 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54154 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
54155 ac_uB='$,\1#\2define\3'
54156 ac_uC=' '
54157 ac_uD=',;t'
54158
54159 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54160   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54161   case $ac_file in
54162   - | *:- | *:-:* ) # input from stdin
54163         cat >$tmp/stdin
54164         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54165         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54166   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54167         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54168   * )   ac_file_in=$ac_file.in ;;
54169   esac
54170
54171   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54172 echo "$as_me: creating $ac_file" >&6;}
54173
54174   # First look for the input files in the build tree, otherwise in the
54175   # src tree.
54176   ac_file_inputs=`IFS=:
54177     for f in $ac_file_in; do
54178       case $f in
54179       -) echo $tmp/stdin ;;
54180       [\\/$]*)
54181          # Absolute (can't be DOS-style, as IFS=:)
54182          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54183 echo "$as_me: error: cannot find input file: $f" >&2;}
54184    { (exit 1); exit 1; }; }
54185          # Do quote $f, to prevent DOS paths from being IFS'd.
54186          echo "$f";;
54187       *) # Relative
54188          if test -f "$f"; then
54189            # Build tree
54190            echo "$f"
54191          elif test -f "$srcdir/$f"; then
54192            # Source tree
54193            echo "$srcdir/$f"
54194          else
54195            # /dev/null tree
54196            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54197 echo "$as_me: error: cannot find input file: $f" >&2;}
54198    { (exit 1); exit 1; }; }
54199          fi;;
54200       esac
54201     done` || { (exit 1); exit 1; }
54202   # Remove the trailing spaces.
54203   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
54204
54205 _ACEOF
54206
54207 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54208 # `conftest.undefs', that substitutes the proper values into
54209 # config.h.in to produce config.h.  The first handles `#define'
54210 # templates, and the second `#undef' templates.
54211 # And first: Protect against being on the right side of a sed subst in
54212 # config.status.  Protect against being in an unquoted here document
54213 # in config.status.
54214 rm -f conftest.defines conftest.undefs
54215 # Using a here document instead of a string reduces the quoting nightmare.
54216 # Putting comments in sed scripts is not portable.
54217 #
54218 # `end' is used to avoid that the second main sed command (meant for
54219 # 0-ary CPP macros) applies to n-ary macro definitions.
54220 # See the Autoconf documentation for `clear'.
54221 cat >confdef2sed.sed <<\_ACEOF
54222 s/[\\&,]/\\&/g
54223 s,[\\$`],\\&,g
54224 t clear
54225 : clear
54226 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54227 t end
54228 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54229 : end
54230 _ACEOF
54231 # If some macros were called several times there might be several times
54232 # the same #defines, which is useless.  Nevertheless, we may not want to
54233 # sort them, since we want the *last* AC-DEFINE to be honored.
54234 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54235 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54236 rm -f confdef2sed.sed
54237
54238 # This sed command replaces #undef with comments.  This is necessary, for
54239 # example, in the case of _POSIX_SOURCE, which is predefined and required
54240 # on some systems where configure will not decide to define it.
54241 cat >>conftest.undefs <<\_ACEOF
54242 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54243 _ACEOF
54244
54245 # Break up conftest.defines because some shells have a limit on the size
54246 # of here documents, and old seds have small limits too (100 cmds).
54247 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54248 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54249 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54250 echo '  :' >>$CONFIG_STATUS
54251 rm -f conftest.tail
54252 while grep . conftest.defines >/dev/null
54253 do
54254   # Write a limited-size here document to $tmp/defines.sed.
54255   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54256   # Speed up: don't consider the non `#define' lines.
54257   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
54258   # Work around the forget-to-reset-the-flag bug.
54259   echo 't clr' >>$CONFIG_STATUS
54260   echo ': clr' >>$CONFIG_STATUS
54261   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54262   echo 'CEOF
54263   sed -f $tmp/defines.sed $tmp/in >$tmp/out
54264   rm -f $tmp/in
54265   mv $tmp/out $tmp/in
54266 ' >>$CONFIG_STATUS
54267   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54268   rm -f conftest.defines
54269   mv conftest.tail conftest.defines
54270 done
54271 rm -f conftest.defines
54272 echo '  fi # grep' >>$CONFIG_STATUS
54273 echo >>$CONFIG_STATUS
54274
54275 # Break up conftest.undefs because some shells have a limit on the size
54276 # of here documents, and old seds have small limits too (100 cmds).
54277 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54278 rm -f conftest.tail
54279 while grep . conftest.undefs >/dev/null
54280 do
54281   # Write a limited-size here document to $tmp/undefs.sed.
54282   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54283   # Speed up: don't consider the non `#undef'
54284   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
54285   # Work around the forget-to-reset-the-flag bug.
54286   echo 't clr' >>$CONFIG_STATUS
54287   echo ': clr' >>$CONFIG_STATUS
54288   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54289   echo 'CEOF
54290   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54291   rm -f $tmp/in
54292   mv $tmp/out $tmp/in
54293 ' >>$CONFIG_STATUS
54294   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54295   rm -f conftest.undefs
54296   mv conftest.tail conftest.undefs
54297 done
54298 rm -f conftest.undefs
54299
54300 cat >>$CONFIG_STATUS <<\_ACEOF
54301   # Let's still pretend it is `configure' which instantiates (i.e., don't
54302   # use $as_me), people would be surprised to read:
54303   #    /* config.h.  Generated by config.status.  */
54304   if test x"$ac_file" = x-; then
54305     echo "/* Generated by configure.  */" >$tmp/config.h
54306   else
54307     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54308   fi
54309   cat $tmp/in >>$tmp/config.h
54310   rm -f $tmp/in
54311   if test x"$ac_file" != x-; then
54312     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54313       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54314 echo "$as_me: $ac_file is unchanged" >&6;}
54315     else
54316       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54318          X"$ac_file" : 'X\(//\)[^/]' \| \
54319          X"$ac_file" : 'X\(//\)$' \| \
54320          X"$ac_file" : 'X\(/\)' \| \
54321          .     : '\(.\)' 2>/dev/null ||
54322 echo X"$ac_file" |
54323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54324           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54325           /^X\(\/\/\)$/{ s//\1/; q; }
54326           /^X\(\/\).*/{ s//\1/; q; }
54327           s/.*/./; q'`
54328       { if $as_mkdir_p; then
54329     mkdir -p "$ac_dir"
54330   else
54331     as_dir="$ac_dir"
54332     as_dirs=
54333     while test ! -d "$as_dir"; do
54334       as_dirs="$as_dir $as_dirs"
54335       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54337          X"$as_dir" : 'X\(//\)[^/]' \| \
54338          X"$as_dir" : 'X\(//\)$' \| \
54339          X"$as_dir" : 'X\(/\)' \| \
54340          .     : '\(.\)' 2>/dev/null ||
54341 echo X"$as_dir" |
54342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54343           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54344           /^X\(\/\/\)$/{ s//\1/; q; }
54345           /^X\(\/\).*/{ s//\1/; q; }
54346           s/.*/./; q'`
54347     done
54348     test ! -n "$as_dirs" || mkdir $as_dirs
54349   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54350 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54351    { (exit 1); exit 1; }; }; }
54352
54353       rm -f $ac_file
54354       mv $tmp/config.h $ac_file
54355     fi
54356   else
54357     cat $tmp/config.h
54358     rm -f $tmp/config.h
54359   fi
54360 # Compute $ac_file's index in $config_headers.
54361 _am_stamp_count=1
54362 for _am_header in $config_headers :; do
54363   case $_am_header in
54364     $ac_file | $ac_file:* )
54365       break ;;
54366     * )
54367       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54368   esac
54369 done
54370 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54371 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54372          X$ac_file : 'X\(//\)[^/]' \| \
54373          X$ac_file : 'X\(//\)$' \| \
54374          X$ac_file : 'X\(/\)' \| \
54375          .     : '\(.\)' 2>/dev/null ||
54376 echo X$ac_file |
54377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54378           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54379           /^X\(\/\/\)$/{ s//\1/; q; }
54380           /^X\(\/\).*/{ s//\1/; q; }
54381           s/.*/./; q'`/stamp-h$_am_stamp_count
54382 done
54383 _ACEOF
54384 cat >>$CONFIG_STATUS <<\_ACEOF
54385
54386 #
54387 # CONFIG_COMMANDS section.
54388 #
54389 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54390   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54391   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54392   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54393 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54394          X"$ac_dest" : 'X\(//\)[^/]' \| \
54395          X"$ac_dest" : 'X\(//\)$' \| \
54396          X"$ac_dest" : 'X\(/\)' \| \
54397          .     : '\(.\)' 2>/dev/null ||
54398 echo X"$ac_dest" |
54399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54400           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54401           /^X\(\/\/\)$/{ s//\1/; q; }
54402           /^X\(\/\).*/{ s//\1/; q; }
54403           s/.*/./; q'`
54404   { if $as_mkdir_p; then
54405     mkdir -p "$ac_dir"
54406   else
54407     as_dir="$ac_dir"
54408     as_dirs=
54409     while test ! -d "$as_dir"; do
54410       as_dirs="$as_dir $as_dirs"
54411       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54413          X"$as_dir" : 'X\(//\)[^/]' \| \
54414          X"$as_dir" : 'X\(//\)$' \| \
54415          X"$as_dir" : 'X\(/\)' \| \
54416          .     : '\(.\)' 2>/dev/null ||
54417 echo X"$as_dir" |
54418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54419           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54420           /^X\(\/\/\)$/{ s//\1/; q; }
54421           /^X\(\/\).*/{ s//\1/; q; }
54422           s/.*/./; q'`
54423     done
54424     test ! -n "$as_dirs" || mkdir $as_dirs
54425   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54426 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54427    { (exit 1); exit 1; }; }; }
54428
54429   ac_builddir=.
54430
54431 if test "$ac_dir" != .; then
54432   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54433   # A "../" for each directory in $ac_dir_suffix.
54434   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54435 else
54436   ac_dir_suffix= ac_top_builddir=
54437 fi
54438
54439 case $srcdir in
54440   .)  # No --srcdir option.  We are building in place.
54441     ac_srcdir=.
54442     if test -z "$ac_top_builddir"; then
54443        ac_top_srcdir=.
54444     else
54445        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54446     fi ;;
54447   [\\/]* | ?:[\\/]* )  # Absolute path.
54448     ac_srcdir=$srcdir$ac_dir_suffix;
54449     ac_top_srcdir=$srcdir ;;
54450   *) # Relative path.
54451     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54452     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54453 esac
54454
54455 # Do not use `cd foo && pwd` to compute absolute paths, because
54456 # the directories may not exist.
54457 case `pwd` in
54458 .) ac_abs_builddir="$ac_dir";;
54459 *)
54460   case "$ac_dir" in
54461   .) ac_abs_builddir=`pwd`;;
54462   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54463   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54464   esac;;
54465 esac
54466 case $ac_abs_builddir in
54467 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54468 *)
54469   case ${ac_top_builddir}. in
54470   .) ac_abs_top_builddir=$ac_abs_builddir;;
54471   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54472   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54473   esac;;
54474 esac
54475 case $ac_abs_builddir in
54476 .) ac_abs_srcdir=$ac_srcdir;;
54477 *)
54478   case $ac_srcdir in
54479   .) ac_abs_srcdir=$ac_abs_builddir;;
54480   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54481   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54482   esac;;
54483 esac
54484 case $ac_abs_builddir in
54485 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54486 *)
54487   case $ac_top_srcdir in
54488   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54489   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54490   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54491   esac;;
54492 esac
54493
54494
54495   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54496 echo "$as_me: executing $ac_dest commands" >&6;}
54497   case $ac_dest in
54498     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54499   # Strip MF so we end up with the name of the file.
54500   mf=`echo "$mf" | sed -e 's/:.*$//'`
54501   # Check whether this is an Automake generated Makefile or not.
54502   # We used to match only the files named `Makefile.in', but
54503   # some people rename them; so instead we look at the file content.
54504   # Grep'ing the first line is not enough: some people post-process
54505   # each Makefile.in and add a new line on top of each file to say so.
54506   # So let's grep whole file.
54507   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54508     dirpart=`(dirname "$mf") 2>/dev/null ||
54509 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54510          X"$mf" : 'X\(//\)[^/]' \| \
54511          X"$mf" : 'X\(//\)$' \| \
54512          X"$mf" : 'X\(/\)' \| \
54513          .     : '\(.\)' 2>/dev/null ||
54514 echo X"$mf" |
54515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54517           /^X\(\/\/\)$/{ s//\1/; q; }
54518           /^X\(\/\).*/{ s//\1/; q; }
54519           s/.*/./; q'`
54520   else
54521     continue
54522   fi
54523   # Extract the definition of DEPDIR, am__include, and am__quote
54524   # from the Makefile without running `make'.
54525   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54526   test -z "$DEPDIR" && continue
54527   am__include=`sed -n 's/^am__include = //p' < "$mf"`
54528   test -z "am__include" && continue
54529   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54530   # When using ansi2knr, U may be empty or an underscore; expand it
54531   U=`sed -n 's/^U = //p' < "$mf"`
54532   # Find all dependency output files, they are included files with
54533   # $(DEPDIR) in their names.  We invoke sed twice because it is the
54534   # simplest approach to changing $(DEPDIR) to its actual value in the
54535   # expansion.
54536   for file in `sed -n "
54537     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54538        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54539     # Make sure the directory exists.
54540     test -f "$dirpart/$file" && continue
54541     fdir=`(dirname "$file") 2>/dev/null ||
54542 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54543          X"$file" : 'X\(//\)[^/]' \| \
54544          X"$file" : 'X\(//\)$' \| \
54545          X"$file" : 'X\(/\)' \| \
54546          .     : '\(.\)' 2>/dev/null ||
54547 echo X"$file" |
54548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54549           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54550           /^X\(\/\/\)$/{ s//\1/; q; }
54551           /^X\(\/\).*/{ s//\1/; q; }
54552           s/.*/./; q'`
54553     { if $as_mkdir_p; then
54554     mkdir -p $dirpart/$fdir
54555   else
54556     as_dir=$dirpart/$fdir
54557     as_dirs=
54558     while test ! -d "$as_dir"; do
54559       as_dirs="$as_dir $as_dirs"
54560       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54562          X"$as_dir" : 'X\(//\)[^/]' \| \
54563          X"$as_dir" : 'X\(//\)$' \| \
54564          X"$as_dir" : 'X\(/\)' \| \
54565          .     : '\(.\)' 2>/dev/null ||
54566 echo X"$as_dir" |
54567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54568           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54569           /^X\(\/\/\)$/{ s//\1/; q; }
54570           /^X\(\/\).*/{ s//\1/; q; }
54571           s/.*/./; q'`
54572     done
54573     test ! -n "$as_dirs" || mkdir $as_dirs
54574   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54575 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54576    { (exit 1); exit 1; }; }; }
54577
54578     # echo "creating $dirpart/$file"
54579     echo '# dummy' > "$dirpart/$file"
54580   done
54581 done
54582  ;;
54583     default )
54584 chmod +x tests/run
54585 date > stamp-h
54586 BACKENDSC="servers/slapd/backends.c"
54587 echo "Making $BACKENDSC"
54588 rm -f $BACKENDSC
54589 cat > $BACKENDSC << ENDX
54590 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54591  *
54592  * Copyright 1998-2005 The OpenLDAP Foundation.
54593  * All rights reserved.
54594  *
54595  * Redistribution and use in source and binary forms, with or without
54596  * modification, are permitted only as authorized by the OpenLDAP
54597  * Public License.
54598  *
54599  * A copy of this license is available in the file LICENSE in the
54600  * top-level directory of the distribution or, alternatively, at
54601  * <http://www.OpenLDAP.org/license.html>.
54602  */
54603 /* This file is automatically generated by configure; please do not edit. */
54604
54605 #include "portable.h"
54606 #include "slap.h"
54607
54608 ENDX
54609 if test "${STATIC_BACKENDS}"; then
54610         for b in config ${STATIC_BACKENDS}; do
54611                 bb=`echo "${b}" | sed -e 's/back-//'`
54612                 cat >> $BACKENDSC << ENDX
54613 extern BI_init ${bb}_back_initialize;
54614 ENDX
54615         done
54616
54617         cat >> $BACKENDSC << ENDX
54618
54619 BackendInfo slap_binfo[] = {
54620 ENDX
54621
54622         for b in config ${STATIC_BACKENDS}; do
54623                 bb=`echo "${b}" | sed -e 's/back-//'`
54624                 echo "    Add ${bb} ..."
54625                 cat >> $BACKENDSC << ENDX
54626         { "${bb}", ${bb}_back_initialize },
54627 ENDX
54628         done
54629
54630         cat >> $BACKENDSC << ENDX
54631         { NULL, NULL },
54632 };
54633
54634 /* end of generated file */
54635 ENDX
54636 fi
54637
54638 echo Please run \"make depend\" to build dependencies
54639  ;;
54640   esac
54641 done
54642 _ACEOF
54643
54644 cat >>$CONFIG_STATUS <<\_ACEOF
54645
54646 { (exit 0); exit 0; }
54647 _ACEOF
54648 chmod +x $CONFIG_STATUS
54649 ac_clean_files=$ac_clean_files_save
54650
54651
54652 # configure is writing to config.log, and then calls config.status.
54653 # config.status does its own redirection, appending to config.log.
54654 # Unfortunately, on DOS this fails, as config.log is still kept open
54655 # by configure, so config.status won't be able to write to it; its
54656 # output is simply discarded.  So we exec the FD to /dev/null,
54657 # effectively closing config.log, so it can be properly (re)opened and
54658 # appended to by config.status.  When coming back to configure, we
54659 # need to make the FD available again.
54660 if test "$no_create" != yes; then
54661   ac_cs_success=:
54662   ac_config_status_args=
54663   test "$silent" = yes &&
54664     ac_config_status_args="$ac_config_status_args --quiet"
54665   exec 5>/dev/null
54666   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54667   exec 5>>config.log
54668   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54669   # would make configure fail if this is the last instruction.
54670   $ac_cs_success || { (exit 1); exit 1; }
54671 fi
54672